:root {
	--p1-color: #3498db;
	--p2-color: #e74c3c;
	--accent-color: #f1c40f;
	--bg-dark: #0a0a0a;
	--panel-bg: rgba(0, 0, 0, 0.7);
	--blur: blur(10px);
}

BODY {
	margin: 0;
	padding: 0;
	overflow: hidden;
	background-color: #1a1a1a;
	font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
	touch-action: none;
	color: white;
	user-select: none;
}

CANVAS {
	display: block;
	image-rendering: auto;
}

#ui-overlay {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	pointer-events: none;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	z-index: 10;
}

.header-bar {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 15px 25px;
	background: var(--panel-bg);
	border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

#p1-header {
	border-bottom: none;
	border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.stats {
	font-size: 1.25rem;
	font-weight: 800;
	letter-spacing: 1px;
}

#p1-stats { color: var(--p1-color); text-shadow: 0 0 10px rgba(52, 152, 219, 0.5); }
#p2-stats { color: var(--p2-color); text-shadow: 0 0 10px rgba(231, 76, 60, 0.5); }

.status-text {
	font-size: 0.75rem;
	text-transform: uppercase;
	letter-spacing: 2px;
	color: #aaa;
}

.turn-msg {
	font-family: 'Courier New', Courier, monospace;
	font-size: 0.85rem;
	color: var(--accent-color);
	display: flex;
	align-items: center;
	gap: 15px;
}

#timer-display {
	font-weight: 900;
	font-size: 1.2rem;
	color: #fff;
	background: rgba(231, 76, 60, 0.3);
	padding: 2px 10px;
	border-radius: 4px;
	min-width: 30px;
	text-align: center;
	border: 1px solid rgba(255,255,255,0.2);
}

#central-ui {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 20px;
	pointer-events: none;
}

.interactive {
	pointer-events: auto !important;
}

#menu-screen {
	background: var(--panel-bg);
	backdrop-filter: var(--blur);
	-webkit-backdrop-filter: var(--blur);
	padding: 40px;
	border-radius: 20px;
	border: 1px solid rgba(255, 255, 255, 0.1);
	text-align: center;
	box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
	max-width: 90vw;
}

H1 {
	font-size: clamp(3rem, 8vw, 5rem);
	font-weight: 800;
	margin: 0 0 20px 0;
	font-style: italic;
	letter-spacing: -4px;
	line-height: 0.9;	
	padding-right:10px;
	background-image: linear-gradient(to bottom, #073241 0%, #CDF6F6 50%, #073241 100%);
	background-clip: text;
	-webkit-background-clip: text;
	color: transparent;
}

.mirror-glyph { color: #3498db; display: inline-block; transform: scaleX(-1); }
.red-letter { color: #e74c3c; }

BLOCKQUOTE {
	background: rgba(255, 255, 255, 0.05);
	border-left: 4px solid var(--p1-color);
	margin: 0 0 30px 0;
	padding: 20px;
	border-radius: 0 10px 10px 0;
}

BLOCKQUOTE P {
	margin: 0;
	font-size: 1.1rem;
	color: #ccc;
	line-height: 1.4;
}

.controls-group {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 20px;
}

.btn-row {
	display: flex;
	gap: 15px;
	width: 100%;
	justify-content: center;
}

BUTTON {
	cursor: pointer;
	border: none;
	font-weight: 700;
	text-transform: uppercase;
	transition: all 0.2s ease;
	box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.btn-primary { background: #2980b9; color: white; padding: 12px 30px; border-radius: 8px; }
.btn-secondary { background: #8e44ad; color: white; padding: 12px 30px; border-radius: 8px; }
.btn-start { background: #27ae60; color: white; padding: 20px 50px; border-radius: 50px; font-size: 1.5rem; margin-top: 20px; }

BUTTON:hover { transform: translateY(-2px); filter: brightness(1.2); }
BUTTON:active { transform: translateY(1px); }

.checkbox-container {
	display: flex;
	align-items: center;
	gap: 10px;
	font-size: 0.85rem;
	color: #888;
	cursor: pointer;
}

#rank-display {
	margin-top: 25px;
	padding-top: 15px;
	border-top: 1px solid rgba(255, 255, 255, 0.1);
	color: var(--accent-color);
	font-size: 0.75rem;
	letter-spacing: 2px;
	font-weight: 700;
}

@media (max-width: 600px) {
	.btn-row { flex-direction: column; }
	BLOCKQUOTE P { font-size: 0.9rem; }
}