@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

/* Surkyl Dark Theme Variables */
:root {
	--color-primary: #f47400;
	--color-primary-glow: rgba(244, 116, 0, 0.3);
	--color-muesync: #00cff4;
	--color-accent: #00a896;
	--color-bg-dark: #0a0a0a;
	--color-bg-secondary: #141414;
	--color-bg-tertiary: #1e1e1e;
	--color-bg-glass: rgba(30, 30, 30, 0.8);
	--color-text-light: #f5f5f5;
	--color-text-gray: #a3a3a3;
	--color-text-muted: #666666;
	--color-border: #2a2a2a;
	--color-success: #00c853;
	--color-warning: #ffc107;
	--color-error: #ff5252;
}

/* Reset & Base */
* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

html, body {
	height: 100%;
}

body {
	font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
	background: var(--color-bg-dark);
	color: var(--color-text-light);
	line-height: 1.6;
	overflow: hidden;
	position: relative;
}

/* Loading Overlay */
.loading-overlay {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: var(--color-bg-dark);
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 1000;
}

.loading-content {
	text-align: center;
}

.loading-spinner {
	width: 50px;
	height: 50px;
	border: 3px solid var(--color-bg-tertiary);
	border-top-color: var(--color-primary);
	border-radius: 50%;
	margin: 0 auto 16px;
	animation: spin 1s linear infinite;
}

.loading-content p {
	color: var(--color-text-muted);
	font-size: 14px;
}

@keyframes spin {
	to {
		transform: rotate(360deg);
	}
}

/* Background Effects */
.bg-gradient {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: 
		radial-gradient(circle at 20% 20%, rgba(244, 116, 0, 0.05) 0%, transparent 50%),
		radial-gradient(circle at 80% 80%, rgba(0, 207, 244, 0.03) 0%, transparent 50%),
		radial-gradient(circle at 50% 50%, rgba(0, 168, 150, 0.02) 0%, transparent 70%);
	pointer-events: none;
	z-index: 0;
}

.bg-grid {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background-image: 
		linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
		linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
	background-size: 50px 50px;
	pointer-events: none;
	z-index: 0;
}

/* Header */
.header {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	z-index: 100;
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 16px 32px;
	background: var(--color-bg-glass);
	backdrop-filter: blur(10px);
	border-bottom: 1px solid var(--color-border);
}

.logo {
	display: flex;
	align-items: center;
	gap: 12px;
	color: var(--color-primary);
	font-weight: 700;
	font-size: 18px;
}

.logo svg {
	width: 24px;
	height: 24px;
}

.header-badge {
	background: var(--color-bg-tertiary);
	color: var(--color-muesync);
	padding: 6px 16px;
	border-radius: 20px;
	font-size: 12px;
	font-weight: 600;
	border: 1px solid rgba(0, 207, 244, 0.2);
	text-decoration: none;
	transition: all 0.3s ease;
	display: flex;
	align-items: center;
	gap: 4px;
}

.header-badge:hover {
	background: rgba(0, 207, 244, 0.1);
	border-color: rgba(0, 207, 244, 0.4);
	transform: translateY(-1px);
}

/* Header Center - Master Timer & Attempt Info */
.header-center {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 4px;
}

.master-timer-container {
	display: flex;
	align-items: center;
	gap: 8px;
	background: var(--color-bg-tertiary);
	padding: 8px 16px;
	border-radius: 8px;
	border: 1px solid var(--color-border);
}

.master-timer-container svg {
	color: var(--color-text-muted);
}

#master-timer {
	font-family: 'SF Mono', 'Consolas', monospace;
	font-size: 20px;
	font-weight: 700;
	color: var(--color-text-light);
	min-width: 60px;
	text-align: center;
}

#master-timer.timer-low {
	color: var(--color-warning);
}

#master-timer.timer-critical {
	color: var(--color-error);
	animation: pulse 1s ease-in-out infinite;
}

.attempt-info {
	display: flex;
	gap: 8px;
	font-size: 11px;
	color: var(--color-text-muted);
}

#attempt-stats {
	color: var(--color-accent);
	font-weight: 500;
}

/* Progress Bar */
.progress-bar {
	position: fixed;
	top: 65px;
	left: 0;
	right: 0;
	height: 4px;
	background: var(--color-bg-tertiary);
	z-index: 99;
}

.progress-fill {
	height: 100%;
	background: linear-gradient(90deg, var(--color-primary), var(--color-muesync));
	width: 0%;
	transition: width 0.5s ease-out;
	box-shadow: 0 0 20px var(--color-primary-glow);
}

.progress-text {
	position: absolute;
	right: 32px;
	top: 12px;
	font-size: 12px;
	color: var(--color-text-muted);
	font-weight: 500;
}

/* Main Content */
.main-content {
	position: relative;
	z-index: 10;
	height: 100vh;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	padding: 100px 40px 220px;
}

/* Question Container */
#question-container {
	max-width: 900px;
	width: 100%;
	text-align: center;
	animation: fadeInUp 0.6s ease-out;
}

.question-label {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	color: var(--color-primary);
	font-size: 14px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 2px;
	margin-bottom: 24px;
	opacity: 0.8;
}

.question-label svg {
	width: 18px;
	height: 18px;
}

#question {
	font-size: clamp(32px, 5vw, 56px);
	font-weight: 700;
	line-height: 1.3;
	color: var(--color-text-light);
	text-shadow: 0 0 60px rgba(244, 116, 0, 0.1);
}

/* Timer */
#timer-container {
	margin-top: 60px;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 12px;
}

.timer-ring {
	position: relative;
	width: 120px;
	height: 120px;
}

.timer-ring svg {
	transform: rotate(-90deg);
	width: 100%;
	height: 100%;
}

.timer-bg {
	fill: none;
	stroke: var(--color-bg-tertiary);
	stroke-width: 6;
}

.timer-progress {
	fill: none;
	stroke: var(--color-primary);
	stroke-width: 6;
	stroke-linecap: round;
	stroke-dasharray: 283;
	stroke-dashoffset: 0;
	transition: stroke-dashoffset 1s linear, stroke 0.3s ease;
	filter: drop-shadow(0 0 10px var(--color-primary-glow));
}

#timer {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	font-size: 36px;
	font-weight: 700;
	color: var(--color-text-light);
}

.timer-label {
	font-size: 12px;
	color: var(--color-text-muted);
	text-transform: uppercase;
	letter-spacing: 1px;
}

/* Timer States */
.timer-warning .timer-progress {
	stroke: var(--color-warning);
	filter: drop-shadow(0 0 10px rgba(255, 193, 7, 0.4));
}

.timer-warning #timer {
	color: var(--color-warning);
}

.timer-fail .timer-progress {
	stroke: var(--color-error);
	filter: drop-shadow(0 0 10px rgba(255, 82, 82, 0.4));
	animation: pulse 0.5s ease-in-out infinite;
}

.timer-fail #timer {
	color: var(--color-error);
}

@keyframes pulse {
	0%, 100% { opacity: 1; }
	50% { opacity: 0.5; }
}

/* Paul Graham Disappointed */
.pg {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 200;
	display: flex;
	align-items: center;
	justify-content: center;
	background: rgba(0, 0, 0, 0.9);
	backdrop-filter: blur(10px);
}

.pg-overlay {
	text-align: center;
	animation: scaleIn 0.3s ease-out;
}

.pg-overlay img {
	border-radius: 12px;
	box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
	max-width: 400px;
}

.pg-overlay p {
	margin-top: 20px;
	color: var(--color-error);
	font-size: 18px;
	font-weight: 600;
}

@keyframes scaleIn {
	from {
		transform: scale(0.8);
		opacity: 0;
	}
	to {
		transform: scale(1);
		opacity: 1;
	}
}

/* Tips */
.tip-container {
	position: fixed;
	bottom: 120px;
	left: 50%;
	transform: translateX(-50%);
	z-index: 50;
	width: 90%;
	max-width: 600px;
}

.tip {
	display: flex;
	align-items: flex-start;
	gap: 16px;
	background: var(--color-bg-glass);
	backdrop-filter: blur(10px);
	border: 1px solid var(--color-border);
	border-radius: 12px;
	padding: 16px 20px;
	animation: slideUp 0.5s ease-out;
}

.tip-icon {
	color: var(--color-accent);
	flex-shrink: 0;
}

.tip-icon svg {
	width: 20px;
	height: 20px;
}

.tip-content {
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.tip-content strong {
	color: var(--color-accent);
	font-size: 12px;
	text-transform: uppercase;
	letter-spacing: 1px;
}

.tip-content span {
	color: var(--color-text-gray);
	font-size: 14px;
	line-height: 1.5;
}

@keyframes slideUp {
	from {
		transform: translateY(20px);
		opacity: 0;
	}
	to {
		transform: translateY(0);
		opacity: 1;
	}
}

/* Controls */
.controls {
	position: fixed;
	bottom: 58px;
	left: 50%;
	transform: translateX(-50%);
	display: flex;
	gap: 32px;
	z-index: 50;
}

.control-item {
	display: flex;
	align-items: center;
	gap: 10px;
	color: var(--color-text-muted);
	font-size: 13px;
}

.control-divider {
	width: 1px;
	height: 24px;
	background: var(--color-border);
}

kbd {
	background: var(--color-bg-tertiary);
	border: 1px solid var(--color-border);
	border-radius: 6px;
	padding: 6px 12px;
	font-family: 'SF Mono', 'Consolas', monospace;
	font-size: 12px;
	font-weight: 600;
	color: var(--color-text-light);
	box-shadow: 0 2px 0 var(--color-border);
}

/* End Screen */
#end {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 300;
}

.end-content {
	text-align: center;
	animation: fadeInUp 0.6s ease-out;
}

.end-icon {
	width: 80px;
	height: 80px;
	margin: 0 auto 24px;
	background: linear-gradient(135deg, var(--color-success), var(--color-accent));
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0 10px 40px rgba(0, 200, 83, 0.3);
}

.end-icon.success {
	background: linear-gradient(135deg, var(--color-success), var(--color-accent));
	box-shadow: 0 10px 40px rgba(0, 200, 83, 0.3);
}

.end-icon.failed {
	background: linear-gradient(135deg, var(--color-error), #ff8a80);
	box-shadow: 0 10px 40px rgba(255, 82, 82, 0.3);
}

.end-icon svg {
	width: 40px;
	height: 40px;
	color: white;
}

/* Result Stats */
.result-stats {
	display: flex;
	justify-content: center;
	gap: 40px;
	margin-bottom: 24px;
}

.stat {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 4px;
}

.stat-value {
	font-size: 32px;
	font-weight: 700;
	color: var(--color-text-light);
}

.stat-label {
	font-size: 12px;
	color: var(--color-text-muted);
	text-transform: uppercase;
	letter-spacing: 1px;
}

#end h1,
#failed h1 {
	font-size: 48px;
	font-weight: 700;
	margin-bottom: 16px;
	background: linear-gradient(135deg, var(--color-primary), var(--color-muesync));
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	background-clip: text;
}

#failed h1 {
	background: linear-gradient(135deg, var(--color-error), #ff8a80);
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	background-clip: text;
}

#end p,
#failed p {
	color: var(--color-text-gray);
	font-size: 18px;
	max-width: 500px;
	margin: 0 auto 32px;
	line-height: 1.6;
}

/* Failed Screen */
#failed {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 300;
}

/* Canceled Screen */
#canceled {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 300;
}

#canceled h1 {
	font-size: 48px;
	font-weight: 700;
	margin-bottom: 16px;
	background: linear-gradient(135deg, var(--color-text-muted), var(--color-text-gray));
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	background-clip: text;
}

.end-icon.canceled {
	background: linear-gradient(135deg, var(--color-text-muted), #888);
	box-shadow: 0 10px 40px rgba(102, 102, 102, 0.3);
}

.joke-text {
	font-style: italic;
	color: var(--color-text-gray);
	font-size: 18px;
	max-width: 500px;
	margin: 0 auto 32px;
	line-height: 1.6;
}

.success-message {
	color: var(--color-text-light);
	font-size: 18px;
	max-width: 550px;
	margin: 0 auto 32px;
	line-height: 1.7;
}

.success-actions,
.fail-actions {
	display: flex;
	justify-content: center;
	gap: 16px;
}

.btn-secondary {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	background: var(--color-bg-tertiary);
	color: var(--color-text-light);
	border: 1px solid var(--color-border);
	padding: 14px 28px;
	border-radius: 8px;
	font-size: 16px;
	font-weight: 600;
	cursor: pointer;
	transition: all 0.3s ease;
}

.btn-secondary:hover {
	background: var(--color-border);
	transform: translateY(-2px);
}

.btn-secondary svg {
	width: 20px;
	height: 20px;
}

/* Timing Breakdown */
.timing-breakdown {
	display: flex;
	justify-content: center;
	gap: 24px;
	margin-bottom: 16px;
}

.timing-stat {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 4px;
	padding: 12px 20px;
	border-radius: 8px;
	background: var(--color-bg-tertiary);
}

.timing-stat.perfect {
	border: 1px solid rgba(0, 200, 83, 0.3);
}

.timing-stat.quick {
	border: 1px solid rgba(255, 193, 7, 0.3);
}

.timing-stat.long {
	border: 1px solid rgba(244, 116, 0, 0.3);
}

.timing-count {
	font-size: 24px;
	font-weight: 700;
}

.timing-stat.perfect .timing-count {
	color: var(--color-success);
}

.timing-stat.quick .timing-count {
	color: var(--color-warning);
}

.timing-stat.long .timing-count {
	color: var(--color-primary);
}

.timing-label {
	font-size: 11px;
	color: var(--color-text-muted);
	text-transform: uppercase;
}

.avg-time {
	color: var(--color-text-muted);
	font-size: 14px;
	margin-bottom: 16px !important;
}

.avg-time strong {
	color: var(--color-muesync);
}

.score-value {
	color: var(--color-muesync) !important;
}

#end h1 {
	background: linear-gradient(135deg, var(--color-success), var(--color-muesync));
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	background-clip: text;
}

/* Email Collection Modal */
.email-modal-content {
	max-width: 500px;
}

.email-prompt {
	color: var(--color-text-gray);
	font-size: 15px;
	margin-bottom: 24px;
	line-height: 1.6;
}

.email-input-group {
	display: flex;
	gap: 12px;
	margin-bottom: 16px;
}

.email-input-group input {
	flex: 1;
	background: var(--color-bg-tertiary);
	border: 1px solid var(--color-border);
	border-radius: 8px;
	padding: 14px 16px;
	font-size: 15px;
	color: var(--color-text-light);
	outline: none;
	transition: all 0.3s ease;
}

.email-input-group input::placeholder {
	color: var(--color-text-muted);
}

.email-input-group input:focus {
	border-color: var(--color-primary);
	box-shadow: 0 0 0 3px var(--color-primary-glow);
}

.btn-primary {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	background: var(--color-primary);
	color: white;
	border: none;
	padding: 14px 24px;
	border-radius: 8px;
	font-size: 15px;
	font-weight: 600;
	cursor: pointer;
	transition: all 0.3s ease;
	box-shadow: 0 4px 20px var(--color-primary-glow);
	white-space: nowrap;
}

.btn-primary:hover {
	transform: translateY(-2px);
	box-shadow: 0 8px 30px var(--color-primary-glow);
}

.btn-primary:disabled {
	opacity: 0.6;
	cursor: not-allowed;
	transform: none;
}

.email-privacy {
	font-size: 11px;
	color: var(--color-text-muted);
	margin-top: 20px;
	text-align: center;
}

/* Analytics Modal */
.modal {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 1000;
	display: flex;
	align-items: center;
	justify-content: center;
}

.modal-backdrop {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: rgba(0, 0, 0, 0.8);
	backdrop-filter: blur(4px);
}

.modal-content {
	position: relative;
	background: var(--color-bg-secondary);
	border: 1px solid var(--color-border);
	border-radius: 12px;
	width: 90%;
	max-width: 800px;
	max-height: 80vh;
	overflow: hidden;
	display: flex;
	flex-direction: column;
	animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
	from {
		opacity: 0;
		transform: translateY(-20px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

.modal-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 20px 24px;
	border-bottom: 1px solid var(--color-border);
}

.modal-header h2 {
	font-size: 20px;
	font-weight: 700;
	color: var(--color-text-light);
	margin: 0;
}

.modal-close {
	background: none;
	border: none;
	color: var(--color-text-muted);
	cursor: pointer;
	padding: 8px;
	border-radius: 4px;
	transition: all 0.2s;
}

.modal-close:hover {
	background: var(--color-bg-tertiary);
	color: var(--color-text-light);
}

.modal-close svg {
	width: 20px;
	height: 20px;
}

.modal-body {
	padding: 24px;
	overflow-y: auto;
	flex: 1;
}

/* Analytics Tabs */
.analytics-tabs {
	display: flex;
	gap: 8px;
	margin-bottom: 24px;
}

.analytics-tab {
	background: var(--color-bg-tertiary);
	border: 1px solid var(--color-border);
	color: var(--color-text-gray);
	padding: 10px 20px;
	border-radius: 6px;
	font-size: 14px;
	font-weight: 500;
	cursor: pointer;
	transition: all 0.2s;
}

.analytics-tab:hover {
	background: var(--color-border);
}

.analytics-tab.active {
	background: var(--color-primary);
	border-color: var(--color-primary);
	color: white;
}

/* Analytics Summary Cards */
.analytics-summary,
.history-summary {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 16px;
	margin-bottom: 24px;
}

.summary-card {
	background: var(--color-bg-tertiary);
	border: 1px solid var(--color-border);
	border-radius: 8px;
	padding: 16px;
	text-align: center;
}

.summary-value {
	font-size: 28px;
	font-weight: 700;
	color: var(--color-muesync);
	margin-bottom: 4px;
}

.summary-label {
	font-size: 12px;
	color: var(--color-text-muted);
	text-transform: uppercase;
}

/* Questions List */
.questions-list h3,
.history-list h3 {
	font-size: 16px;
	font-weight: 600;
	color: var(--color-text-light);
	margin-bottom: 16px;
}

.question-item {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	padding: 12px;
	background: var(--color-bg-tertiary);
	border-radius: 8px;
	margin-bottom: 8px;
	border-left: 3px solid var(--color-border);
}

.question-item.perfect {
	border-left-color: var(--color-success);
}

.question-item.quick {
	border-left-color: var(--color-warning);
}

.question-item.long {
	border-left-color: var(--color-primary);
}

.question-number {
	font-size: 12px;
	font-weight: 700;
	color: var(--color-text-muted);
	background: var(--color-bg-dark);
	padding: 4px 8px;
	border-radius: 4px;
	flex-shrink: 0;
}

.question-details {
	flex: 1;
}

.question-text {
	font-size: 14px;
	color: var(--color-text-light);
	margin-bottom: 8px;
	line-height: 1.4;
}

.question-meta {
	display: flex;
	gap: 8px;
	flex-wrap: wrap;
}

.time-badge,
.rating-badge,
.score-badge {
	font-size: 11px;
	padding: 3px 8px;
	border-radius: 12px;
	font-weight: 500;
}

.time-badge {
	background: var(--color-bg-dark);
	color: var(--color-text-gray);
}

.rating-badge {
	color: white;
}

.rating-badge.perfect {
	background: var(--color-success);
}

.rating-badge.quick {
	background: var(--color-warning);
	color: #000;
}

.rating-badge.long {
	background: var(--color-primary);
}

.score-badge {
	background: rgba(0, 207, 244, 0.2);
	color: var(--color-muesync);
}

/* History List */
.history-item {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 12px;
	background: var(--color-bg-tertiary);
	border-radius: 8px;
	margin-bottom: 8px;
}

.history-status {
	flex-shrink: 0;
}

.status-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	border-radius: 50%;
	font-weight: 700;
}

.status-icon.passed {
	background: rgba(0, 200, 83, 0.2);
	color: var(--color-success);
}

.status-icon.failed {
	background: rgba(255, 82, 82, 0.2);
	color: var(--color-error);
}

.history-details {
	flex: 1;
}

.history-date {
	font-size: 14px;
	color: var(--color-text-light);
	font-weight: 500;
	margin-bottom: 4px;
}

.history-meta {
	display: flex;
	gap: 12px;
	font-size: 12px;
	color: var(--color-text-muted);
}

.no-data {
	text-align: center;
	color: var(--color-text-muted);
	padding: 40px 20px;
	font-size: 14px;
}

.clear-history-btn {
	display: block;
	width: 100%;
	margin-top: 16px;
	padding: 10px;
	background: transparent;
	border: 1px solid var(--color-error);
	color: var(--color-error);
	border-radius: 6px;
	font-size: 13px;
	cursor: pointer;
	transition: all 0.2s;
}

.clear-history-btn:hover {
	background: var(--color-error);
	color: white;
}

.btn-restart {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	background: var(--color-primary);
	color: white;
	border: none;
	padding: 14px 28px;
	border-radius: 8px;
	font-size: 16px;
	font-weight: 600;
	cursor: pointer;
	transition: all 0.3s ease;
	box-shadow: 0 4px 20px var(--color-primary-glow);
}

.btn-restart:hover {
	transform: translateY(-2px);
	box-shadow: 0 8px 30px var(--color-primary-glow);
}

.btn-restart svg {
	width: 20px;
	height: 20px;
}

/* Animations */
@keyframes fadeInUp {
	from {
		opacity: 0;
		transform: translateY(30px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

/* Utility Classes */
.hide {
	display: none !important;
}

/* Easter Egg */
.egg {
	position: fixed;
	width: 610px;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	background: var(--color-bg-secondary);
	border: 2px solid var(--color-border);
	border-radius: 16px;
	padding: 25px;
	box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8);
	z-index: 500;
	animation: scaleIn 0.3s ease-out;
}

.egg iframe {
	border-radius: 8px;
	display: block;
}

.egg-close {
	position: absolute;
	top: 12px;
	right: 12px;
	width: 32px;
	height: 32px;
	background: var(--color-bg-tertiary);
	border: 1px solid var(--color-border);
	border-radius: 50%;
	color: var(--color-text-gray);
	font-size: 16px;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: all 0.2s;
	z-index: 10;
}

.egg-close:hover {
	background: var(--color-error);
	border-color: var(--color-error);
	color: white;
	transform: scale(1.1);
}

.egg-joke {
	margin-top: 16px;
	color: var(--color-text-gray);
	font-size: 14px;
	text-align: center;
	font-style: italic;
	line-height: 1.5;
}

/* Scrollbar */
::-webkit-scrollbar {
	width: 8px;
	height: 8px;
}

::-webkit-scrollbar-track {
	background: var(--color-bg-dark);
}

::-webkit-scrollbar-thumb {
	background: var(--color-border);
	border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
	background: var(--color-text-muted);
}

/* Footer */
.footer {
	position: fixed;
	bottom: 0;
	left: 0;
	right: 0;
	height: 46px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 0 24px;
	background: var(--color-bg-secondary);
	border-top: 1px solid var(--color-border);
	color: var(--color-text-muted);
	font-size: 11px;
	z-index: 50;
}

.footer-left,
.footer-center,
.footer-right {
	flex: 1;
}

.footer-left {
	text-align: left;
}

.footer-center {
	text-align: center;
}

.footer-right {
	text-align: right;
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: 8px;
}

.footer a {
	color: var(--color-text-gray);
	text-decoration: none;
	transition: color 0.2s ease;
}

.footer a:hover {
	color: var(--color-muesync);
}

.app-name {
	color: var(--color-text-gray);
	font-weight: 500;
}

.version-tag {
	background: var(--color-bg-tertiary);
	color: var(--color-primary);
	padding: 2px 8px;
	border-radius: 10px;
	font-size: 10px;
	font-weight: 600;
	border: 1px solid rgba(244, 116, 0, 0.3);
}

/* Responsive */
@media (max-width: 768px) {
	.header {
		padding: 12px 20px;
	}
	
	.main-content {
		padding: 80px 24px 240px;
	}
	
	#question {
		font-size: 28px;
	}
	
	.timer-ring {
		width: 100px;
		height: 100px;
	}
	
	#timer {
		font-size: 28px;
	}
	
	.controls {
		flex-direction: column;
		gap: 12px;
		align-items: center;
		bottom: 58px;
	}
	
	.tip-container {
		bottom: 160px;
	}
}
