/**
 * ESL Game Show - Styles
 * Golden gaming style: red frame, light blue/orange side panels, golden center, sparkling line & stars
 */

@import url('https://fonts.googleapis.com/css2?family=Cantora+One&family=Nunito:wght@400;600;700;800&family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400&display=swap');

.esl-game-show-wrap {
	max-width: 100%;
	overflow-x: hidden;
}

.esl-game-show {
	--esl-gold: #d4af37;
	--esl-gold-light: #f4e4bc;
	--esl-gold-dark: #b8860b;
	--esl-blue-header: #2563eb;
	--esl-green-gloss: #22c55e;
	--esl-font-display: 'Playfair Display', Georgia, 'Times New Roman', serif;
	--esl-font-ui: 'Nunito', system-ui, -apple-system, sans-serif;
	--esl-font-questions: 'Cantora One', sans-serif;
}

.esl-game-show {
	position: relative;
	width: 100vw;
	height: 100vh;
	min-height: 400px;
	max-width: 100%;
	overflow: hidden;
	box-sizing: border-box;
	font-family: var(--esl-font-ui);
	background: linear-gradient(180deg, #fde047 0%, #facc15 25%, #eab308 60%, #ca8a04 100%);
	background-image: radial-gradient(circle at center, rgba(255, 255, 255, 0.15) 1.5px, transparent 1.5px), linear-gradient(180deg, #fde047 0%, #facc15 25%, #eab308 60%, #ca8a04 100%);
	background-size: 12px 12px, 100% 100%;
	background-position: 0 0, 0 0;
	border-radius: 24px;
	box-shadow: 0 0 0 6px rgba(0, 0, 0, 0.2), 0 0 10px 3px rgba(234, 179, 8, 0.6), 0 0 20px 6px rgba(202, 138, 4, 0.4), inset 0 0 0 4px rgba(255, 255, 255, 0.12);
}

/* Stars layer - mix of white dots and gold twinkles */
.esl-game-show-stars {
	position: absolute;
	inset: 0;
	pointer-events: none;
	z-index: 0;
	overflow: hidden;
	border-radius: 24px;
}
/* 4-pointed stars - brighter gold */
.esl-star-point {
	position: absolute;
	font-size: 16px;
	line-height: 1;
	color: #FFD700;
	opacity: 0.95;
	animation: esl-star-twinkle 2s ease-in-out infinite alternate;
	text-shadow: 0 0 8px rgba(255, 215, 0, 0.9), 0 0 16px rgba(253, 224, 71, 0.6);
	filter: drop-shadow(0 0 6px rgba(255, 215, 0, 0.9)) drop-shadow(0 0 14px rgba(253, 224, 71, 0.5)) drop-shadow(0 1px 2px rgba(0, 0, 0, 0.2));
	transform: translate(-50%, -50%);
}
.esl-star-point--yellow {
	color: #FFEB3B;
	filter: drop-shadow(0 0 8px rgba(255, 235, 59, 0.95)) drop-shadow(0 0 16px rgba(255, 215, 0, 0.6)) drop-shadow(0 1px 2px rgba(0, 0, 0, 0.2));
}
.esl-star {
	position: absolute;
	width: 4px;
	height: 4px;
	background: #fff;
	border-radius: 50%;
	opacity: 0.95;
	animation: esl-star-twinkle 2s ease-in-out infinite alternate;
	box-shadow: 0 0 8px 2px rgba(255, 255, 255, 0.9), 0 0 16px 4px rgba(255, 255, 255, 0.4);
	transform: translate(-50%, -50%);
}
.esl-star:nth-child(5n) {
	background: #FFD700;
	box-shadow: 0 0 8px 2px rgba(255, 215, 0, 0.9), 0 0 14px 4px rgba(253, 224, 71, 0.5);
}
.esl-star:nth-child(odd) {
	width: 3px;
	height: 3px;
	animation-duration: 2.5s;
}
.esl-star:nth-child(3n) {
	animation-duration: 1.8s;
	opacity: 0.9;
}
@keyframes esl-star-twinkle {
	0% { opacity: 0.5; transform: translate(-50%, -50%) scale(0.8); }
	100% { opacity: 1; transform: translate(-50%, -50%) scale(1.1); }
}
.esl-star-point:nth-child(odd) {
	animation-duration: 2.2s;
}
.esl-star-point:nth-child(3n) {
	animation-duration: 1.7s;
}

/* Decorative layer: geometric shapes (stars, capsules, dots) */
.esl-game-show-deco {
	position: absolute;
	inset: 0;
	pointer-events: none;
	z-index: 0;
	overflow: hidden;
	border-radius: 24px;
}
.esl-deco-shape {
	position: absolute;
	opacity: 0.6;
}
.esl-deco-shape--star {
	width: 14px;
	height: 14px;
	background: radial-gradient(circle at 30% 30%, #FFEB3B, #FFD700 50%, #F9A825);
	clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
	filter: drop-shadow(0 0 6px rgba(255, 215, 0, 0.8)) drop-shadow(0 0 12px rgba(253, 224, 71, 0.5));
}
.esl-deco-shape--capsule {
	width: 8px;
	height: 14px;
	border-radius: 999px;
	background: linear-gradient(135deg, rgba(147, 197, 253, 0.9), rgba(96, 165, 250, 0.8));
	box-shadow: 0 0 6px rgba(147, 197, 253, 0.5);
}
.esl-deco-shape--dot {
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.7);
	box-shadow: 0 0 6px rgba(255, 255, 255, 0.5);
}
.esl-deco-shape--1 { left: 4%; top: 12%; }
.esl-deco-shape--2 { left: 12%; top: 78%; }
.esl-deco-shape--3 { left: 8%; top: 45%; }
.esl-deco-shape--4 { right: 6%; top: 22%; }
.esl-deco-shape--5 { right: 14%; top: 65%; }
.esl-deco-shape--6 { right: 10%; top: 88%; }
.esl-deco-shape--7 { left: 50%; top: 5%; margin-left: -6px; }
.esl-deco-shape--8 { left: 28%; top: 85%; }
.esl-deco-shape--9 { right: 28%; top: 15%; }
.esl-deco-shape--10 { left: 45%; bottom: 8%; }
.esl-deco-shape--2,
.esl-deco-shape--6 { background: linear-gradient(135deg, rgba(253, 186, 116, 0.9), rgba(251, 146, 60, 0.8)); box-shadow: 0 0 6px rgba(253, 186, 116, 0.5); }
.esl-deco-shape--4 { background: radial-gradient(circle at 30% 30%, #fbcfe8, #f472b6); filter: drop-shadow(0 0 4px rgba(244, 114, 182, 0.5)); }

/* Top-corner gold stars */
.esl-deco-corner-star {
	position: absolute;
	top: 5%;
	width: 18px;
	height: 18px;
	background: radial-gradient(circle at 30% 30%, #FFEB3B, #FFD700 50%, #F9A825);
	clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
	opacity: 0.9;
	filter: drop-shadow(0 0 8px rgba(255, 215, 0, 0.9)) drop-shadow(0 0 16px rgba(253, 224, 71, 0.5));
}
.esl-deco-corner-star--left { left: 5%; }
.esl-deco-corner-star--right { right: 5%; left: auto; }

/* Curved wave decoration at bottom */
.esl-game-show-wave {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	height: 60px;
	pointer-events: none;
	z-index: 0;
	background: radial-gradient(ellipse 120% 100% at 50% 100%, rgba(14, 165, 233, 0.25) 0%, transparent 70%);
	border-radius: 24px;
}

.esl-game-show *,
.esl-game-show *::before,
.esl-game-show *::after {
	box-sizing: border-box;
}

/* Fullscreen button — default bottom-right; wide PC moves to top-right (see `@media (min-width: 1025px)`). */
.esl-game-show-fullscreen {
	position: absolute;
	bottom: 12px;
	right: 12px;
	top: auto;
	z-index: 100;
	width: 40px;
	height: 40px;
	padding: 0;
	border: none;
	background: linear-gradient(180deg, #fef08a 0%, #facc15 50%, #eab308 100%);
	color: #1c1917;
	font-size: 20px;
	cursor: pointer;
	border-radius: 12px;
	transition: opacity 0.2s, box-shadow 0.2s;
	border: 2px solid rgba(255, 255, 255, 0.65);
	box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3), 0 0 10px 3px rgba(250, 204, 21, 0.6), 0 0 20px 6px rgba(234, 179, 8, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.75);
}
.esl-game-show-fullscreen:hover {
	background: linear-gradient(180deg, #fef9c3 0%, #fde047 50%, #facc15 100%);
	box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35), 0 0 14px 4px rgba(250, 204, 21, 0.7), 0 0 28px 8px rgba(234, 179, 8, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.85);
}
.esl-game-show.is-fullscreen .esl-game-show-fullscreen {
	bottom: 16px;
	right: 16px;
	top: auto;
}

/* PC / wide viewports only: keep ⛶ clear of board footer; tablets/phones stay bottom-right in mobile-fullscreen.css. */
@media (min-width: 1025px) {
	#esl-game-show .esl-game-show-fullscreen,
	#esl-game-show-fullscreen.esl-game-show-fullscreen {
		top: max(12px, env(safe-area-inset-top, 0px));
		right: max(12px, env(safe-area-inset-right, 0px));
		bottom: auto;
		left: auto;
	}
	.esl-game-show.is-fullscreen .esl-game-show-fullscreen,
	#esl-game-show.is-fullscreen #esl-game-show-fullscreen.esl-game-show-fullscreen {
		top: max(16px, env(safe-area-inset-top, 0px));
		right: max(16px, env(safe-area-inset-right, 0px));
		bottom: auto;
		left: auto;
	}
}

/*
 * PC fullscreen (setup): nudge settings + START + mode row slightly down — modest gap only
 * (no `margin-top: auto`; that pinned the block to the bottom edge).
 */
@media (min-width: 1025px) {
	#esl-game-show.is-fullscreen[data-state="setup"] .esl-game-show-setup__section--start {
		margin-top: clamp(16px, 2.8vh, 40px);
		padding-bottom: clamp(14px, 2.2vh, 28px);
	}
}

/* Exit fullscreen — setup yellow center column only (shown ≤1024px + fullscreen; see mobile-fullscreen.css). */
.esl-game-show-fs-exit {
	display: none;
	position: absolute;
	top: max(8px, env(safe-area-inset-top, 0px));
	right: max(8px, env(safe-area-inset-right, 0px));
	z-index: 40;
	width: 40px;
	height: 40px;
	padding: 0;
	margin: 0;
	border: 2px solid rgba(255, 255, 255, 0.65);
	border-radius: 12px;
	background: linear-gradient(180deg, #fef08a 0%, #facc15 50%, #eab308 100%);
	color: #1c1917;
	font-size: 1.35rem;
	line-height: 1;
	cursor: pointer;
	box-shadow:
		0 5px 15px rgba(0, 0, 0, 0.3),
		0 0 10px 3px rgba(250, 204, 21, 0.55),
		inset 0 1px 0 rgba(255, 255, 255, 0.75);
	align-items: center;
	justify-content: center;
	transition: opacity 0.15s ease, transform 0.12s ease, box-shadow 0.15s ease;
}
.esl-game-show-fs-exit:hover {
	background: linear-gradient(180deg, #fef9c3 0%, #fde047 50%, #facc15 100%);
	box-shadow:
		0 6px 18px rgba(0, 0, 0, 0.35),
		0 0 14px 4px rgba(250, 204, 21, 0.65),
		inset 0 1px 0 rgba(255, 255, 255, 0.85);
}
.esl-game-show-fs-exit:focus-visible {
	outline: 3px solid rgba(124, 58, 237, 0.55);
	outline-offset: 2px;
}
/* In-panel ✕ visibility (setup only): see `game-show-mobile-fullscreen.css` (≤1024px + fullscreen). */

/*
 * Fullscreen first-run prompt — mounted to `document.body` via JS so theme / overflow cannot clip it.
 * Open/close toggles `.is-open` + inline display (no `hidden` attribute — avoids UA/CSS conflicts).
 */
.esl-gamzam-fs-prompt {
	display: none;
	position: fixed;
	inset: 0;
	z-index: 100010;
	box-sizing: border-box;
	align-items: center;
	justify-content: center;
	padding: max(12px, env(safe-area-inset-top, 0px)) max(12px, env(safe-area-inset-right, 0px))
		max(12px, env(safe-area-inset-bottom, 0px)) max(12px, env(safe-area-inset-left, 0px));
	width: 100vw;
	max-width: 100vw;
	min-height: 100vh;
	min-height: 100dvh;
}
.esl-gamzam-fs-prompt.is-open {
	display: flex !important;
}
.esl-gamzam-fs-prompt__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.45);
	pointer-events: auto;
	cursor: pointer;
}
.esl-gamzam-fs-prompt__panel {
	position: relative;
	z-index: 1;
	width: min(380px, 94vw);
	padding: 28px 22px 22px;
	border-radius: 20px;
	background-image: radial-gradient(circle at center, rgba(255, 255, 255, 0.22) 1.5px, transparent 1.5px), linear-gradient(180deg, #fde047 0%, #facc15 35%, #eab308 100%);
	background-size: 11px 11px, 100% 100%;
	border: 3px solid rgba(255, 255, 255, 0.7);
	box-shadow:
		0 10px 36px rgba(0, 0, 0, 0.3),
		0 0 22px 8px rgba(250, 204, 21, 0.55),
		inset 0 2px 0 rgba(255, 255, 255, 0.55);
	animation: esl-gamzam-fs-prompt-in 0.18s ease-out both;
	pointer-events: auto;
	cursor: default;
}
@keyframes esl-gamzam-fs-prompt-in {
	from {
		opacity: 0;
		transform: scale(0.96);
	}
	to {
		opacity: 1;
		transform: scale(1);
	}
}
@media (prefers-reduced-motion: reduce) {
	.esl-gamzam-fs-prompt__panel {
		animation: none;
	}
}
.esl-gamzam-fs-prompt__close {
	position: absolute;
	top: 10px;
	right: 10px;
	width: 34px;
	height: 34px;
	padding: 0;
	border-radius: 50%;
	border: 2px solid rgba(255, 255, 255, 0.9);
	background: linear-gradient(180deg, #fecaca 0%, #ef4444 48%, #b91c1c 100%);
	color: #fff;
	font-size: 22px;
	line-height: 1;
	font-weight: 700;
	cursor: pointer;
	box-shadow:
		0 4px 12px rgba(0, 0, 0, 0.28),
		0 0 12px rgba(239, 68, 68, 0.55),
		inset 0 1px 0 rgba(255, 255, 255, 0.45);
	transition: transform 0.1s ease, box-shadow 0.15s ease;
}
.esl-gamzam-fs-prompt__close:hover {
	transform: scale(1.06);
	box-shadow:
		0 5px 16px rgba(0, 0, 0, 0.32),
		0 0 16px rgba(239, 68, 68, 0.65),
		inset 0 1px 0 rgba(255, 255, 255, 0.55);
}
.esl-gamzam-fs-prompt__close:active {
	transform: scale(0.96);
}
.esl-gamzam-fs-prompt__title {
	margin: 0 0 18px;
	padding: 0 8px;
	font-family: var(--esl-font-ui);
	font-weight: 800;
	font-size: 1.05rem;
	line-height: 1.35;
	color: #1c1917;
	text-align: center;
	text-shadow: 0 1px 0 rgba(255, 255, 255, 0.45);
}
.esl-gamzam-fs-prompt__cta.esl-game-show-btn {
	width: 100%;
	padding: 14px 20px;
	font-size: 1rem;
	font-weight: 800;
	border-radius: 999px;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	box-shadow:
		0 6px 18px rgba(0, 0, 0, 0.32),
		0 0 12px 4px rgba(34, 197, 94, 0.85),
		0 0 24px 8px rgba(22, 163, 74, 0.45),
		inset 0 2px 0 rgba(255, 255, 255, 0.5);
}
.esl-gamzam-fs-prompt__cta.esl-game-show-btn:hover {
	box-shadow:
		0 8px 22px rgba(0, 0, 0, 0.36),
		0 0 16px 5px rgba(34, 197, 94, 0.95),
		0 0 28px 10px rgba(22, 163, 74, 0.55),
		inset 0 2px 0 rgba(255, 255, 255, 0.6);
}

/* Container when fullscreen - fills entire screen (PPT-style) */
.esl-game-show.is-fullscreen,
.esl-game-show:fullscreen {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	min-width: 100%;
	min-height: 100%;
	z-index: 99999;
}
.esl-game-show:-webkit-full-screen,
.esl-game-show:-moz-full-screen,
.esl-game-show:-ms-fullscreen {
	width: 100%;
	height: 100%;
	min-width: 100%;
	min-height: 100%;
}

/* Screens */
.esl-game-show-screen {
	display: none;
	width: 100%;
	height: 100%;
	padding: 20px;
	position: relative;
	z-index: 1;
}
.esl-game-show-screen--active {
	display: flex;
	flex-direction: column;
	align-items: stretch;
	justify-content: stretch;
}

/* Fullscreen: keep vertical stage padding; 5px horizontal gutter at viewport edge. */
.esl-game-show.is-fullscreen .esl-game-show-screen--active {
	padding: 20px 5px;
}

/* Three-column layout - no green tint; transparent so parent yellow shows through */
.esl-game-show-layout {
	display: grid;
	grid-template-columns: 1fr minmax(280px, 2fr) 1fr;
	gap: 12px;
	flex: 1;
	min-height: 0;
	overflow: hidden;
	background: transparent !important;
}

/* Panels - Arcade scoreboard style (side) + game console (center) */
.esl-game-show-panel {
	display: flex;
	flex-direction: column;
	min-height: 0;
	border-radius: 16px;
	overflow: hidden;
	box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
	position: relative;
}
/* Side panels: arcade scoreboards - same color and formula for both */
/* Both use the same blue gradient so left and right are visually identical. */
.esl-game-show-panel--team1,
.esl-game-show-panel--team2 {
	background: linear-gradient(180deg, #49B3E6 0%, #1F7CB5 50%, #0F4E86 100%);
	border: 2px solid rgba(255, 255, 255, 0.5);
	border-radius: 28px;
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35), 0 0 12px 4px rgba(31, 124, 181, 0.6), 0 0 28px 8px rgba(15, 78, 134, 0.4), inset 1px 0 0 rgba(255, 255, 255, 0.4), inset -1px 0 0 rgba(0, 0, 0, 0.1);
}
/* Force no green shadow when panel has turn (overrides theme or other CSS) */
.esl-game-show-panel--team1.has-turn,
.esl-game-show-panel--team2.has-turn {
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35), 0 0 12px 4px rgba(31, 124, 181, 0.6), 0 0 28px 8px rgba(15, 78, 134, 0.4), inset 1px 0 0 rgba(255, 255, 255, 0.4), inset -1px 0 0 rgba(0, 0, 0, 0.1) !important;
	filter: none !important;
}
.esl-game-show-panel--team1::before,
.esl-game-show-panel--team2::before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 55%;
	pointer-events: none;
	border-radius: 28px 28px 50% 50% / 28px 28px 30% 30%;
	/* Curved highlight/reflection line inside scoreboards */
	background: linear-gradient(180deg, rgba(255, 255, 255, 0.5) 0%, rgba(255, 255, 255, 0.18) 40%, transparent 70%);
	z-index: 0;
}
.esl-game-show-panel--team1::after,
.esl-game-show-panel--team2::after {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 6px;
	pointer-events: none;
	border-radius: 28px 28px 0 0;
	background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.35) 50%, transparent 100%);
	z-index: 0;
}
/* Center panel: game console - stronger gradient and shadow */
.esl-game-show-panel--center {
	background: linear-gradient(180deg, #fef08a 0%, #fde047 15%, #facc15 40%, #eab308 70%, #b45309 100%);
	border: 2px solid rgba(255, 255, 255, 0.65);
	border-radius: 20px;
	box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4), 0 0 16px 4px rgba(250, 204, 21, 0.5), 0 0 32px 10px rgba(234, 179, 8, 0.35), inset 0 2px 0 rgba(255, 255, 255, 0.85), inset 0 -3px 12px rgba(0, 0, 0, 0.12);
}

.esl-game-show-panel__header {
	padding: 12px 16px;
	font-size: clamp(1.05rem, 2.2vw, 1.35rem);
	font-weight: 700;
	text-align: center;
	flex-shrink: 0;
	position: relative;
	z-index: 1;
	font-family: var(--esl-font-display);
	letter-spacing: 0.04em;
}
.esl-game-show-panel--team1 .esl-game-show-panel__header,
.esl-game-show-panel--team2 .esl-game-show-panel__header {
	background: linear-gradient(180deg, rgba(255, 255, 255, 0.22) 0%, transparent 100%);
	color: #fff;
	font-family: var(--esl-font-display) !important;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-shadow: 0 0 14px rgba(255, 255, 255, 0.95), 0 0 28px rgba(255, 255, 255, 0.5), 0 0 42px rgba(255, 255, 255, 0.3), 0 2px 4px rgba(0, 0, 0, 0.3);
	box-shadow: none;
	border-bottom: 1px solid rgba(255, 255, 255, 0.3);
}
.esl-panel-header-star {
	display: inline-block;
	margin: 0 8px;
	font-size: 1.05em;
	color: #FFD700;
	text-shadow: 0 0 8px rgba(255, 215, 0, 0.9), 0 0 16px rgba(255, 235, 59, 0.7);
	filter: drop-shadow(0 0 6px rgba(255, 215, 0, 0.9)) drop-shadow(0 0 12px rgba(253, 224, 71, 0.6)) drop-shadow(0 1px 2px rgba(0, 0, 0, 0.3));
	vertical-align: middle;
}
.esl-game-show-panel--team1.has-turn .esl-game-show-panel__header,
.esl-game-show-panel--team2.has-turn .esl-game-show-panel__header {
	/* Lighter blue highlight for "your turn" - no green, so no green shadow behind panels */
	background: linear-gradient(180deg, #6bc4f0 0%, #49B3E6 50%, #1F7CB5 100%);
	color: #fff;
	box-shadow: 0 2px 12px rgba(0, 0, 0, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.35) !important;
	filter: none !important;
	border-bottom-color: transparent;
}
.esl-game-show-panel__header .esl-panel-header-hand {
	display: none;
	margin-right: 6px;
	font-size: 1.1em;
	filter: drop-shadow(0 0 2px rgba(0, 0, 0, 0.3)) sepia(0.4) saturate(2.5) hue-rotate(5deg) brightness(1.1);
}
.esl-game-show-panel__header .esl-panel-header-name {
	display: inline-block;
	font-family: inherit;
	font-weight: inherit;
	letter-spacing: inherit;
}
.esl-game-show-panel--team1.has-turn .esl-game-show-panel__header .esl-panel-header-hand,
.esl-game-show-panel--team2.has-turn .esl-game-show-panel__header .esl-panel-header-hand {
	display: inline-block;
	animation: esl-hand-pulse 1.5s ease-in-out infinite;
}
@keyframes esl-hand-pulse {
	0%, 100% { opacity: 1; transform: scale(1); }
	50% { opacity: 0.9; transform: scale(1.05); }
}
.esl-game-show-panel--center .esl-game-show-panel__header,
.esl-game-show-panel--game .esl-game-show-panel__header {
	background: transparent;
	color: #fff;
	border-bottom: none;
	box-shadow: none;
}

.esl-game-show-panel__score {
	padding: 16px;
	text-align: center;
	font-size: clamp(4rem, 12vw, 8rem);
	font-weight: 800;
	color: #1c1917;
	font-family: var(--esl-font-display);
	flex-shrink: 0;
	min-width: 0;
	overflow: hidden;
	display: flex;
	align-items: center;
	justify-content: center;
	position: relative;
	z-index: 1;
}
/* Score circle (team panels): same glow intensity on both sides */
.esl-panel__score-circle {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	position: relative;
	width: min(80%, 180px);
	aspect-ratio: 1;
	border-radius: 50%;
	border: 3px dashed rgba(255, 255, 255, 0.65);
	background: linear-gradient(180deg, rgba(255, 255, 255, 0.25) 0%, rgba(255, 255, 255, 0.06) 100%);
	/* Unified outer glow intensity - same on both panels */
	box-shadow: 0 0 24px 6px rgba(255, 255, 255, 0.45), inset 0 0 28px 8px rgba(255, 255, 255, 0.2);
}
.esl-game-show-panel--team1 .esl-panel__score-circle,
.esl-game-show-panel--team2 .esl-panel__score-circle {
	border-color: rgba(255, 255, 255, 0.7);
	box-shadow: 0 0 24px 6px rgba(255, 255, 255, 0.45), 0 0 48px 12px rgba(31, 124, 181, 0.35), inset 0 0 32px 10px rgba(255, 255, 255, 0.22), inset 0 0 60px 16px rgba(73, 179, 230, 0.2);
}
.esl-panel__score-circle .esl-game-show-score-value {
	display: flex;
	align-items: center;
	justify-content: center;
	line-height: 1 !important;
	position: absolute;
	inset: 0;
	transform: translateY(-11%);
	margin: 0;
	padding: 0;
	white-space: nowrap;
	width: 100%;
	height: 100%;
}
/* Scale down font as digit count increases so score stays in container */
.esl-game-show-panel__score[data-digits="3"] { font-size: clamp(3rem, 9vw, 6rem); }
.esl-game-show-panel__score[data-digits="4"] { font-size: clamp(2.25rem, 7vw, 4.5rem); }
.esl-game-show-panel__score[data-digits="5"] { font-size: clamp(1.75rem, 5.5vw, 3.5rem); }
.esl-game-show-panel__score[data-digits="6"],
.esl-game-show-panel__score[data-digits="7"] { font-size: clamp(1.25rem, 4vw, 2.5rem); }
/* Score text: clean white glow + depth, no blue/cyan layers (avoids greenish tint) */
.esl-game-show-panel--team1 .esl-game-show-panel__score,
.esl-game-show-panel--team2 .esl-game-show-panel__score {
	color: #fff;
	text-shadow: 0 0 10px rgba(255, 255, 255, 0.9), 0 2px 6px rgba(0, 0, 0, 0.25);
	animation: esl-score-glow 3s ease-in-out infinite;
}
.esl-game-show-panel--team2 .esl-game-show-panel__score {
	animation-delay: 0.5s;
}
@keyframes esl-score-glow {
	0%, 100% { filter: brightness(1); }
	50% { filter: brightness(1.08); }
}

.esl-game-show-panel__players {
	flex: 1;
	min-height: 80px;
	padding: 16px;
	overflow-y: auto;
	color: rgba(28, 25, 23, 0.85);
	font-size: clamp(0.875rem, 1.5vw, 1rem);
	position: relative;
	z-index: 1;
}
.esl-game-show-panel--team1 .esl-game-show-panel__players,
.esl-game-show-panel--team2 .esl-game-show-panel__players {
	color: rgba(28, 25, 23, 0.9);
}
/* Subtle decorative shapes on arcade scoreboards */
.esl-panel-deco {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	height: 28%;
	pointer-events: none;
	z-index: 0;
}
.esl-panel-deco__shape {
	position: absolute;
	opacity: 0.35;
}
.esl-panel-deco__shape--star {
	width: 10px;
	height: 10px;
	background: #fef08a;
	clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
	bottom: 15%;
	left: 12%;
}
.esl-panel-deco__shape--capsule {
	width: 6px;
	height: 12px;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.5);
	bottom: 22%;
	right: 15%;
}
.esl-panel-deco__shape--dot {
	width: 5px;
	height: 5px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.5);
	bottom: 18%;
	left: 50%;
	margin-left: -2px;
}

/* Center panel - Setup (scrolls here on desktop grid; mobile ≤1024 overrides to page scroll) */
.esl-game-show-panel.esl-game-show-panel--center {
	overflow-x: hidden;
	overflow-y: auto;
	-webkit-overflow-scrolling: touch;
	overscroll-behavior: contain;
	display: flex;
	flex-direction: column;
	gap: 0;
	position: relative;
	padding-left: 0;
	padding-right: 0;
	box-sizing: border-box;
}

/*
 * Fullscreen + setup (all viewports): never use an inner scroll column on the yellow center —
 * same rule as narrow breakpoints in game-show-mobile-fullscreen.css; JS scales `.esl-game-show-center-scale-inner`.
 */
#esl-game-show.is-fullscreen[data-state="setup"] .esl-game-show-panel.esl-game-show-panel--center {
	overflow-x: hidden !important;
	overflow-y: hidden !important;
	scrollbar-width: none !important;
	-ms-overflow-style: none !important;
}
#esl-game-show.is-fullscreen[data-state="setup"] .esl-game-show-panel.esl-game-show-panel--center::-webkit-scrollbar {
	width: 0 !important;
	height: 0 !important;
	display: none !important;
}

/* Fills yellow column; wrap clips overflow. Inner may be >100% wide before scale() — center that canvas horizontally. */
.esl-game-show-panel--center .esl-game-show-center-scale-wrap {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: flex-start;
	flex: 1 1 auto;
	width: 100%;
	max-width: 100%;
	min-width: 0;
	min-height: 0;
	box-sizing: border-box;
}
.esl-game-show-panel--center .esl-game-show-center-scale-inner {
	align-self: center;
	width: 100%;
	min-width: 0;
	max-width: none;
	box-sizing: border-box;
}
.esl-game-show-panel--center .esl-game-show-banner {
	width: 100%;
	max-width: 100%;
	box-sizing: border-box;
}

/* Settings gear + START GAME: centered row; START max-width reserves narrow strip (lower = wider button). */
.esl-game-show-start-actions {
	--esl-start-actions-gap: 12px;
	--esl-start-narrow-px: 50px;
	--esl-setup-settings-btn-w: 42px;
	display: flex;
	flex-direction: row;
	align-items: center;
	justify-content: center;
	gap: var(--esl-start-actions-gap);
	width: 100%;
	min-width: 0;
}
/* START row only: 3px less side inset vs setup column (button keeps .esl-game-show-btn--large padding). */
.esl-game-show-setup__section--start .esl-game-show-start-actions {
	margin-inline: -3px;
	width: calc(100% + 6px);
	max-width: calc(100% + 6px);
	box-sizing: border-box;
}
.esl-game-show-start-actions .esl-setup-settings-btn {
	flex: 0 0 auto;
	margin-inline-end: 5px;
}
.esl-game-show-start-actions .esl-game-show-btn--start,
.esl-game-show-start-actions #esl-btn-start {
	flex: 0 1 auto;
	min-width: 0;
	width: auto;
	max-width: calc(
		100% - var(--esl-setup-settings-btn-w) - var(--esl-start-actions-gap) - 5px - var(--esl-start-narrow-px)
	);
}
/*
 * Very narrow viewports: keep settings + START on one row (avoids a lone gear row that long topic
 * labels can overlap). Shrink START via max-width reserve + slightly smaller type/padding.
 */
@media (max-width: 420px) {
	.esl-game-show-start-actions {
		flex-direction: row;
		flex-wrap: nowrap;
		align-items: center;
		justify-content: center;
		column-gap: clamp(6px, 2.5vw, 10px);
		row-gap: 0;
		--esl-start-actions-gap: clamp(6px, 2.5vw, 10px);
		/* Higher value => narrower START (see max-width calc above). */
		--esl-start-narrow-px: min(78px, 20vw);
	}
	.esl-game-show-start-actions .esl-setup-settings-btn {
		align-self: center;
		margin-inline-end: 0;
		flex-shrink: 0;
	}
	.esl-game-show-start-actions .esl-game-show-btn--start,
	.esl-game-show-start-actions #esl-btn-start {
		flex: 1 1 auto;
		min-width: 0;
		width: auto;
		max-width: calc(
			100% - var(--esl-setup-settings-btn-w) - var(--esl-start-actions-gap) - 5px - var(--esl-start-narrow-px)
		);
		font-size: clamp(0.68rem, 3.4vw, 0.82rem);
		padding-left: clamp(6px, 2vw, 12px);
		padding-right: clamp(6px, 2vw, 12px);
		line-height: 1.15;
	}
}
.esl-setup-settings-btn {
	width: 42px;
	height: 42px;
	margin: 0;
	flex-shrink: 0;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0;
	border: 2px solid rgba(255, 255, 255, 0.65);
	border-radius: 14px;
	cursor: pointer;
	color: #1c1917;
	background: linear-gradient(180deg, #fef08a 0%, #fde047 45%, #facc15 100%);
	box-shadow: 0 8px 22px rgba(0, 0, 0, 0.28), 0 0 10px 3px rgba(250, 204, 21, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.75);
	transition: transform 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease;
}
.esl-setup-settings-btn:hover {
	transform: translateY(-1px);
	box-shadow: 0 10px 26px rgba(0, 0, 0, 0.32), 0 0 12px 4px rgba(250, 204, 21, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.82);
}
.esl-setup-settings-btn:active {
	transform: translateY(0);
	opacity: 0.95;
}
.esl-setup-settings-btn:focus-visible {
	outline: 3px solid rgba(124, 58, 237, 0.55);
	outline-offset: 3px;
}
.esl-setup-settings-btn__icon {
	filter: drop-shadow(0 1px 0 rgba(255, 255, 255, 0.55));
}

/* Setup settings modal — same yellow→orange energy as center championship panel */
.esl-setup-settings-modal .esl-game-show-modal__front {
	background: linear-gradient(180deg, #fef08a 0%, #fde047 15%, #facc15 40%, #eab308 70%, #b45309 100%);
	border: 2px solid rgba(255, 255, 255, 0.65);
	box-shadow:
		0 12px 40px rgba(0, 0, 0, 0.4),
		0 0 16px 4px rgba(250, 204, 21, 0.45),
		inset 0 2px 0 rgba(255, 255, 255, 0.85),
		inset 0 -3px 12px rgba(0, 0, 0, 0.12);
}
.esl-setup-settings-modal .esl-game-show-modal__wrapper {
	max-width: min(880px, calc(100vw - 32px));
	width: calc(100% - 24px);
}
.esl-setup-settings-modal .esl-game-show-modal__front-inner {
	min-height: 0;
	max-height: min(92vh, 900px);
	max-height: min(92dvh, 900px);
	padding: 22px 22px 18px;
	gap: 12px;
	display: flex;
	flex-direction: column;
	align-items: stretch;
	overflow: hidden;
}
.esl-setup-settings-modal__inner {
	position: relative;
	padding-top: 28px;
	gap: 16px;
}
.esl-setup-settings-modal #esl-setup-settings-title {
	flex-shrink: 0;
	font-family: var(--esl-font-display);
	font-weight: 900;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	font-size: clamp(1.15rem, 2.4vw, 1.45rem);
	color: #1c1917;
	text-shadow: 0 1px 0 rgba(255, 255, 255, 0.45);
}
.esl-setup-settings-modal__close {
	position: absolute;
	top: 10px;
	right: 12px;
	width: 34px;
	height: 34px;
	border-radius: 12px;
	border: 2px solid rgba(255, 255, 255, 0.55);
	background: rgba(0, 0, 0, 0.12);
	color: #fff;
	font-size: 22px;
	line-height: 1;
	cursor: pointer;
}
.esl-setup-settings-modal__close:hover {
	background: rgba(0, 0, 0, 0.18);
}
.esl-setup-settings-modal__body {
	width: 100%;
	display: flex;
	flex-direction: column;
	gap: 0;
	flex: 1 1 auto;
	min-height: 0;
	overflow-y: auto;
	-webkit-overflow-scrolling: touch;
	overscroll-behavior: contain;
	/* Space between content and the vertical scrollbar */
	padding-right: 5px;
	box-sizing: border-box;
}

/* Yellow/orange scrollbars — settings modal, championship center (setup), board grid (play) */
.esl-setup-settings-modal__body,
.esl-game-show-panel--center,
.esl-game-show-board-grid {
	scrollbar-width: thin;
	scrollbar-color: #f59e0b #fef3c7;
}
.esl-setup-settings-modal__body::-webkit-scrollbar,
.esl-game-show-panel--center::-webkit-scrollbar,
.esl-game-show-board-grid::-webkit-scrollbar {
	width: 11px;
}
.esl-setup-settings-modal__body::-webkit-scrollbar-track,
.esl-game-show-panel--center::-webkit-scrollbar-track,
.esl-game-show-board-grid::-webkit-scrollbar-track {
	background: linear-gradient(180deg, #fef9c3 0%, #fde68a 55%, #fcd34d 100%);
	border-radius: 999px;
	margin: 6px 0;
	box-shadow: inset 0 0 0 1px rgba(180, 83, 9, 0.12);
}
.esl-setup-settings-modal__body::-webkit-scrollbar-thumb,
.esl-game-show-panel--center::-webkit-scrollbar-thumb,
.esl-game-show-board-grid::-webkit-scrollbar-thumb {
	background: linear-gradient(180deg, #facc15 0%, #f59e0b 45%, #ea580c 100%);
	border-radius: 999px;
	border: 2px solid rgba(255, 255, 255, 0.55);
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}
.esl-setup-settings-modal__body::-webkit-scrollbar-thumb:hover,
.esl-game-show-panel--center::-webkit-scrollbar-thumb:hover,
.esl-game-show-board-grid::-webkit-scrollbar-thumb:hover {
	background: linear-gradient(180deg, #fde047 0%, #fbbf24 40%, #f97316 100%);
}
.esl-setup-settings-modal__body::-webkit-scrollbar-corner,
.esl-game-show-panel--center::-webkit-scrollbar-corner,
.esl-game-show-board-grid::-webkit-scrollbar-corner {
	background: transparent;
}
.esl-setup-settings-modal__grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	gap: 16px 20px;
	align-items: start;
	width: 100%;
}
.esl-setup-settings-modal__col {
	display: flex;
	flex-direction: column;
	gap: 10px;
	min-width: 0;
}
.esl-setup-settings-modal__col--mystery {
	/* Keep top aligned with left column */
	padding-top: 0;
}
.esl-setup-settings-modal__field--subject .esl-game-show-select,
.esl-setup-settings-modal__field--subject .esl-custom-select {
	width: 100%;
	max-width: 100%;
}
.esl-setup-settings-modal__field--subject .esl-custom-select__trigger {
	width: 100%;
	box-sizing: border-box;
	text-align: left;
}
.esl-setup-settings-modal__col--mystery .esl-setup-settings-modal__subhead {
	margin-bottom: 2px;
}
.esl-setup-settings-modal__mystery-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 8px;
	width: 100%;
}
.esl-setup-settings-modal__footer {
	width: 100%;
	margin-top: 14px;
	padding-top: 12px;
	border-top: 1px solid rgba(0, 0, 0, 0.1);
	display: flex;
	flex-direction: column;
	gap: 8px;
	align-items: stretch;
}
.esl-setup-settings-modal__footer .esl-setup-settings-modal__hint {
	margin: 0;
}
.esl-setup-settings-modal__actions {
	flex-shrink: 0;
}
@media (max-width: 700px) {
	.esl-setup-settings-modal__grid {
		grid-template-columns: 1fr;
	}
}
@media (max-width: 480px) {
	.esl-setup-settings-modal__mystery-grid {
		grid-template-columns: 1fr;
	}
}
.esl-setup-settings-modal__field {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 10px 14px;
	width: 100%;
	padding: 12px 14px;
	border-radius: 16px;
	border: 2px solid rgba(255, 255, 255, 0.55);
	background: rgba(255, 255, 255, 0.35);
	box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.65);
}
.esl-setup-settings-modal__field-label {
	font-weight: 900;
	font-size: 0.82rem;
	letter-spacing: 0.04em;
	color: #1c1917;
	font-family: var(--esl-font-display);
	max-width: 46%;
}
.esl-setup-settings-modal__field--sound {
	border-color: rgba(239, 68, 68, 0.55);
	background: linear-gradient(135deg, rgba(254, 226, 226, 0.9) 0%, rgba(255, 255, 255, 0.45) 100%);
}
.esl-setup-settings-modal__field--fun {
	border-color: rgba(124, 58, 237, 0.55);
	background: linear-gradient(135deg, rgba(237, 233, 254, 0.95) 0%, rgba(255, 255, 255, 0.5) 100%);
}
.esl-setup-settings-modal__field--mystery {
	border-color: rgba(124, 58, 237, 0.35);
	background:
		radial-gradient(circle at 15% 20%, rgba(124, 58, 237, 0.18), transparent 45%),
		radial-gradient(circle at 85% 30%, rgba(239, 68, 68, 0.14), transparent 50%),
		radial-gradient(circle at 70% 85%, rgba(22, 163, 74, 0.12), transparent 55%),
		linear-gradient(135deg, rgba(255, 255, 255, 0.55) 0%, rgba(255, 255, 255, 0.28) 100%);
}
.esl-setup-settings-modal__field--category-lock {
	border-color: rgba(22, 163, 74, 0.45);
	background: linear-gradient(135deg, rgba(220, 252, 231, 0.9) 0%, rgba(255, 255, 255, 0.45) 100%);
}
.esl-setup-settings-modal__field--badge {
	border-color: rgba(234, 88, 12, 0.4);
	background: linear-gradient(135deg, rgba(255, 247, 237, 0.95) 0%, rgba(254, 215, 170, 0.4) 100%);
}
.esl-setup-settings-modal__field--game-mode {
	border-color: rgba(234, 88, 12, 0.45);
	background: linear-gradient(135deg, rgba(255, 247, 237, 0.95) 0%, rgba(254, 215, 170, 0.55) 100%);
}
.esl-setup-settings-modal__field--picture-hints {
	border-color: rgba(20, 184, 166, 0.45);
	background: linear-gradient(135deg, rgba(236, 253, 245, 0.95) 0%, rgba(204, 251, 241, 0.5) 100%);
}
.esl-setup-settings-modal__field--question-countdown {
	flex-direction: row;
	flex-wrap: nowrap;
	align-items: center;
	align-content: center;
	border-color: rgba(59, 130, 246, 0.45);
	background: linear-gradient(135deg, rgba(239, 246, 255, 0.95) 0%, rgba(219, 234, 254, 0.55) 100%);
	min-width: 0;
	/* If the row cannot fit, scroll horizontally instead of stacking the toggle */
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
}
.esl-setup-settings-modal__field-top {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 10px 14px;
	width: 100%;
}
.esl-setup-settings-modal__field-top .esl-setup-settings-modal__field-label {
	max-width: none;
	flex: 1 1 auto;
	min-width: 0;
}
/* One row: title | Seconds + input | Off/On — grid avoids flex-wrap pushing toggle to next line */
.esl-setup-settings-modal__field-top--question-countdown {
	display: grid;
	grid-template-columns: max-content auto auto;
	align-items: center;
	column-gap: 10px;
	row-gap: 0;
	width: max-content;
	min-width: 100%;
	max-width: none;
	box-sizing: border-box;
}
.esl-setup-settings-modal__field-top--question-countdown .esl-setup-settings-modal__field-label {
	flex: unset;
	min-width: 0;
	max-width: none;
	line-height: 1.2;
}
.esl-setup-settings-modal__countdown-inline {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	flex: unset;
	white-space: nowrap;
}
.esl-setup-settings-modal__field-top--question-countdown .esl-game-show-mode-toggle {
	flex: unset;
	white-space: nowrap;
}
.esl-setup-settings-modal__field-top--question-countdown .esl-game-show-mode-toggle .esl-mode-option {
	padding: 6px 8px;
	font-size: 0.72rem;
}
.esl-setup-settings-modal__countdown-seconds-label {
	font-weight: 800;
	font-size: 0.78rem;
	letter-spacing: 0.04em;
	color: #1e3a8a;
	font-family: var(--esl-font-ui);
	white-space: nowrap;
}
.esl-setup-settings-modal__countdown-seconds-input {
	width: 4.5rem;
	padding: 8px 10px;
	border-radius: 12px;
	border: 2px solid rgba(37, 99, 235, 0.35);
	background: rgba(255, 255, 255, 0.85);
	font-size: 1rem;
	font-weight: 800;
	font-family: var(--esl-font-ui);
	color: #1e1b4b;
	text-align: center;
	box-sizing: border-box;
}
/* Same visual height + pill radius as the Off/On control beside it */
.esl-setup-settings-modal__field-top--question-countdown .esl-setup-settings-modal__countdown-seconds-input {
	width: 3.5rem;
	min-width: 3.5rem;
	height: 2.35rem;
	min-height: 2.35rem;
	padding: 0 10px;
	border-radius: 999px;
	font-size: 0.72rem;
	font-weight: 800;
	line-height: 1;
	-moz-appearance: textfield;
	appearance: textfield;
}
.esl-setup-settings-modal__field-top--question-countdown .esl-setup-settings-modal__countdown-seconds-input::-webkit-outer-spin-button,
.esl-setup-settings-modal__field-top--question-countdown .esl-setup-settings-modal__countdown-seconds-input::-webkit-inner-spin-button {
	-webkit-appearance: none;
	margin: 0;
}
.esl-setup-settings-modal__countdown-seconds-input:focus {
	outline: 3px solid rgba(37, 99, 235, 0.35);
	outline-offset: 2px;
}
.esl-setup-settings-modal__field--question-countdown.esl-access-denied .esl-setup-settings-modal__countdown-seconds-input {
	opacity: 0.55;
	cursor: not-allowed;
}
.esl-setup-settings-modal__field.esl-access-denied {
	opacity: 0.52;
	filter: grayscale(0.12);
}
.esl-setup-settings-modal .esl-game-show-mode-toggle .esl-mode-option:disabled {
	opacity: 0.45;
	cursor: not-allowed;
}
.esl-setup-settings-modal .esl-setting-mystery-type:disabled {
	opacity: 0.45;
	cursor: not-allowed;
}
.esl-setup-settings-modal .esl-game-show-mode-toggle {
	box-sizing: border-box;
	border-radius: 999px;
	border: 2px solid rgba(0, 0, 0, 0.12);
	background: rgba(0, 0, 0, 0.18);
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2);
}
.esl-setup-settings-modal .esl-game-show-mode-toggle .esl-mode-option {
	padding: 7px 10px;
	font-size: 0.68rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	font-family: var(--esl-font-ui);
}
.esl-setup-settings-modal .esl-game-show-mode-toggle--sfx .esl-mode-option.is-active {
	background: linear-gradient(135deg, #ef4444, #dc2626);
	box-shadow: 0 2px 10px rgba(220, 38, 38, 0.45);
}
.esl-setup-settings-modal .esl-game-show-mode-toggle--fun .esl-mode-option.is-active {
	background: linear-gradient(135deg, #7c3aed, #6d28d9);
	box-shadow: 0 2px 10px rgba(109, 40, 217, 0.45);
}
.esl-setup-settings-modal .esl-game-show-mode-toggle--lock .esl-mode-option.is-active {
	background: linear-gradient(135deg, #22c55e, #16a34a);
	box-shadow: 0 2px 10px rgba(22, 163, 74, 0.45);
}
.esl-setup-settings-modal .esl-game-show-mode-toggle--badge .esl-mode-option.is-active {
	background: linear-gradient(135deg, #f97316, #ea580c);
	box-shadow: 0 2px 10px rgba(234, 88, 12, 0.45);
}
.esl-setup-settings-modal .esl-game-show-mode-toggle--game .esl-mode-option.is-active {
	background: linear-gradient(135deg, #f97316, #ea580c);
	box-shadow: 0 2px 10px rgba(234, 88, 12, 0.45);
}
.esl-setup-settings-modal .esl-game-show-mode-toggle--picture-hints .esl-mode-option.is-active {
	background: linear-gradient(135deg, #14b8a6, #0d9488);
	box-shadow: 0 2px 10px rgba(13, 148, 136, 0.45);
}
.esl-setup-settings-modal .esl-game-show-mode-toggle--question-countdown .esl-mode-option.is-active {
	background: linear-gradient(135deg, #3b82f6, #2563eb);
	box-shadow: 0 2px 10px rgba(37, 99, 235, 0.45);
}
.esl-setup-settings-modal .esl-game-show-mode-toggle--picture-hints .esl-mode-option:disabled {
	opacity: 0.5;
	cursor: not-allowed;
}
.esl-setup-settings-modal .esl-game-show-mode-toggle--question-countdown .esl-mode-option:disabled {
	opacity: 0.5;
	cursor: not-allowed;
}
.esl-setup-settings-modal__divider {
	height: 1px;
	width: 100%;
	background: rgba(255, 255, 255, 0.35);
	box-shadow: 0 1px 0 rgba(0, 0, 0, 0.12);
	margin: 2px 0;
}
.esl-setup-settings-modal__divider--spaced {
	margin-top: 6px;
	margin-bottom: 2px;
}
.esl-setup-settings-modal__subhead {
	font-family: var(--esl-font-display);
	font-weight: 900;
	letter-spacing: 0.6px;
	text-transform: uppercase;
	font-size: 0.85rem;
	color: #1c1917;
	text-shadow: 0 1px 0 rgba(255, 255, 255, 0.45);
	margin-top: 2px;
}
.esl-setup-settings-modal__row {
	display: flex;
	align-items: center;
	gap: 10px;
	width: 100%;
	padding: 10px 12px;
	border-radius: 14px;
	border: 2px solid rgba(255, 255, 255, 0.45);
	background: rgba(255, 255, 255, 0.16);
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5);
	cursor: pointer;
}
.esl-setup-settings-modal__check {
	width: 18px;
	height: 18px;
	accent-color: #6d28d9;
}
.esl-setup-settings-modal__label {
	font-weight: 800;
	color: rgba(28, 25, 23, 0.92);
}
.esl-setup-settings-modal__hint {
	margin: 4px 0 0;
	font-size: 0.9rem;
	font-weight: 700;
	color: rgba(28, 25, 23, 0.72);
	text-align: center;
}
.esl-setup-settings-modal__actions {
	margin-top: 6px;
}
.esl-game-show-banner {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 12px;
	padding: 14px 5px 18px;
	min-height: 56px;
	background: linear-gradient(180deg, #fef08a 0%, #fde047 25%, #facc15 55%, #eab308 85%, #ca8a04 100%);
	flex-shrink: 0;
	box-sizing: border-box;
	font-size: clamp(1.25rem, 2.5vw, 1.75rem);
	font-weight: 700;
	color: #fff;
	letter-spacing: 0.05em;
	border-radius: 999px;
	margin: 0;
	border-bottom: none;
	box-shadow: 0 5px 15px rgba(0, 0, 0, 0.25), 0 0 10px 3px rgba(250, 204, 21, 0.5), 0 0 20px 6px rgba(234, 179, 8, 0.35), inset 0 2px 0 rgba(255, 255, 255, 0.8), inset 0 -2px 6px rgba(0, 0, 0, 0.1);
	position: relative;
}
.esl-banner-title {
	flex-shrink: 0;
	text-align: center;
	font-family: var(--esl-font-questions);
	font-size: clamp(1.35rem, 2.8vw, 1.95rem);
	font-weight: 400;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: #1a1a1a;
	-webkit-text-stroke: 1px rgba(255, 255, 255, 0.85);
	paint-order: stroke fill;
	text-shadow: 0 0 12px rgba(255, 255, 255, 0.9), 0 0 24px rgba(250, 204, 21, 0.5), 0 1px 2px rgba(255, 255, 255, 0.95), 0 2px 6px rgba(0, 0, 0, 0.2);
}
.esl-banner-icon {
	font-size: 1.6em;
	line-height: 1;
	filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.8)) drop-shadow(0 0 16px rgba(255, 255, 200, 0.5)) drop-shadow(0 2px 4px rgba(0, 0, 0, 0.25));
}
.esl-banner-icon--left {
	transform: rotate(-8deg);
	margin-right: 5px;
	animation: esl-icon-pulse 2s ease-in-out infinite;
}
.esl-banner-icon--right {
	transform: rotate(8deg);
	margin-left: 5px;
	animation: esl-icon-pulse 2s ease-in-out infinite 0.5s;
}
@keyframes esl-icon-pulse {
	0%, 100% { opacity: 1; }
	50% { opacity: 0.9; }
}
.esl-game-show-banner__title {
	margin: 0;
	font-size: clamp(1.5rem, 3vw, 2rem);
	color: #fff;
	line-height: 1.3;
	font-family: var(--esl-font-display);
}
.esl-game-show-banner__subtitle {
	margin: 8px 0 0;
	font-size: clamp(0.75rem, 1.5vw, 0.9rem);
	color: rgba(255, 255, 255, 0.9);
	line-height: 1.4;
	font-family: var(--esl-font-ui);
}

.esl-game-show-setup {
	/* Natural stack: taller topics push START down (avoid space-between “pinning” the bottom row). */
	flex: 0 1 auto;
	min-height: min-content;
	height: auto;
	max-height: none;
	overflow-x: hidden;
	overflow-y: visible;
	padding: 20px 5px 16px;
	margin: 0;
	display: flex;
	flex-direction: column;
	justify-content: flex-start;
	gap: 15px;
}
.esl-game-show-setup__cluster {
	display: flex;
	flex-direction: column;
	min-height: 0;
	gap: 15px;
}
.esl-game-show-setup__cluster--top {
	flex: 0 0 auto;
}
.esl-game-show-setup__cluster--bottom {
	/* Topic cluster: must not shrink below its text (see also #esl-game-show[data-state="setup"] rules). */
	flex: 0 0 auto;
	flex-shrink: 0;
	min-height: min-content;
	height: auto;
	max-height: none;
	display: flex;
	flex-direction: column;
	min-width: 0;
	overflow: visible;
}
/* Topics + START/settings: one column, flex-start + gap (fullscreen grid overrides in mobile-fullscreen.css). */
.esl-game-show-setup__cluster--bottom .esl-game-show-setup__bottom-stack {
	display: flex;
	flex-direction: column;
	justify-content: flex-start;
	flex: 0 0 auto;
	flex-shrink: 0;
	min-height: min-content;
	height: auto;
	max-height: none;
	min-width: 0;
	width: 100%;
	gap: 15px;
	overflow: visible;
}

.esl-game-show-setup__section h3 {
	margin: 0 0 8px;
	font-family: var(--esl-font-display);
	font-size: 1rem;
	font-weight: 400;
	letter-spacing: 0.04em;
	color: #1c1917;
}
.esl-game-show-setup__section--topics {
	overflow: visible;
	flex-shrink: 0;
	min-height: min-content;
	height: auto;
}
.esl-game-show-setup__section--center {
	display: flex;
	flex-direction: column;
	align-items: stretch;
	justify-content: flex-start;
	width: 100%;
}
.esl-game-show-setup__section--center .esl-game-show-btn--generate {
	width: 100%;
	max-width: 100%;
	box-sizing: border-box;
}
.esl-game-show-setup__section--start {
	display: flex;
	flex-direction: column;
	/* was center — that shrink-wraps children on the cross axis so START row stayed narrow */
	align-items: stretch;
	gap: 14px;
	width: 100%;
	max-width: 100%;
	flex-shrink: 0;
	min-height: min-content;
}

/* Setup: middle (yellow) column grows with content — no fixed height; long topics push START down. */
#esl-game-show[data-state="setup"] .esl-game-show-panel.esl-game-show-panel--center {
	height: auto;
	max-height: none !important;
	min-height: 260px;
	overflow-x: hidden !important;
	overflow-y: visible !important;
}
#esl-game-show[data-state="setup"] .esl-game-show-panel--center .esl-game-show-center-scale-wrap {
	flex: 0 0 auto;
	min-height: min-content;
	height: auto;
	max-height: none !important;
	overflow: visible !important;
	overflow-y: visible !important;
}
#esl-game-show[data-state="setup"] .esl-game-show-panel--center .esl-game-show-center-scale-inner {
	min-height: min-content;
	height: auto;
	max-height: none !important;
	overflow: visible !important;
	overflow-y: visible !important;
}
#esl-game-show[data-state="setup"] .esl-game-show-topics-grid {
	height: auto;
	min-height: min-content;
	max-height: none !important;
	overflow: visible !important;
	overflow-y: visible !important;
	grid-template-rows: repeat(2, min-content);
}
#esl-game-show[data-state="setup"] .esl-game-show-setup__cluster--bottom {
	max-height: none !important;
	overflow: visible !important;
	overflow-y: visible !important;
}
#esl-game-show[data-state="setup"] .esl-game-show-setup {
	overflow-x: hidden !important;
	overflow-y: visible !important;
	max-height: none !important;
}
#esl-game-show[data-state="setup"] .esl-game-show-board,
#esl-game-show[data-state="setup"] .esl-game-show-board-grid {
	overflow-y: visible !important;
	overflow: visible !important;
}

.esl-game-show-mode-row {
	width: 100%;
	display: flex;
	justify-content: center;
	margin-top: -2px;
}
.esl-game-show-mode-toggle {
	display: inline-flex;
	border-radius: 4px;
	overflow: hidden;
	border: 1px solid rgba(255, 255, 255, 0.3);
	background: rgba(0, 0, 0, 0.2);
	line-height: 1;
	flex-shrink: 0;
}
.esl-mode-option {
	padding: 3px 8px;
	border: none;
	background: transparent;
	color: rgba(255, 255, 255, 0.6);
	font-size: 0.65rem;
	font-weight: 500;
	cursor: pointer;
	transition: background 0.2s, color 0.2s;
	white-space: nowrap;
	line-height: 1.2;
}
.esl-mode-option:hover {
	color: rgba(255, 255, 255, 0.9);
}
.esl-mode-option.is-active {
	background: linear-gradient(135deg, #7c3aed, #6d28d9);
	color: #fff;
	font-weight: 600;
}
.esl-mode-option:first-child {
	border-radius: 3px 0 0 3px;
}
.esl-mode-option:last-child {
	border-radius: 0 3px 3px 0;
}

/* Form elements */
.esl-game-show-row {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	margin-bottom: 8px;
}
.esl-game-show-row:last-child {
	margin-bottom: 0;
}
.esl-game-show-row--gap {
	gap: 10px;
}

/* Setup: name + pick under each team header (center column no longer holds this block). */
.esl-game-show-panel__setup-name {
	width: 100%;
	max-width: 100%;
	box-sizing: border-box;
	padding: 0 6px 10px;
	margin: 0;
	flex: 0 0 auto;
	min-width: 0;
}
.esl-game-show-panel__setup-hint {
	margin: 0 0 8px;
	font-size: clamp(0.65rem, 1.8vw, 0.8rem);
	font-weight: 600;
	letter-spacing: 0.04em;
	color: rgba(255, 255, 255, 0.92);
	text-align: center;
	line-height: 1.2;
	font-family: var(--esl-font-ui);
}
.esl-game-show-panel--team1 .esl-game-show-player-row--panel,
.esl-game-show-panel--team2 .esl-game-show-player-row--panel {
	display: flex;
	flex-direction: column;
	align-items: stretch;
	gap: 8px;
	width: 100%;
	margin-bottom: 0;
}
.esl-game-show-panel--team1 .esl-game-show-player-row--panel .esl-game-show-input,
.esl-game-show-panel--team2 .esl-game-show-player-row--panel .esl-game-show-input {
	width: 100%;
	max-width: 100%;
	box-sizing: border-box;
	/* Same corner radius as `.esl-game-show-btn` on PICK A NAME (8px). */
	border-radius: 8px;
	text-align: center;
}
.esl-game-show-panel--team1 .esl-game-show-player-row--panel .esl-pick-name,
.esl-game-show-panel--team2 .esl-game-show-player-row--panel .esl-pick-name {
	width: 100%;
	max-width: 100%;
	box-sizing: border-box;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	text-align: center;
}

/* Player info row - field and button same height, aligned */
.esl-game-show-player-row {
	align-items: stretch;
}
.esl-game-show-player-row .esl-game-show-input,
.esl-game-show-player-row .esl-game-show-btn {
	height: 40px;
	min-height: 40px;
	padding: 0 16px;
	box-sizing: border-box;
	display: inline-flex;
	align-items: center;
	justify-content: center;
}

/* Center column only: keep vertical rhythm; minimize horizontal inset inside controls (chevron space preserved on selects). */
.esl-game-show-panel--center .esl-game-show-select {
	padding: 10px 34px 10px 5px;
	background-position: right 8px center, 0 0;
}
.esl-game-show-panel--center .esl-game-show-input {
	padding: 8px 5px;
}
.esl-game-show-panel--center .esl-game-show-player-row .esl-game-show-input,
.esl-game-show-panel--center .esl-game-show-player-row .esl-game-show-btn {
	padding: 0 5px;
}

/* Topics 2x2 grid - fixed block dimensions */
.esl-game-show-topics-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	grid-template-rows: 1fr 1fr;
	gap: 12px;
	width: 100%;
	height: 100px;
	min-height: 100px;
	overflow: visible;
}
.esl-game-show-topics-grid .esl-custom-select {
	width: 100%;
	min-width: 0;
	margin: 0;
	/* Stacking handled by `.esl-custom-select.is-open` when the list is open — avoid z-index on closed cells. */
}

/* Topic option colors (allowed / locked) live with level filter overrides below — after default orange list styling. */

.esl-game-upgrade-topic-modal__body {
	margin: 12px 0 0;
	line-height: 1.45;
	color: #1c1917;
}

.esl-game-upgrade-topic-modal__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	align-items: center;
	justify-content: center;
	margin-top: 16px;
}

/* Play limit modal — Championship gloss + CTA to pricing #plans */
.esl-game-play-limit-modal .esl-game-show-modal__front-inner {
	gap: 14px;
	padding-top: 28px;
}
.esl-game-play-limit-modal__inner {
	text-align: center;
}
.esl-game-play-limit-modal__banner {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	padding: 6px 14px;
	border-radius: 999px;
	background: linear-gradient(180deg, #fde68a 0%, #facc15 45%, #eab308 100%);
	border: 2px solid rgba(255, 255, 255, 0.55);
	box-shadow: 0 2px 10px rgba(234, 179, 8, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.65);
	font-weight: 800;
	font-size: 0.72rem;
	letter-spacing: 0.06em;
	color: #1c1917;
	text-transform: uppercase;
}
.esl-game-play-limit-modal__banner-icon {
	font-size: 0.85rem;
	line-height: 1;
}
.esl-game-play-limit-modal .esl-game-show-modal__question.esl-game-play-limit-modal__title {
	margin: 4px 0 0;
	max-width: 22rem;
	line-height: 1.25;
	font-size: 1.45rem;
	font-weight: 800;
}
.esl-game-play-limit-modal__body {
	margin: 0;
	max-width: 26rem;
	line-height: 1.5;
	color: #292524;
	font-size: 1.08rem;
	font-weight: 600;
}
.esl-game-play-limit-modal__encourage {
	margin: 0;
	max-width: 24rem;
	line-height: 1.45;
	font-size: 1rem;
	font-weight: 600;
	color: #57534e;
	font-style: italic;
}
.esl-game-play-limit-modal__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	align-items: center;
	justify-content: center;
	margin-top: 10px;
	width: 100%;
}
.esl-game-play-limit-modal__actions .esl-game-show-btn--start {
	min-width: 200px;
	text-align: center;
	justify-content: center;
}

/* Guest login modal: embed ProfilePress login form */
.esl-game-guest-login-modal .esl-game-show-modal__front-inner {
	gap: 14px;
	padding-top: 28px;
}
.esl-game-guest-login-modal__inner {
	text-align: center;
}
.esl-game-guest-login-modal__prompt {
	margin: 0;
	max-width: 28rem;
	line-height: 1.5;
	color: #292524;
	font-size: 1.05rem;
	font-weight: 650;
}
.esl-game-guest-login-modal__hint {
	margin: 10px 0 0;
	max-width: 28rem;
	line-height: 1.45;
	color: #57534e;
	font-size: 0.95rem;
	font-weight: 500;
}
.esl-game-guest-login-modal__form {
	width: 100%;
	max-width: 440px;
}
.esl-game-guest-login-modal__form form {
	margin: 0;
}
.esl-game-guest-login-modal__form input[type="text"],
.esl-game-guest-login-modal__form input[type="email"],
.esl-game-guest-login-modal__form input[type="password"],
.esl-game-guest-login-modal__form input[type="tel"],
.esl-game-guest-login-modal__form input[type="url"],
.esl-game-guest-login-modal__form select {
	width: 100%;
	max-width: 100%;
	box-sizing: border-box;
	border-radius: 10px;
}
.esl-game-guest-login-modal__form input[type="submit"],
.esl-game-guest-login-modal__form button,
.esl-game-guest-login-modal__form .button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	border-radius: 12px;
}
.esl-game-guest-login-modal__actions {
	margin-top: 6px;
}

/* Start still clickable at limit — opens upgrade modal (soft affordance) */
.esl-game-show-btn--start.esl-game-show-btn--at-play-limit {
	opacity: 0.92;
	animation: esl-play-limit-pulse 2.4s ease-in-out infinite;
}
@keyframes esl-play-limit-pulse {
	0%,
	100% {
		box-shadow: 0 8px 28px rgba(0, 0, 0, 0.4), 0 0 16px 5px rgba(234, 88, 12, 0.85), 0 0 32px 12px rgba(234, 88, 12, 0.6), inset 0 2px 0 rgba(255, 255, 255, 0.5);
	}
	50% {
		box-shadow: 0 8px 28px rgba(0, 0, 0, 0.45), 0 0 22px 8px rgba(251, 146, 60, 0.95), 0 0 40px 16px rgba(234, 88, 12, 0.75), inset 0 2px 0 rgba(255, 255, 255, 0.55);
	}
}
@media (prefers-reduced-motion: reduce) {
	.esl-game-show-btn--start.esl-game-show-btn--at-play-limit {
		animation: none;
	}
}

/* Level filter option colors: defined after .esl-game-show-select option (orange theme) below. */

.esl-game-upgrade-level-modal__body {
	margin: 12px 0 0;
	line-height: 1.45;
	color: #1c1917;
}

.esl-game-upgrade-level-modal__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	align-items: center;
	justify-content: center;
	margin-top: 16px;
}

/* Selects: glossy “game UI” look + custom chevron (open list is still partly OS-controlled). */
.esl-game-show-select {
	flex: 1;
	min-width: 120px;
	padding: 10px 42px 10px 14px;
	border: 2px solid rgba(139, 92, 246, 0.55);
	border-radius: 12px;
	font-family: var(--esl-font-ui);
	font-size: 0.9rem;
	font-weight: 600;
	color: #1c1917;
	cursor: pointer;
	-webkit-appearance: none;
	-moz-appearance: none;
	appearance: none;
	background-color: #fffbeb;
	background-image:
		url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none'%3E%3Cpath d='M6 9l6 6 6-6' stroke='%237c3aed' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"),
		linear-gradient(180deg, #fffef9 0%, #fef9c3 40%, #fde047 100%);
	background-repeat: no-repeat, no-repeat;
	background-position: right 12px center, 0 0;
	background-size: 18px 18px, 100% 100%;
	box-shadow:
		0 4px 14px rgba(0, 0, 0, 0.2),
		0 0 12px 2px rgba(167, 139, 250, 0.25),
		inset 0 1px 0 rgba(255, 255, 255, 0.85),
		inset 0 -1px 0 rgba(202, 138, 4, 0.12);
	transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.08s ease;
}
.esl-game-show-select:hover {
	border-color: rgba(124, 58, 237, 0.85);
	box-shadow:
		0 6px 18px rgba(0, 0, 0, 0.22),
		0 0 16px 4px rgba(167, 139, 250, 0.4),
		inset 0 1px 0 rgba(255, 255, 255, 0.95),
		inset 0 -1px 0 rgba(202, 138, 4, 0.15);
}
.esl-game-show-select:focus {
	outline: none;
	border-color: #8b5cf6;
	box-shadow:
		0 4px 14px rgba(0, 0, 0, 0.2),
		0 0 0 3px rgba(167, 139, 250, 0.45),
		0 0 20px 6px rgba(139, 92, 246, 0.25),
		inset 0 1px 0 rgba(255, 255, 255, 0.9);
}
.esl-game-show-select:active {
	transform: scale(0.995);
}

/* Custom select: themed list (native <select> open menu is OS-painted and ignores CSS on many platforms). */
.esl-custom-select {
	position: relative;
	flex: 1;
	min-width: 120px;
}
.esl-custom-select.is-open {
	z-index: 500;
}
.esl-custom-select__native {
	position: absolute !important;
	width: 1px !important;
	height: 1px !important;
	padding: 0 !important;
	margin: -1px !important;
	overflow: hidden !important;
	clip: rect(0, 0, 0, 0) !important;
	border: 0 !important;
	white-space: nowrap !important;
	opacity: 0 !important;
	pointer-events: none !important;
}
button.esl-game-show-select.esl-custom-select__trigger {
	display: block;
	width: 100%;
	box-sizing: border-box;
	text-align: left;
	cursor: pointer;
	font-family: inherit;
}
.esl-custom-select__panel {
	position: absolute;
	left: 0;
	right: 0;
	top: calc(100% + 6px);
	z-index: 400;
	max-height: min(280px, 55vh);
	overflow-x: hidden;
	overflow-y: auto;
	padding: 8px;
	border-radius: 14px;
	border: 2px solid rgba(139, 92, 246, 0.5);
	background: linear-gradient(180deg, #fff7ed 0%, #ffedd5 35%, #fdba74 100%);
	box-shadow:
		0 14px 36px rgba(0, 0, 0, 0.28),
		0 0 20px 4px rgba(251, 146, 60, 0.35),
		inset 0 1px 0 rgba(255, 255, 255, 0.65);
	-webkit-overflow-scrolling: touch;
}
.esl-custom-select__panel:focus {
	outline: none;
}
.esl-custom-select__option {
	display: block;
	width: 100%;
	margin: 0 0 4px;
	padding: 10px 12px;
	border: none;
	border-radius: 10px;
	box-sizing: border-box;
	font-family: var(--esl-font-ui);
	font-size: 0.9rem;
	font-weight: 600;
	text-align: left;
	cursor: pointer;
	color: #7c2d12;
	background: linear-gradient(180deg, #fffbeb 0%, #ffedd5 55%, #fed7aa 100%);
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.75);
	transition: background 0.12s ease, transform 0.08s ease, box-shadow 0.12s ease;
}
.esl-custom-select__option:last-child {
	margin-bottom: 0;
}
.esl-custom-select__option:hover,
.esl-custom-select__option:focus {
	outline: none;
	color: #431407;
	background: linear-gradient(180deg, #ffedd5 0%, #fdba74 45%, #fb923c 100%);
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.5);
}
.esl-custom-select__option.is-selected {
	color: #431407;
	background: linear-gradient(180deg, #fde68a 0%, #fbbf24 55%, #f59e0b 100%);
	box-shadow:
		0 0 0 2px rgba(124, 58, 237, 0.35),
		inset 0 1px 0 rgba(255, 255, 255, 0.65);
}
/* Level / topic semantic rows inside custom panel */
.esl-custom-select__option.esl-level-option--allowed,
.esl-custom-select__option.esl-topic-option--allowed {
	color: rgb(21, 128, 61);
	background: linear-gradient(180deg, #ecfdf5 0%, #d1fae5 55%, #a7f3d0 100%);
}
.esl-custom-select__option.esl-level-option--locked,
.esl-custom-select__option.esl-topic-option--locked {
	color: rgb(185, 28, 28);
	background: linear-gradient(180deg, #fef2f2 0%, #fecaca 55%, #fca5a5 100%);
}
.esl-game-show-topics-grid .esl-custom-select.is-open {
	z-index: 520;
}

/*
 * Open dropdown list (<option> rows): orange theme to match the Championship panel.
 * Chromium/Firefox usually apply these; Safari often uses native styling. Windows may still blend OS chrome.
 */
.esl-game-show select.esl-game-show-select option {
	font-weight: 600;
	padding: 0.5em 0.7em;
	color: #7c2d12;
	background-color: #fed7aa;
	background-image: linear-gradient(180deg, #fff7ed 0%, #ffedd5 28%, #fed7aa 55%, #fdba74 100%);
}

/* Hover / keyboard focus row — WebKit + Firefox (where supported) */
.esl-game-show select.esl-game-show-select option:hover,
.esl-game-show select.esl-game-show-select option:focus {
	color: #431407;
	background-color: #fb923c;
	background-image: linear-gradient(180deg, #ffedd5 0%, #fdba74 45%, #fb923c 100%);
}

/* Level filter: keep green/red for access (must follow default option block). */
select#esl-filter-level option.esl-level-option--allowed {
	color: rgb(21, 128, 61);
	font-weight: 700;
	background-color: rgb(240, 253, 244);
	background-image: none;
}

select#esl-filter-level option.esl-level-option--locked {
	color: rgb(220, 38, 38);
	font-weight: 700;
	background-color: rgb(254, 242, 242);
	background-image: none;
}

/* Topic dropdown: same semantic colors (JS adds classes per option). */
.esl-game-show-topic option.esl-topic-option--allowed {
	color: rgb(21, 128, 61);
	font-weight: 700;
	background-color: rgb(240, 253, 244);
	background-image: none;
}

.esl-game-show-topic option.esl-topic-option--locked {
	color: rgb(220, 38, 38);
	font-weight: 700;
	background-color: rgb(254, 242, 242);
	background-image: none;
}

.esl-game-show-input {
	flex: 1;
	min-width: 100px;
	padding: 8px 12px;
	border: 2px solid rgba(139, 92, 246, 0.35);
	border-radius: 10px;
	background: linear-gradient(180deg, #fffef7 0%, #fef9c3 50%, #fef08a 100%);
	color: #1c1917;
	font-family: var(--esl-font-ui);
	font-size: 0.9rem;
	font-weight: 600;
	box-shadow:
		inset 0 2px 4px rgba(0, 0, 0, 0.06),
		0 1px 0 rgba(255, 255, 255, 0.75),
		0 2px 8px rgba(167, 139, 250, 0.12);
}
.esl-game-show-input:focus {
	outline: none;
	border-color: #8b5cf6;
	box-shadow:
		inset 0 2px 4px rgba(0, 0, 0, 0.06),
		0 0 0 3px rgba(167, 139, 250, 0.35);
}

/* Buttons */
.esl-game-show-btn {
	padding: 10px 16px;
	border: none;
	border-radius: 8px;
	font-size: 0.9rem;
	font-weight: 600;
	cursor: pointer;
	white-space: nowrap;
	transition: opacity 0.2s, transform 0.1s;
}
.esl-game-show-btn:hover {
	opacity: 0.9;
}
.esl-game-show-btn:active {
	transform: scale(0.98);
}

.esl-game-show-btn--go {
	background: #3b82f6;
	color: #fff;
}
.esl-game-show-btn--orange {
	background: linear-gradient(180deg, #fcd34d 0%, #f59e0b 50%, #d97706 100%);
	color: #1c1917;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25), 0 0 16px rgba(245, 158, 11, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.7);
	border: 2px solid rgba(255, 255, 255, 0.5);
}
.esl-game-show-btn--orange:hover {
	background: linear-gradient(180deg, #fde68a 0%, #fbbf24 50%, #f59e0b 100%);
	box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3), 0 0 24px rgba(245, 158, 11, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.8);
}
.esl-game-show-btn--green {
	background: linear-gradient(180deg, #4ade80 0%, #22c55e 50%, #16a34a 100%);
	color: #fff;
	border: 2px solid rgba(255, 255, 255, 0.45);
	/* No green outer glow — it read as a hard “cap” on the yellow center panel behind the button. */
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.45);
}
.esl-game-show-btn--green:hover {
	background: linear-gradient(180deg, #86efac 0%, #4ade80 50%, #22c55e 100%);
	box-shadow: 0 5px 14px rgba(0, 0, 0, 0.26), inset 0 1px 0 rgba(255, 255, 255, 0.55);
}
.esl-game-show-btn--purple {
	background: linear-gradient(180deg, #c4b5fd 0%, #a78bfa 50%, #8b5cf6 100%);
	color: #fff;
	border: 2px solid rgba(255, 255, 255, 0.4);
	box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3), 0 0 10px 3px rgba(167, 139, 250, 0.8), 0 0 20px 6px rgba(139, 92, 246, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.35);
}
.esl-game-show-btn--purple:hover {
	background: linear-gradient(180deg, #ddd6fe 0%, #c4b5fd 50%, #a78bfa 100%);
	box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35), 0 0 12px 4px rgba(167, 139, 250, 0.9), 0 0 24px 8px rgba(139, 92, 246, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.45);
}
.esl-game-show-btn--red {
	background: linear-gradient(180deg, #f87171 0%, #ef4444 50%, #dc2626 100%);
	color: #fff;
	border: 2px solid rgba(255, 255, 255, 0.35);
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25), 0 0 16px rgba(239, 68, 68, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.3);
}
.esl-game-show-btn--red:hover {
	box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3), 0 0 22px rgba(239, 68, 68, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.4);
}
.esl-game-show-btn--start {
	background: linear-gradient(180deg, #fb923c 0%, #ea580c 50%, #c2410c 100%);
	color: #fff;
	border: 2px solid rgba(255, 255, 255, 0.5);
	box-shadow: 0 8px 28px rgba(0, 0, 0, 0.4), 0 0 16px 5px rgba(234, 88, 12, 0.85), 0 0 32px 12px rgba(234, 88, 12, 0.6), 0 0 48px 18px rgba(194, 65, 12, 0.4), inset 0 2px 0 rgba(255, 255, 255, 0.5);
}
.esl-game-show-btn--start:hover {
	background: linear-gradient(180deg, #fdba74 0%, #f97316 50%, #ea580c 100%);
	box-shadow: 0 10px 32px rgba(0, 0, 0, 0.45), 0 0 20px 6px rgba(234, 88, 12, 0.95), 0 0 40px 14px rgba(234, 88, 12, 0.7), 0 0 56px 22px rgba(194, 65, 12, 0.45), inset 0 2px 0 rgba(255, 255, 255, 0.6);
}
.esl-game-show-btn--filter {
	background: linear-gradient(180deg, #fde68a 0%, #facc15 50%, #eab308 100%);
	color: #1c1917;
	border: 2px solid rgba(255, 255, 255, 0.55);
	box-shadow: 0 0 12px rgba(250, 204, 21, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.65);
}
.esl-game-show-btn--filter:hover {
	background: linear-gradient(180deg, #fef08a 0%, #fde047 50%, #facc15 100%);
	box-shadow: 0 0 18px rgba(250, 204, 21, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.75);
}
.esl-game-show-btn--large {
	padding: 14px 24px;
	font-size: 1rem;
}

/* START GAME: larger CTA than default --large (extra horizontal + type + vertical). */
#esl-btn-start.esl-game-show-btn--large,
.esl-game-show-start-actions #esl-btn-start {
	margin-top: 4px;
	padding-top: 18px;
	padding-bottom: 18px;
	padding-left: calc(24px + 25px);
	padding-right: calc(24px + 25px);
	font-size: 1.1rem;
	min-height: 52px;
	box-sizing: border-box;
}

.esl-game-show-icon {
	display: inline-block;
	margin-right: 6px;
}

/* Game panel - board layout */
.esl-game-show-panel--game .esl-game-show-panel__header {
	display: none;
}
.esl-game-show-board {
	flex: 1;
	display: flex;
	flex-direction: column;
	min-height: 0;
	padding: 12px;
	overflow: hidden;
}
.esl-game-show-board-banner {
	position: relative;
	background: linear-gradient(180deg, #38bdf8 0%, #0ea5e9 50%, #0284c7 100%);
	border: 2px solid rgba(255, 255, 255, 0.4);
	border-radius: 18px;
	padding: 16px 24px;
	text-align: center;
	margin-bottom: 16px;
	flex-shrink: 0;
	box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3), 0 0 10px 3px rgba(14, 165, 233, 0.7), 0 0 20px 6px rgba(2, 132, 199, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.4);
}
.esl-board-banner-close {
	position: absolute;
	top: 8px;
	right: 8px;
	width: 28px;
	height: 28px;
	padding: 0;
	border: none;
	border-radius: 6px;
	background: rgba(255, 255, 255, 0.2);
	color: #fff;
	font-size: 1.4rem;
	line-height: 1;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: background 0.2s;
}
.esl-board-banner-close:hover {
	background: rgba(255, 255, 255, 0.35);
}
.esl-game-show-board-banner span {
	display: block;
	color: #fff;
	font-weight: 700;
	font-family: var(--esl-font-display);
	text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5), 0 2px 4px rgba(0, 0, 0, 0.3);
}
#esl-game-current-team {
	font-size: clamp(1.2rem, 2.5vw, 1.6rem);
}
#esl-game-board-instruction {
	font-size: clamp(0.9rem, 1.5vw, 1.1rem);
	opacity: 0.95;
	margin-top: 4px;
	font-family: var(--esl-font-ui);
}
.esl-game-show-board-grid {
	flex: 1;
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	grid-template-rows: auto repeat(6, 1fr);
	gap: 8px;
	min-height: 0;
	overflow-x: hidden;
	overflow-y: auto;
	-webkit-overflow-scrolling: touch;
	overscroll-behavior: contain;
	padding-right: 5px;
	box-sizing: border-box;
	touch-action: auto;
}
.esl-game-show-board-col-header {
	background: linear-gradient(180deg, #a78bfa 0%, #7c3aed 50%, #6d28d9 100%);
	color: #fff;
	padding: 10px 8px;
	font-size: clamp(0.7rem, 1.2vw, 0.85rem);
	font-weight: 600;
	font-family: var(--esl-font-questions);
	text-align: center;
	text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5), 0 2px 4px rgba(0, 0, 0, 0.3);
	border-radius: 18px;
	word-break: break-word;
	border: 2px solid rgba(255, 255, 255, 0.3);
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}
.esl-game-show-board-col-header.is-closed {
	background: linear-gradient(180deg, #dc2626 0%, #b91c1c 50%, #991b1b 100%);
	color: #fff;
	border-color: rgba(0, 0, 0, 0.2);
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.15);
}
.esl-game-show-board-card {
	position: relative;
	background: linear-gradient(180deg, #f0e6c8 0%, #e5d4a1 40%, #d4af37 70%, #b8860b 100%);
	color: #1c1917;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: clamp(1rem, 2vw, 1.5rem);
	font-weight: 800;
	border-radius: 8px;
	cursor: pointer;
	transition: opacity 0.2s, transform 0.1s;
	min-height: 50px;
	border: 2px solid rgba(255, 255, 255, 0.5);
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.6);
	font-family: var(--esl-font-display);
}

/* Fun mode: bigger cheerful numbers + mystery badge */
.esl-game-show.esl-fun-mode .esl-game-show-board-card {
	font-family: var(--esl-font-display);
	font-size: clamp(1.6rem, 3.6vw, 2.6rem);
	letter-spacing: 0.5px;
	color: #1d4ed8; /* bold blue */
	text-shadow:
		2px 2px 0 #fb923c, /* orange shadow */
		0 6px 18px rgba(0, 0, 0, 0.25);
}
.esl-game-show.esl-fun-mode .esl-game-show-board-card:hover {
	transform: scale(1.04);
}
.esl-game-show.esl-fun-mode .esl-game-show-board-card.is-played {
	color: #fff;
	text-shadow: 0 2px 10px rgba(0,0,0,0.35);
}
.esl-game-show-board-card .esl-board-card-mystery {
	position: absolute;
	top: 6px;
	left: 6px;
	width: 24px;
	height: 24px;
	border-radius: 10px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-family: var(--esl-font-ui);
	font-weight: 900;
	font-size: 14px;
	color: #0f172a;
	background: linear-gradient(180deg, #fff7ed 0%, #fdba74 50%, #fb923c 100%);
	border: 2px solid rgba(255,255,255,0.7);
	box-shadow: 0 6px 16px rgba(0,0,0,0.25), inset 0 1px 0 rgba(255,255,255,0.75);
}
/* Admin quality workflow: tiny marker on board (confirmed items only). */
.esl-game-show-board-card .esl-q-quality-dot {
	position: absolute;
	right: 3px;
	bottom: 3px;
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: #16a34a;
	box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.6);
	opacity: 0.65;
	pointer-events: none;
	z-index: 2;
}
/* Fun mode: keep mystery cards visually identical to normal cards.
   We only use the optional "?" badge as a marker (and remove it when disabled). */
.esl-game-show.esl-fun-mode .esl-game-show-board-card.is-mystery {
	background: linear-gradient(180deg, #f0e6c8 0%, #e5d4a1 40%, #d4af37 70%, #b8860b 100%);
	border-color: rgba(255, 255, 255, 0.5);
}

/* Fun mode: when a mystery card is used, it must still look "played" (red) */
.esl-game-show.esl-fun-mode .esl-game-show-board-card.is-played {
	background: linear-gradient(180deg, #fecaca 0%, #f87171 40%, #dc2626 70%, #b91c1c 100%);
	border-color: rgba(0, 0, 0, 0.15);
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

/* Fun modal: playful, bright, consistent across all mystery types */
.esl-fun-modal .esl-game-show-modal__backdrop {
	background:
		radial-gradient(circle at 20% 20%, rgba(255,255,255,0.35), transparent 40%),
		radial-gradient(circle at 80% 30%, rgba(255,255,255,0.25), transparent 45%),
		rgba(250, 204, 21, 0.35);
	backdrop-filter: blur(3px);
}
.esl-fun-modal .esl-game-show-modal__wrapper {
	max-width: 620px;
}
.esl-fun-modal .esl-game-show-modal__front-inner {
	position: relative;
	border-radius: 22px;
	border: 3px solid rgba(255,255,255,0.75);
	background:
		radial-gradient(circle at 20% 25%, rgba(255,255,255,0.65) 0%, rgba(255,255,255,0.0) 55%),
		radial-gradient(circle at 80% 15%, rgba(255,255,255,0.35) 0%, rgba(255,255,255,0.0) 55%),
		linear-gradient(180deg, #fff7ed 0%, #fde68a 35%, #fbbf24 70%, #fb923c 100%);
	box-shadow:
		0 18px 50px rgba(0,0,0,0.35),
		0 0 0 6px rgba(255,255,255,0.12),
		inset 0 2px 0 rgba(255,255,255,0.85);
	overflow: hidden;
}
.esl-fun-modal .esl-game-show-modal__front-inner::before {
	content: '';
	position: absolute;
	inset: -40px;
	background-image:
		radial-gradient(circle, rgba(255,255,255,0.9) 2px, transparent 3px),
		radial-gradient(circle, rgba(29,78,216,0.25) 2px, transparent 3px),
		radial-gradient(circle, rgba(249,115,22,0.25) 2px, transparent 3px);
	background-size: 34px 34px, 46px 46px, 58px 58px;
	background-position: 0 0, 10px 18px, 22px 8px;
	opacity: 0.35;
	pointer-events: none;
	transform: rotate(-6deg);
}
.esl-fun-modal #esl-fun-modal-title {
	font-family: var(--esl-font-display);
	font-size: clamp(1.9rem, 4vw, 2.6rem);
	letter-spacing: 0.5px;
	color: #0f172a;
	text-shadow: 0 2px 0 rgba(255,255,255,0.65), 0 8px 18px rgba(0,0,0,0.22);
}
.esl-fun-modal #esl-fun-modal-body {
	font-family: var(--esl-font-ui);
	font-size: clamp(1.05rem, 2.2vw, 1.35rem);
	font-weight: 800;
	color: #0f172a;
	line-height: 1.35;
	text-shadow: 0 1px 0 rgba(255,255,255,0.45);
}
.esl-fun-modal #esl-fun-modal-actions .esl-game-show-btn {
	min-width: 160px;
	font-size: 1.05rem;
	font-weight: 900;
	letter-spacing: 0.2px;
}

/* Type-specific glows + lightweight animations (GPU-friendly: opacity/transform only) */
.esl-fun-modal {
	--esl-fun-accent: rgba(251, 146, 60, 0.9);
	--esl-fun-accent-soft: rgba(251, 146, 60, 0.35);
}
.esl-fun-modal--bonus { --esl-fun-accent: rgba(34, 197, 94, 0.95); --esl-fun-accent-soft: rgba(34, 197, 94, 0.35); }
.esl-fun-modal--penalty { --esl-fun-accent: rgba(239, 68, 68, 0.95); --esl-fun-accent-soft: rgba(239, 68, 68, 0.35); }
.esl-fun-modal--swap { --esl-fun-accent: rgba(168, 85, 247, 0.95); --esl-fun-accent-soft: rgba(168, 85, 247, 0.35); }
.esl-fun-modal--choice { --esl-fun-accent: rgba(249, 115, 22, 0.95); --esl-fun-accent-soft: rgba(249, 115, 22, 0.35); }

.esl-fun-modal .esl-game-show-modal__front-inner {
	box-shadow:
		0 18px 50px rgba(0,0,0,0.35),
		0 0 0 6px rgba(255,255,255,0.12),
		0 0 0 0 rgba(0,0,0,0),
		0 0 32px 8px var(--esl-fun-accent-soft),
		inset 0 2px 0 rgba(255,255,255,0.85);
	animation: esl-fun-pop 420ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}
.esl-fun-modal[data-fun-open="1"] .esl-game-show-modal__front-inner::after {
	content: '';
	position: absolute;
	inset: -2px;
	border-radius: 22px;
	border: 3px solid rgba(255,255,255,0.35);
	box-shadow: 0 0 0 2px rgba(255,255,255,0.18), 0 0 18px 4px var(--esl-fun-accent-soft);
	pointer-events: none;
}

/* Bonus sparkles */
.esl-fun-modal--bonus .esl-game-show-modal__front-inner::after {
	box-shadow: 0 0 0 2px rgba(255,255,255,0.22), 0 0 22px 6px rgba(34,197,94,0.35);
}
.esl-fun-modal--bonus #esl-fun-modal-title {
	animation: esl-fun-title-sparkle 1.2s ease-in-out 1 both;
}
.esl-fun-modal--bonus #esl-fun-modal-body {
	position: relative;
	overflow: visible;
}
.esl-fun-bonus-celebrate {
	position: relative;
	padding: 4px 2px 2px;
}
.esl-fun-bonus-line {
	font-size: clamp(1rem, 2.1vw, 1.25rem);
	margin-bottom: 10px;
}
.esl-fun-bonus-emoji {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	font-size: clamp(1.6rem, 3.6vw, 2.3rem);
	filter: drop-shadow(0 4px 8px rgba(0,0,0,0.2));
	animation: esl-fun-emoji-bounce 1.15s ease-in-out infinite;
	pointer-events: none;
	z-index: 2;
}
.esl-fun-bonus-emoji--left { left: calc(50% - min(210px, 44%)); }
.esl-fun-bonus-emoji--right { right: calc(50% - min(210px, 44%)); animation-delay: 140ms; }

.esl-fun-bonus-frame-wrap {
	position: relative;
	display: flex;
	justify-content: center;
	margin-top: 2px;
	padding: 8px 0 4px;
}
.esl-fun-bonus-frame-wrap::before,
.esl-fun-bonus-frame-wrap::after {
	content: '';
	position: absolute;
	width: min(340px, 90%);
	height: 84px;
	left: 50%;
	transform: translateX(-50%);
	border-radius: 18px;
	pointer-events: none;
}
.esl-fun-bonus-frame-wrap::before {
	background:
		radial-gradient(circle at 15% 30%, rgba(255,255,255,0.95) 0 2px, transparent 3px),
		radial-gradient(circle at 35% 80%, rgba(251,191,36,0.95) 0 2px, transparent 3px),
		radial-gradient(circle at 60% 20%, rgba(56,189,248,0.95) 0 2px, transparent 3px),
		radial-gradient(circle at 78% 70%, rgba(244,114,182,0.95) 0 2px, transparent 3px),
		radial-gradient(circle at 90% 35%, rgba(34,197,94,0.95) 0 2px, transparent 3px);
	opacity: 0;
	animation: esl-fun-spark-burst 900ms ease-out forwards;
}
.esl-fun-bonus-frame-wrap::after {
	background:
		radial-gradient(circle at 10% 20%, rgba(255,255,255,0.75) 0 1.5px, transparent 2.5px),
		radial-gradient(circle at 25% 65%, rgba(56,189,248,0.75) 0 1.5px, transparent 2.5px),
		radial-gradient(circle at 45% 25%, rgba(251,191,36,0.75) 0 1.5px, transparent 2.5px),
		radial-gradient(circle at 62% 75%, rgba(244,114,182,0.75) 0 1.5px, transparent 2.5px),
		radial-gradient(circle at 85% 25%, rgba(34,197,94,0.75) 0 1.5px, transparent 2.5px);
	opacity: 0.45;
	animation: esl-fun-spark-float 1600ms ease-in-out infinite;
}
.esl-fun-bonus-frame {
	position: relative;
	min-width: min(330px, 92%);
	padding: 10px 24px;
	border-radius: 18px;
	font-family: var(--esl-font-display);
	font-size: clamp(2.1rem, 5.6vw, 3.5rem);
	font-weight: 800;
	letter-spacing: 1.2px;
	color: #0f172a;
	background:
		linear-gradient(180deg, #fff9c4 0%, #fde047 42%, #f59e0b 100%);
	border: 3px solid rgba(255,255,255,0.85);
	box-shadow:
		0 10px 24px rgba(0,0,0,0.26),
		0 0 0 3px rgba(251,191,36,0.35),
		0 0 28px rgba(251,191,36,0.45),
		inset 0 2px 0 rgba(255,255,255,0.85);
	text-shadow:
		0 1px 0 rgba(255,255,255,0.65),
		0 4px 12px rgba(0,0,0,0.2);
	animation:
		esl-fun-bonus-pop 240ms cubic-bezier(0.2, 0.8, 0.2, 1) both,
		esl-fun-bonus-fadequick 620ms ease-out both,
		esl-fun-bonus-pulse 1350ms ease-in-out 640ms infinite;
}

/* Penalty wobble + slightly darker pattern */
.esl-fun-modal--penalty .esl-game-show-modal__front-inner {
	animation: esl-fun-pop 420ms cubic-bezier(0.2, 0.8, 0.2, 1) both, esl-fun-wobble 700ms ease-in-out 1 both;
}
.esl-fun-modal--penalty .esl-game-show-modal__front-inner::before {
	opacity: 0.45;
}
.esl-fun-modal--penalty #esl-fun-modal-body {
	position: relative;
}
.esl-fun-penalty-wrap {
	position: relative;
	padding: 4px 2px 2px;
}
.esl-fun-penalty-line {
	font-size: clamp(1rem, 2.1vw, 1.25rem);
	margin-bottom: 10px;
}
.esl-fun-penalty-frame-wrap {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 16px;
	margin-top: 2px;
	padding: 8px 0 4px;
}
.esl-fun-penalty-frame-wrap::after {
	content: '';
	position: absolute;
	width: min(340px, 90%);
	height: 84px;
	left: 50%;
	transform: translateX(-50%);
	border-radius: 18px;
	pointer-events: none;
	background:
		radial-gradient(circle at 12% 26%, rgba(255,255,255,0.7) 0 1.5px, transparent 2.5px),
		radial-gradient(circle at 34% 72%, rgba(248,113,113,0.75) 0 1.5px, transparent 2.5px),
		radial-gradient(circle at 58% 22%, rgba(244,114,182,0.7) 0 1.5px, transparent 2.5px),
		radial-gradient(circle at 86% 66%, rgba(251,146,60,0.7) 0 1.5px, transparent 2.5px);
	opacity: 0.4;
	animation: esl-fun-spark-float 1600ms ease-in-out infinite;
}
.esl-fun-penalty-frame {
	position: relative;
	min-width: min(330px, 92%);
	padding: 10px 24px;
	border-radius: 18px;
	font-family: var(--esl-font-display);
	font-size: clamp(2.1rem, 5.6vw, 3.5rem);
	font-weight: 800;
	letter-spacing: 1.2px;
	color: #ffffff;
	background:
		linear-gradient(180deg, #fecaca 0%, #f87171 35%, #dc2626 72%, #991b1b 100%);
	border: 3px solid rgba(255,255,255,0.85);
	box-shadow:
		0 10px 24px rgba(0,0,0,0.3),
		0 0 0 3px rgba(239,68,68,0.35),
		0 0 28px rgba(239,68,68,0.4),
		inset 0 2px 0 rgba(255,255,255,0.35);
	text-shadow:
		0 1px 0 rgba(255,255,255,0.25),
		0 4px 12px rgba(0,0,0,0.35);
	animation:
		esl-fun-bonus-pop 220ms cubic-bezier(0.2, 0.8, 0.2, 1) both,
		esl-fun-penalty-pulse 1200ms ease-in-out 280ms infinite;
}
.esl-fun-penalty-emoji {
	position: static;
	top: auto;
	transform: none;
	font-size: clamp(2.6rem, 6.8vw, 4.2rem);
	filter: drop-shadow(0 4px 10px rgba(0,0,0,0.28));
	animation: esl-fun-emoji-bounce 1.25s ease-in-out infinite;
	pointer-events: none;
	z-index: 2;
	flex: 0 0 auto;
	line-height: 1;
}
.esl-fun-penalty-emoji--left { margin-right: 2px; }
.esl-fun-penalty-emoji--right { margin-left: 2px; animation-delay: 180ms; }

/* Swap swirl highlight */
.esl-fun-modal--swap .esl-game-show-modal__front-inner::after {
	box-shadow: 0 0 0 2px rgba(255,255,255,0.2), 0 0 22px 6px rgba(168,85,247,0.35);
}
.esl-fun-modal--swap .esl-game-show-modal__front-inner::before {
	opacity: 0.32;
}

/* Choice: button pulse to invite interaction */
.esl-fun-modal--choice #esl-fun-modal-actions .esl-game-show-btn {
	animation: esl-fun-pulse 1.2s ease-in-out infinite;
}
.esl-fun-modal--choice #esl-fun-modal-actions .esl-game-show-btn:hover {
	animation: none;
}
.esl-fun-choice-wrap {
	position: relative;
	padding: 0 44px;
}
.esl-fun-choice-emoji {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	font-size: clamp(1.9rem, 4.6vw, 2.9rem);
	filter: drop-shadow(0 4px 10px rgba(0,0,0,0.25));
	animation: esl-fun-emoji-bounce 1.2s ease-in-out infinite;
	pointer-events: none;
}
.esl-fun-choice-emoji--left { left: 4px; }
.esl-fun-choice-emoji--right { right: 4px; animation-delay: 160ms; }

@keyframes esl-fun-pop {
	0% { transform: translateY(8px) scale(0.96); opacity: 0.0; }
	100% { transform: translateY(0) scale(1); opacity: 1; }
}
@keyframes esl-fun-wobble {
	0% { transform: translateY(0) rotate(0deg); }
	18% { transform: translateY(0) rotate(-1.2deg); }
	38% { transform: translateY(0) rotate(1.1deg); }
	58% { transform: translateY(0) rotate(-0.8deg); }
	78% { transform: translateY(0) rotate(0.6deg); }
	100% { transform: translateY(0) rotate(0deg); }
}
@keyframes esl-fun-pulse {
	0%, 100% { transform: translateY(0) scale(1); filter: brightness(1); }
	50% { transform: translateY(-1px) scale(1.03); filter: brightness(1.05); }
}
@keyframes esl-fun-title-sparkle {
	0% { text-shadow: 0 2px 0 rgba(255,255,255,0.65), 0 8px 18px rgba(0,0,0,0.22); }
	35% { text-shadow: 0 2px 0 rgba(255,255,255,0.75), 0 10px 24px rgba(0,0,0,0.24), 0 0 26px rgba(34,197,94,0.45); }
	100% { text-shadow: 0 2px 0 rgba(255,255,255,0.65), 0 8px 18px rgba(0,0,0,0.22); }
}
@keyframes esl-fun-penalty-pulse {
	0%, 100% { transform: scale(1); }
	50% { transform: scale(1.02); }
}
@keyframes esl-fun-bonus-pop {
	0% { transform: translateY(6px) scale(0.92); }
	100% { transform: translateY(0) scale(1); }
}
@keyframes esl-fun-bonus-fadequick {
	0% { opacity: 1; }
	55% { opacity: 0.82; }
	100% { opacity: 0.9; }
}
@keyframes esl-fun-bonus-pulse {
	0%, 100% { transform: scale(1); }
	50% { transform: scale(1.035); }
}
@keyframes esl-fun-spark-burst {
	0% { opacity: 0; transform: translateX(-50%) scale(0.65); }
	22% { opacity: 0.95; transform: translateX(-50%) scale(1.05); }
	100% { opacity: 0; transform: translateX(-50%) scale(1.28); }
}
@keyframes esl-fun-spark-float {
	0%, 100% { transform: translateX(-50%) translateY(0); opacity: 0.35; }
	50% { transform: translateX(-50%) translateY(-8px); opacity: 0.65; }
}
@keyframes esl-fun-emoji-bounce {
	0%, 100% { transform: translateY(-50%); }
	50% { transform: translateY(calc(-50% - 5px)); }
}

/* Respect accessibility: reduce motion */
@media (prefers-reduced-motion: reduce) {
	.esl-fun-modal .esl-game-show-modal__front-inner,
	.esl-fun-modal--penalty .esl-game-show-modal__front-inner,
	.esl-fun-modal--choice #esl-fun-modal-actions .esl-game-show-btn,
	.esl-fun-modal--bonus #esl-fun-modal-title {
		animation: none !important;
	}
}

/* Styled replacement for browser alert() in gameplay flow */
.esl-game-notice-modal .esl-game-show-modal__backdrop {
	background: rgba(32, 20, 58, 0.48);
	backdrop-filter: blur(2px);
}
.esl-game-notice-modal .esl-game-show-modal__wrapper {
	max-width: 560px;
}
.esl-game-notice-modal__inner {
	padding: 18px 18px 16px;
	border-radius: 20px;
	border: 3px solid rgba(255,255,255,0.78);
	background:
		radial-gradient(circle at 20% 20%, rgba(255,255,255,0.58) 0%, rgba(255,255,255,0.0) 50%),
		linear-gradient(180deg, #fff7ed 0%, #fde68a 45%, #fb923c 100%);
	box-shadow: 0 16px 38px rgba(0,0,0,0.32), 0 0 24px rgba(251,146,60,0.24), inset 0 1px 0 rgba(255,255,255,0.88);
}
.esl-game-notice-modal__title {
	text-align: center;
	font-family: var(--esl-font-display);
	font-size: clamp(1.6rem, 3.8vw, 2.2rem);
	color: #0f172a;
	margin-bottom: 6px;
}
.esl-game-notice-modal__body {
	text-align: center;
	font-family: var(--esl-font-ui);
	font-size: clamp(1rem, 2vw, 1.2rem);
	font-weight: 800;
	color: #0f172a;
	line-height: 1.35;
}
.esl-game-notice-modal__actions {
	display: flex;
	justify-content: center;
	margin-top: 12px;
}
.esl-game-show-board-card .esl-board-card-lock {
	position: absolute;
	top: 4px;
	right: 4px;
	width: 22px;
	height: 22px;
	background: linear-gradient(135deg, #dc2626, #b91c1c);
	color: #fff;
	border-radius: 4px;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 12px;
	line-height: 1;
	pointer-events: none;
}
.esl-game-show-board-card:hover {
	opacity: 0.9;
	transform: scale(1.02);
}
.esl-game-show-board-card.is-played {
	opacity: 0.85;
	cursor: default;
	background: linear-gradient(180deg, #fecaca 0%, #f87171 40%, #dc2626 70%, #b91c1c 100%);
	color: #fff;
	border-color: rgba(0, 0, 0, 0.15);
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}
.esl-game-show-board-card.is-empty {
	opacity: 0.5;
	cursor: not-allowed;
	background: linear-gradient(180deg, #e5e7eb 0%, #9ca3af 100%);
	color: #4b5563;
}
.esl-game-show-board-card.is-empty:hover {
	opacity: 0.35;
	transform: none;
}

/* Question modal - flip-card: View Answer → turn around → Correct/Incorrect */
.esl-game-show-modal {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 100000;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 24px;
}
.esl-game-show-modal__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(45, 27, 78, 0.88);
}
.esl-game-show-modal__wrapper {
	position: fixed;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	width: calc(100% - 48px);
	max-width: 560px;
	perspective: 1200px;
	z-index: 1;
}
/* Question modal: JS may append scale() to transform — keep shrink centered on the viewport. */
#esl-game-question-modal .esl-game-show-modal__wrapper {
	transform-origin: center center;
}
.esl-game-show-modal__flip {
	position: relative;
	width: 100%;
	min-height: 0;
	transform-style: preserve-3d;
	transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}
.esl-game-show-modal__flip.is-flipped {
	transform: rotateY(180deg);
}
.esl-game-show-modal__front,
.esl-game-show-modal__back {
	width: 100%;
	backface-visibility: hidden;
	-webkit-backface-visibility: hidden;
	border-radius: 20px;
	overflow: hidden;
	box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4), 0 0 0 2px rgba(255, 255, 255, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.5);
}
/* Front in flow so flip gets height from content */
.esl-game-show-modal__front {
	position: relative;
	background: linear-gradient(180deg, #f0e6c8 0%, #e5d4a1 25%, #d4af37 60%, #b8860b 100%);
	border: 2px solid rgba(255, 255, 255, 0.5);
	visibility: visible;
	opacity: 1;
	pointer-events: auto;
}
.esl-game-show-modal__back {
	position: absolute;
	inset: 0;
	transform: rotateY(180deg);
	background: linear-gradient(180deg, #f0e6c8 0%, #e5d4a1 25%, #d4af37 60%, #b8860b 100%);
	border: 2px solid rgba(255, 255, 255, 0.5);
	visibility: hidden;
	opacity: 0;
	pointer-events: none;
}
.esl-game-show-modal__flip.is-flipped .esl-game-show-modal__front {
	visibility: hidden;
	opacity: 0;
	pointer-events: none;
}
.esl-game-show-modal__flip.is-flipped .esl-game-show-modal__back {
	visibility: visible;
	opacity: 1;
	pointer-events: auto;
}
.esl-game-show-modal__front-inner {
	position: relative;
	padding: 36px 32px 32px;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 26px;
	min-height: 260px;
}

/* Bottom row: centered View Answer + countdown on the right */
.esl-game-show-modal__view-row {
	display: grid;
	grid-template-columns: 1fr auto 1fr;
	align-items: center;
	width: 100%;
	max-width: 100%;
	gap: 10px;
	align-self: stretch;
}

.esl-game-show-modal__view-row-spacer {
	display: block;
	min-width: 0;
}

.esl-game-show-modal__view-row .esl-game-show-btn--view-answer {
	grid-column: 2;
	justify-self: center;
	margin-top: 0;
}

.esl-game-show-modal__view-row-timer {
	grid-column: 3;
	justify-self: end;
	display: flex;
	align-items: center;
	justify-content: flex-end;
	min-width: 64px;
	min-height: 64px;
}

/* Question modal: countdown ring (bottom-right row with View Answer); pulses red when time is up */
.esl-game-show-modal__view-row-timer .esl-question-countdown {
	position: relative;
	width: 64px;
	height: 64px;
	flex-shrink: 0;
	z-index: 1;
	pointer-events: none;
}

.esl-question-countdown {
	width: 64px;
	height: 64px;
	pointer-events: none;
}

.esl-question-countdown__svg {
	display: block;
	width: 64px;
	height: 64px;
	filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.2));
}

.esl-question-countdown__arc {
	transition: stroke 0.35s ease;
}

.esl-question-countdown__value {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 1.35rem;
	font-weight: 800;
	color: #2c1810;
	text-shadow: 0 1px 0 rgba(255, 255, 255, 0.55), 0 0 1px rgba(255, 255, 255, 0.4);
	line-height: 1;
}

.esl-question-countdown--expired .esl-question-countdown__arc {
	stroke: #dc2626 !important;
	animation: esl-qcd-pulse-ring 0.85s ease-in-out infinite;
}

.esl-question-countdown--expired .esl-question-countdown__value {
	color: #991b1b;
	animation: esl-qcd-pulse-text 0.85s ease-in-out infinite;
}

@media (prefers-reduced-motion: reduce) {
	.esl-question-countdown--expired .esl-question-countdown__arc,
	.esl-question-countdown--expired .esl-question-countdown__value {
		animation: none;
	}
}

@keyframes esl-qcd-pulse-ring {
	0%,
	100% {
		opacity: 1;
		filter: drop-shadow(0 0 2px rgba(220, 38, 38, 0.5));
	}
	50% {
		opacity: 0.65;
		filter: drop-shadow(0 0 12px rgba(220, 38, 38, 0.95));
	}
}

@keyframes esl-qcd-pulse-text {
	0%,
	100% {
		transform: scale(1);
		opacity: 1;
	}
	50% {
		transform: scale(1.07);
		opacity: 0.88;
	}
}
.esl-game-show-modal__back-inner {
	padding: 36px 32px 32px;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 26px;
	min-height: 0;
}
.esl-game-show-modal__image {
	text-align: center;
}
.esl-game-show-modal__image img,
.esl-modal-question-img {
	max-width: 100%;
	max-height: 200px;
	height: auto;
	border-radius: 14px;
}
/* Audio player - colorful custom design */
.esl-game-show-modal__audio {
	width: 100%;
	display: flex;
	justify-content: center;
	align-items: center;
}

.esl-audio-player {
	display: grid;
	grid-template-columns: 52px minmax(110px, 1fr) auto;
	align-items: center;
	column-gap: 12px;
	width: min(100%, 460px);
	padding: 10px 14px;
	background: linear-gradient(135deg, #c4b5fd 0%, #a78bfa 50%, #8b5cf6 100%);
	border: 2px solid #a78bfa;
	border-radius: 14px;
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.esl-audio-player__play {
	flex-shrink: 0;
	width: 52px;
	height: 52px;
	border: none;
	border-radius: 50%;
	background: linear-gradient(145deg, #8b5cf6 0%, #7c3aed 50%, #6d28d9 100%);
	color: #fff;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0 4px 12px rgba(124, 58, 237, 0.4);
	transition: transform 0.15s, box-shadow 0.15s;
	position: relative;
	z-index: 2;
}

.esl-audio-player__play:hover {
	transform: scale(1.05);
	box-shadow: 0 6px 20px rgba(124, 58, 237, 0.5);
}

.esl-audio-player__play:active {
	transform: scale(0.98);
}

.esl-audio-player__icon {
	display: inline-block;
	color: #fff;
}

.esl-audio-player__icon--play {
	width: 0;
	height: 0;
	border-top: 16px solid transparent;
	border-bottom: 16px solid transparent;
	border-left: 24px solid #fff;
	margin-left: 6px;
}

.esl-audio-player__icon--pause {
	display: none;
	font-size: 28px;
	line-height: 1;
	letter-spacing: -3px;
}

.esl-audio-player.is-playing .esl-audio-player__icon--play {
	display: none;
}

.esl-audio-player.is-playing .esl-audio-player__icon--pause {
	display: inline;
}

.esl-audio-player__track {
	width: 100%;
	height: 8px;
	background: rgba(255, 255, 255, 0.5);
	border-radius: 4px;
	cursor: pointer;
	overflow: hidden;
	min-width: 0;
	align-self: center;
	position: relative;
	top: 1px;
	margin-left: 6px;
	z-index: 1;
}

.esl-audio-player__progress {
	height: 100%;
	width: 0%;
	background: linear-gradient(90deg, #4ade80, #22c55e);
	border-radius: 4px;
	transition: width 0.1s;
}

.esl-audio-player__time {
	flex-shrink: 0;
	font-size: 0.85rem;
	color: rgba(255, 255, 255, 0.95);
	font-variant-numeric: tabular-nums;
	white-space: nowrap;
	min-width: 78px;
	text-align: right;
}

.esl-audio-player__el {
	display: none;
}
@media (max-width: 520px) {
	.esl-audio-player {
		grid-template-columns: 46px minmax(90px, 1fr) auto;
		column-gap: 10px;
		padding: 8px 10px;
	}
	.esl-audio-player__play {
		width: 46px;
		height: 46px;
	}
	.esl-audio-player__icon--play {
		border-top-width: 13px;
		border-bottom-width: 13px;
		border-left-width: 20px;
		margin-left: 5px;
	}
	.esl-audio-player__time {
		font-size: 0.8rem;
		min-width: 70px;
	}
}
.esl-game-show-modal__question {
	font-size: clamp(1.1rem, 2vw, 1.35rem);
	color: #1c1917;
	line-height: 1.55;
	text-align: center;
	font-weight: 500;
	font-family: var(--esl-font-questions);
}
.esl-game-show-modal__question .esl-question-instruction {
	display: block;
}
.esl-game-show-modal__question .esl-question-sentence {
	display: block;
	margin-top: 16px;
}
.esl-game-show-modal__question img {
	max-width: 100%;
	height: auto;
}
.esl-game-show-modal__options {
	width: 100%;
	text-align: center;
	font-family: var(--esl-font-questions);
}
/* 4 equal rectangles in 2x2 grid */
.esl-modal-options-grid.esl-modal-options-2x2 {
	display: grid;
	grid-template-columns: 1fr 1fr;
	grid-template-rows: 1fr 1fr;
	gap: 12px;
	width: 100%;
	max-width: 480px;
	margin: 0 auto;
	min-height: 120px;
}
.esl-modal-options-grid.esl-modal-options-2x2 .esl-modal-option {
	display: flex;
	align-items: center;
	justify-content: center;
	text-align: center;
	min-height: 56px;
	height: 100%;
}
/* 2 equal columns for True/False, Well said */
.esl-modal-options-grid.esl-modal-options-2col {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 16px;
	width: 100%;
	max-width: 360px;
	margin: 0 auto;
}
.esl-modal-options-grid.esl-modal-options-2col .esl-modal-option {
	min-height: 56px;
	display: flex;
	align-items: center;
	justify-content: center;
}
.esl-modal-option {
	padding: 14px 16px;
	background: linear-gradient(180deg, #fffef7 0%, #f5f0e0 100%);
	border: 2px solid #b8860b;
	border-radius: 12px;
	color: #1c1917;
	font-size: 1rem;
	font-weight: 500;
	font-family: var(--esl-font-questions);
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.8);
	cursor: pointer;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.esl-modal-option:hover {
	background: linear-gradient(180deg, #fff 0%, #faf5e8 100%);
	border-color: #d4af37;
}
.esl-modal-option.esl-modal-option--selected {
	border: 4px solid #2563eb;
	box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.3);
}
.esl-modal-option-badge {
	-webkit-appearance: none;
	appearance: none;
	display: inline-block;
	margin: 0;
	padding: 10px 20px;
	background: rgba(255, 255, 255, 0.7);
	border-radius: 10px;
	color: #1c1917;
	font: inherit;
	font-size: 1rem;
	font-style: italic;
	font-family: var(--esl-font-questions);
	border: 2px solid #b8860b;
	cursor: pointer;
	text-align: center;
	line-height: 1.3;
	box-sizing: border-box;
}
.esl-modal-option-badge:hover {
	background: rgba(255, 255, 255, 0.9);
	border-color: #d4af37;
}
.esl-modal-option-badge:focus-visible {
	outline: 3px solid rgba(37, 99, 235, 0.55);
	outline-offset: 3px;
}
.esl-modal-writing-hint {
	margin-bottom: 10px;
	color: #374151;
	font-size: 0.95rem;
	text-align: center;
}
.esl-modal-options-unscramble {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 8px;
}
.esl-modal-options-unscramble .esl-modal-word {
	display: inline-block;
	padding: 10px 16px;
	background: rgba(255, 255, 255, 0.15);
	border-radius: 10px;
	color: #fff;
	font-size: 1rem;
}
.esl-modal-options-order .esl-modal-part {
	padding: 12px 18px;
	margin: 8px 0;
	background: rgba(255, 255, 255, 0.12);
	border-left: 4px solid rgba(255, 255, 255, 0.4);
	border-radius: 8px;
	color: #fff;
	font-size: 1rem;
	text-align: left;
}
/* View Answer button */
.esl-game-show-btn--view-answer {
	background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%) !important;
	color: #fff !important;
	border: none !important;
	padding: 14px 32px;
	font-size: 1.1rem;
	font-weight: 700;
	border-radius: 12px;
	box-shadow: 0 4px 16px rgba(245, 158, 11, 0.4);
	transition: transform 0.15s, box-shadow 0.2s;
	margin-top: 4px;
}
.esl-game-show-btn--view-answer:hover {
	transform: translateY(-2px);
	box-shadow: 0 6px 24px rgba(245, 158, 11, 0.5);
}
/* Back: back-to-question icon (top right) */
.esl-game-show-modal__back-btn {
	position: absolute;
	top: 16px;
	right: 16px;
	width: 40px;
	height: 40px;
	border: none;
	border-radius: 10px;
	background: rgba(184, 134, 11, 0.5);
	color: #1c1917;
	font-size: 22px;
	line-height: 1;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: background 0.2s;
	z-index: 2;
	border: 2px solid rgba(0, 0, 0, 0.15);
}
.esl-game-show-modal__back-btn:hover {
	background: rgba(184, 134, 11, 0.75);
}

/* Back: correct answer + Correct/Incorrect */
.esl-game-show-modal__back-label {
	font-size: 0.85rem;
	text-transform: uppercase;
	letter-spacing: 0.1em;
	color: #374151;
	margin-bottom: 4px;
}
.esl-game-show-modal__answer {
	font-size: 1.25rem;
	line-height: 1.5;
	color: #1c1917;
	text-align: center;
	font-weight: 600;
	font-family: var(--esl-font-questions);
	padding: 20px 28px;
	background: rgba(255, 255, 255, 0.5);
	border-radius: 14px;
	border: 2px solid rgba(184, 134, 11, 0.5);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 0;
	width: 100%;
	max-width: 400px;
	box-sizing: border-box;
}

/* RTL rendering for Arabic subject/questions in game question modal. */
.esl-game-question-modal--rtl .esl-game-show-modal__question,
.esl-game-question-modal--rtl .esl-game-show-modal__answer,
.esl-game-question-modal--rtl .esl-modal-option,
.esl-game-question-modal--rtl .esl-modal-option-badge,
.esl-game-question-modal--rtl .esl-modal-writing-hint,
.esl-game-question-modal--rtl .esl-modal-options-unscramble,
.esl-game-question-modal--rtl .esl-modal-options-order .esl-modal-part {
	direction: rtl;
	text-align: right;
	unicode-bidi: plaintext;
}
.esl-game-question-modal--rtl .esl-modal-options-grid.esl-modal-options-2x2 .esl-modal-option,
.esl-game-question-modal--rtl .esl-modal-options-grid.esl-modal-options-2col .esl-modal-option {
	justify-content: flex-end;
}
.esl-game-question-modal--rtl .esl-modal-options-grid.esl-modal-options-2col--tf .esl-modal-option {
	justify-content: center;
}
.esl-game-question-modal--rtl .esl-modal-options-grid.esl-modal-options-2col--tf .esl-modal-option-text {
	justify-content: center;
	text-align: center;
	direction: ltr;
}
.esl-game-question-modal--rtl .esl-modal-option-text {
	display: inline-flex;
	align-items: center;
	gap: 0;
	width: 100%;
	justify-content: flex-end;
}
.esl-game-question-modal--rtl .esl-modal-option-index {
	flex: 0 0 auto;
	font-weight: 700;
	margin-left: 6px;
}
.esl-game-show-modal__actions {
	display: flex;
	gap: 16px;
	justify-content: center;
	flex-wrap: wrap;
}
.esl-game-show-modal__actions .esl-game-show-btn {
	border: 2px solid rgba(255, 255, 255, 0.5);
}

/* Explanation popup (overlays modal) */
.esl-explanation-popup {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 100001;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 24px;
}
.esl-explanation-popup__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.6);
}
.esl-explanation-popup__content {
	position: relative;
	background: linear-gradient(180deg, #f0e6c8 0%, #e5d4a1 30%, #d4af37 70%, #b8860b 100%);
	border-radius: 16px;
	padding: 28px 32px 32px;
	max-width: 420px;
	border: 2px solid rgba(255, 255, 255, 0.6);
	box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.7);
	width: 100%;
	max-height: 70vh;
	overflow-y: auto;
}
.esl-explanation-popup__close {
	position: absolute;
	top: 12px;
	right: 12px;
	width: 36px;
	height: 36px;
	border: none;
	border-radius: 8px;
	background: rgba(184, 134, 11, 0.4);
	color: #1c1917;
	font-size: 24px;
	line-height: 1;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: background 0.2s;
	border: 2px solid rgba(0, 0, 0, 0.15);
}
.esl-explanation-popup__close:hover {
	background: rgba(184, 134, 11, 0.6);
}
.esl-explanation-popup__title {
	margin: 0 0 16px;
	font-size: 1.2rem;
	color: #1c1917;
}
.esl-explanation-popup__body {
	font-size: 1rem;
	line-height: 1.6;
	color: #292524;
}

/* Category locked popup (click on closed category card) */
.esl-category-locked-popup {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 100002;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 24px;
}
.esl-category-locked-popup__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.6);
}
.esl-category-locked-popup__content {
	position: relative;
	background: linear-gradient(180deg, #f0e6c8 0%, #e5d4a1 30%, #d4af37 70%, #b8860b 100%);
	border-radius: 16px;
	padding: 28px 32px 32px;
	max-width: 380px;
	border: 2px solid rgba(255, 255, 255, 0.6);
	box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.7);
	width: 100%;
	text-align: center;
}
.esl-category-locked-popup__icon {
	display: block;
	font-size: 2.5rem;
	margin-bottom: 12px;
}
.esl-category-locked-popup__title {
	margin: 0 0 12px;
	font-size: 1.25rem;
	color: #1c1917;
}
.esl-category-locked-popup__message {
	margin: 0 0 20px;
	font-size: 0.95rem;
	line-height: 1.5;
	color: #292524;
}
.esl-category-locked-popup__content .esl-game-show-btn {
	display: inline-block;
}

.esl-game-show-question-area {
	flex: 1;
	display: flex;
	flex-direction: column;
	padding: 24px;
	gap: 20px;
	overflow-y: auto;
}
.esl-game-show-question {
	font-size: clamp(1.1rem, 2vw, 1.4rem);
	color: #fff;
	line-height: 1.5;
}
.esl-game-show-answers {
	display: flex;
	flex-direction: column;
	gap: 10px;
}
.esl-game-show-answer {
	padding: 14px 18px;
	background: rgba(255, 255, 255, 0.1);
	border: 2px solid rgba(255, 255, 255, 0.2);
	border-radius: 10px;
	color: #fff;
	font-size: 1rem;
	cursor: pointer;
	transition: background 0.2s, border-color 0.2s;
}
.esl-game-show-answer:hover {
	background: rgba(255, 255, 255, 0.15);
	border-color: rgba(255, 255, 255, 0.4);
}
.esl-game-show-answer.is-correct {
	background: rgba(34, 197, 94, 0.3);
	border-color: #22c55e;
}
.esl-game-show-answer.is-wrong {
	background: rgba(239, 68, 68, 0.2);
	border-color: #ef4444;
}

.esl-game-show-actions {
	display: flex;
	gap: 12px;
	flex-wrap: wrap;
}

/* End screen — scale wrap/inner: JS scales `.esl-game-show-end-scale-inner` in narrow fullscreen (same idea as setup center). */
.esl-game-show-end-scale-wrap {
	flex: 1 1 auto;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	min-height: 0;
	min-width: 0;
	overflow: hidden;
	box-sizing: border-box;
}
.esl-game-show-end-scale-inner {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	max-width: 100%;
	min-width: 0;
	box-sizing: border-box;
}

/* End screen - kid-friendly, celebratory design */
.esl-game-show-end-layout {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 20px;
	height: auto;
	min-height: min-content;
	max-width: 100%;
	padding: 24px;
	box-sizing: border-box;
}

/* Score frames at top - side by side */
.esl-end-scores {
	display: flex;
	gap: 24px;
	align-items: stretch;
	margin-bottom: 8px;
}
.esl-end-score-frame {
	width: 140px;
	padding: 16px 24px;
	border-radius: 16px;
	text-align: center;
	box-shadow: 0 6px 24px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.6);
	border: 2px solid rgba(255, 255, 255, 0.5);
	background: linear-gradient(180deg, #f0e6c8 0%, #e5d4a1 40%, #d4af37 70%, #b8860b 100%);
}
.esl-end-score-frame--team1 {
	background: linear-gradient(180deg, #f0e6c8 0%, #e5d4a1 40%, #d4af37 70%, #b8860b 100%);
}
.esl-end-score-frame--team2 {
	background: linear-gradient(180deg, #f0e6c8 0%, #e5d4a1 40%, #d4af37 70%, #b8860b 100%);
}
.esl-end-score-team {
	font-size: 1rem;
	font-weight: 700;
	color: #1c1917;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	margin-bottom: 8px;
}
.esl-end-score-value {
	font-size: 2.5rem;
	font-weight: 800;
	color: #1c1917;
	line-height: 1;
	text-shadow: 0 1px 2px rgba(255, 255, 255, 0.6);
}

/* Trophy with sparkles */
.esl-end-trophy-wrap {
	position: relative;
	margin: 8px 0;
}
.esl-end-trophy {
	font-size: clamp(80px, 18vw, 140px);
	line-height: 1;
	display: block;
	animation: esl-end-trophy-bounce 0.6s ease-out;
}
@keyframes esl-end-trophy-bounce {
	0% { transform: scale(0); opacity: 0; }
	50% { transform: scale(1.15); }
	70% { transform: scale(0.92); }
	100% { transform: scale(1); opacity: 1; }
}

/* Sparkle animation around trophy */
.esl-end-sparkles {
	position: absolute;
	inset: -20px;
	pointer-events: none;
}
.esl-end-sparkle {
	position: absolute;
	width: 12px;
	height: 12px;
	background: radial-gradient(circle, #ffd700 40%, #ffeb3b 70%, transparent 100%);
	border-radius: 50%;
	animation: esl-end-sparkle-pulse 1.2s ease-in-out infinite;
	opacity: 0.9;
}
.esl-end-sparkle--1 { top: 0; left: 50%; margin-left: -6px; animation-delay: 0s; }
.esl-end-sparkle--2 { top: 25%; right: 0; animation-delay: 0.2s; }
.esl-end-sparkle--3 { bottom: 25%; right: 0; animation-delay: 0.4s; }
.esl-end-sparkle--4 { bottom: 0; left: 50%; margin-left: -6px; animation-delay: 0.6s; }
.esl-end-sparkle--5 { bottom: 25%; left: 0; animation-delay: 0.8s; }
.esl-end-sparkle--6 { top: 25%; left: 0; animation-delay: 1s; }
@keyframes esl-end-sparkle-pulse {
	0%, 100% { transform: scale(0.8); opacity: 0.6; }
	50% { transform: scale(1.3); opacity: 1; }
}

/* "The winner is" label */
.esl-end-winner-label {
	font-size: clamp(1.25rem, 2.5vw, 1.75rem);
	font-weight: 800;
	color: #16a34a;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2), 0 0 0 1px rgba(22, 163, 74, 0.3);
}

/* Winner name frame */
.esl-end-winner-frame {
	padding: 20px 40px;
	border-radius: 16px;
	background: linear-gradient(180deg, #f0e6c8 0%, #e5d4a1 35%, #d4af37 70%, #b8860b 100%);
	border: 2px solid rgba(255, 255, 255, 0.6);
	box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.7);
	min-width: 200px;
	text-align: center;
}
.esl-end-winner-name {
	font-size: clamp(1.5rem, 4vw, 2.25rem);
	font-weight: 800;
	color: #1c1917;
	text-shadow: 0 1px 2px rgba(255, 255, 255, 0.6);
	letter-spacing: 0.02em;
}

.esl-end-play-again {
	margin-top: 16px;
}

/* ========================================
   Admin Question Preview Modal (flip-card)
   Professional, cheerful game show preview
   ======================================== */
.esl-preview-modal {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 100000;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 24px;
	font-family: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}
.esl-preview-modal__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.6);
	backdrop-filter: blur(4px);
}
.esl-preview-modal__wrapper {
	position: relative;
	width: 100%;
	max-width: 520px;
	perspective: 1200px;
}
.esl-preview-flip {
	position: relative;
	width: 100%;
	min-height: 380px;
	transform-style: preserve-3d;
	transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}
.esl-preview-flip.is-flipped {
	transform: rotateY(180deg);
}
.esl-preview-front,
.esl-preview-back {
	position: absolute;
	width: 100%;
	top: 0;
	left: 0;
	backface-visibility: hidden;
	border-radius: 20px;
	overflow: hidden;
	box-shadow: 0 25px 60px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(255, 255, 255, 0.1);
}
.esl-preview-front {
	background: linear-gradient(160deg, #7c3aed 0%, #5b21b6 50%, #4c1d95 100%);
}
.esl-preview-back {
	transform: rotateY(180deg);
	background: linear-gradient(160deg, #ea580c 0%, #c2410c 50%, #9a3412 100%);
}
.esl-preview-back__explanation-btn {
	position: absolute;
	top: 16px;
	left: 16px;
	width: 40px;
	height: 40px;
	border: none;
	border-radius: 10px;
	background: rgba(255, 255, 255, 0.2);
	color: #fff;
	font-size: 22px;
	font-weight: 700;
	line-height: 1;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: background 0.2s;
	z-index: 2;
}
.esl-preview-back__explanation-btn:hover {
	background: rgba(255, 255, 255, 0.35);
}
.esl-preview-back__back-btn {
	position: absolute;
	top: 16px;
	right: 16px;
	width: 40px;
	height: 40px;
	border: none;
	border-radius: 10px;
	background: rgba(255, 255, 255, 0.2);
	color: #fff;
	font-size: 22px;
	line-height: 1;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: background 0.2s;
	z-index: 2;
}
.esl-preview-back__back-btn:hover {
	background: rgba(255, 255, 255, 0.35);
}
.esl-preview-front__inner,
.esl-preview-back__inner {
	padding: 48px 28px 28px;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 20px;
	min-height: 360px;
}
.esl-preview-front__audio {
	width: 100%;
	max-width: 340px;
}
.esl-preview-front__audio audio {
	width: 100%;
	height: 44px;
	border-radius: 10px;
	background: rgba(255, 255, 255, 0.15);
}
.esl-preview-front__image {
	text-align: center;
}
.esl-preview-front__image img {
	max-width: 100%;
	max-height: 160px;
	border-radius: 12px;
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}
.esl-preview-front__question {
	font-size: 1.15rem;
	line-height: 1.55;
	color: #fff;
	text-align: center;
	font-weight: 500;
}
.esl-preview-front__question .esl-question-instruction {
	display: block;
}
.esl-preview-front__question .esl-question-sentence {
	display: block;
	margin-top: 20px;
}
.esl-preview-front__question img {
	max-width: 100%;
	height: auto;
}
.esl-preview-front__options {
	width: 100%;
	text-align: center;
}
/* 2x2 grid for 4 options */
.esl-preview-options-grid.esl-preview-options-2x2 {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 12px;
}
/* 2 columns for True/False, Well said */
.esl-preview-options-grid.esl-preview-options-2col {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 16px;
	max-width: 360px;
	margin: 0 auto;
}
.esl-preview-options-grid.esl-preview-options-row {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 10px;
}
.esl-preview-option {
	padding: 14px 18px;
	background: rgba(255, 255, 255, 0.18);
	border: 2px solid rgba(255, 255, 255, 0.35);
	border-radius: 12px;
	color: #fff;
	font-size: 1rem;
	font-weight: 500;
	text-align: center;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
	transition: background 0.2s, border-color 0.2s;
}
.esl-preview-option:hover {
	background: rgba(255, 255, 255, 0.25);
	border-color: rgba(255, 255, 255, 0.5);
}
.esl-preview-option-badge {
	display: inline-block;
	padding: 10px 20px;
	background: rgba(255, 255, 255, 0.2);
	border-radius: 10px;
	color: #fff;
	font-size: 1rem;
	font-style: italic;
}
.esl-preview-writing-hint {
	font-size: 0.95rem;
	color: rgba(255, 255, 255, 0.95);
	margin-bottom: 10px;
	text-align: center;
}
.esl-preview-options-unscramble {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 8px;
}
.esl-preview-word {
	display: inline-block;
	padding: 10px 16px;
	background: rgba(255, 255, 255, 0.15);
	border-radius: 10px;
	color: #fff;
	font-size: 1rem;
}
.esl-preview-options-order .esl-preview-part {
	padding: 12px 18px;
	margin: 8px 0;
	background: rgba(255, 255, 255, 0.12);
	border-left: 4px solid rgba(255, 255, 255, 0.4);
	border-radius: 8px;
	color: #fff;
	font-size: 1rem;
	text-align: left;
}
/* View Answer button */
.esl-preview-btn.esl-preview-btn--view-answer {
	background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
	color: #fff;
	border: none;
	padding: 14px 32px;
	font-size: 1.1rem;
	font-weight: 700;
	border-radius: 12px;
	cursor: pointer;
	box-shadow: 0 4px 16px rgba(245, 158, 11, 0.4);
	transition: transform 0.15s, box-shadow 0.2s;
	margin-top: 40px;
}
.esl-preview-btn.esl-preview-btn--view-answer:hover {
	transform: translateY(-2px);
	box-shadow: 0 6px 24px rgba(245, 158, 11, 0.5);
}
/* Back: correct answer + Correct/Incorrect */
.esl-preview-back__label {
	font-size: 0.85rem;
	text-transform: uppercase;
	letter-spacing: 0.1em;
	color: rgba(255, 255, 255, 0.85);
	margin-bottom: 4px;
}
.esl-preview-back__answer {
	font-size: 1.25rem;
	line-height: 1.5;
	color: #fff;
	text-align: center;
	font-weight: 600;
	padding: 20px 24px;
	background: rgba(255, 255, 255, 0.12);
	border-radius: 14px;
	border: 2px solid rgba(255, 255, 255, 0.25);
	flex: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 80px;
}
.esl-preview-back__actions {
	display: flex;
	gap: 16px;
	justify-content: center;
	flex-wrap: wrap;
}
.esl-preview-btn {
	padding: 14px 28px;
	font-size: 1.05rem;
	font-weight: 700;
	border: none;
	border-radius: 12px;
	cursor: pointer;
	transition: transform 0.15s, box-shadow 0.2s;
}
.esl-preview-btn:hover {
	transform: translateY(-2px);
}
.esl-preview-btn.esl-preview-btn--green {
	background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
	color: #fff;
	box-shadow: 0 4px 16px rgba(34, 197, 94, 0.35);
}
.esl-preview-btn.esl-preview-btn--green:hover {
	box-shadow: 0 6px 24px rgba(34, 197, 94, 0.45);
}
.esl-preview-btn.esl-preview-btn--red {
	background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
	color: #fff;
	box-shadow: 0 4px 16px rgba(239, 68, 68, 0.35);
}
.esl-preview-btn.esl-preview-btn--red:hover {
	box-shadow: 0 6px 24px rgba(239, 68, 68, 0.45);
}
/* Close button (X) */
.esl-preview-modal__close {
	position: absolute;
	top: -44px;
	right: 0;
	width: 36px;
	height: 36px;
	border: none;
	background: rgba(255, 255, 255, 0.15);
	color: #fff;
	font-size: 24px;
	line-height: 1;
	cursor: pointer;
	border-radius: 10px;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: background 0.2s;
	z-index: 10;
}
.esl-preview-modal__close:hover {
	background: rgba(255, 255, 255, 0.25);
}

/* Responsive - smaller viewports */
@media (max-width: 1024px) {
	/*
	 * Android Chrome: do NOT pin #esl-game-show to 100dvh with overflow:hidden — that removed
	 * every escape hatch if inner flex scroll failed. Grow with content and let the page scroll.
	 */
	.esl-game-show:not(.is-fullscreen) {
		width: 100%;
		max-width: 100%;
		height: auto;
		min-height: 100vh;
		min-height: 100dvh;
		overflow-x: hidden;
		overflow-y: visible;
		-webkit-overflow-scrolling: touch;
	}
	.esl-game-show:not(.is-fullscreen) .esl-game-show-screen {
		height: auto;
		min-height: 0;
	}
	.esl-game-show-screen {
		padding: 12px;
		min-width: 0;
		max-width: 100%;
	}
	.esl-game-show-layout {
		display: flex;
		flex-direction: column;
		gap: 12px;
		min-width: 0;
		max-width: 100%;
		flex: 1 0 auto;
		overflow: visible;
	}
	.esl-game-show-panel {
		min-width: 0;
		max-width: 100%;
	}
	.esl-game-show-panel--team1 {
		order: 1;
		flex: 0 0 auto;
	}
	.esl-game-show-panel--center,
	.esl-game-show-panel--game {
		order: 2;
		flex: 0 0 auto;
		width: 100%;
		min-height: 260px;
		min-width: 0;
		max-width: 100%;
		overflow-x: hidden;
		overflow-y: visible;
	}
	/* Undo desktop inner scroll — middle grows; document/window scrolls (finger works on Chrome). */
	.esl-game-show:not(.is-fullscreen) .esl-game-show-panel.esl-game-show-panel--center {
		overflow-y: visible;
		padding-right: 0;
	}
	.esl-game-show:not(.is-fullscreen) .esl-game-show-board {
		overflow: visible;
	}
	.esl-game-show:not(.is-fullscreen) .esl-game-show-board-grid {
		overflow-x: hidden;
		overflow-y: visible;
	}
	/* Embedded setup: natural stack + height live in base `#esl-game-show[data-state="setup"]` + `.esl-game-show-setup` rules. */
	/*
	 * Chrome Android: `overscroll-behavior: contain` on the center panel (base CSS) stops scroll
	 * chaining to the document when the panel itself is not a scroll container — finger drags on
	 * the yellow block feel "dead". Reset to auto on the non-fullscreen stack + allow vertical pan.
	 */
	.esl-game-show:not(.is-fullscreen),
	.esl-game-show:not(.is-fullscreen) .esl-game-show-layout,
	.esl-game-show:not(.is-fullscreen) .esl-game-show-panel.esl-game-show-panel--center,
	.esl-game-show:not(.is-fullscreen) .esl-game-show-panel--game,
	.esl-game-show:not(.is-fullscreen) .esl-game-show-setup,
	.esl-game-show:not(.is-fullscreen) .esl-game-show-board,
	.esl-game-show:not(.is-fullscreen) .esl-game-show-board-grid {
		overscroll-behavior: auto;
		touch-action: pan-y pinch-zoom;
	}
	.esl-game-show.is-fullscreen[data-state="game"] .esl-game-show-panel--center,
	.esl-game-show.is-fullscreen .esl-game-show-panel--game {
		flex: 1 1 auto;
		min-height: 0;
		overflow-x: hidden;
		overflow-y: auto;
		-webkit-overflow-scrolling: touch;
	}
	.esl-game-show.is-fullscreen[data-state="setup"] .esl-game-show-panel--center {
		overflow-x: hidden !important;
		overflow-y: visible !important;
		-webkit-overflow-scrolling: touch;
	}
	.esl-game-show.is-fullscreen .esl-game-show-panel.esl-game-show-panel--center {
		padding-left: 0;
		padding-right: 0;
	}
	.esl-game-show.is-fullscreen .esl-game-show-board {
		flex: 1 1 auto;
		min-height: 0;
		overflow: hidden;
	}
	.esl-game-show.is-fullscreen .esl-game-show-board-grid {
		overflow-y: auto;
		-webkit-overflow-scrolling: touch;
		overscroll-behavior: contain;
	}
	.esl-game-show-panel--team2 {
		order: 3;
		flex: 0 0 auto;
	}
	.esl-game-show-panel--team1,
	.esl-game-show-panel--team2 {
		flex-direction: row;
		flex-wrap: wrap;
		gap: 8px;
	}
	.esl-panel__score-circle {
		width: min(70%, 120px);
		max-width: 120px;
	}
	.esl-game-show-panel__header {
		order: 1;
		flex: 1;
		min-width: 0;
	}
	.esl-game-show-panel__score {
		order: 2;
		padding: 8px 16px;
		min-width: 0;
	}
	.esl-game-show-panel__players {
		order: 3;
		width: 100%;
		flex: 0 0 auto;
		max-height: 80px;
		min-width: 0;
	}
	.esl-game-show-board,
	.esl-game-show-setup {
		min-width: 0;
		overflow-x: hidden;
	}
	.esl-game-show-board-grid {
		min-width: 0;
	}
	/* Mobile fullscreen baseline: bind viewport height; in-game keeps a single internal scroll owner. */
	.esl-game-show.is-fullscreen {
		height: 100vh;
		height: 100dvh;
		max-height: 100vh;
		max-height: 100dvh;
		overflow: hidden;
		scrollbar-width: none;
		-ms-overflow-style: none;
	}
	.esl-game-show.is-fullscreen::-webkit-scrollbar {
		width: 0;
		height: 0;
		display: none;
	}
	/* Setup: tall stacks scroll on the fullscreen element — no nested column scroll (overscroll only here). */
	#esl-game-show.is-fullscreen[data-state="setup"] {
		max-height: none;
		overflow-x: hidden;
		/* No page scrollbar — setup stack scales to fit inside the fullscreen box. */
		overflow-y: hidden !important;
		-webkit-overflow-scrolling: touch;
		overscroll-behavior: none;
	}
	.esl-game-show.is-fullscreen .esl-game-show-screen--active {
		height: 100%;
		min-height: 0;
		padding: 10px 5px;
	}
	.esl-game-show.is-fullscreen[data-state="setup"] .esl-game-show-screen--active {
		box-sizing: border-box;
		height: auto;
		min-height: min-content;
		overflow-x: hidden;
		overflow-y: hidden;
		padding: max(0px, env(safe-area-inset-top, 0px)) 4px max(0px, env(safe-area-inset-bottom, 0px)) 4px;
		-webkit-overflow-scrolling: touch;
	}
	.esl-game-show.is-fullscreen[data-state="setup"] .esl-game-show-layout,
	.esl-game-show.is-fullscreen[data-state="setup"] .esl-game-show-panel--game,
	.esl-game-show.is-fullscreen[data-state="setup"] .esl-game-show-setup,
	.esl-game-show.is-fullscreen[data-state="setup"] .esl-game-show-board,
	.esl-game-show.is-fullscreen[data-state="setup"] .esl-game-show-board-grid {
		overflow: visible !important;
		overflow-y: visible !important;
		min-height: 0;
	}
	#esl-game-show.is-fullscreen[data-state="setup"] .esl-game-show-panel.esl-game-show-panel--center {
		flex: 1 1 auto;
		min-height: 0;
		height: auto;
		max-height: none;
	}
}

/*
 * Mobile fullscreen + landscape: Team 1 | center | Team 2 in one row (setup + in-game).
 * Portrait fullscreen keeps the stacked layout from the block above.
 */
@media (max-width: 1024px) and (orientation: landscape) {
	/* Fullscreen landscape: one viewport-tall canvas (team | center | team) — no stage scrollbars. */
	.esl-game-show.is-fullscreen[data-state="game"] .esl-game-show-screen--active {
		box-sizing: border-box;
		padding: max(0px, env(safe-area-inset-top, 0px)) 2px max(0px, env(safe-area-inset-bottom, 0px)) 2px;
		overflow: hidden;
		height: 100%;
		max-height: 100dvh;
		min-height: 0;
	}
	.esl-game-show.is-fullscreen[data-state="setup"] .esl-game-show-screen--active {
		box-sizing: border-box;
		padding: max(0px, env(safe-area-inset-top, 0px)) 2px max(0px, env(safe-area-inset-bottom, 0px)) 2px;
		overflow: hidden;
		height: 100%;
		max-height: 100dvh;
		min-height: 0;
	}
	.esl-game-show.is-fullscreen[data-state="game"] .esl-game-show-layout {
		display: grid;
		grid-template-columns: minmax(0, 1.15fr) minmax(0, 1.95fr) minmax(0, 1.15fr);
		gap: 4px;
		height: 100%;
		min-height: 0;
		overflow: hidden;
	}
	.esl-game-show.is-fullscreen[data-state="setup"] .esl-game-show-layout {
		display: grid;
		grid-template-columns: minmax(0, 1.15fr) minmax(0, 1.95fr) minmax(0, 1.15fr);
		gap: 2px;
		height: 100%;
		max-height: 100%;
		min-height: 0;
		overflow: hidden;
	}
	.esl-game-show.is-fullscreen[data-state="game"] .esl-game-show-panel--team1,
	.esl-game-show.is-fullscreen[data-state="game"] .esl-game-show-panel--team2,
	.esl-game-show.is-fullscreen[data-state="setup"] .esl-game-show-panel--team1,
	.esl-game-show.is-fullscreen[data-state="setup"] .esl-game-show-panel--team2 {
		flex-direction: column;
		flex-wrap: nowrap;
		gap: 6px;
		min-height: 0;
		overflow: hidden;
	}
	.esl-game-show.is-fullscreen[data-state="game"] .esl-game-show-panel--team1 .esl-game-show-panel__players,
	.esl-game-show.is-fullscreen[data-state="game"] .esl-game-show-panel--team2 .esl-game-show-panel__players,
	.esl-game-show.is-fullscreen[data-state="setup"] .esl-game-show-panel--team1 .esl-game-show-panel__players,
	.esl-game-show.is-fullscreen[data-state="setup"] .esl-game-show-panel--team2 .esl-game-show-panel__players {
		max-height: 64px;
		overflow-y: hidden !important;
		overflow-x: hidden !important;
		scrollbar-width: none;
		-ms-overflow-style: none;
	}
	.esl-game-show.is-fullscreen[data-state="game"] .esl-game-show-panel--team1 .esl-game-show-panel__players::-webkit-scrollbar,
	.esl-game-show.is-fullscreen[data-state="game"] .esl-game-show-panel--team2 .esl-game-show-panel__players::-webkit-scrollbar,
	.esl-game-show.is-fullscreen[data-state="setup"] .esl-game-show-panel--team1 .esl-game-show-panel__players::-webkit-scrollbar,
	.esl-game-show.is-fullscreen[data-state="setup"] .esl-game-show-panel--team2 .esl-game-show-panel__players::-webkit-scrollbar {
		width: 0;
		height: 0;
		display: none;
	}
	.esl-game-show.is-fullscreen[data-state="game"] .esl-game-show-panel--center,
	.esl-game-show.is-fullscreen[data-state="game"] .esl-game-show-panel--game,
	.esl-game-show.is-fullscreen[data-state="game"] .esl-game-show-board {
		min-height: 0;
		height: 100%;
	}
	.esl-game-show.is-fullscreen[data-state="setup"] .esl-game-show-panel--center {
		min-height: 0;
		height: 100%;
		max-height: none;
		align-self: stretch;
		overflow-x: hidden;
		overflow-y: hidden !important;
		-webkit-overflow-scrolling: auto;
		scrollbar-width: none;
		-ms-overflow-style: none;
	}
	.esl-game-show.is-fullscreen[data-state="setup"] .esl-game-show-panel--center::-webkit-scrollbar {
		width: 0;
		height: 0;
		display: none;
	}
	.esl-game-show.is-fullscreen[data-state="game"] .esl-game-show-board-grid {
		overflow-y: hidden !important;
		overflow-x: hidden !important;
		scrollbar-width: none;
		-ms-overflow-style: none;
	}
	.esl-game-show.is-fullscreen[data-state="game"] .esl-game-show-board-grid::-webkit-scrollbar {
		width: 0;
		height: 0;
		display: none;
	}
	.esl-game-show.is-fullscreen[data-state="game"] .esl-game-show-panel--center,
	.esl-game-show.is-fullscreen .esl-game-show-panel--game {
		overflow-y: hidden !important;
		scrollbar-width: none;
		-ms-overflow-style: none;
	}
	.esl-game-show.is-fullscreen[data-state="game"] .esl-game-show-panel--center::-webkit-scrollbar,
	.esl-game-show.is-fullscreen .esl-game-show-panel--game::-webkit-scrollbar {
		width: 0;
		height: 0;
		display: none;
	}
	.esl-game-show.is-fullscreen[data-state="game"] .esl-game-show-panel__header,
	.esl-game-show.is-fullscreen[data-state="setup"] .esl-game-show-panel__header {
		padding: 8px 5px;
	}
	.esl-game-show.is-fullscreen[data-state="game"] .esl-game-show-panel__score,
	.esl-game-show.is-fullscreen[data-state="setup"] .esl-game-show-panel__score {
		padding: 8px 5px 10px;
	}
	.esl-game-show.is-fullscreen[data-state="game"] .esl-panel__score-circle,
	.esl-game-show.is-fullscreen[data-state="setup"] .esl-panel__score-circle {
		width: min(86%, 118px);
		max-width: 118px;
	}
}

/* Phones: stack team name/header above score; full-width score strip (1024px keeps row for 701px–1024px) */
@media (max-width: 700px) {
	.esl-game-show-panel--team1,
	.esl-game-show-panel--team2 {
		flex-direction: column;
		flex-wrap: nowrap;
		align-items: stretch;
		gap: 10px;
	}
	.esl-game-show-panel--team1 .esl-game-show-panel__header,
	.esl-game-show-panel--team2 .esl-game-show-panel__header {
		order: 1;
		flex: 0 0 auto;
		width: 100%;
		max-width: 100%;
	}
	.esl-game-show-panel--team1 .esl-game-show-panel__score,
	.esl-game-show-panel--team2 .esl-game-show-panel__score {
		order: 2;
		flex: 0 0 auto;
		width: 100%;
		max-width: 100%;
		align-self: stretch;
		box-sizing: border-box;
		padding: 16px 18px 22px;
		min-height: 6.5rem;
	}
	.esl-game-show-panel--team1 .esl-game-show-panel__players,
	.esl-game-show-panel--team2 .esl-game-show-panel__players {
		order: 3;
		width: 100%;
	}
	.esl-game-show-panel--team1 .esl-panel__score-circle,
	.esl-game-show-panel--team2 .esl-panel__score-circle {
		width: min(78vw, 8.5rem);
		max-width: 150px;
	}
}

/* Admin: Topics list drag-and-drop */
.esl-topics-order-col {
	width: 70px;
	vertical-align: middle;
	text-align: center;
	white-space: nowrap;
}
.esl-topics-order-col .button-small {
	padding: 2px 6px;
	min-height: 0;
	line-height: 1.2;
}
.esl-topic-drag-grip {
	cursor: move;
	display: inline-block;
	padding: 2px 6px;
	margin-right: 4px;
	font-size: 16px;
	line-height: 1;
	color: #50575e;
	user-select: none;
}
.esl-topic-drag-grip:hover {
	color: #1d2327;
}
.esl-topic-sortable-placeholder {
	height: 37px;
	background: #f0f0f1;
	outline: 1px dashed #c3c4c7;
}
.esl-topic-sortable-placeholder td {
	border: none !important;
}
tr.esl-topic-dragging {
	opacity: 0.6;
}

/* ==========================================================================
   HARD REMOVE CYAN/GREEN TINT FROM TEAM PANELS (loads last, overrides all)
   ========================================================================== */
.esl-game-show-panel--team1 .esl-game-show-panel__score,
.esl-game-show-panel--team2 .esl-game-show-panel__score,
.esl-game-show-panel--team1 .esl-game-show-score-value,
.esl-game-show-panel--team2 .esl-game-show-score-value {
	color: #ffffff !important;
	text-shadow: 0 0 6px rgba(255, 255, 255, 0.75), 0 2px 4px rgba(0, 0, 0, 0.2) !important;
	filter: none !important;
	animation: none !important;
}

.esl-game-show-panel--team1 .esl-panel__score-circle,
.esl-game-show-panel--team2 .esl-panel__score-circle {
	box-shadow: 0 0 14px 3px rgba(255, 255, 255, 0.28), inset 0 0 12px 3px rgba(255, 255, 255, 0.1) !important;
	background: linear-gradient(180deg, rgba(255, 255, 255, 0.18) 0%, rgba(255, 255, 255, 0.04) 100%) !important;
	filter: none !important;
}

/* Remove colored outer glow from side panels - neutral shadow only */
.esl-game-show-panel--team1,
.esl-game-show-panel--team2 {
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35), 0 0 10px 2px rgba(255, 255, 255, 0.14), inset 1px 0 0 rgba(255, 255, 255, 0.35), inset -1px 0 0 rgba(0, 0, 0, 0.1) !important;
	filter: none !important;
}

/* Same neutral shadow when panel has turn (left panel was still glowing because .has-turn rule had higher specificity) */
.esl-game-show-panel--team1.has-turn,
.esl-game-show-panel--team2.has-turn {
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35), 0 0 10px 2px rgba(255, 255, 255, 0.14), inset 1px 0 0 rgba(255, 255, 255, 0.35), inset -1px 0 0 rgba(0, 0, 0, 0.1) !important;
	filter: none !important;
}

.esl-game-show-panel--team1 *,
.esl-game-show-panel--team2 * {
	filter: none !important;
}

/* Container: no green background (overrides theme or other CSS) */
.esl-game-show-layout,
.esl-game-show-screen--active {
	background: transparent !important;
}

/* Vocabulary picture hints (Groq + Pexels) */
.esl-modal-answer-frame-wrap {
	position: relative;
	width: 100%;
	max-width: 400px;
	margin-left: auto;
	margin-right: auto;
	align-self: center;
}
.esl-modal-answer-frame-wrap .esl-vocab-visual-btn--answer-frame {
	position: absolute;
	top: 10px;
	right: 10px;
	z-index: 2;
}
.esl-modal-option--with-visual {
	position: relative;
	padding-top: 32px;
	padding-right: 36px;
}
.esl-modal-option--with-visual .esl-modal-option-text {
	display: block;
}
.esl-vocab-visual-btn {
	width: 32px;
	height: 32px;
	padding: 0;
	border: none;
	border-radius: 8px;
	background: rgba(255, 255, 255, 0.9);
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
	cursor: pointer;
	font-size: 16px;
	line-height: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: background 0.15s ease, transform 0.1s ease;
}
.esl-vocab-visual-btn:hover {
	background: #fff;
}
.esl-modal-option .esl-vocab-visual-btn--option {
	position: absolute;
	top: 6px;
	right: 6px;
}
.esl-vocab-visual-popup {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 100003;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
	box-sizing: border-box;
}
.esl-vocab-visual-popup__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.45);
}
.esl-vocab-visual-popup__panel {
	position: relative;
	background: linear-gradient(180deg, #f0e6c8 0%, #e5d4a1 30%, #d4af37 70%, #b8860b 100%);
	border-radius: 16px;
	padding: 24px 28px 20px;
	max-width: min(96vw, 420px);
	width: 100%;
	border: 2px solid rgba(255, 255, 255, 0.6);
	box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
	max-height: 85vh;
	overflow-y: auto;
}
.esl-vocab-visual-popup__close {
	position: absolute;
	top: 10px;
	right: 10px;
	width: 36px;
	height: 36px;
	border: none;
	border-radius: 8px;
	background: rgba(184, 134, 11, 0.45);
	color: #1c1917;
	font-size: 22px;
	line-height: 1;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	border: 2px solid rgba(0, 0, 0, 0.12);
	z-index: 2;
}
.esl-vocab-visual-popup__title {
	margin: 0 0 12px;
	font-size: 1.1rem;
	color: #1c1917;
}
.esl-vocab-visual-popup__img-wrap {
	text-align: center;
	min-height: 40px;
}
.esl-vocab-visual-popup__img {
	max-width: 100%;
	height: auto;
	border-radius: 12px;
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}
.esl-vocab-visual-popup__loading,
.esl-vocab-visual-popup__error {
	margin: 8px 0 0;
	font-size: 0.95rem;
	text-align: center;
	color: #1c1917;
}
.esl-vocab-visual-popup__error {
	color: #991b1b;
}

/* Experience review popup (star rating + comment) — matches game gold panel */
.esl-review-popup {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 100005;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
	box-sizing: border-box;
	font-family: var(--esl-font-ui);
}
.esl-review-popup__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.5);
}
.esl-review-popup__panel {
	position: relative;
	background: linear-gradient(180deg, #f0e6c8 0%, #e5d4a1 28%, #d4af37 72%, #b8860b 100%);
	border-radius: 16px;
	padding: 24px 28px 22px;
	max-width: min(96vw, 440px);
	width: 100%;
	border: 2px solid rgba(255, 255, 255, 0.65);
	box-shadow: 0 12px 40px rgba(0, 0, 0, 0.38);
	max-height: 90vh;
	overflow-y: auto;
}
.esl-review-popup__close {
	position: absolute;
	top: 10px;
	right: 10px;
	width: 36px;
	height: 36px;
	border: 2px solid rgba(0, 0, 0, 0.12);
	border-radius: 8px;
	background: rgba(184, 134, 11, 0.45);
	color: #1c1917;
	font-size: 22px;
	line-height: 1;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 2;
}
.esl-review-popup__title {
	margin: 0 0 8px;
	font-size: 1.15rem;
	font-weight: 800;
	color: #1c1917;
	font-family: var(--esl-font-display);
	text-transform: uppercase;
	letter-spacing: 0.04em;
}
.esl-review-popup__prompt {
	margin: 0 0 16px;
	font-size: 0.98rem;
	line-height: 1.45;
	color: #292524;
	font-weight: 600;
}
.esl-review-popup__stars {
	display: flex;
	gap: 6px;
	justify-content: center;
	margin-bottom: 18px;
	flex-wrap: wrap;
}
.esl-review-star {
	width: 44px;
	height: 44px;
	border: 2px solid rgba(0, 0, 0, 0.15);
	border-radius: 10px;
	background: rgba(255, 255, 255, 0.55);
	color: #a8a29e;
	font-size: 26px;
	line-height: 1;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: background 0.15s ease, color 0.15s ease, transform 0.1s ease;
	padding: 0;
}
.esl-review-star:hover,
.esl-review-star:focus-visible {
	outline: none;
	background: rgba(255, 255, 255, 0.85);
	color: #ca8a04;
	transform: scale(1.05);
}
.esl-review-star.is-active {
	background: linear-gradient(135deg, #fde047, #eab308);
	color: #b45309;
	border-color: rgba(180, 83, 9, 0.45);
	box-shadow: 0 2px 10px rgba(234, 179, 8, 0.55);
}
.esl-review-popup__label {
	display: block;
	margin: 0 0 8px;
	font-size: 0.85rem;
	font-weight: 700;
	color: #44403c;
	text-transform: uppercase;
	letter-spacing: 0.06em;
}
.esl-review-popup__textarea {
	width: 100%;
	box-sizing: border-box;
	border: 2px solid rgba(0, 0, 0, 0.12);
	border-radius: 10px;
	padding: 10px 12px;
	font-size: 0.95rem;
	font-family: var(--esl-font-ui);
	background: rgba(255, 255, 255, 0.92);
	color: #1c1917;
	resize: vertical;
	min-height: 72px;
}
.esl-review-popup__textarea::placeholder {
	color: #78716c;
}
.esl-review-popup__error {
	margin: 10px 0 0;
	font-size: 0.9rem;
	color: #991b1b;
	font-weight: 600;
	text-align: center;
}
.esl-review-popup__thanks {
	margin: 12px 0 0;
	font-size: 1rem;
	font-weight: 700;
	color: #15803d;
	text-align: center;
}
.esl-review-popup__actions {
	margin-top: 16px;
	text-align: center;
}
@media (prefers-reduced-motion: reduce) {
	.esl-vocab-visual-btn {
		transition: none;
	}
	.esl-review-star {
		transition: none;
	}
}
