/* ============================================================
   Design system - premium black & white, minimal
   ============================================================ */

@font-face {
  font-family: "Inter";
  src: url("/assets/fonts/inter-var.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #050505;
  --bg-soft: #0d0d0d;
  --fg: #f5f5f2;
  --fg-dim: rgba(245, 245, 242, 0.55);
  --fg-faint: rgba(245, 245, 242, 0.28);
  --line: rgba(245, 245, 242, 0.14);
  --accent: #f5f5f2;
  --flap: #131313;
  --flap-line: rgba(0, 0, 0, 0.55);
  --ease-swift: cubic-bezier(0.22, 1, 0.36, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html, body {
  height: 100%;
  background: var(--bg);
  color: var(--fg);
  font-family: "Inter", -apple-system, "Helvetica Neue", sans-serif;
  font-variant-numeric: tabular-nums;
  -webkit-font-smoothing: antialiased;
  overflow: hidden;
}

body { font-size: clamp(15px, 1.4vw, 19px); }

/* ---- Slide shell ---- */
.stage {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
}

.slide {
  position: absolute;
  inset: 0;
  display: none;
  flex-direction: column;
  align-items: center;
  /* Center via auto-margin pseudo elements so tall content stays scrollable
     (justify-content: center would clip the top when content overflows) */
  justify-content: flex-start;
  text-align: center;
  padding: clamp(20px, 5vw, 72px);
  overflow-y: auto;
  overflow-x: hidden;
}
.slide::before, .slide::after {
  content: "";
  display: block;
  margin: auto;
  flex-shrink: 0;
}

.slide.active {
  display: flex;
  animation: slideIn 0.7s var(--ease-swift) both;
}

@keyframes slideIn {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Staggered reveal inside a slide */
.slide.active .reveal {
  animation: slideIn 0.8s var(--ease-swift) both;
}
.slide.active .reveal:nth-child(2) { animation-delay: 0.12s; }
.slide.active .reveal:nth-child(3) { animation-delay: 0.24s; }
.slide.active .reveal:nth-child(4) { animation-delay: 0.36s; }
.slide.active .reveal:nth-child(5) { animation-delay: 0.48s; }

/* ---- Typography ---- */
.kicker {
  font-size: clamp(11px, 1vw, 14px);
  font-weight: 500;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: var(--fg-dim);
  margin-bottom: 1.6em;
}

h1.display {
  font-size: clamp(34px, 6.5vw, 96px);
  font-weight: 200;
  letter-spacing: 0.06em;
  line-height: 1.12;
}

h2.display {
  font-size: clamp(26px, 4.2vw, 62px);
  font-weight: 200;
  letter-spacing: 0.04em;
  line-height: 1.18;
  white-space: pre-line;
}

.lede {
  max-width: 46em;
  margin-top: 1.8em;
  font-size: clamp(16px, 1.9vw, 26px);
  font-weight: 300;
  line-height: 1.75;
  color: var(--fg-dim);
}

.hairline {
  width: 56px;
  height: 1px;
  background: var(--fg-faint);
  margin: 2.2em auto;
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6em;
  padding: 0.95em 2.4em;
  background: var(--fg);
  color: var(--bg);
  border: 1px solid var(--fg);
  border-radius: 999px;
  font: inherit;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.82em;
  cursor: pointer;
  transition: transform 0.25s var(--ease-swift), opacity 0.25s;
  user-select: none;
}
.btn:active { transform: scale(0.97); }
.btn[disabled] { opacity: 0.35; pointer-events: none; }

.btn.ghost {
  background: transparent;
  color: var(--fg);
  border-color: var(--line);
}
.btn.ghost:hover { border-color: var(--fg-dim); }

/* ---- Forms ---- */
.form {
  width: min(560px, 100%);
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 26px;
  margin-top: 34px;
}

.field label {
  display: block;
  font-size: 0.72em;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--fg-dim);
  margin-bottom: 10px;
}

.field input[type="number"],
.field input[type="text"],
.field input[type="email"],
.field textarea {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--line);
  color: var(--fg);
  font: inherit;
  font-size: 1.35em;
  font-weight: 300;
  padding: 8px 2px 12px;
  outline: none;
  border-radius: 0;
  transition: border-color 0.3s;
}
.field textarea { font-size: 1.05em; line-height: 1.6; resize: none; }
.field input:focus, .field textarea:focus { border-bottom-color: var(--fg); }
.field input::placeholder, .field textarea::placeholder { color: var(--fg-faint); }

/* Hide number spinners */
.field input[type="number"]::-webkit-outer-spin-button,
.field input[type="number"]::-webkit-inner-spin-button { -webkit-appearance: none; }
.field input[type="number"] { -moz-appearance: textfield; appearance: textfield; }

/* Segmented choice (gender, options) */
.seg {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.seg button {
  flex: 1;
  min-width: 110px;
  padding: 14px 18px;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--fg-dim);
  font: inherit;
  font-size: 0.95em;
  cursor: pointer;
  transition: all 0.3s var(--ease-swift);
}
.seg button.on {
  border-color: var(--fg);
  color: var(--fg);
  background: rgba(245, 245, 242, 0.06);
}

/* Poll options (big vertical) */
.poll-options {
  width: min(480px, 100%);
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 36px;
}
.poll-options button {
  padding: 20px 26px;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 16px;
  color: var(--fg);
  font: inherit;
  font-size: 1.1em;
  font-weight: 300;
  cursor: pointer;
  transition: all 0.3s var(--ease-swift);
  text-align: center;
}
.poll-options button:hover { border-color: var(--fg-dim); }
.poll-options button.on {
  background: var(--fg);
  color: var(--bg);
  border-color: var(--fg);
}

/* ---- Split-flap (flip) counter ---- */
.flip-group {
  display: flex;
  gap: clamp(4px, 0.6vw, 10px);
  justify-content: center;
  perspective: 900px;
}

.flip-digit {
  position: relative;
  width: clamp(38px, 5.4vw, 92px);
  height: clamp(56px, 8vw, 132px);
  border-radius: clamp(6px, 0.7vw, 12px);
  background: var(--flap);
  box-shadow: inset 0 0 0 1px rgba(245, 245, 242, 0.07), 0 10px 30px rgba(0, 0, 0, 0.6);
  font-weight: 300;
  font-size: clamp(34px, 5vw, 84px);
  line-height: 1;
  color: var(--fg);
  overflow: hidden;
}
.flip-digit.sep {
  background: transparent;
  box-shadow: none;
  width: clamp(14px, 1.6vw, 30px);
}

.flip-digit .half {
  position: absolute;
  left: 0;
  width: 100%;
  height: 50%;
  overflow: hidden;
  display: flex;
  justify-content: center;
  backface-visibility: hidden;
}
.flip-digit .half span {
  height: 200%;
  display: flex;
  align-items: center;
}
.flip-digit .top { top: 0; border-bottom: 1px solid var(--flap-line); }
.flip-digit .bottom { bottom: 0; }
.flip-digit .bottom span { transform: translateY(-50%); }

.flip-digit .flap {
  position: absolute;
  left: 0;
  width: 100%;
  height: 50%;
  overflow: hidden;
  display: flex;
  justify-content: center;
  background: var(--flap);
  z-index: 2;
  backface-visibility: hidden;
  /* Flaps only exist during a flip: at rest the static halves do the job */
  visibility: hidden;
}
.flip-digit.flipping .flap { visibility: visible; }
.flip-digit .flap span { height: 200%; display: flex; align-items: center; }

.flip-digit .flap-top {
  top: 0;
  transform-origin: bottom center;
  border-bottom: 1px solid var(--flap-line);
}
.flip-digit .flap-bottom {
  bottom: 0;
  transform-origin: top center;
  transform: rotateX(90deg);
}
.flip-digit .flap-bottom span { transform: translateY(-50%); }

.flip-digit.flipping .flap-top { animation: flapTop var(--flap-ms, 0.28s) ease-in both; }
.flip-digit.flipping .flap-bottom { animation: flapBottom var(--flap-ms, 0.28s) ease-out var(--flap-ms, 0.28s) both; }
.flip-digit.fast { --flap-ms: 0.1s; }

@keyframes flapTop { from { transform: rotateX(0); } to { transform: rotateX(-90deg); } }
@keyframes flapBottom { from { transform: rotateX(90deg); } to { transform: rotateX(0); } }

/* ---- Hero countdown number (replaces the fragile split-flap board) ---- */
.cd-hero {
  font-size: clamp(64px, 13vw, 170px);
  font-weight: 200;
  letter-spacing: 0.01em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  color: var(--fg);
  text-shadow: 0 0 60px rgba(245, 245, 242, 0.12);
}

.flip-label {
  margin-top: 14px;
  font-size: clamp(10px, 0.85vw, 13px);
  font-weight: 500;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--fg-dim);
}

/* Seconds slipping away since the slide opened */
.elapsed {
  margin-top: clamp(18px, 3vh, 34px);
  font-size: clamp(15px, 1.5vw, 21px);
  font-weight: 300;
  line-height: 1.8;
  color: var(--fg-dim);
  letter-spacing: 0.02em;
}
.elapsed b {
  color: var(--fg);
  font-weight: 500;
  font-size: 1.25em;
  padding: 0 0.15em;
  font-variant-numeric: tabular-nums;
}

/* ---- Countdown stats grid ---- */
.stats-grid {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(20px, 3.4vw, 64px);
  justify-content: center;
  margin-top: clamp(24px, 3.5vh, 48px);
}
.stat { text-align: center; }
.stat .num {
  font-size: clamp(30px, 3.6vw, 58px);
  font-weight: 200;
  letter-spacing: 0.02em;
}
.stat .lbl {
  margin-top: 8px;
  font-size: clamp(10px, 0.8vw, 12px);
  font-weight: 500;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--fg-dim);
}

.stat-row {
  width: min(860px, 100%);
  border-top: 1px solid var(--line);
  padding: 18px 6px;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  text-align: left;
}
.stat-row:last-child { border-bottom: 1px solid var(--line); }
.stat-row .k { font-weight: 300; color: var(--fg-dim); font-size: 0.98em; }
.stat-row .v { font-weight: 200; font-size: clamp(20px, 2.3vw, 34px); white-space: nowrap; }

/* ---- Roadmap ---- */
.roadmap {
  width: min(1100px, 100%);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 44px;
}
.rm-stage {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 26px 20px 30px;
  text-align: left;
  transition: all 0.5s var(--ease-swift);
  opacity: 0.5;
}
.rm-stage .range {
  font-size: 0.68em;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--fg-dim);
}
.rm-stage .name {
  font-size: clamp(18px, 1.9vw, 30px);
  font-weight: 300;
  letter-spacing: 0.06em;
  margin: 12px 0 14px;
}
.rm-stage .desc {
  font-size: 0.85em;
  font-weight: 300;
  line-height: 1.65;
  color: var(--fg-dim);
}
.rm-stage.me {
  opacity: 1;
  border-color: var(--fg);
  background: rgba(245, 245, 242, 0.05);
  transform: translateY(-6px);
}
.rm-stage.me::after {
  content: "TU ES ICI";
  position: absolute;
  top: -11px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--fg);
  color: var(--bg);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.22em;
  padding: 4px 12px;
  border-radius: 999px;
  white-space: nowrap;
}

/* ---- Bar results (poll on presenter) ---- */
.bars {
  width: min(720px, 100%);
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 40px;
  text-align: left;
}
.bar-row .bar-head {
  display: flex;
  justify-content: space-between;
  font-size: 0.95em;
  font-weight: 300;
  margin-bottom: 9px;
  color: var(--fg-dim);
}
.bar-row .bar-head .pct { color: var(--fg); font-weight: 400; }
.bar-row .track {
  height: 6px;
  border-radius: 999px;
  background: rgba(245, 245, 242, 0.09);
  overflow: hidden;
}
.bar-row .fill {
  height: 100%;
  width: 0%;
  border-radius: 999px;
  background: var(--fg);
  transition: width 0.9s var(--ease-swift);
}

/* ---- Image slides (train, egg) ---- */
.slide.photo { padding: 0; justify-content: flex-start; }
.slide.photo::after { margin: 0; }
.slide.photo .bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: grayscale(1) contrast(1.05) brightness(0.62);
  transform: scale(1.02);
}
.slide.photo.active .bg { animation: kenburns 24s ease-out both; }
@keyframes kenburns {
  from { transform: scale(1.1); }
  to { transform: scale(1.02); }
}
.slide.photo .veil {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(5, 5, 5, 0.92) 0%, rgba(5, 5, 5, 0.25) 45%, rgba(5, 5, 5, 0.5) 100%);
}
.slide.photo .content {
  position: relative;
  padding: clamp(28px, 6vw, 90px);
  padding-bottom: clamp(48px, 9vh, 110px);
  max-width: 900px;
  margin: 0 auto;
}

/* ---- Envelope ---- */
.envelope-icon {
  width: clamp(64px, 7vw, 110px);
  height: auto;
  stroke: var(--fg);
  stroke-width: 1;
  fill: none;
  opacity: 0.9;
  margin-bottom: 28px;
}

.rules-pills {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin-top: 22px;
  flex-wrap: wrap;
}
.rules-pills span {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 20px;
  font-size: 0.78em;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--fg-dim);
}

/* ---- A/B anchoring ---- */
.ab-choice {
  display: flex;
  gap: 22px;
  margin-top: 44px;
}
.ab-choice button {
  width: clamp(120px, 20vw, 190px);
  aspect-ratio: 1;
  border-radius: 26px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--fg);
  font: inherit;
  font-size: clamp(44px, 6vw, 84px);
  font-weight: 200;
  cursor: pointer;
  transition: all 0.3s var(--ease-swift);
}
.ab-choice button:hover { border-color: var(--fg-dim); }
.ab-choice button.on { background: var(--fg); color: var(--bg); }

.ab-results {
  width: min(1200px, 100%);
  display: grid;
  grid-template-columns: 1fr 1px 1fr;
  gap: clamp(20px, 3vw, 56px);
  margin-top: 40px;
  align-items: start;
}
.ab-results .divider { background: var(--line); height: 100%; min-height: 300px; }
.ab-col .grp {
  font-size: 0.75em;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--fg-dim);
}
.ab-col .anchor-ref {
  margin-top: 6px;
  font-size: 0.9em;
  font-weight: 300;
  color: var(--fg-faint);
}
.ab-col .avg {
  font-size: clamp(44px, 6.4vw, 110px);
  font-weight: 200;
  letter-spacing: 0.01em;
  margin: 18px 0 4px;
  transition: opacity 0.4s;
}
.ab-col .avg small {
  font-size: 0.32em;
  font-weight: 300;
  color: var(--fg-dim);
  letter-spacing: 0.12em;
}
.ab-col .n { font-size: 0.8em; color: var(--fg-faint); }

/* ---- Children ages: one small field per child (no separator needed) ---- */
.children-ages {
  display: flex;
  gap: 10px;
}
.children-ages input {
  flex: 1;
  min-width: 0;
  text-align: center;
}

/* ---- Fading ticker (single item at a time, calm and readable) ---- */
.fade-ticker {
  margin-top: 26px;
  min-height: 1.8em;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.45s var(--ease-swift), transform 0.45s var(--ease-swift);
}
.fade-ticker.show {
  opacity: 1;
  transform: translateY(0);
}
.fade-ticker .tk-value {
  font-size: clamp(18px, 2.2vw, 30px);
  font-weight: 300;
  color: var(--fg-dim);
}
.fade-ticker .tk-name {
  font-size: clamp(22px, 2.8vw, 40px);
  font-weight: 400;
  letter-spacing: 0.06em;
}
.fade-ticker .tk-quote {
  font-size: clamp(19px, 2.4vw, 34px);
  font-weight: 300;
  line-height: 1.4;
  max-width: 26ch;
}
.fade-ticker .tk-author {
  margin-top: 12px;
  font-size: clamp(12px, 1.2vw, 16px);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--fg-faint);
}
.cm-ticker { margin-top: 44px; min-height: 5.2em; }
.mb-ticker { margin-top: 20px; min-height: 2.2em; }

/* ---- Together Marbella (presenter) ---- */
.mb-count-wrap { margin-top: 34px; }
.mb-count {
  font-size: clamp(70px, 14vw, 200px);
  font-weight: 200;
  line-height: 1;
  letter-spacing: -0.02em;
}
.mb-count-label {
  margin-top: 6px;
  font-size: clamp(12px, 1.3vw, 17px);
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--fg-dim);
}

/* ---- Closing slide : Instagram ---- */
.insta-link {
  margin-top: 40px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--fg);
  text-decoration: none;
  font-size: clamp(17px, 2vw, 26px);
  font-weight: 300;
  letter-spacing: 0.08em;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 12px 26px;
  transition: border-color 0.3s var(--ease-swift);
}
.insta-link:hover { border-color: var(--fg-dim); }
.insta-link svg { width: 1.15em; height: 1.15em; }

/* ---- Sliders (traps) ---- */
.traps-list {
  width: min(680px, 100%);
  display: flex;
  flex-direction: column;
  gap: 40px;
  margin-top: 40px;
  text-align: left;
}
.trap .trap-name {
  font-size: 1.15em;
  font-weight: 400;
  letter-spacing: 0.03em;
}
.trap .trap-text {
  margin-top: 6px;
  font-size: 0.88em;
  font-weight: 300;
  color: var(--fg-dim);
  line-height: 1.6;
}
.trap .slider-row {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-top: 18px;
}
.trap .slider-row .val {
  width: 2ch;
  text-align: right;
  font-size: 1.4em;
  font-weight: 200;
}

/* ---- Seasons poll (audience) ---- */
.seasons-list {
  width: min(560px, 100%);
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 30px;
}
.season-card {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 18px 20px;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 16px;
  color: var(--fg);
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.25s ease, background 0.25s ease, color 0.25s ease;
}
.season-card:hover { border-color: var(--fg-dim); }
.season-card.on {
  background: var(--fg);
  color: var(--bg);
  border-color: var(--fg);
}
.season-card.on .season-text { color: rgba(10, 10, 10, 0.65); }
.season-icon {
  flex: 0 0 auto;
  width: 26px;
  height: 26px;
  margin-top: 2px;
}
.season-icon svg { width: 100%; height: 100%; display: block; }
.season-body { display: flex; flex-direction: column; gap: 4px; }
.season-name {
  font-size: 1.05em;
  font-weight: 400;
  letter-spacing: 0.03em;
}
.season-text {
  font-size: 0.84em;
  font-weight: 300;
  color: var(--fg-dim);
  line-height: 1.55;
  transition: color 0.25s ease;
}

/* ---- Seasons distribution (presenter) ---- */
.seasons-bars {
  width: min(720px, 100%);
  display: flex;
  flex-direction: column;
  gap: 26px;
  margin-top: 40px;
  text-align: left;
}
.season-bar .season-bar-name {
  font-size: 1.15em;
  font-weight: 400;
  color: var(--fg);
  letter-spacing: 0.03em;
}
.season-bar .season-bar-text {
  margin-top: 8px;
  font-size: 0.82em;
  font-weight: 300;
  color: var(--fg-dim);
  line-height: 1.55;
}

input[type="range"] {
  flex: 1;
  -webkit-appearance: none;
  appearance: none;
  height: 2px;
  background: rgba(245, 245, 242, 0.18);
  border-radius: 999px;
  outline: none;
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--fg);
  cursor: pointer;
  box-shadow: 0 0 0 6px rgba(245, 245, 242, 0.08);
}
input[type="range"]::-moz-range-thumb {
  width: 26px;
  height: 26px;
  border: none;
  border-radius: 50%;
  background: var(--fg);
  cursor: pointer;
}
.slider-scale {
  display: flex;
  justify-content: space-between;
  font-size: 0.68em;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg-faint);
  margin-top: 10px;
}

/* Gauges on presenter */
.gauges {
  width: min(820px, 100%);
  display: flex;
  flex-direction: column;
  gap: 34px;
  margin-top: 46px;
  text-align: left;
}
.gauge .g-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 12px;
}
.gauge .g-name { font-weight: 300; font-size: 1.1em; }
.gauge .g-avg { font-weight: 200; font-size: 1.7em; }
.gauge .g-avg small { font-size: 0.5em; color: var(--fg-dim); }
.gauge .track {
  height: 5px;
  background: rgba(245, 245, 242, 0.09);
  border-radius: 999px;
  overflow: hidden;
}
.gauge .fill {
  height: 100%;
  width: 0%;
  background: var(--fg);
  border-radius: 999px;
  transition: width 0.9s var(--ease-swift);
}

/* ---- QR / join panel on presenter intro ---- */
.join-panel {
  margin-top: 48px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 26px;
}
.join-panel img {
  width: clamp(170px, 20vw, 300px);
  height: auto;
}
.join-panel .join-count {
  margin-top: 12px;
  color: var(--fg-dim);
  font-weight: 300;
}
.join-panel .join-count b {
  color: var(--fg);
  font-weight: 500;
  font-size: 1.3em;
}

/* ---- Language picker (audience) ---- */
.lang-overlay {
  position: fixed;
  inset: 0;
  z-index: 300;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow-y: auto;
}
.lang-box {
  width: min(400px, 88vw);
  text-align: center;
  padding: 40px 0;
}
.lang-list {
  margin-top: 30px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.lang-list button {
  padding: 16px 24px;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 14px;
  color: var(--fg);
  font: inherit;
  font-size: 1.05em;
  font-weight: 300;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: all 0.3s var(--ease-swift);
}
.lang-list button:hover { border-color: var(--fg-dim); }
.lang-list button.on {
  background: var(--fg);
  color: var(--bg);
  border-color: var(--fg);
}
.lang-switch {
  position: fixed;
  bottom: 14px;
  right: 14px;
  z-index: 250;
  padding: 8px 12px;
  background: rgba(5, 5, 5, 0.6);
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--fg-dim);
  font: inherit;
  font-size: 0.72em;
  font-weight: 500;
  letter-spacing: 0.14em;
  cursor: pointer;
  transition: all 0.3s var(--ease-swift);
}
.lang-switch:hover { color: var(--fg); border-color: var(--fg-dim); }
.lang-switch:empty { display: none; }

/* Pulse dot for "live" */
.dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--fg);
  margin-right: 10px;
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.25; }
}

/* ---- Presenter HUD ---- */
.hud {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 22px;
  font-size: 12px;
  letter-spacing: 0.14em;
  color: var(--fg-faint);
  z-index: 50;
  opacity: 0;
  transition: opacity 0.4s;
}
body:hover .hud { opacity: 1; }
.hud .hud-left, .hud .hud-right { display: flex; gap: 18px; align-items: center; }
.hud button {
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--fg-dim);
  font: inherit;
  padding: 6px 14px;
  cursor: pointer;
}
.hud button:hover { color: var(--fg); border-color: var(--fg-dim); }

/* ---- Waiting states on audience ---- */
.waiting {
  color: var(--fg-dim);
  font-weight: 300;
  line-height: 1.7;
  max-width: 30em;
}
.check-icon {
  width: 76px;
  height: 76px;
  stroke: var(--fg);
  stroke-width: 1.4;
  fill: none;
  margin-bottom: 26px;
}
.check-icon .circle {
  stroke-dasharray: 240;
  stroke-dashoffset: 240;
  animation: draw 0.9s var(--ease-swift) 0.1s forwards;
}
.check-icon .mark {
  stroke-dasharray: 60;
  stroke-dashoffset: 60;
  animation: draw 0.5s var(--ease-swift) 0.75s forwards;
}
@keyframes draw { to { stroke-dashoffset: 0; } }

/* Small helper */
.muted { color: var(--fg-dim); font-weight: 300; }
.spacer-s { height: 18px; }
.spacer-m { height: 36px; }

/* ---- Mobile adjustments ---- */
@media (max-width: 720px) {
  body { overflow: auto; }
  .slide { position: fixed; }
  .roadmap { grid-template-columns: 1fr; gap: 12px; margin-top: 30px; }
  .rm-stage { padding: 20px 18px; }
  .rm-stage:not(.me) .desc { display: none; }
  .ab-results { grid-template-columns: 1fr; }
  .ab-results .divider { display: none; }
  .stat-row .v { font-size: 19px; }
  .join-panel { gap: 22px; }
}
