:root {
  --bg: #050505;
  --fg: #f5f5f5;
  --muted: #a1a1aa;
  --dim: #52525b;
  --red: #e11d48;
  --red-hi: #fb3b62;
  --glow: 225, 29, 72;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --display: "Space Grotesk", "Inter", system-ui, sans-serif;
  --body: "Inter", system-ui, sans-serif;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { width: 100%; height: 100%; overflow: hidden; background: var(--bg); color: var(--fg); font-family: var(--body); }
body { cursor: none; -webkit-font-smoothing: antialiased; }
.hidden { display: none !important; }
video { background: transparent; }

.key {
  display: inline-block; padding: .15em .55em; border-radius: .4em;
  border: 1px solid rgba(255,255,255,.25); background: rgba(255,255,255,.08);
  font-weight: 600; font-size: .9em; letter-spacing: .02em;
}
.dot { display: inline-block; width: .3em; height: .3em; border-radius: 50%; background: var(--dim); margin: 0 .8em; vertical-align: middle; }

/* The Ring's one wordmark (docs/MISTAKES.md: the header's lockup, Inter 900,
 * tight, the round mark, the last word red; src/lib/og-wordmark.tsx). On the
 * TV: THE RING in white, TV in red. Bundled, so it never depends on a CDN. */
@font-face { font-family: "RingInter"; src: url("fonts/Inter-Black.woff") format("woff"); font-weight: 900; font-style: normal; font-display: block; }
.wm, .brand span.wm, .sv-brand span.wm, .gate-title.wm, #splash .word.wm { font-family: "RingInter", Inter, -apple-system, sans-serif !important; font-weight: 900 !important;
  letter-spacing: -.025em !important; line-height: 1; white-space: nowrap; color: #fff; text-transform: none; padding-left: 0 !important; }
.wm i { font-style: normal; color: #FB2C36; margin-left: .28em; }
.brand span.wm { font-size: 2.7vh; }
#splash .word.wm { font-size: 5.4vh; }
.gate-title.wm { font-size: 3.6vh; }

/* ---------- ambient ---------- */
#ambient {
  position: fixed; inset: -20%; z-index: 0; pointer-events: none;
  background: radial-gradient(40% 40% at 70% 30%, rgba(var(--glow), .22), transparent 70%);
  transition: background 1.2s var(--ease);
}

/* ---------- splash ---------- */
#splash {
  position: fixed; inset: 0; z-index: 50; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 2.4vh; background: var(--bg);
  transition: opacity .6s var(--ease);
}
#splash img { width: 16vh; height: 16vh; border-radius: 50%; animation: pulse 1.8s var(--ease) infinite; }
#splash .word { font-family: var(--display); font-weight: 700; font-size: 5vh; letter-spacing: .32em; padding-left: .32em; }
#splash-msg { color: var(--muted); font-size: 2.2vh; }
#splash.gone { opacity: 0; pointer-events: none; }
@keyframes pulse { 0%,100% { transform: scale(1); filter: drop-shadow(0 0 0 rgba(var(--glow),0)); } 50% { transform: scale(1.06); filter: drop-shadow(0 0 4vh rgba(var(--glow),.6)); } }

/* ---------- home ---------- */
#home { position: fixed; inset: 0; z-index: 1; }

#topbar {
  position: absolute; top: 0; left: 0; right: 0; z-index: 5;
  display: flex; align-items: center; justify-content: space-between;
  padding: 4.4vh 5vw 0;
}
.brand { display: flex; align-items: center; gap: 1.2vh; }
.brand img { width: 4.6vh; height: 4.6vh; border-radius: 50%; }
.brand span { font-family: var(--display); font-weight: 700; font-size: 2.8vh; letter-spacing: .24em; }
.brand em { font-style: normal; color: var(--red-hi); font-size: 1.6vh; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; margin-left: .4vh; }
#clock { font-family: var(--display); font-size: 2.6vh; color: var(--muted); font-weight: 500; }

#hero { position: absolute; top: 0; left: 0; right: 0; height: 66vh; overflow: hidden; }
#hero-bg {
  position: absolute; inset: -6%; background-size: cover; background-position: center;
  filter: blur(5vh) saturate(1.4) brightness(.55); transform: scale(1.1);
  transition: opacity .8s var(--ease);
}
#hero-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .9s var(--ease); }
#hero-video.on { opacity: 1; }
#hero-phone {
  position: absolute; right: 9vw; top: 9vh; height: 54vh; aspect-ratio: 9 / 16;
  border-radius: 2.6vh; overflow: hidden; background: #000 center / cover no-repeat;
  box-shadow: 0 4vh 10vh rgba(0,0,0,.6), 0 0 0 1px rgba(255,255,255,.12), 0 0 8vh rgba(var(--glow), .35);
  transform: rotate(2deg); transition: opacity .6s var(--ease), transform .8s var(--ease);
}
#hero-phone video { width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .9s var(--ease); }
#hero-phone video.on { opacity: 1; }
#hero.wide #hero-phone { opacity: 0; transform: rotate(2deg) translateY(4vh); }
#hero.tall #hero-video { opacity: 0 !important; }
#hero-shade {
  position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(5,5,5,.95) 0%, rgba(5,5,5,.7) 32%, rgba(5,5,5,0) 62%),
    linear-gradient(0deg, var(--bg) 0%, rgba(5,5,5,0) 38%);
}
#hero-info { position: absolute; left: 5vw; bottom: 9vh; width: 46vw; }
#hero-kicker {
  display: inline-flex; align-items: center; gap: .8vh; color: var(--red-hi);
  font-weight: 600; font-size: 1.7vh; letter-spacing: .2em; text-transform: uppercase; margin-bottom: 1.6vh;
}
#hero-kicker::before { content: ""; width: 1vh; height: 1vh; border-radius: 50%; background: var(--red); box-shadow: 0 0 1.4vh var(--red); }
#hero-title {
  font-family: var(--display); font-weight: 700; font-size: 8vh; line-height: .95; letter-spacing: -.02em;
  text-shadow: 0 .4vh 3vh rgba(0,0,0,.5);
}
#hero-meta { margin-top: 1.8vh; font-size: 2.4vh; color: #e4e4e7; font-weight: 500; }
#hero-credit { margin-top: .8vh; font-size: 2vh; color: var(--muted); }
#hero-hint { margin-top: 2.8vh; font-size: 1.7vh; color: var(--muted); }
#hero-info > * { transition: opacity .35s var(--ease), transform .45s var(--ease); }
#hero.swap #hero-info > * { opacity: 0; transform: translateY(1vh); }

#rows-viewport { position: absolute; left: 0; right: 0; top: 60vh; bottom: 0; overflow: hidden; }
#rows { transition: transform .55s var(--ease); }
.row { height: 33vh; padding-top: 1vh; transition: opacity .5s var(--ease); }
.row.away { opacity: .35; }
.row-head { display: flex; align-items: baseline; gap: 1.4vh; padding: 0 5vw; margin-bottom: 1.6vh; }
.row-title { font-family: var(--display); font-weight: 700; font-size: 2.7vh; }
.row-sub { color: var(--muted); font-size: 1.8vh; }
.row-count { color: var(--dim); font-size: 1.6vh; margin-left: auto; }
.track { display: flex; gap: 1.6vw; padding: 1.2vh 5vw; transition: transform .45s var(--ease); will-change: transform; }

.card {
  position: relative; flex: 0 0 auto; height: 24vh; border-radius: 1.6vh; overflow: hidden;
  background: #18181b center / cover no-repeat;
  box-shadow: 0 0 0 1px rgba(255,255,255,.06);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), filter .35s var(--ease);
  filter: brightness(.78);
}
.card.v { aspect-ratio: 9 / 16; }
.card.h { aspect-ratio: 16 / 9; }
.card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(0,0,0,.75), transparent 45%); }
.card .lbl { position: absolute; left: 1.2vh; right: 1.2vh; bottom: 1.1vh; z-index: 1; font-size: 1.5vh; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card .lbl small { display: block; color: var(--muted); font-weight: 500; font-size: 1.3vh; margin-top: .2vh; }
.card .badge {
  position: absolute; top: 1vh; left: 1vh; z-index: 1; font-size: 1.2vh; font-weight: 600;
  padding: .3vh .8vh; border-radius: .6vh; background: rgba(0,0,0,.55); backdrop-filter: blur(6px);
}
.card .dur { left: auto; right: 1vh; }
.card.focus {
  transform: scale(1.1); filter: none; z-index: 2;
  box-shadow: 0 0 0 .35vh var(--fg), 0 2vh 5vh rgba(0,0,0,.6), 0 0 6vh rgba(var(--glow), .55);
}

/* ---------- player ---------- */
#player { position: fixed; inset: 0; z-index: 20; background: #000; }
#player-bg {
  position: absolute; inset: -8%; background-size: cover; background-position: center;
  filter: blur(6vh) saturate(1.5) brightness(.45); transform: scale(1.15);
}
#pv, #pimg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
#player.tall #pv, #player.tall #pimg {
  left: 50%; width: auto; aspect-ratio: 9 / 16; transform: translateX(-50%);
  box-shadow: 0 0 12vh rgba(0,0,0,.7), 0 0 0 1px rgba(255,255,255,.08);
}
#player.tall #pimg, #player.tall #pv { object-fit: cover; }
#pimg.kb { animation: kenburns 9s ease-out forwards; }
#player.tall #pimg.kb { animation: none; }
@keyframes kenburns { from { transform: scale(1); } to { transform: scale(1.08) translate(-1%, -1%); } }

#player-ui { position: absolute; inset: 0; pointer-events: none; transition: opacity .6s var(--ease); }
#player.quiet #player-ui { opacity: 0; visibility: hidden; transition: opacity .6s var(--ease), visibility 0s .6s; }
#p-top {
  position: absolute; top: 0; left: 0; right: 0; padding: 5vh 5vw 12vh;
  background: linear-gradient(180deg, rgba(0,0,0,.75), transparent);
}
#player.tall #p-top { right: auto; width: 34vw; background: none; }
#p-kicker { color: var(--red-hi); font-weight: 600; font-size: 1.6vh; letter-spacing: .2em; text-transform: uppercase; }
#p-title { font-family: var(--display); font-weight: 700; font-size: 5vh; margin-top: 1vh; line-height: 1; }
#p-meta { color: #d4d4d8; font-size: 2.1vh; margin-top: 1.2vh; }
#p-side {
  position: absolute; right: 5vw; top: 50%; transform: translateY(-50%); width: 22vw;
  display: flex; flex-direction: column; gap: 1.4vh;
}
#player:not(.tall) #p-side { display: none; }
.peek { display: flex; gap: 1.4vh; align-items: center; opacity: .5; }
.peek.next { opacity: .95; }
.peek i { flex: 0 0 auto; width: 6.5vh; aspect-ratio: 9/16; border-radius: .9vh; background: #222 center / cover; }
.peek.wide i { aspect-ratio: 16/9; width: 11vh; }
.peek b { display: block; font-size: 1.3vh; color: var(--red-hi); letter-spacing: .16em; text-transform: uppercase; font-weight: 600; }
.peek span { font-size: 1.8vh; font-weight: 600; }
.peek small { display: block; color: var(--muted); font-size: 1.5vh; }
#p-bottom { position: absolute; left: 5vw; right: 5vw; bottom: 5vh; }
#player.tall #p-bottom { left: 50%; right: auto; width: calc(84vh * 9 / 16); transform: translateX(-50%); }
#p-progress { height: .5vh; border-radius: .5vh; background: rgba(255,255,255,.2); overflow: hidden; }
#p-progress i { display: block; height: 100%; width: 0; background: var(--red); box-shadow: 0 0 1.5vh var(--red); }
#p-hints { margin-top: 1.6vh; font-size: 1.6vh; color: var(--muted); text-align: center; white-space: nowrap; }
#p-paused {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%,-50%) scale(.9);
  width: 14vh; height: 14vh; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-size: 4vh; background: rgba(0,0,0,.7); opacity: 0;
  transition: opacity .25s var(--ease), transform .25s var(--ease);
}
#player.paused #p-paused { opacity: 1; transform: translate(-50%,-50%) scale(1); }
#p-next {
  position: absolute; left: 50%; bottom: 14vh; transform: translateX(-50%) translateY(2vh);
  padding: 1.2vh 2.4vh; border-radius: 99px; background: rgba(20,20,20,.9);
  font-size: 1.8vh; opacity: 0; transition: opacity .3s var(--ease), transform .3s var(--ease);
}
#p-next.on { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ---------- Ring Kiosk ---------- */
#kiosk { position: fixed; inset: 0; z-index: 30; background: #000; overflow: hidden; }
#k-stage {
  --s: 10px; /* 1% of the stage's short side, set by JS */
  position: absolute; top: 0; left: 0; width: 100vw; height: 100vh; overflow: hidden;
  display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center;
  font-family: var(--body);
}
#k-stage.r90 { width: 100vh; height: 100vw; transform-origin: top left; transform: rotate(90deg) translateY(-100%); }
#k-stage.r270 { width: 100vh; height: 100vw; transform-origin: top left; transform: rotate(-90deg) translateX(-100%); }
#k-glow {
  position: absolute; inset: -30%;
  background: radial-gradient(35% 30% at 50% 45%, rgba(var(--glow), .35), transparent 70%);
  animation: kbreathe 5s ease-in-out infinite;
}
@keyframes kbreathe { 0%,100% { opacity: .7; transform: scale(1); } 50% { opacity: 1; transform: scale(1.08); } }
#k-idle, #k-greet, #k-reading, #k-oops { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; }

.k-ring { position: relative; width: calc(var(--s) * 34); height: calc(var(--s) * 34); display: flex; align-items: center; justify-content: center; margin-bottom: calc(var(--s) * 6); }
.k-ring img { width: 62%; height: 62%; border-radius: 50%; position: relative; z-index: 1; filter: drop-shadow(0 0 calc(var(--s)*4) rgba(var(--glow), .8)); }
.k-ring i { position: absolute; inset: 0; border-radius: 50%; border: calc(var(--s) * .5) solid rgba(var(--glow), .7); animation: kwave 2.4s var(--ease) infinite; opacity: 0; }
.k-ring i:nth-child(2) { animation-delay: .8s; }
.k-ring i:nth-child(3) { animation-delay: 1.6s; }
@keyframes kwave { 0% { transform: scale(.55); opacity: .9; } 100% { transform: scale(1.35); opacity: 0; } }
.k-tap { font-family: var(--display); font-weight: 700; font-size: calc(var(--s) * 9); letter-spacing: -.02em; line-height: 1; }
.k-tap-sub { margin-top: calc(var(--s) * 2.2); color: var(--muted); font-size: calc(var(--s) * 3); }
#k-artist { margin-top: calc(var(--s) * 5); color: var(--red-hi); font-weight: 600; letter-spacing: .24em; text-transform: uppercase; font-size: calc(var(--s) * 2.2); }

.k-spin { width: calc(var(--s) * 14); height: calc(var(--s) * 14); border-radius: 50%; border: calc(var(--s) * .9) solid rgba(255,255,255,.12); border-top-color: var(--red); animation: kspin .8s linear infinite; }
@keyframes kspin { to { transform: rotate(360deg); } }
.k-reading-t { margin-top: calc(var(--s) * 4); font-size: calc(var(--s) * 3.6); font-weight: 600; }

.k-burst { position: absolute; left: 50%; top: 30%; width: 0; height: 0; }
.k-burst i { position: absolute; left: calc(var(--s) * -40); top: calc(var(--s) * -40); width: calc(var(--s) * 80); height: calc(var(--s) * 80); border-radius: 50%; border: calc(var(--s) * .4) solid rgba(var(--glow), .8); opacity: 0; }
#k-greet.go .k-burst i { animation: kburst 1.6s var(--ease) forwards; }
#k-greet.go .k-burst i:nth-child(2) { animation-delay: .15s; }
#k-greet.go .k-burst i:nth-child(3) { animation-delay: .3s; }
#k-greet.go .k-burst i:nth-child(4) { animation-delay: .45s; border-color: rgba(255,255,255,.5); }
@keyframes kburst { 0% { transform: scale(.05); opacity: 1; } 100% { transform: scale(1.4); opacity: 0; } }

#k-greet > * { opacity: 0; transform: translateY(calc(var(--s) * 3)); }
#k-greet.go > * { animation: krise .8s var(--ease) forwards; }
#k-greet.go .k-burst { opacity: 1; transform: none; animation: none; }
#k-greet.go #k-hello { animation-delay: .25s; }
#k-greet.go #k-name { animation-delay: .45s; }
#k-greet.go #k-user { animation-delay: .65s; }
#k-greet.go #k-tier { animation-delay: .85s; }
#k-greet.go #k-stats { animation-delay: 1.1s; }
#k-greet.go #k-msg { animation-delay: 2.2s; }
#k-greet.go #k-badges { animation-delay: 2.6s; }
@keyframes krise { to { opacity: 1; transform: none; } }
#k-hello { color: var(--red-hi); font-weight: 600; letter-spacing: .26em; text-transform: uppercase; font-size: calc(var(--s) * 2.6); }
#k-name {
  font-family: var(--display); font-weight: 700; font-size: calc(var(--s) * 15); line-height: .95; letter-spacing: -.03em; margin-top: calc(var(--s) * 1.4);
  background: linear-gradient(180deg, #fff 30%, #fda4af); -webkit-background-clip: text; background-clip: text; color: transparent;
  max-width: 92%; overflow-wrap: anywhere;
}
#k-user { margin-top: calc(var(--s) * 1.4); color: var(--muted); font-size: calc(var(--s) * 3); }
#k-tier { margin-top: calc(var(--s) * 3); padding: calc(var(--s) * .9) calc(var(--s) * 2.6); border-radius: 99px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; font-size: calc(var(--s) * 2.2); background: linear-gradient(90deg, rgba(var(--glow), .35), rgba(var(--glow), .15)); border: 1px solid rgba(var(--glow), .6); }
#k-tier:empty { display: none; }
#k-stats { display: flex; gap: calc(var(--s) * 2.4); margin-top: calc(var(--s) * 5); flex-wrap: wrap; justify-content: center; }
.k-stat { min-width: calc(var(--s) * 22); padding: calc(var(--s) * 2.6) calc(var(--s) * 3); border-radius: calc(var(--s) * 2.4); background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1); backdrop-filter: blur(10px); }
.k-stat b { display: block; font-family: var(--display); font-weight: 700; font-size: calc(var(--s) * 7.4); line-height: 1; font-variant-numeric: tabular-nums; }
.k-stat span { display: block; margin-top: calc(var(--s) * 1.2); color: var(--muted); font-size: calc(var(--s) * 2); letter-spacing: .14em; text-transform: uppercase; font-weight: 600; }
#k-msg { margin-top: calc(var(--s) * 5); font-size: calc(var(--s) * 3.6); font-weight: 600; max-width: 86%; line-height: 1.25; }
#k-badges { display: flex; gap: calc(var(--s) * 1.4); margin-top: calc(var(--s) * 3.4); flex-wrap: wrap; justify-content: center; max-width: 90%; }
.k-badge { display: flex; align-items: center; gap: calc(var(--s) * 1); padding: calc(var(--s) * .8) calc(var(--s) * 1.8) calc(var(--s) * .8) calc(var(--s) * .8); border-radius: 99px; background: rgba(255,255,255,.06); font-size: calc(var(--s) * 1.9); color: #e4e4e7; }
.k-badge img { width: calc(var(--s) * 3.6); height: calc(var(--s) * 3.6); border-radius: 50%; object-fit: cover; background: #222; }

.k-oops-t { font-family: var(--display); font-weight: 700; font-size: calc(var(--s) * 7); max-width: 86%; line-height: 1.05; }
.k-oops-s { margin-top: calc(var(--s) * 2.6); color: var(--muted); font-size: calc(var(--s) * 3); max-width: 80%; }

#k-foot { position: absolute; bottom: calc(var(--s) * 4); left: 0; right: 0; z-index: 1; display: flex; align-items: center; justify-content: center; gap: calc(var(--s) * 1.2); color: var(--dim); font-size: calc(var(--s) * 1.8); }
#k-dot { width: calc(var(--s) * 1.2); height: calc(var(--s) * 1.2); border-radius: 50%; background: #a16207; }
#k-dot.ok { background: #16a34a; box-shadow: 0 0 calc(var(--s) * 1.4) #16a34a; }
#k-dot.bad { background: var(--red); }
#k-hint { position: absolute; top: calc(var(--s) * 4); left: 0; right: 0; z-index: 1; color: var(--muted); font-size: calc(var(--s) * 2); opacity: 0; transition: opacity .4s var(--ease); }
#k-hint.on { opacity: 1; }

#toast {
  position: fixed; left: 50%; bottom: 6vh; z-index: 60; transform: translateX(-50%) translateY(2vh);
  padding: 1.4vh 3vh; border-radius: 99px; background: rgba(20,20,20,.85); backdrop-filter: blur(12px);
  border: 1px solid rgba(var(--glow), .5); font-size: 2vh; font-weight: 600; opacity: 0; pointer-events: none;
  transition: opacity .3s var(--ease), transform .3s var(--ease);
}
#toast.on { opacity: 1; transform: translateX(-50%) translateY(0); }

.k-pair-k { color: var(--red-hi); font-weight: 600; letter-spacing: .26em; text-transform: uppercase; font-size: calc(var(--s) * 2.6); }
#k-code { font-family: var(--display); font-weight: 700; font-size: calc(var(--s) * 16); letter-spacing: .12em; margin-top: calc(var(--s) * 2); padding-left: .12em; }
.k-pair-s { margin-top: calc(var(--s) * 3); color: var(--muted); font-size: calc(var(--s) * 3); max-width: 80%; line-height: 1.35; }
.k-pair-s b { color: var(--fg); }

/* ---------- kiosk standby: the ad beside the tap ---------- */
#k-idle { flex-direction: row; align-items: center; justify-content: center; gap: calc(var(--s) * 7); width: 100%; height: 100%; padding: calc(var(--s) * 5) calc(var(--s) * 6); }
#k-ad { flex: 0 0 auto; height: 84%; aspect-ratio: 9 / 16; border-radius: calc(var(--s) * 3); overflow: hidden; background: #000;
  box-shadow: 0 0 0 1px rgba(255,255,255,.1), 0 calc(var(--s)*3) calc(var(--s)*9) rgba(0,0,0,.7), 0 0 calc(var(--s)*10) rgba(var(--glow), .35); }
#k-ad video { width: 100%; height: 100%; object-fit: cover; }
#k-side { display: flex; flex-direction: column; align-items: center; justify-content: space-between; align-self: stretch; padding: calc(var(--s) * 4) 0 calc(var(--s) * 6); max-width: calc(var(--s) * 95); }
#k-side .k-ring { width: calc(var(--s) * 24); height: calc(var(--s) * 24); margin-bottom: calc(var(--s) * 3.5); }
#k-side .k-tap { font-size: calc(var(--s) * 8); }
.k-what { margin-top: calc(var(--s) * 3.4); color: #d4d4d8; font-size: calc(var(--s) * 2.3); line-height: 1.4; max-width: calc(var(--s) * 70); }
.k-what b { color: var(--fg); }
#k-tonight { margin-top: calc(var(--s) * 2.6); color: var(--red-hi); font-weight: 600; font-size: calc(var(--s) * 2.2); }
#k-tonight:empty { display: none; }
.k-get { display: flex; align-items: center; gap: calc(var(--s) * 2.2); margin-top: calc(var(--s) * 3.4); padding: calc(var(--s) * 1.6); padding-right: calc(var(--s) * 3); border-radius: calc(var(--s) * 2); background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1); text-align: left; }
.k-get img { width: calc(var(--s) * 13); height: calc(var(--s) * 13); border-radius: calc(var(--s) * 1); background: #fff; }
.k-get b { display: block; font-size: calc(var(--s) * 2.4); }
.k-get span { display: block; color: var(--muted); font-size: calc(var(--s) * 2); margin-top: calc(var(--s) * .4); }
.k-get em { display: block; font-style: normal; color: var(--dim); font-size: calc(var(--s) * 1.7); margin-top: calc(var(--s) * 1); }
#k-side #k-artist { margin-top: calc(var(--s) * 3); }
#k-stage.portrait #k-idle { flex-direction: column; gap: calc(var(--s) * 4); }
#k-stage.portrait #k-ad { height: auto; width: 46%; }

/* pairing QR */
.k-pair-row { display: flex; align-items: center; gap: calc(var(--s) * 3); margin-top: calc(var(--s) * 3.4); text-align: left; }
.k-pair-row img { width: calc(var(--s) * 18); height: calc(var(--s) * 18); border-radius: calc(var(--s) * 1.2); background: #fff; flex: 0 0 auto; }
.k-pair-row .k-pair-s { margin-top: 0; max-width: calc(var(--s) * 60); text-align: left; }

/* greeting: tour line + Moments popping in */
#k-tour { margin-top: calc(var(--s) * 4.2); font-family: var(--display); font-weight: 700; font-size: calc(var(--s) * 4); color: #fda4af; }
#k-tour:empty { display: none; }
#k-greet.go #k-tour { animation-delay: 1.9s; }
#k-media { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
#k-media-tag { position: absolute; top: calc(var(--s) * -6); left: 50%; transform: translateX(-50%); color: var(--muted); font-size: calc(var(--s) * 1.8); letter-spacing: .24em; text-transform: uppercase; font-weight: 600; white-space: nowrap; }
#k-media-tag:empty { display: none; }
#k-greet.go #k-media-tag { animation-delay: 2.2s; }
.k-pop { position: absolute; width: calc(var(--s) * 16); aspect-ratio: 9 / 16; opacity: 0; transform: rotate(var(--r)) scale(.3) translateY(calc(var(--s) * 8));
  animation: kpop .9s cubic-bezier(.2,1.4,.3,1) forwards, kfloat 6s ease-in-out infinite alternate; }
.k-pop i { display: block; width: 100%; height: 100%; border-radius: calc(var(--s) * 1.6); background: #222 center / cover; box-shadow: 0 calc(var(--s)*2) calc(var(--s)*5) rgba(0,0,0,.7), 0 0 0 calc(var(--s)*.4) rgba(255,255,255,.85); }
.k-pop b { position: absolute; left: 50%; top: 50%; transform: translate(-50%,-50%); width: calc(var(--s)*5); height: calc(var(--s)*5); border-radius: 50%; background: rgba(0,0,0,.55); display: flex; align-items: center; justify-content: center; font-size: calc(var(--s)*2); }
.k-pop span { position: absolute; left: 0; right: 0; bottom: calc(var(--s) * -3.4); text-align: center; font-size: calc(var(--s) * 1.6); color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@keyframes kpop { to { opacity: .92; transform: rotate(var(--r)) scale(1) translateY(0); } }
@keyframes kfloat { from { margin-top: 0; } to { margin-top: calc(var(--s) * -1.6); } }
#k-stage.portrait .k-pop { width: calc(var(--s) * 13); }

/* ---------- settings ---------- */
#settings { position: fixed; inset: 0; z-index: 40; background: rgba(5,5,5,.96); display: flex; align-items: center; justify-content: center; }
.set-wrap { width: 62vw; }
.set-h { font-family: var(--display); font-weight: 700; font-size: 5vh; margin-bottom: 3vh; }
.set-row { display: flex; align-items: center; justify-content: space-between; gap: 3vw; padding: 2vh 2.4vw; border-radius: 1.4vh; margin-bottom: .8vh; background: rgba(255,255,255,.03); transition: background .2s var(--ease), transform .2s var(--ease); }
.set-row.focus { background: rgba(var(--glow), .22); box-shadow: inset 0 0 0 2px var(--red); transform: scale(1.01); }
.set-l { font-size: 2.4vh; font-weight: 600; }
.set-v { font-size: 2vh; color: var(--muted); text-align: right; }
.set-row.focus .set-v { color: var(--fg); }
.set-foot { margin-top: 3vh; color: var(--muted); font-size: 1.7vh; }

/* standby, round 3: tap zone low and centred, pickup QR pops in now and then */
#k-side #k-artist { margin-top: 0; }
#k-side .k-what { margin-top: calc(var(--s) * 2); font-size: calc(var(--s) * 2.1); color: #a1a1aa; }
.k-tapzone { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; margin-top: 0; padding-bottom: calc(var(--s) * 3); }
#k-taps { margin-top: calc(var(--s) * 1.4); color: var(--dim); font-size: calc(var(--s) * 1.8); }
#k-taps:empty, #k-tonight:empty { display: none; }
#k-info { display: grid; margin-top: calc(var(--s) * 2); width: 100%; justify-items: center; }
#k-info > * { grid-area: 1 / 1; }
#k-info .k-what { margin-top: 0; transition: opacity .7s var(--ease), transform .7s var(--ease); align-self: center; }
#k-info.pick .k-what { opacity: 0; transform: translateY(calc(var(--s) * -2)); }
#k-pickup { position: relative; width: calc(var(--s) * 52); display: flex; align-items: center; gap: calc(var(--s) * 2);
  padding: calc(var(--s) * 1.6) calc(var(--s) * 3) calc(var(--s) * 1.6) calc(var(--s) * 1.6); border-radius: calc(var(--s) * 2.4);
  background: rgba(20,20,22,.92); border: 1px solid rgba(var(--glow), .6); box-shadow: 0 calc(var(--s)*2) calc(var(--s)*6) rgba(0,0,0,.6), 0 0 calc(var(--s)*6) rgba(var(--glow), .3);
  opacity: 0; transform: translateY(calc(var(--s) * 4)) scale(.9); pointer-events: none; transition: opacity .6s var(--ease), transform .6s cubic-bezier(.2,1.4,.3,1); text-align: left; }
#k-pickup.on { opacity: 1; transform: none; }
#k-pickup img { width: calc(var(--s) * 14); height: calc(var(--s) * 14); border-radius: calc(var(--s) * 1); background: #fff; }
#k-pickup b { display: block; font-family: var(--display); font-size: calc(var(--s) * 3); }
#k-pickup span { display: block; margin-top: calc(var(--s) * .6); color: #d4d4d8; font-size: calc(var(--s) * 2); max-width: calc(var(--s) * 34); line-height: 1.3; }

#k-stage.portrait #k-side { padding: 0; }

/* ---------- trivia on the TV ---------- */
#k-trivia { position: relative; z-index: 1; width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; padding: calc(var(--s) * 5); }
#kt-lobby, #kt-play, #kt-done { display: flex; flex-direction: column; align-items: center; width: 100%; }
.kt-kicker { color: var(--red-hi); font-weight: 700; letter-spacing: .3em; text-transform: uppercase; font-size: calc(var(--s) * 2.8); }
.kt-title { font-family: var(--display); font-weight: 700; font-size: calc(var(--s) * 8); margin-top: calc(var(--s) * 1); }
.kt-join { display: flex; align-items: center; gap: calc(var(--s) * 4); margin-top: calc(var(--s) * 4); text-align: left; }
.kt-join img { width: calc(var(--s) * 26); height: calc(var(--s) * 26); border-radius: calc(var(--s) * 1.6); background: #fff; }
.kt-join-h { font-family: var(--display); font-weight: 700; font-size: calc(var(--s) * 4.4); }
.kt-join-s { color: var(--muted); font-size: calc(var(--s) * 2.2); margin-top: calc(var(--s) * .8); }
.kt-join-s b { color: var(--fg); }
#kt-code { font-family: var(--display); font-weight: 700; font-size: calc(var(--s) * 9); letter-spacing: .14em; margin-top: calc(var(--s) * .6); }
#kt-players { display: flex; flex-wrap: wrap; justify-content: center; gap: calc(var(--s) * 1.2); margin-top: calc(var(--s) * 4); max-width: 90%; min-height: calc(var(--s) * 5); }
#kt-players span { padding: calc(var(--s) * .8) calc(var(--s) * 2); border-radius: 99px; background: rgba(255,255,255,.08); font-size: calc(var(--s) * 2.2); font-weight: 600; animation: kpopin .5s cubic-bezier(.2,1.4,.3,1); }
#kt-players span.ring { background: rgba(var(--glow), .3); }
@keyframes kpopin { from { transform: scale(.4); opacity: 0; } }
#kt-count { margin-top: calc(var(--s) * 3); color: var(--muted); font-size: calc(var(--s) * 2.4); }
.kt-top { display: flex; justify-content: space-between; width: 100%; color: var(--muted); font-size: calc(var(--s) * 2.4); font-weight: 600; }
#kt-left { font-family: var(--display); font-size: calc(var(--s) * 5); color: var(--fg); }
#kt-q { font-family: var(--display); font-weight: 700; font-size: calc(var(--s) * 6); line-height: 1.12; text-align: center; margin-top: calc(var(--s) * 2); max-width: 92%; }
#kt-opts { display: grid; grid-template-columns: 1fr 1fr; gap: calc(var(--s) * 2); width: 100%; margin-top: calc(var(--s) * 4); }
#k-stage.portrait #kt-opts { grid-template-columns: 1fr; }
.kt-opt { display: flex; align-items: center; gap: calc(var(--s) * 2); padding: calc(var(--s) * 2.4) calc(var(--s) * 3); border-radius: calc(var(--s) * 2); font-size: calc(var(--s) * 3.2); font-weight: 700; transition: opacity .4s var(--ease), transform .4s var(--ease); }
.kt-opt i { flex: 0 0 auto; width: calc(var(--s) * 6); height: calc(var(--s) * 6); border-radius: calc(var(--s) * 1.4); background: rgba(0,0,0,.25); display: flex; align-items: center; justify-content: center; font-style: normal; }
.kt-opt.dim { opacity: .22; }
.kt-opt.right { transform: scale(1.03); box-shadow: 0 0 0 calc(var(--s)*.6) #fff, 0 0 calc(var(--s)*6) rgba(255,255,255,.4); }
#kt-under { margin-top: calc(var(--s) * 3); color: #fda4af; font-size: calc(var(--s) * 2.8); font-weight: 600; min-height: calc(var(--s) * 4); text-align: center; }
#kt-board { display: flex; gap: calc(var(--s) * 1.4); flex-wrap: wrap; justify-content: center; margin-top: calc(var(--s) * 1.6); }
#kt-board span { padding: calc(var(--s) * .7) calc(var(--s) * 1.8); border-radius: 99px; background: rgba(255,255,255,.07); font-size: calc(var(--s) * 2); }
#kt-board b { margin-left: calc(var(--s) * .8); color: var(--red-hi); }
#kt-podium { display: flex; align-items: flex-end; gap: calc(var(--s) * 3); margin-top: calc(var(--s) * 5); }
.kt-pod { display: flex; flex-direction: column; align-items: center; justify-content: flex-end; width: calc(var(--s) * 24); border-radius: calc(var(--s) * 2) calc(var(--s) * 2) 0 0; background: linear-gradient(180deg, rgba(var(--glow), .5), rgba(var(--glow), .1)); padding: calc(var(--s) * 2); animation: krise .8s var(--ease) both; }
.kt-pod b { font-family: var(--display); font-size: calc(var(--s) * 3.4); text-align: center; overflow-wrap: anywhere; }
.kt-pod span { color: var(--muted); font-size: calc(var(--s) * 2); margin-top: calc(var(--s) * .6); }
.kt-pod em { font-style: normal; font-family: var(--display); font-weight: 700; font-size: calc(var(--s) * 6); margin-bottom: calc(var(--s) * 1); }
#kt-paid { margin-top: calc(var(--s) * 4); font-size: calc(var(--s) * 2.8); color: #fda4af; text-align: center; max-width: 90%; }

/* tap again: moments reel + the next-step prompt */
#k-next { position: absolute; left: 0; right: 0; bottom: calc(var(--s) * 9); z-index: 2; text-align: center; font-family: var(--display); font-weight: 700;
  font-size: calc(var(--s) * 3.4); color: #fff; opacity: 0; transform: translateY(calc(var(--s) * 2)); transition: opacity .6s var(--ease), transform .6s var(--ease); pointer-events: none; }
#k-next.on { opacity: 1; transform: none; animation: knudge 2.4s ease-in-out .6s infinite; }
#k-next i { font-style: normal; color: var(--red-hi); }
@keyframes knudge { 0%,100% { transform: none; } 50% { transform: translateY(calc(var(--s) * -1)); } }
#k-reel { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; width: 100%; }
.kr-kicker { color: var(--red-hi); font-weight: 700; letter-spacing: .3em; text-transform: uppercase; font-size: calc(var(--s) * 2.6); }
.kr-stage { position: relative; width: 100%; height: calc(var(--s) * 62); margin-top: calc(var(--s) * 3); }
.kr-card { position: absolute; top: 50%; left: 50%; aspect-ratio: 9 / 16; border-radius: calc(var(--s) * 2.4); background: #111 center / cover no-repeat;
  transition: transform .9s cubic-bezier(.2,.8,.2,1), opacity .9s var(--ease), filter .9s var(--ease); }
.kr-main { height: 100%; transform: translate(-50%, -50%); z-index: 2; box-shadow: 0 0 0 calc(var(--s)*.4) rgba(255,255,255,.9), 0 calc(var(--s)*3) calc(var(--s)*9) rgba(0,0,0,.8), 0 0 calc(var(--s)*10) rgba(var(--glow), .45); animation: kkb 4s ease-out both; }
.kr-prev, .kr-next { height: 72%; opacity: .45; filter: blur(2px) brightness(.7); z-index: 1; }
.kr-prev { transform: translate(-155%, -50%) rotate(-6deg); }
.kr-next { transform: translate(55%, -50%) rotate(6deg); }
@keyframes kkb { from { transform: translate(-50%, -50%) scale(.92); } to { transform: translate(-50%, -50%) scale(1); } }
#kr-cap { margin-top: calc(var(--s) * 3); font-size: calc(var(--s) * 2.8); font-weight: 600; color: #e4e4e7; min-height: calc(var(--s) * 4); }
#k-hint { font-size: calc(var(--s) * 2.6); }

/* round 5: greeting shows a still Moments strip; prompts live in their own row */
#k-greet { justify-content: center; height: 100%; padding: calc(var(--s) * 3) 0 calc(var(--s) * 7); }
#k-name { font-size: calc(var(--s) * 12.5); }
#k-stats { margin-top: calc(var(--s) * 3.4); }
#k-tour { margin-top: calc(var(--s) * 3); font-size: calc(var(--s) * 3.4); }
#k-msg { margin-top: calc(var(--s) * 1.6); font-size: calc(var(--s) * 2.8); }
#k-badges { margin-top: calc(var(--s) * 2.2); }
#k-strip { display: flex; gap: calc(var(--s) * 1.4); margin-top: calc(var(--s) * 3); justify-content: center; }
#k-strip:empty { display: none; }
#k-strip i { display: block; width: calc(var(--s) * 9); aspect-ratio: 9 / 16; border-radius: calc(var(--s) * 1); background: #222 center / cover; box-shadow: 0 0 0 1px rgba(255,255,255,.15); opacity: 0; animation: kpopin .6s cubic-bezier(.2,1.4,.3,1) forwards; }
#k-greet.go #k-strip { animation-delay: 2.6s; }
.k-prompt { min-height: calc(var(--s) * 5); margin-top: calc(var(--s) * 2.6); font-family: var(--display); font-weight: 700; font-size: calc(var(--s) * 3);
  opacity: 0; transition: opacity .6s var(--ease); }
.k-prompt.on { opacity: 1; animation: knudge 2.4s ease-in-out .6s infinite; }
.k-prompt i { font-style: normal; color: var(--red-hi); }
#k-greet.go #k-greet-next { animation: none; opacity: 0; transform: none; }
#k-greet.go #k-greet-next.on { opacity: 1; animation: knudge 2.4s ease-in-out .6s infinite; }
.kr-stage { height: calc(var(--s) * 58); }
.kr-main { overflow: hidden; }
.kr-main video { width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .5s var(--ease); }
.kr-main video.on { opacity: 1; }
.kr-main.wide { aspect-ratio: 16 / 9; height: 100%; }

#crumb:empty { display: none; }
#crumb::before { content: "/"; margin: 0 1.2vh 0 .4vh; color: var(--dim); }

/* round 6: titles that fit, photo tiles */
#hero-title { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; text-wrap: balance; }
#hero-title.long { font-size: 6vh; line-height: 1.02; }
#hero-title.xlong { font-size: 4.8vh; line-height: 1.06; }
.card.tile { filter: brightness(.85); }
.card.tile::after { background: linear-gradient(0deg, rgba(0,0,0,.85) 0%, rgba(0,0,0,.25) 55%, rgba(0,0,0,.1) 100%); }
.tile-lbl { position: absolute; left: 1.8vh; right: 1.8vh; bottom: 1.6vh; z-index: 1; }
.tile-lbl b { display: block; font-family: var(--display); font-weight: 700; font-size: 3.2vh; line-height: 1.05; }
.tile-lbl small { display: block; margin-top: .5vh; color: #d4d4d8; font-size: 1.5vh; }
.card.tile.focus { filter: none; }

/* ---------- launcher (home) ---------- */
#launch { position: fixed; inset: 0; z-index: 3; background: var(--bg); display: flex; flex-direction: column; }
.launch-top { display: flex; align-items: center; justify-content: space-between; padding: 4.4vh 5vw 2.6vh; }
#launch-clock { font-family: var(--display); font-size: 2.6vh; color: var(--muted); }
#launch-panels { flex: 1; display: flex; gap: 1.2vw; padding: 0 5vw; min-height: 0; }
.lp { position: relative; flex: 1 1 0; border-radius: 2.4vh; overflow: hidden; background: #111; transition: flex-grow .7s cubic-bezier(.2,.8,.2,1), transform .5s var(--ease), box-shadow .5s var(--ease); }
.lp.focus { flex-grow: 3.4; box-shadow: 0 0 0 .4vh #fff, 0 3vh 8vh rgba(0,0,0,.6), 0 0 10vh rgba(var(--tint), .45); }
.lp-pics, .lp-pics i { position: absolute; inset: 0; }
.lp-pics i { background: center / cover no-repeat; opacity: 0; transform: scale(1.12); transition: opacity 1.2s var(--ease), transform 6s ease-out; }
.lp-pics i.on { opacity: 1; transform: scale(1); }
.lp:not(.focus) .lp-pics i.on { filter: grayscale(.35) brightness(.55); }
.lp-shade { position: absolute; inset: 0; background: linear-gradient(0deg, rgba(5,5,5,.95) 0%, rgba(5,5,5,.35) 45%, rgba(var(--tint), .18) 100%); }
.lp-side { position: absolute; left: 50%; bottom: 4vh; transform: translateX(-50%) rotate(180deg); writing-mode: vertical-rl; font-family: var(--display); font-weight: 700; font-size: 3.4vh; letter-spacing: .08em; white-space: nowrap; transition: opacity .4s var(--ease); }
.lp.focus .lp-side { opacity: 0; }
.lp-body { position: absolute; left: 3.4vh; right: 3.4vh; bottom: 4vh; opacity: 0; transform: translateY(2vh); transition: opacity .5s var(--ease) .15s, transform .6s var(--ease) .15s; }
.lp.focus .lp-body { opacity: 1; transform: none; }
.lp-n { color: rgba(var(--tint), 1); font-family: var(--display); font-weight: 700; font-size: 2vh; letter-spacing: .2em; filter: brightness(1.6); }
.lp-name { font-family: var(--display); font-weight: 700; font-size: 8.4vh; line-height: .95; letter-spacing: -.02em; margin-top: .8vh; }
.lp-line { margin-top: 1.4vh; font-size: 2.4vh; color: #e4e4e7; max-width: 46vh; }
.lp-go { margin-top: 2.4vh; font-size: 1.8vh; color: var(--muted); }
.launch-hint { padding: 2.6vh 5vw 3.6vh; text-align: center; color: var(--muted); font-size: 1.7vh; }

#kiosk.home-game #k-foot, #kiosk.home-game #k-hint { display: none; }

/* ---------- music player ---------- */
#music { position: fixed; inset: 0; z-index: 22; background: #070304; overflow: hidden; }
#mp-bg { position: absolute; inset: -10%; background: center / cover; filter: blur(8vh) saturate(1.4) brightness(.35); transform: scale(1.2); }
.mp-glow { position: absolute; inset: 0; mix-blend-mode: screen; }
.mp-glow i { position: absolute; border-radius: 50%; filter: blur(7vh); will-change: transform, opacity; }
#mp-b1 { width: 70vh; height: 70vh; left: 8%; top: 10%; background: radial-gradient(circle, rgba(225,29,72,.95), rgba(163,32,35,0) 65%); }
#mp-b2 { width: 80vh; height: 80vh; right: 4%; top: -10%; background: radial-gradient(circle, rgba(251,59,98,.7), rgba(163,32,35,0) 65%); }
#mp-b3 { width: 60vh; height: 60vh; right: 22%; bottom: -14%; background: radial-gradient(circle, rgba(255,140,90,.55), rgba(163,32,35,0) 65%); }
.mp-wrap { position: absolute; inset: 0; display: flex; align-items: center; gap: 6vw; padding: 0 8vw; }
#mp-cover { flex: 0 0 auto; width: 58vh; height: 58vh; border-radius: 3vh; background: #111 center / cover;
  box-shadow: 0 4vh 12vh rgba(0,0,0,.7), 0 0 0 1px rgba(255,255,255,.12), 0 0 14vh rgba(225,29,72,.45);
  transform: scale(var(--kick, 1)); transition: transform .08s linear; }
#mp-cover.swap { animation: mpswap .7s cubic-bezier(.2,.9,.2,1); }
@keyframes mpswap { from { opacity: 0; transform: scale(.9) translateY(3vh); } }
#music.paused #mp-cover { filter: grayscale(.5) brightness(.7); }
.mp-info { flex: 1; min-width: 0; }
.mp-kicker { color: var(--red-hi); font-weight: 700; letter-spacing: .3em; text-transform: uppercase; font-size: 1.9vh; }
#mp-title { font-family: var(--display); font-weight: 700; font-size: 10vh; line-height: .95; letter-spacing: -.02em; margin-top: 1.4vh; text-wrap: balance; }
#mp-title.long { font-size: 7vh; }
#mp-artist { margin-top: 1.4vh; font-size: 3.2vh; color: #e4e4e7; }
.mp-prog { margin-top: 4vh; height: .7vh; border-radius: 1vh; background: rgba(255,255,255,.18); overflow: hidden; max-width: 70vh; }
#mp-bar { display: block; height: 100%; width: 0; background: #fff; box-shadow: 0 0 2vh rgba(255,255,255,.6); }
#mp-time { margin-top: 1.2vh; color: var(--muted); font-size: 1.9vh; font-variant-numeric: tabular-nums; }
#mp-lyrics { margin-top: 3vh; max-width: 70vh; font-size: 2.2vh; color: #fda4af; min-height: 0; }
#mp-lyrics b { display: block; color: #fff; font-size: 1.6vh; letter-spacing: .24em; text-transform: uppercase; margin-bottom: .6vh; }
#mp-next { margin-top: 4vh; display: flex; flex-direction: column; gap: 1vh; }
#mp-next b { color: var(--muted); font-size: 1.6vh; letter-spacing: .24em; text-transform: uppercase; }
#mp-next span { font-size: 2.3vh; font-weight: 600; }
#mp-next small { margin-left: 1.2vh; color: var(--muted); font-weight: 400; font-size: 1.9vh; }
.mp-hints { position: absolute; left: 0; right: 0; bottom: 4vh; text-align: center; color: var(--muted); font-size: 1.7vh; }

.card.sq { aspect-ratio: 1 / 1; }

/* ---------- sign in ---------- */
#signin { position: fixed; inset: 0; z-index: 45; background: radial-gradient(60% 60% at 50% 30%, rgba(var(--glow), .25), transparent 70%), var(--bg); display: flex; align-items: center; justify-content: center; }
.si-wrap { width: 78vw; }
.si-h { font-family: var(--display); font-weight: 700; font-size: 6vh; text-align: center; }
.si-cols { display: flex; align-items: center; gap: 4vw; margin-top: 5vh; }
.si-col { flex: 1; display: flex; flex-direction: column; align-items: center; text-align: center; padding: 4vh 2vw; border-radius: 3vh; background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.1); min-height: 48vh; justify-content: center; }
.si-k { color: var(--red-hi); font-weight: 700; letter-spacing: .24em; text-transform: uppercase; font-size: 1.8vh; margin-bottom: 2.6vh; }
#si-qr { width: 24vh; height: 24vh; border-radius: 1.6vh; background: #fff; }
.si-s { margin-top: 1.8vh; color: var(--muted); font-size: 2vh; }
.si-s b { color: var(--fg); }
#si-pcode { margin-top: 1vh; font-family: var(--display); font-weight: 700; font-size: 6vh; letter-spacing: .14em; }
.si-or { color: var(--dim); font-size: 2.4vh; }
#signin input { width: 34vw; font: 600 4vh var(--display); color: #fff; background: #000; border: .3vh solid rgba(255,255,255,.25); border-radius: 1.6vh; padding: 1.8vh 2vh; text-align: center; outline: none; }
#signin input:focus { border-color: var(--red); box-shadow: 0 0 4vh rgba(var(--glow), .5); }
#si-msg { margin-top: 2vh; color: #fda4af; font-size: 2.1vh; min-height: 3vh; }
.si-foot { margin-top: 4vh; text-align: center; color: var(--muted); font-size: 1.8vh; }

/* ---------- achievement hall ---------- */
#hall { position: fixed; inset: 0; z-index: 25; background: radial-gradient(70% 50% at 50% 0%, rgba(234,179,8,.18), transparent 70%), #050505; overflow: hidden; }
#hall-scroll { position: absolute; inset: 0 0 8vh; overflow-y: auto; padding: 6vh 5vw 4vh; scrollbar-width: none; }
#hall-scroll::-webkit-scrollbar { display: none; }
.yr-loading { color: var(--muted); font-size: 2.6vh; margin-top: 30vh; text-align: center; }
.yr-top { display: flex; align-items: center; gap: 3vw; }
.yr-ring { width: 13vh; height: 13vh; border-radius: 50%; display: grid; place-items: center; background: radial-gradient(circle at 35% 30%, #fde68a, #92400e); box-shadow: 0 0 6vh rgba(234,179,8,.45); }
.yr-ring img { width: 9vh; height: 9vh; border-radius: 50%; }
.yr-name { font-family: var(--display); font-weight: 700; font-size: 7vh; line-height: 1; }
.yr-user { color: var(--muted); font-size: 2.4vh; margin-top: 1vh; }
.yr-stats { margin-left: auto; display: flex; gap: 3.4vw; }
.yr-stats div { text-align: right; }
.yr-stats b { display: block; font-family: var(--display); font-size: 5.4vh; line-height: 1; }
.yr-stats span { color: var(--muted); font-size: 1.6vh; letter-spacing: .16em; text-transform: uppercase; }
.yr-sec { margin-top: 6vh; }
.yr-sec h2 { font-family: var(--display); font-size: 3.6vh; margin: 0; }
.yr-sec > p { color: var(--muted); font-size: 1.9vh; margin: .8vh 0 0; }
.yr-row { display: flex; gap: 1.6vw; margin-top: 2.4vh; overflow-x: auto; padding: 1.4vh .6vw 2vh; scrollbar-width: none; }
.yr-row::-webkit-scrollbar { display: none; }
.yr-pt { flex: 0 0 auto; min-width: 26vh; padding: 2.4vh 2.6vh; border-radius: 2vh; background: rgba(255,255,255,.05); border: .25vh solid rgba(255,255,255,.08); transition: transform .15s, border-color .15s; }
.yr-pa { font-size: 2vh; color: var(--muted); }
.yr-pn { font-family: var(--display); font-size: 5vh; font-weight: 700; margin-top: .6vh; }
.yr-ps { font-size: 1.8vh; color: var(--muted); margin-top: .6vh; }
.yr-ps em { font-style: normal; color: #fcd34d; font-weight: 700; }
.yr-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(21vh, 1fr)); gap: 3vh 1.6vw; margin-top: 2.6vh; perspective: 120vh; }
.yr-badge { text-align: center; padding: 1.4vh .8vh 1.8vh; border-radius: 2vh; transition: transform .2s, background .2s; }
.plate { display: block; width: 17vh; height: 17vh; margin: 0 auto; border-radius: 50%; font-style: normal;
  background: radial-gradient(circle at 35% 30%, #27272a, #09090b) center / 78% no-repeat; background-size: 78%;
  box-shadow: inset 0 0 0 .4vh rgba(255,255,255,.1), 0 1.6vh 3vh rgba(0,0,0,.6); position: relative; }
.plate[style] { background-color: #111; background-size: 82%; background-position: center; }
.plate.none { display: grid; place-items: center; background: radial-gradient(circle at 35% 30%, #e11d48, #4c0519); }
.plate.none img { width: 9vh; height: 9vh; border-radius: 50%; opacity: .9; }
.plate.none b { position: absolute; bottom: 2vh; font: 700 2.2vh var(--display); }
.yr-badge.one .plate { box-shadow: inset 0 0 0 .6vh #fcd34d, 0 0 4vh rgba(252,211,77,.4); }
.yr-bn { font-size: 1.9vh; font-weight: 600; margin-top: 1.4vh; line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.yr-bd { font-size: 1.6vh; color: var(--muted); margin-top: .5vh; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.yr-f.focus { background: rgba(255,255,255,.08); transform: scale(1.06); }
.yr-pt.yr-f.focus { border-color: #fff; }
.yr-badge.focus .plate { animation: platewob 3.6s ease-in-out infinite; box-shadow: inset 0 0 0 .5vh #fff, 0 0 6vh rgba(234,179,8,.6); }
@keyframes platewob { 0%, 100% { transform: rotateY(-16deg); } 50% { transform: rotateY(16deg); } }
.yr-nights { display: flex; flex-direction: column; gap: 1vh; margin-top: 2.4vh; }
.yr-night { display: grid; grid-template-columns: 22vh 1fr auto; gap: 2vw; align-items: baseline; padding: 1.8vh 2.2vh; border-radius: 1.4vh; background: rgba(255,255,255,.03); transition: background .15s; }
.yr-night b { font-family: var(--display); font-size: 2.2vh; }
.yr-night span { font-size: 2.2vh; }
.yr-night em { font-style: normal; color: var(--muted); font-size: 1.8vh; }
.yr-night.focus { transform: none; background: rgba(255,255,255,.12); }
.yr-empty { color: var(--muted); font-size: 2.2vh; }
.hall-hint { position: absolute; left: 0; right: 0; bottom: 3vh; text-align: center; color: var(--muted); font-size: 1.7vh; }

/* lyrics: the line you are on glows, the next ones wait */
#mp-lines { margin-top: 3vh; max-width: 80vh; display: none; }
#music.lyrics #mp-lines { display: block; }
#music.lyrics #mp-next { display: none; }
.ly { font-family: var(--display); font-weight: 700; font-size: 3.2vh; color: rgba(255,255,255,.35); line-height: 1.25; margin: 1vh 0; transition: all .35s var(--ease); }
.ly.past { font-size: 2.4vh; color: rgba(255,255,255,.2); }
.ly.now { font-size: 5.4vh; color: #fff; text-shadow: 0 0 3vh rgba(255,255,255,.55), 0 0 8vh rgba(225,29,72,.6); }

/* ---------- listening party ---------- */
#party { position: fixed; inset: 0; z-index: 22; background: #060304; overflow: hidden; }
#pt-bg { position: absolute; inset: -10%; background: center / cover; filter: blur(9vh) saturate(1.5) brightness(.4); transform: scale(1.2); animation: kbreathe 6s ease-in-out infinite; }
.pt-wrap { position: absolute; inset: 0; display: flex; align-items: center; gap: 6vw; padding: 0 8vw; }
#pt-cover { flex: 0 0 auto; width: 56vh; height: 56vh; border-radius: 3vh; background: #111 center / cover; box-shadow: 0 4vh 12vh rgba(0,0,0,.7), 0 0 14vh rgba(217,119,6,.45); }
.pt-kicker { color: #fbbf24; font-weight: 700; letter-spacing: .3em; text-transform: uppercase; font-size: 1.9vh; }
#pt-title { font-family: var(--display); font-weight: 700; font-size: 9vh; line-height: .95; margin-top: 1.4vh; }
#pt-artist { font-size: 3vh; color: #e4e4e7; margin-top: 1.2vh; }
#pt-count { font-family: var(--display); font-weight: 700; font-size: 11vh; margin-top: 4vh; font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
#party.dropped #pt-count { color: #fbbf24; text-shadow: 0 0 6vh rgba(251,191,36,.6); }
#pt-watch { font-size: 2.6vh; color: #fde68a; margin-top: 1.4vh; }
#pt-hint { font-size: 2vh; color: var(--muted); margin-top: 3vh; }
/* ---------- tickets QR ---------- */
#qr-modal { position: fixed; inset: 0; z-index: 48; background: rgba(0,0,0,.75); backdrop-filter: blur(10px); display: flex; align-items: center; justify-content: center; }
.qm-card { display: flex; align-items: center; gap: 4vw; padding: 5vh 4vw; border-radius: 3vh; background: #111; border: 1px solid rgba(var(--glow), .5); }
#qm-img { width: 34vh; height: 34vh; border-radius: 2vh; background: #fff; }
.qm-k { color: var(--red-hi); font-weight: 700; letter-spacing: .24em; text-transform: uppercase; font-size: 1.9vh; }
#qm-title { font-family: var(--display); font-weight: 700; font-size: 5vh; margin-top: 1.2vh; }
#qm-sub { font-size: 2.4vh; color: #e4e4e7; margin-top: 1vh; }
.qm-s { font-size: 2vh; color: var(--muted); margin-top: 3vh; }

.si-btn { display: block; margin: 2.4vh auto 0; padding: 1.6vh 4vh; border-radius: 99px; border: 0; background: var(--red); color: #fff; font: 700 2.4vh var(--display); }
.si-btn:focus { outline: none; box-shadow: 0 0 0 .4vh #fff, 0 0 4vh rgba(var(--glow), .6); transform: scale(1.04); }
/* the keyboard slides the app up instead of resizing it: keep sizes fixed to the TV */
#signin { height: 1080px; max-height: 100%; }

/* ---------- are you still watching ---------- */
#still { position: fixed; inset: 0; z-index: 46; background: rgba(0,0,0,.65); backdrop-filter: blur(8px); display: flex; align-items: center; justify-content: center; }
.still-card { padding: 6vh 6vw; border-radius: 3vh; background: rgba(15,15,17,.9); border: 1px solid rgba(var(--glow), .5); text-align: center; }
.still-h { font-family: var(--display); font-weight: 700; font-size: 6vh; }
.still-s { margin-top: 3vh; color: var(--muted); font-size: 2.2vh; }
/* ---------- screensaver ---------- */
#sv-ring { position: absolute; left: 0; top: 0; width: 34vh; height: 34vh; z-index: 2; pointer-events: none; will-change: transform; }
/* A corner hit: the border lights up and says GOAL (owner, 2026-10-27: "goal, G-O-A-L"). */
#sv-go { position: absolute; inset: 0; z-index: 3; pointer-events: none; opacity: 0; display: grid; place-items: center;
  box-shadow: inset 0 0 0 14px #FB2C36, inset 0 0 120px 40px rgba(251,44,54,.55); }
#sv-go b { font-family: var(--display); font-weight: 800; font-size: 24vh; letter-spacing: .04em; color: #fff;
  text-shadow: 0 0 6vh #FB2C36, 0 0 14vh rgba(251,44,54,.8); transform: scale(.6); }
#saver.go #sv-go { animation: svgo 2.6s ease-out; }
#saver.go #sv-go b { animation: svgob 2.6s cubic-bezier(.2,1.6,.4,1); }
@keyframes svgo { 0% { opacity: 0; } 6% { opacity: 1; } 14% { opacity: .55; } 22% { opacity: 1; } 75% { opacity: 1; } 100% { opacity: 0; } }
@keyframes svgob { 0% { transform: scale(.4); } 18% { transform: scale(1.08); } 30%, 80% { transform: scale(1); } 100% { transform: scale(1.15); } }
#saver { background: radial-gradient(60% 55% at 50% 45%, #2a0a10 0%, #0c0507 55%, #030203 100%); }
#saver.ring #sv-pics { opacity: 1; }
/* The wall: six columns of Moments drifting up, tilted into the dark, lit red like the Ring. */
#sv-pics { position: absolute; inset: -20% -10%; display: flex; gap: 2.4vh; justify-content: center; transform: perspective(160vh) rotateX(14deg) rotateZ(-6deg);
  -webkit-mask-image: radial-gradient(70% 70% at 50% 50%, #000 30%, transparent 85%); mask-image: radial-gradient(70% 70% at 50% 50%, #000 30%, transparent 85%); }
.sv-col { display: flex; flex-direction: column; gap: 2.4vh; animation: svdrift var(--dur) linear infinite; animation-delay: calc(var(--c) * -23s); }
.sv-col:nth-child(even) { margin-top: 14vh; }
.sv-col i { width: 24vh; height: 34vh; border-radius: 1.6vh; background: #140709 center / cover no-repeat; flex: 0 0 auto;
  filter: brightness(.42) saturate(.75) sepia(.25) hue-rotate(-20deg); box-shadow: 0 2vh 5vh rgba(0,0,0,.7), inset 0 0 0 .2vh rgba(251,44,54,.12); }
@keyframes svdrift { from { transform: translateY(0); } to { transform: translateY(-50%); } }
#saver::after { content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 1;
  background: radial-gradient(40% 35% at 50% 100%, rgba(251,44,54,.22), transparent 70%), radial-gradient(90% 80% at 50% 50%, transparent 40%, rgba(0,0,0,.75) 100%); }
#saver { position: fixed; inset: 0; z-index: 60; background: #000; overflow: hidden; cursor: none; }
.sv-shade { position: absolute; inset: 0; background: linear-gradient(0deg, rgba(0,0,0,.7), transparent 40%); }
.sv-brand { position: absolute; z-index: 2; left: 5vw; bottom: 6vh; display: flex; align-items: center; gap: 1.4vh; }
.sv-brand img { width: 5vh; height: 5vh; border-radius: 50%; }
.sv-brand span { font-family: var(--display); font-weight: 700; letter-spacing: .24em; font-size: 2.8vh; }
#sv-clock { position: absolute; z-index: 2; right: 5vw; bottom: 5vh; font-family: var(--display); font-weight: 700; font-size: 9vh; color: rgba(255,255,255,.92); text-shadow: 0 1vh 4vh rgba(0,0,0,.6); }
.sv-tip { position: absolute; z-index: 2; left: 0; right: 0; top: 4vh; text-align: center; color: rgba(255,255,255,.35); font-size: 1.6vh; letter-spacing: .2em; text-transform: uppercase; }

#p-buffer { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); opacity: 0; transition: opacity .3s var(--ease) .4s; pointer-events: none; }
#player.buffering #p-buffer { opacity: 1; }
#p-buffer i { display: block; width: 9vh; height: 9vh; border-radius: 50%; border: .8vh solid rgba(255,255,255,.18); border-top-color: #fff; animation: kspin .8s linear infinite; }

/* ---------- the door code ---------- */
#gate { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center;
  background: radial-gradient(circle at 50% 35%, #2a0d12 0%, #07070a 60%); }
.gate-box { display: flex; flex-direction: column; align-items: center; }
.gate-box img { width: 9vh; height: 9vh; border-radius: 50%; }
.gate-title { margin-top: 2vh; font-family: var(--display); font-weight: 700; letter-spacing: .3em; font-size: 3.4vh; }
.gate-sub { margin-top: 1vh; color: rgba(255,255,255,.55); font-size: 2vh; }
#gate-dots { display: flex; gap: 2.4vh; margin: 4vh 0 3.4vh; }
#gate-dots i { width: 2.4vh; height: 2.4vh; border-radius: 50%; border: .3vh solid rgba(255,255,255,.5); transition: background .15s; }
#gate-dots i.on { background: #fff; border-color: #fff; }
#gate-dots.bad i { border-color: #FB2C36; animation: gshake .4s; }
@keyframes gshake { 25% { transform: translateX(-1vh); } 75% { transform: translateX(1vh); } }
#gate-pad { display: grid; grid-template-columns: repeat(3, 11vh); gap: 1.6vh; }
.gk { height: 11vh; border-radius: 50%; display: grid; place-items: center; font-family: var(--display); font-size: 4vh; font-weight: 600;
  background: rgba(255,255,255,.06); border: .25vh solid rgba(255,255,255,.08); transition: transform .12s, background .12s; }
.gk.go { font-size: 2.6vh; letter-spacing: .1em; }
.gk.focus { background: #fff; color: #000; transform: scale(1.08); }
#gate-msg { min-height: 3vh; margin-top: 3vh; color: #ff8b90; font-size: 2vh; }

/* ---------- launcher art for Games and Listening parties ---------- */
.lp-art { position: absolute; inset: 0; overflow: hidden; background: radial-gradient(80% 60% at 50% 35%, rgba(var(--tint), .55), #07070a 75%); }
.lp-art.games .ga-cards { position: absolute; left: 50%; top: 34%; width: 0; height: 0; }
.ga-cards i { position: absolute; width: 15vh; height: 21vh; margin: -10.5vh 0 0 -7.5vh; border-radius: 1.6vh; display: grid; place-items: center; font: 800 8vh var(--display); font-style: normal;
  background: linear-gradient(160deg, #3b82f6, #1e3a8a); box-shadow: 0 2vh 5vh rgba(0,0,0,.55), inset 0 0 0 .4vh rgba(255,255,255,.25);
  animation: gacard 6s ease-in-out infinite; animation-delay: calc(var(--i) * -1.5s); }
.ga-cards i:first-child { background: linear-gradient(160deg, #fff, #c7d2fe); color: #1e3a8a; z-index: 2; }
@keyframes gacard { 0%, 100% { transform: rotate(calc(var(--i) * 9deg - 14deg)) translate(calc(var(--i) * 3vh - 4vh), 0); }
  50% { transform: rotate(calc(var(--i) * -9deg + 14deg)) translate(calc(var(--i) * -3vh + 4vh), -2vh); } }
.ga-pts { position: absolute; left: 50%; top: 56%; transform: translateX(-50%); font: 800 5vh var(--display); color: #fcd34d; text-shadow: 0 0 3vh rgba(252,211,77,.6); animation: gapts 2.4s ease-in-out infinite; }
@keyframes gapts { 0%, 100% { opacity: .3; transform: translate(-50%, 1vh); } 50% { opacity: 1; transform: translate(-50%, -1vh); } }
.lp-art.parties .pa-disc { position: absolute; left: 50%; top: 32%; width: 34vh; height: 34vh; margin: -17vh 0 0 -17vh; border-radius: 50%;
  background: repeating-radial-gradient(circle, #111 0 .5vh, #1c1c1f .5vh .8vh); box-shadow: 0 3vh 6vh rgba(0,0,0,.6); animation: padisc 4s linear infinite; }
.pa-disc i { position: absolute; inset: 36%; border-radius: 50%; background: radial-gradient(circle, #111 0 12%, #f59e0b 13% 100%); }
.pa-disc::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: linear-gradient(120deg, transparent 40%, rgba(255,255,255,.12) 50%, transparent 60%); }
@keyframes padisc { to { transform: rotate(360deg); } }
.pa-eq { position: absolute; left: 50%; top: 56%; transform: translateX(-50%); display: flex; gap: .8vh; align-items: flex-end; height: 8vh; }
.pa-eq i { width: 1.2vh; background: #fbbf24; border-radius: .6vh; animation: paeq 1.1s ease-in-out infinite; animation-delay: calc(var(--i) * -.13s); }
@keyframes paeq { 0%, 100% { height: 1.2vh; } 50% { height: 8vh; } }
.lp:not(.focus) .lp-art { filter: brightness(.55) saturate(.7); }
.lp:not(.focus) .lp-art * { animation-play-state: paused; }

/* While a video plays, nothing else draws (owner, 2026-10-27: "the videos
 * still are glitchy"). On a small TV GPU every layer composited with the
 * video costs frames: the screens underneath go away, every animation
 * outside the player stops, and a full-screen video drops the blurred
 * backdrop it does not need. */
body.playing #home, body.playing #launch, body.playing #saver, body.playing #hall { display: none !important; }
body.playing *:not(#player):not(#player *) { animation-play-state: paused !important; }
body.playing #player:not(.tall) #player-bg { display: none; }

/* ---------- the cover art game ---------- */
#kt-img { width: calc(var(--s) * 34); height: calc(var(--s) * 34); margin: 0 auto calc(var(--s) * 2); border-radius: calc(var(--s) * 1.6);
  background: #111 center / cover no-repeat; box-shadow: 0 calc(var(--s) * 2) calc(var(--s) * 6) rgba(0,0,0,.6); filter: blur(calc(var(--s) * 3.2)) saturate(1.2); transform: scale(.96); }
#kt-img.sharp { transition: filter var(--t, 14s) cubic-bezier(.6,0,.9,.6), transform var(--t, 14s) ease-out; filter: blur(calc(var(--s) * .5)); transform: scale(1); }
#kt-img.shown { transition: filter .4s; filter: none; }
#k-trivia.covers #kt-q { font-size: calc(var(--s) * 3); }

/* ---------- listening party mode ---------- */
#music.party .mp-hints { display: none; }
#mp-party { position: absolute; inset: 0; pointer-events: none; z-index: 5; }
.mpp-top { position: absolute; left: 5vw; top: 4.5vh; display: flex; align-items: center; gap: 1.6vw; font-size: 2vh; }
.mpp-live { background: #FB2C36; color: #fff; font-weight: 800; letter-spacing: .16em; padding: .5vh 1.2vh; border-radius: .6vh; animation: mpplive 1.6s ease-in-out infinite; }
@keyframes mpplive { 50% { box-shadow: 0 0 2.4vh rgba(251,44,54,.8); } }
#mpp-title { color: rgba(255,255,255,.75); letter-spacing: .08em; }
#mpp-count { font-weight: 700; }
#mpp-names { position: absolute; left: 5vw; top: 9vh; right: 40vw; color: rgba(255,255,255,.55); font-size: 1.8vh; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#mpp-chat { position: absolute; right: 4vw; top: 10vh; bottom: 24vh; width: 28vw; display: flex; flex-direction: column; justify-content: flex-end; gap: 1vh; overflow: hidden;
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 25%); mask-image: linear-gradient(180deg, transparent, #000 25%); }
#mpp-chat div { background: rgba(0,0,0,.45); border: .15vh solid rgba(255,255,255,.08); border-radius: 1.4vh; padding: 1vh 1.4vh; font-size: 2vh; line-height: 1.3; animation: mppin .35s ease-out; }
#mpp-chat b { color: #fbbf24; margin-right: .8vh; }
@keyframes mppin { from { opacity: 0; transform: translateY(1.6vh); } }
#mpp-join { position: absolute; right: 4vw; bottom: 8vh; display: flex; gap: 1.4vh; align-items: center; background: rgba(0,0,0,.5); border-radius: 1.6vh; padding: 1.2vh; }
#mpp-join img { width: 11vh; height: 11vh; border-radius: .8vh; background: #fff; }
#mpp-join b { display: block; font-size: 2vh; }
#mpp-join span { font-size: 1.6vh; color: rgba(255,255,255,.7); }
#mpp-join em { font-style: normal; font-weight: 800; letter-spacing: .14em; color: #fff; }
#mpp-react { position: absolute; inset: 0; overflow: hidden; }
#mpp-react i { position: absolute; bottom: -8vh; font-style: normal; animation: mppfloat 4s ease-out forwards; }
@keyframes mppfloat { 0% { transform: translate(0, 0) scale(.6); opacity: 0; } 12% { opacity: 1; transform: translate(0, -8vh) scale(1.1); }
  100% { transform: translate(var(--dx), -80vh) scale(1); opacity: 0; } }
.mpp-hints { position: absolute; left: 0; right: 0; bottom: 3vh; text-align: center; color: var(--muted); font-size: 1.7vh; }
#mpp-done { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; background: rgba(0,0,0,.72); }
#mpp-done-t { font-family: var(--display); font-weight: 800; font-size: 7vh; }
#mpp-done-s { margin-top: 2vh; color: rgba(255,255,255,.75); font-size: 2.6vh; }
#party.final #pt-count { font-size: 30vh; line-height: 1; color: #fff; text-shadow: 0 0 6vh #f59e0b; animation: ptbeat 1s ease-out infinite; }
@keyframes ptbeat { 0% { transform: scale(1.25); } 100% { transform: scale(1); } }
/* In a party the player moves over for the chat column; nothing overlaps. */
#music.party .mp-wrap { padding: 12vh 35vw 10vh 5vw; gap: 4vw; }
#music.party #mp-cover { width: 44vh; height: 44vh; }
#music.party #mp-title { font-size: 7vh; }
/* Kiosk greeting on a landscape screen (found 2026-10-28 testing every size):
 * a full profile (tier, four stats, check-in, message, badges) was taller than
 * the screen, so "Welcome back" went off the top and the name ran into the
 * remote hints. Landscape gets tighter spacing; the hints step aside while
 * someone is being greeted. */
#k-stage:has(#k-greet:not(.hidden)) #k-hint { opacity: 0; }
#k-stage:not(.portrait) #k-greet #k-name { font-size: calc(var(--s) * 11); }
#k-stage:not(.portrait) #k-greet #k-user { margin-top: calc(var(--s) * .6); font-size: calc(var(--s) * 2.6); }
#k-stage:not(.portrait) #k-greet #k-tier { margin-top: calc(var(--s) * 1.8); }
#k-stage:not(.portrait) #k-greet #k-stats { margin-top: calc(var(--s) * 3); }
#k-stage:not(.portrait) #k-greet .k-stat { padding: calc(var(--s) * 1.8) calc(var(--s) * 2.6); }
#k-stage:not(.portrait) #k-greet .k-stat b { font-size: calc(var(--s) * 6.2); }
#k-stage:not(.portrait) #k-greet #k-tour { margin-top: calc(var(--s) * 2.6); font-size: calc(var(--s) * 3.4); }
#k-stage:not(.portrait) #k-greet #k-msg { margin-top: calc(var(--s) * 2.2); font-size: calc(var(--s) * 3); }
#k-stage:not(.portrait) #k-greet #k-badges { margin-top: calc(var(--s) * 2.2); }

/* Settings grew past one screen (found 2026-10-28): start from the top when
 * it does not fit, scroll with the focus, and rows a touch tighter. */
#settings { align-items: safe center; overflow-y: auto; padding: 5vh 0; scrollbar-width: none; }
#settings::-webkit-scrollbar { display: none; }
.set-row { padding: 1.5vh 2.4vw; margin-bottom: .6vh; }

/* ---------- the vertical stage (owner, 2026-10-28) ----------
 * The vertical itself, full height in a clean 9:16 frame, the room lit in its
 * own colour, the details on the left and the feed of what comes next on the
 * right. Up and down slide between them like a phone. */
#vs-glow, #vs-info, #vs-strip { display: none; }
#player.vstage { background: #050405; }
#player.vstage #player-bg, #player.vstage #p-top, #player.vstage #p-side, #player.vstage #p-hints { display: none; }
#player.vstage #vs-glow { display: block; position: absolute; inset: 0;
  background: radial-gradient(38% 62% at 50% 50%, rgba(var(--vc, 225, 29, 72), .42), transparent 72%), radial-gradient(70% 90% at 50% 110%, rgba(var(--vc, 225, 29, 72), .16), transparent 70%);
  transition: background 1.2s var(--ease); }
#player.vstage #pv, #player.vstage #pimg { top: 4vh; bottom: auto; left: 50%; height: 92vh; width: auto; aspect-ratio: 9 / 16; transform: translateX(-50%);
  object-fit: cover; border-radius: 2.6vh; background: #000;
  box-shadow: 0 0 0 .25vh rgba(255,255,255,.1), 0 3vh 10vh rgba(0,0,0,.8), 0 0 14vh rgba(var(--vc, 225, 29, 72), .35); }
#player.vstage #pv.vs-in-up { animation: vsup .45s cubic-bezier(.2,.8,.2,1); }
#player.vstage #pv.vs-in-down { animation: vsdown .45s cubic-bezier(.2,.8,.2,1); }
@keyframes vsup { from { transform: translate(-50%, 40vh) scale(.92); opacity: .2; } to { transform: translate(-50%, 0); opacity: 1; } }
@keyframes vsdown { from { transform: translate(-50%, -40vh) scale(.92); opacity: .2; } to { transform: translate(-50%, 0); opacity: 1; } }
#player.vstage #vs-info { display: flex; flex-direction: column; position: absolute; left: 5vw; top: 50%; transform: translateY(-50%); width: calc(50vw - 26vh - 8vw); }
#vs-count { font-family: var(--display); font-weight: 700; font-size: 2.2vh; color: rgba(255,255,255,.45); letter-spacing: .08em; }
#vs-kicker { margin-top: 2vh; color: rgb(var(--vc, 225, 29, 72)); filter: brightness(1.4) saturate(1.2); font-weight: 700; font-size: 1.7vh; letter-spacing: .2em; text-transform: uppercase; }
#vs-title { margin-top: 1.4vh; font-family: var(--display); font-weight: 700; font-size: 4.6vh; line-height: 1.05; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }
#vs-desc { margin-top: 1.6vh; color: #c4c4cc; font-size: 2vh; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
#vs-desc:empty { display: none; }
#vs-date { margin-top: 1.6vh; color: var(--muted); font-size: 1.8vh; }
.vs-keys { margin-top: 4vh; color: var(--muted); font-size: 1.6vh; white-space: nowrap; }
#player.vstage #vs-strip { display: flex; flex-direction: column; gap: 2vh; position: absolute; right: 5vw; top: 50%; transform: translateY(-50%); width: calc(50vw - 26vh - 8vw); align-items: flex-end; }
.vs-next { display: flex; flex-direction: column; align-items: flex-end; opacity: .45; }
.vs-next.first { opacity: 1; }
.vs-next i { display: block; width: 11vh; aspect-ratio: 9 / 16; border-radius: 1.4vh; background: #1a1a1a center / cover; box-shadow: 0 1.4vh 3vh rgba(0,0,0,.6); }
.vs-next.first i { width: 17vh; box-shadow: 0 0 0 .25vh rgba(255,255,255,.25), 0 2vh 5vh rgba(0,0,0,.6); }
.vs-next b { margin-top: 1.2vh; font-size: 1.4vh; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.vs-next span { margin-top: .5vh; font-size: 1.8vh; font-weight: 600; text-align: right; max-width: 100%; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
#player.vstage #p-bottom { left: 50%; right: auto; bottom: 1.6vh; width: calc(92vh * 9 / 16 - 4vh); transform: translateX(-50%); }
#player.vstage.quiet #vs-info, #player.vstage.quiet #vs-strip { opacity: .0; transition: opacity .8s var(--ease); }
#player.vstage #vs-info, #player.vstage #vs-strip { transition: opacity .4s var(--ease); }
/* Verticals are short, so the "Up next" pill came up all the time (owner,
 * 2026-10-28): on the stage the feed on the right already shows what is next. */
#player.vstage #p-next { display: none !important; }

/* Saved mark in the player */
#p-saved { position: absolute; right: 5vw; top: 5vh; padding: .8vh 1.8vh; border-radius: 99px; background: rgba(251,44,54,.92); font-weight: 800; font-size: 1.8vh; opacity: 0; transform: translateY(-1vh); transition: opacity .3s, transform .3s; }
#p-saved.on { opacity: 1; transform: none; }

.yr-saved { flex: 0 0 auto; width: 17vh; border-radius: 1.6vh; padding: .8vh; transition: transform .15s, background .15s; }
.yr-saved i { display: block; width: 100%; aspect-ratio: 9 / 16; border-radius: 1.2vh; background: #1a1a1a center / cover; }
.yr-saved span { display: block; margin-top: .8vh; font-size: 1.6vh; font-weight: 600; line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* ---------- how to play: just me or with friends ---------- */
#gm { position: fixed; inset: 0; z-index: 45; display: grid; place-items: center; background: rgba(4,4,6,.86); }
.gm-box { text-align: center; }
.gm-k { color: var(--muted); font-size: 2vh; letter-spacing: .2em; text-transform: uppercase; font-weight: 700; }
#gm-title { margin-top: 1.4vh; font-family: var(--display); font-weight: 700; font-size: 5vh; }
#gm-opts { display: flex; gap: 3vw; margin-top: 5vh; justify-content: center; }
.gm-opt { width: 30vw; padding: 4vh 2vw; border-radius: 2.4vh; background: rgba(255,255,255,.05); border: .3vh solid rgba(255,255,255,.08); transition: transform .15s, background .15s, border-color .15s; }
.gm-opt b { display: block; font-family: var(--display); font-size: 4vh; }
.gm-opt span { display: block; margin-top: 1.4vh; color: var(--muted); font-size: 2vh; }
.gm-opt.focus { background: rgba(251,44,54,.16); border-color: #FB2C36; transform: scale(1.04); }
.gm-hint { margin-top: 5vh; color: var(--muted); font-size: 1.7vh; }
/* Solo: no phones to join, so the lobby is just "get ready"; the answer you are on glows, the one you locked in stays lit. */
#k-trivia.solo .kt-join, #k-trivia.solo #kt-players { display: none; }
.kt-opt.pick { outline: calc(var(--s) * .6) solid #fff; transform: scale(1.03); }
.kt-opt.locked { outline: calc(var(--s) * .6) solid #fff; box-shadow: 0 0 calc(var(--s) * 4) rgba(255,255,255,.6); }

/* ---------- the one of ones hall ---------- */
#oo { position: fixed; inset: 0; z-index: 44; background: radial-gradient(50% 60% at 32% 50%, rgba(252,211,77,.2), transparent 70%), #050405; display: flex; align-items: center; }
#oo-stage { flex: 0 0 56vw; display: grid; place-items: center; perspective: 160vh; }
#oo-card { position: relative; height: 70vh; aspect-ratio: var(--ar, 1); max-width: 48vw; transform-style: preserve-3d; animation: ooturn 9s ease-in-out infinite; }
#oo-card i { position: absolute; inset: 0; background: center / contain no-repeat; backface-visibility: hidden; filter: drop-shadow(0 3vh 5vh rgba(0,0,0,.7)) drop-shadow(0 0 4vh rgba(252,211,77,.25)); }
#oo-back { transform: rotateY(180deg); }
#oo-card.mirror #oo-back { transform: rotateY(180deg) scaleX(-1); }
@keyframes ooturn { 0%, 30% { transform: rotateY(-14deg); } 45%, 80% { transform: rotateY(194deg); } 95%, 100% { transform: rotateY(346deg); } }
#oo-info { flex: 1; padding-right: 6vw; }
#oo-n { color: #fcd34d; font-weight: 800; font-size: 1.8vh; letter-spacing: .2em; text-transform: uppercase; }
#oo-label { margin-top: 1.4vh; font-family: var(--display); font-weight: 700; font-size: 6vh; line-height: 1.02; }
#oo-holder { margin-top: 2.4vh; font-size: 2.8vh; font-weight: 700; }
#oo-show { margin-top: 1.2vh; color: #c4c4cc; font-size: 2.1vh; }
#oo-note { margin-top: 2vh; color: var(--muted); font-size: 2vh; line-height: 1.4; max-width: 34vw; }
.oo-hint { margin-top: 5vh; color: var(--muted); font-size: 1.7vh; }

/* ---------- home screen backdrop: the Moments wall, lit by the panel you are on ---------- */
#launch { background: #050405; overflow: hidden; }
#launch-wall { position: absolute; inset: -25% -12%; display: flex; gap: 2.2vh; justify-content: center; transform: perspective(170vh) rotateX(16deg) rotateZ(-7deg); opacity: .34;
  -webkit-mask-image: radial-gradient(75% 70% at 50% 45%, #000 25%, transparent 85%); mask-image: radial-gradient(75% 70% at 50% 45%, #000 25%, transparent 85%); pointer-events: none; }
.lw-col { display: flex; flex-direction: column; gap: 2.2vh; animation: svdrift var(--dur) linear infinite; animation-delay: calc(var(--c) * -31s); }
.lw-col:nth-child(even) { margin-top: 16vh; }
.lw-col i { width: 22vh; height: 31vh; border-radius: 1.6vh; background: #140709 center / cover no-repeat; flex: 0 0 auto; filter: brightness(.5) saturate(.7); }
#launch-light { position: absolute; inset: 0; pointer-events: none; transition: background 1.1s var(--ease);
  background: radial-gradient(55% 60% at 50% 55%, rgba(var(--lt, 225, 29, 72), .30), transparent 70%), radial-gradient(90% 80% at 50% 50%, transparent 35%, rgba(0,0,0,.85) 100%); }
#launch > .launch-top, #launch > #launch-panels, #launch > .launch-hint { position: relative; z-index: 1; }
.lp { box-shadow: 0 2vh 6vh rgba(0,0,0,.55); }
.lp:not(.focus) { opacity: .82; }
.lp.focus { box-shadow: 0 0 0 .4vh #fff, 0 3vh 9vh rgba(0,0,0,.7), 0 0 14vh rgba(var(--tint), .55); }
body.playing #launch-wall * { animation-play-state: paused; }

#oo { z-index: 46; }
.yr-row .yr-badge { flex: 0 0 auto; width: 21vh; }

/* ---------- the Hall of Fame: pedestals in a dark hall, the one in front under the light ---------- */
#hof { position: fixed; inset: 0; z-index: 45; overflow: hidden; background: radial-gradient(80% 60% at 50% 0%, #1b0a10, #050405 70%); }
.hof-sky { position: absolute; inset: 0; background: radial-gradient(1px 1px at 20% 30%, rgba(255,255,255,.5), transparent), radial-gradient(1px 1px at 70% 20%, rgba(255,255,255,.4), transparent), radial-gradient(1.5px 1.5px at 85% 45%, rgba(255,255,255,.35), transparent), radial-gradient(1px 1px at 35% 12%, rgba(255,255,255,.4), transparent); opacity: .7; }
.hof-top { position: absolute; left: 5vw; right: 5vw; top: 4.4vh; display: flex; justify-content: space-between; align-items: center; z-index: 3; }
.hof-title { text-align: right; }
.hof-title b { display: block; font-family: var(--display); font-size: 4.4vh; }
.hof-title span { color: var(--muted); font-size: 1.8vh; letter-spacing: .14em; text-transform: uppercase; }
#hof-row { position: absolute; left: 0; top: 20vh; display: flex; gap: 4vw; transition: transform .7s cubic-bezier(.2,.8,.2,1); z-index: 1; }
.hof-ped { position: relative; width: 26vw; display: flex; flex-direction: column; align-items: center; opacity: .55; transform: scale(.88); transition: opacity .6s, transform .6s cubic-bezier(.2,.8,.2,1); }
.hof-ped.focus { opacity: 1; transform: scale(1); }
.hof-cone { position: absolute; top: -12vh; left: 15%; width: 70%; height: 62vh; background: linear-gradient(180deg, rgba(255,255,255,.16), rgba(255,255,255,.03) 55%, transparent); clip-path: polygon(38% 0, 62% 0, 100% 100%, 0 100%); filter: blur(6px); opacity: .5; transition: opacity .6s; }
.hof-ped.focus .hof-cone { opacity: 1; }
.hof-obj { position: relative; width: 100%; height: 40vh; display: grid; place-items: center; }
.hof-obj img { max-height: 32vh; max-width: 80%; filter: drop-shadow(0 3vh 4vh rgba(0,0,0,.8)); animation: hofflat 6s ease-in-out infinite; }
#hof.live .hof-obj img { visibility: hidden; }
@keyframes hofflat { 0%, 100% { transform: rotateY(-25deg); } 50% { transform: rotateY(25deg); } }
.hof-slab { width: 78%; height: 6vh; margin-top: -1vh; border: 1px solid rgba(255,255,255,.14); border-top: 0; border-radius: 0 0 1.4vh 1.4vh; background: linear-gradient(180deg, rgba(26,11,16,.92), rgba(7,7,10,.96)); display: flex; align-items: center; justify-content: space-between; padding: 0 1.6vw; box-shadow: inset 0 1.8vh 1.2vh -1vh rgba(255,255,255,.12), 0 3vh 6vh -2vh rgba(0,0,0,.9); }
.hof-slab span { font-family: ui-monospace, monospace; font-size: 1.5vh; letter-spacing: .3em; color: #f87171; }
.hof-slab em { font-style: normal; border: 1px solid rgba(255,255,255,.14); border-radius: 99px; padding: .2vh 1vh; font-size: 1.2vh; font-weight: 900; letter-spacing: .2em; text-transform: uppercase; color: #d4d4d8; }
.hof-base { width: 55%; height: 2.8vh; border: 1px solid rgba(255,255,255,.08); border-top: 0; border-radius: 0 0 1vh 1vh; background: linear-gradient(180deg, #0a0a0d, #000); }
.hof-glow { width: 85%; height: .8vh; margin-top: .6vh; border-radius: 50%; background: rgba(220,38,38,.35); filter: blur(8px); }
.hof-name { margin-top: 2.6vh; font-family: var(--display); font-weight: 700; font-size: 3.2vh; text-align: center; }
.hof-held { margin-top: .8vh; color: #c4c4cc; font-size: 2vh; text-align: center; }
.hof-held b { color: #fff; }
#hof-3d { position: absolute; inset: 0; z-index: 2; pointer-events: none; }
#hof-story { position: absolute; left: 12vw; right: 12vw; bottom: 9vh; text-align: center; color: var(--muted); font-size: 2vh; line-height: 1.4; z-index: 3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.hof-hint { position: absolute; left: 0; right: 0; bottom: 3.6vh; text-align: center; color: var(--muted); font-size: 1.7vh; z-index: 3; }
#oo { z-index: 47; }
.yr-hof { display: flex; align-items: center; gap: 2.4vw; padding: 2.4vh 2.6vw; border-radius: 2vh; background: linear-gradient(120deg, rgba(252,211,77,.12), rgba(255,255,255,.03)); border: .25vh solid rgba(252,211,77,.25); min-width: 60vw; transition: transform .15s, border-color .15s; }
.yr-hof.focus { border-color: #fcd34d; }
.yr-hof-pics { display: flex; }
.yr-hof-pics i { width: 9vh; height: 9vh; margin-right: -2vh; border-radius: 50%; background: #111 center / 80% no-repeat; box-shadow: 0 0 0 .3vh #050405, 0 0 2vh rgba(252,211,77,.35); }
.yr-hof b { display: block; font-family: var(--display); font-size: 3.4vh; }
.yr-hof span { display: block; margin-top: .6vh; color: var(--muted); font-size: 1.9vh; }

/* Turning loops: the picture itself turns, so no CSS sway on top; a gentle float instead. */
.hof-obj img.spin { animation: hoffloat 5s ease-in-out infinite; max-height: 34vh; }
@keyframes hoffloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-1.6vh); } }
#oo-card.spinning { animation: hoffloat 5s ease-in-out infinite; }
#oo-card.spinning #oo-back { display: none; }

/* The website: a pointer, and every tile and panel can be clicked. */
body.web { cursor: default; }
body.web .card, body.web .lp, body.web .gk, body.web .gm-opt, body.web .set-row, body.web .yr-f, body.web .hof-ped { cursor: pointer; }
