/* hololive SUPER Karaoke Pre-Offkai: street-poster look drawn from the event logo.
   Ink outline + offset colour shadow is the one rule: headings, stickers, cards, buttons all use it. */
:root {
  --ink: #101014;
  --violet: #7a30f8;
  --violet-d: #5416c9;
  --cyan: #28dcff;
  --pink: #ff4fa0;
  --yellow: #ffe14a;
  --paper: #ecebf3;
  --white: #fff;

  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 9 -5.6'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.2'/%3E%3C/svg%3E");

  --rail: 120px;
  --bar: 72px;
  --pad: clamp(28px, 4vw, 64px);
  --ease: cubic-bezier(.16, 1, .3, 1);
  --body: Archivo, "Zen Kaku Gothic New", "Hiragino Kaku Gothic ProN", "Yu Gothic", system-ui, sans-serif;
  --tag: "Sedgwick Ave Display", "Zen Kaku Gothic New", "Arial Black", sans-serif;
  --head: var(--body);
}

*, *::before, *::after { box-sizing: border-box; }
html, body { height: 100%; margin: 0; overflow: hidden; }
body {
  background: var(--violet); color: var(--ink);
  font-family: var(--body); font-size: 1rem; line-height: 1.55; font-weight: 500;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
::selection { background: var(--pink); color: var(--ink); }
p, ul, ol, dl, dd, h1, h2, h3 { margin: 0; padding: 0; }
ul, ol { list-style: none; }
a { color: inherit; text-decoration-thickness: 2px; text-underline-offset: .2em; }
:focus-visible { outline: 4px solid var(--pink); outline-offset: 3px; border-radius: 6px; }
.pass :focus-visible, .times :focus-visible { outline-color: #fff; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: fixed; left: 12px; top: -80px; z-index: 100; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 8px; transition: top .2s; }
.skip:focus { top: 12px; }
.icon { display: block; flex: none; }
[data-icon] { display: inline-flex; }

/* ---------- left rail ---------- */
.rail {
  position: fixed; inset: 0 auto 0 0; width: var(--rail); z-index: 40;
  background: var(--ink); color: #fff; box-shadow: 6px 0 0 var(--violet);
  display: flex; flex-direction: column; align-items: center; justify-content: space-between;
  padding: clamp(14px, 3vh, 26px) 0;
}
.rail-logo { display: block; width: 92px; margin: -10px 0 -14px; }
.rail-logo img { display: block; width: 100%; height: auto; transition: transform .6s var(--ease); }
.rail-logo:hover img { transform: rotate(-8deg) scale(1.06); }
/* date as a tear-off stub, stuck on crooked */
.rail-stub { position: relative; display: grid; justify-items: center; width: 90px; padding: 10px 0 8px; background: #fff; color: var(--ink); border-radius: 6px; line-height: 1; transform: rotate(-3deg); box-shadow: 5px 5px 0 var(--pink); }
.rail-stub::before, .rail-stub::after { content: ""; position: absolute; top: 50%; width: 12px; height: 12px; margin-top: -6px; border-radius: 50%; background: var(--ink); }
.rail-stub::before { left: -6px; } .rail-stub::after { right: -6px; }
.rail-stub b { font: 400 clamp(2.2rem, 5.6vh, 3rem)/1 var(--tag); padding: 4px 0 2px; }
.stub-day, .stub-mon { font: 800 .72rem/1 var(--body); letter-spacing: .34em; margin-right: -.34em; width: 70%; text-align: center; }
.stub-day { padding-bottom: 6px; border-bottom: 2px dotted var(--ink); }
.stub-mon { padding-top: 6px; border-top: 2px dotted var(--ink); }
/* where you are: a tick per section */
.rail-ticks { display: grid; justify-items: center; gap: 6px; font: 800 .8rem/1 var(--body); font-variant-numeric: tabular-nums; }
.rail-ticks output { color: var(--cyan); font-size: 1.05rem; }
.rail-ticks small { opacity: .6; font-size: .7rem; font-weight: 700; }
.rail-ticks ol { list-style: none; display: grid; gap: 5px; margin: 2px 0; }
.rail-ticks li { width: 28px; height: 3px; border-radius: 2px; background: #fff; opacity: .3; transform: scaleX(.43); transition: transform .35s var(--ease), opacity .3s, background-color .3s; }
.rail-ticks li.on { transform: none; opacity: 1; background: var(--cyan); }
.rail-where { color: inherit; text-decoration: none; display: grid; justify-items: center; gap: 6px; text-align: center; font: 700 .78rem/1.2 var(--body); }

/* ---------- stage and track ---------- */
.stage {
  position: fixed; inset: 0 0 0 var(--rail); overflow-x: auto; overflow-y: hidden;
  scrollbar-width: none; overscroll-behavior: none; cursor: grab;
}
.stage::-webkit-scrollbar { display: none; }
.stage.dragging { cursor: grabbing; user-select: none; }
.stage.dragging a { pointer-events: none; }
.stage:focus-visible { outline-offset: -8px; }
.track { display: flex; height: 100%; width: max-content; }

/* every section is a different wall; spray grain sits over all of them */
.panel {
  --acc: var(--cyan);
  flex: none; position: relative; height: 100%; overflow: hidden;
  display: flex; align-items: center; gap: clamp(28px, 4vw, 72px);
  padding: 13vh var(--pad) calc(var(--bar) + 3vh) var(--pad);
  background: var(--grain), var(--paper);
}
.panel + .panel::before {
  /* wheat-paste seam between walls */
  content: ""; position: absolute; z-index: 5; inset: 0 auto 0 0; width: 8px;
  background: repeating-linear-gradient(180deg, var(--ink) 0 22px, transparent 22px 32px);
}
.hero { --acc: var(--pink); color: var(--ink); background: var(--grain),
  radial-gradient(ellipse 34% 52% at 74% 58%, rgba(40, 220, 255, .6), transparent 72%),
  radial-gradient(ellipse 26% 40% at 46% 12%, rgba(255, 79, 160, .38), transparent 72%),
  radial-gradient(ellipse 30% 40% at 8% 100%, rgba(122, 48, 248, .3), transparent 72%), var(--paper); }
.about { --acc: var(--cyan); color: #fff; background: var(--grain),
  radial-gradient(ellipse 36% 50% at 14% 100%, #a06bff, transparent 72%),
  radial-gradient(ellipse 28% 40% at 88% 0%, #5416c9, transparent 72%), var(--violet); }
.guests { --acc: var(--pink); background: var(--grain),
  radial-gradient(ellipse 30% 48% at 92% 10%, rgba(255, 255, 255, .55), transparent 72%),
  radial-gradient(ellipse 30% 40% at 6% 100%, rgba(122, 48, 248, .35), transparent 72%), var(--cyan); }
.times { --acc: var(--pink); color: #fff; isolation: isolate; background: var(--grain),
  radial-gradient(ellipse 40% 55% at 85% 100%, rgba(122, 48, 248, .55), transparent 72%), var(--ink); }
/* twinkling stars: two dot grids fade in and out out of step */
.times::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(circle, #fff 1.3px, transparent 2px) 0 0 / 97px 97px; animation: twinkle 3.2s ease-in-out infinite; }
.times .twinkle { position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(circle, var(--cyan) 1px, transparent 1.7px) 31px 62px / 71px 71px; animation: twinkle 2.4s ease-in-out -1.2s infinite; }
@keyframes twinkle { 0%, 100% { opacity: .2; } 50% { opacity: 1; } }
.pass { --acc: var(--cyan); background: var(--grain),
  radial-gradient(ellipse 34% 50% at 8% 100%, rgba(122, 48, 248, .5), transparent 72%),
  radial-gradient(ellipse 30% 40% at 96% 6%, rgba(255, 255, 255, .45), transparent 72%), var(--pink); }
.voices { --acc: var(--violet); background: var(--grain),
  radial-gradient(ellipse 34% 46% at 4% 100%, rgba(40, 220, 255, .55), transparent 72%),
  radial-gradient(ellipse 30% 40% at 96% 0%, rgba(255, 79, 160, .3), transparent 72%), var(--paper); }
.end { --acc: var(--cyan); color: #fff; background: var(--grain),
  radial-gradient(ellipse 36% 46% at 18% 100%, rgba(255, 79, 160, .6), transparent 72%),
  radial-gradient(ellipse 30% 44% at 92% 0%, #a06bff, transparent 72%), var(--violet); }

.hero { min-width: calc(100vw - var(--rail)); gap: clamp(20px, 2.4vw, 40px); }
.about { min-width: 1200px; }
.guests { min-width: 1100px; }
.voices { gap: clamp(28px, 4vw, 64px); padding-bottom: calc(var(--bar) + 12vh); }
.end { min-width: calc(100vw - var(--rail)); padding-bottom: calc(var(--bar) + 3vh); }

.deco { position: absolute; z-index: 2; width: var(--s, 50px); pointer-events: none; }
.deco svg { display: block; width: 100%; height: auto; }

/* section sign: a sticker slapped on the wall */
.sign {
  position: absolute; z-index: 6; top: 3.4vh; left: calc(var(--pad) + 4px);
  display: flex; align-items: center; gap: 10px; background: #fff; color: var(--ink);
  border-radius: 8px; padding: 5px 16px 5px 6px; border: 3px solid var(--ink); box-shadow: 4px 4px 0 var(--ink); transform: rotate(-2deg);
}
.times .sign { box-shadow: 4px 4px 0 var(--cyan); }
.code { display: grid; place-items: center; min-width: 38px; height: 32px; padding: 0 8px; background: var(--pink); color: var(--ink); border: 2px solid var(--ink); border-radius: 5px; font: 400 1.25rem/1 var(--tag); }
.sign-name { display: flex; align-items: baseline; gap: 10px; line-height: 1.1; }
.sign-name b { font: 800 1.05rem/1 var(--body); }
.sign-name small { font-size: .8rem; font-weight: 700; }

/* ---------- type ---------- */
.mega {
  font: 400 clamp(3.6rem, 14vh, 8.4rem)/.9 var(--tag); text-transform: uppercase; letter-spacing: .01em;
  color: #fff; -webkit-text-stroke: .085em var(--ink); paint-order: stroke fill;
  text-shadow: .06em .085em 0 var(--acc); transform: rotate(-2.5deg); transform-origin: left bottom;
}
.big { font-size: clamp(1.15rem, 2.8vh, 1.5rem); font-weight: 800; line-height: 1.4; }
.pill { width: fit-content; background: var(--pink); color: var(--ink); border: 3px solid var(--ink); border-radius: 8px; padding: 4px 14px; font: 800 .88rem/1.4 var(--body); transform: rotate(-1.5deg); box-shadow: 4px 4px 0 var(--ink); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 24px;
  background: #fff; color: var(--ink); border: 4px solid var(--ink); border-radius: 10px; box-shadow: 5px 5px 0 var(--ink);
  font: 900 1rem/1 var(--body); text-decoration: none; cursor: pointer;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background-color .2s;
}
.btn:hover { transform: translate(-2px, -2px); box-shadow: 7px 7px 0 var(--ink); }
.btn:active { transform: translate(4px, 4px); box-shadow: 1px 1px 0 var(--ink); }
.btn-primary { background: var(--cyan); }
.btn-wide { width: 100%; }

/* talent poster frame */
.frame { position: relative; flex: none; border: 4px solid var(--ink); border-radius: 16px; background: var(--c, var(--cyan)); box-shadow: 7px 7px 0 var(--ink); }
.frame-in { position: absolute; inset: 0; border-radius: 12px; overflow: hidden; }
.frame { --fw: clamp(140px, 10vw, 200px); width: var(--fw); height: calc(var(--fw) * 1.78); }
.hero-frames .g-art { inset: 4% 4% 30%; }
.frame .g-art svg { transition: transform .5s var(--ease); }
.frame:hover .g-art svg { transform: rotate(-6deg) scale(1.06); }
.frame > .heartpair { position: absolute; z-index: 3; width: 60px; top: -22px; left: -16px; }
.frame-card { background: #fff; color: var(--ink); border: 4px solid var(--ink); border-radius: 14px; box-shadow: 7px 7px 0 var(--acc, var(--ink)); }

/* ---------- 1 hero ---------- */
.hero-main { display: flex; align-items: center; gap: clamp(20px, 2.6vw, 44px); }
.logo { display: block; flex: none; width: clamp(380px, min(50vw, 92vh), 960px); height: auto; filter: drop-shadow(0 12px 0 rgba(16, 16, 20, .14)); }
.hero-text { display: grid; gap: 2.2vh; justify-items: start; width: 22rem; }
.tagline { font: 400 clamp(1.7rem, 4.6vh, 2.6rem)/1.02 var(--tag); text-transform: uppercase; text-shadow: 3px 3px 0 var(--pink); }
.lede { max-width: 40ch; font-size: clamp(.95rem, 2.1vh, 1.08rem); font-weight: 600; }
.cta-row { display: flex; flex-wrap: wrap; gap: 14px; }
.board { background: #fff; border: 4px solid var(--ink); border-radius: 12px; padding: 10px 20px 12px; display: grid; gap: 2px; min-width: 15rem; box-shadow: 6px 6px 0 var(--violet); transform: rotate(1deg); }
.board-head { font: 800 .85rem/1.3 var(--body); color: var(--violet-d); }
.board-eta { font: 400 clamp(1.9rem, 5.2vh, 2.7rem)/1.1 var(--tag); font-variant-numeric: tabular-nums; }
.board-eta i { font: 800 .42em/1 var(--body); color: var(--violet-d); margin-right: .3em; }
.board-meta { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: .8rem; font-weight: 700; }
.hero-cast { display: grid; gap: 2.4vh; align-content: center; margin-top: 7vh; }
.hero-frames { display: flex; gap: 22px; align-items: flex-start; }
.hero-frames .frame:nth-child(odd) { transform: rotate(-2deg); }
.hero-frames .frame:nth-child(even) { margin-top: 5vh; transform: rotate(2deg); }
.hero-frames .frame:nth-child(n+3) > .heartpair { left: auto; right: -16px; }
.plate { position: absolute; z-index: 2; left: 8px; right: 8px; bottom: 8px; background: var(--ink); border-radius: 8px; padding: 8px 8px 10px; text-align: center; transform: rotate(-1.5deg); }
.plate h3 { font: 400 clamp(1.05rem, 2.5vh, 1.4rem)/1.05 var(--tag); color: var(--cyan); text-wrap: balance; letter-spacing: .02em; }
.plate p { font: 600 .76rem/1.3 var(--body); color: #fff; margin-top: 2px; }
.hint { position: absolute; z-index: 4; left: calc(var(--pad) + 4px); bottom: calc(var(--bar) + 2.2vh); display: flex; align-items: center; gap: 8px; background: #fff; border: 3px solid var(--ink); border-radius: 8px; box-shadow: 3px 3px 0 var(--ink); padding: 6px 14px; font: 800 .88rem/1.2 var(--body); }

/* one orchestrated moment: the logo is sprayed on */
.ready .logo { animation: spray 1.1s var(--ease) both; }
.ready .hero-text, .ready .hero-cast { animation: rise .9s var(--ease) .35s both; }
@keyframes spray { from { opacity: 0; transform: scale(.86) rotate(-4deg); filter: blur(10px); } }
@keyframes rise { from { opacity: 0; transform: translateY(16px); } }

/* ---------- 2 about ---------- */
.about-copy { display: grid; gap: 1.1em; width: min(30rem, 36vw); min-width: 22rem; }
.about-copy p:not(.big) { font-weight: 600; }
.facts { width: 17rem; padding: 6px 22px; transform: rotate(1.5deg); }
.facts > div { padding: 12px 0; }
.facts > div + div { border-top: 3px dotted var(--ink); }
.facts dt { font: 800 .85rem/1.2 var(--body); color: var(--violet-d); }
.facts dd { font-weight: 800; line-height: 1.35; }
.facts small { font-weight: 600; font-size: .85rem; }

.map-link { display: inline-block; margin-top: 6px; font: 800 .85rem/1.3 var(--body); color: var(--violet-d); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: .2em; }
.map-link:hover { color: var(--pink); }
.facts dd .map-link { display: block; }
.rail-where:hover span { text-decoration: underline; text-underline-offset: .2em; }

/* ---------- guests ---------- */
.guests { gap: clamp(56px, 7vw, 120px); }
.guests-intro { flex: none; display: grid; gap: 2.2vh; width: max-content; max-width: 28rem; padding-right: 1.5rem; align-content: center; }
.guests-intro .big, .guests-note { max-width: 22rem; }
.guests-note { font: 700 .85rem/1.4 var(--body); }
.guest-frames { flex: none; display: flex; gap: 26px; align-items: flex-start; padding: 20px 28px 0 20px; }
.guest-frames .frame:nth-child(odd) { transform: rotate(-2deg); }
.guest-frames .frame:nth-child(even) { margin-top: 5vh; transform: rotate(2deg); }
.guest-frames .frame:nth-child(n+3) > .heartpair { left: auto; right: -16px; }
.gframe { --fw: clamp(172px, 14vw, 220px); }
.g-art { position: absolute; inset: 8% 8% 34%; display: grid; place-items: center; }
.g-art svg { width: 100%; height: 100%; }

/* ---------- 4 timetable ---------- */
.times-side { display: grid; gap: 3vh; width: 21rem; align-content: center; }
.times .mega { font-size: clamp(3.2rem, 12vh, 7.4rem); }
.clock { width: min(14rem, 25vh); aspect-ratio: 1; }
.clock-note { font-size: .85rem; font-weight: 600; max-width: 30ch; color: #d4d3ea; }
.departures { width: min(46rem, 58vw); flex: none; background: rgba(255, 255, 255, .06); border: 4px solid var(--cyan); border-radius: 14px; box-shadow: 8px 8px 0 var(--pink); padding: 8px 24px; }
.dep { display: grid; grid-template-columns: 5.4rem 1fr auto; align-items: center; gap: 18px; padding: 3px 0; border-bottom: 2px dashed rgba(255, 255, 255, .25); }
.dep:last-child { border-bottom: 0; }
.dep .t { color: var(--cyan); font: 900 1.45rem/1.2 var(--body); font-variant-numeric: tabular-nums; }
.dep .n { color: #fff; font-weight: 700; font-size: 1.02rem; line-height: 1.25; }
.dep .h { display: inline-flex; align-items: center; gap: 8px; font: 800 .8rem/1 var(--body); padding: 4px 12px 4px 6px; border-radius: 6px; color: var(--ink); background: var(--c); transform: rotate(-1.5deg); }
.dep .h i { width: 14px; height: 14px; border-radius: 3px; background: var(--ink); }
.dep.is-next, .dep.is-live { margin: 2px -24px; padding: 3px 24px; background: rgba(255, 79, 160, .2); box-shadow: inset 0 0 0 2px var(--pink); border-radius: 8px; border-bottom: 0; }
.dep.is-next .n::after, .dep.is-live .n::after { content: attr(data-flag); margin-left: 12px; padding: 2px 10px; border-radius: 5px; background: var(--yellow); color: var(--ink); font: 800 .75rem/1.4 var(--body); }
.dep.is-live .n::after { background: var(--pink); }

/* ---------- 5 entry ---------- */
.pass-intro { display: grid; gap: 2.4vh; width: 15rem; align-content: center; }
.pass-intro p { font-weight: 800; max-width: 22ch; }
.ticket-one { display: grid; gap: 16px; width: 300px; }
.t-note { font-size: .82rem; font-weight: 600; line-height: 1.5; }
.ticket-wrap { filter: drop-shadow(3px 0 0 var(--ink)) drop-shadow(-3px 0 0 var(--ink)) drop-shadow(0 3px 0 var(--ink)) drop-shadow(0 -3px 0 var(--ink)) drop-shadow(9px 9px 0 var(--ink)); transform: rotate(-1.5deg); }
.ticket {
  --tc: var(--cyan); position: relative; display: flex; flex-direction: column; gap: 10px; padding: 24px 22px 18px;
  background: #fff; color: var(--ink); border-radius: 14px;
  -webkit-mask: radial-gradient(circle 14px at 0 64%, transparent 13px, #000 14px) left / 51% 100% no-repeat, radial-gradient(circle 14px at 100% 64%, transparent 13px, #000 14px) right / 51% 100% no-repeat;
  mask: radial-gradient(circle 14px at 0 64%, transparent 13px, #000 14px) left / 51% 100% no-repeat, radial-gradient(circle 14px at 100% 64%, transparent 13px, #000 14px) right / 51% 100% no-repeat;
}
.ticket::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 14px; background: var(--violet); }
.t-name { font: 400 1.9rem/1 var(--tag); text-transform: uppercase; margin-top: 8px; }
.t-jp { font-weight: 700; font-size: .9rem; margin-top: -6px; }
.t-price { font: 400 2.6rem/1 var(--tag); white-space: nowrap; width: fit-content; padding: 4px 14px 6px; background: var(--tc); border: 3px solid var(--ink); border-radius: 8px; }
.t-price small { font: 700 .8rem/1 var(--body); margin-left: 8px; }
.t-perks { display: grid; gap: 7px; padding: 14px 0; border-top: 3px dashed var(--ink); border-bottom: 3px dashed var(--ink); font-weight: 700; font-size: .95rem; line-height: 1.35; }
.t-perks li { display: grid; grid-template-columns: 22px 1fr; gap: 8px; align-items: start; }
.t-perks .icon { width: 20px; height: 20px; padding: 2px; border-radius: 5px; background: var(--tc); border: 2px solid var(--ink); }
.t-serial { font: 800 .95rem/1 var(--body); letter-spacing: .16em; text-align: center; padding-top: 24px; background: repeating-linear-gradient(90deg, var(--ink) 0 2px, transparent 2px 5px, var(--ink) 5px 6px, transparent 6px 10px, var(--ink) 10px 14px, transparent 14px 17px) top / 100% 16px no-repeat; }
.steps { display: grid; width: 27rem; }
.steps li { position: relative; padding: 0 0 4.2vh 50px; display: grid; gap: 2px; }
.steps li::before { content: ""; position: absolute; left: 0; top: 4px; width: 26px; height: 26px; border-radius: 6px; background: var(--ink); border: 5px solid #fff; z-index: 1; transform: rotate(8deg); }
.steps li::after { content: ""; position: absolute; left: 10px; top: 22px; bottom: -8px; width: 6px; background: var(--ink); border-radius: 3px; }
.steps li:last-child::after { display: none; }
.steps b { font: 400 1.9rem/1.05 var(--tag); text-transform: uppercase; }
.steps span { font-weight: 600; font-size: .98rem; line-height: 1.45; max-width: 34ch; }

/* ---------- 6 info ---------- */
.qa-grid { display: grid; grid-auto-flow: column; grid-template-rows: repeat(2, auto); grid-auto-columns: 21rem; gap: 26px; align-items: start; }
.qa { background: #fff; border: 4px solid var(--ink); border-radius: 12px; padding: 16px 20px 18px; box-shadow: 6px 6px 0 var(--violet); }
.qa:nth-child(odd) { transform: rotate(-.8deg); }
.qa:nth-child(even) { transform: rotate(.8deg); box-shadow: 6px 6px 0 var(--cyan); }
.qa:nth-child(n+3):nth-child(-n+4) { margin-top: 4vh; }
.qa h3 { font: 800 1.05rem/1.3 var(--body); color: var(--violet-d); margin-bottom: 6px; }
.qa p { font-weight: 600; font-size: .95rem; line-height: 1.55; }

/* ---------- 7 register ---------- */
.end-main { display: grid; gap: 3vh; justify-items: start; }
.join {
  display: inline-flex; align-items: center; gap: 14px; padding: 0 40px 0 30px; min-height: 84px; border-radius: 12px;
  background: var(--cyan); color: var(--ink); text-decoration: none; border: 5px solid var(--ink);
  font: 400 2rem/1 var(--tag); text-transform: uppercase; box-shadow: 8px 8px 0 var(--ink); transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.join:hover { transform: translate(-3px, -3px) rotate(-1deg); box-shadow: 11px 11px 0 var(--ink); }
.join:active { transform: translate(5px, 5px); box-shadow: 2px 2px 0 var(--ink); }
.end-note { font-size: .85rem; font-weight: 600; max-width: 36ch; }
.end-note code { font: 700 .85em/1 var(--body); background: rgba(255, 255, 255, .22); padding: 2px 6px; border-radius: 4px; }
.end-side { display: grid; gap: 3vh; width: 23rem; align-content: center; }
.rules { padding: 18px 24px 22px; transform: rotate(1deg); }
.rules h3 { font: 400 2rem/1 var(--tag); text-transform: uppercase; margin-bottom: 10px; }
.rules ol { counter-reset: r; display: grid; gap: 10px; }
.rules li { counter-increment: r; display: grid; grid-template-columns: 30px 1fr; gap: 10px; font-weight: 600; font-size: .95rem; line-height: 1.45; }
.rules li::before { content: counter(r); display: grid; place-items: center; width: 28px; height: 28px; border-radius: 6px; background: var(--pink); border: 2px solid var(--ink); color: var(--ink); font: 400 1.15rem/1 var(--tag); }
.socials { display: grid; gap: 8px; }
.socials p { font: 800 .95rem/1.2 var(--body); }
.socials ul { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; }
.socials a { display: grid; gap: 2px; min-height: 44px; padding: 6px 13px; background: #fff; color: var(--ink); border: 3px solid var(--ink); border-radius: 8px; box-shadow: 4px 4px 0 var(--ink); text-decoration: none; transition: transform .25s var(--ease), box-shadow .25s var(--ease), background-color .2s; }
.socials a:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--ink); background: var(--cyan); }
.socials b { font: 900 .95rem/1 var(--body); }
.socials span { font-size: .74rem; font-weight: 700; }
.credits { font-size: .8rem; font-weight: 600; line-height: 1.55; display: grid; gap: 6px; color: rgba(255, 255, 255, .88); }


/* ---------- route bar ---------- */
.route { position: fixed; z-index: 30; left: var(--rail); right: 0; bottom: 0; height: var(--bar); background: linear-gradient(var(--ink), var(--ink)) top / 100% 5px no-repeat, #fff; padding: 0 var(--pad); }
.route-line { position: absolute; left: var(--pad); right: var(--pad); top: 29px; height: 10px; background: #dcd3f5; border-radius: 3px; }
.route-fill { position: absolute; inset: 0 auto 0 0; width: 0; border-radius: 3px; background: linear-gradient(90deg, var(--cyan), var(--pink)); }
#routeList { position: absolute; left: var(--pad); right: var(--pad); top: 5px; height: calc(100% - 5px); }
#routeList li { position: absolute; top: 0; transform: translateX(-50%); }
#routeList button { position: relative; display: grid; justify-items: center; padding: 50px 8px 0; min-width: 44px; min-height: 44px; background: none; border: 0; color: var(--ink); font: 800 .78rem/1.1 var(--body); cursor: pointer; }
/* stations are white notes with an ink outline; a crotchet until the progress passes, then a quaver */
#routeList button::before { content: ""; position: absolute; left: 50%; top: 11px; width: 27px; height: 31px; transform: translateX(-38%); transform-origin: 35% 75%;
  background: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='-3%20-1%2032%2036'%3E%3Cg%20fill='%23101014'%20stroke='%23101014'%20stroke-width='4.4'%20stroke-linejoin='round'%3E%3Crect%20x='13.4'%20y='3'%20width='2.8'%20height='22'%20rx='1.1'/%3E%3Cellipse%20cx='9'%20cy='24'%20rx='6.4'%20ry='4.7'%20transform='rotate%28-20%209%2024%29'/%3E%3C/g%3E%3Cg%20fill='%23fff'%3E%3Crect%20x='13.4'%20y='3'%20width='2.8'%20height='22'%20rx='1.1'/%3E%3Cellipse%20cx='9'%20cy='24'%20rx='6.4'%20ry='4.7'%20transform='rotate%28-20%209%2024%29'/%3E%3C/g%3E%3C/svg%3E") center / contain no-repeat; transition: transform .4s var(--ease); }
#routeList button.quaver::before { background-image: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='-3%20-1%2032%2036'%3E%3Cg%20fill='%23101014'%20stroke='%23101014'%20stroke-width='4.4'%20stroke-linejoin='round'%3E%3Crect%20x='13.4'%20y='3'%20width='2.8'%20height='22'%20rx='1.1'/%3E%3Cellipse%20cx='9'%20cy='24'%20rx='6.4'%20ry='4.7'%20transform='rotate%28-20%209%2024%29'/%3E%3Cpath%20d='M15.6%203C16.6%2011%2025%2012.4%2023.6%2021.5C22.4%2015.6%2019.2%2014.6%2015.6%2012.6Z'/%3E%3C/g%3E%3Cg%20fill='%23fff'%3E%3Crect%20x='13.4'%20y='3'%20width='2.8'%20height='22'%20rx='1.1'/%3E%3Cellipse%20cx='9'%20cy='24'%20rx='6.4'%20ry='4.7'%20transform='rotate%28-20%209%2024%29'/%3E%3Cpath%20d='M15.6%203C16.6%2011%2025%2012.4%2023.6%2021.5C22.4%2015.6%2019.2%2014.6%2015.6%2012.6Z'/%3E%3C/g%3E%3C/svg%3E"); }
#routeList button[aria-current="step"]::before { background-image: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='-3%20-1%2032%2036'%3E%3Cg%20fill='%23ff4fa0'%20stroke='%23ff4fa0'%20stroke-width='4.4'%20stroke-linejoin='round'%3E%3Crect%20x='13.4'%20y='3'%20width='2.8'%20height='22'%20rx='1.1'/%3E%3Cellipse%20cx='9'%20cy='24'%20rx='6.4'%20ry='4.7'%20transform='rotate%28-20%209%2024%29'/%3E%3C/g%3E%3Cg%20fill='%23fff'%3E%3Crect%20x='13.4'%20y='3'%20width='2.8'%20height='22'%20rx='1.1'/%3E%3Cellipse%20cx='9'%20cy='24'%20rx='6.4'%20ry='4.7'%20transform='rotate%28-20%209%2024%29'/%3E%3C/g%3E%3C/svg%3E"); transform: translateX(-38%) scale(1.15); }
#routeList button[aria-current="step"].quaver::before { background-image: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='-3%20-1%2032%2036'%3E%3Cg%20fill='%23ff4fa0'%20stroke='%23ff4fa0'%20stroke-width='4.4'%20stroke-linejoin='round'%3E%3Crect%20x='13.4'%20y='3'%20width='2.8'%20height='22'%20rx='1.1'/%3E%3Cellipse%20cx='9'%20cy='24'%20rx='6.4'%20ry='4.7'%20transform='rotate%28-20%209%2024%29'/%3E%3Cpath%20d='M15.6%203C16.6%2011%2025%2012.4%2023.6%2021.5C22.4%2015.6%2019.2%2014.6%2015.6%2012.6Z'/%3E%3C/g%3E%3Cg%20fill='%23fff'%3E%3Crect%20x='13.4'%20y='3'%20width='2.8'%20height='22'%20rx='1.1'/%3E%3Cellipse%20cx='9'%20cy='24'%20rx='6.4'%20ry='4.7'%20transform='rotate%28-20%209%2024%29'/%3E%3Cpath%20d='M15.6%203C16.6%2011%2025%2012.4%2023.6%2021.5C22.4%2015.6%2019.2%2014.6%2015.6%2012.6Z'/%3E%3C/g%3E%3C/svg%3E"); }
#routeList button span { opacity: .85; }
#routeList button[aria-current="step"] span { opacity: 1; font-weight: 900; }
#routeList button:hover::before { transform: translateX(-38%) translateY(-2px); }

/* ---------- phones: the page scrolls down, header and footer stay put ---------- */
@media (max-width: 800px) {
  :root { --rail: 0px; --head-h: 56px; --bar: 80px; --pad: 20px; }
  .rail { inset: 0 0 auto 0; width: 100%; height: var(--head-h); flex-direction: row; padding: 0 16px; box-shadow: 0 4px 0 var(--violet); }
  .rail-logo { width: 46px; margin: 0; }
  .rail-stub { display: flex; flex-direction: row; align-items: center; gap: 7px; width: auto; padding: 4px 12px; transform: none; box-shadow: 3px 3px 0 var(--pink); }
  .rail-stub::before, .rail-stub::after, .rail-where, .rail-ticks ol { display: none; }
  .rail-stub b { font-size: 1.6rem; padding: 0; }
  .stub-day, .stub-mon { width: auto; padding: 0; border: 0; margin: 0; letter-spacing: .18em; }
  .rail-ticks { display: flex; align-items: baseline; gap: 4px; }
  .rail-ticks output { font-size: 1.1rem; }
  .rail-ticks small { display: inline; font-size: .8rem; }
  .rail-ticks small::before { content: "/ "; }

  .stage { inset: var(--head-h) 0 var(--bar) 0; overflow-x: hidden; overflow-y: auto; cursor: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }
  .track { flex-direction: column; width: 100%; height: auto; }
  .panel, .hero, .about, .guests, .end, .voices { width: 100%; min-width: 0; height: auto; min-height: calc(100svh - var(--head-h) - var(--bar));
    flex-direction: column; align-items: flex-start; justify-content: flex-start; gap: 26px; padding: 96px var(--pad) 44px; }
  .panel + .panel::before { inset: 0 0 auto 0; width: auto; height: 8px; background: repeating-linear-gradient(90deg, var(--ink) 0 22px, transparent 22px 32px); }
  .end { padding-bottom: 96px; }
  .sign { top: 20px; }
  /* tall walls: keep the spray blobs round instead of stretching them */
  .hero { background: var(--grain), radial-gradient(circle 240px at 90% 420px, rgba(40, 220, 255, .6), transparent), radial-gradient(circle 220px at 10% 120px, rgba(255, 79, 160, .38), transparent), var(--paper); }
  .about { background: var(--grain), radial-gradient(circle 260px at 10% 90%, #a06bff, transparent), radial-gradient(circle 220px at 95% 4%, #5416c9, transparent), var(--violet); }
  .guests { background: var(--grain), radial-gradient(circle 240px at 95% 8%, rgba(255, 255, 255, .55), transparent), radial-gradient(circle 240px at 5% 96%, rgba(122, 48, 248, .35), transparent), var(--cyan); }
  .times { background: var(--grain), radial-gradient(circle 260px at 90% 96%, rgba(122, 48, 248, .55), transparent), var(--ink); }
  .pass { background: var(--grain), radial-gradient(circle 260px at 6% 96%, rgba(122, 48, 248, .5), transparent), radial-gradient(circle 220px at 96% 4%, rgba(255, 255, 255, .45), transparent), var(--pink); }
  .voices { background: var(--grain), radial-gradient(circle 260px at 6% 96%, rgba(40, 220, 255, .55), transparent), var(--paper); }
  .end { background: var(--grain), radial-gradient(circle 260px at 10% 96%, rgba(255, 79, 160, .6), transparent), radial-gradient(circle 240px at 96% 4%, #a06bff, transparent), var(--violet); }
  .hint, .deco { display: none; }

  .mega { font-size: clamp(3.2rem, 17vw, 4.8rem); margin-right: 0 !important; }
  .times .mega { font-size: clamp(3.2rem, 17vw, 4.8rem); }
  .hero-main { flex-direction: column; align-items: flex-start; gap: 18px; }
  .logo { width: min(100%, 26rem); }
  .hero-text { width: 100%; }
  .hero-cast { margin-top: 0; width: 100%; }
  .hero-frames, .guest-frames { display: grid; grid-template-columns: repeat(2, min(150px, 38vw)); gap: 26px 22px; padding: 12px 8px 8px 0; justify-content: start; }
  .frame { --fw: min(150px, 38vw); }
  .gframe { --fw: min(150px, 38vw); }
  .hero-frames .frame:nth-child(even), .guest-frames .frame:nth-child(even) { margin-top: 18px; }
  .about-copy { width: 100%; min-width: 0; }
  .facts { width: 100%; }
  .guests-intro, .times-side, .pass-intro, .end-main, .end-side { width: 100%; max-width: none; padding-right: 0; }
  .clock { width: min(12rem, 60vw); }
  .departures { width: 100%; padding: 8px 16px; }
  .dep { grid-template-columns: 4.2rem 1fr; gap: 12px; }
  .dep .h { display: none; }
  .dep.is-next, .dep.is-live { margin: 2px -16px; padding: 3px 16px; }
  .ticket-one { width: min(300px, 100%); }
  .steps { width: 100%; }
  .qa-grid { grid-auto-flow: row; grid-template-rows: none; grid-auto-columns: 100%; width: 100%; gap: 22px; }
  .qa:nth-child(n+3):nth-child(-n+4) { margin-top: 0; }
  .join { font-size: 1.5rem; min-height: 68px; padding: 0 28px 0 22px; }
  /* phones: everything centred, except what sits inside a card */
  .panel { align-items: center; text-align: center; }
  .sign { left: 50%; width: max-content; white-space: nowrap; transform: translateX(-50%) rotate(-2deg); }
  .mega { transform-origin: center; }
  .hero-main { align-items: center; }
  .hero-text, .hero-cast, .guests-intro, .times-side, .pass-intro, .end-main, .end-side { justify-items: center; }
  .cta-row, .socials ul { justify-content: center; }
  .hero-frames, .guest-frames { justify-content: center; }
  .socials, .credits { justify-items: center; }
  .frame-card, .qa, .ticket, .board, .departures, .steps { text-align: left; }
  .ticket-one { justify-items: center; }
  .route { left: 0; }
  #routeList button span { display: none; }
  #routeList button[aria-current="step"] span { display: block; position: absolute; top: 50px; white-space: nowrap; }
}
@media (max-height: 700px) {
  .rail-where span { display: none; }
  .hero-frames { margin-top: 4vh; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
  .times::after, .times .twinkle { animation: none; opacity: .7; }
  .ready .logo, .ready .hero-text, .ready .hero-cast { animation: none; }
}
