/* ==========================================================================
   Intro Rush — game screens (landing, host, phone)
   ========================================================================== */

:root {
	--ink: #0d0b14;
	--ink-2: #17131f;
	--ink-3: #221c2d;
	--cream: #f6efe2;
	--muted: #a79fb4;
	--gold: #f5b82e;
	--pink: #ff4f8b;
	--teal: #2fd3c4;
	--good: #38e08b;
	--bad: #ff5a5a;
	--display: "ND Display", "Inter", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
	--body: "Inter", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
	--mono: "ND Label", "Inter", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
	--nd-cat: var(--gold);
}

.nd-screen {
	margin: 0;
	min-height: 100vh;
	background:
		radial-gradient(1200px 700px at 15% -10%, rgba(255, 79, 139, .16), transparent 60%),
		radial-gradient(1000px 700px at 110% 110%, rgba(47, 211, 196, .12), transparent 60%),
		var(--ink);
	color: var(--cream);
	font-family: var(--body);
	overflow-x: hidden;
}
.nd-screen::before {
	/* Film grain. */
	content: "";
	position: fixed; inset: 0; pointer-events: none; z-index: 0; opacity: .06;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence baseFrequency='.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.nd-screen [hidden] { display: none !important; }

.nd-display {
	font-family: var(--display);
	font-weight: 400;
	text-transform: uppercase;
	letter-spacing: .01em;
	line-height: .9;
	margin: 0;
}
.nd-display span { color: var(--gold); }
.nd-kicker {
	font: 700 13px/1.2 var(--mono);
	letter-spacing: .06em;
	text-transform: uppercase;
	color: var(--pink);
	margin: 0 0 14px;
}

/* Buttons ------------------------------------------------------------------ */
.nd-btn {
	-webkit-appearance: none; appearance: none;
	display: inline-flex; align-items: center; justify-content: center; gap: 10px;
	border: 0; border-radius: 999px;
	padding: 14px 26px;
	font: 800 16px/1 var(--body);
	letter-spacing: .04em; text-transform: uppercase;
	color: var(--ink); background: var(--cream);
	cursor: pointer; text-decoration: none;
	transition: transform .12s ease, box-shadow .2s ease, opacity .2s;
	box-shadow: 0 6px 0 rgba(0,0,0,.35);
}
.nd-btn:hover { transform: translateY(-1px); }
.nd-btn:active { transform: translateY(3px); box-shadow: 0 2px 0 rgba(0,0,0,.35); }
.nd-btn:disabled { opacity: .4; cursor: not-allowed; transform: none; }
.nd-btn:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; }
.nd-btn-gold { background: var(--gold); }
.nd-btn-good { background: var(--good); }
.nd-btn-bad { background: var(--bad); color: #fff; }
.nd-btn-ghost { background: transparent; color: var(--cream); box-shadow: inset 0 0 0 2px rgba(246,239,226,.35); }
.nd-btn-quiet { background: transparent; color: var(--muted); box-shadow: none; }
.nd-btn-big { padding: 20px 36px; font-size: 19px; }
.nd-btn kbd {
	font: 700 11px/1 var(--mono); padding: 4px 6px; border-radius: 5px;
	background: rgba(0,0,0,.18); color: inherit; opacity: .75;
}
.nd-btn-ghost kbd, .nd-btn-quiet kbd { background: rgba(255,255,255,.1); }

.nd-brand { display: flex; align-items: center; gap: 10px; font: 800 15px/1 var(--body); letter-spacing: .14em; text-transform: uppercase; }
.nd-brand svg { width: 34px; height: 34px; flex: none; }
.nd-brand .nd-mark-needle-drop { animation: nd-rot 4s linear infinite; }

.nd-disc {
	display: inline-block; flex: none;
	width: 1.6em; height: 1.6em; border-radius: 50%;
	background:
		radial-gradient(circle, #111 0 9%, var(--c, var(--gold)) 10% 30%, #111 31% 33%, transparent 34%),
		repeating-radial-gradient(circle, #121014 0 2px, #1c1920 2px 3px);
	box-shadow: 0 0 0 1px rgba(255,255,255,.08), 0 3px 8px rgba(0,0,0,.5);
}

@keyframes nd-rot { to { transform: rotate(360deg); } }
@keyframes nd-pop { 0% { transform: scale(.6); opacity: 0; } 60% { transform: scale(1.06); opacity: 1; } 100% { transform: scale(1); } }
@keyframes nd-pulse { 0%, 100% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--c) 60%, transparent); } 50% { box-shadow: 0 0 0 18px transparent; } }

/* ==========================================================================
   Landing page
   ========================================================================== */
.nd-landing-hero {
	display: grid; grid-template-columns: 1.1fr .9fr; align-items: center; gap: 40px;
	max-width: 1200px; margin: 0 auto; padding: 60px 28px 80px;
}
.nd-landing .nd-display { font-size: clamp(64px, 10vw, 150px); }
.nd-landing-lede { font-size: 20px; color: var(--muted); max-width: 34ch; margin: 22px 0 30px; }
.nd-landing-cta { display: flex; gap: 14px; flex-wrap: wrap; }
.nd-landing-cats { display: flex; gap: 10px; list-style: none; padding: 0; margin: 28px 0 0; flex-wrap: wrap; }
.nd-landing-cats li {
	font: 700 12px/1 var(--mono); letter-spacing: .06em; text-transform: uppercase;
	padding: 9px 14px; border-radius: 999px; color: var(--ink); background: var(--c);
}
.nd-landing-disc { display: grid; place-items: center; }
.nd-spin-disc {
	position: relative; width: min(460px, 80vw); aspect-ratio: 1; border-radius: 50%;
	background:
		radial-gradient(circle, #0b0a0d 0 3%, var(--cream) 3.5% 30%, transparent 30.5%),
		repeating-radial-gradient(circle, rgba(0,0,0,.35) 0 1px, transparent 1px 6px),
		conic-gradient(var(--c1) 0 60deg, var(--c2) 60deg 120deg, var(--c3) 120deg 180deg, var(--c1) 180deg 240deg, var(--c2) 240deg 300deg, var(--c3) 300deg 360deg);
	box-shadow: 0 0 0 14px #0b0a0d, 0 0 0 26px #8d8f94, 0 40px 80px rgba(0,0,0,.6);
	animation: nd-rot 1.8s linear infinite;
}
.nd-spin-disc b { position: absolute; inset: 0; border-radius: 50%; background: linear-gradient(135deg, rgba(255,255,255,.2), transparent 40%, transparent 60%, rgba(255,255,255,.12)); }
@media (max-width: 860px) {
	.nd-landing-hero { grid-template-columns: 1fr; text-align: left; padding-top: 30px; }
	.nd-landing-disc { order: -1; }
	.nd-spin-disc { width: min(280px, 70vw); }
}

/* ==========================================================================
   Host screen
   ========================================================================== */
.nd-host-body { overflow: hidden; }
.nd-host {
	position: relative; z-index: 1;
	height: 100vh; display: flex; flex-direction: column;
	font-size: clamp(14px, 1.05vw, 22px);
}
.nd-topbar {
	display: flex; align-items: center; justify-content: space-between; gap: 20px;
	padding: 1.1em 2em;
}
.nd-round { font: 700 .9em/1 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.nd-topbar-right { display: flex; align-items: center; gap: 14px; }
.nd-pill {
	border: 0; cursor: pointer;
	font: 700 .75em/1 var(--mono); letter-spacing: .08em; text-transform: uppercase;
	padding: .8em 1.1em; border-radius: 999px; background: var(--ink-3); color: var(--muted);
}
.nd-pill::before { content: "●"; margin-right: .5em; color: var(--muted); }
.nd-pill.is-good { color: var(--cream); }
.nd-pill.is-good::before { color: #1ed760; }
.nd-pill.is-bad { color: #ffb4b4; }
.nd-pill.is-bad::before { color: var(--bad); }
.nd-joinpill {
	display: flex; align-items: center; gap: .8em;
	background: var(--cream); color: var(--ink); border-radius: 14px; padding: .4em 1em .4em .4em;
}
.nd-joinpill-qr { width: 4.2em; height: 4.2em; }
.nd-joinpill-qr svg { width: 100%; height: 100%; display: block; border-radius: 6px; }
.nd-joinpill small { display: block; font: 700 .6em/1 var(--mono); letter-spacing: .06em; text-transform: uppercase; opacity: .6; }
.nd-joinpill strong { font: 400 1.9em/1 var(--display); letter-spacing: .08em; }

/* Gate */
.nd-gate { flex: 1; display: grid; place-items: center; }
.nd-gate-card { text-align: center; max-width: 30em; }
.nd-gate-card h1 { font: 400 4em/1 var(--display); text-transform: uppercase; margin: 0 0 .3em; }
.nd-gate-card p { color: var(--muted); margin-bottom: 1.6em; }

/* Lobby */
.nd-lobby {
	flex: 1; display: grid; grid-template-columns: 1.15fr 1fr; gap: 4em;
	padding: 1em 4em 3em; align-items: center;
}
.nd-lobby .nd-display { font-size: 7.2em; }
.nd-steps { list-style: none; padding: 0; margin: 1.8em 0 2em; display: grid; gap: .7em; }
.nd-steps li { display: flex; align-items: center; gap: .9em; font-size: 1.15em; color: var(--cream); }
.nd-steps b {
	flex: none; width: 1.9em; height: 1.9em; display: grid; place-items: center; border-radius: 50%;
	font: 400 1em/1 var(--display); background: var(--ink-3); color: var(--gold);
}
.nd-steps li:nth-child(2) b { color: var(--pink); }
.nd-steps li:nth-child(3) b { color: var(--teal); }
.nd-lobby-controls { display: flex; align-items: center; gap: 1em; flex-wrap: wrap; }
.nd-select { display: flex; align-items: center; gap: .6em; background: var(--ink-3); border-radius: 999px; padding: .3em .3em .3em 1.2em; }
.nd-select span { font: 700 .75em/1 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.nd-select select { background: var(--ink); color: var(--cream); border: 0; border-radius: 999px; padding: .7em 1em; font: 600 1em var(--body); }
.nd-hint { color: var(--muted); margin-top: 1.2em; }
.nd-hint a { color: var(--gold); }

.nd-lobby-join { display: grid; gap: 2em; justify-items: center; }
.nd-qr-card {
	background: var(--cream); color: var(--ink); border-radius: 28px; padding: 1.6em;
	display: grid; justify-items: center; gap: 1em;
	box-shadow: 0 30px 80px rgba(0,0,0,.5), 0 0 0 10px rgba(246,239,226,.07);
	transform: rotate(-1.5deg);
}
.nd-qr { width: min(22em, 36vh); aspect-ratio: 1; }
.nd-qr svg { width: 100%; height: 100%; display: block; }
.nd-qr-meta { text-align: center; display: grid; gap: .25em; }
.nd-qr-meta small { font: 700 .7em/1 var(--mono); letter-spacing: .06em; text-transform: uppercase; opacity: .6; }
.nd-qr-url { font-weight: 700; }
.nd-qr-code { font: 400 3.4em/1 var(--display); letter-spacing: .14em; }

.nd-lineup { width: 100%; max-width: 30em; }
.nd-lineup h2 { font: 700 .8em/1 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin: 0 0 1em; display: flex; justify-content: space-between; }
.nd-lineup h2 span { color: var(--gold); }
.nd-lineup ul { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .6em; }
.nd-lineup li {
	display: flex; align-items: center; gap: .6em; padding: .45em .5em .45em .5em; border-radius: 999px;
	background: var(--ink-3); font-weight: 700; animation: nd-pop .35s ease both;
	box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--c) 45%, transparent);
}
.nd-lineup li .nd-disc { animation: nd-rot 2s linear infinite; }
.nd-lineup li.is-away { opacity: .45; }
.nd-lineup li.nd-empty { background: none; box-shadow: none; color: var(--muted); font-weight: 400; font-style: italic; }
.nd-kick { border: 0; background: none; color: var(--muted); font-size: 1.1em; cursor: pointer; padding: 0 .4em; opacity: 0; }
.nd-lineup li:hover .nd-kick { opacity: 1; }

/* Game layout */
.nd-game {
	flex: 1; min-height: 0;
	display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 2.5em;
	padding: 0 2.5em 1em;
}
.nd-deck { display: grid; grid-template-rows: minmax(0, 1fr) auto; gap: 1em; min-height: 0; }
.nd-turntable { min-height: 0; display: grid; place-items: center; }
.nd-tt-svg { width: 100%; height: 100%; max-height: 62vh; }
.nd-tt-wedge { transition: opacity .4s ease; }
.nd-tt-wedge.is-dim { opacity: .28; }
.nd-tt-wlabel { font: 400 15px/1 var(--display); letter-spacing: .12em; fill: rgba(13,11,20,.82); }
.nd-tt-label { font: 400 15px/1 var(--display); letter-spacing: .14em; fill: #0d0b14; }
.nd-tt-label-sm { font: 700 8px/1 var(--mono); letter-spacing: .06em; fill: #0d0b14; opacity: .6; }
.nd-tt-speed, .nd-tt-brand { font: 700 11px/1 var(--mono); letter-spacing: .06em; fill: rgba(246,239,226,.45); }
.nd-tt-glow { transition: stroke-opacity .4s ease; }
.nd-tt-stylus { transition: fill .3s; }

.nd-deck-info { display: grid; grid-template-columns: auto 1fr; grid-template-areas: "cat eq" "cat status"; gap: .5em 1.6em; align-items: center; }
.nd-cat {
	grid-area: cat; min-width: 12em; padding: 1em 1.4em; border-radius: 18px;
	background: var(--ink-3); transition: background .3s, color .3s;
}
.nd-cat small { display: block; font: 700 .7em/1 var(--mono); letter-spacing: .06em; text-transform: uppercase; opacity: .65; }
.nd-cat strong { display: block; font: 400 2.6em/1 var(--display); text-transform: uppercase; margin: .15em 0; }
.nd-cat span { font-size: .9em; opacity: .8; }
.nd-cat.is-set { background: var(--c); color: var(--ink); animation: nd-pop .4s ease both; }
.nd-status { grid-area: status; font: 700 1.1em/1.3 var(--body); color: var(--muted); }
.nd-eq { grid-area: eq; display: grid; gap: .6em; }
.nd-eq-bars { display: flex; align-items: flex-end; gap: 4px; height: 3.2em; }
.nd-eq-bars i {
	flex: 1; height: 12%; border-radius: 3px 3px 0 0;
	background: linear-gradient(to top, var(--nd-cat), color-mix(in srgb, var(--nd-cat) 40%, #fff));
	opacity: .35; transition: height .3s;
}
.nd-eq.is-playing .nd-eq-bars i { opacity: 1; animation: nd-eq .5s ease-in-out infinite alternate; animation-delay: calc(var(--d) * -1); }
@keyframes nd-eq { from { height: 12%; } to { height: var(--h); } }
.nd-eq-time { position: relative; height: .7em; border-radius: 99px; background: var(--ink-3); overflow: hidden; }
.nd-eq-fill { position: absolute; inset: 0 auto 0 0; width: 0; background: var(--nd-cat); }
.nd-eq-time span { position: absolute; top: 0; bottom: 0; width: 2px; background: var(--ink); }

/* The Chart (scoreboard) */
.nd-chart {
	min-height: 0; display: flex; flex-direction: column;
	background: linear-gradient(180deg, #1b1624, #120f18);
	border-radius: 26px; padding: 1.4em 1.4em 1em;
	box-shadow: inset 0 0 0 1px rgba(255,255,255,.06), 0 30px 60px rgba(0,0,0,.4);
	position: relative; overflow: hidden;
}
.nd-chart::after {
	/* Halftone corner. */
	content: ""; position: absolute; right: -40px; top: -40px; width: 200px; height: 200px; pointer-events: none;
	background: radial-gradient(circle, rgba(245,184,46,.35) 1.5px, transparent 2px) 0 0 / 12px 12px;
	-webkit-mask: radial-gradient(circle at 100% 0, #000, transparent 70%); mask: radial-gradient(circle at 100% 0, #000, transparent 70%);
}
.nd-chart header { display: flex; align-items: baseline; justify-content: space-between; gap: 1em; margin-bottom: .8em; border-bottom: 2px dashed rgba(246,239,226,.12); padding-bottom: .7em; }
.nd-chart h2 { font: 400 2.6em/1 var(--display); text-transform: uppercase; margin: 0; letter-spacing: .02em; }
.nd-chart h2::before { content: "THE OFFICIAL"; display: block; font: 700 .26em/1 var(--mono); letter-spacing: .06em; color: var(--pink); margin-bottom: .4em; }
.nd-chart header p { margin: 0; font: 700 .7em/1.3 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); text-align: right; }
.nd-chart ol { list-style: none; margin: 0; padding: 0; display: grid; gap: .45em; overflow: auto; }
.nd-chart li {
	display: grid; grid-template-columns: 2.1em 1.6em 2em minmax(0, 1fr) auto 2.2em; align-items: center; gap: .7em;
	padding: .55em .8em; border-radius: 14px;
	background: rgba(255,255,255,.03);
	transition: background .3s, transform .3s;
}
.nd-chart li.is-top { background: linear-gradient(90deg, rgba(245,184,46,.18), rgba(245,184,46,.02)); }
.nd-chart li.is-buzzing { background: color-mix(in srgb, var(--c) 30%, transparent); transform: scale(1.02); }
.nd-chart li.is-scored { animation: nd-scored 1.2s ease; }
.nd-chart li.is-locked { opacity: .5; }
.nd-chart li.is-away .nd-name { opacity: .5; }
@keyframes nd-scored { 0% { background: color-mix(in srgb, var(--c) 55%, transparent); transform: translateX(10px); } 100% { background: rgba(255,255,255,.03); transform: none; } }
.nd-pos { font: 400 1.8em/1 var(--display); text-align: center; color: var(--cream); }
.nd-chart li.is-top .nd-pos { color: var(--gold); }
.nd-move { font: 700 .7em/1 var(--mono); text-align: center; color: var(--muted); }
.nd-move.is-up { color: var(--good); }
.nd-move.is-down { color: var(--bad); }
.nd-move.is-new { color: var(--teal); font-size: .55em; letter-spacing: .08em; }
.nd-chart .nd-disc { width: 2em; height: 2em; }
.nd-chart li.is-buzzing .nd-disc, .nd-chart li.is-scored .nd-disc { animation: nd-rot .8s linear infinite; }
.nd-name { font-weight: 800; font-size: 1.1em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nd-name em { display: block; font: 700 .55em/1 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); font-style: normal; margin-top: .2em; }
.nd-vu { display: flex; gap: 3px; }
.nd-vu i { width: .55em; height: 1.4em; border-radius: 2px; background: rgba(255,255,255,.07); }
.nd-vu i.on.cool { background: var(--c); box-shadow: 0 0 8px color-mix(in srgb, var(--c) 60%, transparent); }
.nd-vu i.on.warm { background: var(--gold); box-shadow: 0 0 8px rgba(245,184,46,.6); }
.nd-vu i.on.hot { background: #ff5a3c; box-shadow: 0 0 10px rgba(255,90,60,.7); }
.nd-pts { font: 400 1.9em/1 var(--display); text-align: right; }

/* Dock */
.nd-dock {
	display: flex; justify-content: center; gap: .8em; flex-wrap: wrap;
	padding: .8em 2em 1.4em;
}
.nd-dock .nd-btn { font-size: .95em; }
.nd-dock .nd-btn-quiet { position: absolute; right: 2em; bottom: 1.4em; }

/* Overlays */
.nd-overlay {
	position: fixed; inset: 0; z-index: 20; display: grid; place-items: center;
	background: rgba(9,7,13,.78); backdrop-filter: blur(6px);
	animation: nd-fade .25s ease both;
}
@keyframes nd-fade { from { opacity: 0; } }
.nd-host[data-phase] .nd-overlay ~ .nd-dock { position: relative; z-index: 30; }
.nd-dock { position: relative; z-index: 30; }

.nd-countdown { background: transparent; backdrop-filter: none; pointer-events: none; }
.nd-countdown span { font: 400 30vh/1 var(--display); color: var(--c); text-shadow: 0 10px 60px rgba(0,0,0,.6); }
.nd-countdown span.go { animation: nd-count .85s ease both; }
@keyframes nd-count { 0% { transform: scale(1.8); opacity: 0; } 30% { transform: scale(1); opacity: 1; } 100% { transform: scale(.7); opacity: 0; } }

.nd-buzz-card { text-align: center; animation: nd-pop .4s ease both; }
.nd-buzz-card small { font: 700 1em/1 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--c); }
.nd-buzz-disc {
	width: 30vh; height: 30vh; margin: 4vh auto; border-radius: 50%;
	background:
		radial-gradient(circle, #111 0 4%, var(--c) 4.5% 30%, #111 31% 32%, transparent 33%),
		repeating-radial-gradient(circle, #121014 0 2px, #1d1a21 2px 4px);
	box-shadow: 0 0 0 10px color-mix(in srgb, var(--c) 30%, transparent), 0 0 120px color-mix(in srgb, var(--c) 50%, transparent);
	animation: nd-rot 1.2s linear infinite;
}
.nd-buzz-card h2 { font: 400 9vh/1 var(--display); text-transform: uppercase; margin: 0; }
.nd-buzz-card p { font-size: 1.4em; margin: .6em 0 0; color: var(--cream); }
.nd-buzz-card .nd-buzz-time { font: 700 1em/1 var(--mono); color: var(--muted); letter-spacing: .06em; }

.nd-sleeve {
	display: grid; grid-template-columns: 22em 1fr; gap: 3em; align-items: center;
	max-width: 70em; padding: 2em; animation: nd-pop .45s ease both;
}
.nd-sleeve-art {
	position: relative; aspect-ratio: 1; border-radius: 6px;
	background:
		radial-gradient(circle at 30% 30%, rgba(255,255,255,.25), transparent 45%),
		repeating-linear-gradient(45deg, rgba(0,0,0,.12) 0 10px, transparent 10px 20px),
		var(--c);
	box-shadow: 0 30px 60px rgba(0,0,0,.5);
}
.nd-sleeve-disc {
	position: absolute; top: 6%; right: -38%; width: 88%; height: 88%; border-radius: 50%; z-index: -1;
	background:
		radial-gradient(circle, #111 0 4%, var(--cream) 4.5% 28%, transparent 29%),
		repeating-radial-gradient(circle, #121014 0 2px, #1d1a21 2px 4px);
	animation: nd-slide-out .9s .2s cubic-bezier(.2,.8,.2,1) both, nd-rot 3s 1.1s linear infinite;
}
@keyframes nd-slide-out { from { right: 6%; } }
.nd-sleeve-art::after {
	content: attr(data-label); position: absolute; left: 1em; bottom: 1em; right: 1em;
	font: 400 2.4em/1 var(--display); text-transform: uppercase; color: var(--ink); opacity: .85;
}
.nd-sleeve-art::before {
	content: "SIDE A · 33⅓"; position: absolute; left: 1.4em; top: 1.2em;
	font: 700 .8em/1 var(--mono); letter-spacing: .06em; color: var(--ink); opacity: .6;
}
.nd-sleeve-result { font: 700 1.2em/1.3 var(--body); margin: 0 0 1em; }
.nd-sleeve dl { margin: 0; display: grid; gap: .8em; }
.nd-sleeve dl div { padding: .4em 0 .4em 1em; border-left: 4px solid rgba(255,255,255,.12); }
.nd-sleeve dl div.is-cat { border-color: var(--c); }
.nd-sleeve dt { font: 700 .75em/1 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.nd-sleeve dd { margin: .2em 0 0; font: 400 3.2em/1 var(--display); text-transform: uppercase; }
.nd-sleeve dl div.is-cat dd { color: var(--c); }

.nd-winner { background: radial-gradient(circle at 50% 40%, rgba(245,184,46,.25), rgba(9,7,13,.92) 60%); overflow: hidden; }
.nd-winner-inner { text-align: center; position: relative; z-index: 2; }
.nd-winner .nd-display { font-size: 7em; color: var(--gold); text-shadow: 0 6px 0 #7a5410; }
.nd-gold-disc {
	width: 38vh; height: 38vh; margin: 3vh auto; border-radius: 50%; position: relative;
	background:
		conic-gradient(from 0deg, #fff3c4, #d79a1a, #ffe08a, #a86f0a, #fff3c4, #d79a1a, #ffe08a, #a86f0a, #fff3c4),
		#d79a1a;
	box-shadow: 0 0 0 10px #2b2112, 0 0 0 14px #d79a1a, 0 30px 90px rgba(245,184,46,.45);
	animation: nd-rot 6s linear infinite;
}
.nd-gold-disc::before { content: ""; position: absolute; inset: 0; border-radius: 50%; background: repeating-radial-gradient(circle, rgba(0,0,0,.12) 0 1px, transparent 1px 5px); }
.nd-gold-label {
	position: absolute; inset: 32%; border-radius: 50%; background: var(--ink); color: var(--gold);
	display: grid; place-content: center; text-align: center; padding: 1em;
	animation: nd-rot 6s linear infinite reverse;
}
.nd-gold-label span { font: 400 2.2em/1 var(--display); text-transform: uppercase; }
.nd-gold-label small { font: 700 .7em/1 var(--mono); letter-spacing: .06em; color: var(--cream); margin-top: .4em; }
.nd-final { list-style: none; padding: 0; margin: 0 auto; display: flex; gap: .7em; justify-content: center; flex-wrap: wrap; max-width: 60em; }
.nd-final li { display: flex; align-items: center; gap: .6em; background: rgba(0,0,0,.45); padding: .5em 1em; border-radius: 999px; font-weight: 700; box-shadow: inset 0 0 0 2px var(--c); }
.nd-final li span { font: 400 1.2em/1 var(--display); color: var(--muted); }
.nd-final li b { font: 400 1.2em/1 var(--display); color: var(--gold); }
.nd-confetti { position: absolute; inset: 0; pointer-events: none; z-index: 1; }
.nd-confetti i { position: absolute; top: -20px; width: 10px; height: 16px; border-radius: 2px; animation: nd-fall linear infinite; }
@keyframes nd-fall { to { top: 110%; transform: rotate(720deg) translateX(60px); } }

.nd-toast {
	position: fixed; left: 50%; bottom: 7em; transform: translateX(-50%); z-index: 50;
	background: var(--cream); color: var(--ink); padding: .9em 1.4em; border-radius: 14px; font-weight: 700;
	box-shadow: 0 20px 40px rgba(0,0,0,.4); max-width: 80vw; animation: nd-pop .3s ease both;
}
.nd-toast.is-bad { background: var(--bad); color: #fff; }

@media (max-width: 1000px) {
	.nd-host-body { overflow: auto; }
	.nd-host { height: auto; min-height: 100vh; }
	.nd-lobby, .nd-game { grid-template-columns: 1fr; padding: 1em; gap: 2em; }
	.nd-lobby .nd-display { font-size: 4.5em; }
	.nd-sleeve { grid-template-columns: 1fr; }
	.nd-sleeve-art { width: 14em; }
}

/* ==========================================================================
   Phone buzzer
   ========================================================================== */
.nd-play-body { min-height: 100svh; overscroll-behavior: none; -webkit-user-select: none; user-select: none; -webkit-tap-highlight-color: transparent; }
.nd-phone {
	--c: var(--gold); --me: var(--gold);
	position: relative; z-index: 1; min-height: 100svh;
	display: flex; flex-direction: column;
	padding: max(14px, env(safe-area-inset-top)) 18px max(18px, env(safe-area-inset-bottom));
	transition: background .4s;
}
.nd-phone[data-phase="ready"], .nd-phone[data-phase="live"] {
	background: radial-gradient(120% 70% at 50% 100%, color-mix(in srgb, var(--c) 35%, transparent), transparent 70%);
}
.nd-p-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.nd-p-top .nd-brand { font-size: 12px; }
.nd-p-top .nd-brand svg { width: 28px; height: 28px; }
.nd-p-me { display: flex; align-items: center; gap: 8px; background: var(--ink-3); border-radius: 999px; padding: 6px 12px 6px 6px; --c: var(--me); }
.nd-p-me b { max-width: 8em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nd-p-me strong { font: 400 20px/1 var(--display); color: var(--gold); }

.nd-p-join { flex: 1; display: flex; flex-direction: column; justify-content: center; gap: 28px; }
.nd-p-join .nd-display { font-size: 64px; }
.nd-p-join form { display: grid; gap: 16px; }
.nd-p-join label { display: grid; gap: 8px; }
.nd-p-join label span { font: 700 11px/1 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.nd-p-join input {
	font: 700 22px/1 var(--body); padding: 18px 20px; border-radius: 16px; border: 2px solid var(--ink-3);
	background: var(--ink-2); color: var(--cream); width: 100%; box-sizing: border-box;
	-webkit-user-select: text; user-select: text;
}
.nd-p-join input:focus { outline: none; border-color: var(--gold); }
#nd-code { font: 400 34px/1 var(--display); letter-spacing: .3em; text-transform: uppercase; text-align: center; }
.nd-p-join .nd-btn { width: 100%; margin-top: 6px; }
.nd-p-error { color: #ff9a9a; min-height: 1.4em; margin: 0; font-weight: 700; }

.nd-p-game { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 18px; padding-top: 16px; }
.nd-p-cat {
	width: 100%; box-sizing: border-box; text-align: center; padding: 12px 16px; border-radius: 18px;
	background: var(--c); color: var(--ink);
}
.nd-p-cat small { display: block; font: 700 10px/1 var(--mono); letter-spacing: .06em; text-transform: uppercase; opacity: .7; }
.nd-p-cat strong { display: block; font: 400 34px/1.05 var(--display); text-transform: uppercase; }
.nd-p-msg { text-align: center; font-size: 18px; line-height: 1.35; min-height: 3.2em; max-width: 22em; }
.nd-p-msg span { display: block; color: var(--c); font-weight: 800; margin-top: 4px; }

.nd-buzzer {
	-webkit-appearance: none; appearance: none; border: 0; padding: 0; cursor: pointer;
	position: relative; width: min(78vw, 46svh); aspect-ratio: 1; border-radius: 50%;
	background: transparent; touch-action: manipulation;
	transition: transform .08s ease, filter .3s, opacity .3s;
}
.nd-buzzer-rec {
	position: absolute; inset: 0; border-radius: 50%;
	background:
		radial-gradient(circle, var(--c) 0 33%, #111 34% 35.5%, transparent 36%),
		repeating-radial-gradient(circle, #121014 0 2px, #1e1a22 2px 4px);
	box-shadow: 0 0 0 8px #000, 0 0 0 12px rgba(255,255,255,.08), 0 20px 50px rgba(0,0,0,.6);
}
.nd-buzzer-rec::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: linear-gradient(135deg, rgba(255,255,255,.2), transparent 40%, transparent 60%, rgba(255,255,255,.12)); }
.nd-buzzer-label {
	position: absolute; inset: 0; display: grid; place-items: center;
	font: 400 clamp(36px, 12vw, 64px)/1 var(--display); letter-spacing: .06em; color: var(--ink);
}
.nd-buzzer[data-state="off"], .nd-buzzer[data-state="idle"], .nd-buzzer[data-state="locked"], .nd-buzzer[data-state="lost"] { filter: grayscale(.85) brightness(.6); }
.nd-buzzer[data-state="idle"] .nd-buzzer-rec { --c: var(--me); }
.nd-buzzer[data-state="spin"] .nd-buzzer-rec { animation: nd-rot .6s linear infinite; filter: brightness(.8); }
.nd-buzzer[data-state="armed"] { filter: brightness(.85); }
.nd-buzzer[data-state="live"] .nd-buzzer-rec { animation: nd-pulse 1s ease-in-out infinite, nd-rot 1.8s linear infinite; }
.nd-buzzer[data-state="live"]:active, .nd-buzzer[data-state="sent"] { transform: scale(.94); }
.nd-buzzer[data-state="sent"] .nd-buzzer-label::after { content: "…"; }
.nd-buzzer[data-state="won"] .nd-buzzer-rec { --c: var(--good); animation: nd-rot .5s linear infinite; box-shadow: 0 0 0 8px #000, 0 0 80px var(--good); }
.nd-buzzer[data-state="won"] .nd-buzzer-label { font-size: clamp(28px, 9vw, 48px); }
.nd-buzzer[data-state="won"] .nd-buzzer-label::before { content: "FIRST!"; position: absolute; }
.nd-buzzer[data-state="won"] .nd-buzzer-label { color: transparent; }
.nd-buzzer[data-state="won"] .nd-buzzer-label::before { color: var(--ink); }
.nd-buzzer[data-state="locked"] .nd-buzzer-label::before { content: "🔒"; position: absolute; font-size: .5em; transform: translateY(-1.4em); }

.nd-p-answer { text-align: center; display: grid; gap: 4px; background: var(--ink-2); border-radius: 18px; padding: 14px 20px; width: 100%; box-sizing: border-box; }
.nd-p-answer span { color: var(--muted); font-weight: 700; }
.nd-p-answer b { font: 400 28px/1.05 var(--display); text-transform: uppercase; }
.nd-p-answer em { font: 700 14px/1 var(--mono); color: var(--gold); font-style: normal; letter-spacing: .06em; }

.nd-p-mini { list-style: none; padding: 0; margin: auto 0 0; width: 100%; display: grid; gap: 6px; }
.nd-p-mini li { display: grid; grid-template-columns: 1.6em 1fr auto; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 12px; background: rgba(255,255,255,.04); border-left: 4px solid var(--c); font-weight: 700; }
.nd-p-mini li.is-me { background: color-mix(in srgb, var(--c) 18%, transparent); }
.nd-p-mini li span { font: 400 18px/1 var(--display); color: var(--muted); }
.nd-p-mini li b { font: 400 20px/1 var(--display); }

@media (prefers-reduced-motion: reduce) {
	.nd-screen *, .nd-screen *::before, .nd-screen *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}


/* ==========================================================================
   Corporate type: Inter Display headlines in sentence case, tabular scores.
   ========================================================================== */
.nd-display,
.nd-gate-card h1,
.nd-cat strong,
.nd-chart h2,
.nd-buzz-card h2,
.nd-sleeve dd,
.nd-p-cat strong,
.nd-p-answer b,
.nd-winner .nd-display,
.nd-gold-label span { text-transform: none; letter-spacing: -.025em; font-weight: 800; }
.nd-pos, .nd-pts, .nd-joinpill strong, .nd-qr-code, .nd-final li span, .nd-final li b,
.nd-p-me strong, .nd-p-mini li span, .nd-p-mini li b, .nd-steps b, .nd-countdown span { font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.nd-display { line-height: 1; }
.nd-landing .nd-display { font-size: clamp(52px, 7.5vw, 112px); }
.nd-lobby .nd-display { font-size: 5.4em; }
.nd-gate-card h1 { font-size: 3.2em; }
.nd-cat strong { font-size: 2em; }
.nd-chart h2 { font-size: 2em; }
.nd-chart h2::before { content: "Leaderboard"; letter-spacing: .06em; text-transform: uppercase; }
.nd-pos { font-size: 1.5em; }
.nd-pts { font-size: 1.6em; }
.nd-buzz-card h2 { font-size: 7.5vh; }
.nd-sleeve dd { font-size: 2.6em; line-height: 1.05; }
.nd-sleeve-art::after { font-size: 2em; letter-spacing: -.02em; }
.nd-winner .nd-display { font-size: 5.2em; text-shadow: none; }
.nd-gold-label span { font-size: 1.9em; }
.nd-joinpill strong { font-size: 1.6em; letter-spacing: .04em; }
.nd-qr-code { font-size: 3em; letter-spacing: .1em; }
.nd-countdown span { font-size: 26vh; font-weight: 800; }
.nd-btn { font-weight: 700; letter-spacing: .01em; text-transform: none; }
.nd-btn-big { font-size: 18px; }
.nd-p-join .nd-display { font-size: 52px; }
.nd-p-cat strong { font-size: 28px; }
.nd-p-answer b { font-size: 24px; }
#nd-code { font-size: 30px; letter-spacing: .25em; }
.nd-buzzer-label { font-weight: 800; letter-spacing: -.01em; font-size: clamp(30px, 10vw, 54px); }
.nd-buzzer[data-state="won"] .nd-buzzer-label { font-size: clamp(24px, 8vw, 42px); }

/* Brand lock-up (logo + name) on the lobby and landing page. */
.nd-lockup { display: flex; align-items: center; gap: .6em; margin: 0 0 1.2em; }
.nd-lockup svg { width: 3.2em; height: 3.2em; flex: none; }
.nd-lockup span { font: 800 1.9em/1 var(--display); letter-spacing: -.025em; color: var(--cream); }
.nd-lockup small { display: block; font: 400 .5em/1.3 var(--body); color: var(--muted); letter-spacing: 0; margin-top: .3em; }
.nd-landing .nd-lockup { font-size: 18px; }

/* ==========================================================================
   Speed scoring and freeze-outs
   ========================================================================== */
.nd-deck-info { grid-template-columns: auto minmax(0, 1fr) auto; grid-template-areas: "cat eq worth" "cat status worth"; }
.nd-worth {
	grid-area: worth; min-width: 6.2em; text-align: center; padding: .8em 1em; border-radius: 18px;
	background: var(--ink-3); box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--nd-cat) 55%, transparent);
}
.nd-worth small { display: block; font: 600 .7em/1 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.nd-worth strong { display: block; font: 800 3em/1 var(--display); letter-spacing: -.03em; color: var(--nd-cat); font-variant-numeric: tabular-nums; margin: .05em 0; }
.nd-worth span { font: 600 .8em/1 var(--body); color: var(--muted); }
.nd-worth.is-drop strong { animation: nd-drop .45s ease; }
@keyframes nd-drop { 0% { transform: translateY(-.25em) scale(1.25); color: #fff; } 100% { transform: none; } }
.nd-buzz-card .nd-buzz-worth { font: 700 1.3em/1.2 var(--body); color: var(--c); margin-top: .5em; }

/* Frozen out: icy tint and tag. */
.nd-chart li.is-frozen { opacity: 1; background: linear-gradient(90deg, rgba(120, 200, 255, .16), rgba(120, 200, 255, .04)); box-shadow: inset 0 0 0 1px rgba(150, 215, 255, .35); }
.nd-chart li.is-frozen .nd-name, .nd-chart li.is-frozen .nd-pts, .nd-chart li.is-frozen .nd-pos { color: #cfeaff; }
.nd-chart li.is-frozen .nd-disc { filter: saturate(.2) brightness(1.3) hue-rotate(160deg); }
.nd-chart li.is-frozen .nd-vu { opacity: .45; }
.nd-frozen-tag { display: inline-flex !important; align-items: center; gap: .35em; color: #9fd8ff !important; }

.nd-p-worth { display: block; margin-top: 6px; font-weight: 600; color: var(--muted) !important; }
.nd-p-worth b { color: var(--c); font-size: 1.3em; font-variant-numeric: tabular-nums; }
.nd-p-stake { display: block; margin-top: 6px; font-style: normal; font-weight: 700; color: var(--good); }
.nd-buzzer[data-state="locked"] { filter: none; }
.nd-buzzer[data-state="locked"] .nd-buzzer-rec {
	--c: #bfe6ff;
	background:
		radial-gradient(circle, rgba(220, 242, 255, .95) 0 33%, #0e1a24 34% 35.5%, transparent 36%),
		repeating-radial-gradient(circle, #13202b 0 2px, #1a2a37 2px 4px);
	box-shadow: 0 0 0 8px #0a1219, 0 0 0 12px rgba(160, 220, 255, .35), 0 0 60px rgba(140, 210, 255, .35);
}
.nd-buzzer[data-state="locked"] .nd-buzzer-rec::after {
	background: linear-gradient(135deg, rgba(255,255,255,.55), transparent 35%, transparent 60%, rgba(255,255,255,.3)),
		repeating-linear-gradient(60deg, rgba(255,255,255,.08) 0 2px, transparent 2px 14px);
}
.nd-buzzer[data-state="locked"] .nd-buzzer-label { color: transparent; font-size: 0; }
.nd-buzzer[data-state="locked"] .nd-buzzer-label::before { content: "FROZEN"; position: absolute; inset: 0; display: grid; place-items: center; color: #0e2a3d; font-size: clamp(22px, 7vw, 34px); transform: none; letter-spacing: .02em; }

/* Record player */
.nd-tt-wedge { transition: opacity .5s ease; }
.nd-tt-wedge.is-dim { opacity: .2; }
.nd-tt-rim { transition: opacity .4s ease; }
.nd-tt-wlabel { font: 700 12px/1 var(--body); letter-spacing: .16em; fill: rgba(10, 10, 14, .8); }
.nd-tt-label { font: 800 11px/1 var(--body); letter-spacing: .12em; fill: #0d0b14; }
.nd-tt-label-sm { font: 600 7px/1 var(--body); letter-spacing: .16em; fill: #0d0b14; opacity: .55; }
.nd-tt-plate { font: 700 10px/1 var(--body); letter-spacing: .24em; fill: rgba(246, 239, 226, .55); }
.nd-tt-plate-dim { fill: rgba(246, 239, 226, .28); font-weight: 600; }
.nd-tt-ctl { font: 600 8.5px/1 var(--body); letter-spacing: .14em; fill: rgba(246, 239, 226, .55); }
.nd-tt-stylus { transition: fill .3s; }

/* ==========================================================================
   Bonus question
   ========================================================================== */
.nd-bonus { background: radial-gradient(900px 500px at 50% 30%, color-mix(in srgb, var(--c) 18%, transparent), rgba(9, 7, 13, .9) 70%); }
.nd-bonus-card { width: min(62em, 90vw); text-align: center; animation: nd-pop .4s ease both; }
.nd-bonus-kicker { margin: 0 0 1em; display: flex; justify-content: center; align-items: center; gap: .8em; font: 600 1.1em/1 var(--body); color: var(--muted); }
.nd-bonus-badge { padding: .5em .9em; border-radius: 999px; background: var(--gold); color: var(--ink); font-weight: 800; letter-spacing: .01em; }
.nd-bonus-card h2 { margin: 0 auto 1.1em; max-width: 26em; font: 800 2.6em/1.15 var(--display); letter-spacing: -.025em; text-wrap: balance; }
.nd-bonus-opts { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .8em; text-align: left; }
.nd-bonus-opts li { display: flex; align-items: center; gap: .9em; padding: 1em 1.2em; border-radius: 18px; background: var(--ink-3); box-shadow: inset 0 0 0 2px rgba(246, 239, 226, .08); font: 700 1.35em/1.25 var(--body); transition: background .3s, opacity .3s, box-shadow .3s; }
.nd-bonus-opts b, .nd-pb-opts b { flex: none; width: 2em; height: 2em; display: grid; place-items: center; border-radius: 10px; background: rgba(246, 239, 226, .1); font: 800 .85em/1 var(--body); }
.nd-bonus-opts li.is-right, .nd-pb-opts .is-right { background: var(--good); color: var(--ink); box-shadow: 0 0 40px rgba(56, 224, 139, .45); }
.nd-bonus-opts li.is-wrong, .nd-pb-opts .is-wrong { background: var(--bad); color: #fff; }
.nd-bonus-opts li.is-out, .nd-pb-opts .is-out { opacity: .35; }
.nd-bonus-timer { height: 8px; margin: 1.4em 0 0; border-radius: 99px; background: var(--ink-3); overflow: hidden; }
.nd-bonus-timer i { display: block; height: 100%; width: 100%; background: linear-gradient(90deg, var(--gold), var(--c, var(--pink))); border-radius: inherit; }
.nd-bonus-note { margin: 1em 0 0; font: 600 1.2em/1.3 var(--body); color: var(--muted); min-height: 1.3em; }
.nd-bonus-note .good { color: var(--good); font-size: 1.4em; }
.nd-bonus-note .bad { color: #ff9a9a; font-size: 1.4em; }

.nd-p-bonus { width: 100%; text-align: center; }
.nd-p-bonus-kicker { display: inline-block; margin: 0 0 10px; padding: 6px 12px; border-radius: 999px; background: var(--gold); color: var(--ink); font: 800 13px/1 var(--body); }
.nd-p-bonus h2 { margin: 0 0 14px; font: 800 22px/1.25 var(--display); letter-spacing: -.02em; text-wrap: balance; }
.nd-pb-opts { display: grid; gap: 10px; }
.nd-pb-opts button {
	-webkit-appearance: none; appearance: none; border: 0; cursor: pointer; text-align: left;
	display: flex; align-items: center; gap: 12px; min-height: 58px; padding: 10px 14px; border-radius: 16px;
	background: var(--ink-3); color: var(--cream); font: 700 17px/1.25 var(--body);
	box-shadow: inset 0 0 0 2px rgba(246, 239, 226, .1); transition: transform .08s, background .3s;
}
.nd-pb-opts button:not(:disabled):active { transform: scale(.98); }
.nd-pb-opts button:disabled { cursor: default; }
.nd-pb-opts button.is-picked { box-shadow: inset 0 0 0 3px var(--gold); }
.nd-p-bonus .nd-bonus-timer { margin-top: 14px; }
