/* ===================================================================
   Challenge 'Em — styles
   Dark game-show theme. Navy bg, orange/red bomb accent.
   =================================================================== */

:root {
	--bg: #0f1226;
	--bg-2: #161a36;
	--card: #1c2148;
	--card-2: #232a5c;
	--ink: #f4f6ff;
	--ink-dim: #b7bce0;
	--ink-faint: #7d83b5;
	--line: #2c3370;
	--accent: #ff7a18;
	--accent-2: #e23b2e;
	--good: #2fd27a;
	--good-deep: #16a85b;
	--bad: #e23b2e;
	--warn: #ffcb47;
	--glow-accent: 0 0 22px rgba(255, 122, 24, 0.45);
	--radius: 18px;
	--radius-sm: 12px;
	--shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
	--safe-top: env(safe-area-inset-top, 0px);
	--safe-bottom: env(safe-area-inset-bottom, 0px);
	--tap: 56px;
}

* {
	box-sizing: border-box;
}

html,
body {
	margin: 0;
	padding: 0;
	height: 100%;
	background: var(--bg);
	color: var(--ink);
	font-family:
		-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial,
		"Apple Color Emoji", sans-serif;
	-webkit-text-size-adjust: 100%;
	-webkit-tap-highlight-color: transparent;
	overscroll-behavior: none;
}

body {
	background:
		radial-gradient(1200px 700px at 50% -10%, #1a2050 0%, transparent 60%),
		radial-gradient(900px 600px at 100% 110%, #221a3e 0%, transparent 55%),
		var(--bg);
	min-height: 100dvh;
}

#root {
	max-width: 720px;
	margin: 0 auto;
	min-height: 100dvh;
	padding: calc(var(--safe-top) + 10px) 16px calc(var(--safe-bottom) + 18px);
	display: flex;
	flex-direction: column;
}

/* ---- ambient danger glow overlay (cosmetic fake-out) ---- */
#fx {
	position: fixed;
	inset: 0;
	pointer-events: none;
	z-index: 5;
	opacity: 0;
	transition: opacity 0.8s ease;
	background: radial-gradient(
		120% 80% at 50% 120%,
		rgba(226, 59, 46, 0.55),
		rgba(255, 122, 24, 0.18) 45%,
		transparent 70%
	);
}
#fx.glow {
	opacity: 0.85;
	transition: opacity 0.35s ease;
}
.reduce-motion #fx {
	transition: opacity 0.3s linear;
}

/* shake + flash applied to body during caught */
body.shake {
	animation: shake 0.5s cubic-bezier(0.36, 0.07, 0.19, 0.97) both;
}
@keyframes shake {
	10%,
	90% {
		transform: translate3d(-2px, 0, 0);
	}
	20%,
	80% {
		transform: translate3d(4px, 0, 0);
	}
	30%,
	50%,
	70% {
		transform: translate3d(-8px, 0, 0);
	}
	40%,
	60% {
		transform: translate3d(8px, 0, 0);
	}
}
.reduce-motion body.shake {
	animation: none;
}

/* =========================== generic ============================= */

h1,
h2,
h3 {
	margin: 0;
	font-weight: 800;
	letter-spacing: -0.01em;
}

button {
	font: inherit;
	color: var(--ink);
	border: 0;
	background: none;
	cursor: pointer;
	touch-action: manipulation;
}

button:focus-visible,
input:focus-visible,
a:focus-visible {
	outline: 3px solid var(--accent);
	outline-offset: 2px;
}

input,
select {
	font: inherit;
	color: var(--ink);
	background: var(--bg-2);
	border: 2px solid var(--line);
	border-radius: var(--radius-sm);
	padding: 14px 16px;
	width: 100%;
}

.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: var(--tap);
	padding: 14px 20px;
	border-radius: var(--radius);
	font-weight: 800;
	font-size: 18px;
	background: var(--card);
	border: 2px solid var(--line);
	transition:
		transform 0.08s ease,
		filter 0.15s ease,
		background 0.15s ease;
}
.btn:active {
	transform: translateY(1px) scale(0.99);
}
.btn[disabled] {
	opacity: 0.45;
	cursor: not-allowed;
}
.btn.block {
	width: 100%;
}
.btn.primary {
	background: linear-gradient(135deg, var(--accent), var(--accent-2));
	border-color: transparent;
	box-shadow: var(--glow-accent);
}
.btn.good {
	background: linear-gradient(135deg, var(--good), var(--good-deep));
	border-color: transparent;
	color: #04210f;
}
.btn.danger {
	background: linear-gradient(135deg, var(--accent-2), #b1271c);
	border-color: transparent;
}
.btn.ghost {
	background: transparent;
}
.btn.lg {
	font-size: 20px;
	min-height: 64px;
}

.card {
	background: linear-gradient(180deg, var(--card), var(--card-2));
	border: 1px solid var(--line);
	border-radius: var(--radius);
	box-shadow: var(--shadow);
	padding: 18px;
}

.muted {
	color: var(--ink-dim);
}
.faint {
	color: var(--ink-faint);
}
.center {
	text-align: center;
}
.row {
	display: flex;
	gap: 10px;
	align-items: center;
}
.row.wrap {
	flex-wrap: wrap;
}
.col {
	display: flex;
	flex-direction: column;
	gap: 12px;
}
.grow {
	flex: 1;
}
.spacer {
	flex: 1 1 auto;
}
.hidden {
	display: none !important;
}

.brand {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	margin: 8px 0 4px;
}
.brand .logo {
	width: 40px;
	height: 40px;
	display: grid;
	place-items: center;
	font-size: 26px;
	filter: drop-shadow(0 0 10px rgba(255, 122, 24, 0.6));
}
.brand h1 {
	font-size: clamp(28px, 8vw, 44px);
	background: linear-gradient(90deg, var(--accent), #ffd1a3, var(--accent-2));
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
}

.topbar {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-bottom: 10px;
}
.topbar .title {
	font-weight: 800;
	font-size: 17px;
}
.toolbtn {
	width: 44px;
	height: 44px;
	border-radius: 12px;
	display: grid;
	place-items: center;
	background: var(--card);
	border: 1px solid var(--line);
	font-size: 18px;
}
.toolbtn[aria-pressed="false"] {
	opacity: 0.55;
}

/* ============================ HOME =============================== */

.home {
	gap: 18px;
	margin-top: 6px;
}
.home .tag {
	color: var(--ink-dim);
	text-align: center;
	font-size: 15px;
	max-width: 30ch;
	margin: 0 auto;
}

.home .join-row {
	display: flex;
	gap: 10px;
}
.home .join-row input {
	text-transform: uppercase;
	letter-spacing: 3px;
	font-weight: 800;
	text-align: center;
}

.field-label {
	font-size: 13px;
	color: var(--ink-dim);
	margin-bottom: 6px;
	font-weight: 700;
}

/* =========================== LOBBY ============================== */

.code-card {
	text-align: center;
}
.code-big {
	/* Codes run up to ~13 chars (COSMICPENGUIN) — size + spacing must let the
	   FULL code fit on a phone (and wrap rather than clip if it can't), so players
	   read the real code, not a truncated one. */
	font-size: clamp(24px, 8vw, 52px);
	font-weight: 900;
	letter-spacing: 3px;
	line-height: 1.05;
	word-break: break-word;
	overflow-wrap: anywhere;
	background: linear-gradient(90deg, var(--accent), var(--accent-2));
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
}
.code-actions {
	justify-content: center;
	margin-top: 8px;
}
.linkbox {
	font-size: 12px;
	color: var(--ink-faint);
	word-break: break-all;
	margin-top: 6px;
}

.stepper {
	display: flex;
	align-items: center;
	gap: 12px;
}
.stepper .sbtn {
	width: 48px;
	height: 48px;
	border-radius: 12px;
	background: var(--card-2);
	border: 1px solid var(--line);
	font-size: 26px;
	font-weight: 800;
	display: grid;
	place-items: center;
}
.stepper .sval {
	min-width: 56px;
	text-align: center;
	font-size: 26px;
	font-weight: 900;
}
.ctrl-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
}
.ctrl-row .lbl {
	font-weight: 700;
}
.ctrl-row .sub {
	font-size: 12px;
	color: var(--ink-faint);
}

.toggle {
	position: relative;
	width: 64px;
	height: 36px;
	border-radius: 20px;
	background: var(--bg-2);
	border: 1px solid var(--line);
	flex: 0 0 auto;
}
.toggle[aria-pressed="true"] {
	background: linear-gradient(135deg, var(--good), var(--good-deep));
	border-color: transparent;
}
.toggle[disabled] {
	opacity: 0.5;
}
.toggle .knob {
	position: absolute;
	top: 3px;
	left: 3px;
	width: 28px;
	height: 28px;
	border-radius: 50%;
	background: #fff;
	transition: left 0.18s ease;
}
.toggle[aria-pressed="true"] .knob {
	left: 31px;
}

.roster {
	display: flex;
	flex-direction: column;
	gap: 8px;
}
.pl {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 12px 14px;
	border-radius: 14px;
	background: var(--bg-2);
	border: 1px solid var(--line);
}
.pl .dot {
	width: 10px;
	height: 10px;
	border-radius: 50%;
	background: var(--ink-faint);
	flex: 0 0 auto;
}
.pl .dot.on {
	background: var(--good);
	box-shadow: 0 0 8px var(--good);
}
.pl .nm {
	font-weight: 700;
}
.pl .badge {
	font-size: 11px;
	font-weight: 800;
	padding: 3px 8px;
	border-radius: 999px;
	background: var(--card-2);
	border: 1px solid var(--line);
	color: var(--ink-dim);
}
.pl .badge.host {
	background: rgba(255, 122, 24, 0.18);
	border-color: var(--accent);
	color: #ffd1a3;
}
.pl .badge.bot {
	background: rgba(120, 140, 255, 0.18);
	border-color: #6f7dff;
	color: #cdd4ff;
}
.pl .score {
	margin-left: auto;
	font-weight: 900;
	font-size: 18px;
}
.pl.me {
	outline: 2px solid var(--accent);
}

.pill {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 4px 12px;
	border-radius: 999px;
	font-size: 13px;
	font-weight: 800;
	border: 1px solid var(--line);
	background: var(--bg-2);
}
.pill.clean {
	color: #bff0d4;
	border-color: var(--good);
}
.pill.adult {
	color: #ffc0bb;
	border-color: var(--accent-2);
}

/* ====================== GAMEPLAY / WHEEL ======================= */

.play {
	flex: 1;
	display: flex;
	flex-direction: column;
}
.play .hud {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	margin-bottom: 6px;
}
.play .prompt {
	font-size: clamp(15px, 4.4vw, 20px);
	font-weight: 800;
	color: var(--ink);
	text-align: center;
	line-height: 1.2;
	padding: 8px 6px;
}
.play .prompt .lead {
	color: var(--accent);
	font-size: 12px;
	letter-spacing: 1px;
	text-transform: uppercase;
	display: block;
	margin-bottom: 3px;
}
/* Compact category reminder shown between the answer input and Submit. */
.play .prompt.prompt-inline {
	padding: 2px 6px 6px;
	font-size: clamp(14px, 4vw, 18px);
}
.play .prompt.prompt-inline .lead {
	font-size: 11px;
	margin-bottom: 1px;
}

.wheel {
	flex: 1;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 8px;
	position: relative;
	min-height: 320px;
	overflow: hidden;
	padding: 6px 0;
}
.wheel .lane {
	width: 100%;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 7px;
}

.spoke {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 7px 14px;
	border-radius: 999px;
	background: var(--bg-2);
	border: 1px solid var(--line);
	color: var(--ink-dim);
	font-weight: 700;
	max-width: 86%;
	transition:
		opacity 0.3s ease,
		transform 0.3s ease;
}
.spoke .nm {
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	max-width: 38vw;
}
.spoke.far {
	opacity: 0.4;
	font-size: 13px;
}
.spoke.near {
	opacity: 0.72;
	font-size: 15px;
}

.spoke.next {
	color: #fff;
	background: linear-gradient(
		135deg,
		rgba(47, 210, 122, 0.25),
		rgba(22, 168, 91, 0.2)
	);
	border-color: var(--good);
	box-shadow: 0 0 16px rgba(47, 210, 122, 0.5);
	animation: nextPulse 1.6s ease-in-out infinite;
}
@keyframes nextPulse {
	0%,
	100% {
		box-shadow: 0 0 12px rgba(47, 210, 122, 0.35);
	}
	50% {
		box-shadow: 0 0 26px rgba(47, 210, 122, 0.7);
	}
}
.reduce-motion .spoke.next {
	animation: none;
}
.spoke.next::before {
	content: "▲ UP NEXT";
	font-size: 10px;
	font-weight: 900;
	color: var(--good);
	margin-right: 2px;
}

/* center stage */
.center-stage {
	width: 100%;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 6px;
	padding: 14px 12px;
	border-radius: 22px;
	background:
		radial-gradient(
			120% 120% at 50% 0%,
			rgba(255, 122, 24, 0.14),
			transparent 70%
		),
		var(--card);
	border: 2px solid var(--accent);
	box-shadow: 0 0 30px rgba(255, 122, 24, 0.25);
	min-height: 150px;
	justify-content: center;
}
.center-stage .who {
	font-size: 14px;
	font-weight: 800;
	color: var(--accent);
	letter-spacing: 0.5px;
}
.center-stage .ans {
	font-size: clamp(28px, 11vw, 56px);
	font-weight: 900;
	line-height: 1.05;
	text-align: center;
	word-break: break-word;
	transition:
		opacity 0.25s linear,
		filter 0.25s linear;
}
.center-stage .ans.empty {
	color: var(--ink-faint);
	font-size: clamp(18px, 6vw, 26px);
	font-weight: 700;
}
.center-stage .ans.pop {
	animation: pop 0.45s cubic-bezier(0.2, 1.3, 0.4, 1) both;
}
@keyframes pop {
	0% {
		transform: scale(0.5);
		opacity: 0;
	}
	60% {
		transform: scale(1.08);
	}
	100% {
		transform: scale(1);
		opacity: 1;
	}
}
.reduce-motion .center-stage .ans.pop {
	animation: none;
}

/* input zone */
.turnzone {
	margin-top: auto;
	padding-top: 10px;
}
.answer-input {
	border-width: 3px;
	font-size: 20px;
	font-weight: 800;
	text-align: center;
	transition:
		border-color 0.2s linear,
		box-shadow 0.2s linear,
		background 0.2s linear;
}
.answer-input.live {
	border-color: var(--good);
	box-shadow: 0 0 0 3px rgba(47, 210, 122, 0.18);
}
.answer-input.pulse {
	animation: inPulse 0.9s ease-in-out;
}
@keyframes inPulse {
	0%,
	100% {
		transform: scale(1);
	}
	50% {
		transform: scale(1.012);
	}
}
.reduce-motion .answer-input.pulse {
	animation: none;
}

.charcount {
	font-size: 12px;
	color: var(--ink-faint);
	text-align: right;
	margin-top: 4px;
}
.charcount.warn {
	color: var(--warn);
}

.timebar {
	height: 12px;
	border-radius: 999px;
	background: var(--bg-2);
	border: 1px solid var(--line);
	overflow: hidden;
	margin-top: 8px;
}
.timebar > i {
	display: block;
	height: 100%;
	width: 100%;
	background: linear-gradient(90deg, var(--good), var(--warn), var(--bad));
	transition: width 0.12s linear;
}
.timebar-label {
	font-size: 12px;
	color: var(--ink-dim);
	margin-top: 4px;
	text-align: center;
}

.spectate-note {
	text-align: center;
	color: var(--ink-dim);
	font-weight: 700;
	padding: 12px;
	font-size: 15px;
}
.spectate-note .who {
	color: var(--accent);
}

/* ====================== CHALLENGE / VOTE ======================= */

.overlay {
	position: fixed;
	inset: 0;
	z-index: 30;
	display: flex;
	flex-direction: column;
	padding: calc(var(--safe-top) + 16px) 18px calc(var(--safe-bottom) + 18px);
	background: rgba(7, 9, 22, 0.9);
	backdrop-filter: blur(6px);
	-webkit-backdrop-filter: blur(6px);
}
.overlay .panel {
	margin: auto;
	width: 100%;
	max-width: 560px;
	display: flex;
	flex-direction: column;
	gap: 16px;
	text-align: center;
}
.chal-head {
	font-size: 22px;
	font-weight: 900;
}
.chal-head b {
	color: var(--accent);
}
.chal-answer {
	font-size: clamp(30px, 12vw, 60px);
	font-weight: 900;
	line-height: 1.05;
	padding: 22px 16px;
	border-radius: 20px;
	background: var(--card);
	border: 2px solid var(--accent-2);
	box-shadow: 0 0 30px rgba(226, 59, 46, 0.35);
	word-break: break-word;
}
.vs {
	color: var(--ink-faint);
	font-weight: 900;
	font-size: 16px;
}
.prior-answer {
	font-size: clamp(20px, 7vw, 32px);
	font-weight: 800;
	color: var(--ink-dim);
}

.reasons {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 10px;
}
.reasons .btn {
	font-size: 15px;
	min-height: 52px;
}
.reasons .btn[aria-pressed="true"] {
	background: linear-gradient(135deg, var(--accent), var(--accent-2));
	border-color: transparent;
	box-shadow: var(--glow-accent);
}
.reasons .btn:last-child:nth-child(odd) {
	grid-column: 1 / -1;
}

.vote-btns {
	display: grid;
	gap: 12px;
}
.vote-btns .btn {
	min-height: 70px;
	font-size: 20px;
}

.warn-banner {
	border: 2px dashed var(--accent-2);
	background: repeating-linear-gradient(
		45deg,
		rgba(226, 59, 46, 0.12),
		rgba(226, 59, 46, 0.12) 12px,
		rgba(255, 122, 24, 0.12) 12px,
		rgba(255, 122, 24, 0.12) 24px
	);
	border-radius: 14px;
	padding: 12px;
	font-weight: 800;
	color: #ffd9d4;
	font-size: 14px;
	letter-spacing: 0.3px;
}

.vote-count {
	font-weight: 800;
	color: var(--ink-dim);
}
.vote-count i {
	color: var(--good);
	font-style: normal;
}

.votebar {
	height: 14px;
	border-radius: 999px;
	overflow: hidden;
	background: var(--bg-2);
	border: 1px solid var(--line);
}
.votebar > i {
	display: block;
	height: 100%;
	width: 100%;
}
.votebar.blink > i {
	animation: blinkbar 1s steps(1) infinite;
}
@keyframes blinkbar {
	0% {
		background: var(--good);
	}
	50% {
		background: var(--bad);
	}
	100% {
		background: var(--good);
	}
}
.reduce-motion .votebar.blink > i {
	animation: none;
	background: var(--warn);
}

.voted-tag {
	font-weight: 900;
	color: var(--good);
	font-size: 18px;
}
.challenged-tag {
	font-weight: 900;
	color: var(--accent-2);
	font-size: 20px;
}

/* ====================== CAUGHT / TIMES UP ===================== */

.caught-overlay {
	position: fixed;
	inset: 0;
	z-index: 50;
	display: grid;
	place-items: center;
	text-align: center;
	background: radial-gradient(
		120% 120% at 50% 50%,
		rgba(226, 59, 46, 0.65),
		rgba(15, 18, 38, 0.96) 70%
	);
	animation: flashbg 0.25s steps(2) 3;
	padding: 24px;
}
@keyframes flashbg {
	0% {
		background-color: rgba(226, 59, 46, 0.4);
	}
	50% {
		background-color: rgba(255, 122, 24, 0.6);
	}
	100% {
		background-color: rgba(226, 59, 46, 0.4);
	}
}
.reduce-motion .caught-overlay {
	animation: none;
}
.caught-overlay .boom {
	font-size: clamp(60px, 22vw, 130px);
	line-height: 1;
	filter: drop-shadow(0 0 24px rgba(255, 122, 24, 0.8));
}
.caught-overlay .tu {
	font-size: clamp(44px, 16vw, 96px);
	font-weight: 900;
	letter-spacing: 2px;
	color: #fff;
	text-shadow:
		0 0 24px rgba(226, 59, 46, 0.9),
		0 4px 0 #7a1009;
}
.caught-overlay .hl {
	font-size: clamp(18px, 6vw, 26px);
	font-weight: 800;
	color: #ffe2d9;
	margin-top: 8px;
}

/* ====================== ROUND OVER ===================== */

.headline {
	font-size: clamp(24px, 8vw, 38px);
	font-weight: 900;
	text-align: center;
	background: linear-gradient(90deg, var(--accent), #ffd1a3, var(--accent-2));
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
	line-height: 1.1;
}
.delta-list {
	display: flex;
	flex-direction: column;
	gap: 8px;
}
.delta {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 12px 14px;
	border-radius: 14px;
	background: var(--bg-2);
	border: 1px solid var(--line);
}
.delta .nm {
	font-weight: 800;
}
.delta .d {
	margin-left: auto;
	font-weight: 900;
	font-size: 18px;
}
.delta .d.up {
	color: var(--good);
}
.delta .d.down {
	color: var(--bad);
}
.delta .d.zero {
	color: var(--ink-faint);
}
.delta .tot {
	font-weight: 800;
	color: var(--ink-dim);
	min-width: 44px;
	text-align: right;
}

.answer-history {
	display: flex;
	flex-direction: column;
	gap: 6px;
}
.ah-item {
	display: flex;
	gap: 10px;
	align-items: baseline;
	padding: 8px 12px;
	border-radius: 10px;
	background: var(--bg-2);
}
.ah-item .who {
	color: var(--ink-faint);
	font-size: 13px;
	min-width: 0;
	flex: 0 0 auto;
}
.ah-item .txt {
	font-weight: 700;
	word-break: break-word;
}
.next-up {
	text-align: center;
	font-weight: 800;
	color: var(--ink-dim);
}
.next-up b {
	color: var(--accent);
}

/* ====================== GAME OVER ===================== */

.winner {
	text-align: center;
}
.winner .crown {
	font-size: 56px;
	filter: drop-shadow(0 0 20px rgba(255, 203, 71, 0.7));
}
.winner .lead {
	color: var(--ink-dim);
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: 2px;
	font-size: 13px;
}
.winner .name {
	font-size: clamp(34px, 12vw, 60px);
	font-weight: 900;
	background: linear-gradient(90deg, var(--warn), var(--accent));
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
}

.standings {
	display: flex;
	flex-direction: column;
	gap: 6px;
}
.standing {
	display: flex;
	gap: 10px;
	align-items: center;
	padding: 10px 14px;
	border-radius: 12px;
	background: var(--bg-2);
	border: 1px solid var(--line);
}
.standing .rk {
	font-weight: 900;
	color: var(--ink-faint);
	width: 26px;
}
.standing.top {
	border-color: var(--warn);
	box-shadow: 0 0 14px rgba(255, 203, 71, 0.3);
}
.standing .nm {
	font-weight: 800;
}
.standing .tot {
	margin-left: auto;
	font-weight: 900;
}

.drama-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 10px;
}
.drama-card {
	padding: 14px;
	border-radius: 16px;
	text-align: center;
	background: linear-gradient(180deg, var(--card), var(--card-2));
	border: 1px solid var(--line);
}
.drama-card .lbl {
	font-size: 12px;
	font-weight: 900;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	color: var(--accent);
}
.drama-card .who {
	font-size: 18px;
	font-weight: 900;
	margin-top: 4px;
}
.drama-card .det {
	font-size: 12px;
	color: var(--ink-dim);
	margin-top: 4px;
}
@media (max-width: 380px) {
	.drama-grid,
	.reasons {
		grid-template-columns: 1fr;
	}
}

/* ====================== ROUND INTRO ===================== */

.intro {
	flex: 1;
	display: grid;
	place-items: center;
	text-align: center;
	gap: 14px;
}
.intro .rd {
	color: var(--accent);
	font-weight: 900;
	letter-spacing: 2px;
	text-transform: uppercase;
}
.intro .prompt {
	font-size: clamp(28px, 9vw, 48px);
	font-weight: 900;
	line-height: 1.1;
	animation: introIn 0.5s ease both;
}
@keyframes introIn {
	from {
		transform: translateY(12px) scale(0.96);
		opacity: 0;
	}
	to {
		transform: none;
		opacity: 1;
	}
}
.reduce-motion .intro .prompt {
	animation: none;
}
.intro .starter {
	color: var(--ink-dim);
	font-weight: 800;
}
.intro .starter b {
	color: var(--ink);
}

/* ====================== TOASTS ===================== */

#toasts {
	position: fixed;
	left: 0;
	right: 0;
	bottom: calc(var(--safe-bottom) + 14px);
	z-index: 60;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 8px;
	pointer-events: none;
	padding: 0 12px;
}
.toast {
	pointer-events: auto;
	background: var(--card);
	border: 1px solid var(--line);
	border-left: 4px solid var(--accent);
	padding: 12px 16px;
	border-radius: 12px;
	box-shadow: var(--shadow);
	font-weight: 700;
	max-width: 92vw;
	animation: toastIn 0.2s ease both;
}
.toast.err {
	border-left-color: var(--accent-2);
}
@keyframes toastIn {
	from {
		transform: translateY(10px);
		opacity: 0;
	}
	to {
		transform: none;
		opacity: 1;
	}
}

/* connection banner */
.conn-banner {
	text-align: center;
	font-weight: 800;
	font-size: 13px;
	padding: 8px;
	border-radius: 10px;
	margin-bottom: 8px;
	background: rgba(255, 203, 71, 0.14);
	border: 1px solid var(--warn);
	color: #ffe9b3;
}

.closed-screen {
	flex: 1;
	display: grid;
	place-items: center;
	text-align: center;
	gap: 16px;
}
.closed-screen .big {
	font-size: clamp(26px, 8vw, 40px);
	font-weight: 900;
}

footer.legal {
	text-align: center;
	color: var(--ink-faint);
	font-size: 11px;
	margin-top: 14px;
}
