/* The Windsor Hearing: holding page. "Progress Christmas" palette, Satoshi. */

@font-face { font-family: "Satoshi"; src: url("fonts/Satoshi-Regular.otf") format("opentype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Satoshi"; src: url("fonts/Satoshi-Medium.otf") format("opentype"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Satoshi"; src: url("fonts/Satoshi-Bold.otf") format("opentype"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Satoshi"; src: url("fonts/Satoshi-Black.otf") format("opentype"); font-weight: 900; font-display: swap; }

:root {
  --pine: #00342C;
  /* the page ground: Christmas red (James, 6 Dec: "really christmassy, the reds") */
  --bg: #A3091C;
  --bg-lift: #C4132A;
  --bg-deep: #4E030E;
  --pine-deep: #001C17;
  --pine-lift: #0B4A3F;
  --red: #A3091C;
  --soft-red: #D13C3D;
  --pink: #DC006B;
  --yellow: #FFED00;
  --leaf: #57B740;
  --snow: #FFFFFF;
  --cork: #A9774A;
  --kraft: #C9A885;
  --ink: #0C0C0C;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--snow);
  font-family: "Satoshi", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-weight: 400;
  line-height: 1.4;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body::before {
  content: "";
  position: fixed; inset: 0; z-index: -2;
  background: radial-gradient(ellipse 90% 70% at 50% 42%, var(--bg-lift) 0%, var(--bg) 48%, var(--bg-deep) 100%);
}

#lights { position: absolute; top: 0; left: 0; right: 0; height: 80px; pointer-events: none; overflow: hidden; }
#lights svg { display: block; }
.bulb { animation: twinkle 2.8s ease-in-out infinite alternate; filter: drop-shadow(0 0 7px var(--c)); }
@keyframes twinkle { from { opacity: .55; } to { opacity: 1; } }

main { max-width: 1040px; margin: 0 auto; padding: 0 16px calc(96px + env(safe-area-inset-bottom)); }
p { margin: 0; }
em { font-style: normal; color: var(--yellow); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.small { font-size: 14px; opacity: .78; }

.kicker, .label {
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: .34em;
  font-size: 12px;
  padding-left: .34em;
}
.kicker { color: var(--pink); }
.label { color: var(--yellow); }

/* ---------- hero ---------- */
.hero { text-align: center; padding-top: 96px; }
.hero h1 {
  margin: 14px 0 16px;
  font-weight: 900;
  font-size: clamp(38px, 12.2vw, 80px);
  line-height: .98;
  letter-spacing: 0;
  text-transform: uppercase;
}
.hero h1 .line { display: block; }
.hero h1 .w { display: inline-block; }
.hero h1 .safe { display: inline-block; margin-top: .14em; padding: .08em .24em .1em; background: var(--red); color: var(--snow); box-shadow: 0 10px 30px rgba(0,0,0,.35); }
.prod { font-size: clamp(16px, 4.4vw, 22px); }
.prod b { display: block; color: var(--yellow); font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }

/* ---------- countdown / film ---------- */
#stage { text-align: center; margin-top: 34px; }
.clock-wrap { position: relative; width: min(88vw, 400px); aspect-ratio: 1; margin: 14px auto 0; }
#dial { display: block; width: 100%; height: 100%; overflow: visible; }
#dial .dface { fill: rgba(0, 14, 11, .5); stroke: rgba(255,255,255,.16); stroke-width: 1.5; }
#dial .tk { fill: rgba(255,255,255,.3); transition: fill .3s; }
#dial .tk.lit { fill: var(--yellow); }
#dial .num { fill: rgba(255,255,255,.6); font: 700 13px "Satoshi", sans-serif; text-anchor: middle; dominant-baseline: central; }
#dial .num.nine { fill: var(--yellow); font-weight: 900; font-size: 16px; }
#dial .left { fill: none; stroke: var(--pink); stroke-width: 5; stroke-linecap: round; }
#dial .hand { stroke: var(--snow); stroke-linecap: round; }
#dial .hand.sec { stroke: var(--yellow); }
#dial .dot { fill: var(--yellow); filter: drop-shadow(0 0 5px var(--yellow)); }
#dial .gmt { fill: rgba(255,255,255,.5); font: 700 8.5px "Satoshi", sans-serif; letter-spacing: .28em; text-anchor: middle; }
.digital { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; pointer-events: none; }
.digital-in { display: inline-flex; flex-direction: column; }
.digits { display: flex; align-items: baseline; justify-content: center; font-weight: 900; font-size: min(11.2vw, 51px); line-height: 1; font-variant-numeric: tabular-nums; }
.digits span { min-width: 1.26em; text-align: center; }
.digits i { font-style: normal; color: var(--pink); }
.units { display: flex; justify-content: space-around; margin-top: 5px; }
.units small { font-size: 9.5px; font-weight: 700; letter-spacing: .26em; text-transform: uppercase; opacity: .7; padding-left: .26em; }
#zones { list-style: none; margin: 24px auto 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; max-width: 440px; }
#zones li { background: rgba(0, 0, 0, .3); border: 1px solid rgba(255,255,255,.14); border-radius: 12px; padding: 9px 6px 8px; }
#zones li.home { border-color: var(--yellow); }
#zones .city { display: block; font-size: 10.5px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--pink); padding-left: .2em; }
#zones .t { display: block; font-weight: 900; font-size: 24px; line-height: 1.15; }
#zones .d { display: block; font-size: 12.5px; opacity: .78; }
.when { margin-top: 14px; font-size: 15px; }
.when b { color: var(--yellow); }
@media (min-width: 700px) { #zones { grid-template-columns: repeat(4, 1fr); max-width: 760px; } }

#film .label { margin-bottom: 14px; }
.player { position: relative; max-width: 960px; margin: 0 auto; aspect-ratio: 16 / 9; background: #000; border-radius: 8px; overflow: hidden; box-shadow: 0 18px 50px rgba(0,0,0,.5); }
.player video { width: 100%; height: 100%; display: block; background: #000; }
#bigplay {
  position: absolute; inset: 0; width: 100%; border: 0; cursor: pointer;
  display: flex; flex-direction: column; gap: 14px; align-items: center; justify-content: center;
  background: radial-gradient(ellipse at center, rgba(163,9,28,.97), rgba(60,2,10,.98));
  color: var(--snow); font: 900 clamp(18px, 5vw, 30px) "Satoshi", sans-serif; text-transform: uppercase; letter-spacing: .08em;
}
#bigplay .tri { width: 84px; height: 84px; border-radius: 50%; background: var(--yellow); position: relative; }
#bigplay .tri::after { content: ""; position: absolute; left: 33px; top: 24px; border-left: 28px solid var(--ink); border-top: 18px solid transparent; border-bottom: 18px solid transparent; }
#filmwait { position: absolute; left: 0; right: 0; bottom: 14px; font-weight: 700; color: var(--yellow); text-shadow: 0 2px 8px #000; }
#download { margin-top: 20px; }
#download .small { margin-top: 8px; }
[hidden] { display: none !important; }

/* ---------- appeal ---------- */
.appeal { text-align: center; margin-top: 40px; font-size: clamp(20px, 5.6vw, 30px); line-height: 1.15; }
.appeal b { font-weight: 900; font-size: 1.5em; }

/* ---------- now playing ---------- */
.np-wrap { max-width: 440px; margin: 30px auto 0; position: relative; padding-top: 50px; }
.fav { position: absolute; top: 0; right: 4px; display: flex; align-items: flex-start; gap: 4px; color: var(--yellow); flex-direction: row-reverse; }
.fav span { font-weight: 700; font-size: 17px; transform: rotate(-4deg); transform-origin: right center; white-space: nowrap; }
.fav svg { width: 60px; height: 44px; margin-top: 12px; }
.np { display: flex; align-items: center; gap: 14px; background: rgba(0, 0, 0, .34); border: 1px solid rgba(255,255,255,.14); border-radius: 16px; padding: 12px 16px 12px 12px; }
.np-play { flex: none; width: 56px; height: 56px; border-radius: 50%; border: 0; background: var(--yellow); cursor: pointer; display: grid; place-items: center; }
.np-play svg { width: 28px; height: 28px; fill: var(--ink); }
.np-play .i-pause { display: none; }
.music-on .np-play .i-pause { display: block; }
.music-on .np-play .i-play { display: none; }
.np-text { flex: 1; min-width: 0; text-align: left; }
.np-kicker { font-size: 11px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--pink); }
.np-title { font-weight: 900; font-size: 22px; line-height: 1.15; }
.np-artist { font-size: 14px; opacity: .8; }
.eq { display: flex; align-items: flex-end; gap: 3px; height: 26px; flex: none; }
.eq i { width: 4px; height: 20%; background: var(--yellow); border-radius: 2px; }
.music-on .eq i { animation: eq 0.9s ease-in-out infinite alternate; }
.music-on .eq i:nth-child(2) { animation-duration: .6s; }
.music-on .eq i:nth-child(3) { animation-duration: 1.1s; }
.music-on .eq i:nth-child(4) { animation-duration: .75s; }
@keyframes eq { from { height: 15%; } to { height: 100%; } }

#soundfab {
  position: fixed; right: 14px; bottom: calc(14px + env(safe-area-inset-bottom)); z-index: 20;
  width: 52px; height: 52px; border-radius: 50%; border: 2px solid rgba(255,255,255,.25);
  background: rgba(40, 0, 6, .9); cursor: pointer; display: grid; place-items: center;
}
#soundfab svg { width: 26px; height: 26px; fill: none; stroke: var(--snow); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
#soundfab .i-on { display: none; }
.music-on #soundfab { background: var(--yellow); border-color: var(--yellow); }
.music-on #soundfab svg { stroke: var(--ink); }
.music-on #soundfab .i-on { display: block; }
.music-on #soundfab .i-off { display: none; }

/* ---------- buttons ---------- */
.btn { display: inline-block; font: 900 16px "Satoshi", sans-serif; text-transform: uppercase; letter-spacing: .06em; text-decoration: none; padding: 14px 22px; border-radius: 999px; border: 2px solid transparent; cursor: pointer; }
.btn-yellow { background: var(--yellow); color: var(--ink); }
.btn-ghost { background: transparent; color: var(--snow); border-color: rgba(255,255,255,.4); }
.btn:active { transform: translateY(1px); }
button:focus-visible, a:focus-visible, input:focus-visible { outline: 3px solid var(--pink); outline-offset: 3px; }

/* ---------- game ---------- */
#game { margin-top: 64px; text-align: center; }
#game h2 { margin: 10px 0 10px; font-weight: 900; font-size: clamp(30px, 8.6vw, 56px); line-height: 1; text-transform: uppercase; }
.lede { max-width: 520px; margin: 0 auto; font-size: 17px; }
.game-grid { margin-top: 26px; display: grid; gap: 30px; }
.board-col { max-width: 460px; width: 100%; margin: 0 auto; }

#board {
  position: relative;
  background:
    radial-gradient(rgba(60,35,15,.16) 1px, transparent 1.4px) 0 0 / 7px 7px,
    radial-gradient(rgba(255,220,180,.10) 1px, transparent 1.4px) 3px 4px / 9px 9px,
    var(--cork);
  border: 8px solid #1b120b;
  border-radius: 6px;
  padding: 16px 12px 14px;
  box-shadow: 0 16px 40px rgba(0,0,0,.45), inset 0 0 40px rgba(60,30,10,.35);
}
#strings { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 0; }
#strings line { stroke: var(--soft-red); stroke-width: 2.2; stroke-linecap: round; opacity: .9; }
.tag { position: relative; z-index: 1; display: inline-block; background: var(--ink); color: var(--snow); font-weight: 900; text-transform: uppercase; letter-spacing: .1em; font-size: clamp(15px, 4.6vw, 20px); padding: 6px 14px; transform: rotate(-1.4deg); box-shadow: 0 4px 10px rgba(0,0,0,.35); }
.tier { position: relative; z-index: 1; display: flex; justify-content: center; gap: 4%; }
.tier-top { margin-top: 20px; }
.tier-top .slot-wrap { width: 36%; }
.tier-row { margin-top: 26px; }
.tier-row .slot-wrap { width: 30.6%; }

.slot-wrap { display: flex; flex-direction: column; align-items: center; min-width: 0; }
.slot {
  position: relative; width: 100%; padding: 6% 6% 0; border: 0; border-radius: 2px; cursor: pointer;
  background: var(--kraft); color: inherit; font: inherit;
  box-shadow: 0 6px 14px rgba(0,0,0,.4);
  transform: rotate(var(--r, 0deg));
  transition: transform .18s ease;
}
.slot .pin { position: absolute; top: -8px; left: 50%; margin-left: -8px; width: 16px; height: 16px; border-radius: 50%; background: var(--soft-red); box-shadow: inset -3px -3px 0 rgba(0,0,0,.22), 0 3px 4px rgba(0,0,0,.4); }
.slot .photo { display: grid; place-items: center; aspect-ratio: 1; border: 2px dashed rgba(80,50,25,.5); font-weight: 900; font-size: clamp(34px, 11vw, 52px); color: rgba(80,50,25,.5); overflow: hidden; }
.slot .photo img { width: 100%; height: 100%; object-fit: cover; display: block; filter: grayscale(1) contrast(1.08); }
.slot .cap { display: grid; place-items: center; height: 2.7em; font-weight: 700; font-size: clamp(10px, 2.9vw, 13px); line-height: 1.05; color: #1a1a1a; text-align: center; padding: 0 2px; }
.slot.filled { background: #fff; animation: pinned .28s ease-out; }
.slot.filled .photo { border: 0; }
.slot.active { outline: 3px solid var(--yellow); outline-offset: 4px; animation: glow 1.1s ease-in-out infinite alternate; }
@keyframes glow { from { box-shadow: 0 6px 14px rgba(0,0,0,.4), 0 0 0 rgba(255,237,0,0); } to { box-shadow: 0 6px 14px rgba(0,0,0,.4), 0 0 22px rgba(255,237,0,.85); } }
@keyframes pinned { from { transform: rotate(var(--r, 0deg)) scale(1.18); } to { transform: rotate(var(--r, 0deg)) scale(1); } }
.role { margin-top: 10px; background: var(--ink); color: var(--snow); font-weight: 900; font-size: clamp(9px, 2.5vw, 11.5px); letter-spacing: .08em; text-transform: uppercase; padding: 4px 7px; transform: rotate(-1deg); box-shadow: 0 3px 6px rgba(0,0,0,.3); max-width: 108%; line-height: 1.15; text-align: center; }

.filed { position: relative; z-index: 1; display: flex; align-items: center; justify-content: center; gap: 8px; margin: 20px auto 0; background: var(--ink); padding: 7px 12px; width: fit-content; max-width: 100%; transform: rotate(.8deg); }
.filed span { font-weight: 900; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--yellow); white-space: nowrap; }
.filed input { width: 11ch; min-width: 0; flex: 1; background: transparent; border: 0; border-bottom: 2px dashed rgba(255,255,255,.5); color: var(--snow); font: 700 16px "Satoshi", sans-serif; padding: 2px 2px; border-radius: 0; }
.filed input::placeholder { color: rgba(255,255,255,.45); }
.filed input:focus { outline: 0; border-bottom-color: var(--yellow); }

.hint { min-height: 1.5em; margin-top: 16px; font-weight: 700; color: var(--yellow); }
.actions { margin-top: 12px; display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }

.tray-col h3 { margin: 0 0 4px; font-weight: 900; font-size: 22px; text-transform: uppercase; letter-spacing: .06em; }
#tray { margin-top: 16px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px 10px; }
.face { min-width: 0; background: none; border: 0; padding: 0; cursor: pointer; color: var(--snow); font: inherit; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.face img { width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; border-radius: 50%; border: 3px solid var(--snow); display: block; background: var(--bg-deep); transition: transform .15s ease; }
.face span { font-weight: 700; font-size: 12px; line-height: 1.1; }
.face:active img { transform: scale(.94); }
.face.used img { filter: grayscale(1); opacity: .35; border-color: var(--soft-red); }
.face.used span { opacity: .5; text-decoration: line-through; }

footer { margin-top: 70px; text-align: center; font-size: 13px; opacity: .65; }
footer p + p { margin-top: 4px; }

/* ---------- final ten seconds ---------- */
#final10 {
  position: fixed; inset: 0; z-index: 50; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center;
  background: radial-gradient(ellipse 90% 70% at 50% 45%, var(--bg-lift) 0%, var(--bg) 50%, var(--bg-deep) 100%);
  transition: opacity .45s ease;
}
#final10.out { opacity: 0; pointer-events: none; }
#final10 .label { font-size: clamp(14px, 4vw, 22px); }
#f10num { margin: .16em 0 .14em; font-weight: 900; font-size: min(58vw, 46vh); line-height: .8; color: var(--snow); font-variant-numeric: tabular-nums; }
#f10num.tick { animation: tick .9s cubic-bezier(.2,.9,.3,1); }
@keyframes tick { from { transform: scale(1.35); color: var(--yellow); } to { transform: scale(1); color: var(--snow); } }
.f10sub { font-weight: 700; letter-spacing: .3em; text-transform: uppercase; font-size: 13px; color: var(--pink); padding-left: .3em; }

/* ---------- laptop ---------- */
@media (min-width: 900px) {
  .hero { padding-top: 110px; }
  .game-grid { grid-template-columns: 460px 1fr; align-items: start; gap: 48px; text-align: left; }
  .board-col { margin: 0; text-align: center; }
  .tray-col { padding-top: 6px; }
  #tray { grid-template-columns: repeat(5, 1fr); gap: 20px 16px; }
  .face span { font-size: 13px; }
}

/* ---------- the snow machine (from the Progress Christmas Quiz) ---------- */
.snowlayer { transition: opacity .5s ease; }
.film-playing .snowlayer { opacity: 0; }
.machine { position: fixed; z-index: 7; left: max(6px, 2vw); bottom: max(6px, env(safe-area-inset-bottom)); width: clamp(118px, 14vw, 180px);
  padding: 0; background: none; border: 0; cursor: pointer; -webkit-tap-highlight-color: transparent; touch-action: none; -webkit-user-select: none; user-select: none; }
.machine svg { display: block; width: 100%; height: auto; overflow: visible; }
.machine .led { fill: #3a0024; transition: fill .1s; }
.machine.firing .led { fill: var(--pink); filter: drop-shadow(0 0 4px var(--pink)); }
.machine .fan { transform-box: fill-box; transform-origin: center; }
.machine.firing .fan { animation: spin .18s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.machine.firing svg { animation: rumble .09s linear infinite; }
@keyframes rumble { 0% { transform: none; } 25% { transform: translate(.7px, -.5px); } 50% { transform: translate(-.6px, .4px); } 75% { transform: translate(.5px, .6px); } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
.snow-actions { position: fixed; z-index: 7; left: max(10px, 2.4vw); bottom: calc(max(6px, env(safe-area-inset-bottom)) + clamp(118px, 14vw, 180px) * .66 + 12px);
  display: flex; flex-direction: column-reverse; align-items: flex-start; gap: 8px; pointer-events: none; }
.clearers { pointer-events: auto; display: flex; align-items: center; gap: 8px; padding: 9px 14px 9px 11px; border-radius: 22px; background: rgba(0,0,0,.86);
  border: 1.5px solid var(--pink); color: var(--snow); font: 700 11px "Satoshi", system-ui, sans-serif; letter-spacing: .14em; text-transform: uppercase;
  cursor: pointer; -webkit-tap-highlight-color: transparent; animation: fade .4s ease both; }
.clearers svg { width: 16px; height: 16px; color: var(--pink); flex: none; }
.clearers:active { transform: scale(.97); }
.clearers:disabled { border-color: #4D4D4D; color: rgba(255,255,255,.6); cursor: default; }
.plough-btn { border-color: var(--yellow); }
.skier-btn { border-color: var(--snow); }
.machine-hint { position: fixed; z-index: 7; left: calc(max(6px, 2vw) + clamp(118px, 14vw, 180px) + 6px); bottom: calc(max(6px, env(safe-area-inset-bottom)) + 14px);
  font-weight: 700; font-size: 10px; line-height: 1.35; letter-spacing: .16em; text-transform: uppercase; color: var(--snow); pointer-events: none;
  background: rgba(0,0,0,.8); padding: 6px 10px; border-radius: 12px; max-width: calc(100vw - (max(6px, 2vw) + clamp(118px, 14vw, 180px) + 6px) - 78px);
  animation: hint 2.6s ease-in-out infinite; }
@keyframes hint { 0%, 100% { opacity: 1; } 50% { opacity: .45; } }
.machine-hint.gone { animation: none; opacity: 0; transition: opacity .6s; }
.reticle { position: fixed; z-index: 9; left: 0; top: 0; width: 34px; height: 34px; margin: -17px 0 0 -17px; border-radius: 50%; border: 2px solid var(--pink); pointer-events: none; opacity: 0; transition: opacity .25s; }
.reticle::after { content: ""; position: absolute; left: 50%; top: 50%; width: 6px; height: 6px; margin: -3px 0 0 -3px; border-radius: 50%; background: var(--pink); }
.reticle.on { opacity: .9; }
.live .machine, .live .snow-actions, .live .machine-hint, .live .reticle { display: none; }

@media (prefers-reduced-motion: reduce) {
  .machine.firing svg, .machine.firing .fan, .machine-hint { animation: none; }
  .bulb, .slot.active, .music-on .eq i, #f10num.tick, .slot.filled { animation: none; }
}


/* =====================================================================
   v3 (6 Dec, evening): the holding page is one fixed screen for the snow
   cannon; the game opens over it; Christmas red ground.
   ===================================================================== */
html, body { height: 100%; overflow: hidden; overscroll-behavior: none; }
.kicker { color: var(--snow); opacity: .9; }
.np-kicker, #zones .city { color: var(--yellow); }
.digits i { color: var(--yellow); }
#dial .dface { fill: rgba(0, 44, 37, .94); stroke: rgba(255,255,255,.35); stroke-width: 2; }
#dial .left { stroke: var(--snow); }
#dial .num { fill: rgba(255,255,255,.75); }
.f10sub { color: var(--snow); }
.reticle { border-color: var(--snow); }
.reticle::after { background: var(--snow); }
button:focus-visible, a:focus-visible, input:focus-visible { outline-color: var(--yellow); }
.hero h1 .safe { background: var(--pine); font-size: .66em; margin-top: .2em; padding: .12em .34em .14em; box-shadow: 0 8px 24px rgba(0,0,0,.35); }
#zones li { background: rgba(0, 0, 0, .28); border-color: rgba(255,255,255,.22); }

#stage-view {
  --d: clamp(112px, min(68vw, 100vh - 566px), 330px);
  --d: clamp(112px, min(68vw, 100dvh - 566px), 330px);
  position: fixed; inset: 0; overflow: hidden;
  display: flex; flex-direction: column; align-items: center;
  padding: clamp(44px, 6.6vh, 84px) 16px 132px;
  gap: clamp(5px, 1.4vh, 18px);
  text-align: center; touch-action: none; -webkit-user-select: none; user-select: none; -webkit-touch-callout: none;
}
#stage-view .hero { padding-top: 0; }
#stage-view .hero h1 { margin: clamp(3px, .9vh, 12px) 0 clamp(4px, 1vh, 12px); font-size: clamp(28px, min(11.4vw, 6vh), 78px); }
#stage-view .prod { font-size: clamp(12px, 1.9vh, 18px); line-height: 1.25; }
#stage { margin-top: 0; width: 100%; }
#stage-view .label { font-size: clamp(9.5px, 1.5vh, 12px); }
.clock-wrap { width: var(--d); margin: clamp(4px, 1vh, 12px) auto 0; }
.digits { font-size: calc(var(--d) * .112); }
.units { margin-top: calc(var(--d) * .012); }
.units small { font-size: max(6.5px, calc(var(--d) * .024)); }
#zones { margin-top: clamp(6px, 1.4vh, 16px); grid-template-columns: repeat(4, 1fr); gap: 5px; max-width: 520px; }
#zones li { padding: 5px 2px; border-radius: 9px; }
#zones .city { font-size: clamp(7px, 2vw, 10px); letter-spacing: .1em; padding-left: .1em; }
#zones .t { font-size: clamp(14px, 4.2vw, 20px); }
#zones .d { font-size: clamp(9.5px, 2.6vw, 12px); }

/* the massive button to the game */
.bigbtn {
  display: flex; flex-direction: column; align-items: center; gap: 1px; width: min(100%, 540px);
  padding: clamp(8px, 1.5vh, 16px) 16px; border-radius: 18px; border: 3px solid var(--pine);
  background: var(--snow); color: var(--red); text-decoration: none;
  box-shadow: 0 10px 30px rgba(0,0,0,.4); animation: callout 2.2s ease-in-out infinite; -webkit-tap-highlight-color: transparent;
}
.bigbtn small { font-weight: 700; font-size: 10.5px; letter-spacing: .24em; text-transform: uppercase; color: var(--pine); padding-left: .24em; }
.bigbtn b { font-weight: 900; font-size: clamp(14px, 4.5vw, 25px); line-height: 1.05; text-transform: uppercase; white-space: nowrap; }
.bigbtn span { font-weight: 700; font-size: 13px; color: var(--ink); }
@keyframes callout { 50% { transform: scale(1.025); box-shadow: 0 10px 30px rgba(0,0,0,.4), 0 0 0 9px rgba(255,255,255,.18); } }

/* music: a small player bottom right, opposite the snow machine */
.np-wrap { position: fixed; z-index: 7; right: max(8px, 2vw); bottom: max(8px, env(safe-area-inset-bottom)); margin: 0; padding-top: 30px;
  max-width: none; width: min(250px, calc(100vw - clamp(118px, 14vw, 180px) - 22px)); }
.fav { top: 0; right: 6px; }
.fav span { font-size: 13px; }
.fav svg { width: 34px; height: 26px; margin-top: 9px; }
.np { gap: 9px; padding: 7px 10px 7px 7px; border-radius: 14px; background: rgba(0, 0, 0, .6); }
.np-play { width: 40px; height: 40px; }
.np-play svg { width: 20px; height: 20px; }
.np-kicker { font-size: 8.5px; letter-spacing: .14em; }
.np-title { font-size: 16px; }
.np-artist { font-size: 11px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.eq { height: 18px; }
.machine-hint { left: 50%; transform: translateX(-50%); bottom: calc(max(8px, env(safe-area-inset-bottom)) + 100px); max-width: calc(100vw - 16px);
  white-space: nowrap; text-align: center; font-size: clamp(7.5px, 2.3vw, 10px); letter-spacing: .1em; padding: 5px 10px; }
.snow-actions { bottom: calc(max(8px, env(safe-area-inset-bottom)) + 130px); }
@media (max-height: 700px) { #stage-view .kicker { display: none; } #stage-view { padding-top: 46px; } }
#soundfab { display: none; }
.in-game #soundfab { display: grid; z-index: 40; }

/* the film, once live */
.live #stage-view { --d: 0px; }
.live #stage-view .hero h1 { font-size: clamp(20px, min(6.4vw, 3.6vh), 40px); }
.live .player { width: min(100%, 960px, calc((100vh - 400px) * 16 / 9)); max-width: none; }
#download { margin-top: clamp(8px, 1.4vh, 16px); }

/* the game: a layer over the holding page */
#gameview { position: fixed; inset: 0; z-index: 30; overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain;
  background: radial-gradient(ellipse 90% 60% at 50% 30%, var(--bg-lift) 0%, var(--bg) 50%, var(--bg-deep) 100%); }
.gbar { position: sticky; top: 0; z-index: 3; display: flex; align-items: center; justify-content: space-between; gap: 10px;
  margin: 0 -16px; padding: 10px 14px; background: rgba(60, 2, 10, .94); border-bottom: 1px solid rgba(255,255,255,.16); }
.gbar a { color: var(--snow); font-weight: 700; font-size: 14px; text-decoration: none; padding: 8px 13px; border: 1.5px solid rgba(255,255,255,.45); border-radius: 999px; white-space: nowrap; }
.gbar .mini { font-weight: 900; font-size: 16px; font-variant-numeric: tabular-nums; color: var(--yellow); white-space: nowrap; }
.gbar .mini small { font-weight: 700; font-size: 9.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--snow); opacity: .8; margin-right: 7px; }
#game { margin-top: 18px; }
#game h2 { font-size: clamp(26px, 7.6vw, 52px); }
#game .lede { font-size: 15px; }
.game-grid { margin-top: 16px; gap: 12px; grid-template-columns: minmax(0, 1fr); }
.board-col, .tray-col, .acts-col { min-width: 0; }
.tray-col h3 { font-size: 18px; }
/* on a phone the faces are one strip under the board: swipe sideways for more, drag one up onto the board */
#tray { display: flex; overflow-x: auto; gap: 10px; margin: 8px -16px 0; padding: 6px 16px 8px; scrollbar-width: none; }
#tray::-webkit-scrollbar { display: none; }
.face { flex: 0 0 74px; touch-action: pan-x; -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; cursor: grab; }
.face img { -webkit-user-drag: none; pointer-events: none; background: var(--bg-deep); }
.face.dragging img { opacity: .3; }
.swipe { text-align: center; font-size: 12px; letter-spacing: .1em; }
.ghost { position: fixed; z-index: 60; left: 0; top: 0; width: 88px; height: 88px; margin: -44px 0 0 -44px; border-radius: 50%; border: 3px solid var(--yellow);
  object-fit: cover; pointer-events: none; box-shadow: 0 14px 28px rgba(0,0,0,.55); will-change: transform; }
.slot.over { outline: 4px solid var(--yellow); outline-offset: 4px; }
.slot.filled { touch-action: none; cursor: grab; }
.acts-col { text-align: center; }
.hint { margin-top: 6px; }
#gameview .appeal { margin-top: 44px; padding-bottom: 20px; }
@media (min-width: 900px) {
  .game-grid { grid-template-columns: 460px minmax(0, 1fr); grid-template-areas: "board tray" "acts tray"; gap: 20px 48px; }
  .board-col { grid-area: board; } .tray-col { grid-area: tray; } .acts-col { grid-area: acts; }
  #tray { display: grid; grid-template-columns: repeat(5, 1fr); overflow: visible; margin: 16px 0 0; padding: 0; gap: 20px 16px; }
  .face { flex: none; }
  .swipe { display: none; }
}
@media (prefers-reduced-motion: reduce) { .bigbtn { animation: none; } }

/* phone: keep the board and the strip of faces on one screen */
@media (max-width: 899px) {
  #game { margin-top: 12px; }
  #game .kicker, .tray-col h3, .tray-col > .small:not(.swipe) { display: none; }
  #game h2 { font-size: clamp(17px, 5vw, 30px); white-space: nowrap; margin: 0 0 6px; }
  #game .lede { font-size: 14px; line-height: 1.3; }
  .game-grid { margin-top: 10px; gap: 4px; }
  #board { padding: 12px 10px 12px; }
  .tier-top { margin-top: 14px; } .tier-top .slot-wrap { width: 33%; }
  .tier-row { margin-top: 18px; }
  .filed { margin-top: 12px; }
  #tray { margin-top: 2px; }
}

.slot .photo img { pointer-events: none; -webkit-user-drag: none; }

/* "someone's favourite song": black on a white tag, so it reads on the red and on the snow */
.fav { color: var(--ink); top: -2px; }
.fav span { background: var(--snow); padding: 3px 9px 4px; border-radius: 8px; box-shadow: 0 3px 8px rgba(0,0,0,.3); }
.fav svg { filter: drop-shadow(0 0 1.5px #fff) drop-shadow(0 0 1.5px #fff); }
/* the music box and the hint stay solid when the snow piles up behind them */
.np { background: rgba(20, 0, 4, .92); }
.machine-hint { background: rgba(0, 0, 0, .9); }

/* ---------- phone pass (6 Dec, 18:45) ---------- */
/* the sound button lives in the game's top bar now, not floating over the board */
#soundfab, .in-game #soundfab { position: static; display: grid; flex: none; width: 40px; height: 40px; z-index: auto; }
#soundfab svg { width: 21px; height: 21px; }
.gbar a .wide { display: none; }
@media (min-width: 520px) { .gbar a .wide { display: inline; } }
#gameview button, #gameview a { touch-action: manipulation; }
#gameview .face { touch-action: pan-x; }
#gameview .slot.filled { touch-action: none; }
.slot, .face, .bigbtn, .machine, .clearers { -webkit-touch-callout: none; -webkit-user-select: none; user-select: none; }
/* phones: the faces go above the board, so you drag down onto it and both stay on screen */
@media (max-width: 899px) {
  .tray-col { order: -1; }
  #tray { margin-top: 0; padding-top: 2px; padding-bottom: 4px; }
  .face { flex-basis: 68px; }
  .face span { font-size: 11px; }
  .swipe { margin-top: -2px; font-size: 11px; opacity: .7; }
  #game .lede { font-size: 13.5px; }
  .game-grid { margin-top: 8px; }
}
/* short phones: drop the credit line so nothing overlaps */
@media (max-height: 610px) { #stage-view .prod { display: none; } #stage-view .kicker { display: none; } }
@media (max-height: 540px) { #stage-view .label { display: none; } .machine-hint { display: none; } }

@media (max-height: 610px) { .bigbtn span { display: none; } }
