/* ============================================================
   Sarai & Lucas — Wedding site
   Palette: hacienda limestone + plum/bouquet + Mexican fiesta
   ============================================================ */

:root {
  /* base */
  --ivory:      #faf4ea;
  --limestone:  #f3e9da;
  --sand:       #ead9c2;
  --ink:        #3a2a28;
  --ink-soft:   #6c5750;

  /* brand */
  --plum:       #6e2e4d;   /* deep wine, from bouquet */
  --plum-deep:  #4f2038;
  --fuchsia:    #c72c6c;   /* bougainvillea */
  --terracotta: #c2643f;   /* hacienda clay */
  --marigold:   #e6a23c;   /* cempasúchil */
  --sage:       #7e8d6b;   /* eucalyptus */
  --turquoise:  #2bb3a3;   /* talavera */

  /* fiesta string (papel picado) */
  --f1: #e0218a; --f2: #f2a900; --f3: #2bb3a3;
  --f4: #7a3b69; --f5: #e0413e; --f6: #4c9a52; --f7: #8e44ad;

  --maxw: 1140px;
  --radius: 14px;
  --shadow: 0 18px 40px -22px rgba(79,32,56,.45);
  --shadow-soft: 0 10px 30px -18px rgba(79,32,56,.4);

  --serif: "Cormorant Garamond", Georgia, serif;
  --sans:  "Jost", "Helvetica Neue", Arial, sans-serif;
  --script:"Sacramento", cursive;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 84px; }

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--ivory);
  font-weight: 300;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }

a { color: var(--plum); text-decoration: none; }
a:hover { color: var(--fuchsia); }

h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.1; margin: 0; }

.container { width: min(100% - 2.6rem, var(--maxw)); margin-inline: auto; }
.container.narrow { width: min(100% - 2.6rem, 760px); }
.center { text-align: center; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  font-family: var(--sans); font-weight: 500; font-size: .82rem;
  letter-spacing: .12em; text-transform: uppercase;
  padding: .85rem 1.6rem; border-radius: 100px;
  transition: transform .25s ease, box-shadow .25s ease, background .25s ease, color .25s ease;
  cursor: pointer; border: 1.5px solid transparent;
}
.btn-primary { background: var(--plum); color: #fff; box-shadow: var(--shadow-soft); }
.btn-primary:hover { background: var(--fuchsia); color: #fff; transform: translateY(-2px); }
.btn-ghost { border-color: var(--plum); color: var(--plum); }
.btn-ghost:hover { background: var(--plum); color: #fff; transform: translateY(-2px); }

/* ============================================================
   HEADER / NAV
   ============================================================ */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  transition: background .35s ease, box-shadow .35s ease, padding .35s ease;
  padding: .5rem 0;
}
/* readability scrim behind the menu while over the photo / papel picado */
.site-header::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(180deg, rgba(40,18,30,.62) 0%, rgba(40,18,30,.32) 55%, rgba(40,18,30,0) 100%);
  opacity: 1; transition: opacity .35s ease;
}
.site-header.scrolled::before { opacity: 0; }
.site-header.scrolled {
  background: rgba(250,244,234,.92);
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 24px -16px rgba(79,32,56,.5);
}
.nav-inner {
  width: min(100% - 2.6rem, var(--maxw)); margin-inline: auto;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
.brand { display: inline-flex; align-items: center; }
.brand-mono {
  font-family: var(--serif); font-weight: 600; font-size: 1.7rem;
  letter-spacing: .04em; color: var(--plum);
}
.site-header:not(.scrolled) .brand-mono,
.site-header:not(.scrolled) .main-nav a { color: #fff; text-shadow: 0 1px 3px rgba(0,0,0,.6), 0 2px 14px rgba(0,0,0,.45); }
.brand-mono .amp { color: var(--marigold); font-style: italic; margin: 0 .04em; }

.main-nav { display: flex; gap: 1.6rem; }
.main-nav a {
  font-size: .82rem; letter-spacing: .14em; text-transform: uppercase;
  font-weight: 400; color: var(--ink); position: relative; padding: .2rem 0;
}
.main-nav a::after {
  content: ""; position: absolute; left: 0; bottom: -2px; height: 1.5px; width: 0;
  background: var(--fuchsia); transition: width .3s ease;
}
.main-nav a:hover::after { width: 100%; }

.nav-right { display: flex; align-items: center; gap: 1rem; }

.lang-switch { display: inline-flex; border: 1.5px solid currentColor; border-radius: 100px; overflow: hidden; }
.site-header:not(.scrolled) .lang-switch { color: #fff; }
.site-header.scrolled .lang-switch { color: var(--plum); }
.lang-switch button {
  font-family: var(--sans); font-size: .72rem; letter-spacing: .1em; font-weight: 500;
  background: transparent; border: 0; color: inherit; cursor: pointer;
  padding: .35rem .7rem; transition: background .2s, color .2s;
}
.lang-switch button.is-active { background: var(--plum); color: #fff; }
.site-header:not(.scrolled) .lang-switch button.is-active { background: #fff; color: var(--plum); }
.lang-switch button:not(.is-active):hover { background: rgba(199,44,108,.18); }

.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 6px; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: currentColor; transition: transform .3s, opacity .3s; }
.site-header:not(.scrolled) .nav-toggle { color: #fff; }
.site-header.scrolled .nav-toggle { color: var(--plum); }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative; min-height: 100svh;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; color: #fff; overflow: hidden; padding: 6rem 1.2rem 4rem;
}
.hero-bg {
  position: absolute; inset: 0;
  background: url("../assets/img/hero.jpg") center 28% / cover no-repeat;
  transform: scale(1.06); animation: heroZoom 18s ease-out forwards;
}
@keyframes heroZoom { to { transform: scale(1); } }
.hero-overlay {
  position: absolute; inset: 0;
  background:
    radial-gradient(120% 90% at 50% 10%, rgba(79,32,56,.15), transparent 55%),
    linear-gradient(180deg, rgba(58,42,40,.45) 0%, rgba(79,32,56,.34) 45%, rgba(58,42,40,.62) 100%);
}
.hero-content { position: relative; z-index: 3; max-width: 760px; }

.hero-eyebrow {
  font-family: var(--script); font-size: clamp(2rem, 5vw, 3rem);
  color: var(--marigold); margin: 0 0 -.2rem; line-height: 1;
  text-shadow: 0 2px 18px rgba(0,0,0,.35);
}
.hero-names {
  display: flex; align-items: center; justify-content: center; flex-wrap: wrap;
  gap: .4rem .9rem; font-size: clamp(3rem, 11vw, 6.5rem); font-weight: 500;
  letter-spacing: .01em; text-shadow: 0 4px 30px rgba(0,0,0,.4);
}
.hero-amp { color: var(--marigold); font-style: italic; font-weight: 400; }
.hero-rule { display: flex; align-items: center; justify-content: center; gap: 1rem; margin: 1.1rem auto; max-width: 320px; }
.hero-rule::before, .hero-rule::after { content: ""; height: 1px; flex: 1; background: rgba(255,255,255,.6); }
.hero-rule span { color: var(--marigold); font-size: 1.1rem; }

.hero-date { font-family: var(--serif); font-size: clamp(1.2rem, 3vw, 1.7rem); letter-spacing: .04em; margin: .2rem 0; }
.hero-place { font-size: .9rem; letter-spacing: .18em; text-transform: uppercase; font-weight: 400; opacity: .92; }

/* countdown */
.countdown { display: flex; gap: clamp(.8rem, 3vw, 2rem); justify-content: center; margin-top: 2.2rem; }
.cd-unit { display: flex; flex-direction: column; align-items: center; min-width: 58px; }
.cd-num {
  font-family: var(--serif); font-size: clamp(1.8rem, 5vw, 2.8rem); font-weight: 600; line-height: 1;
  font-variant-numeric: tabular-nums; text-shadow: 0 2px 14px rgba(0,0,0,.4);
}
.cd-label { font-size: .68rem; letter-spacing: .2em; text-transform: uppercase; margin-top: .4rem; opacity: .85; }

.scroll-cue {
  position: absolute; bottom: 1.6rem; left: 50%; transform: translateX(-50%); z-index: 3;
  display: flex; flex-direction: column; align-items: center; gap: .35rem;
  color: #fff; font-size: .68rem; letter-spacing: .2em; text-transform: uppercase;
}
.scroll-cue svg { animation: bob 1.8s ease-in-out infinite; }
@keyframes bob { 0%,100%{ transform: translateY(0);} 50%{ transform: translateY(6px);} }

/* ============================================================
   PAPEL PICADO
   ============================================================ */
.papel-picado {
  position: absolute; top: 0; left: 0; right: 0; z-index: 4;
  display: flex; justify-content: center; flex-wrap: nowrap;
  padding-top: 0; pointer-events: none; overflow: hidden;
  border-top: 3px solid rgba(255,255,255,.55);
}
.pp-flag { transform-origin: top center; animation: sway 4.5s ease-in-out infinite alternate; }
.pp-flag svg { display: block; }
@keyframes sway { from { transform: rotate(-2.2deg); } to { transform: rotate(2.2deg); } }

.papel-footer { position: relative; border-top: none; margin-bottom: 1.5rem; }

/* ============================================================
   SECTIONS
   ============================================================ */
.section { padding: clamp(4rem, 9vw, 7rem) 0; position: relative; }
.welcome { padding: clamp(3rem, 7vw, 5rem) 0; background: var(--limestone); }

.section-head { text-align: center; margin-bottom: 3rem; }
.kicker {
  font-family: var(--script); color: var(--fuchsia);
  font-size: clamp(1.5rem, 3.4vw, 2.1rem); line-height: 1; margin: 0 0 .2rem;
}
.section-head h2 { font-size: clamp(2rem, 5.4vw, 3.1rem); color: var(--plum); }
.section-head h2::after {
  content: "✿"; display: block; color: var(--marigold); font-size: .9rem; margin-top: .7rem;
}
.section-note { font-size: .82rem; color: var(--ink-soft); margin-top: .6rem; font-style: italic; }
.section-lead { max-width: 640px; margin: 1rem auto 0; color: var(--ink-soft); }

/* welcome */
.floral-divider { display: block; font-size: 1.8rem; color: var(--marigold); margin-bottom: .8rem; }
.welcome-lead { font-family: var(--serif); font-style: italic; font-size: clamp(1.4rem, 3.6vw, 2rem); color: var(--plum); margin: 0 0 1rem; }
.welcome-text { color: var(--ink-soft); margin: 0; }

/* ---------- details ---------- */
.details { background: var(--ivory); }
.detail-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.4rem; }
.detail-card {
  background: #fff; border: 1px solid var(--sand); border-radius: var(--radius);
  padding: 2rem 1.2rem; text-align: center; box-shadow: var(--shadow-soft);
  transition: transform .3s ease, box-shadow .3s ease;
}
.detail-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.detail-icon {
  width: 56px; height: 56px; margin: 0 auto 1rem; border-radius: 50%;
  display: grid; place-items: center; background: var(--limestone); color: var(--plum);
}
.detail-icon svg { width: 28px; height: 28px; }
.detail-card h3 { font-size: 1rem; letter-spacing: .12em; text-transform: uppercase; color: var(--terracotta); font-family: var(--sans); font-weight: 500; margin-bottom: .5rem; }
.detail-big { font-family: var(--serif); font-size: 1.3rem; color: var(--plum); margin: 0 0 .2rem; }
.detail-card p:last-child { color: var(--ink-soft); font-size: .9rem; margin: 0; }

/* ---------- venue ---------- */
.venue { background: var(--limestone); }
.venue-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; align-items: center; }
.venue-media { position: relative; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.venue-media img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4/5; transition: transform .6s ease; }
.venue-media:hover img { transform: scale(1.04); }
.venue-photo-tag {
  position: absolute; left: 1rem; bottom: 1rem; background: rgba(110,46,77,.9); color: #fff;
  font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; padding: .4rem .9rem; border-radius: 100px;
}
.venue-body h3 { font-size: clamp(1.8rem, 4vw, 2.4rem); color: var(--plum); margin-bottom: .8rem; }
.venue-desc { color: var(--ink-soft); margin-bottom: 1.4rem; }
.venue-address { display: flex; gap: .6rem; font-style: normal; font-family: var(--serif); font-size: 1.15rem; color: var(--ink); margin-bottom: 1.6rem; line-height: 1.5; }
.addr-icon { font-size: 1.1rem; }
.venue-actions { display: flex; gap: .8rem; flex-wrap: wrap; }
.map-embed { margin-top: 2.6rem; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); border: 4px solid #fff; }
.map-embed iframe { display: block; filter: saturate(1.05); }

/* ---------- schedule ---------- */
.schedule { background: var(--ivory); }
.timeline { list-style: none; margin: 0 auto; padding: 0; max-width: 720px; position: relative; }
.timeline::before { content: ""; position: absolute; left: 78px; top: 8px; bottom: 8px; width: 2px; background: linear-gradient(var(--marigold), var(--fuchsia), var(--plum)); }
.tl-item { position: relative; display: grid; grid-template-columns: 64px 1fr; gap: 1.4rem; padding: .7rem 0 1.6rem; align-items: start; }
.tl-time { font-family: var(--serif); font-size: 1.25rem; font-weight: 600; color: var(--terracotta); text-align: right; padding-top: .15rem; }
.tl-dot { position: absolute; left: 71px; top: .55rem; width: 16px; height: 16px; border-radius: 50%; background: var(--fuchsia); border: 3px solid var(--ivory); box-shadow: 0 0 0 2px var(--fuchsia); }
.tl-card { background: #fff; border: 1px solid var(--sand); border-radius: var(--radius); padding: 1.1rem 1.4rem; box-shadow: var(--shadow-soft); margin-left: .6rem; }
.tl-card h3 { font-size: 1.25rem; color: var(--plum); margin-bottom: .2rem; }
.tl-card p { margin: 0; color: var(--ink-soft); font-size: .94rem; }

/* "to be announced" placeholder */
.schedule-tba {
  max-width: 560px; margin: 0 auto; text-align: center;
  background: #fff; border: 2px dashed var(--marigold); border-radius: var(--radius);
  padding: 2.4rem 1.8rem; box-shadow: var(--shadow-soft);
}
.tba-badge {
  display: inline-block; background: var(--marigold); color: #fff;
  font-size: .78rem; letter-spacing: .18em; text-transform: uppercase; font-weight: 600;
  padding: .45rem 1.1rem; border-radius: 100px; margin-bottom: 1rem;
}
.schedule-tba p { margin: 0; color: var(--ink-soft); font-family: var(--serif); font-size: 1.15rem; }

/* ---------- travel ---------- */
.travel { background: var(--limestone); }
.travel-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.6rem; }
.travel-card {
  background: #fff; border: 1px solid var(--sand); border-radius: var(--radius);
  padding: 2rem; box-shadow: var(--shadow-soft); transition: transform .3s, box-shadow .3s;
  border-top: 3px solid var(--marigold);
}
.travel-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.travel-icon { width: 48px; height: 48px; color: var(--terracotta); margin-bottom: .9rem; }
.travel-icon svg { width: 100%; height: 100%; }
.travel-card h3 { font-size: 1.35rem; color: var(--plum); margin-bottom: .5rem; }
.travel-card p { margin: 0; color: var(--ink-soft); }
.travel-card strong { color: var(--terracotta); font-weight: 500; }

/* ---------- stay ---------- */
.stay { background: var(--ivory); }
.stay-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.6rem; }
.stay-card { background: var(--limestone); border-radius: var(--radius); padding: 1.8rem; border-left: 4px solid var(--fuchsia); }
.stay-card h3 { font-size: 1.2rem; color: var(--plum); margin-bottom: .5rem; }
.stay-card p { margin: 0; color: var(--ink-soft); font-size: .95rem; }
.stay-cta { text-align: center; margin-top: 2.2rem; font-family: var(--serif); font-style: italic; font-size: 1.2rem; color: var(--terracotta); }

/* ---------- faq ---------- */
.faq { background: var(--limestone); }
.accordion { display: flex; flex-direction: column; gap: .8rem; }
.acc-item { background: #fff; border: 1px solid var(--sand); border-radius: var(--radius); overflow: hidden; }
.acc-head {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  background: none; border: 0; cursor: pointer; text-align: left;
  font-family: var(--serif); font-size: 1.2rem; color: var(--plum); font-weight: 600;
  padding: 1.15rem 1.4rem;
}
.acc-head:hover { color: var(--fuchsia); }
.acc-sign { position: relative; width: 16px; height: 16px; flex-shrink: 0; }
.acc-sign::before, .acc-sign::after { content: ""; position: absolute; background: var(--terracotta); transition: transform .3s; }
.acc-sign::before { top: 7px; left: 0; width: 16px; height: 2px; }
.acc-sign::after { left: 7px; top: 0; width: 2px; height: 16px; }
.acc-head[aria-expanded="true"] .acc-sign::after { transform: scaleY(0); }
.acc-panel { max-height: 0; overflow: hidden; transition: max-height .35s ease; }
.acc-panel p { margin: 0; padding: 0 1.4rem 1.3rem; color: var(--ink-soft); }

/* ============================================================
   TALAVERA TILE DIVIDER
   ============================================================ */
.tile-divider {
  height: 26px; width: 100%; margin-top: clamp(2rem, 6vw, 4rem); margin-bottom: -1px;
  background-image:
    radial-gradient(circle at 10px 13px, var(--fuchsia) 3.5px, transparent 4px),
    radial-gradient(circle at 30px 13px, var(--marigold) 3.5px, transparent 4px),
    radial-gradient(circle at 50px 13px, var(--turquoise) 3.5px, transparent 4px),
    radial-gradient(circle at 70px 13px, var(--plum) 3.5px, transparent 4px);
  background-size: 80px 26px; background-repeat: repeat-x; background-position: center;
  opacity: .9;
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer { position: relative; background: var(--plum-deep); color: #f6e7d8; padding: 3.5rem 0 2.6rem; text-align: center; }
.foot-mono { font-family: var(--serif); font-size: 2.2rem; color: #fff; margin: .4rem 0; }
.foot-mono .amp { color: var(--marigold); font-style: italic; }
.foot-date { letter-spacing: .14em; text-transform: uppercase; font-size: .8rem; opacity: .85; margin: 0 0 .6rem; }
.foot-hashtag { font-family: var(--script); color: var(--marigold); font-size: 1.8rem; margin: .4rem 0 1.2rem; }
.foot-contact { font-size: .95rem; margin: 0 0 1.4rem; }
.foot-contact a { color: var(--marigold); }
.foot-contact a:hover { color: #fff; }
.foot-lang { color: #f6e7d8; margin: 0 auto 1.4rem; }
.foot-lang.lang-switch { border-color: rgba(246,231,216,.5); }
.foot-lang button.is-active { background: var(--marigold); color: var(--plum-deep); }
.foot-made { font-size: .85rem; opacity: .8; margin: 0; }

/* ============================================================
   MINI-GAME
   ============================================================ */
.game-section { background: var(--ivory); }
.game-shell { max-width: 900px; margin: 0 auto; }

.game-hud {
  display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.6rem;
  justify-content: center; margin-bottom: 1rem;
  font-size: .82rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-soft);
}
.game-hud b { color: var(--terracotta); font-weight: 500; }
.game-hud .hud-item span { font-family: var(--serif); font-size: 1.15rem; color: var(--plum); letter-spacing: 0; }
.hud-best { margin-left: auto; }
.hud-lives { display: inline-flex; gap: 2px; font-size: 1.1rem; }
.hud-lives .hl { color: #d9c4b0; line-height: 1; }
.hud-lives .hl.on { color: var(--fuchsia); }

.game-stage {
  position: relative; width: 100%; aspect-ratio: 16 / 9;
  border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow); border: 4px solid #fff; background: #f2a96b;
}
#gameCanvas {
  display: block; width: 100%; height: 100%; object-fit: contain;
  image-rendering: pixelated; image-rendering: crisp-edges;
  touch-action: manipulation; cursor: pointer;
}

.game-fs {
  position: absolute; top: .6rem; right: .6rem; z-index: 3;
  width: 38px; height: 38px; display: grid; place-items: center;
  border: 0; border-radius: 10px; cursor: pointer; color: #fff;
  background: rgba(48,22,36,.55); backdrop-filter: blur(2px);
  transition: background .2s ease, transform .2s ease;
}
.game-fs:hover { background: rgba(199,44,108,.8); transform: scale(1.06); }
.game-fs .fs-close { display: none; }
.game-stage:fullscreen { width: 100vw; height: 100vh; border: 0; border-radius: 0; background: #1a1015; }
.game-stage:fullscreen .game-fs .fs-open { display: none; }
.game-stage:fullscreen .game-fs .fs-close { display: block; }
.game-stage:-webkit-full-screen { width: 100vw; height: 100vh; border: 0; border-radius: 0; background: #1a1015; }

.game-overlay {
  position: absolute; inset: 0; display: grid; place-items: center;
  background: rgba(48, 22, 36, .55); backdrop-filter: blur(2px); padding: 1rem; text-align: center;
}
.game-overlay[hidden] { display: none; }
.go-panel {
  background: rgba(250, 244, 234, .96); border-radius: var(--radius);
  padding: 1.6rem 1.8rem; max-width: 420px; box-shadow: var(--shadow);
  border-top: 4px solid var(--marigold);
}
.go-panel h3 { font-size: clamp(1.4rem, 4vw, 2rem); color: var(--plum); margin-bottom: .4rem; }
.go-panel p { color: var(--ink-soft); margin: 0 0 .9rem; font-size: .95rem; }
.go-panel .go-score { font-family: var(--serif); font-size: 1.2rem; color: var(--terracotta); }
.go-panel .go-score b { color: var(--plum); }
.go-panel .btn { margin-top: .4rem; }

.game-controls { text-align: center; margin-top: 1rem; font-size: .85rem; color: var(--ink-soft); font-style: italic; }

/* name form inside overlay */
.go-form { display: flex; gap: .5rem; justify-content: center; flex-wrap: wrap; margin: .2rem 0 .6rem; }
.go-form[hidden] { display: none; }
#goName {
  font-family: var(--sans); font-size: .95rem; color: var(--ink);
  padding: .7rem 1rem; border: 1.5px solid var(--sand); border-radius: 100px;
  background: #fff; min-width: 160px; text-align: center;
}
#goName:focus { outline: none; border-color: var(--fuchsia); box-shadow: 0 0 0 3px rgba(199,44,108,.18); }
#goSave { padding: .7rem 1.3rem; }
.go-thanks { font-family: var(--serif); font-size: 1.1rem; color: var(--terracotta); margin: .2rem 0 .8rem; }
.go-thanks[hidden] { display: none; }

/* leaderboard */
.leaderboard { max-width: 460px; margin: 2rem auto 0; }
.leaderboard[hidden] { display: none; }
.leaderboard h3 {
  text-align: center; font-size: 1.5rem; color: var(--plum); margin-bottom: 1rem;
}
.leaderboard h3::after { content: "✿"; display: block; color: var(--marigold); font-size: .8rem; margin-top: .4rem; }
.lb-list { list-style: none; margin: 0; padding: 0; counter-reset: lb; }
.lb-list li {
  display: grid; grid-template-columns: 2rem 1fr auto; align-items: center; gap: .8rem;
  padding: .6rem .9rem; border-bottom: 1px solid var(--sand);
}
.lb-list li:nth-child(1) { background: linear-gradient(90deg, rgba(230,162,60,.18), transparent); border-radius: 10px; }
.lb-rank { font-family: var(--serif); font-size: 1.15rem; font-weight: 600; color: var(--terracotta); text-align: center; }
.lb-list li:nth-child(1) .lb-rank { color: var(--marigold); }
.lb-name { font-weight: 500; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lb-score { font-family: var(--serif); font-size: 1.1rem; color: var(--plum); font-variant-numeric: tabular-nums; }
.lb-empty { text-align: center; color: var(--ink-soft); font-style: italic; }
.lb-empty[hidden] { display: none; }

/* ============================================================
   REVEAL ANIMATION
   ============================================================ */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
.detail-grid .reveal:nth-child(2){ transition-delay:.08s;} .detail-grid .reveal:nth-child(3){ transition-delay:.16s;} .detail-grid .reveal:nth-child(4){ transition-delay:.24s;}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
  .detail-grid { grid-template-columns: repeat(2, 1fr); }
  .venue-grid { grid-template-columns: 1fr; }
  .venue-media img { aspect-ratio: 16/11; }
  .travel-grid { grid-template-columns: 1fr; }
  .stay-grid { grid-template-columns: 1fr; }

  .nav-toggle { display: flex; }
  .main-nav {
    position: fixed; inset: 0 0 0 auto; width: min(80vw, 320px);
    background: var(--plum-deep); flex-direction: column; gap: 0;
    padding: 6rem 2rem 2rem; transform: translateX(100%); transition: transform .35s ease;
    box-shadow: -20px 0 50px -20px rgba(0,0,0,.5);
  }
  .main-nav.open { transform: translateX(0); }
  .main-nav a { color: #fff !important; text-shadow: none !important; padding: 1rem 0; border-bottom: 1px solid rgba(255,255,255,.12); font-size: 1rem; }
  .main-nav a::after { display: none; }
  .site-header:not(.scrolled) .main-nav a { text-shadow: none; }
}

@media (max-width: 560px) {
  .detail-grid { grid-template-columns: 1fr; }
  .timeline::before { left: 58px; }
  .tl-item { grid-template-columns: 48px 1fr; gap: 1rem; }
  .tl-dot { left: 51px; }
  .tl-time { font-size: 1.05rem; }
  .countdown { gap: .9rem; }
  .venue-actions { flex-direction: column; }
  .venue-actions .btn { justify-content: center; }
  .nav-right .lang-switch { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
}


