/**
 * 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 */
.esl-game-show-fullscreen {
	position: absolute;
	top: 12px;
	right: 12px;
	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 {
	top: 16px;
	right: 16px;
}

/* 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;
}

/* 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;
	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;
}
.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;
	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: block;
}
/* 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 */
.esl-game-show-panel--center {
	overflow-y: auto;
	display: flex;
	flex-direction: column;
	gap: 0;
}
.esl-game-show-banner {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 12px;
	padding: 14px 20px 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 8px 0 8px;
	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;
	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: 8px;
	animation: esl-icon-pulse 2s ease-in-out infinite;
}
.esl-banner-icon--right {
	transform: rotate(8deg);
	margin-left: 8px;
	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 {
	flex: 1;
	min-height: 0;
	padding: 20px 16px 16px;
	margin: 0;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	gap: 16px;
}

.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;
}
.esl-game-show-setup__section--center {
	display: flex;
	justify-content: center;
}
.esl-game-show-setup__section--start {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 14px;
}
.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;
}

/* 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;
}

/* 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-game-show-topic {
	width: 100%;
	min-width: 0;
	margin: 0;
	position: relative;
	z-index: 10;
}

.esl-game-show-select,
.esl-game-show-input {
	flex: 1;
	min-width: 120px;
	padding: 8px 12px;
	border: 2px solid #b8860b;
	border-radius: 8px;
	background: linear-gradient(180deg, #fffef7 0%, #f5f0e0 50%, #ebe4d0 100%);
	color: #1c1917;
	font-family: var(--esl-font-ui);
	font-size: 0.9rem;
	box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.08), 0 1px 0 rgba(255, 255, 255, 0.8);
}
.esl-game-show-select:focus,
.esl-game-show-input:focus {
	outline: none;
	border-color: #2563eb;
	box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.08), 0 0 0 3px rgba(37, 99, 235, 0.25);
}
.esl-game-show-input {
	min-width: 100px;
}

/* 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);
	box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3), 0 0 10px 3px rgba(34, 197, 94, 0.8), 0 0 20px 6px rgba(22, 163, 74, 0.5), 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 6px 18px rgba(0, 0, 0, 0.35), 0 0 12px 4px rgba(34, 197, 94, 0.9), 0 0 24px 8px rgba(22, 163, 74, 0.6), 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;
}
.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;
}
.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);
}
.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;
}
.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;
	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);
}
.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);
}
.esl-game-show-modal__front-inner {
	padding: 36px 32px 32px;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 26px;
	min-height: 260px;
}
.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: flex;
	align-items: center;
	gap: 14px;
	width: 100%;
	max-width: 380px;
	padding: 12px 18px;
	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;
}

.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 {
	flex: 1;
	height: 8px;
	background: rgba(255, 255, 255, 0.5);
	border-radius: 4px;
	cursor: pointer;
	overflow: hidden;
}

.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;
}

.esl-audio-player__el {
	display: none;
}
.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 {
	display: inline-block;
	padding: 10px 20px;
	background: rgba(255, 255, 255, 0.7);
	border-radius: 10px;
	color: #1c1917;
	font-size: 1rem;
	font-style: italic;
	border: 2px solid #b8860b;
}
.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;
}
.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 - kid-friendly, celebratory design */
.esl-game-show-end-layout {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 20px;
	height: 100%;
	padding: 24px;
}

/* 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) {
	.esl-game-show {
		width: 100%;
		max-width: 100%;
		height: auto;
		min-height: 100vh;
		overflow-x: hidden;
		overflow-y: auto;
	}
	.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;
	}
	.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: 1 0 auto;
		min-height: 260px;
		overflow-y: auto;
		min-width: 0;
		max-width: 100%;
	}
	.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;
	}
}

/* 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;
}
