.container {
	max-width: 600px;
	margin: 0 auto;
	padding: 1rem;
	min-height: 100vh;
	display: flex;
	flex-direction: column;
}
.header {
	display: flex;
	justify-content: space-between;
	padding: 1rem 0;
	border-bottom: 1px solid var(--border);
	margin-bottom: 1rem;
}
.header-item {
	text-align: center;
	white-space: nowrap;
	min-width: 60px;
}
.header-item span {
	display: block;
	font-size: 0.8rem;
	color: #888;
}
.header-item strong {
	font-size: 1.2rem;
	white-space: nowrap;
}
.menu {
	display: flex;
	flex-direction: column;
	gap: 1rem;
	padding: 2rem 0;
}
.menu-btn {
	padding: 1.5rem;
	font-size: 1.1rem;
	border-radius: 8px;
	text-align: center;
}
.sandbox-btn {
	position: fixed;
	top: 1rem;
	right: 1rem;
	background: var(--tile-bg);
	color: var(--text);
	border: 1px solid var(--border);
	padding: 0.5rem 1rem;
	border-radius: 4px;
	font-size: 0.9rem;
}
.sandbox-btn.active {
	background: var(--success);
	color: #000;
}
.game-grid {
	display: grid;
	gap: 8px;
	margin: 1rem auto;
	transition: transform 0.5s ease;
}
.tile {
	aspect-ratio: 1;
	background: var(--tile-bg);
	border-radius: 8px;
	cursor: pointer;
	transition: background 0.2s;
}
.tile.active {
	background: var(--tile-active);
}
.tile.correct {
	background: var(--tile-active);
}
.tile.missed {
	background: var(--success);
}
.tile.wrong {
	background: var(--error);
}
.message {
	text-align: center;
	font-size: 1.2rem;
	padding: 1rem 0;
}
.lives {
	display: flex;
	gap: 0.5rem;
	justify-content: center;
	padding: 0.5rem 0;
}
.life {
	width: 20px;
	height: 20px;
	background: var(--tile-active);
	border-radius: 50%;
}
.life.lost {
	background: var(--tile-bg);
}
.stroop-container {
	flex: 1;
	display: flex;
	flex-direction: column;
	justify-content: center;
}
.stroop-question {
	text-align: center;
	padding: 1rem;
	font-size: 0.9rem;
}
.stroop-cards {
	display: flex;
	gap: 1rem;
	justify-content: center;
	padding: 2rem;
}
.stroop-card {
	border: 2px solid var(--border);
	border-radius: 8px;
	padding: 2rem 1rem;
	font-size: 1.5rem;
	font-weight: bold;
	width: 130px;
	display: flex;
	align-items: center;
	justify-content: center;
}
.stroop-buttons {
	display: flex;
	margin-top: auto;
	border-top: 2px solid var(--success);
}
.stroop-btn {
	flex: 1;
	padding: 1.5rem;
	font-size: 1.2rem;
	border-radius: 0;
	background: transparent;
	color: var(--text);
}
.stroop-btn:first-child {
	border-right: 1px solid var(--border);
}
.sidebar {
	position: fixed;
	right: 0;
	top: 50%;
	transform: translateY(-50%);
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
	padding: 1rem;
}
.sidebar-item {
	background: var(--tile-bg);
	padding: 0.5rem 1rem;
	border-radius: 4px;
	text-align: center;
}
.sidebar-item span {
	display: block;
	font-size: 0.7rem;
	color: #888;
}
.sidebar-item strong {
	color: var(--success);
}
.back-btn {
	position: fixed;
	top: 1rem;
	left: 1rem;
	background: transparent;
	color: var(--text);
	font-size: 1.5rem;
	padding: 0.5rem;
}
.skip-btn {
	position: fixed;
	top: 1rem;
	right: 1rem;
	background: var(--success);
	color: #000;
	padding: 0.5rem 1rem;
	border-radius: 4px;
	font-size: 0.9rem;
}
.timer-bar {
	height: 4px;
	background: var(--success);
	position: fixed;
	bottom: 0;
	left: 0;
}
.timer-bar.running {
	animation: timer-countdown 30s linear forwards;
}
@keyframes timer-countdown {
	from { width: 100%; }
	to { width: 0%; }
}
.mode-toggle {
	display: flex;
	justify-content: center;
	gap: 0.5rem;
	padding: 0.5rem 0;
}
.mode-btn {
	padding: 0.5rem 1rem;
	background: var(--tile-bg);
	color: var(--text);
	border: 1px solid var(--border);
	border-radius: 4px;
	font-size: 0.9rem;
}
.mode-btn.active {
	background: var(--success);
	color: #000;
}
.schulte-grid {
	display: grid;
	grid-template-columns: repeat(5, 1fr);
	gap: 4px;
	margin: 1rem auto;
	width: min(90vw, 350px);
}
.schulte-cell {
	aspect-ratio: 1;
	background: var(--tile-bg);
	border-radius: 4px;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 1.3rem;
	font-weight: bold;
	cursor: pointer;
	user-select: none;
}
.schulte-cell.found {
	background: var(--success);
	color: #000;
}
.anglesum-container {
	flex: 1;
	display: flex;
	flex-direction: column;
}
.anglesum-task {
	text-align: center;
	padding: 1rem;
	font-size: 1.1rem;
	background: var(--tile-bg);
	border-radius: 8px;
	margin-bottom: 1rem;
}
.anglesum-field {
	position: relative;
	flex: 1;
	min-height: 50vh;
	background: #000;
	border: 2px solid #fff;
	border-radius: 8px;
	margin-bottom: 1rem;
}
.anglesum-shape {
	position: absolute;
	width: 70px;
	height: 70px;
	background: #fff;
}
.anglesum-shape.triangle {
	clip-path: polygon(50% 0%, 100% 100%, 0% 100%);
}
.anglesum-shape.square {
	clip-path: none;
}
.anglesum-shape.pentagon {
	clip-path: polygon(50% 0%, 100% 38%, 82% 100%, 18% 100%, 0% 38%);
}
.anglesum-shape.hexagon {
	clip-path: polygon(25% 0%, 75% 0%, 100% 50%, 75% 100%, 25% 100%, 0% 50%);
}
.anglesum-shape.heptagon {
	clip-path: polygon(50% 0%, 90% 20%, 100% 60%, 75% 100%, 25% 100%, 0% 60%, 10% 20%);
}
.anglesum-shape.octagon {
	clip-path: polygon(30% 0%, 70% 0%, 100% 30%, 100% 70%, 70% 100%, 30% 100%, 0% 70%, 0% 30%);
}
.anglesum-shape.nonagon {
	clip-path: polygon(50% 0%, 83% 12%, 100% 43%, 94% 78%, 66% 100%, 34% 100%, 6% 78%, 0% 43%, 17% 12%);
}
.anglesum-answers {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 8px;
}
.anglesum-btn {
	background: var(--tile-bg);
	border: 2px solid var(--border);
	color: var(--text);
	padding: 1.2rem;
	font-size: 1.3rem;
	font-weight: bold;
	border-radius: 8px;
	cursor: pointer;
}
.anglesum-btn.correct {
	background: var(--success);
	border-color: var(--success);
	color: #000;
}
.anglesum-btn.wrong {
	background: var(--error);
	border-color: var(--error);
}
