/* Quiet surfaces and clear hierarchy for the existing neon arcade identity. */
:root {
	--font-family: "Segoe UI", system-ui, sans-serif;
	--text-primary: #edf5f7;
	--text-secondary: #bbcbd5;
	--text-muted: #91a6b5;
	--border-color: #2b4050;
}

#begin, #wasted {
	background: radial-gradient(ellipse at 28% 24%, #15313c 0%, transparent 48%),
		radial-gradient(ellipse at 83% 75%, #201e35 0%, transparent 48%), #07121b;
}
.bg-scene { opacity: .46; }
.bg-scene::before { opacity: .35; }
.float-territory { filter: blur(1px); opacity: .28; }
.float-player { opacity: .6; }

#begin .start-panel {
	width: min(438px, calc(100vw - 32px));
	max-height: calc(100dvh - 40px);
	padding: 25px 28px 20px;
	background: rgba(9, 20, 30, .96);
	border: 1px solid #314753;
	border-radius: 18px;
	box-shadow: 0 24px 80px #0007;
	backdrop-filter: none;
}
#begin .start-panel::before, #begin .start-panel::after { display: none; }
.menu-eyebrow {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	color: #99b4be;
	font-size: 9px;
	font-weight: 600;
	letter-spacing: 2px;
	margin-bottom: 12px;
}
.menu-eyebrow span { width: 5px; height: 5px; border-radius: 50%; background: #72ebba; }
#begin .start-panel-title { margin-bottom: 0; }
#begin .start-panel-title h1 {
	font-family: "Changa", "Segoe UI", sans-serif;
	font-size: clamp(32px, 6vw, 45px);
	line-height: 1.25;
	letter-spacing: -1px;
	color: #eef9f6;
	background: none;
	animation: none;
	text-shadow: none;
	filter: none;
}
#begin .start-panel-tagline {
	font-size: 12px;
	letter-spacing: .2px;
	font-weight: 400;
	line-height: 1.5;
	color: #a1b5c3;
	text-transform: none;
	animation: none;
}
#begin .tagline-break { display: inline; color: #a1b5c3; text-shadow: none; }
.menu-loop { margin: 13px 0 20px; }
.menu-loop svg { display: block; width: 100%; height: 86px; }
.menu-loop p { margin: 4px 0 0; text-align: center; font-size: 11px; color: #b9ced5; }

#begin .start-btn {
	min-height: 43px;
	padding: 12px 10px;
	font-family: var(--font-family);
	font-size: 10px;
	font-weight: 650;
	letter-spacing: .6px;
	border: 1px solid #304652;
	border-radius: 7px;
	background: #142531;
	color: #bcd0dc;
	box-shadow: none;
	text-shadow: none;
	animation: none;
	transition: background .15s ease, border-color .15s ease, transform .15s ease;
}
#begin .start-btn::before { display: none; }
#begin .start-btn:hover:not(:disabled) { background: #203744; border-color: #72939f; color: #fff; transform: translateY(-1px); box-shadow: none; }
#begin .start-btn:active:not(:disabled) { transform: translateY(0); }
#begin .start-btn.primary {
	min-height: 55px;
	font-size: 13px;
	letter-spacing: 2px;
	background: #72ebba;
	border-color: #8ff4cd;
	color: #092b26;
	box-shadow: 0 4px 20px #72ebba14;
}
#begin .start-btn.primary:hover:not(:disabled) { background: #98f6d1; color: #06241e; box-shadow: 0 4px 24px #72ebba28; }
#begin .start-btn .icon { width: 12px; height: 12px; margin-right: 6px; }
#begin .start-btn-row { gap: 9px; margin-top: 9px; }
#begin .start-btn.half { flex: 1; }
#begin #store-btn.has-new::after, #death-store-btn.has-new::after {
	content: 'NEW'; top: -5px; right: 7px; padding: 3px 5px;
	font-size: 8px; line-height: 1; border-radius: 4px;
	background: #bce6d3; color: #15372c; animation: none;
}
#begin .difficulty-selector {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin: 12px 0 15px;
	padding: 8px 0;
	border: 0;
	background: none;
	box-shadow: none;
}
#begin .difficulty-selector::before, #begin .difficulty-selector::after { display: none; }
#begin .difficulty-selector label { margin: 0; font-size: 9px; color: #91a6b5; letter-spacing: 1px; white-space: nowrap; }
#begin #difficulty-select { width: 154px; min-height: 34px; padding: 6px 28px 6px 12px; background-color: #11232d; border: 1px solid #304652; border-radius: 6px; color: #bce4d6; font-size: 12px; box-shadow: none; }
.menu-control-hint { margin: 20px 0 0; text-align: center; font-size: 9px; font-weight: 600; color: #b1c5cc; letter-spacing: .3px; }
.menu-control-hint span { color: #8ba2ae; font-weight: 400; }
.menu-control-hint b { margin: 0 9px; color: #54717e; }

button:focus-visible, select:focus-visible, input:focus-visible {
	outline: 2px solid #9bf4d3;
	outline-offset: 4px;
}
#settings, .store-content, .leaderboard-content, .daily-reward-content, .achievement-content {
	border-color: #314753;
	background: #0d1b28;
	box-shadow: 0 18px 65px #0008;
}
.settings-card { background: #11232f; border-color: #2b414e; box-shadow: none; }
.settings-card::before, .settings-header::before { opacity: .25; }
.settings-card h3, .settings-header h2 { color: #87d7dd; text-shadow: none; letter-spacing: .6px; }
.settings-card h3 { font-size: 11px; }
.settings-grid { gap: 12px; }
.settings-header h2 { font-size: 19px; }
.settings-label, .settings-card label, .control-desc { color: #bacbd5; font-size: 12px; }
.store-item { box-shadow: none; border-color: #304652; }
.store-item:hover { border-color: #72dce9; }
.store-explainer { margin: 0 0 16px; padding: 13px 16px; border-left: 2px solid #72ebba; background: #122b32; color: #b8cdd7; font-size: 12px; line-height: 1.6; }
.store-explainer strong { color: #e0f8ef; font-weight: 600; }
.store-role-filter { display: flex; align-items: center; gap: 12px; margin: 0 0 16px; color: #b8cdd7; font-size: 12px; }
.store-role-filter select { padding: 8px 12px; border: 1px solid #405b67; border-radius: 6px; background: #102631; color: #edf5f7; font: inherit; }
.store-modal .store-item.locked, .store-modal .store-item.collection-item { opacity: 1; }
#store-upgrades-list .store-item {
	grid-template-columns: 48px minmax(0, 1fr) auto;
	grid-template-rows: auto auto auto;
	grid-template-areas: "icon role action" "icon name action" "icon desc action";
	row-gap: 3px;
}
#store-upgrades-list .store-item-role { grid-area: role; text-align: left; }
#store-upgrades-list .store-item-name { color: #e0eaf0 !important; }
#store-upgrades-list .store-item-desc { color: #b5c8d2; font-style: normal; }
.store-item-role { color: #a6c4cb; font-size: 10px; letter-spacing: .6px; margin-bottom: 4px; text-transform: uppercase; }
.store-item-name, .store-title, .death-stat .stat-value { text-shadow: none; }
.keybind-key { color: #b5ece3; background: #17313b; border-color: #39525e; box-shadow: none; }
.settings-close, .store-close { min-width: 36px; min-height: 36px; }

.daily-reward-card {
	background: #0d1b28; border: 1px solid #405363; border-radius: 16px;
	box-shadow: 0 24px 70px #0008; animation: none;
}
.daily-reward-icon { fill: #f4cc76; filter: none; animation: none; }
.daily-reward-header h2 { color: #edf5f7; font-size: 20px; text-shadow: none; letter-spacing: .5px; }
.daily-reward-subtitle { color: #a9becb; }
.daily-day-cell.current { background: #26332e; border-color: #84936b; box-shadow: none; }
.daily-day-cell.current .day-label, .daily-day-cell.current .day-reward { color: #f4cc76; }
.daily-reward-multiplier.active { color: #f4cc76; background: #f4cc7610; border-color: #f4cc7633; }
.daily-reward-multiplier.active span { color: #f4cc76; }
.daily-reward-claim, .daily-reward-claim:hover {
	background: #72ebba; color: #092b26; border: 1px solid #8ff4cd;
	box-shadow: none; min-height: 46px; font-size: 12px;
}
.daily-reward-claim:hover { background: #98f6d1; }

@media (max-height: 740px) {
	#begin .start-panel { padding: 18px 25px 16px; max-height: calc(100dvh - 24px); }
	.menu-eyebrow { margin-bottom: 5px; }
	.menu-loop { margin: 5px 0 12px; }
	.menu-loop svg { height: 59px; }
	.menu-control-hint { margin-top: 14px; }
	#begin .difficulty-selector { margin: 7px 0 8px; }
}
@media (max-height: 540px) {
	.menu-loop, .menu-eyebrow { display: none; }
	#begin .start-panel-title { margin-bottom: 10px; }
	#begin .start-panel-title h1 { font-size: 30px; }
	#begin .start-panel { max-height: calc(100dvh - 16px); }
}
@media (max-width: 420px) {
	#begin .start-panel { padding-left: 20px; padding-right: 20px; }
	#begin .start-btn { font-size: 9px; letter-spacing: .2px; }
	.menu-control-hint { font-size: 8px; }
}
@media (prefers-reduced-motion: reduce) {
	#begin *, #wasted *, .store-modal *, #settings * { animation: none !important; transition: none !important; }
}
