/*
Theme Name: Voter
Theme URI: https://example.com/voter
Author: Laurence Abbott
Description: Live award voting for events. Hosts put one award on screen at a time, the audience votes once from their phones, and results stay hidden until the host reveals them. Includes a Live Control panel, an on-page host dock, and a big-screen mode with QR code (add ?screen=1 to the homepage).
Version: 1.1.0
Requires at least: 6.0
Requires PHP: 7.4
License: GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: voter
Tags: one-column, custom-colors, events
*/

/* ---------- Tokens ---------- */

:root {
	--bg: #fafafa;
	--surface: #ffffff;
	--surface-2: #f4f4f5;
	--ink: #0a0a0a;
	--ink-2: #3f3f46;
	--muted: #71717a;
	--line: #e4e4e7;
	--line-2: #d4d4d8;
	--accent: #cb6ce6;
	--on-ink: #ffffff;
	--ok: #16a34a;
	--err: #dc2626;
	--live: #ef4444;
	--track: #ececee;
	--radius: 14px;
	--radius-sm: 10px;
	--sans: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
	--display: "Inter Tight", "Inter", ui-sans-serif, system-ui, sans-serif;
	--ease: cubic-bezier(0.2, 0.8, 0.2, 1);
	--gutter: clamp(16px, 5vw, 32px);
	color-scheme: light;
}

@media (prefers-color-scheme: dark) {
	:root:not([data-theme="light"]) {
		--bg: #0b0b0c;
		--surface: #141416;
		--surface-2: #1c1c1f;
		--ink: #fafafa;
		--ink-2: #d4d4d8;
		--muted: #8b8b94;
		--line: #26262a;
		--line-2: #34343a;
		--on-ink: #0a0a0a;
		--track: #232327;
		color-scheme: dark;
	}
}

/* Projector view is always dark. */
body.is-screen {
	--bg: #0b0b0c;
	--surface: #141416;
	--surface-2: #1c1c1f;
	--ink: #fafafa;
	--ink-2: #d4d4d8;
	--muted: #8b8b94;
	--line: #26262a;
	--line-2: #34343a;
	--on-ink: #0a0a0a;
	--track: #232327;
	color-scheme: dark;
}

/* ---------- Base ---------- */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
	margin: 0;
	min-height: 100vh;
	min-height: 100dvh;
	background: var(--bg);
	color: var(--ink);
	font-family: var(--sans);
	font-size: 16px;
	line-height: 1.55;
	font-feature-settings: "cv11", "ss01";
	-webkit-font-smoothing: antialiased;
	overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--ink); text-underline-offset: 3px; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
[hidden] { display: none !important; }

.stage { display: none; }

/* ---------- Shell ---------- */

.shell { position: relative; min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column;
	max-width: 640px; margin: 0 auto; padding: 0 var(--gutter) calc(112px + env(safe-area-inset-bottom)); }

.masthead { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; min-width: 0; }
.brand__text { display: flex; flex-direction: column; min-width: 0; }
.brand__name { font-family: var(--display); font-weight: 600; font-size: 15px; letter-spacing: -0.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.brand__tag { font-size: 13px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.masthead__meta { display: flex; gap: 14px; align-items: center; flex: none; }

.live-dot, .progress-chip { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 500; color: var(--muted); font-variant-numeric: tabular-nums; }
.live-dot { color: var(--ink); }
.live-dot i { width: 6px; height: 6px; border-radius: 50%; background: var(--live); animation: blink 1.6s ease-in-out infinite; }
@keyframes blink { 50% { opacity: 0.35; } }
@media (max-width: 400px) { .progress-chip { display: none !important; } }

.app { flex: 1; display: flex; flex-direction: column; padding-top: clamp(28px, 6vw, 48px); }
.colophon { display: none; }

/* ---------- Type ---------- */

.panel { position: relative; }
.panel--center { flex: 1; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; min-height: 55vh; gap: 4px; }

.eyebrow { margin: 0 0 12px; font-size: 13px; font-weight: 500; color: var(--muted); }
.award-title { font-family: var(--display); font-weight: 600; font-size: clamp(32px, 8vw, 48px); line-height: 1.05; letter-spacing: -0.035em; margin: 0 0 14px; text-wrap: balance; color: var(--ink); }
.award-title--sm { font-size: clamp(24px, 6vw, 32px); }
.award-kicker { font-size: 15px; font-weight: 500; color: var(--muted); margin: 0 0 6px; }
.lede { font-size: 17px; color: var(--ink-2); margin: 0 0 6px; }
.muted { color: var(--muted); margin: 0; }
.prose { color: var(--ink-2); font-size: 16px; max-width: 58ch; }
.prose p { margin: 0 0 0.8em; }

.award__media { margin: 0 0 24px; border-radius: var(--radius); overflow: hidden; aspect-ratio: 16 / 7; background: var(--surface-2); }
.award__media img { width: 100%; height: 100%; object-fit: cover; }
.award__body { margin-bottom: 20px; }

.status { display: inline-flex; align-items: center; gap: 8px; }
.status::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.status--open { color: var(--ok); }
.status--ready { color: var(--muted); }
.status--closed { color: var(--muted); }
.status--results { color: var(--accent); }

.banner { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; padding: 14px 16px; margin: 4px 0 20px; border-radius: var(--radius-sm);
	background: var(--surface-2); color: var(--ink-2); font-size: 15px; }
.banner--done { color: var(--ink); }
.banner--done svg { color: var(--ok); flex: none; }
.banner span { flex: 1; min-width: 0; }
.banner b { font-weight: 600; }
.hint { color: var(--muted); font-size: 14px; margin: 0 0 14px; }

/* ---------- Nominees ---------- */

.nominees { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.nominees li { animation: rise 0.4s var(--ease) both; animation-delay: calc(var(--i, 0) * 40ms); }
@keyframes rise { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

.nominee { width: 100%; display: flex; align-items: center; gap: 14px; text-align: left; padding: 14px; border-radius: var(--radius);
	background: var(--surface); border: 1px solid var(--line); transition: border-color 0.15s, background 0.15s, opacity 0.2s, transform 0.15s var(--ease); }
button.nominee { cursor: pointer; -webkit-tap-highlight-color: transparent; }
button.nominee:hover { border-color: var(--line-2); }
button.nominee:active { transform: scale(0.99); }
.nominee__text { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.nominee__name { font-weight: 600; font-size: 16px; line-height: 1.3; letter-spacing: -0.01em; }
.nominee__tag { font-size: 14px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nominee__tick { flex: none; width: 22px; height: 22px; border-radius: 50%; border: 1.5px solid var(--line-2); display: grid; place-items: center; transition: 0.15s var(--ease); }
.is-selected, .is-voted { border-color: var(--ink) !important; box-shadow: 0 0 0 1px var(--ink); }
.is-selected .nominee__tick, .is-voted .nominee__tick { background: var(--ink); border-color: var(--ink); }
.is-selected .nominee__tick::after, .is-voted .nominee__tick::after { content: ""; width: 9px; height: 5px; border: 2px solid var(--on-ink); border-top: 0; border-right: 0; transform: translateY(-1px) rotate(-45deg); }
div.nominee .nominee__tick { display: none; }
.is-voted .nominee__tick { display: grid !important; }
.is-dim { opacity: 0.4; }

.avatar { flex: none; width: 44px; height: 44px; border-radius: 50%; overflow: hidden; display: grid; place-items: center; background: var(--surface-2); }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar--initials { font-weight: 600; font-size: 15px; letter-spacing: 0.01em; color: var(--ink-2); background: var(--surface-2); }
.avatar--lg { width: 52px; height: 52px; font-size: 17px; }

@media (min-width: 600px) {
	.nominees--grid { grid-template-columns: 1fr 1fr; }
}

/* ---------- Cast bar & buttons ---------- */

.castbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; padding: 12px var(--gutter) calc(12px + env(safe-area-inset-bottom));
	background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
	border-top: 1px solid var(--line); transition: transform 0.3s var(--ease), opacity 0.3s; }
.castbar[aria-hidden="true"] { transform: translateY(100%); opacity: 0; pointer-events: none; }
.castbar .btn { max-width: 576px; margin: 0 auto; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid var(--line-2); background: var(--surface); color: var(--ink);
	padding: 11px 18px; border-radius: 999px; font-weight: 500; font-size: 15px; text-decoration: none; cursor: pointer; transition: transform 0.12s var(--ease), opacity 0.15s; }
.btn--sm { padding: 6px 14px; font-size: 14px; }
.btn--block { display: flex; width: 100%; }
.btn--primary { border: 0; background: var(--ink); color: var(--on-ink); font-size: 16px; padding: 15px 22px; }
.btn--primary b { font-weight: 600; }
.btn:active { transform: scale(0.985); }
.btn:disabled { opacity: 0.4; cursor: default; }

.spinner { width: 15px; height: 15px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: spin 0.7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Idle & loading ---------- */

.panel--center .loader { margin-bottom: 14px; }
.loader { display: flex; gap: 6px; }
.loader span { width: 6px; height: 6px; border-radius: 50%; background: var(--muted); animation: dot 1.2s infinite ease-in-out both; }
.loader span:nth-child(2) { animation-delay: 0.15s; }
.loader span:nth-child(3) { animation-delay: 0.3s; }
@keyframes dot { 0%, 80%, 100% { opacity: 0.25; } 40% { opacity: 1; } }

.idle__orb { width: 10px; height: 10px; margin-bottom: 22px; border-radius: 50%; background: var(--accent); position: relative; }
.idle__orb span { position: absolute; inset: 0; border-radius: 50%; background: var(--accent); animation: halo 2.4s ease-out infinite; }
@keyframes halo { from { transform: scale(1); opacity: 0.5; } to { transform: scale(4); opacity: 0; } }
.idle .muted { max-width: 36ch; margin-top: 8px; }

.fade-in { animation: fade 0.4s var(--ease) both; }
@keyframes fade { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }

/* ---------- Results ---------- */

.results-panel { text-align: left; }
.winner-name { animation: winner 0.7s var(--ease) both; animation-delay: var(--d, 0s); }
@keyframes winner { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.results { list-style: none; margin: 28px 0 0; padding: 0; display: grid; gap: 0; border-top: 1px solid var(--line); }
.result { display: flex; align-items: center; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--line);
	opacity: 0; animation: rise 0.5s var(--ease) both; animation-delay: var(--d); }
.result__main { flex: 1; min-width: 0; }
.result__top { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.result__name { font-weight: 600; font-size: 16px; letter-spacing: -0.01em; }
.result__num { font-family: var(--display); font-weight: 600; font-size: 18px; font-variant-numeric: tabular-nums; letter-spacing: -0.02em; }
.result__votes { font-size: 13px; color: var(--muted); }
.bar { height: 6px; border-radius: 999px; background: var(--track); margin: 8px 0 6px; overflow: hidden; }
.bar span { display: block; height: 100%; width: var(--w); border-radius: inherit; background: var(--muted);
	transform-origin: left; animation: grow 1s var(--ease) both; animation-delay: calc(var(--d) + 0.1s); }
@keyframes grow { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.result.is-winner .bar span { background: var(--accent); }
.result.is-winner .result__num { color: var(--accent); }
.crown { color: var(--accent); font-size: 0.85em; }
.you { display: inline-block; margin-left: 6px; font-size: 12px; font-weight: 500; color: var(--muted); }
.you::before { content: "· "; }
.results__total { margin-top: 16px; font-size: 14px; }

.confetti { position: fixed; inset: 0; pointer-events: none; z-index: 30; overflow: hidden; }
.confetti i { position: absolute; top: -20px; left: var(--x); width: 6px; height: 10px; border-radius: 1px; background: var(--accent);
	opacity: 0; animation: drop var(--t) cubic-bezier(0.3, 0.6, 0.5, 1) var(--d) forwards; }
.confetti i:nth-child(3n) { background: var(--ink); }
.confetti i:nth-child(3n + 1) { background: var(--line-2); }
@keyframes drop { 0% { opacity: 1; transform: translateY(0) rotate(0); } 100% { opacity: 0.9; transform: translateY(110vh) rotate(var(--r)); } }

/* ---------- Toast ---------- */

.toast { position: fixed; left: 50%; top: 16px; z-index: 50; transform: translate(-50%, -160%); max-width: calc(100vw - 32px);
	padding: 10px 16px; border-radius: 999px; background: var(--ink); color: var(--on-ink); font-weight: 500; font-size: 14px;
	box-shadow: 0 8px 30px -8px rgba(0, 0, 0, 0.3); transition: transform 0.35s var(--ease); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.toast.is-on { transform: translate(-50%, 0); }
.toast--err { background: var(--err); color: #fff; }

/* ---------- Host dock ---------- */

.dock { position: fixed; z-index: 40; left: 50%; bottom: calc(12px + env(safe-area-inset-bottom)); transform: translateX(-50%); width: min(640px, calc(100vw - 24px));
	display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 8px 8px 8px 16px; border-radius: 16px;
	background: var(--surface); border: 1px solid var(--line); box-shadow: 0 10px 40px -12px rgba(0, 0, 0, 0.25); transition: opacity 0.25s, transform 0.25s var(--ease); }
.dock.is-busy { opacity: 0.6; pointer-events: none; }
.dock__info { display: flex; flex-direction: column; min-width: 0; flex: 1 1 160px; }
.dock__label { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); }
.dock__now { font-weight: 600; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dock__meta { font-size: 13px; color: var(--muted); }
.dock__actions { display: flex; gap: 4px; flex-wrap: wrap; }
.dbtn { border: 1px solid var(--line); background: var(--surface); color: var(--ink); padding: 8px 12px; border-radius: 10px; font-weight: 500; font-size: 14px; cursor: pointer; text-decoration: none; line-height: 1.2; }
.dbtn:hover { background: var(--surface-2); }
.dbtn--primary { background: var(--ink); color: var(--on-ink); border-color: var(--ink); }
.dbtn--primary:hover { background: var(--ink); opacity: 0.88; }
.dbtn--ghost { border-color: transparent; background: transparent; }
body:has(.dock) .castbar { bottom: 84px; border-top: 0; background: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; }
body:has(.dock) .shell { padding-bottom: 190px; }
.dock--auto { opacity: 0; transform: translate(-50%, 70%); }
.dock--auto:hover, .dock--auto:focus-within { opacity: 1; transform: translateX(-50%); }

/* ---------- Big screen (?screen=1) ---------- */

.is-screen .shell { max-width: none; padding: 0 clamp(32px, 5vw, 96px) 48px; }
.is-screen .masthead { padding: 32px 0 24px; }
.is-screen .brand__name { font-size: 20px; }
.is-screen .brand__tag { font-size: 15px; }
.is-screen .live-dot, .is-screen .progress-chip { font-size: 16px; }
.is-screen .app { padding-top: 32px; }
.layout--screen { flex: 1; display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: clamp(40px, 6vw, 96px); align-items: center; }
.layout--screen.layout--results { grid-template-columns: minmax(0, 1fr); max-width: 1000px; margin: 0 auto; width: 100%; }
.is-screen .eyebrow { font-size: 18px; }
.is-screen .award-title { font-size: clamp(56px, 6.5vw, 104px); letter-spacing: -0.045em; }
.is-screen .prose { font-size: clamp(18px, 1.5vw, 22px); }
.is-screen .nominees { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 10px; }
.is-screen .nominee { padding: 18px; }
.is-screen .nominee__name { font-size: 20px; }
.is-screen .avatar { width: 52px; height: 52px; font-size: 17px; }
.is-screen .result { padding: 14px 0; }
.is-screen .results { margin-top: 20px; }
.is-screen .screen--results .stepper { margin-bottom: 24px; }
.is-screen .result__name { font-size: 22px; }
.is-screen .result__num { font-size: 28px; }
.is-screen .bar { height: 8px; }
.is-screen .banner { font-size: 18px; }

.join { padding: 24px; border-radius: 20px; background: var(--surface); border: 1px solid var(--line); }
.join__qr { width: 100%; aspect-ratio: 1; margin: 0 0 20px; padding: 12px; background: #fff; border-radius: 12px; }
.join__qr img, .join__qr canvas { width: 100% !important; height: 100% !important; }
.join__label { margin: 0; font-size: 14px; color: var(--muted); }
.join__url { margin: 2px 0 0; font-family: var(--display); font-size: 22px; font-weight: 600; letter-spacing: -0.02em; word-break: break-all; }
.join__total { margin: 20px 0 0; padding-top: 18px; border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; }
.join__total b { display: block; font-family: var(--display); font-weight: 600; font-size: 48px; line-height: 1; letter-spacing: -0.04em; color: var(--ink); font-variant-numeric: tabular-nums; margin-bottom: 4px; }
.bump { animation: bump 0.4s var(--ease); }
@keyframes bump { 40% { transform: translateY(-3px); color: var(--accent); } }

@media (max-width: 900px) {
	.layout--screen { grid-template-columns: 1fr; }
	.join { display: none; }
}

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation-duration: 0.01ms !important; animation-delay: 0s !important; transition-duration: 0.01ms !important; }
	.result, .nominees li { opacity: 1; }
}

/* ---------- Event code gate (phones) ---------- */

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.gate { align-items: stretch; }
.gate__lede { margin-bottom: 24px; max-width: 34ch; }
.gate__form { display: grid; gap: 10px; width: 100%; }
.gate__input { width: 100%; padding: 16px 18px; border-radius: var(--radius); border: 1px solid var(--line-2); background: var(--surface); color: var(--ink);
	font: 600 22px/1.2 var(--display); letter-spacing: 0.12em; text-transform: uppercase; text-align: center; transition: border-color 0.15s, box-shadow 0.15s; }
.gate__input::placeholder { color: var(--muted); letter-spacing: 0.02em; font-weight: 500; text-transform: none; }
.gate__input:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink); }
.gate__error { margin: 4px 0 0; color: var(--err); font-size: 14px; text-align: center; }
.shake { animation: shake 0.4s; border-color: var(--err) !important; }
@keyframes shake { 20%, 60% { transform: translateX(-6px); } 40%, 80% { transform: translateX(6px); } }
body[data-status="locked"] .masthead { border-bottom-color: transparent; }

/* ---------- Presenter screen ---------- */

.screen { flex: 1; display: flex; flex-direction: column; justify-content: center; padding: clamp(24px, 4vh, 48px) 0; }
.screen--idle, .screen--vote { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: clamp(40px, 6vw, 112px); align-items: center; align-content: center; }
.screen__main { min-width: 0; }
.screen .lede { font-size: clamp(20px, 1.8vw, 28px); color: var(--ink-2); max-width: 32ch; }
.screen .muted { font-size: clamp(16px, 1.3vw, 20px); max-width: 40ch; }

.stepper { display: flex; gap: 8px; list-style: none; margin: 0 0 clamp(28px, 5vh, 56px); padding: 0; counter-reset: s; }
.stepper li { counter-increment: s; display: flex; align-items: center; gap: 10px; font-size: 15px; font-weight: 500; color: var(--muted); }
.stepper li::before { content: counter(s); width: 24px; height: 24px; border-radius: 50%; border: 1px solid var(--line-2); display: grid; place-items: center; font-size: 12px; }
.stepper li + li { padding-left: 8px; }
.stepper li + li::after { content: none; }
.stepper li:not(:last-child) { padding-right: 18px; position: relative; }
.stepper li:not(:last-child)::after { content: ""; position: absolute; right: 0; top: 50%; width: 10px; height: 1px; background: var(--line-2); }
.stepper .is-done { color: var(--ink-2); }
.stepper .is-done::before { content: "✓"; border-color: var(--ink-2); }
.stepper .is-now { color: var(--ink); }
.stepper .is-now::before { background: var(--ink); color: var(--on-ink); border-color: var(--ink); }

.showcase { list-style: none; margin: clamp(24px, 4vh, 48px) 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: clamp(20px, 3vw, 40px); }
.showcase li { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; animation: rise 0.6s var(--ease) both; animation-delay: calc(var(--i, 0) * 120ms + 0.1s); }
.is-screen .avatar--xl, .avatar--xl { width: clamp(96px, 9vw, 150px); height: clamp(96px, 9vw, 150px); font-size: clamp(30px, 2.8vw, 46px); margin-bottom: 14px; }
.showcase__name { font-family: var(--display); font-weight: 600; font-size: clamp(22px, 2vw, 32px); letter-spacing: -0.02em; line-height: 1.15; }
.showcase__tag { font-size: clamp(15px, 1.2vw, 19px); color: var(--muted); }

.namechips { list-style: none; margin: 32px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.namechips li { padding: 8px 16px; border-radius: 999px; border: 1px solid var(--line-2); font-size: clamp(15px, 1.2vw, 18px); color: var(--ink-2); }

.join__steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.join__steps li { display: flex; flex-direction: column; }
.join__steps span { font-size: 14px; color: var(--muted); }
.join__steps b { font-family: var(--display); font-weight: 600; font-size: 24px; letter-spacing: -0.02em; word-break: break-all; }
.join__steps .join__code { font-size: 40px; letter-spacing: 0.08em; line-height: 1.1; }
.join__total--solo { margin: 0; padding: 0; border: 0; text-align: center; }
.join__total--solo b { font-size: 96px; }
.screen--results, .screen--results .results-panel { max-width: none; width: 100%; }

@media (max-width: 900px) {
	.screen--idle, .screen--vote { grid-template-columns: 1fr; }
	.screen .join { display: block; max-width: 360px; }
}

/* Award intro step */
.screen--intro { max-width: none; width: 100%; }
.award-title--hero { font-size: clamp(64px, 8vw, 136px) !important; margin-bottom: 28px; }
.prose--hero { font-size: clamp(22px, 2.4vw, 40px) !important; line-height: 1.4; color: var(--ink-2); }
.is-screen .prose, .is-screen .award-title { max-width: none; }
.is-screen .award-title--hero { font-size: clamp(64px, 9vw, 180px) !important; }

/* Presenter nominees: two columns, small avatar beside the name */
.showcase { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: clamp(32px, 5vw, 96px); row-gap: clamp(20px, 3.5vh, 40px); }
.showcase li { display: grid; grid-template-columns: auto minmax(0, 1fr); grid-template-rows: auto auto; column-gap: clamp(16px, 1.6vw, 28px); row-gap: 2px; align-items: center; }
.showcase li .avatar { grid-row: 1 / span 2; align-self: center; }
.showcase__name { align-self: end; }
.showcase__tag { align-self: start; grid-column: 2; }
.showcase li:not(:has(.showcase__tag)) .avatar { grid-row: 1; }
.is-screen .avatar--xl, .avatar--xl { width: clamp(56px, 4.6vw, 84px); height: clamp(56px, 4.6vw, 84px); font-size: clamp(19px, 1.6vw, 28px); margin-bottom: 0; }
@media (max-width: 700px) { .showcase { grid-template-columns: 1fr; } }

/* Fullscreen toggle (presenter screen) */
.fs-toggle { position: fixed; top: 16px; right: 16px; z-index: 45; display: inline-flex; align-items: center; gap: 8px;
	padding: 9px 14px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--surface); color: var(--ink);
	font-size: 14px; font-weight: 500; cursor: pointer; opacity: 0; pointer-events: none; transition: opacity 0.3s; }
.is-pointer-active .fs-toggle, .fs-toggle:focus-visible, .fs-toggle:hover { opacity: 1; pointer-events: auto; }
.fs-toggle:hover { background: var(--surface-2); }
body:not(.is-fullscreen) .fs-toggle { opacity: 1; pointer-events: auto; }
body:not(.is-fullscreen):not(.is-pointer-active) .fs-toggle { opacity: 0.6; }
.is-fullscreen { cursor: none; }
.is-fullscreen.is-pointer-active { cursor: auto; }
@media (hover: none), (pointer: coarse) { .fs-toggle { display: none; } }
/* Name sits level with the middle of the avatar; team/role hangs underneath. */
.showcase li .avatar { grid-row: 1; grid-column: 1; align-self: center; }
.showcase__name { grid-row: 1; grid-column: 2; align-self: center; }
.showcase__tag { grid-row: 2; grid-column: 2; margin-top: clamp(-18px, -1.2vw, -10px); }

/* ---------- End screen ---------- */

.finale { display: flex; flex-direction: column; justify-content: center; min-height: 60vh; }
.finale__lede { max-width: 36ch; }
.winners { list-style: none; margin: 32px 0 0; padding: 0; border-top: 1px solid var(--line); }
.winners li { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line);
	animation: rise 0.5s var(--ease) both; animation-delay: calc(var(--i, 0) * 120ms + 0.3s); }
.winners__award { color: var(--muted); font-size: 15px; }
.winners__name { font-weight: 600; font-size: 17px; letter-spacing: -0.01em; text-align: right; }
.winners .crown { font-size: 0.8em; }

.screen--finale { width: 100%; }
.screen--finale .finale { min-height: 0; }
.is-screen .finale__title { font-size: clamp(64px, 8vw, 150px); }
.is-screen .finale__lede { font-size: clamp(22px, 2.2vw, 36px); max-width: none; }
.is-screen .winners { margin-top: clamp(28px, 5vh, 56px); display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: clamp(32px, 5vw, 96px); border-top: 0; }
.is-screen .winners li { border-top: 1px solid var(--line); border-bottom: 0; padding: clamp(14px, 2vh, 22px) 0; }
.is-screen .winners__award { font-size: clamp(16px, 1.3vw, 22px); }
.is-screen .winners__name { font-size: clamp(22px, 2vw, 34px); }
@media (max-width: 900px) { .is-screen .winners { grid-template-columns: 1fr; } }
