:root {
	--primary: #405cf5;
	--secondary: #febf00;
	--success: #28a745;
	--error: #dc3545;
	--bg: #f8f9fa;
}

body, html {
	margin: 0; padding: 0;
	height: 100%;
	font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
	background: var(--bg);
	color: #333;
}

.wrapper {
	display: flex; flex-direction: column; height: 100vh;
}

header {
	background: white;
	box-shadow: 0 2px 5px rgba(0,0,0,0.1);
	padding: 10px;
	z-index: 100;
}

#header-menu {
	list-style: none; margin: 0; padding: 0;
	display: flex; justify-content: space-around; align-items: center;
}

#header-menu > li {
	position: relative; cursor: pointer; font-weight: bold; color: var(--primary);
}

#header-menu ul {
	position: absolute; top: 100%; left: 0;
	background: white; list-style: none; padding: 10px;
	box-shadow: 0 4px 10px rgba(0,0,0,0.1);
	display: none; min-width: 180px; border-radius: 8px;
}

#header-menu li:hover ul { display: block; }

#header-menu ul li { padding: 8px; font-weight: normal; color: #333; }
#header-menu ul li:hover { background: #f0f0f0; }

main {
	flex: 1; display: flex; flex-direction: column;
	justify-content: center; align-items: center; padding: 20px;
}

.game-card {
	background: white; border-radius: 20px; padding: 40px;
	box-shadow: 0 10px 30px rgba(0,0,0,0.05);
	max-width: 500px; width: 100%; text-align: center;
}

.expression {
	font-size: 2.5rem; font-weight: bold; margin-bottom: 30px;
	color: #222; min-height: 1.2em;
}

.answers-grid {
	display: grid; grid-template-columns: 1fr 1fr; gap: 15px;
}

.btn-answer {
	background: var(--primary); color: white; border: none;
	padding: 20px; border-radius: 12px; font-size: 1.5rem;
	cursor: pointer; transition: transform 0.1s, background 0.2s;
}

.btn-answer:hover { background: #3046bc; transform: translateY(-2px); }
.btn-answer:active { transform: translateY(0); }

.btn-start {
	background: var(--success); color: white; border: none;
	padding: 15px 40px; font-size: 1.5rem; border-radius: 50px;
	cursor: pointer; font-weight: bold; margin-top: 20px;
}

.stats {
	display: flex; justify-content: space-between; margin-bottom: 20px;
	font-weight: bold; font-size: 1.1rem; color: #666;
}

.timer-bar {
	width: 100%; height: 8px; background: #eee;
	border-radius: 4px; margin-bottom: 30px; overflow: hidden;
}

#timer-progress {
	width: 100%; height: 100%; background: var(--secondary);
	transition: width 0.1s linear;
}

.settings-panel label { display: block; margin: 10px 0 5px; font-size: 0.9rem; text-align: left;}
.settings-panel input, .settings-panel select { width: 100%; margin-bottom: 10px; }

footer { padding: 15px; text-align: center; font-size: 0.8rem; color: #999; }

.grade-display { font-size: 4rem; font-weight: 900; margin: 20px 0; color: var(--secondary); }