:root {
	color-scheme: dark;
	font-family: "Segoe UI", system-ui, sans-serif;
	background: #05070d;
	color: #f6fbff;
}

* {
	box-sizing: border-box;
}

html {
	width: 100%;
	min-height: 100%;
}

body {
	margin: 0;
	min-height: 100vh;
	min-height: 100dvh;
	overflow: hidden;
	overscroll-behavior: none;
	background:
		radial-gradient(circle at 50% 100%, rgba(38, 135, 154, 0.34), transparent 46%),
		linear-gradient(180deg, #080b14 0%, #05070d 100%);
}

.shell {
	min-height: 100vh;
	min-height: 100dvh;
	display: grid;
	place-items: center;
	padding: max(6px, env(safe-area-inset-top)) max(6px, env(safe-area-inset-right)) max(6px, env(safe-area-inset-bottom)) max(6px, env(safe-area-inset-left));
}

.stage {
	position: relative;
	width: min(calc(100vw - 12px), 720px);
	height: min(calc(100vh - 12px), 960px);
	height: min(calc(100dvh - 12px), 960px);
	overflow: hidden;
	border: 1px solid rgba(118, 228, 255, 0.28);
	background: #05070d;
	box-shadow: 0 0 30px rgba(74, 206, 255, 0.19), inset 0 0 24px rgba(255, 255, 255, 0.04);
}

canvas {
	position: relative;
	z-index: 1;
	display: block;
	width: 100%;
	height: 100%;
	touch-action: none;
}

.title-screen {
	position: absolute;
	inset: 0;
	z-index: 5;
	display: grid;
	place-items: center;
	padding: 32px;
	overflow: hidden;
	background:
		linear-gradient(180deg, rgba(5, 7, 13, 0.28) 0%, rgba(5, 7, 13, 0.72) 100%),
		repeating-linear-gradient(135deg, rgba(137, 234, 255, 0.12) 0 1px, transparent 1px 18px),
		linear-gradient(145deg, rgba(255, 116, 74, 0.16), rgba(3, 8, 18, 0.08) 42%, rgba(137, 234, 255, 0.14));
	transition: opacity 240ms ease, transform 240ms ease;
}

.title-screen[hidden] {
	display: none;
}

.title-screen.is-exiting {
	opacity: 0;
	transform: scale(1.03);
	pointer-events: none;
}

.title-backdrop {
	position: absolute;
	inset: 0;
	opacity: 0.88;
}

.title-backdrop::before,
.title-backdrop::after {
	content: "";
	position: absolute;
	left: 50%;
	width: 84%;
	height: 2px;
	background: linear-gradient(90deg, transparent, rgba(137, 234, 255, 0.7), rgba(255, 230, 111, 0.75), transparent);
	transform: translateX(-50%) skewX(-18deg);
	box-shadow: 0 0 18px rgba(137, 234, 255, 0.38);
}

.title-backdrop::before {
	top: 24%;
}

.title-backdrop::after {
	bottom: 25%;
}

.title-content {
	position: relative;
	z-index: 1;
	display: grid;
	justify-items: center;
	gap: 16px;
	width: min(100%, 520px);
	text-align: center;
}

.title-kicker {
	margin: 0;
	color: #89eaff;
	font-size: 13px;
	font-weight: 800;
	line-height: 1.2;
	text-transform: uppercase;
	text-shadow: 0 0 12px rgba(137, 234, 255, 0.66);
}

.title-content h1 {
	margin: 0;
	max-width: 100%;
	color: #fff7bf;
	font-size: 72px;
	font-weight: 950;
	line-height: 0.9;
	overflow-wrap: anywhere;
	text-transform: uppercase;
	text-shadow:
		0 0 9px rgba(255, 255, 255, 0.92),
		0 0 26px rgba(255, 116, 74, 0.86),
		0 0 42px rgba(137, 234, 255, 0.56);
}

.title-divider {
	width: min(74%, 360px);
	height: 10px;
	border: 1px solid rgba(255, 230, 111, 0.62);
	background: linear-gradient(90deg, rgba(255, 230, 111, 0.18), rgba(255, 116, 74, 0.52), rgba(137, 234, 255, 0.22));
	clip-path: polygon(12px 0, 100% 0, calc(100% - 12px) 100%, 0 100%);
	box-shadow: 0 0 18px rgba(255, 116, 74, 0.34);
}

.start-button {
	display: inline-grid;
	place-items: center;
	min-width: 196px;
	height: 54px;
	padding: 0 26px;
	border: 1px solid rgba(255, 230, 111, 0.82);
	border-radius: 0;
	background: linear-gradient(135deg, rgba(255, 230, 111, 0.94), rgba(255, 116, 74, 0.92));
	color: #101016;
	clip-path: polygon(14px 0, 100% 0, calc(100% - 14px) 100%, 0 100%);
	cursor: pointer;
	font: inherit;
	font-size: 18px;
	font-weight: 900;
	line-height: 1;
	text-transform: uppercase;
	box-shadow: 0 0 22px rgba(255, 116, 74, 0.48);
	transition: filter 140ms ease, transform 140ms ease, opacity 140ms ease;
}

.start-button:hover:not(:disabled),
.start-button:focus-visible:not(:disabled) {
	filter: brightness(1.1);
	transform: translateY(-1px);
}

.start-button:focus-visible {
	outline: 2px solid #89eaff;
	outline-offset: 4px;
}

.start-button:active:not(:disabled) {
	transform: translateY(1px);
}

.start-button:disabled {
	cursor: default;
	opacity: 0.58;
}

.title-status {
	min-height: 18px;
	margin: 0;
	color: #f6fbff;
	font-size: 13px;
	font-weight: 700;
	line-height: 1.35;
	text-shadow: 0 0 12px rgba(137, 234, 255, 0.5);
}

.countdown-overlay {
	position: absolute;
	left: 0;
	top: 0;
	z-index: 4;
	width: 100px;
	height: 100px;
	pointer-events: none;
	display: grid;
	place-items: center;
	filter: drop-shadow(0 0 18px rgba(255, 116, 74, 0.32));
	transition: opacity 180ms ease-out;
}

.countdown-overlay[hidden] {
	display: none;
}

.countdown-overlay.is-title .countdown-text {
	display: none;
}

.countdown-text {
	position: relative;
	z-index: 2;
	display: grid;
	place-items: center;
	min-width: 86px;
	height: 70px;
	padding: 0 18px;
	color: #fff7bf;
	font-size: 46px;
	font-weight: 900;
	line-height: 1;
	text-align: center;
	text-transform: uppercase;
	text-shadow:
		0 0 8px rgba(255, 255, 255, 0.95),
		0 0 18px rgba(255, 116, 74, 0.95),
		0 0 28px rgba(137, 234, 255, 0.68);
	background: rgba(3, 6, 12, 0.24);
	clip-path: polygon(12px 0, 100% 0, calc(100% - 12px) 100%, 0 100%);
}

.countdown-text.is-start {
	min-width: 168px;
	font-size: 34px;
	color: #ffffff;
}

.float-layer {
	position: absolute;
	inset: 0;
	z-index: 4;
	overflow: hidden;
	pointer-events: none;
}

.connection-burst {
	position: absolute;
	left: 50%;
	top: 50%;
	z-index: 0;
	width: var(--connection-size, 220px);
	height: var(--connection-size, 220px);
	translate: -50% -50%;
	pointer-events: none;
	mix-blend-mode: screen;
	filter:
		drop-shadow(0 0 10px var(--connection-color, #89eaff))
		drop-shadow(0 0 24px rgba(255, 230, 111, 0.44));
}

.connection-core,
.connection-ring {
	position: absolute;
	left: 50%;
	top: 50%;
	pointer-events: none;
}

.connection-core {
	width: 42px;
	height: 42px;
	border-radius: 50%;
	background:
		radial-gradient(circle, #ffffff 0 14%, #fff7bf 15% 28%, var(--connection-color, #89eaff) 29% 46%, transparent 68%);
	translate: -50% -50%;
	animation: connection-core 780ms cubic-bezier(0.11, 0.84, 0.2, 1) forwards;
}

.connection-ring {
	width: 100%;
	height: 100%;
	border: 2px solid color-mix(in srgb, var(--connection-color, #89eaff) 68%, white);
	border-radius: 50%;
	translate: -50% -50%;
	transform: scale(var(--ring-scale, 1));
	opacity: 0;
	animation: connection-ring 840ms cubic-bezier(0.12, 0.82, 0.2, 1) var(--ring-delay, 0ms) forwards;
}

.score-pop,
.match-ready-pop,
.link-callout {
	position: absolute;
	left: 50%;
	top: 50%;
	translate: -50% -50%;
	font-weight: 950;
	line-height: 1;
	text-align: center;
	text-transform: uppercase;
	white-space: nowrap;
	text-shadow:
		0 0 7px rgba(255, 255, 255, 0.92),
		0 0 18px var(--pop-color, rgba(137, 234, 255, 0.9)),
		0 0 32px rgba(255, 116, 74, 0.48);
	will-change: transform, opacity;
}

.match-ready-pop {
	padding: 5px 12px 7px;
	color: #ffffff;
	font-size: clamp(17px, 4.4vw, 34px);
	background: radial-gradient(ellipse at center, rgba(2, 4, 10, 0.72), rgba(2, 4, 10, 0.42) 58%, transparent 75%);
	-webkit-text-stroke: 1px rgba(2, 4, 10, 0.92);
	text-shadow:
		0 2px 0 rgba(2, 4, 10, 0.92),
		0 0 10px var(--match-ready-color, #89eaff),
		0 0 22px rgba(255, 230, 111, 0.48);
	animation: match-ready-pop 980ms cubic-bezier(0.12, 0.82, 0.2, 1) forwards;
}

.score-pop {
	padding: 7px 16px 9px;
	color: #fff7bf;
	font-size: clamp(26px, 6.6vw, 54px);
	background: radial-gradient(ellipse at center, rgba(2, 4, 10, 0.84), rgba(2, 4, 10, 0.48) 58%, transparent 75%);
	-webkit-text-stroke: 1.5px rgba(2, 4, 10, 0.92);
	text-shadow:
		0 2px 0 rgba(2, 4, 10, 0.96),
		2px 0 0 rgba(2, 4, 10, 0.96),
		-2px 0 0 rgba(2, 4, 10, 0.96),
		0 -2px 0 rgba(2, 4, 10, 0.96),
		0 0 8px rgba(255, 255, 255, 0.92),
		0 0 20px var(--pop-color, rgba(137, 234, 255, 0.94)),
		0 0 38px rgba(255, 116, 74, 0.58);
	animation: score-pop 1850ms cubic-bezier(0.15, 0.85, 0.24, 1) forwards;
}

.score-pop span {
	display: inline-block;
	margin-left: 5px;
	color: #ffffff;
	font-size: 0.56em;
	-webkit-text-stroke: 1px rgba(2, 4, 10, 0.92);
	text-shadow:
		0 1px 0 rgba(2, 4, 10, 0.96),
		1px 0 0 rgba(2, 4, 10, 0.96),
		0 0 12px var(--pop-color, #89eaff);
	vertical-align: 0.26em;
}

.link-callout {
	color: var(--link-color, #89eaff);
	font-size: clamp(24px, 6.4vw, 52px);
	letter-spacing: 0;
	animation: link-callout 1700ms cubic-bezier(0.14, 0.9, 0.22, 1) forwards;
}

.full-clear-flash {
	position: absolute;
	inset: 0;
	z-index: 4;
	display: grid;
	place-items: center;
	align-content: center;
	gap: 10px;
	padding: 24px;
	color: #fff4a4;
	background:
		radial-gradient(ellipse at 50% 48%, rgba(2, 4, 10, 0.76), rgba(2, 4, 10, 0.38) 32%, transparent 58%),
		radial-gradient(ellipse at 50% 96%, rgba(255, 116, 74, 0.18), transparent 46%);
	font-weight: 950;
	opacity: 0;
	overflow: hidden;
	pointer-events: none;
	text-align: center;
	text-transform: uppercase;
}

.full-clear-title,
.full-clear-multiplier,
.full-clear-points {
	position: relative;
	z-index: 2;
	display: block;
	max-width: 100%;
	line-height: 0.9;
	-webkit-text-stroke: 2px rgba(2, 4, 10, 0.94);
	text-shadow:
		0 3px 0 rgba(2, 4, 10, 0.96),
		3px 0 0 rgba(2, 4, 10, 0.96),
		-3px 0 0 rgba(2, 4, 10, 0.96),
		0 0 9px rgba(255, 255, 255, 0.95),
		0 0 28px rgba(255, 116, 74, 0.9),
		0 0 44px rgba(137, 234, 255, 0.58);
}

.full-clear-title {
	font-size: clamp(48px, 13vw, 112px);
}

.full-clear-multiplier {
	--full-clear-heat: 1;
	min-width: min(74vw, 360px);
	padding: 3px 20px 8px;
	color: #89eaff;
	font-size: clamp(38px, 11vw, 98px);
	background: linear-gradient(90deg, transparent, rgba(2, 4, 10, 0.72), transparent);
	-webkit-text-stroke: calc(1.4px + var(--full-clear-heat) * 0.22px) rgba(2, 4, 10, 0.96);
	text-shadow:
		0 3px 0 rgba(2, 4, 10, 0.96),
		3px 0 0 rgba(2, 4, 10, 0.96),
		-3px 0 0 rgba(2, 4, 10, 0.96),
		0 0 calc(12px + var(--full-clear-heat) * 3px) currentColor,
		0 0 calc(22px + var(--full-clear-heat) * 7px) rgba(255, 230, 111, 0.72),
		0 0 calc(34px + var(--full-clear-heat) * 10px) rgba(255, 116, 74, 0.56);
	animation: full-clear-multiplier 760ms cubic-bezier(0.12, 0.82, 0.22, 1) infinite alternate;
}

.full-clear-multiplier.is-tier-2 {
	color: #ffe66f;
	animation-duration: 560ms;
}

.full-clear-multiplier.is-tier-5 {
	color: #ff744a;
	animation-duration: 360ms;
}

.full-clear-points {
	color: #ffffff;
	font-size: clamp(54px, 15vw, 126px);
	text-shadow:
		0 3px 0 rgba(2, 4, 10, 0.96),
		3px 0 0 rgba(2, 4, 10, 0.96),
		-3px 0 0 rgba(2, 4, 10, 0.96),
		0 0 11px rgba(255, 255, 255, 0.96),
		0 0 30px rgba(255, 230, 111, 0.92),
		0 0 54px rgba(255, 116, 74, 0.68);
}

.full-clear-meteors {
	position: absolute;
	inset: 0;
	z-index: 1;
	filter: drop-shadow(0 0 12px rgba(255, 230, 111, 0.72));
}

.full-clear-meteor {
	position: absolute;
	width: min(42vw, 260px);
	height: 11px;
	border-radius: 999px;
	opacity: 0;
	background:
		radial-gradient(circle at 92% 50%, #ffffff 0 4px, #fff4a4 5px 10px, transparent 11px),
		linear-gradient(90deg, transparent, rgba(137, 234, 255, 0.15), rgba(255, 230, 111, 0.72), rgba(255, 255, 255, 0.96));
	transform: rotate(-13deg) translateX(-42vw);
	animation: full-clear-meteor 1500ms cubic-bezier(0.12, 0.78, 0.2, 1) forwards;
}

.full-clear-meteor:nth-child(1) {
	left: -26%;
	top: 17%;
	animation-delay: 20ms;
}

.full-clear-meteor:nth-child(2) {
	right: -24%;
	top: 31%;
	transform: rotate(166deg) translateX(-42vw);
	animation-delay: 130ms;
}

.full-clear-meteor:nth-child(3) {
	left: -30%;
	top: 58%;
	width: min(48vw, 310px);
	animation-delay: 250ms;
}

.full-clear-meteor:nth-child(4) {
	right: -22%;
	top: 73%;
	transform: rotate(160deg) translateX(-42vw);
	animation-delay: 390ms;
}

.full-clear-meteor:nth-child(5) {
	left: -28%;
	top: 42%;
	width: min(34vw, 210px);
	animation-delay: 520ms;
}

.full-clear-flash.is-visible {
	animation: full-clear-flash 1850ms cubic-bezier(0.13, 0.88, 0.22, 1) forwards;
}

.hud {
	position: absolute;
	left: 10px;
	right: 10px;
	top: 8px;
	z-index: 3;
	display: grid;
	grid-template-columns: minmax(88px, auto) minmax(42px, auto);
	align-items: center;
	justify-content: space-between;
	gap: 9px;
	pointer-events: none;
	font-weight: 700;
	text-shadow: 0 0 12px rgba(128, 231, 255, 0.85);
}

.label {
	display: block;
	font-size: 10px;
	color: #89eaff;
	letter-spacing: 0;
}

#score,
#combo {
	display: block;
	line-height: 1.1;
}

#score {
	font-size: 18px;
}

#combo {
	width: 100%;
	color: #89eaff;
	font-size: 12px;
	font-weight: 950;
	overflow-wrap: anywhere;
	text-align: center;
	text-transform: uppercase;
}

.hud-stack {
	display: grid;
	gap: 2px;
	min-width: 42px;
}

.hud-stack > div[hidden] {
	display: none;
}

#all-clear-count,
#target-count {
	display: block;
	color: #ffffff;
	font-size: 14px;
	font-weight: 900;
	line-height: 1;
}

.combo-rail {
	position: absolute;
	left: 10px;
	top: 66px;
	bottom: 18px;
	z-index: 3;
	display: grid;
	grid-template-rows: minmax(150px, 1fr) auto;
	justify-items: center;
	gap: 10px;
	width: 58px;
	padding: 10px 8px;
	border: 1px solid rgba(137, 234, 255, 0.36);
	background: linear-gradient(180deg, rgba(4, 8, 16, 0.80), rgba(3, 5, 10, 0.36));
	border-radius: 8px;
	overflow: hidden;
	pointer-events: none;
	text-shadow: 0 0 12px rgba(128, 231, 255, 0.85);
}

.rail-readouts {
	display: grid;
	justify-items: center;
	gap: 8px;
	width: 100%;
}

.combo-readout {
	display: grid;
	justify-items: center;
	gap: 2px;
	width: 100%;
}

.meter {
	position: relative;
	width: 18px;
	height: 100%;
	border: 1px solid rgba(137, 234, 255, 0.45);
	background: rgba(4, 9, 18, 0.82);
	overflow: hidden;
	clip-path: polygon(0 8px, 100% 0, 100% calc(100% - 8px), 0 100%);
	box-shadow:
		inset 0 0 14px rgba(137, 234, 255, 0.12),
		0 0 18px rgba(137, 234, 255, 0.12);
}

.meter span {
	position: absolute;
	left: 0;
	bottom: 0;
	display: block;
	width: 100%;
	height: 100%;
	transform-origin: bottom center;
	transform: scaleY(0);
	background: linear-gradient(0deg, #ffe66f, #ff744a, #d94dff);
	box-shadow: 0 0 18px rgba(255, 116, 74, 0.7);
}

.requirement {
	display: grid;
	justify-items: center;
	gap: 2px;
	text-align: center;
}

#requirement {
	display: inline-grid;
	place-items: center;
	width: 34px;
	height: 30px;
	border: 1px solid rgba(255, 230, 111, 0.58);
	background: linear-gradient(135deg, rgba(255, 230, 111, 0.18), rgba(137, 234, 255, 0.12));
	color: #fff5ac;
	clip-path: polygon(7px 0, 100% 0, calc(100% - 7px) 100%, 0 100%);
	font-size: 17px;
	line-height: 1;
	box-shadow: inset 0 0 12px rgba(255, 230, 111, 0.15);
}

@keyframes connection-core {
	0% {
		opacity: 0;
		transform: scale(0.32);
		filter: brightness(2.2);
	}
	18% {
		opacity: 1;
		transform: scale(1.24);
	}
	58% {
		opacity: 0.84;
		transform: scale(0.92);
	}
	100% {
		opacity: 0;
		transform: scale(0.62);
		filter: brightness(1);
	}
}

@keyframes connection-ring {
	0% {
		opacity: 0;
		transform: scale(0.18);
	}
	18% {
		opacity: 0.92;
	}
	100% {
		opacity: 0;
		transform: scale(1.08);
	}
}

@keyframes score-pop {
	0% {
		opacity: 0;
		transform: translateY(10px) scale(0.72);
		filter: brightness(1.6);
	}
	16% {
		opacity: 1;
		transform: translateY(-2px) scale(1.12);
	}
	72% {
		opacity: 1;
		transform: translateY(-18px) scale(1);
	}
	100% {
		opacity: 0;
		transform: translateY(-48px) scale(0.92);
		filter: brightness(1);
	}
}

@keyframes match-ready-pop {
	0% {
		opacity: 0;
		transform: translateY(8px) scale(0.84);
		filter: brightness(1.6);
	}
	18% {
		opacity: 1;
		transform: translateY(-4px) scale(1.05);
	}
	74% {
		opacity: 1;
		transform: translateY(-10px) scale(1);
	}
	100% {
		opacity: 0;
		transform: translateY(-18px) scale(0.94);
		filter: brightness(1);
	}
}

@keyframes link-callout {
	0% {
		opacity: 0;
		transform: scale(0.72);
	}
	24% {
		opacity: 1;
		transform: scale(1.08);
	}
	68% {
		opacity: 1;
		transform: translateY(-8px) scale(1);
	}
	100% {
		opacity: 0;
		transform: translateY(-28px) scale(0.92);
	}
}

@keyframes full-clear-flash {
	0% {
		opacity: 0;
		transform: scale(0.76);
		filter: brightness(1.9);
	}
	15% {
		opacity: 1;
		transform: scale(1.06);
	}
	70% {
		opacity: 1;
		transform: scale(0.98);
	}
	100% {
		opacity: 0;
		transform: scale(1.24);
		filter: brightness(1);
	}
}

@keyframes full-clear-meteor {
	0% {
		opacity: 0;
		translate: 0 0;
		filter: brightness(1.9);
	}
	18% {
		opacity: 1;
	}
	82% {
		opacity: 1;
	}
	100% {
		opacity: 0;
		translate: 128vw 0;
		filter: brightness(1);
	}
}

@keyframes full-clear-multiplier {
	0% {
		transform: translateY(0) scale(0.96);
		filter: brightness(1);
	}
	100% {
		transform: translateY(-3px) scale(calc(1.02 + var(--full-clear-heat) * 0.018));
		filter: brightness(calc(1.04 + var(--full-clear-heat) * 0.08));
	}
}

.debug-panel {
	position: absolute;
	left: 10px;
	bottom: 10px;
	z-index: 3;
	width: min(315px, calc(100% - 20px));
	padding: 10px 12px;
	border: 1px solid rgba(137, 234, 255, 0.36);
	background: rgba(4, 8, 16, 0.78);
	clip-path: polygon(10px 0, 100% 0, calc(100% - 10px) 100%, 0 100%);
	color: #f6fbff;
	pointer-events: none;
	text-shadow: 0 0 10px rgba(137, 234, 255, 0.55);
}

.debug-panel[hidden] {
	display: none;
}

.debug-head {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 7px;
}

#debug-sequence {
	color: #fff5ac;
	font-size: 13px;
	font-weight: 900;
	line-height: 1;
}

.debug-grid {
	display: grid;
	grid-template-columns: 54px minmax(0, 1fr) 58px minmax(0, 1fr);
	gap: 5px 8px;
	align-items: baseline;
	font-size: 10px;
	font-weight: 800;
	line-height: 1.12;
}

.debug-grid span {
	color: #89eaff;
}

.debug-grid b {
	min-width: 0;
	color: #ffffff;
	font-size: 11px;
	font-weight: 900;
	overflow-wrap: anywhere;
}

.end-screen {
	position: absolute;
	inset: 0;
	z-index: 6;
	display: grid;
	place-items: center;
	padding: 32px;
	background:
		linear-gradient(180deg, rgba(5, 7, 13, 0.36), rgba(5, 7, 13, 0.86)),
		repeating-linear-gradient(135deg, rgba(255, 230, 111, 0.11) 0 1px, transparent 1px 18px);
	text-align: center;
}

.end-screen[hidden] {
	display: none;
}

.end-content {
	display: grid;
	justify-items: center;
	gap: 15px;
	width: min(100%, 520px);
}

.end-content h2 {
	margin: 0;
	max-width: 100%;
	color: #fff7bf;
	font-size: 58px;
	font-weight: 950;
	line-height: 0.96;
	overflow-wrap: anywhere;
	text-transform: uppercase;
	text-shadow:
		0 0 9px rgba(255, 255, 255, 0.86),
		0 0 26px rgba(255, 116, 74, 0.78),
		0 0 42px rgba(137, 234, 255, 0.48);
}

.end-summary {
	margin: 0;
	color: #f6fbff;
	font-size: 14px;
	font-weight: 900;
	line-height: 1.3;
	text-shadow: 0 0 12px rgba(137, 234, 255, 0.56);
}

.console {
	position: fixed;
	z-index: 20;
	left: 8px;
	right: 8px;
	bottom: 8px;
	max-height: 32vh;
	margin: 0;
	padding: 10px;
	overflow: auto;
	background: rgba(3, 5, 10, 0.9);
	border: 1px solid rgba(255, 116, 74, 0.35);
	color: #ffd7c6;
	font-size: 12px;
	white-space: pre-wrap;
}

.console:empty {
	display: none;
}

@media (max-width: 420px), (max-height: 700px) {
	.title-screen {
		padding: 22px;
	}

	.title-content {
		gap: 13px;
	}

	.title-kicker {
		font-size: 11px;
	}

	.title-content h1 {
		font-size: 52px;
		line-height: 0.94;
	}

	.title-divider {
		height: 8px;
	}

	.start-button {
		min-width: 168px;
		height: 48px;
		font-size: 16px;
	}

	.title-status {
		font-size: 12px;
	}

	.hud {
		left: 8px;
		right: 8px;
		top: 7px;
		grid-template-columns: minmax(78px, auto) minmax(36px, auto);
		gap: 7px;
	}

	.label {
		font-size: 9px;
	}

	#score {
		font-size: 16px;
	}

	#combo {
		font-size: 10px;
	}

	#all-clear-count,
	#target-count {
		font-size: 13px;
	}

	.combo-rail {
		left: 6px;
		top: 60px;
		bottom: 10px;
		width: 50px;
		padding: 8px 6px;
		gap: 6px;
	}

	.meter {
		width: 15px;
	}

	#requirement {
		width: 30px;
		height: 27px;
		font-size: 15px;
	}

	.debug-panel {
		left: 8px;
		bottom: 8px;
		width: min(286px, calc(100% - 16px));
		padding: 8px 10px;
	}

	.debug-grid {
		grid-template-columns: 48px minmax(0, 1fr) 52px minmax(0, 1fr);
		gap: 4px 7px;
		font-size: 9px;
	}

	.debug-grid b {
		font-size: 10px;
	}

	.end-screen {
		padding: 22px;
	}

	.end-content {
		gap: 13px;
	}

	.end-content h2 {
		font-size: 42px;
	}

	.end-summary {
		font-size: 12px;
	}

	.countdown-text {
		min-width: 70px;
		height: 58px;
		font-size: 38px;
	}

	.countdown-text.is-start {
		min-width: 138px;
		font-size: 28px;
	}
}
