/* Challenge Bingo - Optimized CSS */
:root {
	/* Colors */
	--primary: #49b7a9;
	--accent: #ff4757;
	--success: #5cb85c;
	--warning: #f0ad4e;
	--info: #007bff;
	--secondary: #6c757d;
	--gold: #ffd700;

	/* Hover Colors */
	--primary-hover: #3a9e92;
	--accent-hover: #e63546;
	--success-hover: #4a9e4a;
	--warning-hover: #d99a3e;
	--info-hover: #0062cc;
	--secondary-hover: #565e64;

	/* Glass Morphism */
	--glass-bg: rgba(255, 255, 255, 0.1);
	--glass-border: rgba(255, 255, 255, 0.2);

	/* Shadows & Effects */
	--text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
	--card-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
	--button-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);

	/* Transitions & Animations */
	--transition: all 0.15s ease;
	--transition-slow: all 0.3s ease;

	/* Spacing */
	--padding-xs: 8px;
	--padding-sm: 12px;
	--padding-md: 16px;
	--padding-lg: 20px;
	--padding-xl: 25px;
	--padding-xxl: 40px;
	--gap-sm: 10px;
	--gap-md: 15px;

	/* Border Radius */
	--radius-sm: 6px;
	--radius-md: 8px;
	--radius-lg: 15px;

	/* Font Sizes */
	--font-sm: 0.85rem;
	--font-md: 1rem;
	--font-lg: 1.1rem;
	--font-xl: 1.2rem;
	--font-2xl: 1.5rem;
	--font-3xl: 2rem;
	--font-4xl: 2.5rem;
}

/* Base styles */
* {
	box-sizing: border-box;
	margin: 0;
	padding: 0;
	font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
	background: #111 url('../uploads/liquid-background.jpg') center / cover no-repeat fixed;
	min-height: 100vh;
	overflow-x: hidden;
	color: white;
}

body::before {
	position: fixed;
	inset: 0;
	z-index: 0;
	backdrop-filter: blur(8px);
	background: rgba(0, 0, 0, 0.45);
	content: '';
}

.container {
	position: relative;
	z-index: 1;
	margin: 0 auto;
	padding: 40px 20px;
	max-width: 1200px;
	text-align: center;
}

/* Typography */
h1 {
	display: flex;
	justify-content: center;
	align-items: center;
	margin-bottom: var(--gap-sm);
	font-size: var(--font-4xl);
	line-height: 1;
	text-shadow: var(--text-shadow);
}

h2,
h3,
h4 {
	margin-bottom: var(--gap-md);
	color: white;
	line-height: 1.2;
}

h3 {
	display: flex;
	align-items: center;
	gap: var(--padding-xs);
	font-size: var(--font-xl);
}

h4 {
	display: flex;
	align-items: center;
	gap: var(--padding-xs);
	margin-bottom: var(--gap-sm);
	font-size: var(--font-md);
}

header p {
	opacity: 0.9;
	font-size: var(--font-lg);
}

.title-container {
	display: flex;
	justify-content: center;
	align-items: center;
}

.description-container {
	margin-bottom: 40px;
}

/* Global Glass Morphism Card */
.connection-panel,
.board-section,
.sidebar>div {
	backdrop-filter: blur(10px);
	box-shadow: var(--card-shadow);
	border: 1px solid var(--glass-border);
	border-radius: var(--radius-lg);
	background: var(--glass-bg);
	padding: var(--padding-xl);
	overflow: hidden;
}

.board-section {
	padding: var(--padding-xxl);
}

.connection-panel {
	margin: 0 auto 30px;
	max-width: 600px;
}

/* Connection Panel */
.connection-container {
	display: flex;
	flex-direction: column;
	gap: var(--gap-md);
	margin-bottom: 20px;
}

.input-group {
	display: flex;
	align-items: center;
	gap: var(--gap-sm);
}

.input-group input {
	flex: 1;
	transition: var(--transition);
	border: none;
	border-radius: var(--radius-md);
	background: rgba(255, 255, 255, 0.9);
	padding: var(--padding-sm);
	color: #333;
	font-size: var(--font-md);
}

.input-group input:focus {
	outline: none;
	box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.3);
}

/* Global Button System */
button {
	display: flex;
	align-items: center;
	gap: var(--padding-xs);
	transition: var(--transition);
	cursor: pointer;
	border: none;
	border-radius: var(--radius-md);
	padding: var(--padding-sm) var(--padding-md);
	font-weight: 500;
	font-size: 14px;
	font-family: inherit;
}

button:hover {
	box-shadow: var(--button-shadow);
}

button:disabled {
	transform: none;
	opacity: 0.5;
	filter: grayscale(50%);
	cursor: not-allowed;
	box-shadow: none;
}

button:disabled:hover {
	transform: none;
	filter: grayscale(50%);
	box-shadow: none;
}

/* Specific styling for disabled new game button */
#newGameBtn:disabled {
	opacity: 0.6;
	background: #6c757d;
	color: #fff;
}

#newGameBtn:disabled:hover {
	transform: none;
	box-shadow: none;
	background: #6c757d;
}

/* Button Color Variants */
.btn-primary {
	background: var(--primary);
	color: white;
}

.btn-primary:hover {
	background: var(--primary-hover);
}

.btn-info {
	background: var(--info);
	color: white;
}

.btn-info:hover {
	background: var(--info-hover);
}

.btn-success {
	background: var(--success);
	color: white;
}

.btn-success:hover {
	background: var(--success-hover);
}

.btn-warning {
	background: var(--warning);
	color: white;
}

.btn-warning:hover {
	background: var(--warning-hover);
}

.btn-danger {
	background: var(--accent);
	color: white;
}

.btn-danger:hover {
	background: var(--accent-hover);
}

.btn-secondary {
	background: var(--secondary);
	color: white;
}

.btn-secondary:hover {
	background: var(--secondary-hover);
}

/* Apply size classes to existing buttons */
.input-group button {
	padding: var(--padding-sm);
	font-weight: bold;
	font-size: var(--font-md);
	white-space: nowrap;
}

.result-buttons button,
.bulk-import-buttons button {
	flex: 1;
	justify-content: center;
	gap: var(--padding-xs);
	padding: var(--padding-md) 20px;
	width: 100%;
	font-weight: bold;
	font-size: var(--font-md);
	white-space: nowrap;
}

.bingo-btn {
	position: relative;
	justify-content: center;
	gap: var(--padding-xs);
	box-shadow: 0 4px 15px rgba(255, 215, 0, 0.3);
	background: linear-gradient(45deg, var(--gold), #ffed4e);
	padding: var(--padding-md);
	width: 100%;
	overflow: hidden;
	color: #333;
	font-weight: bold;
	font-size: 18px;
	letter-spacing: 1px;
	text-transform: uppercase;
}

.bingo-btn:hover {
	box-shadow: 0 6px 20px rgba(255, 215, 0, 0.4);
}

/* Sheen effect for bingo button */
.bingo-btn::after {
	position: absolute;
	top: -50%;
	right: -50%;
	bottom: -50%;
	left: -50%;
	transform: rotateZ(60deg) translate(-5em, 7.5em);
	opacity: 0;
	z-index: 3;
	background: linear-gradient(to bottom, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.6) 50%, rgba(255, 255, 255, 0));
	pointer-events: none;
	content: '';
}

.bingo-btn:hover::after {
	opacity: 1;
	animation: sheen 0.6s forwards;
}

/* Main layout */
.main-content {
	display: grid;
	grid-template-columns: 1fr 400px;
	align-items: start;
	gap: 40px;
}

/* Board Header */
.board-header {
	display: flex;
	justify-content: center;
	align-items: center;
	margin-bottom: var(--padding-xl);
}

.game-status {
	transition: background-color 0.3s ease, color 0.3s ease;
	margin: 0;
	border: 1px solid var(--glass-border);
	border-radius: var(--radius-md);
	background: var(--glass-bg);
	padding: var(--padding-sm) var(--padding-md);
	width: 100%;
	font-size: 14px;
	line-height: 1.4;
	text-align: center;
}

/* Board Controls */
.board-controls {
	margin: var(--padding-xl) 0 0;
	text-align: center;
}

.board-controls-buttons {
	display: flex;
	flex-wrap: wrap;
	justify-content: flex-start;
	gap: var(--gap-sm);
}

.board-controls-buttons button:not(#editButton) {
	display: none;
}

.board-controls-buttons.expanded button {
	display: flex !important;
}

/* Bingo board */
.bingo-board {
	display: grid;
	grid-template-columns: repeat(5, 1fr);
	gap: var(--gap-sm);
	margin: 0 auto;
}

.board-header-cell {
	box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
	border-radius: var(--radius-md);
	background: var(--primary);
	padding: var(--padding-xs);
	color: white;
	font-weight: bold;
	font-size: var(--font-xl);
	text-align: center;
}

/* Board Cell System */
.board-cell {
	position: relative;
	transform-origin: center center;
	transition: var(--transition);
	will-change: transform, box-shadow, background-color;
	cursor: pointer;
	border-radius: var(--radius-md);
	background: rgba(255, 255, 255, 0.9);
	aspect-ratio: 1;
	min-height: 100px;
	overflow: hidden;
}

.board-cell:not(.bingo-animating):not(.bingo-winner):hover {
	transform: translateY(-5px) scale(1.02);
	box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
	border-color: rgba(255, 255, 255, 0.3);
}

.board-cell.board-locked {
	opacity: 0.7;
	cursor: not-allowed;
}

.board-cell.board-locked:not(.completed-by-me):hover {
	transform: none;
	box-shadow: none;
}

/* BINGO ANIMATING - Applied while anime.js is animating */
.board-cell.bingo-animating {
	position: relative;
	transform-origin: center center;
	opacity: 1;
	transition: none !important;
	will-change: transform, opacity;
	box-shadow: 0 8px 25px rgba(255, 215, 0, 0.4);
	border-color: rgba(255, 255, 255, 0.3);
	background: var(--gold);
	overflow: hidden;
}

.board-cell.bingo-animating .cell-content {
	background: linear-gradient(45deg, var(--gold), #ffed4e);
	color: #333;
}

/* Sheen effect during animation */
.board-cell.bingo-animating::after {
	position: absolute;
	top: -50%;
	right: -50%;
	bottom: -50%;
	left: -50%;
	transform: rotateZ(60deg) translate(-5em, 7.5em);
	z-index: 3;
	animation: sheen 1s forwards;
	background: linear-gradient(to bottom, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.7) 50%, rgba(255, 255, 255, 0));
	pointer-events: none;
	content: '';
}

/* BINGO WINNER - Applied after animation completes */
.board-cell.bingo-winner {
	position: relative;
	transform-origin: center center;
	opacity: 1;
	box-shadow: 0 8px 25px rgba(255, 215, 0, 0.4);
	border-color: rgba(255, 255, 255, 0.3);
	background: var(--gold);
	overflow: hidden;
}

.board-cell.bingo-winner .cell-content {
	background: linear-gradient(45deg, var(--gold), #ffed4e);
	color: #333;
}

/* Override color classes when bingo states are applied */
.board-cell.bingo-animating.single-red,
.board-cell.bingo-animating.single-green,
.board-cell.bingo-animating.single-yellow,
.board-cell.bingo-animating.single-lime,
.board-cell.bingo-animating.single-aqua,
.board-cell.bingo-animating.single-fuchsia,
.board-cell.bingo-animating.single-pink,
.board-cell.bingo-animating.single-blue,
.board-cell.bingo-winner.single-red,
.board-cell.bingo-winner.single-green,
.board-cell.bingo-winner.single-yellow,
.board-cell.bingo-winner.single-lime,
.board-cell.bingo-winner.single-aqua,
.board-cell.bingo-winner.single-fuchsia,
.board-cell.bingo-winner.single-pink,
.board-cell.bingo-winner.single-blue {
	background: var(--gold);
}

/* Cell Content */
.cell-content {
	display: flex;
	position: absolute;
	flex-direction: column;
	z-index: 2;
	margin: 4px;
	border-radius: 4px;
	background: #fff;
	padding: var(--padding-xs);
	width: calc(100% - 8px);
	height: calc(100% - 8px);
	color: #333;
	font-size: var(--font-sm);
}

.challenge-text {
	display: flex;
	flex: 1;
	justify-content: center;
	align-items: center;
	overflow: hidden;
	font-weight: 500;
	font-size: 13px;
	line-height: 1.2;
	text-align: center;
	word-break: break-word;
}

.completion-indicators {
	display: flex;
	position: absolute;
	right: 4px;
	bottom: 4px;
	left: 4px;
	flex-wrap: wrap;
	gap: 2px;
}

.completion-dot {
	display: flex;
	justify-content: center;
	align-items: center;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
	border-radius: 50%;
	width: 12px;
	height: 12px;
	color: white;
	font-weight: bold;
	font-size: 8px;
}

/* Single Player Color Backgrounds */
.board-cell.single-red {
	background: #e74c3c;
}

.board-cell.single-green {
	background: #27ae60;
}

.board-cell.single-yellow {
	background: #f1c40f;
}

.board-cell.single-lime {
	background: #2ecc71;
}

.board-cell.single-aqua {
	background: #1abc9c;
}

.board-cell.single-fuchsia {
	background: #e91e63;
}

.board-cell.single-pink {
	background: #fd79a8;
}

.board-cell.single-blue {
	background: #2c3e50;
}

/* Multi-Player Color Effects */
.board-cell.two-players::before {
	position: absolute;
	top: 0;
	right: 0;
	bottom: 0;
	left: 0;
	border-radius: inherit;
	background: linear-gradient(45deg, var(--color1) 50%, var(--color2) 50%);
	content: '';
}

.board-cell.three-players::before {
	position: absolute;
	top: 0;
	right: 0;
	bottom: 0;
	left: 0;
	border-radius: inherit;
	background: conic-gradient(var(--color1) 0deg 120deg,
			var(--color2) 120deg 240deg,
			var(--color3) 240deg 360deg);
	content: '';
}

.board-cell.four-players::before {
	position: absolute;
	top: 0;
	right: 0;
	bottom: 0;
	left: 0;
	border-radius: inherit;
	background: conic-gradient(var(--color1) 0deg 90deg,
			var(--color2) 90deg 180deg,
			var(--color3) 180deg 270deg,
			var(--color4) 270deg 360deg);
	content: '';
}

.board-cell.five-players::before {
	position: absolute;
	top: 0;
	right: 0;
	bottom: 0;
	left: 0;
	border-radius: inherit;
	background: conic-gradient(var(--color1) 0deg 72deg,
			var(--color2) 72deg 144deg,
			var(--color3) 144deg 216deg,
			var(--color4) 216deg 288deg,
			var(--color5) 288deg 360deg);
	content: '';
}

.board-cell.six-players::before {
	position: absolute;
	top: 0;
	right: 0;
	bottom: 0;
	left: 0;
	border-radius: inherit;
	background: conic-gradient(var(--color1) 0deg 60deg,
			var(--color2) 60deg 120deg,
			var(--color3) 120deg 180deg,
			var(--color4) 180deg 240deg,
			var(--color5) 240deg 300deg,
			var(--color6) 300deg 360deg);
	content: '';
}

.board-cell.seven-players::before {
	position: absolute;
	top: 0;
	right: 0;
	bottom: 0;
	left: 0;
	border-radius: inherit;
	background: conic-gradient(var(--color1) 0deg 51.43deg,
			var(--color2) 51.43deg 102.86deg,
			var(--color3) 102.86deg 154.29deg,
			var(--color4) 154.29deg 205.72deg,
			var(--color5) 205.72deg 257.15deg,
			var(--color6) 257.15deg 308.58deg,
			var(--color7) 308.58deg 360deg);
	content: '';
}

.board-cell.eight-players::before {
	position: absolute;
	top: 0;
	right: 0;
	bottom: 0;
	left: 0;
	border-radius: inherit;
	background: conic-gradient(var(--color1) 0deg 45deg,
			var(--color2) 45deg 90deg,
			var(--color3) 90deg 135deg,
			var(--color4) 135deg 180deg,
			var(--color5) 180deg 225deg,
			var(--color6) 225deg 270deg,
			var(--color7) 270deg 315deg,
			var(--color8) 315deg 360deg);
	content: '';
}

.board-cell::before {
	z-index: 1;
}

/* Current player emphasis */
.board-cell.completed-by-me:not(.bingo-animating) {
	transform: scale(1.03);
	box-shadow: 0 4px 15px rgba(255, 255, 255, 0.3);
}

.board-cell.completed-by-me:not(.bingo-animating):hover {
	transform: scale(1.06);
	box-shadow: 0 6px 20px rgba(255, 255, 255, 0.4);
}

.board-cell.bingo-winner.completed-by-me:not(.bingo-animating) {
	cursor: pointer;
}

.board-cell.bingo-winner.completed-by-me:not(.bingo-animating):hover {
	transform: scale(1.06);
	box-shadow: 0 6px 20px rgba(255, 255, 255, 0.4);
}

/* Locked state overrides */
.board-cell.board-locked.completed-by-me,
.board-cell.board-locked.completed-by-me:hover {
	transform: none;
	box-shadow: none;
}

.challenge-input {
	border: none;
	outline: none;
	background: transparent;
	width: 100%;
	height: 100%;
	resize: none;
	font-size: 13px;
	line-height: 1.2;
	text-align: center;
	word-wrap: break-word;
	overflow: hidden;
	font-family: inherit;
}

/* Status displays */
.status {
	border: 1px solid var(--glass-border);
	border-radius: var(--radius-md);
	background: var(--glass-bg);
	padding: var(--gap-md);
	font-size: 15px;
	line-height: 1.4;
	text-align: center;
}

/* Sidebar */
.sidebar {
	display: flex;
	flex-direction: column;
	gap: var(--padding-xl);
}

.sidebar>div {
	padding: var(--padding-lg);
}

/* Players */
.players-list {
	display: flex;
	flex-direction: column;
	gap: var(--gap-sm);
}

.player {
	display: flex;
	justify-content: space-between;
	align-items: center;
	transition: var(--transition);
	border-radius: var(--radius-md);
	background: var(--glass-bg);
	padding: var(--padding-sm);
}

.player-info {
	display: flex;
	flex: 1;
	align-items: center;
	gap: var(--gap-sm);
}

.player-name-container {
	width: 100%;
}

.player-color {
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
	border-radius: 50%;
	width: 20px;
	min-width: 20px;
	height: 20px;
}

.player-name {
	float: left;
}

/* Add cursor pointer to remove player button */
.remove-player-emoji {
	float: right;
    cursor: pointer;
}

/* Progress bars */
.progress-bars {
	display: flex;
	flex-direction: column;
	gap: var(--gap-md);
}

.progress-bar-container {
	display: flex;
	flex-direction: column;
	gap: 5px;
}

.progress-info {
	display: flex;
	justify-content: space-between;
	font-size: 0.9rem;
}

.progress-bar {
	box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
	border-radius: 10px;
	background: rgba(255, 255, 255, 0.2);
	height: 20px;
	overflow: hidden;
}

.progress-fill {
	transition: width var(--transition-slow);
	border-radius: 10px;
	background: linear-gradient(45deg, var(--success), #20bf6b);
	height: 100%;
}

/* Toggle switch */
.toggle-container {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: var(--gap-sm);
	cursor: pointer;
	margin-bottom: var(--gap-sm);
	font-size: 14px;
}

.toggle-container:last-child {
	margin-bottom: 0;
}

.toggle-container span .material-icons {
	margin-right: var(--padding-xs);
}

.toggle-container:has(input:disabled)>span:first-child {
	cursor: not-allowed;
}

.toggle-switch {
	position: relative;
	width: 50px;
	height: 24px;
}

.toggle-switch input {
	opacity: 0;
	width: 0;
	height: 0;
}

.slider {
	position: absolute;
	top: 0;
	right: 0;
	bottom: 0;
	left: 0;
	transition: var(--transition-slow);
	cursor: pointer;
	border-radius: 24px;
	background-color: rgba(255, 255, 255, 0.2);
}

.slider:before {
	position: absolute;
	bottom: 3px;
	left: 3px;
	transition: var(--transition-slow);
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
	border-radius: 50%;
	background-color: white;
	width: 18px;
	height: 18px;
	content: "";
}

input:checked+.slider {
	background-color: var(--accent);
}

input:checked+.slider:before {
	transform: translateX(26px);
}

input:disabled+.slider {
	opacity: 0.5;
	cursor: not-allowed;
}

/* Activity feed */
.activity-feed {
	display: flex;
	flex-direction: column;
	gap: var(--padding-xs);
	max-height: 200px;
	overflow-y: auto;
}

.completion-item {
	border-radius: var(--radius-sm);
	background: var(--glass-bg);
	padding: var(--gap-sm);
	font-size: 0.9rem;
	line-height: 1.4;
}

.completion-item strong {
	color: var(--gold);
}

/* Modal System */
.modal-overlay {
	display: none;
	position: fixed;
	top: 0;
	left: 0;
	justify-content: center;
	align-items: center;
	z-index: 1000;
	backdrop-filter: blur(5px);
	background: rgba(0, 0, 0, 0.8);
	width: 100%;
	height: 100%;
}

.modal-content {
	animation: popIn 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
	box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
	border-radius: var(--radius-lg);
	background: white;
	padding: 30px;
	width: 90%;
	max-width: 600px;
	max-height: 80vh;
	overflow-y: auto;
	color: #333;
}

.modal-content h2 {
	display: flex;
	justify-content: center;
	align-items: center;
	gap: var(--gap-sm);
	margin-bottom: 20px;
	color: #333;
	font-size: var(--font-2xl);
	text-align: center;
}

/* Bulk Import Modal */
.bulk-import-content {
	display: flex;
	flex-direction: column;
	gap: 20px;
}

.bulk-import-instructions {
	border: 1px solid rgba(0, 0, 0, 0.1);
	border-radius: var(--radius-md);
	background: #f8f9fa;
	padding: var(--gap-md);
	font-size: 14px;
	line-height: 1.4;
}

.bulk-import-instructions ul {
	margin: var(--gap-sm) 0 0 20px;
}

.bulk-import-instructions li {
	margin-bottom: 5px;
}

.bulk-import-textarea {
	transition: border-color var(--transition);
	border: 2px solid #e9ecef;
	border-radius: var(--radius-md);
	padding: var(--gap-md);
	width: 100%;
	min-height: 300px;
	resize: vertical;
	font-size: 14px;
	line-height: 1.4;
	font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.bulk-import-textarea:focus {
	outline: none;
	box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
	border-color: var(--info);
}

.bulk-import-counter {
	display: flex;
	justify-content: space-between;
	align-items: center;
	color: var(--secondary);
	font-size: 14px;
}

.line-count {
	font-weight: 500;
}

.line-count.valid {
	color: var(--success);
}

.line-count.invalid {
	color: var(--accent);
}

.bulk-import-buttons {
	display: flex;
	gap: var(--gap-sm);
	margin-top: 20px;
}

/* Winner modal */
.result-popup {
	display: none;
	position: fixed;
	top: 0;
	left: 0;
	justify-content: center;
	align-items: center;
	z-index: 1000;
	backdrop-filter: blur(5px);
	background: rgba(0, 0, 0, 0.8);
	width: 100%;
	height: 100%;
}

.result-content {
	animation: popIn 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
	box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
	border-radius: var(--radius-lg);
	background: white;
	padding: 30px;
	width: 90%;
	max-width: 400px;
	color: #333;
	text-align: center;
}

.result-content h2 {
	margin-bottom: 20px;
	color: var(--accent);
	font-size: var(--font-2xl);
}

.winner-text {
	margin-bottom: 30px;
	color: #333;
	font-weight: 500;
	font-size: var(--font-lg);
}

.result-buttons {
	display: flex;
	gap: var(--gap-sm);
}

/* Material Icons */
.material-icons {
	vertical-align: bottom;
	font-size: 18px;
	line-height: 1;
}

h2 .material-icons {
	font-size: 24px;
}

/* Animations */
@keyframes popIn {
	0% {
		transform: scale(0.7) translateY(50px);
		opacity: 0;
	}

	100% {
		transform: scale(1) translateY(0);
		opacity: 1;
	}
}

@keyframes sheen {
	0% {
		transform: rotateZ(60deg) translate(-5em, 7.5em);
		opacity: 0;
	}

	25% {
		opacity: 1;
	}

	75% {
		opacity: 1;
	}

	100% {
		transform: rotateZ(60deg) translate(1em, -9em);
		opacity: 0;
	}
}

/* Custom scrollbar */
.activity-feed::-webkit-scrollbar {
	width: 6px;
}

.activity-feed::-webkit-scrollbar-track {
	border-radius: 3px;
	background: rgba(255, 255, 255, 0.1);
}

.activity-feed::-webkit-scrollbar-thumb {
	border-radius: 3px;
	background: rgba(255, 255, 255, 0.3);
}

/* Utility classes */
.loading {
	opacity: 0.7;
	padding: 20px;
	font-style: italic;
	text-align: center;
}

/* Mobile responsive adjustments */
@media (max-width: 1024px) {
	.main-content {
		grid-template-columns: 1fr;
		gap: 30px;
	}

	.bingo-section {
		order: -1;
	}
}

@media (max-width: 768px) {
	h1 {
		font-size: var(--font-3xl);
	}

	.container {
		padding: 20px 10px;
	}

	.board-header {
		margin-bottom: 20px;
	}

	.game-status {
		padding: var(--gap-sm) var(--padding-sm);
		font-size: 13px;
	}

	.bingo-board {
		gap: var(--padding-xs);
	}

	.board-cell {
		min-height: 60px;
		font-size: 0.67rem;
	}

	.challenge-input,
	.challenge-text {
		font-size: 11px;
	}

	.cell-content {
		margin: 3px;
		width: calc(100% - 6px);
		height: calc(100% - 6px);
	}

	.board-section,
	.sidebar>div,
	.connection-panel {
		padding: var(--gap-md);
	}

	.modal-content {
		margin: var(--gap-sm);
		padding: 20px;
	}

	.bulk-import-textarea {
		min-height: 250px;
	}
}

@media (max-width: 480px) {
	#createBtn > span:not(.material-icons),
	#joinBtn > span:not(.material-icons) {
		display: none;
	}

	.challenge-input,
	.challenge-text {
		font-size: 9px;
	}

	.modal-content {
		padding: var(--gap-md);
		width: 95%;
	}

	.bulk-import-textarea {
		min-height: 200px;
		font-size: 13px;
	}
}

/* Emoji styling for Noto Color Emoji */
.emoji {
	display: inline-block;
	font-style: normal;
	font-family: 'Noto Color Emoji', sans-serif;
}

h1 .emoji {
	vertical-align: middle;
	margin-right: 0.3em;
	font-size: 1.3em;
}

h2 .emoji {
	vertical-align: middle;
	font-size: 1.2em;
}