:root {
  --bg: #040c09;
  --gold: #e0c36a;
  --gold-deep: #b8892a;
  --ivory: #f6efe0;
  --muted: rgba(246, 239, 224, 0.62);
  --line: rgba(224, 195, 106, 0.28);
  --glass: rgba(8, 22, 16, 0.62);
  --font-serif: "Cormorant Garamond", Georgia, serif;
  --font-sans: "Montserrat", system-ui, sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body.page-home {
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
body {
  font-family: var(--font-sans);
  color: var(--ivory);
  min-height: 100vh;
  background:
    radial-gradient(ellipse 90% 70% at 50% 18%, #163325 0%, transparent 52%),
    radial-gradient(ellipse 50% 40% at 80% 90%, #1a1408 0%, transparent 50%),
    linear-gradient(180deg, #07140f 0%, #040c09 48%, #020605 100%);
  overflow-x: hidden;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image:
    radial-gradient(1.2px 1.2px at 12% 18%, rgba(255,255,255,.7), transparent),
    radial-gradient(1px 1px at 28% 8%, rgba(255,248,220,.55), transparent),
    radial-gradient(1.4px 1.4px at 72% 14%, rgba(255,255,255,.5), transparent),
    radial-gradient(1px 1px at 88% 28%, rgba(255,236,170,.45), transparent),
    radial-gradient(1px 1px at 8% 62%, rgba(255,255,255,.35), transparent),
    radial-gradient(1.2px 1.2px at 93% 72%, rgba(255,255,255,.4), transparent);
}
.vignette {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  background: radial-gradient(ellipse at center, transparent 42%, rgba(0,0,0,.45) 100%);
}
.bokeh {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
}
.bokeh i {
  position: absolute;
  border-radius: 50%;
  filter: blur(10px);
  opacity: .22;
  background: #f7e7a8;
}
.bokeh i:nth-child(1) { width: 90px; height: 90px; left: 8%; top: 22%; }
.bokeh i:nth-child(2) { width: 56px; height: 56px; right: 12%; top: 18%; background: #c9a227; }
.bokeh i:nth-child(3) { width: 120px; height: 120px; left: 6%; bottom: 12%; opacity: .12; }
.bokeh i:nth-child(4) { width: 70px; height: 70px; right: 8%; bottom: 20%; background: #fff4c2; }

.skip { position: absolute; left: -999px; }
.skip:focus { left: 12px; top: 12px; z-index: 40; background: var(--gold); color: #06110c; padding: 8px 12px; }
.snow { position: fixed; inset: 0; pointer-events: none; z-index: 3; }
.topbar, .stage, .site-foot, .modal { position: relative; z-index: 4; }

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 12px 22px 8px;
  flex: 0 0 auto;
  background: linear-gradient(180deg, rgba(4,12,9,.72), rgba(4,12,9,0));
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--gold);
}
.brand-mark {
  font-size: 1.15rem;
  filter: drop-shadow(0 0 10px rgba(224,195,106,.9));
}
.brand-name {
  font-family: var(--font-serif);
  letter-spacing: 0.38em;
  text-transform: uppercase;
  font-size: 0.92rem;
  font-weight: 500;
}
.progress {
  flex: 1;
  max-width: 460px;
  font-size: 11px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
  text-align: center;
}
.progress strong { color: var(--gold); font-weight: 600; }
.progress .scarcity {
  display: block;
  margin-top: 6px;
  font-size: 11px;
  letter-spacing: .06em;
}
.progress-bar {
  height: 2px;
  margin-top: 8px;
  background: rgba(255,255,255,.08);
  overflow: hidden;
}
.progress-bar i {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, #fff4d0, #d4af37);
  transition: width .45s ease;
}
.btn-gold {
  background: linear-gradient(180deg, #f7e7b0 0%, #d4af37 48%, #9a7318 100%);
  color: #1a1204;
  border: 0;
  border-radius: 999px;
  padding: 12px 20px;
  font-weight: 600;
  font-size: 12px;
  letter-spacing: .06em;
  text-transform: uppercase;
  cursor: pointer;
  font-family: inherit;
  text-decoration: none;
  display: inline-block;
  box-shadow: 0 8px 24px rgba(176, 132, 32, .28);
}
.btn-gold:hover { filter: brightness(1.08); }
.topbar-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
}
.btn-sound {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid rgba(224, 195, 106, .45);
  background: rgba(6, 17, 12, .55);
  color: var(--gold);
  display: grid;
  place-items: center;
  cursor: pointer;
  padding: 0;
  backdrop-filter: blur(10px);
}
.btn-sound svg { width: 20px; height: 20px; display: block; }
.btn-sound .ico-sound-off { display: none; }
.btn-sound.is-muted .ico-sound-on { display: none; }
.btn-sound.is-muted .ico-sound-off { display: block; }
.btn-sound:hover { border-color: var(--gold); background: rgba(212, 175, 55, .12); }
.btn-ghost {
  background: transparent;
  color: var(--gold);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 12px 20px;
  font-weight: 600;
  font-size: 12px;
  letter-spacing: .06em;
  text-transform: uppercase;
  cursor: pointer;
  font-family: inherit;
}

.stage {
  position: relative;
  display: block;
  padding: 0;
  flex: 1 1 auto;
  min-height: 0;
  overflow: hidden;
}
.btn-back-national {
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 8px 16px;
  background: linear-gradient(180deg, #f7e7b0 0%, #d4af37 48%, #9a7318 100%);
  color: #1a1204;
  border-radius: 999px;
  font-weight: 700;
  font-size: 11px;
  letter-spacing: .06em;
  text-transform: uppercase;
  text-decoration: none;
  box-shadow: 0 8px 24px rgba(176, 132, 32, .4);
  z-index: 6;
  white-space: nowrap;
}
.btn-back-national:hover { filter: brightness(1.08); }
.current-place {
  position: absolute;
  top: 42px;
  left: 50%;
  transform: translateX(-50%);
  margin: 0;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.15rem;
  color: #f7e7b0;
  z-index: 6;
  white-space: nowrap;
  text-shadow: 0 4px 16px rgba(0,0,0,.55);
}
.hero-copy {
  display: none;
}
.eyebrow {
  letter-spacing: 0.42em;
  text-transform: uppercase;
  font-size: 10px;
  color: rgba(210, 245, 224, .55);
  margin: 0 0 14px;
}
.hero-copy h1, .hero h1, .archive h1 {
  font-family: var(--font-serif);
  font-weight: 300;
  font-style: italic;
  font-size: clamp(2.1rem, 4.4vw, 3.6rem);
  line-height: 1.05;
  letter-spacing: 0.01em;
  background: linear-gradient(180deg, #fffef8 10%, #f7e7b0 45%, #c9a227 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin: 0 0 16px;
}
.lead, .muted { color: var(--muted); font-weight: 300; line-height: 1.7; font-size: 14px; }
.scarcity {
  margin-top: 0;
  font-size: 12px;
  letter-spacing: .04em;
  color: var(--gold);
}
.scarcity strong { font-size: 1.15em; }

.tree-wrap {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  min-height: 0;
  overflow: hidden;
  pointer-events: none;
}
.tree-wrap > * { pointer-events: auto; }

.hero-tree {
  --fill: 0;
  position: relative;
  z-index: 2;
  flex: 1 1 auto;
  min-height: 0;
  height: 0;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  filter: drop-shadow(0 28px 70px rgba(0,0,0,.65));
}
.tree-stage {
  position: relative;
  height: 100%;
  aspect-ratio: 400 / 640;
  max-width: 100%;
}
.hero-tree .tree-svg {
  display: block;
  width: 100%;
  height: 100%;
}
.tree-aura { display: none; }
.tree-photo { display: none; }
.tree-svg {
  display: block;
  width: 100%;
  height: 100%;
  pointer-events: none;
  user-select: none;
}
.hero-tree .tree-heart { display: none; }
.hero-tree .tree-canopy { filter: brightness(calc(0.94 + (var(--fill) * 0.003))); transition: filter .8s ease; }
.hero-tree .tree-snow-caps { opacity: calc(0.35 + (var(--fill) * 0.004)); transition: opacity .8s ease; }
.hero-tree .tree-ground { opacity: 0.85; }
.slots {
  position: absolute;
  inset: 0;
}

.slot {
  position: absolute;
  transform: translate(-50%, -50%);
  border: 0;
  padding: 0;
  cursor: pointer;
  background: transparent;
}
.slot-star {
  width: 13.5%;
  height: auto;
  aspect-ratio: 1;
  z-index: 8;
  background: transparent;
  opacity: 0;
  overflow: visible;
}
.slot-star svg { width: 100%; height: 100%; display: block; position: relative; z-index: 2; filter: drop-shadow(0 0 10px rgba(255, 224, 130, .7)); }
.slot-star.has-partner {
  opacity: 1;
  animation: pulseStar 3.2s ease-in-out infinite alternate;
  filter: drop-shadow(0 0 12px rgba(255, 220, 120, .75));
}
.slot-star .star-halo,
.slot-star .star-rays {
  position: absolute;
  left: 50%;
  top: 50%;
  pointer-events: none;
  z-index: 0;
}
.slot-star .star-halo {
  width: 145%;
  height: 145%;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(255, 236, 180, .55) 0%, rgba(212, 175, 55, .18) 42%, transparent 70%);
  animation: starHalo 3s ease-in-out infinite alternate;
}
.slot-star .star-rays { display: none; }
.slot-star .star-face {
  position: relative;
  z-index: 2;
  display: block;
  width: 100%;
  height: 100%;
  clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
  background-size: cover;
  background-position: center;
}
.slot-star.has-logo .star-face { display: block; }
.slot-star.has-logo svg { display: none; }
.hero-tree:hover .slot-star:not(.has-partner),
.hero-tree:focus-within .slot-star:not(.has-partner) {
  opacity: .28;
}
.slot-star:not(.has-partner):hover,
.slot-star:not(.has-partner):focus {
  opacity: .7;
  filter: drop-shadow(0 0 12px rgba(255, 230, 150, .8));
}

.slot-ball {
  width: 8%;
  height: auto;
  aspect-ratio: 1;
  border-radius: 50%;
  background: transparent;
  box-shadow: none;
  animation: none;
}
.slot-ball.is-empty {
  background: transparent;
  opacity: 0;
  box-shadow: none;
}
.hero-tree:hover .slot-ball.is-empty,
.hero-tree:focus-within .slot-ball.is-empty {
  opacity: .22;
  background: radial-gradient(circle at 32% 28%, rgba(255,255,255,.4), rgba(255,255,255,.06) 42%, transparent);
  box-shadow: 0 0 10px rgba(255, 220, 140, .18);
}
.slot-ball.is-empty:hover,
.slot-ball.is-empty:focus {
  opacity: .85;
  transform: translate(-50%, -50%) scale(1.12);
  box-shadow: 0 0 16px rgba(255, 220, 140, .55);
}
.slot-ball.has-partner,
.slot-ball.has-logo {
  opacity: 1;
  background:
    radial-gradient(circle at 32% 28%, rgba(255,255,255,.85) 0 8%, transparent 22%),
    radial-gradient(circle at 30% 30%, #fff4c8, #9b1d2a 48%, #4a0c14 100%);
  background-size: cover;
  background-position: center;
  border: 1.5px solid rgba(255, 244, 208, .75);
  box-shadow:
    inset -4px -6px 10px rgba(0,0,0,.35),
    0 6px 14px rgba(0,0,0,.35),
    0 0 14px rgba(255, 190, 120, .4);
  animation: sway 5.4s ease-in-out infinite;
}
.slot-ball.has-logo {
  background-size: cover;
  background-position: center;
}
.slot-ball.is-visited { filter: grayscale(.45) saturate(.55) brightness(.8); animation: none; }
.slot-ball .bauble-hook { display: none; }

.slot-light {
  width: 2.15%;
  height: auto;
  aspect-ratio: 1;
  border-radius: 50%;
  background: transparent;
  box-shadow: none;
  opacity: 0;
}
.hero-tree:hover .slot-light:not(.is-on),
.hero-tree:focus-within .slot-light:not(.is-on) {
  opacity: .18;
  background: rgba(255, 236, 170, .45);
}
.slot-light.is-on {
  opacity: 1;
  background: #fff6cc;
  box-shadow: 0 0 10px rgba(255, 230, 150, 1), 0 0 18px rgba(212,175,55,.7);
  animation: twinkle 2.6s ease-in-out infinite alternate;
  cursor: pointer;
}
.slot-light.is-on:hover,
.slot-light.is-on:focus {
  transform: translate(-50%, -50%) scale(1.55);
  box-shadow: 0 0 14px #fff, 0 0 26px rgba(255, 220, 120, 1);
  z-index: 6;
}
.slot-light.is-on:nth-child(2n) { animation-delay: .5s; }
.slot-light.is-on:nth-child(3n) { animation-delay: 1.1s; }
.slot-light.is-on:nth-child(5n) { animation-delay: 1.8s; background: #ffd4a8; }
.slot-light.is-visited { animation: none; background: #b9a56a; box-shadow: none; }

@keyframes pulseStar {
  from { transform: translate(-50%, -50%) scale(.98); opacity: .92; }
  to { transform: translate(-50%, -50%) scale(1.04); opacity: 1; }
}
@keyframes starHalo {
  from { opacity: .35; transform: translate(-50%, -50%) scale(.94); }
  to { opacity: .7; transform: translate(-50%, -50%) scale(1.04); }
}
@keyframes twinkle {
  from { opacity: .45; }
  to { opacity: 1; }
}
@keyframes sway {
  0%, 100% { transform: translate(-50%, -50%) rotate(-4deg); }
  50% { transform: translate(-50%, -50%) rotate(4deg); }
}

.cta-short { display: none; }
.btn-concelhos {
  display: none;
  border: 1px solid var(--line);
  background: rgba(6, 17, 12, .55);
  color: var(--gold);
  border-radius: 999px;
  padding: 8px 12px;
  font: inherit;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  cursor: pointer;
  backdrop-filter: blur(10px);
}
.concelhos-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
}
.concelhos-head h2 { margin: 0; }
.concelhos-close {
  display: none;
  background: transparent;
  border: 0;
  color: var(--gold);
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}
.concelhos-backdrop { display: none; }

.concelhos {
  position: absolute;
  top: 8px;
  right: 16px;
  bottom: 8px;
  width: 240px;
  display: flex;
  flex-direction: column;
  min-height: 0;
  background: var(--glass);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 14px 12px 10px;
  backdrop-filter: blur(16px);
  z-index: 8;
}
.concelhos h2 {
  font-family: var(--font-serif);
  font-weight: 400;
  font-style: italic;
  font-size: 1.25rem;
  margin: 0 0 10px;
  color: #f7e7b0;
}
.concelhos select {
  width: 100%;
  background: #040c09;
  color: var(--ivory);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 8px 10px;
  font: inherit;
  font-size: 13px;
  margin-bottom: 10px;
}
.mun-list {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: thin;
  scrollbar-color: rgba(224,195,106,.4) transparent;
}
.mun-list a {
  display: block;
  padding: 8px 8px;
  color: var(--ivory);
  text-decoration: none;
  font-size: 13px;
  border-radius: 8px;
}
.mun-list a:hover,
.mun-list a.is-current {
  background: rgba(212,175,55,.16);
  color: var(--gold);
}

.hovercard {
  position: fixed;
  z-index: 40;
  min-width: 220px;
  max-width: 280px;
  background: rgba(8, 22, 16, .94);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 14px 16px;
  box-shadow: 0 18px 40px rgba(0,0,0,.45);
  pointer-events: none;
  font-size: 13px;
  backdrop-filter: blur(12px);
}
.hovercard img { width: 56px; height: 56px; object-fit: contain; border-radius: 8px; background: #fff; }
.hovercard strong { display: block; margin-top: 6px; font-family: var(--font-serif); font-size: 1.2rem; color: #f7e7b0; }
.hovercard .tag {
  display: inline-block;
  margin-top: 6px;
  color: var(--gold);
  letter-spacing: .06em;
  text-transform: uppercase;
  font-size: 10px;
}
.hovercard .hover-promo {
  margin: 8px 0 0;
  color: var(--ivory);
  font-weight: 300;
  line-height: 1.45;
}
.hovercard .hover-coupon { margin: 8px 0 0; color: var(--ivory); }
.hovercard .hover-go {
  margin: 10px 0 0;
  color: var(--gold);
  font-size: 11px;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.modal {
  border: 1px solid rgba(90, 70, 30, .18);
  border-radius: 20px;
  background: #f6efe0;
  color: #1c2418;
  padding: 18px 20px 16px;
  max-width: 720px;
  width: calc(100% - 28px);
  max-height: 86dvh;
  overflow: hidden;
}
.wizard[open] {
  display: flex;
  flex-direction: column;
}
.wizard #bookForm {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-height: 0;
  overflow: hidden;
}
.wiz-steps {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 6px;
  list-style: none;
  padding: 0;
  margin: 0 0 12px;
  flex: 0 0 auto;
}
.wiz-steps li {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 11px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: rgba(28, 36, 24, .45);
  padding: 4px 0 8px;
  border-bottom: 1px solid rgba(90, 70, 30, .16);
}
.wiz-steps li span {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  border: 1px solid rgba(90, 70, 30, .2);
  font-weight: 600;
}
.wiz-steps li.is-on { color: #8a6918; border-bottom-color: #c9a227; }
.wiz-steps li.is-on span {
  background: #d4af37;
  color: #1a1204;
  border-color: #d4af37;
}
.wiz-pane[hidden] { display: none !important; }
.wiz-pane.is-on {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-height: 0;
  overflow: hidden;
  animation: wizIn .28s ease;
}
@keyframes wizIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: none; }
}
.wiz-place {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 180px;
  gap: 14px;
  align-items: stretch;
  flex: 1 1 auto;
  min-height: 0;
}
.place-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  margin: 0;
  align-content: start;
}
.place-card {
  display: grid;
  grid-template-columns: auto 1fr auto;
  grid-template-areas: "ico title price" "ico left left";
  column-gap: 10px;
  row-gap: 0;
  align-items: center;
  padding: 10px 12px;
  border: 1px solid rgba(90, 70, 30, .16);
  border-radius: 12px;
  background: #fffaf0;
  cursor: pointer;
}
.place-card input { position: absolute; opacity: 0; pointer-events: none; }
.place-card.is-sel, .place-card:hover {
  border-color: #c9a227;
  background: #fff6d8;
  box-shadow: none;
}
.place-ico { grid-area: ico; color: #b8892a; font-size: 1.2rem; }
.place-card strong { grid-area: title; font-family: var(--font-serif); font-size: 1.15rem; color: #2a1c08; }
.place-card em { grid-area: price; font-style: normal; color: #8a6918; font-weight: 600; font-size: 13px; }
.place-left { grid-area: left; font-size: 10px; letter-spacing: .08em; text-transform: uppercase; color: #4a6a50; }
.wiz-pick { text-align: center; display: flex; flex-direction: column; min-height: 0; }
.wiz-grid2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 12px;
}
.wiz-choices { display: flex; flex-wrap: wrap; gap: 8px 16px; margin: 6px 0; }
.wiz-split {
  display: grid;
  grid-template-columns: 1.3fr .7fr;
  gap: 14px;
  align-items: start;
  flex: 1 1 auto;
  min-height: 0;
}
.dropzone {
  display: grid;
  place-items: center;
  min-height: 48px;
  border: 1.5px dashed rgba(90, 70, 30, .28);
  border-radius: 12px;
  background: #fffaf0;
  text-align: center;
  padding: 8px;
  cursor: pointer;
  color: rgba(28, 36, 24, .55);
  font-size: 13px;
}
.dropzone.is-drag { border-color: #c9a227; background: #fff6d8; }
.dropzone input[type="file"] { display: none; }
.dropzone.has-file { border-style: solid; }
.wiz-preview {
  background: #fffaf0;
  border: 1px solid rgba(90, 70, 30, .16);
  border-radius: 14px;
  padding: 12px;
  text-align: center;
}
.preview-tree { display: none; }
.preview-ornament {
  width: 64px;
  height: 64px;
  margin: 0 auto 8px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #1a1204;
  font-family: var(--font-serif);
  font-size: 1.6rem;
  background:
    radial-gradient(circle at 32% 28%, rgba(255,255,255,.9) 0 8%, transparent 22%),
    radial-gradient(circle at 30% 30%, #fff4c8, #9b1d2a 48%, #4a0c14 100%);
  border: 2px solid rgba(255, 244, 208, .8);
  background-size: cover;
  background-position: center;
}
.preview-ornament.is-star {
  border-radius: 0;
  clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
  background: radial-gradient(circle at 40% 40%, #fff6d0, #d4af37 55%, #8a6914);
}
.preview-ornament.is-light {
  width: 18px;
  height: 18px;
  font-size: 0;
  background: #fff6cc;
  box-shadow: 0 0 12px #d4af37;
}
.summary { list-style: none; padding: 0; margin: 0; text-align: left; font-size: 13px; color: rgba(28,36,24,.65); }
.summary li { padding: 5px 0; border-bottom: 1px solid rgba(90, 70, 30, .12); }
.summary strong { color: #1c2418; }
.wiz-nav { display: flex; justify-content: flex-end; gap: 8px; margin-top: 10px; flex: 0 0 auto; }
.wizard .btn-ghost {
  color: #6a5420;
  border-color: rgba(90, 70, 30, .28);
  padding: 10px 16px;
}
.wizard .btn-gold { padding: 10px 16px; }
.modal::backdrop { background: rgba(20, 16, 10, .55); }
.modal-close {
  position: absolute; top: 8px; right: 12px;
  background: transparent; border: 0; color: #6a5420; font-size: 24px; cursor: pointer;
}
.modal h2, .modal h3 { font-family: var(--font-serif); font-weight: 400; color: #2a1c08; margin-top: 0; }
.modal label { display: block; margin: 4px 0; font-size: 12px; color: rgba(28, 36, 24, .62); }
.modal input, .modal textarea, .modal select {
  width: 100%; margin-top: 3px; padding: 7px 10px;
  background: #fff; color: #1c2418; border: 1px solid rgba(90, 70, 30, .22); border-radius: 8px; font: inherit;
}
.choice { display: flex; align-items: center; gap: 8px; color: #1c2418; }
.choice input { width: auto; }
fieldset { border: 1px solid rgba(90, 70, 30, .16); border-radius: 12px; margin: 8px 0; }
.err { color: #9a2a2a; margin: 4px 0 0; font-size: 12px; }
.book-done { text-align: center; padding: 8px 6px 4px; color: #1c2418; }
.book-done h2 { margin-bottom: 10px; }
.book-done p { color: rgba(28,36,24,.65); }
.pick-tree {
  position: relative;
  height: min(34vh, 250px);
  width: calc(min(34vh, 250px) * 400 / 640);
  max-width: 100%;
  margin: 0 auto;
  background:
    radial-gradient(circle at 50% 12%, rgba(232,196,90,.22), transparent 22%),
    radial-gradient(circle at 50% 40%, rgba(40, 110, 62, .75), rgba(18, 50, 32, .95) 70%, #12301e 86%);
  border: 1px solid rgba(90, 70, 30, .18);
  border-radius: 14px;
  flex: 0 0 auto;
}
.pick-hint { margin: 6px 0 0; font-size: 11px; color: rgba(28,36,24,.5); }
.pick-slot {
  position: absolute;
  transform: translate(-50%, -50%);
  border: 0;
  cursor: pointer;
  background: rgba(255,245,208,.35);
}
.pick-slot.ball, .pick-slot.star { border-radius: 50%; }
.pick-slot.star { width: 22px; height: 22px; background: #d4af37; }
.pick-slot.ball { width: 14px; height: 14px; }
.pick-slot.light { width: 7px; height: 7px; border-radius: 50%; }
.pick-slot.is-busy { background: #5c3b3b; cursor: not-allowed; opacity: .45; }
.pick-slot.is-sel { outline: 2px solid #fff; background: #f7dfa5; }

.site-foot {
  flex: 0 0 auto;
  padding: 4px 20px 10px;
  color: var(--muted);
  font-size: 10px;
  letter-spacing: .08em;
  text-transform: uppercase;
  text-align: center;
  z-index: 5;
}
.site-foot nav { display: flex; gap: 18px; justify-content: center; flex-wrap: wrap; margin-top: 8px; }
.site-foot a { color: var(--gold); text-decoration: none; }
.legal { max-width: 780px; margin: 0 auto; padding: 48px 20px 80px; position: relative; z-index: 2; }
.legal h1, .legal h2 { font-family: var(--font-serif); font-weight: 400; color: var(--gold); }
.legal p, .legal li { color: rgba(246,239,224,.82); line-height: 1.65; }
.legal table { width: 100%; border-collapse: collapse; font-size: 14px; }
.legal th, .legal td { border: 1px solid var(--line); padding: 8px; text-align: left; }
.placeholder { background: rgba(212,175,55,.12); padding: 0 4px; }

.archive-body, .archive { text-align: center; }
.archive { padding: 12vh 20px 60px; max-width: 720px; margin: 0 auto; position: relative; z-index: 4; }
.thanks-list { list-style: none; padding: 0; text-align: left; }
.thanks-list li { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.thanks-list a { color: var(--gold); }

.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }

@media (prefers-reduced-motion: reduce) {
  .slot-star svg, .slot-star .star-halo, .slot-star .star-rays, .slot-light.is-on, .slot-ball { animation: none; }
}
@media (max-width: 1080px) {
  .topbar {
    padding: 8px 12px 6px;
    gap: 8px;
  }
  .brand-name { letter-spacing: .22em; font-size: .78rem; }
  .progress { display: none; }
  .cta-full { display: none; }
  .cta-short { display: inline; }
  .btn-concelhos { display: inline-flex; }
  .btn-gold { padding: 9px 12px; font-size: 10px; }
  .btn-sound { width: 36px; height: 36px; }
  .site-foot p { display: none; }
  .site-foot { padding: 2px 12px 6px; }
  .site-foot nav { margin-top: 0; gap: 12px; font-size: 9px; }
  .concelhos {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: min(320px, 88vw);
    height: auto;
    border-radius: 18px 0 0 18px;
    transform: translateX(105%);
    transition: transform .28s ease;
    z-index: 60;
  }
  .concelhos.is-open { transform: none; }
  .concelhos-close { display: block; }
  .concelhos-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(2, 6, 5, .55);
    z-index: 55;
  }
  .concelhos-backdrop[hidden] { display: none !important; }
  .btn-back-national { padding: 6px 12px; font-size: 10px; top: 4px; }
  .current-place { top: 34px; font-size: 1rem; }
  .wiz-place { grid-template-columns: 1fr 132px; gap: 10px; }
  .wiz-split, .wiz-grid2 { grid-template-columns: 1fr; }
  .pick-tree { height: min(26vh, 170px); width: calc(min(26vh, 170px) * 400 / 640); }
  .wizard { padding: 14px 14px 12px; max-height: 90dvh; }
}
@media (max-width: 640px) {
  .place-cards, .wiz-split { grid-template-columns: 1fr; }
  .topbar .btn-gold { font-size: 10px; padding: 10px 12px; }
  .btn-sound { width: 38px; height: 38px; }
  .btn-back-national { font-size: 10px; padding: 6px 12px; }
}
