/* ============================================================
   Tokens (specs/01-visual-direction.md) — measured from the official tour poster
   ============================================================ */
:root {
  --charcoal: #181818;
  --white: #FFFFFF;
  --crimson: #A51930;        /* display only: tour title, ticket accents on white */
  --crimson-lift: #D22C45;   /* large red text on charcoal, CTA rules */
  --light-core: #F1C2A2;
  --light-body: #D2663E;
  --light-halo: #7C2A1F;
  --muted: #A6A6A6;
  --muted-on-white: #7A7470;

  --font-display: "Anton", Impact, "Arial Narrow", sans-serif;
  --font-title: "Amatic SC", "Arial Narrow", sans-serif;
  --font-serif: "Fraunces", Georgia, "Times New Roman", serif;
  --font-sans: "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-detail: "Poppins", "Instrument Sans", system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --ease: cubic-bezier(.2, .7, .2, 1);
  --pad: clamp(24px, 6vw, 40px);

  --bg: var(--charcoal);
  --fg: var(--white);
  --fg-2: var(--muted);
  --accent: var(--crimson-lift);
  --rule: rgb(255 255 255 / .2);
}

@font-face { font-family: "Anton"; src: url("assets/fonts/anton.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Amatic SC"; src: url("assets/fonts/amatic-sc-bold.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Poppins"; src: url("assets/fonts/poppins-600.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Fraunces"; src: url("assets/fonts/fraunces.woff2") format("woff2"); font-weight: 300 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Fraunces"; src: url("assets/fonts/fraunces-italic.woff2") format("woff2"); font-weight: 300 700; font-style: italic; font-display: swap; }
@font-face { font-family: "Instrument Sans"; src: url("assets/fonts/instrument-sans.woff2") format("woff2"); font-weight: 400 700; font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url("assets/fonts/plex-mono.woff2") format("woff2"); font-weight: 400; font-display: swap; }

/* ============================================================
   Base
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
p, h1, dl, dd { margin: 0; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; -webkit-tap-highlight-color: transparent; }
input { font: inherit; color: inherit; }
[hidden] { display: none !important; }

/* ============================================================
   Stage & screens
   ============================================================ */
.stage { position: relative; min-height: 100vh; min-height: 100dvh; }

.screen {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  padding: calc(var(--pad) + env(safe-area-inset-top)) var(--pad) calc(var(--pad) + env(safe-area-inset-bottom));
}
/* margin:auto centres the block and, unlike align-content:center, never clips when content is taller than the screen */
.screen__body { position: relative; width: 100%; max-width: 30rem; margin: auto; display: grid; gap: 1.25rem; }
.screen__body--center { text-align: center; justify-items: center; }

.js .screen {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  overflow-y: auto;
  transition: opacity .4s var(--ease), visibility 0s linear .4s;
}
.js .screen.is-active {
  opacity: 1;
  visibility: visible;
  transition: opacity .6s var(--ease) .15s, visibility 0s;
}
html:not(.js) .screen { border-bottom: 1px solid var(--rule); }

/* Lines stagger in on each screen entry. --delay is set inline per line. */
.line { --delay: 0s; opacity: 0; }
.js .is-active .line { animation: rise .7s var(--ease) both; animation-delay: calc(.15s + var(--delay)); }
html:not(.js) .line { opacity: 1; }
@keyframes rise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }

/* ============================================================
   Type
   ============================================================ */
.display {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(28px, 7.5vw, 36px);
  line-height: 1.25;
  font-variation-settings: "opsz" 24;
  letter-spacing: -0.005em;
}
.display--large { font-size: clamp(40px, 11vw, 52px); line-height: 1.1; font-variation-settings: "opsz" 72; }
.secondary { color: var(--fg-2); }
.eyebrow { font-size: 12px; text-transform: uppercase; letter-spacing: .24em; color: var(--light-body); }

/* ============================================================
   CTAs, options, input
   ============================================================ */
.cta {
  position: relative;
  display: inline-block;
  justify-self: start;
  min-height: 48px;
  padding: .75rem 0;
  font-weight: 500;
  letter-spacing: .01em;
  color: var(--fg);
  text-decoration: none;
  text-align: left;
}
.cta::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: .55rem;
  width: 24px;
  height: 1px;
  background: var(--accent);
  transition: width .5s var(--ease);
}
.cta:hover::after, .cta:active::after, .cta:focus-visible::after { width: 100%; }
.cta:focus-visible { outline: 1px dashed var(--accent); outline-offset: 6px; }
.cta--quiet { color: var(--fg-2); font-weight: 400; font-size: 15px; }
.cta--quiet::after { display: none; }
.cta--center { justify-self: center; text-align: center; }
.cta--center::after { left: 50%; transform: translateX(-50%); }

/* Solid button: every "next" moment in the story reads as a real, obvious button */
.btn {
  display: block;
  width: min(100%, 20rem);
  min-height: 56px;
  padding: .9rem 1.5rem;
  border-radius: 8px;
  background: var(--accent);
  color: var(--white);
  font-family: var(--font-detail);
  font-weight: 600;
  font-size: 18px;
  letter-spacing: .02em;
  text-align: center;
  box-shadow: 0 12px 32px -12px rgb(210 44 69 / .7);
  transition: transform .2s var(--ease), box-shadow .3s var(--ease), background .3s var(--ease);
}
.btn:hover, .btn:focus-visible { background: #E03A53; box-shadow: 0 16px 40px -12px rgb(210 44 69 / .85); }
.btn:active { transform: scale(.98); }
.btn:focus-visible { outline: 2px solid var(--white); outline-offset: 4px; }

/* Back: a quiet control pinned to the top-left of every screen after the first */
.back {
  position: absolute;
  z-index: 2;
  top: calc(var(--pad) + env(safe-area-inset-top) - .6rem);
  left: calc(var(--pad) - .6rem);
  min-height: 44px;
  padding: .6rem;
  font-size: 14px;
  letter-spacing: .04em;
  color: var(--fg-2);
  transition: color .3s var(--ease);
}
.back:hover, .back:focus-visible { color: var(--fg); }
.back:focus-visible { outline: 1px dashed var(--accent); outline-offset: 2px; }
.screen:has(.back) { padding-top: calc(var(--pad) + env(safe-area-inset-top) + 2.75rem); }
html:not(.js) .back { display: none; }


/* ============================================================
   Stage lights (reveal + final). Strings of stacked bokeh discs,
   colours sampled from the poster: core → body → halo.
   They fade in with .stage-name on the reveal and are always on for the final screen.
   ============================================================ */
.lights { position: absolute; inset: 0; pointer-events: none; overflow: hidden; opacity: 0; transition: opacity 2s var(--ease); }
.js .lights { position: fixed; }                 /* stage lights do not scroll with the content */
.screen--final .lights span:nth-child(2), .screen--final .lights span:nth-child(5) { display: none; } /* keep the numerals clear */
.stage-name .lights, .screen--final .lights, html:not(.js) .lights { opacity: 1; }
.lights span {
  position: absolute;
  width: 64px;
  background: radial-gradient(circle at 50% 50%, var(--light-core) 0%, #E4915E 16%, var(--light-body) 34%, rgb(160 62 40 / .75) 50%, rgb(124 42 31 / .35) 62%, transparent 74%) 0 0 / 64px 40px repeat-y;
  filter: blur(2.5px);
  opacity: .85;
}
.lights span::after {
  content: "";
  position: absolute;
  inset: -40% -120%;
  background: radial-gradient(ellipse at 50% 50%, rgb(210 102 62 / .28), rgb(124 42 31 / .12) 45%, transparent 70%);
  filter: blur(10px);
}
.lights span:nth-child(1) { left: 6%;  top: -3%; height: 200px; }
.lights span:nth-child(2) { left: 18%; top: 9%;  height: 120px; opacity: .55; transform: scale(.8); }
.lights span:nth-child(3) { left: 3%;  top: 74%; height: 160px; opacity: .6;  transform: scale(.9); }
.lights span:nth-child(4) { right: 7%; top: 1%;  height: 160px; opacity: .9; }
.lights span:nth-child(5) { right: 20%; top: 14%; height: 100px; opacity: .5; transform: scale(.75); }
.lights span:nth-child(6) { right: 4%; top: 70%; height: 200px; opacity: .6;  transform: scale(.9); }

/* Ambient warm glow behind the name */
.glow {
  position: absolute;
  top: 50%; left: 50%;
  width: 140vw; height: 140vw;
  max-width: 900px; max-height: 900px;
  transform: translate(-50%, -55%);
  background: radial-gradient(closest-side, rgb(210 102 62 / .18), transparent 70%);
  opacity: 0;
  transition: opacity 2s var(--ease);
  pointer-events: none;
}
.stage-name .glow { opacity: 1; }

/* ============================================================
   Reveal screen (staged by .stage-* classes added on a timeline)
   ============================================================ */
.screen--reveal .screen__body { gap: 0; margin-block: 0; }
/* The hero fills the viewport so the name lands centred */
.reveal-hero {
  position: relative;
  min-height: calc(100vh - 2 * var(--pad));
  min-height: calc(100dvh - 2 * var(--pad) - env(safe-area-inset-top) - env(safe-area-inset-bottom));
  display: grid;
  align-content: center;
  justify-items: center;
}

/* The official poster, cropped above the support acts, carries the name and the tour title.
   If the file is missing the typographic name below takes over. */
.poster {
  position: relative;
  margin: 0;
  width: min(100%, 24rem, 52vh * 1084 / 1200);
  aspect-ratio: 1084 / 1200;
  /* Feather the sides and the top so the poster melts into the stage; the bottom stays crisp for the tour title */
  -webkit-mask-image: linear-gradient(to right, transparent, #000 9%, #000 91%, transparent), linear-gradient(to bottom, transparent, #000 10%);
  mask-image: linear-gradient(to right, transparent, #000 9%, #000 91%, transparent), linear-gradient(to bottom, transparent, #000 10%);
  -webkit-mask-composite: source-in;
  mask-composite: intersect;
  opacity: 0;
  clip-path: inset(100% 0 0 0);
  transition: opacity .3s, clip-path 1.1s var(--ease);
}
.poster__img { display: block; width: 100%; height: 100%; object-fit: cover; }
.stage-name .poster { opacity: 1; clip-path: inset(0 0 0 0); }
.poster.is-missing { display: none; }
.reveal-type { display: none; }
.poster.is-missing ~ .reveal-type { display: grid; justify-items: center; }

.headline {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(88px, 28.5vw, 124px);
  line-height: .9;
  letter-spacing: .01em;
  text-transform: uppercase;
  display: grid;
  position: relative;
}
.headline__word {
  display: block;
  opacity: 0;
  clip-path: inset(100% 0 0 0);
  letter-spacing: .08em;
  transition: opacity .3s, clip-path .9s var(--ease), letter-spacing .9s var(--ease);
}
.stage-name .headline__word { opacity: 1; clip-path: inset(0 0 0 0); letter-spacing: .01em; }
.stage-name .headline__word:nth-child(2) { transition-delay: .25s; }

.tour {
  margin-top: .9rem;
  font-family: var(--font-title);
  font-weight: 700;
  font-size: clamp(40px, 11.7vw, 52px);
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: .16em;
  color: var(--crimson);
  opacity: 0;
  transition: opacity .8s var(--ease), letter-spacing .8s var(--ease);
}
.stage-tour .tour { opacity: 1; letter-spacing: .06em; }

.details {
  margin-top: 1.4rem;
  display: grid;
  gap: .3rem;
  margin-bottom: 1.4rem;
  font-family: var(--font-detail);
  font-weight: 600;
  font-size: 15px;
  text-transform: uppercase;
  letter-spacing: .06em;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}
.stage-details .details { opacity: 1; transform: none; }

/* Two tickets, one per seat, dealt one after the other and resting slightly fanned */
.ticket-wrap { width: 100%; display: grid; justify-items: center; }
.ticket--a, .ticket--b {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity .8s var(--ease), transform .8s var(--ease);
}
.stage-ticket .ticket--a { opacity: 1; transform: rotate(-1deg); }
.ticket--b { margin-top: 1rem; }
.stage-second .ticket--b { opacity: 1; transform: rotate(1deg); }
.ticket-wrap .ticket__disclaimer { margin-top: 1.5rem; color: var(--fg-2); font-family: var(--font-mono); font-size: 11px; letter-spacing: .06em; text-align: center; opacity: 0; transition: opacity .6s var(--ease); }
.stage-second .ticket-wrap .ticket__disclaimer { opacity: 1; }
.screen--reveal .btn { opacity: 0; transition: opacity .6s var(--ease), transform .2s var(--ease); }
.stage-continue .btn { opacity: 1; }

/* Ticket screen: first ticket → second ticket → countdown and the button to the notes */
.after-ticket { display: grid; gap: 2.5rem; justify-items: center; opacity: 0; transform: translateY(16px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.stage-rest .after-ticket { opacity: 1; transform: none; }

/* No-JS: every stage is visible */
html:not(.js) .poster, html:not(.js) .headline__word, html:not(.js) .tour, html:not(.js) .details, html:not(.js) .ticket--a, html:not(.js) .ticket--b,
html:not(.js) .ticket-wrap .ticket__disclaimer, html:not(.js) .screen--reveal .btn, html:not(.js) .glow, html:not(.js) .after-ticket {
  opacity: 1; transform: none; clip-path: none;
}
html:not(.js) .headline__word { letter-spacing: .01em; }
html:not(.js) .tour { letter-spacing: .06em; }

/* ============================================================
   Gift photos (steps 2 and 3): a private photo in a plain card, text fallback if the file is missing
   ============================================================ */
.photo {
  margin: 0;
  justify-self: center;
  border-radius: 14px;
  overflow: hidden;
  background: #141414;
  border: 1px solid rgb(255 255 255 / .12);
  box-shadow: 0 24px 48px -24px rgb(0 0 0 / .8);
}
.photo--ramo { width: min(100%, 20rem); aspect-ratio: 1; }
.photo--lego { width: min(100%, 15rem); aspect-ratio: 440 / 615; }
.photo__img { display: block; width: 100%; height: 100%; object-fit: cover; }
.photo.is-missing { display: grid; place-items: center; }
.photo.is-missing .photo__img { display: none; }
.photo--ramo.is-missing::after { content: "💐"; font-size: 40px; opacity: .5; }
.photo--lego.is-missing::after { content: "🧱"; font-size: 40px; opacity: .5; }

/* ============================================================
   Chat screenshot (step 8): a phone-shaped frame around the private image
   ============================================================ */
.phone {
  margin: 0;
  width: min(100%, 17rem);
  justify-self: center;
  aspect-ratio: 9 / 16.5;
  border-radius: 22px;
  overflow: hidden;
  background: #0B141A;
  border: 1px solid rgb(255 255 255 / .12);
  box-shadow: 0 24px 48px -24px rgb(0 0 0 / .8), 0 0 0 6px #0E0E0E;
}
.phone__img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top; }
.phone.is-missing { display: grid; place-items: center; }
.phone.is-missing .phone__img { display: none; }
.phone.is-missing::after { content: "📱"; font-size: 40px; opacity: .5; }

/* ============================================================
   Seat map (step 9): a drawn stadium (js/stadium.js) that zooms onto the section,
   then the seat grid grows out of it. Two states on [data-map-state].
   ============================================================ */
.seatmap {
  position: relative;
  width: 100%;
  aspect-ratio: 710 / 625;
  border-radius: 10px;
  overflow: hidden;
  background: radial-gradient(ellipse at 50% 90%, rgb(210 102 62 / .10), transparent 60%), #141414;
  border: 1px solid rgb(255 255 255 / .08);
  box-shadow: 0 24px 48px -24px rgb(0 0 0 / .8);
}
.seatmap__svg, .stadium { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.seatmap.is-missing .seatmap__svg { display: none; }

.stadium .bowl { fill: #1F1F1F; stroke: rgb(255 255 255 / .10); stroke-width: 1; }
.stadium .floor { fill: #2A2A2A; stroke: rgb(255 255 255 / .16); stroke-width: 1; }
.stadium .floor__label { fill: rgb(255 255 255 / .45); font-family: var(--font-detail); font-size: 15px; letter-spacing: .12em; }
.stadium .stage { fill: #3B2118; stroke: var(--light-body); stroke-width: 1; }
.stadium .stage__label { fill: var(--light-core); font-family: var(--font-detail); font-size: 13px; letter-spacing: .2em; }
.stadium .section rect { fill: #2B2B2B; stroke: rgb(255 255 255 / .22); stroke-width: .6; transition: opacity .6s var(--ease); }
.stadium .section--closed rect { fill: #232323; stroke: rgb(255 255 255 / .12); }
.stadium .section__label { fill: rgb(255 255 255 / .55); font-family: var(--font-detail); letter-spacing: .02em; pointer-events: none; transition: opacity .4s var(--ease); }
.stadium .section--closed .section__label { fill: rgb(255 255 255 / .28); }
.stadium .target { fill: transparent; }
.stadium [data-map-action] { cursor: pointer; }
.stadium .seats { pointer-events: none; }
[data-map-state="section"] .stadium .seats { pointer-events: auto; }
[data-map-state="section"] .stadium .section--hot { pointer-events: none; }

/* The section she is looking for: amber, glowing, pulsing until she taps */
.stadium .section--hot rect { fill: var(--light-body); stroke: var(--light-core); stroke-width: 1; animation: hot-glow 1.8s var(--ease) infinite alternate; }
.stadium .section--hot .section__label { fill: var(--white); font-weight: 600; }
@keyframes hot-glow {
  from { filter: drop-shadow(0 0 2px rgb(241 194 162 / .6)); }
  to   { filter: drop-shadow(0 0 9px rgb(241 194 162 / .95)); }
}

/* Zoomed state: everything else recedes, the hot block dissolves into its seats */
[data-map-state="section"] .stadium .section:not(.section--hot) rect,
[data-map-state="section"] .stadium .floor, [data-map-state="section"] .stadium .stage { opacity: .25; }
[data-map-state="section"] .stadium .section__label,
[data-map-state="section"] .stadium .floor__label, [data-map-state="section"] .stadium .stage__label { opacity: 0; }
[data-map-state="section"] .stadium .section--hot rect { opacity: 0; animation: none; transition: opacity .5s var(--ease) .6s; }

.stadium .seats { opacity: 0; transition: opacity .8s var(--ease) .3s; }
.stadium .seats__grow { transform: scale(.12); transform-box: fill-box; transform-origin: center; transition: transform 1.4s var(--ease); }
[data-map-state="section"] .stadium .seats { opacity: 1; }
[data-map-state="section"] .stadium .seats__grow { transform: scale(1); }
.stadium .seat { fill: #4C4C4C; }
.stadium .seat--mine { fill: var(--light-body); stroke: var(--light-core); stroke-width: 1; }
.stadium .seat-ring {
  fill: rgb(226 165 128 / .18);
  stroke: var(--light-body);
  stroke-width: 1;
  transform-box: fill-box;
  transform-origin: center;
  animation: seat-pulse 1.6s var(--ease) infinite;
}
@keyframes seat-pulse { from { opacity: .95; transform: scale(1); } to { opacity: 0; transform: scale(2.1); } }

/* Text fallback if the drawing fails: the section and seats, plus a plain CTA to continue */
.seatmap__fallback {
  display: none;
  position: absolute;
  inset: 0;
  place-items: center;
  padding: var(--pad);
  text-align: center;
  color: var(--light-core);
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.seatmap.is-missing .seatmap__fallback { display: grid; }
[data-map-fallback-cta] { display: none; justify-self: center; }
.seatmap.is-missing ~ [data-map-fallback-cta] { display: inline-block; }

/* Hints follow the map state */
[data-map-state="section"] [data-map-hint="stadium"] { display: none; }
[data-map-state="stadium"] [data-map-hint="section"] { display: none; }
html:not(.js) .seatmap { aspect-ratio: auto; min-height: 6rem; }

/* ============================================================
   Ticket
   ============================================================ */
.ticket {
  position: relative;
  width: 100%;
  max-width: 22rem;
  padding: 1.25rem 1.25rem 1rem;
  border-radius: 6px;
  background: var(--white);
  color: var(--charcoal);
  box-shadow: 0 24px 48px -24px rgb(0 0 0 / .6);
  text-align: left;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.ticket__row { display: flex; justify-content: space-between; gap: 1rem; }
.ticket__eyebrow { color: var(--crimson); font-size: 11px; letter-spacing: .22em; }
.ticket__artist {
  margin: .75rem 0 1rem;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 46px;
  line-height: .95;
  letter-spacing: .01em;
}
.ticket__rule { height: 1px; margin: .75rem 0; background: var(--crimson); opacity: .8; }
.ticket__venue { margin-top: .5rem; line-height: 1.7; }
/* Chain-link perforation: a nod to the album cover's rose-and-chain frame */
.ticket__perf {
  position: relative;
  height: 8px;
  margin: 1rem -1.25rem;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='8'%3E%3Cellipse cx='6' cy='4' rx='5' ry='2.6' fill='none' stroke='%23A51930' stroke-width='1.1'/%3E%3Cellipse cx='15' cy='4' rx='3' ry='1.3' fill='none' stroke='%23A51930' stroke-width='1.1'/%3E%3C/svg%3E") repeat-x center;
}
.ticket__perf::before, .ticket__perf::after {
  content: ""; position: absolute; top: -4px; width: 16px; height: 16px; border-radius: 50%; background: var(--charcoal);
}
.ticket__perf::before { left: -8px; }
.ticket__perf::after { right: -8px; }
.ticket__grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: .75rem; }
.ticket__grid dt { color: var(--muted-on-white); font-size: 10px; letter-spacing: .2em; }
.ticket__grid dd { margin-top: .25rem; font-size: 14px; }
.ticket__disclaimer { margin-top: 1rem; font-size: 9px; letter-spacing: .08em; text-transform: none; color: var(--muted-on-white); }

/* ============================================================
   Final / landing screen
   ============================================================ */
.screen--final .screen__body { gap: 2rem; padding-block: 1rem; }
.countdown { display: grid; justify-items: center; }
/* Four columns (days · hours · minutes · seconds) that fit a 360px phone; the seconds tick every second */
.countdown__grid { display: grid; grid-template-columns: repeat(4, auto); gap: clamp(.75rem, 3.5vw, 1.25rem); justify-content: center; margin: .5rem 0 .75rem; }
.countdown__grid div { display: grid; }
.countdown__grid dd {
  font-family: var(--font-display);
  font-size: clamp(44px, 13vw, 64px);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.countdown__grid dt { margin-top: .35rem; font-size: 11px; text-transform: uppercase; letter-spacing: .16em; color: var(--light-body); }
.countdown__day-title {
  display: none;
  font-family: var(--font-display);
  font-size: clamp(56px, 16vw, 72px);
  line-height: .95;
  letter-spacing: .01em;
  text-transform: uppercase;
}
.countdown__day-sub {
  display: none;
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 36px;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--crimson);
}
html[data-phase="day"] .countdown__day-title, html[data-phase="day"] .countdown__day-sub { display: block; }
html[data-phase="day"] .countdown__grid, html[data-phase="day"] .countdown__suffix { display: none; }

.homework { display: grid; gap: .5rem; justify-items: center; }
.homework .cta { justify-self: center; }
.final-message { display: grid; gap: .5rem; }

/* Notes screen (step 12): the practical notes, then the closing block (message, replay) */
.notes { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.5rem; counter-reset: note; }
.note {
  position: relative;
  padding-left: 2.25rem;
  font-family: var(--font-serif);
  font-size: clamp(20px, 5.4vw, 24px);
  line-height: 1.35;
  font-variation-settings: "opsz" 24;
  letter-spacing: -0.005em;
}
.note::before {
  counter-increment: note;
  content: counter(note, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: .45em;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .08em;
  color: var(--light-body);
}
.closing { display: grid; gap: 2.5rem; justify-items: center; text-align: center; margin-top: 1.5rem; padding-top: 2.5rem; border-top: 1px solid var(--rule); }

/* ============================================================
   Mute toggle
   ============================================================ */
.mute {
  position: fixed;
  right: calc(16px + env(safe-area-inset-right));
  bottom: calc(16px + env(safe-area-inset-bottom));
  z-index: 10;
  width: 44px; height: 44px;
  display: grid; place-items: center;
  border: 1px solid var(--light-core);
  border-radius: 50%;
  color: var(--light-core);
  background: rgb(24 24 24 / .6);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.mute svg { width: 18px; height: 18px; }
.mute .icon-off { display: none; }
.mute.is-muted .icon-on { display: none; }
.mute.is-muted .icon-off { display: block; }

/* ============================================================
   Reduced motion: same sequence, fades only (requirements §34)
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  .js .is-active .line { animation-name: fade; animation-duration: .3s; }
  .poster, .headline__word, .tour, .details, .ticket--a, .ticket--b, .ticket-wrap .ticket__disclaimer, .screen--reveal .btn, .glow, .lights, .after-ticket,
  .stadium .seats, .stadium .seats__grow, .stadium .section rect, .stadium .section__label {
    transition: opacity .3s ease !important;
    transform: none !important;
    clip-path: none !important;
  }
  .headline__word { letter-spacing: .01em !important; }
  .tour { letter-spacing: .06em !important; }
  .cta::after { transition: none; }
  .stadium .section--hot rect, .stadium .seat-ring { animation: none; }
}
