/**
 * =========================================
 * CLASSIQUE MODE - Classic Quiz Mode
 * =========================================
 *
 * Refactored from _classique.css and merged with styles/modes/classique.css
 * Contains ONLY Classic mode-specific overrides
 *
 * All shared styles are now in:
 * - tokens/*.css (design tokens)
 * - base/*.css (resets, global, utilities)
 * - layout/*.css (containers, grid, responsive)
 * - components/*.css (buttons, forms, cards, etc.)
 * - sections/*.css (header, footer)
 * - styles/shared-modes.css (shared mode styles)
 */

/* Import fonts for quiz game */
@import url('https://fonts.googleapis.com/css2?family=Stack+Sans+Notch:wght@200..700&display=swap');

/* ============================================
 * CLASSIQUE-SPECIFIC COLOR OVERRIDES
 * ============================================ */

:root {
	/* Legacy color overrides for Classique mode */
	--primary-dark: rgb(44, 41, 56);
	/* Dark purple-gray */
	--primary-light: rgb(145, 140, 170);
	/* Light purple-gray */
	--primary-medium: rgb(91, 87, 109);
	/* Medium purple-gray */
	--primary-bg: rgb(51, 46, 54);
	/* Background purple-gray */
	--secondary-light: rgb(128, 127, 139);
	/* Secondary gray */
	--neutral-dark: rgb(135, 108, 101);
	/* Dark brown-gray */
	--neutral-light: rgb(244, 244, 244);
	/* Light neutral */
	--neutral-white: rgb(255, 255, 255);
	/* White */
	--accent-gold: rgb(220, 188, 72);
	/* Gold accent */
	--accent-gold-dark: rgb(104, 90, 46);
	/* Dark gold */
	--shadow-default: 5px 5px 5px rgba(0, 0, 0, 0.2),
		inset 2px 2px 4px var(--primary-dark),
		2px 2px 4px var(--primary-light);
}

.classique-mode {
	/* Override default colors for classic mode if needed */
	--classique-primary: var(--color-accent-gold);
	--classique-secondary: var(--color-accent-purple);
}

/* ============================================
 * CLASSIQUE BASE STYLES
 * ============================================ */

html {
	height: 100%;
}

body {
	background: var(--primary-bg);
	background: linear-gradient(to right, var(--primary-light), var(--primary-dark));
	background-repeat: no-repeat;
	background-attachment: fixed;
	background-size: cover;
	font-family: system-ui, -apple-system, sans-serif;
	min-height: 100vh;
	display: flex;
	flex-direction: column;
}

/* ============================================
 * LAYOUT WRAPPERS (Legacy Support)
 * ============================================ */

.header-wrapper {
	position: sticky;
	z-index: 101;
	top: 0;
	width: 100%;
	flex-shrink: 0;
}

.footer-wrapper {
	width: 100%;
	margin-top: auto;
	flex-shrink: 0;
}

/* ============================================
 * MAIN CONTENT SECTION
 * ============================================ */

/* Points Section */
.points-container {
	display: flex;
	justify-content: flex-end;
	align-items: center;
	color: rgba(255, 255, 255, 0.91);
	float: right;
	shape-outside: margin-box;
	margin-left: var(--spacing-xs);
	margin-bottom: var(--spacing-xs);
	max-width: clamp(80px, 25vw, 150px);
}

.points-container p {
	display: none;
}

.points-container .points-element {
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	gap: var(--spacing-2xs, 8px);
	width: 100%;
}

.image-content {
	display: block;
	width: 100%;
	max-width: clamp(40px, 15vw, 60px);
	height: auto;
	object-fit: contain;
	margin: 0;
}

.image-content+.image-content {
	margin-top: var(--spacing-2xs, 4px);
}

.text-content {
	display: none;
}

/* Responsive: Row layout on larger screens */
@media (min-width: 768px) {
	.points-container {
		max-width: clamp(150px, 30vw, 250px);
	}

	.points-container .points-element {
		flex-direction: row;
		gap: var(--spacing-xs, 12px);
	}

	.image-content {
		max-width: clamp(50px, 10vw, 70px);
		margin-bottom: 5px;
	}

	.image-content+.image-content {
		margin-top: 0;
		/* margin-left: var(--spacing-xs, 6px); */
	}
}

/* ============================================
 * FORM SECTION
 * ============================================ */

.answer-input {
	background-color: var(--primary-dark);
	color: var(--neutral-white);
	width: 100%;
	padding: var(--spacing-xs);
	padding-right: 70px;
	/* Make room for the button inside */
	font-size: var(--spacing-fluid-md);
	border: 1px solid var(--neutral-light);
	border-radius: var(--radius-sm);
	outline: none;
	text-align: center;
	min-height: 64px;
	/* Ensure button fits inside */
	transition: all 0.3s ease;
}

.answer-input:focus {
	border-color: var(--color-accent-purple);
	box-shadow: 0 0 0 3px var(--color-shadow-purple),
		0 0 20px var(--color-shadow-gold);
	background: linear-gradient(135deg,
			var(--primitive-neutral-800) 0%,
			var(--primitive-neutral-700) 100%);
	color: var(--primitive-gold-300);
}

/* Answer Display Section - TV Style */
.answer-section {
	background: linear-gradient(135deg,
			#1a1a2e 0%,
			#16213e 100%);
	border-radius: 12px;
	padding: 16px;
	border: 3px solid #1f1f35;
	position: relative;
	max-width: 100%;
	overflow: hidden;
}

/* TV Screen bezel effect */
.answer-section::before {
	content: '';
	position: absolute;
	top: -3px;
	left: -3px;
	right: -3px;
	bottom: -3px;
	background: linear-gradient(145deg,
			rgba(255, 255, 255, 0.1) 0%,
			transparent 50%,
			rgba(0, 0, 0, 0.3) 100%);
	border-radius: 12px;
	pointer-events: none;
}

/* Reduce pseudo-element overflow on narrow screens */
@media (max-width: 400px) {
	.answer-section::before {
		top: -1px;
		left: -1px;
		right: -1px;
		bottom: -1px;
	}
}

/* TV Screen */
.marquee-container {
	position: relative;
	width: 100%;
	overflow: hidden;
	background:
		linear-gradient(180deg,
			rgba(0, 20, 0, 0.9) 0%,
			rgba(0, 40, 0, 0.8) 50%,
			rgba(0, 20, 0, 0.9) 100%);
	padding: var(--spacing-sm) var(--spacing-md);
	border-radius: 6px;
	border: 2px solid #001a00;
	box-shadow:
		inset 0 0 40px rgba(255, 200, 0, 0.1),
		inset 0 2px 5px rgba(0, 0, 0, 0.5),
		0 0 20px rgba(255, 200, 0, 0.15);
	/* Prevent pseudo-elements from causing overflow on small screens */
	max-width: 100%;
}

/* TV scanlines effect */
.marquee-container::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: repeating-linear-gradient(0deg,
			rgba(0, 0, 0, 0.15) 0px,
			transparent 1px,
			transparent 2px,
			rgba(0, 0, 0, 0.15) 3px);
	pointer-events: none;
	z-index: 2;
}

/* TV screen flicker */
.marquee-container::after {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(255, 200, 0, 0.03);
	opacity: 0;
	animation: tvFlicker 0.15s infinite;
	pointer-events: none;
	z-index: 1;
}

@keyframes tvFlicker {
	0% {
		opacity: 0.05;
	}

	50% {
		opacity: 0.08;
	}

	100% {
		opacity: 0.05;
	}
}

.marquee {
	display: inline-block;
	white-space: nowrap;
	margin: 0.1em;
	position: relative;
	z-index: 3;
}

.marquee p {
	display: inline-block;
	font-size: 1.1rem;
	font-family: 'Courier New', monospace;
	color: #ffcc00;
	/* Duration controlled by JavaScript based on text length */
	animation: scroll-left var(--scroll-duration, 9s) linear infinite;
	text-shadow:
		0 0 5px rgba(255, 200, 0, 0.8),
		0 0 10px rgba(255, 200, 0, 0.5),
		0 0 15px rgba(255, 180, 0, 0.3);
	font-weight: 500;
	letter-spacing: 0.5px;
	will-change: transform;
}

@keyframes scroll-left {
	0% {
		transform: translateX(100%);
	}

	100% {
		transform: translateX(-100%);
	}
}

/* Fade transitions for smooth marquee updates */
@keyframes marquee-fade-out {
	from {
		opacity: 1;
	}

	to {
		opacity: 0;
	}
}

@keyframes marquee-fade-in {
	from {
		opacity: 0;
	}

	to {
		opacity: 1;
	}
}

/* Apply fade to marquee elements, not the container */
/* This prevents the scanlines and flicker effects from fading */
.marquee-container.fading-out .marquee {
	animation: marquee-fade-out 0.4s ease-out forwards;
}

.marquee-container.fading-in .marquee {
	animation: marquee-fade-in 0.4s ease-in forwards;
}

#answerer-name {
	font-weight: 700;
	color: #ffd700;
	text-shadow:
		0 0 8px rgba(255, 215, 0, 1),
		0 0 15px rgba(255, 200, 0, 0.6),
		0 0 20px rgba(255, 180, 0, 0.3);
}

#answer-content {
	color: #ffcc00;
	text-shadow:
		0 0 5px rgba(255, 200, 0, 0.7),
		0 0 10px rgba(255, 180, 0, 0.4);
}

.niekas-neatsake {
	font-weight: 300;
	font-size: 0.7em;
	color: rgb(255, 239, 181);
}

.atsakymas-buvo {
	font-weight: 300;
	font-size: 0.8em;
	color: rgb(150, 150, 191);
}

/* ============================================
 * USER INFO SECTION - REMOVED (Now in user-info.css)
 * ============================================ */
/* All user info styles moved to /styles/components/user-info.css
 * Using BEM methodology: .user-info--sidebar-compact modifier
 * This section kept for reference only - can be removed entirely if no issues
 */

/* ============================================
 * HISTORY SECTION (Container A4 - Legacy Support)
 * ============================================ */

.history-section {
	display: none;
}

@media (min-width: 768px) {
	.history-section {
		display: flex;
		flex-direction: column;
		background-color: var(--color-bg-tertiary);
		border-radius: var(--spacing-sm);
		box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.3);
		padding: var(--spacing-sm);
		max-width: 100%;
		width: 100%;
	}

	.history-list {
		display: flex;
		flex-direction: column;
		background-color: var(--color-bg-tertiary);
		border-radius: var(--spacing-sm);
		box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.3);
		padding: var(--spacing-sm);
		max-width: 100%;
		width: 100%;
	}

	.history-title {
		color: var(--color-accent-gold);
		font-size: 1.2rem;
		font-weight: 600;
		margin-bottom: var(--spacing-md);
		text-align: center;
		border-bottom: 2px solid var(--color-accent-gold);
		padding-bottom: var(--spacing-sm);
		text-shadow: 0 0 10px rgba(212, 160, 23, 0.3);
	}

	.history-item {
		padding: var(--spacing-md);
		margin-bottom: var(--spacing-md);
		border-radius: var(--spacing-sm);
		background-color: var(--color-bg-elevated);
		box-shadow: 0 3px 6px rgba(0, 0, 0, 0.3);
		transition: all 0.3s ease;
		border-left: 6px solid transparent;
		/* overflow: hidden; */
		max-width: 100%;
	}

	.history-item:last-child {
		margin-bottom: 0;
	}

	.history-item:hover {
		transform: translateX(4px) scale(1.01);
		box-shadow: 0 6px 12px rgba(0, 0, 0, 0.4);
	}

	.history-correct {
		border-left-color: var(--color-accent-green);
		background: linear-gradient(to right, rgba(46, 204, 113, 0.15), var(--color-bg-elevated));
		box-shadow: 0 3px 6px rgba(0, 0, 0, 0.3),
			0 0 15px rgba(46, 204, 113, 0.2);
	}

	.history-correct:hover {
		box-shadow: 0 6px 12px rgba(0, 0, 0, 0.4),
			0 0 25px rgba(46, 204, 113, 0.3);
	}

	.history-correct-late {
		border-left-color: var(--color-warning);
		background: linear-gradient(to right, rgba(249, 115, 22, 0.15), var(--color-bg-elevated));
		box-shadow: 0 3px 6px rgba(0, 0, 0, 0.3),
			0 0 15px rgba(249, 115, 22, 0.2);
	}

	.history-correct-late:hover {
		box-shadow: 0 6px 12px rgba(0, 0, 0, 0.4),
			0 0 25px rgba(249, 115, 22, 0.3);
	}

	.history-incorrect {
		border-left-color: var(--color-error);
		background: linear-gradient(to right, rgba(239, 68, 68, 0.15), var(--color-bg-elevated));
		box-shadow: 0 3px 6px rgba(0, 0, 0, 0.3),
			0 0 15px rgba(239, 68, 68, 0.2);
	}

	.history-incorrect:hover {
		box-shadow: 0 6px 12px rgba(0, 0, 0, 0.4),
			0 0 25px rgba(239, 68, 68, 0.3);
	}

	/* Reward entry styles */
	.history-reward {
		border-left-width: 4px;
	}

	.history-vote-reward {
		border-left-color: #9b59b6;
		background: linear-gradient(to right, rgba(155, 89, 182, 0.2), var(--color-bg-elevated));
		box-shadow: 0 3px 6px rgba(0, 0, 0, 0.3),
			0 0 15px rgba(155, 89, 182, 0.25);
	}

	.history-vote-reward:hover {
		box-shadow: 0 6px 12px rgba(0, 0, 0, 0.4),
			0 0 25px rgba(155, 89, 182, 0.35);
	}

	.history-chat-reward {
		border-left-color: #3498db;
		background: linear-gradient(to right, rgba(52, 152, 219, 0.2), var(--color-bg-elevated));
		box-shadow: 0 3px 6px rgba(0, 0, 0, 0.3),
			0 0 15px rgba(52, 152, 219, 0.25);
	}

	.history-chat-reward:hover {
		box-shadow: 0 6px 12px rgba(0, 0, 0, 0.4),
			0 0 25px rgba(52, 152, 219, 0.35);
	}

	.history-reward-icon {
		font-size: 1.2rem;
		margin-right: var(--spacing-xs);
	}

	.history-reward-points {
		color: var(--color-accent-gold);
		font-weight: 600;
		font-size: 0.95rem;
	}

	.history-header {
		display: flex;
		justify-content: space-between;
		align-items: flex-start;
		margin-bottom: var(--spacing-sm);
		gap: var(--spacing-sm);
		flex-wrap: wrap;
	}

	.history-phrase {
		font-size: 1rem;
		color: var(--color-text-primary);
		font-weight: 500;
		flex: 1;
		line-height: 1.4;
		min-width: 0;
		overflow-wrap: break-word;
		word-break: break-word;
	}

	.history-username {
		display: inline-block;
		color: var(--color-accent-gold);
		font-weight: 700;
		text-shadow: 0 0 8px rgba(212, 160, 23, 0.4);
	}

	.history-time {
		font-size: 0.85rem;
		color: var(--color-text-secondary);
		white-space: nowrap;
		font-style: italic;
	}

	.history-details {
		display: flex;
		flex-direction: column;
		gap: 0.3rem;
		font-size: 0.9rem;
	}

	.history-answer {
		color: var(--color-text-secondary);
	}

	.history-answer strong {
		color: var(--color-accent-green);
		font-weight: 600;
		text-shadow: 0 0 6px rgba(46, 204, 113, 0.3);
	}

	.history-points {
		color: var(--color-accent-gold);
		font-weight: 700;
		font-size: 1rem;
		text-shadow: 0 0 10px rgba(212, 160, 23, 0.4);
	}

	.history-incorrect-answer {
		color: var(--color-error);
		font-style: italic;
		text-shadow: 0 0 6px rgba(239, 68, 68, 0.3);
	}

	.history-incorrect-answer em {
		color: var(--color-text-primary);
		font-weight: 500;
	}

	.history-points-late {
		color: var(--color-warning);
		font-weight: 700;
		font-style: italic;
		font-size: 1rem;
		text-shadow: 0 0 10px rgba(249, 115, 22, 0.4);
	}

	/* Scrollbar styling for history list */
	.history-list::-webkit-scrollbar {
		width: 10px;
	}

	.history-list::-webkit-scrollbar-track {
		background: var(--color-bg-secondary);
		border-radius: var(--radius-xs);
		box-shadow: inset 0 0 4px rgba(0, 0, 0, 0.3);
	}

	.history-list::-webkit-scrollbar-thumb {
		background: linear-gradient(180deg, var(--color-accent-gold) 0%, var(--color-accent-gold-dark) 100%);
		border-radius: var(--radius-xs);
		transition: all 0.3s ease;
	}

	.history-list::-webkit-scrollbar-thumb:hover {
		background: linear-gradient(180deg, #fdd970 0%, var(--color-accent-gold) 100%);
		box-shadow: 0 0 8px rgba(212, 160, 23, 0.5);
	}
}

/* ============================================
 * LEADERBOARD SECTION
 * ============================================ */

.sidebar__section--leaderboard {
	display: flex;
	flex-direction: column;
	max-height: 420px;
}

.sidebar__section--leaderboard .today-top {
	display: flex;
	flex-direction: column;
	flex: 1;
	min-height: 0;
}

.sidebar__section--leaderboard .top-players-list-container {
	flex: 1;
	overflow-y: auto;
	min-height: 0;
}

/* Leaderboard Scrollbar */
.sidebar__section--leaderboard .top-players-list-container::-webkit-scrollbar {
	width: 6px;
}

.sidebar__section--leaderboard .top-players-list-container::-webkit-scrollbar-track {
	background: var(--color-bg-secondary);
	border-radius: var(--radius-xs);
}

.sidebar__section--leaderboard .top-players-list-container::-webkit-scrollbar-thumb {
	background: linear-gradient(180deg, #667eea 0%, #764ba2 100%);
	border-radius: var(--radius-xs);
	transition: all 0.3s ease;
}

.sidebar__section--leaderboard .top-players-list-container::-webkit-scrollbar-thumb:hover {
	background: linear-gradient(180deg, #7b8ff0 0%, #8a5db5 100%);
	box-shadow: 0 0 8px rgba(102, 126, 234, 0.5);
}

/* ============================================
 * TOP PLAYERS SERVICE STYLES (Container C1 - Legacy Support)
 * ============================================ */

.today-top {
	transition: opacity 0.2s ease;
}

.today-top.updating {
	opacity: 0.6;
}

.top-players-header {
	margin: 0 0 10px 0;
	padding: var(--spacing-sm);
	color: white;
	text-align: center;
	border-radius: 8px 8px 0 0;
	font-size: 1.1em;
	font-weight: bold;
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.top-players-header.today-type {
	background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.top-players-header.alltime-type {
	background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.top-players-list-container {
	background: white;
	border-radius: 0 0 8px 8px;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
	overflow: hidden;
}

.today-top-list {
	margin: 0;
	padding: 15px 20px;
	background: #f8f9fa;
	border-radius: 0 0 8px 8px;
	list-style: none;
}

.top-player-item {
	margin-bottom: var(--spacing-xs);
	padding: 8px 12px;
	background: white;
	border-radius: var(--radius-sm);
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
	display: flex;
	justify-content: space-between;
	align-items: center;
	animation: fadeIn 0.3s ease;
}

.top-player-item.today-player {
	border-left: 4px solid #667eea;
}

.top-player-item.alltime-player {
	border-left: 4px solid #f5576c;
}

.player-info {
	display: flex;
	align-items: center;
}

.player-info strong {
	max-width: 15ch;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	display: inline-block;
}

.player-points {
	color: #6c757d;
	margin-left: 8px;
}

.player-position {
	color: white;
	padding: 4px 8px;
	border-radius: var(--radius-lg);
	font-size: 0.8em;
	font-weight: bold;
}

.player-position.today-position {
	background: #667eea;
}

.player-position.alltime-position {
	background: #f5576c;
}

.data-type-indicator {
	margin-top: var(--spacing-sm);
	padding: 8px;
	border-radius: var(--radius-xs);
	text-align: center;
	font-size: 0.8em;
	color: #666;
}

.data-type-indicator.today-indicator {
	background: #e3f2fd;
}

.data-type-indicator.alltime-indicator {
	background: #fce4ec;
}

.no-players-data {
	text-align: center;
	padding: var(--spacing-lg);
	color: #6c757d;
}

.no-data-icon {
	font-size: 2em;
	margin-bottom: var(--spacing-sm);
}

.no-data-message {
	margin-bottom: var(--spacing-2xs);
}

.no-data-subtext {
	font-size: 0.9em;
}

.top-players-error {
	margin: var(--spacing-sm) 0;
}

.error-message {
	color: #dc3545;
	padding: var(--spacing-sm);
	text-align: center;
	background: #f8d7da;
	border: 1px solid #f5c6cb;
	border-radius: var(--radius-xs);
	margin: 0;
}

.error-retry-btn {
	margin-top: var(--spacing-2xs);
	padding: 4px 8px;
	background: #dc3545;
	color: white;
	border: none;
	border-radius: var(--radius-xs);
	cursor: pointer;
	transition: background 0.2s ease;
}

.error-retry-btn:hover {
	background: #c82333;
}

/* ============================================
 * OLD QUESTIONS SECTION (Container C2 - Legacy Support)
 * ============================================ */

.old-question-section {
	max-width: var(--max-width);
	background-color: var(--neutral-light);
	border-radius: var(--border-radius);
	border: 2px solid transparent;
	box-shadow: var(--shadow-default);
	text-align: right;
	padding: var(--spacing-md);
	margin-top: var(--spacing-sm);
	overflow-y: auto;
	max-height: 500px;
}

#old-question {
	width: 100%;
}

.question-list {
	list-style: none;
	padding: 0;
	margin: 0;
	width: 100%;
}

.question-item {
	padding: var(--spacing-xs);
	display: flex;
	flex-direction: column;
	gap: var(--spacing-2xs);
	margin-bottom: var(--spacing-sm);
	border-bottom: 1px solid rgba(119, 119, 119, 0.3);
}

.question-item:last-child {
	border-bottom: none;
}

.question-id {
	color: rgb(102, 102, 102);
	font-weight: 700;
	font-size: 0.9em;
	margin-right: var(--spacing-xs);
}

.question-text {
	color: rgb(102, 102, 102);
	font-size: 0.95em;
	font-weight: 700;
	line-height: 1.4;
	text-align: left;
	display: flex;
	flex-direction: column;
	gap: var(--spacing-2xs);
}

.question-label {
	font-size: 0.85em;
	font-weight: 600;
	color: rgb(85, 85, 85);
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

.question-content {
	font-weight: 500;
	color: rgb(51, 51, 51);
}

.answer-text {
	color: rgb(44, 41, 56);
	font-weight: 600;
	font-size: 0.95em;
	text-align: left;
	padding: var(--spacing-2xs) var(--spacing-xs);
	background: rgba(220, 188, 72, 0.1);
	border-radius: var(--radius-sm);
	margin-top: var(--spacing-2xs);
}

.hr-line {
	display: none;
}

.timestamp {
	color: rgb(153, 153, 153);
	font-size: 0.8em;
	font-style: italic;
	text-align: right;
	margin-top: var(--spacing-2xs);
}

.old-question-footer {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-top: var(--spacing-2xs);
	gap: var(--spacing-xs);
}

.old-question-share-btn {
	background: linear-gradient(135deg, rgba(59, 130, 246, 0.1) 0%, rgba(139, 92, 246, 0.1) 100%);
	border: 1px solid rgba(59, 130, 246, 0.4);
	border-radius: 10px;
	padding: 0.1rem 0.7rem;
	color: #3b82f6;
	cursor: pointer;
	transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	position: relative;
	overflow: hidden;
	box-shadow: 0 2px 8px rgba(59, 130, 246, 0.15);
}

.old-question-share-btn::before {
	content: '';
	position: absolute;
	top: 50%;
	left: 50%;
	width: 0;
	height: 0;
	background: radial-gradient(circle, rgba(59, 130, 246, 0.3) 0%, transparent 70%);
	transform: translate(-50%, -50%);
	transition: width 0.6s ease, height 0.6s ease;
}

.old-question-share-btn:hover::before {
	width: 200px;
	height: 200px;
}

.old-question-share-btn:hover {
	background: linear-gradient(135deg, rgba(59, 130, 246, 0.2) 0%, rgba(139, 92, 246, 0.2) 100%);
	border-color: #3b82f6;
	color: #2563eb;
	transform: scale(1.1);
	box-shadow: 0 4px 16px rgba(59, 130, 246, 0.4),
		0 0 20px rgba(59, 130, 246, 0.3);
}

.old-question-share-btn:active {
	transform: scale(1.05);
	transition: all 0.1s ease;
}

.old-question-share-btn dotlottie-player {
	pointer-events: none;
	position: relative;
	z-index: 1;
	transition: transform 0.3s ease;
}

.old-question-share-btn:hover dotlottie-player {
	transform: scale(1.1) rotate(5deg);
}

@media (min-width: 500px) {
	.question-item {
		flex-direction: column;
	}
}

/* ============================================
 * QUOTES SECTION (Modern Card Design)
 * ============================================ */

.quotes-ctn {
	width: 100%;
	display: flex;
	flex-direction: row;
	align-items: flex-start;
}

#quote-container {
	width: 100%;
	max-width: var(--max-width);
	margin: var(--spacing-sm) auto;
	padding: clamp(0.75rem, 3vw, 1.5rem);
	background: rgba(255, 255, 255, 0.08);
	backdrop-filter: blur(12px);
	-webkit-backdrop-filter: blur(12px);
	border: 2px solid rgba(103, 126, 234, 0.3);
	border-radius: 16px;
	box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3),
		0 0 20px rgba(103, 126, 234, 0.25),
		inset 0 0 30px rgba(103, 126, 234, 0.05);
	transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
	position: relative;
	overflow: hidden;
	animation: quote-border-pulse 4s ease-in-out infinite;
}

/* Animated gradient background - eye-catching effect */
#quote-container::before {
	content: '';
	position: absolute;
	top: -50%;
	left: -50%;
	width: 200%;
	height: 200%;
	background: linear-gradient(45deg,
			rgba(103, 126, 234, 0.15) 0%,
			rgba(118, 75, 162, 0.15) 25%,
			rgba(240, 147, 251, 0.12) 50%,
			rgba(245, 87, 108, 0.12) 75%,
			rgba(103, 126, 234, 0.15) 100%);
	background-size: 400% 400%;
	animation: quote-gradient-shift 15s ease infinite;
	pointer-events: none;
	opacity: 0.8;
	z-index: 0;
}

/* Floating orbs for depth */
#quote-container::after {
	content: '';
	position: absolute;
	top: 10%;
	right: 10%;
	width: 150px;
	height: 150px;
	background: radial-gradient(circle,
			rgba(103, 126, 234, 0.4) 0%,
			rgba(118, 75, 162, 0.25) 50%,
			rgba(103, 126, 234, 0.1) 70%,
			transparent 100%);
	border-radius: 50%;
	filter: blur(30px);
	animation: quote-float 8s ease-in-out infinite;
	pointer-events: none;
	z-index: 0;
}

/* Ensure content stays above animated backgrounds */
#quote-container>* {
	position: relative;
	z-index: 1;
}

#quote-container:hover::before {
	opacity: 1;
	animation-duration: 8s;
}

#quote-container:hover {
	box-shadow: 0 12px 48px rgba(0, 0, 0, 0.4),
		0 0 30px rgba(103, 126, 234, 0.3);
	border-color: rgba(118, 75, 162, 0.5);
}

/* Quote header with icon */
.quote-header {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	margin-bottom: clamp(0.75rem, 2vw, 1rem);
	padding-bottom: 0.5rem;
	border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.quote-header i {
	font-size: clamp(1.2rem, 3vw, 1.5rem);
	background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
}

.quote-header span {
	font-size: clamp(0.75rem, 2vw, 0.9rem);
	color: var(--text-secondary, #b8c6db);
	font-weight: 500;
	letter-spacing: 0.5px;
}

/* Quote text styling */
#quote-text {
	font-size: clamp(0.95rem, 2.5vw, 1.2rem);
	font-style: italic;
	line-height: 1.6;
	color: var(--neutral-white, #fff);
	position: relative;
	padding: clamp(0.5rem, 2vw, 1rem);
	margin-bottom: clamp(0.75rem, 2vw, 1rem);
	text-align: left;
	word-wrap: break-word;
	hyphens: auto;
}

#quote-text::before {
	content: "„";
	position: absolute;
	left: 85%;
	transform: translateX(-50%);
	top: -1rem;
	font-size: clamp(6.5rem, 12vw, 8rem);
	opacity: 0.15;
	color: var(--accent-gold, #ddc848);
	font-family: Georgia, serif;
	line-height: 1;
}

/* Quote author styling */
#quote-author {
	font-size: clamp(0.85rem, 2vw, 1.1rem);
	font-weight: 600;
	color: var(--text-secondary, #b8c6db);
	text-align: right;
	margin-bottom: clamp(0.75rem, 2vw, 1rem);
	padding-right: clamp(0.5rem, 2vw, 1rem);
}

/* Quote footer with metadata */
.quote-footer {
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
	padding-top: clamp(0.5rem, 2vw, 0.75rem);
	border-top: 1px solid rgba(255, 255, 255, 0.1);
	font-size: clamp(0.7rem, 1.8vw, 0.85rem);
	color: var(--text-muted, #8892b0);
}

/* Submitter info with tooltip */
.quote-submitter-wrapper {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: nowrap;
	gap: 0.5rem;
}

.quote-submitter-info {
	display: flex;
	align-items: center;
	gap: 0.4rem;
	position: relative;
}

.quote-submitter {
	position: relative;
	cursor: help;
	color: var(--text-secondary, #b8c6db);
	transition: all 0.3s ease;
	font-weight: 500;
	text-decoration: underline;
	text-decoration-style: dotted;
	text-underline-offset: 2px;
}

.quote-submitter:hover {
	color: var(--neutral-white, #fff);
	text-decoration-style: solid;
}

/* Tooltip for submitter info */
.quote-tooltip {
	position: absolute;
	bottom: calc(100% + 10px);
	left: 50%;
	transform: translateX(-50%);
	background: rgba(35, 38, 52, 0.98);
	backdrop-filter: blur(12px);
	border: 1px solid rgba(103, 126, 234, 0.3);
	border-radius: 12px;
	padding: clamp(0.6rem, 2vw, 0.9rem);
	min-width: clamp(200px, 40vw, 280px);
	max-width: calc(100vw - 2rem);
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6),
		0 0 20px rgba(103, 126, 234, 0.2);
	z-index: 1000;
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.quote-submitter:hover .quote-tooltip {
	opacity: 1;
	visibility: visible;
	transform: translateX(-50%) translateY(-5px);
}

/* Tooltip arrow */
.quote-tooltip::after {
	content: '';
	position: absolute;
	top: 100%;
	left: 7%;
	transform: translateX(-50%);
	border-width: 8px 8px 0 8px;
	border-style: solid;
	border-color: rgba(35, 38, 52, 0.98) transparent transparent transparent;
}

/* Tooltip content layout */
.tooltip-content-wrapper {
	display: flex;
	gap: clamp(0.6rem, 2vw, 1rem);
	align-items: center;
}

.tooltip-avatar {
	width: clamp(40px, 10vw, 60px);
	height: clamp(40px, 10vw, 60px);
	border-radius: 50%;
	border: 2px solid rgba(103, 126, 234, 0.5);
	object-fit: cover;
	flex-shrink: 0;
}

.tooltip-info {
	flex: 1;
	display: flex;
	flex-direction: column;
	gap: 0.25rem;
	min-width: 0;
}

.tooltip-info p {
	margin: 0;
	font-size: clamp(0.7rem, 1.8vw, 0.85rem);
	color: var(--text-secondary, #b8c6db);
	line-height: 1.4;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.tooltip-info strong {
	color: var(--neutral-white, #fff);
	font-weight: 600;
}

/* Quote metadata (date, ID) */
.quote-metadata {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	flex-wrap: wrap;
	font-size: clamp(0.65rem, 1.5vw, 0.75rem);
}

.quote-metadata span {
	display: flex;
	align-items: center;
	gap: 0.3rem;
}

/* Loading state */
#quote-container.loading {
	opacity: 0.6;
	pointer-events: none;
}

.quote-loader {
	text-align: center;
	padding: 2rem 1rem;
	color: var(--text-secondary, #b8c6db);
}

.quote-loader::after {
	content: "";
	display: inline-block;
	width: 20px;
	height: 20px;
	margin-left: 0.5rem;
	border: 3px solid rgba(103, 126, 234, 0.2);
	border-top-color: #667eea;
	border-radius: 50%;
	animation: quote-spin 0.8s linear infinite;
}

@keyframes quote-spin {
	to {
		transform: rotate(360deg);
	}
}

/* Share & Like buttons (optional engagement) */
.quote-actions {
	display: flex;
	gap: 0.5rem;
	align-items: center;
}

.quote-action-btn {
	background: linear-gradient(135deg, rgba(255, 215, 0, 0.05) 0%, rgba(255, 180, 0, 0.05) 100%);
	border: 1px solid rgba(255, 215, 0, 0.3);
	border-radius: 10px;
	padding: 0.1rem 0.7rem;
	color: var(--text-secondary, #b8c6db);
	cursor: pointer;
	transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
	font-size: clamp(0.7rem, 1.8vw, 0.85rem);
	display: flex;
	align-items: center;
	gap: 0.3rem;
	position: relative;
	overflow: hidden;
	box-shadow: 0 2px 8px rgba(255, 215, 0, 0.1);
}

.quote-action-btn::before {
	content: '';
	position: absolute;
	top: 50%;
	left: 50%;
	width: 0;
	height: 0;
	border-radius: 50%;
	background: radial-gradient(circle, rgba(255, 215, 0, 0.3) 0%, transparent 70%);
	transform: translate(-50%, -50%);
	transition: width 0.6s ease, height 0.6s ease;
}

.quote-action-btn:hover::before {
	width: 200px;
	height: 200px;
}

.quote-action-btn:hover {
	background: linear-gradient(135deg, rgba(255, 215, 0, 0.15) 0%, rgba(255, 180, 0, 0.15) 100%);
	border-color: rgba(255, 215, 0, 0.6);
	color: var(--neutral-white, #fff);
	transform: scale(1.1);
	box-shadow: 0 4px 16px rgba(255, 215, 0, 0.3),
		0 0 20px rgba(255, 215, 0, 0.2);
}

.quote-action-btn:active {
	transform: scale(1.05);
	transition: all 0.1s ease;
}

.quote-action-btn i {
	font-size: 1em;
	position: relative;
	z-index: 1;
}

.quote-action-btn lottie-player,
.quote-action-btn dotlottie-player {
	pointer-events: none;
	position: relative;
	z-index: 1;
	transition: transform 0.3s ease;
}

.quote-action-btn:hover dotlottie-player {
	transform: scale(1.1) rotate(5deg);
}

/* Responsive adjustments */
@media (max-width: 250px) {
	#quote-container {
		padding: 0.5rem;
	}

	.quote-footer {
		font-size: 0.6rem;
		flex-direction: row;
		align-items: center;
		justify-content: space-between;
	}

	/* Remove centering from submitter info */
	.quote-submitter-wrapper {
		justify-content: flex-start;
	}

	.quote-submitter-info {
		justify-content: flex-start;
		position: static;
	}

	.quote-actions {
		justify-content: flex-end;
	}

	.quote-submitter {
		position: static;
	}

	/* Ensure tooltip is visible and properly positioned on very small screens */
	.quote-tooltip {
		position: fixed !important;
		bottom: auto !important;
		top: 50% !important;
		left: 0.5rem !important;
		right: 0.5rem !important;
		transform: translateY(-50%) !important;
		min-width: auto !important;
		width: calc(100% - 1rem) !important;
		max-width: none !important;
		margin: 0 !important;
		z-index: 10000 !important;
		padding: 0.75rem !important;
	}

	.quote-submitter:hover .quote-tooltip {
		opacity: 1;
		visibility: visible;
		transform: translateY(-50%) !important;
	}

	.tooltip-content-wrapper {
		flex-direction: column;
		text-align: center;
		align-items: center;
		gap: 0.5rem;
		width: 100%;
	}

	.tooltip-avatar {
		width: 40px;
		height: 40px;
	}

	.tooltip-info {
		width: 100%;
	}

	.tooltip-info p {
		white-space: normal;
		text-align: center;
		font-size: 0.7rem;
		width: 100%;
	}

	/* Hide the arrow on very small screens */
	.quote-tooltip::after {
		display: none;
	}
}

@media (min-width: 251px) and (max-width: 360px) {
	#quote-container {
		padding: 0.65rem;
	}

	.quote-footer {
		font-size: 0.65rem;
	}

	/* Remove relative positioning from parents to allow tooltip to break free */
	.quote-submitter-info {
		position: static;
	}

	.quote-submitter {
		position: static;
	}

	/* Position tooltip with fixed positioning for better visibility */
	.quote-tooltip {
		position: fixed !important;
		bottom: auto !important;
		top: 45% !important;
		left: 1rem !important;
		right: 1rem !important;
		transform: translateY(-50%) !important;
		min-width: auto !important;
		width: calc(100% - 2rem) !important;
		max-width: none !important;
		margin: 0 !important;
		z-index: 10000 !important;
		padding: 0.75rem !important;
	}

	.quote-submitter:hover .quote-tooltip {
		opacity: 1;
		visibility: visible;
		transform: translateY(-50%) !important;
	}

	.tooltip-content-wrapper {
		flex-direction: column;
		text-align: center;
		align-items: center;
		gap: 0.5rem;
		width: 100%;
	}

	.tooltip-avatar {
		width: 45px;
		height: 45px;
	}

	.tooltip-info {
		width: 100%;
	}

	.tooltip-info p {
		white-space: normal;
		text-align: center;
		width: 100%;
	}

	/* Hide the arrow on small screens */
	.quote-tooltip::after {
		display: none;
	}
}

@media (min-width: 361px) and (max-width: 767px) {
	.quote-tooltip {
		left: 50%;
		right: auto;
		transform: translateX(-50%);
		max-width: calc(100vw - 2rem);
	}

	/* Ensure tooltip doesn't overflow on left side */
	.quote-submitter-info:first-child .quote-tooltip,
	.quote-footer .quote-tooltip {
		left: 1rem;
		right: 1rem;
		transform: none;
		margin: 0 auto;
	}

	.quote-submitter:hover .quote-tooltip {
		transform: translateX(-50%) translateY(-5px);
	}

	.quote-submitter-info:first-child .quote-submitter:hover .quote-tooltip,
	.quote-footer .quote-submitter:hover .quote-tooltip {
		transform: translateY(-5px);
	}

	/* Ensure arrow is centered on tooltip */
	.quote-tooltip::after {
		left: 7%;
		transform: translateX(-50%);
	}
}

@media (min-width: 768px) {
	.quotes-ctn {
		margin-top: var(--spacing-md);
		margin-bottom: var(--spacing-md);
	}

	#quote-container {
		width: 100%;
	}

	.quote-footer {
		flex-direction: row;
		align-items: center;
		justify-content: space-between;
	}
}

/* Fade-in animation for quote updates */
@keyframes quote-fade-in {
	from {
		opacity: 0;
		transform: translateY(10px);
	}

	to {
		opacity: 1;
		transform: translateY(0);
	}
}

#quote-container.fade-in {
	animation: quote-fade-in 0.5s ease-out;
}

/* Gradient animation */
@keyframes quote-gradient-shift {
	0% {
		background-position: 0% 50%;
	}

	50% {
		background-position: 100% 50%;
	}

	100% {
		background-position: 0% 50%;
	}
}

/* Floating orb animation */
@keyframes quote-float {

	0%,
	100% {
		transform: translate(0, 0) scale(1);
		opacity: 0.6;
	}

	25% {
		transform: translate(-20px, -20px) scale(1.1);
		opacity: 0.8;
	}

	50% {
		transform: translate(-10px, 20px) scale(0.9);
		opacity: 0.7;
	}

	75% {
		transform: translate(20px, -10px) scale(1.05);
		opacity: 0.75;
	}
}

/* Border pulse animation */
@keyframes quote-border-pulse {

	0%,
	100% {
		border-color: rgba(103, 126, 234, 0.3);
		box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3),
			0 0 20px rgba(103, 126, 234, 0.25),
			inset 0 0 30px rgba(103, 126, 234, 0.05);
	}

	50% {
		border-color: rgba(118, 75, 162, 0.5);
		box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3),
			0 0 30px rgba(118, 75, 162, 0.4),
			inset 0 0 40px rgba(118, 75, 162, 0.08);
	}
}

/* ============================================
 * EMAIL CONFIRMATION MESSAGE (Legacy Support)
 * ============================================ */

.email-confirmation-message {
	background-color: #1e1e1e;
	color: #ffffff;
	padding: var(--spacing-lg);
	border-radius: var(--radius-md);
	box-shadow: 0 0.25rem 0.5rem rgba(0, 0, 0, 0.5);
	border: 1px solid transparent;
	overflow: hidden;
	margin: var(--spacing-lg);
	text-align: center;
	position: relative;
}

.email-confirmation-message::before {
	content: '';
	position: absolute;
	top: -50%;
	right: -50%;
	bottom: -50%;
	left: -50%;
	background: linear-gradient(45deg, #06f, #12c, #f80, #f0f);
	z-index: -1;
	border-radius: var(--radius-sm);
	transition: all 0.75s;
}

.email-confirmation-message:hover::before {
	top: 0;
	right: 0;
	bottom: 0;
	left: 0;
}

.email-confirmation-span {
	font-weight: bold;
	color: #ffd700;
	text-shadow: 0.0625rem 0.0625rem 0.125rem rgba(0, 0, 0, 0.7);
}

.email-confirmation-link {
	color: #ffd700;
	text-decoration: underline;
}

.email-confirmation-link:hover {
	color: #ffcc00;
	text-decoration: none;
}

.email-confirmation-link:active {
	color: #074b3d;
}

/* ============================================
 * NOTIFICATIONS (Legacy Support)
 * ============================================ */

.notification {
	position: fixed;
	top: 20px;
	right: 20px;
	padding: 16px 20px;
	border-radius: 12px;
	color: #ffffff;
	z-index: 1000;
	font-weight: 600;
	font-size: 14px;
	min-width: 320px;
	max-width: 420px;
	backdrop-filter: blur(20px) saturate(180%);
	border: 2px solid;
	box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
	will-change: transform, opacity;
}

@media (max-width: 640px) {
	.notification {
		left: 16px;
		right: 16px;
		transform: none;
		min-width: auto;
		max-width: none;
		width: calc(100% - 32px);
		margin: 0;
		padding: 14px 16px;
		font-size: 13px;
	}

	.notification.success {
		animation: toastSlideInBounceMobile 0.4s ease-out;
	}

	.notification.error {
		animation: toastShakeInMobile 0.5s ease-out;
	}
}

.notification.success {
	background: linear-gradient(135deg, rgba(34, 139, 34, 0.95) 0%, rgba(25, 100, 25, 0.95) 100%) !important;
	border-color: #4ade80 !important;
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5),
		0 0 40px rgba(74, 222, 128, 0.3),
		inset 0 1px 0 rgba(255, 255, 255, 0.15) !important;
	animation: toastSlideInBounce 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.notification.error {
	background: linear-gradient(135deg, rgba(220, 88, 42, 0.95) 0%, rgba(180, 60, 30, 0.95) 100%) !important;
	border-color: #DC582A !important;
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5),
		0 0 40px rgba(220, 88, 42, 0.4),
		inset 0 1px 0 rgba(255, 255, 255, 0.1) !important;
	animation: toastShakeIn 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

/* Highlighted answer in toast */
.toast-answer {
	font-weight: 700;
	font-style: italic;
	font-size: 1.1em;
	color: var(--primitive-gold-300);
	text-shadow: 0 0 12px var(--color-shadow-gold),
		0 2px 4px rgba(0, 0, 0, 0.4);
	letter-spacing: 0.5px;
	padding: 0 4px;
}

@keyframes toastSlideInBounce {
	0% {
		transform: translateX(400px);
		opacity: 0;
	}

	60% {
		transform: translateX(-10px);
	}

	100% {
		transform: translateX(0);
		opacity: 1;
	}
}

@keyframes toastShakeIn {
	0% {
		transform: translateX(400px);
		opacity: 0;
	}

	50% {
		transform: translateX(0);
		opacity: 1;
	}

	60% {
		transform: translateX(-8px);
	}

	70% {
		transform: translateX(8px);
	}

	80% {
		transform: translateX(-4px);
	}

	90% {
		transform: translateX(4px);
	}

	100% {
		transform: translateX(0);
	}
}

@keyframes toastSlideInBounceMobile {
	0% {
		transform: translateY(-100px);
		opacity: 0;
	}

	70% {
		transform: translateY(3px);
	}

	100% {
		transform: translateY(0);
		opacity: 1;
	}
}

@keyframes toastShakeInMobile {
	0% {
		transform: translateY(-100px);
		opacity: 0;
	}

	60% {
		transform: translateY(0);
		opacity: 1;
	}

	70% {
		transform: translateY(-3px);
	}

	80% {
		transform: translateY(3px);
	}

	90% {
		transform: translateY(-2px);
	}

	100% {
		transform: translateY(0);
	}
}

/* Toast slide out animations (desktop) */
@keyframes toastSlideOut {
	0% {
		transform: translateX(0);
		opacity: 1;
	}

	100% {
		transform: translateX(450px);
		opacity: 0;
	}
}

/* Toast slide out animation (mobile) */
@keyframes toastSlideOutMobile {
	0% {
		transform: translateY(0);
		opacity: 1;
	}

	100% {
		transform: translateY(-120px);
		opacity: 0;
	}
}


.notification.slide-out {
	animation: toastSlideOut 0.3s ease-in forwards;
}

@media (max-width: 640px) {
	.notification.slide-out {
		animation: toastSlideOutMobile 0.3s ease-in forwards;
	}
}

@keyframes fadeIn {
	from {
		opacity: 0;
		transform: translateY(-5px);
	}

	to {
		opacity: 1;
		transform: translateY(0);
	}
}

/* ============================================
 * GAME LAYOUT - RESPONSIVE STRUCTURE
 * ============================================ */

.game-layout {
	display: grid;
	grid-template-areas: "main";
	grid-template-rows: 1fr;
	min-height: 100vh;
	width: 100%;
	gap: 0;
	padding: var(--spacing-fluid-xs);
	background: var(--color-bg-primary);
}

.game-layout__main {
	grid-area: main;
	display: flex;
	flex-direction: column;
	gap: var(--gap-xs);
	width: 100%;
	max-width: 100%;
}

.game-layout__sidebar-left,
.game-layout__sidebar-right {
	display: none;
}

@media (min-width: 768px) {
	.game-layout {
		grid-template-areas: "main sidebar-right";
		grid-template-columns: 1fr 320px;
		gap: var(--gap-lg);
		padding: var(--spacing-lg);
	}

	.game-layout__main {
		max-width: none;
	}

	.game-layout__sidebar-right {
		display: block;
		grid-area: sidebar-right;
	}
}

@media (min-width: 1024px) {
	.game-layout {
		grid-template-areas: "sidebar-left main sidebar-right";
		grid-template-columns: 280px 1fr 340px;
		gap: var(--gap-md);
		max-width: 1600px;
		margin: 0 auto;
		padding: var(--spacing-xl);
	}

	.game-layout__sidebar-left {
		display: block;
		grid-area: sidebar-left;
	}
}

/* .sidebar {
	display: none;
} */

.sidebar__section {
	background: var(--color-bg-secondary);
	border-radius: var(--radius-card);
	padding: var(--spacing-lg);
	border: 1px solid var(--color-border);
	margin-bottom: var(--spacing-md);
}

.sidebar__title {
	font-size: var(--font-size-lg);
	font-weight: var(--font-weight-bold);
	color: var(--color-accent-gold);
	margin-bottom: var(--spacing-md);
	font-family: var(--font-display);
}

/* ============================================
 * LEFT SIDEBAR - USER INFO COMPACT
 * ============================================ */

.user-info--sidebar-compact {
	display: flex;
	flex-direction: column;
	gap: var(--spacing-md);
	margin-bottom: var(--spacing-md);
}

/* Top Row: Position - Avatar - Level */
.user-info__top-row {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: var(--spacing-md);
}

/* Animated Badge for Position and Level */
.user-info__badge {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 48px;
	height: 48px;
	border-radius: var(--radius-md);
	position: relative;
	overflow: hidden;
	cursor: default;
}

.user-info__badge::before {
	content: '';
	position: absolute;
	inset: 0;
	background: linear-gradient(135deg,
			#667eea 0%,
			#764ba2 25%,
			#f093fb 50%,
			#f5576c 75%,
			#667eea 100%);
	background-size: 300% 300%;
	animation: badge-gradient-shift 4s ease infinite;
	border-radius: inherit;
}

.user-info__badge-number {
	position: relative;
	z-index: 1;
	font-size: 1.5rem;
	font-weight: 900;
	color: #fff;
	text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
	font-family: var(--font-display);
}

@keyframes badge-gradient-shift {
	0% {
		background-position: 0% 50%;
	}

	50% {
		background-position: 100% 50%;
	}

	100% {
		background-position: 0% 50%;
	}
}

/* Position badge - gold/amber tones */
.user-info__badge--position::before {
	background: linear-gradient(135deg,
			#f7931a 0%,
			#ffcd00 25%,
			#ffd700 50%,
			#daa520 75%,
			#f7931a 100%);
	background-size: 300% 300%;
	animation: badge-gradient-shift 3s ease infinite;
}

/* Level badge - purple/blue tones */
.user-info__badge--level::before {
	background: linear-gradient(135deg,
			#6366f1 0%,
			#8b5cf6 25%,
			#a855f7 50%,
			#7c3aed 75%,
			#6366f1 100%);
	background-size: 300% 300%;
	animation: badge-gradient-shift 3s ease infinite;
}

/* Position Tooltip */
.user-info__badge--position {
	overflow: visible;
}

.position-tooltip {
	position: absolute;
	top: calc(100% + 12px);
	left: 20px;
	transform: translateX(0);
	background: rgba(25, 28, 38, 0.95);
	backdrop-filter: blur(12px);
	border: 1px solid rgba(247, 147, 26, 0.4);
	border-radius: 10px;
	padding: 12px 14px;
	min-width: 220px;
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5), 0 0 15px rgba(247, 147, 26, 0.15);
	z-index: 1000;
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	transition: all 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.position-tooltip::after {
	content: '';
	position: absolute;
	bottom: 100%;
	left: 16px;
	transform: translateX(0);
	border: 8px solid transparent;
	border-bottom-color: rgba(247, 147, 26, 0.4);
}

.user-info__badge--position:hover .position-tooltip {
	opacity: 1;
	visibility: visible;
	transform: translateX(0) translateY(4px);
}

.position-tooltip__title {
	margin: 0 0 8px 0;
	font-size: 0.85rem;
	color: var(--color-text-secondary);
	text-align: center;
}

.position-tooltip__title strong {
	color: #ffd700;
	font-size: 1.1rem;
}

.position-tooltip__ahead,
.position-tooltip__behind {
	margin: 6px 0;
	font-size: 0.8rem;
	color: var(--color-text-primary);
	line-height: 1.4;
}

.position-tooltip__ahead strong,
.position-tooltip__behind strong {
	color: #ffd700;
}

/* Level Tooltip */
.user-info__badge--level {
	overflow: visible;
}

.level-tooltip {
	position: absolute;
	top: calc(100% + 12px);
	right: 20px;
	transform: translateX(0);
	background: rgba(25, 28, 38, 0.95);
	backdrop-filter: blur(12px);
	border: 1px solid rgba(139, 92, 246, 0.4);
	border-radius: 10px;
	padding: 12px 14px;
	min-width: 200px;
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5), 0 0 15px rgba(139, 92, 246, 0.15);
	z-index: 1000;
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	transition: all 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.level-tooltip::after {
	content: '';
	position: absolute;
	bottom: 100%;
	right: 16px;
	transform: translateX(0);
	border: 8px solid transparent;
	border-bottom-color: rgba(139, 92, 246, 0.4);
}

.user-info__badge--level:hover .level-tooltip {
	opacity: 1;
	visibility: visible;
	transform: translateX(0) translateY(4px);
}

.level-tooltip__title {
	margin: 0 0 8px 0;
	font-size: 0.85rem;
	color: var(--color-text-secondary);
	text-align: center;
}

.level-tooltip__title strong {
	color: #a855f7;
	font-size: 1.1rem;
}

.level-tooltip__description {
	margin: 0;
	font-size: 0.8rem;
	color: var(--color-text-primary);
	line-height: 1.4;
	text-align: center;
}

/* Stats Section */
.user-info__stats {
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: var(--spacing-xs);
}

.user-info__stat {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: var(--spacing-xs) 0;
	border-bottom: 1px solid var(--color-border);
}

.user-info__stat:last-child {
	border-bottom: none;
}

.user-info__stat-label {
	font-size: var(--font-size-sm);
	color: var(--color-text-secondary);
	font-weight: var(--font-weight-medium);
}

.user-info__stat-value {
	font-size: var(--font-size-md);
	font-weight: var(--font-weight-bold);
	color: var(--color-text-primary);
}

/* Avatar Section with Marquee Username Overlay */
.user-info__avatar-wrapper {
	margin: 0;
	position: relative;
}

.user-info__avatar-container {
	position: relative;
	width: 80px;
	height: 80px;
}

.user-info__avatar {
	width: 100%;
	height: 100%;
	border-radius: var(--radius-lg);
	border: 3px solid var(--color-accent-gold);
	object-fit: cover;
	object-position: center;
	transition: box-shadow 0.3s ease;
	animation: avatar-glow 3s ease-in-out infinite;
}

.user-info__avatar:hover {
	box-shadow: 0 0 25px rgba(var(--color-accent-gold-rgb, 212, 175, 55), 0.6);
}

@keyframes avatar-glow {

	0%,
	100% {
		box-shadow: 0 0 10px rgba(var(--color-accent-gold-rgb, 212, 175, 55), 0.3);
	}

	50% {
		box-shadow: 0 0 20px rgba(var(--color-accent-gold-rgb, 212, 175, 55), 0.6);
	}
}

/* Username overlay on bottom of avatar - acts as marquee-container */
.user-info__avatar-username {
	position: absolute;
	bottom: 0;
	left: 0;
	width: 100%;
	background: linear-gradient(180deg, rgb(250 250 250 / 0%) 0%, rgb(78 80 83) 50%, rgb(0 0 0 / 86%) 100%);
	/* padding: 4px 0; */
	margin: 0;
	overflow: hidden;
	border-radius: 0 0 var(--radius-lg) var(--radius-lg);
	/* border: 2px solid #001a00; */
	/* border-top: 1px solid rgba(255, 200, 0, 0.3); */
	box-shadow: inset 0 0 20px rgba(255, 200, 0, 0.1);
}

/* Override font size for avatar marquee - uses standard .marquee classes */
.user-info__avatar-username .marquee p {
	font-size: 0.7rem;
	letter-spacing: 1px;
}

/* Pause marquee on hover */
.user-info__avatar-container:hover .marquee p {
	animation-play-state: paused;
}

/* ============================================
 * LEFT SIDEBAR - HISTORY SECTION
 * ============================================ */

.sidebar__section--history {
	display: flex;
	flex-direction: column;
	max-height: 400px;
}

.sidebar__section--history .sidebar__title {
	position: sticky;
	top: 0;
	z-index: 10;
	padding-bottom: var(--spacing-sm);
	margin-bottom: var(--spacing-sm);
}

.history-list {
	display: flex;
	flex-direction: column;
	gap: var(--spacing-xs);
	overflow-y: auto;
	flex: 1;
}

.history-entry {
	padding: var(--spacing-sm);
	background: var(--color-bg-tertiary);
	border-radius: var(--radius-sm);
	border-left: 3px solid var(--color-border);
	font-size: var(--font-size-xs);
	transition: background-color 0.2s ease;
}

.history-entry:hover {
	background: var(--color-bg-hover);
}

.history-entry--correct {
	border-left-color: var(--color-success);
}

.history-entry--incorrect {
	border-left-color: var(--color-danger);
}

.history-entry--skipped {
	border-left-color: var(--color-warning);
}

.history-entry__question {
	color: var(--color-text-secondary);
	margin-bottom: var(--spacing-xs);
	font-style: italic;
}

.history-entry__answer {
	color: var(--color-text-primary);
	font-weight: var(--font-weight-semibold);
}

.history-entry__points {
	color: var(--color-accent-gold);
	font-weight: var(--font-weight-bold);
	margin-top: var(--spacing-xs);
}

/* Scrollbar Styling for History */
.sidebar__section--history::-webkit-scrollbar {
	width: 6px;
}

.sidebar__section--history::-webkit-scrollbar-track {
	background: var(--color-bg-tertiary);
	border-radius: 3px;
}

.sidebar__section--history::-webkit-scrollbar-thumb {
	background: var(--color-accent-gold);
	border-radius: 3px;
}

.sidebar__section--history::-webkit-scrollbar-thumb:hover {
	background: var(--color-accent-secondary);
}

/* ============================================
 * GAME BOARD
 * ============================================ */

.game-board {
	display: flex;
	flex-direction: column;
	gap: var(--spacing-sm);
	width: 100%;
	padding: var(--spacing-xs);
}

.game-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: var(--spacing-fluid-md);
	background: var(--color-bg-secondary);
	border-radius: var(--radius-md);
	border: 1px solid var(--color-border);
	/* position: sticky; */
	top: var(--spacing-fluid-xs);
	z-index: var(--z-sticky, 100);
	backdrop-filter: blur(10px);
	box-shadow: var(--shadow-md);
}

.game-header__left,
.game-header__center,
.game-header__middle,
.game-header__right {
	display: flex;
	align-items: center;
	gap: var(--spacing-xs);
	font-size: var(--font-size-sm);
	font-weight: var(--font-weight-semibold);
}

.game-header__avatar {
	width: 32px;
	height: 32px;
	border-radius: 50%;
	border: 2px solid var(--color-accent-gold);
	object-fit: cover;
	object-position: center;
	flex-shrink: 0;
}

.game-header__left {
	position: relative;
}

/* Rank Badge on Avatar Corner */
.game-header__rank-badge {
	position: absolute;
	bottom: -1px;
	right: -8px;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	padding: 2px 4px;
	border: 1px solid #FFA500;
	border-radius: 12px;
	box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3), 0 0 12px rgba(255, 215, 0, 0.4);
	z-index: 10;
	transition: all 0.3s ease;
}

/* Different colors for top ranks */
.game-header__rank-badge[data-rank="1"] {
	background: linear-gradient(135deg, #FFD700 0%, #FDB931 100%);
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4), 0 0 16px rgba(255, 215, 0, 0.6);
	animation: badge-pulse-gold 2s ease-in-out infinite;
}

.game-header__rank-badge[data-rank="2"] {
	background: linear-gradient(135deg, #3e3e3e 0%, #958e73 100%);
	/* box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4), 0 0 16px rgba(192, 192, 192, 0.6); */
	animation: badge-pulse-silver 2s ease-in-out infinite;
}

.game-header__rank-badge[data-rank="3"] {
	background: linear-gradient(135deg, #CD7F32 0%, #B87333 100%);
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4), 0 0 16px rgba(205, 127, 50, 0.6);
	animation: badge-pulse-bronze 2s ease-in-out infinite;
}

.rank-badge__medal {
	font-size: 12px;
	line-height: 1;
	display: none;
	/* Hidden on very small screens */
}

.rank-badge__number {
	font-size: 8px;
	line-height: 1;
	font-weight: 800;
	text-shadow: 0 1px 2px rgba(255, 255, 255, 0.5);
}

/* Pulse animations for rank badges */
@keyframes badge-pulse-gold {

	0%,
	100% {
		transform: scale(1);
		box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4), 0 0 16px rgba(255, 215, 0, 0.6);
	}

	50% {
		transform: scale(1.1);
		box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5), 0 0 24px rgba(255, 215, 0, 0.8);
	}
}

@keyframes badge-pulse-silver {

	0%,
	100% {
		transform: scale(1);
		box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4), 0 0 16px rgba(192, 192, 192, 0.6);
	}

	50% {
		transform: scale(1.08);
		box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5), 0 0 24px rgba(192, 192, 192, 0.8);
	}
}

@keyframes badge-pulse-bronze {

	0%,
	100% {
		transform: scale(1);
		box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4), 0 0 16px rgba(205, 127, 50, 0.6);
	}

	50% {
		transform: scale(1.08);
		box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5), 0 0 24px rgba(205, 127, 50, 0.8);
	}
}

.game-header__username {
	font-size: var(--font-size-xs);
	color: var(--color-text-primary);
	font-weight: var(--font-weight-medium);

}

* .game-header__center {
	display: flex;
	align-items: center;
	gap: var(--spacing-xs);
	font-size: var(--font-size-sm);
	font-weight: var(--font-weight-semibold);
}

.game-header__points {
	color: var(--color-accent-gold);
	font-size: var(--font-size-fluid-md);
}

.game-header__rank-today {
	color: var(--color-accent-gold);
	font-size: var(--font-size-fluid-md);
}

.game-header__rank {
	color: var(--color-accent-gold);
	font-size: var(--font-size-fluid-md);
}

.game-header__points-today-wrapper,
.game-header__points-week-wrapper,
.game-header__points-month-wrapper {
	display: none;
	/* Hidden by default on mobile */
}

.game-header__points-today,
.game-header__points-week,
.game-header__points-month {
	color: var(--color-accent-gold);
	font-size: var(--font-size-fluid-md);
}

/* Groups for organized layout */
.game-header__points-group,
.game-header__ranks-group {
	display: contents;
	/* Allow children to participate in parent grid on mobile */
}

/* Very small phones (250px-359px): 3 columns - Avatar | Today Rank | Overall Rank */
@media (max-width: 359px) {
	.game-header {
		display: grid;
		grid-template-columns: auto 1fr 1fr;
		gap: var(--spacing-xs);
	}

	.game-header__avatar {
		width: 32px;
		height: 32px;
	}

	.game-header__center {
		display: none;
		/* Hide points column */
	}

	.game-header__middle,
	.game-header__right {
		justify-content: center;
		font-size: 11px;
	}
}

/* Small phones (360px+): 4 columns - Avatar+Username | Points | Today Rank | Overall Rank */
@media (min-width: 360px) and (max-width: 767px) {
	.game-header {
		display: grid;
		grid-template-columns: auto 1fr 1fr 1fr;
		gap: var(--spacing-xs);
	}

	.game-header__left {
		flex-direction: column;
		align-items: center;
		gap: 2px;
	}

	.game-header__username {
		display: none;
	}

	.game-header__points {
		display: flex;
	}

	.game-header__center,
	.game-header__middle,
	.game-header__right {
		justify-content: center;
		font-size: 10px;
	}

	.game-header__avatar {
		width: 45px;
		height: 45px;
	}
}

/* ============================================
 * TABLET TO LAPTOP: ENHANCED GAME HEADER
 * Modern card-based design with glassmorphism
 * ============================================ */

/* Hide tooltips on mobile (below 768px) */
@media (max-width: 767px) {
	.points-tooltip {
		display: none !important;
	}
}

/* Tablet (768px-1023px): Compact horizontal layout */
@media (min-width: 768px) and (max-width: 1023px) {
	.game-header {
		display: grid;
		grid-template-columns: auto auto auto;
		grid-template-rows: auto auto;
		gap: clamp(8px, 1.5vw, 12px);
		padding: clamp(12px, 2vw, 16px) clamp(16px, 3vw, 24px);
		background: linear-gradient(135deg,
				rgba(26, 26, 46, 0.95) 0%,
				rgba(44, 41, 56, 0.92) 100%);
		border-radius: 14px;
		border: 1px solid rgba(220, 188, 72, 0.3);
		backdrop-filter: blur(16px) saturate(180%);
		box-shadow:
			0 8px 32px rgba(0, 0, 0, 0.3),
			0 2px 8px rgba(220, 188, 72, 0.1),
			inset 0 1px 0 rgba(255, 255, 255, 0.1);
		align-items: center;
		transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
	}

	.game-header:hover {
		border-color: rgba(220, 188, 72, 0.5);
		box-shadow:
			0 12px 40px rgba(0, 0, 0, 0.4),
			0 4px 12px rgba(220, 188, 72, 0.2),
			inset 0 1px 0 rgba(255, 255, 255, 0.15);
		transform: translateY(-2px);
	}

	/* Avatar - First column, row 1 */
	.game-header__left {
		grid-column: 1;
		grid-row: 1;
		display: block;
		width: 56px;
	}

	.game-header__avatar {
		width: 56px;
		height: 56px;
		border-radius: 12px;
		border: 2px solid var(--color-accent-gold);
		box-shadow:
			0 4px 12px rgba(220, 188, 72, 0.3),
			0 0 20px rgba(220, 188, 72, 0.15);
		transition: all 0.3s ease;
		display: block;
		overflow: hidden;
	}

	.game-header__left:hover .game-header__avatar {
		transform: scale(1.05);
		box-shadow:
			0 6px 16px rgba(220, 188, 72, 0.4),
			0 0 30px rgba(220, 188, 72, 0.25);
	}

	/* HIDE badge and username overlay at this size */
	.game-header__rank-badge {
		display: none !important;
	}

	.game-header__username {
		display: none !important;
	}

	/* Points Group - Row 2, spanning all 3 columns */
	.game-header__points-group {
		grid-column: 1 / -1;
		grid-row: 2;
		display: grid;
		grid-template-columns: 1fr 1fr;
		grid-template-rows: 1fr 1fr;
		gap: 8px;
		padding: 10px;
		background: rgba(255, 255, 255, 0.03);
		border-radius: 10px;
		border: 1px solid rgba(255, 255, 255, 0.08);
		transition: all 0.2s ease;
	}

	.game-header__points-group:hover {
		background: rgba(255, 255, 255, 0.05);
		border-color: rgba(220, 188, 72, 0.3);
	}

	/* Individual stat cards inside groups */
	.game-header__center,
	.game-header__points-today-wrapper,
	.game-header__points-week-wrapper,
	.game-header__points-month-wrapper,
	.game-header__middle,
	.game-header__right {
		display: flex;
		flex-direction: column;
		align-items: center;
		justify-content: center;
		gap: 4px;
		padding: 6px 10px;
		background: rgba(255, 255, 255, 0.02);
		border-radius: 8px;
		border: 1px solid rgba(255, 255, 255, 0.05);
		transition: all 0.2s ease;
	}

	.game-header__center:hover,
	.game-header__points-today-wrapper:hover,
	.game-header__points-week-wrapper:hover,
	.game-header__points-month-wrapper:hover,
	.game-header__middle:hover,
	.game-header__right:hover {
		background: rgba(255, 255, 255, 0.08);
		border-color: rgba(220, 188, 72, 0.2);
		transform: translateY(-1px);
	}

	/* Ranks Group - unwrap to allow direct grid positioning */
	.game-header__ranks-group {
		display: contents;
	}

	/* Overall Rank - Column 2, Row 1 (next to avatar) */
	.game-header__right {
		grid-column: 2;
		grid-row: 1;
		display: flex;
		align-items: center;
		justify-content: center;
		padding: 8px 12px;
		background: rgba(220, 188, 72, 0.08);
		border-radius: 10px;
		border: 1px solid rgba(220, 188, 72, 0.2);
		transition: all 0.2s ease;
	}

	.game-header__right:hover {
		background: rgba(220, 188, 72, 0.12);
		border-color: rgba(220, 188, 72, 0.4);
	}

	/* Today's Rank - Column 3, Row 1 */
	.game-header__middle {
		grid-column: 3;
		grid-row: 1;
		display: flex;
		align-items: center;
		justify-content: center;
		padding: 8px 12px;
		background: rgba(220, 188, 72, 0.08);
		border-radius: 10px;
		border: 1px solid rgba(220, 188, 72, 0.2);
		transition: all 0.2s ease;
	}

	.game-header__middle:hover {
		background: rgba(220, 188, 72, 0.12);
		border-color: rgba(220, 188, 72, 0.4);
	}

	/* Rank values - icon + number only, NO labels */
	.game-header__rank,
	.game-header__rank-today {
		font-size: clamp(16px, 2vw, 20px);
		font-weight: 700;
		color: var(--color-accent-gold);
		text-shadow: 0 2px 8px rgba(220, 188, 72, 0.4);
		display: flex;
		align-items: center;
		gap: 6px;
	}

	/* Points values styling */
	.game-header__points,
	.game-header__points-today,
	.game-header__points-week,
	.game-header__points-month {
		font-size: var(--font-size-fluid-xxxs);
		font-weight: 700;
		color: var(--color-accent-gold);
		text-shadow: 0 2px 8px rgba(220, 188, 72, 0.4);
		display: flex;
		align-items: center;
		gap: 6px;
		position: relative;
		cursor: help;
	}

	/* Tooltip styling */
	.points-tooltip {
		position: absolute;
		bottom: calc(100% + 8px);
		left: 50%;
		transform: translateX(-50%);
		background: linear-gradient(135deg,
				rgba(26, 26, 46, 0.98) 0%,
				rgba(44, 41, 56, 0.95) 100%);
		color: var(--color-accent-gold);
		padding: 8px 12px;
		border-radius: 8px;
		font-size: 12px;
		font-weight: 600;
		white-space: nowrap;
		border: 1px solid rgba(220, 188, 72, 0.3);
		box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
		opacity: 0;
		visibility: hidden;
		transition: opacity 0.2s ease, visibility 0.2s ease, transform 0.2s ease;
		pointer-events: none;
		z-index: 1000;
	}

	/* Tooltip arrow */
	.points-tooltip::after {
		content: '';
		position: absolute;
		top: 100%;
		left: 50%;
		transform: translateX(-50%);
		border: 6px solid transparent;
		border-top-color: rgba(26, 26, 46, 0.98);
	}

	/* Show tooltip on hover */
	.game-header__points:hover .points-tooltip,
	.game-header__points-today:hover .points-tooltip,
	.game-header__points-week:hover .points-tooltip,
	.game-header__points-month:hover .points-tooltip {
		opacity: 1;
		visibility: visible;
		transform: translateX(-50%) translateY(-4px);
	}

	/* Remove text labels for 768-1023px - just show icons + numbers */
	.game-header__points::before,
	.game-header__points-today::before,
	.game-header__points-week::before,
	.game-header__points-month::before {
		display: none;
	}

	/* NO labels for rank elements - just icon + number */
	.game-header__rank-today::before,
	.game-header__rank::before {
		display: none;
	}
}

/* Narrow Tablet (768px-910px): Tighter spacing for smaller screens */
@media (min-width: 768px) and (max-width: 910px) {
	.game-header {
		gap: clamp(6px, 1vw, 8px);
		padding: 10px 16px;
	}

	.game-header__middle,
	.game-header__right {
		padding: 6px 10px;
	}

	.game-header__rank-today,
	.game-header__rank {
		font-size: clamp(14px, 1.8vw, 16px);
	}
}

/* Laptop (1024px-1440px): Even more expanded, premium design */
@media (min-width: 1024px) and (max-width: 1440px) {
	.game-header {
		display: grid;
		grid-template-columns: auto 1fr auto;
		gap: clamp(16px, 2.5vw, 24px);
		padding: clamp(14px, 2.5vw, 20px) clamp(20px, 3.5vw, 32px);
		background: linear-gradient(135deg,
				rgba(26, 26, 46, 0.96) 0%,
				rgba(44, 41, 56, 0.93) 50%,
				rgba(26, 26, 46, 0.96) 100%);
		border-radius: 16px;
		border: 1px solid rgba(220, 188, 72, 0.35);
		backdrop-filter: blur(20px) saturate(200%);
		box-shadow:
			0 12px 48px rgba(0, 0, 0, 0.4),
			0 4px 12px rgba(220, 188, 72, 0.15),
			inset 0 1px 0 rgba(255, 255, 255, 0.12),
			inset 0 -1px 0 rgba(0, 0, 0, 0.2);
		min-height: 90px;
		align-items: center;
		transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
		position: relative;
		overflow: hidden;
	}

	/* Animated gradient background effect */
	.game-header::before {
		content: '';
		position: absolute;
		top: 0;
		left: -100%;
		width: 100%;
		height: 100%;
		background: linear-gradient(90deg,
				transparent 0%,
				rgba(220, 188, 72, 0.05) 50%,
				transparent 100%);
		transition: left 0.6s ease;
	}

	.game-header:hover::before {
		left: 100%;
	}

	.game-header:hover {
		border-color: rgba(220, 188, 72, 0.6);
		box-shadow:
			0 16px 56px rgba(0, 0, 0, 0.5),
			0 6px 16px rgba(220, 188, 72, 0.25),
			inset 0 1px 0 rgba(255, 255, 255, 0.18);
		transform: translateY(-3px);
	}

	/* Left section: Large avatar with username as part of image */
	.game-header__left {
		position: relative;
		display: block;
		width: 64px;
		z-index: 1;
	}

	.game-header__avatar {
		width: 64px;
		height: 64px;
		border-radius: 14px;
		border: 3px solid var(--color-accent-gold);
		box-shadow:
			0 6px 16px rgba(220, 188, 72, 0.4),
			0 0 30px rgba(220, 188, 72, 0.2),
			inset 0 2px 4px rgba(255, 255, 255, 0.1);
		transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
		cursor: pointer;
		display: block;
		overflow: hidden;
	}

	.game-header__left:hover .game-header__avatar {
		transform: scale(1.08) rotate(2deg);
		box-shadow:
			0 8px 24px rgba(220, 188, 72, 0.5),
			0 0 40px rgba(220, 188, 72, 0.3);
		border-width: 4px;
	}

	/* Enhanced rank badge for laptop */
	.game-header__rank-badge {
		bottom: -8px;
		right: -10px;
		min-width: 38px;
		height: 38px;
		padding: 4px 8px;
		border-radius: 19px;
		border-width: 3px;
	}

	.rank-badge__medal {
		display: block;
		font-size: 16px;
		margin-bottom: -2px;
	}

	.rank-badge__number {
		font-size: 11px;
	}

	/* Username overlay on bottom of avatar - container like marquee-container */
	.game-header__username {
		position: absolute;
		bottom: 0;
		left: 0;
		right: 0;
		height: auto;
		background: linear-gradient(to top,
				rgba(0, 0, 0, 0.98) 0%,
				rgba(0, 0, 0, 0.88) 35%,
				rgba(0, 0, 0, 0.5) 75%,
				transparent 100%);
		border-radius: 0 0 11px 11px;
		pointer-events: none;
		padding: 5px 8px;
		display: block;
		overflow: hidden;
		color: var(--color-accent-gold);
		font-size: 11px;
		font-weight: 700;
		text-shadow: 0 2px 4px rgba(0, 0, 0, 0.9);
		letter-spacing: 0.03em;
		line-height: 1.3;
	}

	/* Inner span animated by JavaScript - like .marquee p */
	.game-header__username span {
		display: inline-block;
		white-space: nowrap;
		animation: username-scroll 10s linear infinite;
	}

	/* Pause animation on hover for laptop */
	.game-header__left:hover .game-header__username span {
		animation-play-state: paused;
	}

	.game-header__left:hover .game-header__username {
		background: linear-gradient(to top,
				rgba(220, 188, 72, 0.98) 0%,
				rgba(220, 188, 72, 0.85) 35%,
				rgba(220, 188, 72, 0.4) 75%,
				transparent 100%);
		transform: translateY(-1px);
		color: rgba(0, 0, 0, 0.95);
		text-shadow: 0 1px 3px rgba(255, 255, 255, 0.4);
	}

	/* Points Group - 2x2 grid */
	.game-header__points-group {
		display: grid;
		grid-template-columns: 1fr 1fr;
		grid-template-rows: 1fr 1fr;
		gap: 10px;
		padding: 14px;
		background: rgba(255, 255, 255, 0.04);
		border-radius: 12px;
		border: 1px solid rgba(255, 255, 255, 0.1);
		transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
		position: relative;
		z-index: 1;
	}

	.game-header__points-group:hover {
		background: rgba(255, 255, 255, 0.06);
		border-color: rgba(220, 188, 72, 0.4);
		transform: translateY(-2px);
		box-shadow: 0 4px 12px rgba(220, 188, 72, 0.15);
	}

	/* Individual stat cards */
	.game-header__center,
	.game-header__points-today-wrapper,
	.game-header__points-week-wrapper,
	.game-header__points-month-wrapper,
	.game-header__middle,
	.game-header__right {
		display: flex;
		flex-direction: column;
		align-items: center;
		justify-content: center;
		gap: 6px;
		padding: 10px 16px;
		background: rgba(255, 255, 255, 0.03);
		border-radius: 10px;
		border: 1px solid rgba(255, 255, 255, 0.08);
		transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
		min-width: 100px;
	}

	.game-header__center:hover,
	.game-header__points-today-wrapper:hover,
	.game-header__points-week-wrapper:hover,
	.game-header__points-month-wrapper:hover,
	.game-header__middle:hover,
	.game-header__right:hover {
		background: rgba(255, 255, 255, 0.08);
		border-color: rgba(220, 188, 72, 0.3);
		transform: translateY(-1px);
	}

	/* Ranks Group - vertical stack */
	.game-header__ranks-group {
		display: flex;
		flex-direction: column;
		gap: 10px;
		padding: 14px;
		background: rgba(220, 188, 72, 0.1);
		border-radius: 12px;
		border: 1px solid rgba(220, 188, 72, 0.25);
		transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
		position: relative;
		z-index: 1;
	}

	.game-header__ranks-group:hover {
		background: rgba(220, 188, 72, 0.15);
		border-color: rgba(220, 188, 72, 0.5);
		transform: translateY(-2px);
		box-shadow: 0 4px 12px rgba(220, 188, 72, 0.2);
	}

	.game-header__points,
	.game-header__points-today,
	.game-header__points-week,
	.game-header__points-month,
	.game-header__rank-today,
	.game-header__rank {
		font-size: clamp(20px, 3vw, 26px);
		font-weight: 700;
		color: var(--color-accent-gold);
		text-shadow:
			0 2px 8px rgba(220, 188, 72, 0.5),
			0 0 20px rgba(220, 188, 72, 0.3);
		display: flex;
		align-items: center;
		gap: 8px;
		animation: pulse-glow 3s ease-in-out infinite;
	}

	/* Stat labels - use data-label attribute */
	.game-header__points::before,
	.game-header__points-today::before,
	.game-header__points-week::before,
	.game-header__points-month::before,
	.game-header__rank-today::before {
		content: attr(data-label);
		font-size: 11px;
		font-weight: 600;
		color: rgba(255, 255, 255, 0.65);
		text-transform: uppercase;
		letter-spacing: 0.08em;
		display: block;
		width: 100%;
		text-align: center;
	}

	.game-header__rank::before {
		content: attr(data-label);
		font-size: 11px;
		font-weight: 600;
		color: rgba(220, 188, 72, 0.9);
		text-transform: uppercase;
		letter-spacing: 0.08em;
		display: block;
		width: 100%;
		text-align: center;
	}
}

/* Pulse glow animation for stats */
@keyframes pulse-glow {

	0%,
	100% {
		filter: brightness(1);
	}

	50% {
		filter: brightness(1.15);
	}
}

/* ============================================
 * ALTERNATIVE: USERNAME OVERLAY ON AVATAR
 * Uncomment this section to place username directly on avatar image
 * ============================================ */


@media (min-width: 768px) {
	.game-header__left {
		position: relative;
		display: block !important;
	}

	.game-header__avatar-wrapper {
		position: relative;
		display: inline-block;
	}

	.game-header__avatar {
		display: block;
	}

	.game-header__username {
		position: absolute;
		bottom: 0;
		left: 0;
		right: 0;
		padding: 6px 8px;
		background: linear-gradient(to top,
				rgba(0, 0, 0, 0.85) 0%,
				rgba(0, 0, 0, 0.6) 70%,
				transparent 100%);
		color: var(--color-accent-gold);
		font-size: 11px;
		font-weight: 700;
		text-align: center;
		text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
		border-radius: 0 0 12px 12px;
		letter-spacing: 0.02em;
		overflow: hidden;
		white-space: nowrap;
	}

	.game-header__avatar:hover+.game-header__username {
		background: linear-gradient(to top,
				rgba(220, 188, 72, 0.9) 0%,
				rgba(220, 188, 72, 0.6) 70%,
				transparent 100%);
		color: #000;
	}
}


/* ============================================
 * QUESTION CARD
 * ============================================ */

.question-card {
	display: block;
	background: var(--color-bg-tertiary);
	border: 1px solid var(--color-accent-gold);
	border-radius: var(--radius-card);
	padding: var(--spacing-sm);
	box-shadow: var(--shadow-lg);
	animation: fadeInUp var(--duration-animation) var(--ease-default);
}

/* Add spacing between children */
.question-card>*+* {
	margin-top: var(--spacing-md);
}

.question-card__text {
	display: block;
	font-family: "Stack Sans Notch", sans-serif;
	font-optical-sizing: auto;
	font-size: var(--font-size-fluid-md);
	font-weight: 300;
	font-style: normal;
	color: var(--color-text-primary);
	line-height: 1.4;
	margin: 0;
	text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.12);
	letter-spacing: 0.01em;
	margin-left: var(--spacing-sm);
	text-align: center;
}

.question-card__answer {
	font-size: var(--font-size-fluid-xl);
	letter-spacing: var(--letter-spacing-normal);
	font-weight: var(--font-weight-semibold);
	color: var(--color-accent-gold);
	line-height: 1.5;
	margin-top: var(--spacing-md);
	font-family: "Stack Sans Notch", var(--font-display), sans-serif;
	letter-spacing: var(--spacing-fluid-xs);
	text-align: center;
	text-shadow: 2px 2px 4px rgb(234 221 255 / 20%);
}

/* Ensure proper spacing for children within question-card */
.question-card .answer-form-wrapper {
	margin-top: var(--spacing-lg);
}

/* ============================================
 * ANSWER INPUT SECTION
 * ============================================ */

.answer-form-wrapper {
	width: 100%;
	margin-top: var(--spacing-md);
}

.answer-form {
	display: flex;
	flex-direction: column;
	gap: var(--spacing-md);
	width: 100%;
}

.answer-input-container {
	position: relative;
	width: 100%;
}

.answer-input__submit-btn {
	padding: var(--spacing-md) var(--spacing-xl);
	background: var(--gradient-gold);
	color: var(--color-text-inverse);
	border: none;
	border-radius: var(--radius-button);
	font-size: var(--font-size-lg);
	font-weight: var(--font-weight-bold);
	cursor: pointer;
	transition: all var(--transition-button);
	white-space: nowrap;
	min-width: 120px;
	font-family: var(--font-display);
}

.answer-input__submit-btn:hover {
	transform: translateY(-2px);
	box-shadow: var(--shadow-button-hover);
}

.answer-input__submit-btn:active {
	transform: translateY(0);
}

.answer-input__submit-btn:disabled {
	opacity: 0.5;
	cursor: not-allowed;
	transform: none;
}

.answer-input__submit-icon {
	position: absolute;
	right: 4px;
	top: 50%;
	transform: translateY(-50%);
	padding: var(--spacing-sm);
	background: var(--gradient-gold);
	border: none;
	border-radius: var(--radius-sm);
	cursor: pointer;
	transition: all var(--transition-button);
	display: flex;
	align-items: center;
	justify-content: center;
	min-width: 56px;
	min-height: 56px;
}

.answer-input__submit-icon:hover {
	transform: translateY(-50%) scale(1.05);
	box-shadow: var(--shadow-button-hover);
}

.answer-input__submit-icon:active {
	transform: translateY(-50%) scale(0.98);
	box-shadow: none;
}

.answer-input__submit-icon img {
	width: 24px;
	height: 24px;
	filter: brightness(0) invert(1);
}

/* ============================================
 * PROGRESS BAR
 * ============================================ */

.game-progress {
	background: var(--color-bg-secondary);
	border-radius: var(--radius-card);
	padding: var(--spacing-md);
	border: 1px solid var(--color-border);
}

.game-progress__bar {
	height: 8px;
	background: var(--color-bg-tertiary);
	border-radius: var(--radius-full);
	overflow: hidden;
	margin-bottom: var(--spacing-sm);
}

.game-progress__fill {
	height: 100%;
	background: var(--gradient-gold);
	border-radius: var(--radius-full);
	transition: width var(--duration-slow) var(--ease-default);
}

.game-progress__text {
	font-size: var(--font-size-sm);
	color: var(--color-text-secondary);
	text-align: center;
	display: block;
	font-weight: var(--font-weight-medium);
}

/* ============================================
 * RESPONSIVE UTILITIES
 * ============================================ */

/* .mobile-only {
	display: block !important;
} */

.desktop-only {
	display: none !important;
}

/* Show game-header on tablet/laptop, hide on large desktop */
@media (min-width: 1024px) {
	.game-header.mobile-only {
		display: none !important;
	}
}

@media (min-width: 1024px) {
	.desktop-only {
		display: block !important;
	}
}

/* ============================================
 * RESPONSIVE VISIBILITY - LEADERBOARD MERGE
 * ============================================ */

/* Hide FAB buttons on tablet and desktop (768px+) */
@media (min-width: 768px) {
	.fab-container {
		display: none !important;
	}
}

/* Hide sidebar leaderboard on mobile (< 768px) */
@media (max-width: 767px) {
	.game-layout__sidebar-right {
		display: none !important;
	}
}

/* ============================================
 * CLASSIQUE RESPONSIVE OVERRIDES
 * ============================================ */

@media (max-width: 767px) {
	.classique-question {
		padding: var(--spacing-md);
	}

	.classique-question__text {
		font-size: var(--font-size-fluid-lg);
	}

	.classique-points {
		flex-direction: column;
		gap: var(--gap-md);
	}

	.classique-points__value {
		font-size: var(--font-size-2xl);
	}

	.classique-disconnected-warning {
		left: var(--spacing-md);
		right: var(--spacing-md);
		transform: none;
	}

	.top-players-header {
		font-size: 1em;
	}

	.top-player-item {
		padding: 6px 10px;
	}

	.player-position {
		font-size: 0.75em;
		padding: 3px 6px;
	}

	.player-points {
		font-size: 0.85em;
	}
}

@media (min-width: 768px) and (max-width: 1023px) {
	.classique-game-container {
		gap: var(--gap-lg);
	}

	/* Use display: contents to unwrap main area children */
	.game-layout {
		display: grid;
		grid-template-columns: 1fr 320px;
		grid-template-rows: auto auto 1fr auto;
		gap: var(--gap-lg);
	}

	.game-layout__main {
		display: contents;
		/* Unwrap children so they can be positioned in grid */
	}

	/* Game header positioned in sidebar column, row 1 */
	/* .game-header.mobile-only {
		grid-column: 2;
		grid-row: 1;
		position: sticky;
		top: var(--spacing-md);
		align-self: start;
	} */

	/* Question card in main column, row 1 */
	.question-card {
		grid-column: 1;
		grid-row: 1;
		padding: var(--spacing-md);
	}

	/* Answer section in main column, row 2 */
	.answer-section {
		grid-column: 1;
		grid-row: 2;
	}

	/* Leaderboard section in main column, row 3 */
	.leaderboard-section {
		grid-column: 1;
		grid-row: 3;
	}

	/* Right sidebar in sidebar column, row 2 onwards (below game-header) */
	.game-layout__sidebar-right {
		grid-column: 2;
		grid-row: 2 / -1;
		display: flex !important;
		flex-direction: column;
		gap: var(--gap-md);
	}
}

@media (min-width: 1024px) {
	.classique-game-container {
		gap: var(--gap-xl);
	}

	.classique-question__text {
		font-size: var(--font-size-2xl);
	}
}

/* ============================================
 * ANIMATIONS
 * ============================================ */

@keyframes fadeInUp {
	from {
		opacity: 0;
		transform: translateY(20px);
	}

	to {
		opacity: 1;
		transform: translateY(0);
	}
}

@media (prefers-reduced-motion: reduce) {

	.question-card,
	.answer-feedback {
		animation: none;
	}

	.answer-input__submit-btn:hover {
		transform: none;
	}

	.answer-input__submit-icon:hover {
		transform: translateY(-50%);
	}
}

/* ============================================
 * MODERN LEADERBOARD STYLES - 2025
 * ============================================ */

/**
 * Enhanced leaderboard design with modern UI/UX patterns:
 * - Podium styling for top 3
 * - Medal icons and special effects
 * - Better visual hierarchy
 * - Smooth animations
 * - Mobile-optimized
 */

/* Base leaderboard container */
.today-top {
	transition: opacity 0.3s ease;
	position: relative;
}

.today-top.updating {
	opacity: 0.7;
}

.today-top.updating::after {
	content: '';
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	width: 32px;
	height: 32px;
	border: 3px solid rgba(255, 255, 255, 0.3);
	border-top-color: var(--color-accent-gold);
	border-radius: 50%;
	animation: spin 0.8s linear infinite;
}

/* Leaderboard header */
.top-players-header {
	margin: 0 0 16px 0;
	padding: 16px 20px;
	color: white;
	text-align: center;
	border-radius: 12px 12px 0 0;
	font-size: 1.2em;
	font-weight: 700;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
	position: relative;
	overflow: hidden;
	letter-spacing: 0.5px;
}

.top-players-header::before {
	content: '';
	position: absolute;
	top: 0;
	left: -100%;
	width: 100%;
	height: 100%;
	background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
	transition: left 0.5s;
}

.top-players-header:hover::before {
	left: 100%;
}

.top-players-header.today-type {
	background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
	box-shadow: 0 4px 16px rgba(102, 126, 234, 0.4);
}

.top-players-header.alltime-type {
	background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
	box-shadow: 0 4px 16px rgba(245, 87, 108, 0.4);
}

/* List container - Glassmorphism effect */
.top-players-list-container {
	background: linear-gradient(135deg,
			rgba(248, 249, 250, 0.95) 0%,
			rgba(255, 255, 255, 0.92) 100%);
	backdrop-filter: blur(10px);
	-webkit-backdrop-filter: blur(10px);
	border-radius: 0 0 16px 16px;
	box-shadow:
		0 8px 32px rgba(0, 0, 0, 0.12),
		inset 0 1px 0 rgba(255, 255, 255, 0.8);
	overflow: hidden;
	border: 1px solid rgba(255, 255, 255, 0.3);
}

.today-top-list {
	margin: 0;
	padding: 12px;
	list-style: none;
	transition: opacity 0.2s ease;
}

.today-top,
#leaderboard-drawer-list {
	min-height: 100px;
}

/* Player items - Premium card design */
.top-player-item {
	margin-bottom: 10px;
	padding: 16px 18px;
	background: linear-gradient(135deg,
			rgba(255, 255, 255, 0.95) 0%,
			rgba(248, 249, 250, 0.9) 100%);
	backdrop-filter: blur(5px);
	-webkit-backdrop-filter: blur(5px);
	border-radius: 12px;
	box-shadow:
		0 4px 12px rgba(0, 0, 0, 0.08),
		inset 0 1px 0 rgba(255, 255, 255, 0.8);
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 12px;
	transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
	position: relative;
	overflow: hidden;
	border: 1px solid rgba(255, 255, 255, 0.6);
}

.top-player-item::before {
	content: '';
	position: absolute;
	left: 0;
	top: 0;
	bottom: 0;
	width: 4px;
	background: linear-gradient(to bottom, #667eea, #764ba2);
	opacity: 0;
	transition: opacity 0.3s ease;
}

.top-player-item:hover {
	transform: translateY(-2px) scale(1.02);
	box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
	border-color: rgba(102, 126, 234, 0.3);
}

.top-player-item:hover::before {
	opacity: 1;
}

.top-player-item.today-player::before {
	background: linear-gradient(to bottom, #667eea, #764ba2);
}

.top-player-item.alltime-player::before {
	background: linear-gradient(to bottom, #f093fb, #f5576c);
}

/* Top 3 podium styling - Premium 2025 Design */

/* 1st Place - Rich Gold with glow */
.top-player-item:nth-child(1) {
	background: linear-gradient(135deg,
			rgba(191, 149, 63, 0.25) 0%,
			rgba(252, 246, 186, 0.15) 50%,
			rgba(179, 135, 40, 0.2) 100%);
	border: 2px solid rgba(219, 180, 0, 0.5);
	box-shadow:
		0 4px 20px rgba(219, 180, 0, 0.4),
		0 0 40px rgba(252, 246, 186, 0.2),
		inset 0 1px 0 rgba(255, 255, 255, 0.3);
	position: relative;
	overflow: hidden;
}

.top-player-item:nth-child(1)::before {
	background: linear-gradient(to bottom,
			#BF953F,
			#FCF6BA,
			#B38728,
			#AA771C);
	opacity: 1;
	width: 6px;
	box-shadow: 0 0 10px rgba(191, 149, 63, 0.8);
}

/* Gold shimmer effect */
.top-player-item:nth-child(1)::after {
	content: '';
	position: absolute;
	top: -50%;
	right: -50%;
	bottom: -50%;
	left: -50%;
	background: linear-gradient(to bottom,
			rgba(252, 246, 186, 0) 0%,
			rgba(252, 246, 186, 0.1) 50%,
			rgba(252, 246, 186, 0) 100%);
	transform: rotate(45deg);
	animation: shimmer 3s infinite;
	pointer-events: none;
}

.top-player-item:nth-child(1) .player-position {
	background: linear-gradient(135deg,
			#BF953F 0%,
			#FCF6BA 25%,
			#F5D100 50%,
			#D1AE15 75%,
			#AA771C 100%);
	color: #1a1a1a;
	font-weight: 800;
	box-shadow:
		0 4px 12px rgba(219, 180, 0, 0.5),
		0 0 20px rgba(252, 246, 186, 0.4),
		inset 0 1px 0 rgba(255, 255, 255, 0.5);
	border: 1px solid rgba(252, 246, 186, 0.3);
}

/* 2nd Place - Premium Silver with shine */
.top-player-item:nth-child(2) {
	background: linear-gradient(135deg,
			rgba(179, 182, 181, 0.2) 0%,
			rgba(215, 215, 215, 0.12) 50%,
			rgba(161, 162, 163, 0.18) 100%);
	border: 2px solid rgba(180, 180, 180, 0.45);
	box-shadow:
		0 3px 16px rgba(179, 182, 181, 0.35),
		0 0 30px rgba(215, 215, 215, 0.15),
		inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

.top-player-item:nth-child(2)::before {
	background: linear-gradient(to bottom,
			#B3B6B5,
			#D7D7D7,
			#8E8D8D,
			#A1A2A3);
	opacity: 1;
	width: 5px;
	box-shadow: 0 0 8px rgba(179, 182, 181, 0.7);
}

.top-player-item:nth-child(2) .player-position {
	background: linear-gradient(135deg,
			#B3B6B5 0%,
			#D7D7D7 30%,
			#B4B4B4 60%,
			#8E8D8D 100%);
	color: #1a1a1a;
	font-weight: 700;
	box-shadow:
		0 3px 10px rgba(180, 180, 180, 0.45),
		0 0 15px rgba(215, 215, 215, 0.3),
		inset 0 1px 0 rgba(255, 255, 255, 0.4);
	border: 1px solid rgba(215, 215, 215, 0.3);
}

/* 3rd Place - Rich Bronze with warmth */
.top-player-item:nth-child(3) {
	background: linear-gradient(135deg,
			rgba(173, 138, 86, 0.22) 0%,
			rgba(156, 122, 60, 0.14) 50%,
			rgba(128, 74, 0, 0.2) 100%);
	border: 2px solid rgba(176, 141, 87, 0.45);
	box-shadow:
		0 3px 14px rgba(173, 138, 86, 0.32),
		0 0 25px rgba(156, 122, 60, 0.15),
		inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.top-player-item:nth-child(3)::before {
	background: linear-gradient(to bottom,
			#B08D57,
			#9C7A3C,
			#895E1A,
			#804A00);
	opacity: 1;
	width: 5px;
	box-shadow: 0 0 8px rgba(176, 141, 87, 0.7);
}

.top-player-item:nth-child(3) .player-position {
	background: linear-gradient(135deg,
			#B08D57 0%,
			#AD8A56 25%,
			#9C7A3C 50%,
			#A17419 75%,
			#804A00 100%);
	color: #fff;
	font-weight: 700;
	box-shadow:
		0 3px 10px rgba(176, 141, 87, 0.45),
		0 0 15px rgba(173, 138, 86, 0.3),
		inset 0 1px 0 rgba(255, 255, 255, 0.2);
	border: 1px solid rgba(176, 141, 87, 0.3);
	text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

/* Gold shimmer animation */
@keyframes shimmer {
	0% {
		transform: translateX(-100%) translateY(-100%) rotate(45deg);
	}

	100% {
		transform: translateX(100%) translateY(100%) rotate(45deg);
	}
}

/* Player info section */
.player-info {
	display: flex;
	flex-direction: column;
	gap: 4px;
	flex: 1;
	min-width: 0;
}

.player-info strong {
	font-size: 1em;
	font-weight: 600;
	color: #1a1a2e;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.top-player-item:nth-child(1) .player-info strong {
	background: linear-gradient(135deg, #BF953F 0%, #D1AE15 50%, #AA771C 100%);
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	background-clip: text;
	font-weight: 800;
	text-shadow: 0 1px 2px rgba(191, 149, 63, 0.3);
}

.top-player-item:nth-child(2) .player-info strong {
	background: linear-gradient(135deg, #A1A2A3 0%, #B3B6B5 50%, #8E8D8D 100%);
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	background-clip: text;
	font-weight: 700;
	text-shadow: 0 1px 2px rgba(161, 162, 163, 0.3);
}

.top-player-item:nth-child(3) .player-info strong {
	background: linear-gradient(135deg, #B08D57 0%, #9C7A3C 50%, #804A00 100%);
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	background-clip: text;
	font-weight: 700;
	text-shadow: 0 1px 2px rgba(176, 141, 87, 0.3);
}

.player-points {
	font-size: 0.85em;
	color: #64748b;
	font-weight: 500;
	display: flex;
	align-items: center;
	gap: 4px;
}

.player-points::before {
	content: '⭐';
	font-size: 0.9em;
	opacity: 0.7;
}

/* Position badges */
.player-position {
	min-width: 42px;
	height: 42px;
	display: flex;
	align-items: center;
	justify-content: center;
	color: white;
	border-radius: 10px;
	font-size: 0.95em;
	font-weight: 700;
	flex-shrink: 0;
	transition: all 0.3s ease;
	position: relative;
	overflow: hidden;
}

.player-position::before {
	content: '';
	position: absolute;
	top: 50%;
	left: 50%;
	width: 0;
	height: 0;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.3);
	transform: translate(-50%, -50%);
	transition: width 0.4s ease, height 0.4s ease;
}

.top-player-item:hover .player-position::before {
	width: 100px;
	height: 100px;
}

.player-position.today-position {
	background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
	box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

.player-position.alltime-position {
	background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
	box-shadow: 0 2px 8px rgba(245, 87, 108, 0.3);
}

/* Medal emoji for top 3 */
.today-top-list .top-player-item:nth-child(1) .player-position::after,
.top-player-item:nth-child(1) .player-position::after {
	content: '🥇' !important;
	position: absolute;
	font-size: 1.5em;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	z-index: 10;
}

.today-top-list .top-player-item:nth-child(2) .player-position::after,
.top-player-item:nth-child(2) .player-position::after {
	content: '🥈' !important;
	position: absolute;
	font-size: 1.5em;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	z-index: 10;
}

.today-top-list .top-player-item:nth-child(3) .player-position::after,
.top-player-item:nth-child(3) .player-position::after {
	content: '🥉' !important;
	position: absolute;
	font-size: 1.5em;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	z-index: 10;
}

/* Data type indicator */
.data-type-indicator {
	margin-top: 12px;
	padding: 10px 16px;
	border-radius: 8px;
	text-align: center;
	font-size: 0.85em;
	font-weight: 600;
	color: #475569;
	border: 1px solid rgba(0, 0, 0, 0.1);
	background: linear-gradient(to right, rgba(255, 255, 255, 0.8), rgba(248, 249, 250, 0.8));
}

.data-type-indicator.today-indicator {
	background: linear-gradient(135deg, rgba(102, 126, 234, 0.15), rgba(118, 75, 162, 0.1));
	border-color: rgba(102, 126, 234, 0.3);
	color: #5b4bc6;
}

.data-type-indicator.alltime-indicator {
	background: linear-gradient(135deg, rgba(240, 147, 251, 0.15), rgba(245, 87, 108, 0.1));
	border-color: rgba(245, 87, 108, 0.3);
	color: #d14361;
}

/* Empty state */
.no-players-data {
	text-align: center;
	padding: 40px 20px;
	color: #64748b;
}

.no-data-icon {
	font-size: 3.5em;
	margin-bottom: 16px;
	opacity: 0.6;
	animation: float 3s ease-in-out infinite;
}

.no-data-message {
	font-size: 1.1em;
	font-weight: 600;
	margin-bottom: 8px;
	color: #475569;
}

.no-data-subtext {
	font-size: 0.9em;
	color: #94a3b8;
	font-style: italic;
}

/* Leaderboard animations */
@keyframes fadeIn {
	from {
		opacity: 0;
		transform: translateY(10px);
	}

	to {
		opacity: 1;
		transform: translateY(0);
	}
}

@keyframes spin {
	to {
		transform: translate(-50%, -50%) rotate(360deg);
	}
}

@keyframes float {

	0%,
	100% {
		transform: translateY(0);
	}

	50% {
		transform: translateY(-10px);
	}
}

.top-player-item {
	animation: fadeIn 0.4s ease backwards;
}

.top-player-item:nth-child(1) {
	animation-delay: 0.05s;
}

.top-player-item:nth-child(2) {
	animation-delay: 0.1s;
}

.top-player-item:nth-child(3) {
	animation-delay: 0.15s;
}

.top-player-item:nth-child(4) {
	animation-delay: 0.2s;
}

.top-player-item:nth-child(5) {
	animation-delay: 0.25s;
}

.top-player-item:nth-child(6) {
	animation-delay: 0.3s;
}

.top-player-item:nth-child(7) {
	animation-delay: 0.35s;
}

.top-player-item:nth-child(8) {
	animation-delay: 0.4s;
}

.top-player-item:nth-child(9) {
	animation-delay: 0.45s;
}

.top-player-item:nth-child(10) {
	animation-delay: 0.5s;
}

/* Leaderboard responsive adjustments */
@media (max-width: 359px) {
	.top-players-header {
		font-size: 0.9em;
		padding: 10px 12px;
		letter-spacing: 0.3px;
	}

	.top-player-item {
		padding: 8px 10px;
		gap: 6px;
		margin-bottom: 8px;
	}

	.player-info {
		gap: 2px;
		min-width: 0;
		flex: 1;
		overflow: hidden;
	}

	.player-info strong {
		font-size: 0.8em;
		white-space: nowrap;
		overflow: hidden;
		text-overflow: ellipsis;
		max-width: 100%;
	}

	.player-points {
		font-size: 0.7em;
		white-space: nowrap;
		overflow: hidden;
		text-overflow: ellipsis;
	}

	.player-points::before {
		font-size: 0.85em;
	}

	.player-position {
		min-width: 34px;
		height: 34px;
		font-size: 0.8em;
		flex-shrink: 0;
	}

	.top-player-item:nth-child(1) .player-position::after,
	.top-player-item:nth-child(2) .player-position::after,
	.top-player-item:nth-child(3) .player-position::after {
		font-size: 1.2em;
	}

	.data-type-indicator {
		font-size: 0.75em;
		padding: 8px 10px;
		margin-top: 10px;
	}

	.no-data-icon {
		font-size: 2.5em;
	}

	.no-data-message {
		font-size: 0.95em;
	}

	.no-data-subtext {
		font-size: 0.8em;
	}
}

@media (min-width: 360px) and (max-width: 479px) {
	.top-players-header {
		font-size: 1em;
		padding: 12px 14px;
	}

	.top-player-item {
		padding: 10px 12px;
		gap: 8px;
	}

	.player-info strong {
		font-size: 0.9em;
	}

	.player-points {
		font-size: 0.75em;
	}

	.player-position {
		min-width: 38px;
		height: 38px;
		font-size: 0.9em;
	}

	.top-player-item:nth-child(1) .player-position::after,
	.top-player-item:nth-child(2) .player-position::after,
	.top-player-item:nth-child(3) .player-position::after {
		font-size: 1.3em;
	}
}

/* Accessibility - Leaderboard */
@media (prefers-reduced-motion: reduce) {

	.top-player-item,
	.no-data-icon {
		animation: none;
	}

	.top-player-item:hover {
		transform: none;
	}

	.top-players-header::before {
		display: none;
	}
}

/* Dark mode support - Leaderboard */
@media (prefers-color-scheme: dark) {
	.top-players-list-container {
		background: linear-gradient(to bottom, #1e293b 0%, #0f172a 100%);
	}

	.today-top-list {
		background: transparent;
	}

	.top-player-item {
		background: rgba(30, 41, 59, 0.8);
		border-color: rgba(71, 85, 105, 0.3);
	}

	.player-info strong {
		color: #e2e8f0;
	}

	.player-points {
		color: #94a3b8;
	}

	.no-data-message {
		color: #cbd5e1;
	}
}

/* ============================================
 * NOTES
 * ============================================ */

/**
 * This file merges:
 * 1. Original _modes/_classique/classique-css/classique.css (legacy styles)
 * 2. styles/modes/classique.css (refactored BEM styles)
 * 3. leaderboard-modern.css (modern leaderboard styles)
 *
 * All shared styles are in:
 * - tokens/*.css (design tokens)
 * - base/*.css (resets, global, utilities)
 * - layout/*.css (containers, grid, responsive)
 * - components/*.css (buttons, forms, cards, etc.)
 * - sections/*.css (header, footer)
 * - styles/shared-modes.css (shared mode styles - formerly base.css)
 */