:root {
	color-scheme: dark;
	--bg: #101311;
	--ink: #f0f0df;
	--muted: #858c80;
	--orange: #ffa454;
	--green: #caee91;
	--line: #343b32;
	font-family: Inter, "Segoe UI", "Microsoft YaHei", sans-serif;
	font-synthesis: none;
}
* {
	box-sizing: border-box;
}
html,
body {
	margin: 0;
	min-width: 300px;
	height: 100%;
	background: var(--bg);
	color: var(--ink);
}
body {
	overflow: hidden;
}
button,
a {
	-webkit-tap-highlight-color: transparent;
}
button {
	font: inherit;
	color: inherit;
	cursor: pointer;
}
.mode-picker {
	display: flex;
	gap: 8px;
	margin: 18px 0 10px;
}
.mode-option {
	flex: 1;
	min-width: 0;
	padding: 10px 12px;
	border: 1px solid #7d8d6a55;
	background: #122018aa;
	color: #b6c6a6;
	text-align: left;
	font: 600 11px monospace;
	letter-spacing: .04em;
}
.mode-option small { display: block; margin-top: 4px; color: #82927d; font: 10px "Segoe UI", sans-serif; letter-spacing: 0; }
.mode-option.selected { border-color: #caee91; box-shadow: 0 0 0 1px #caee9144 inset; color: #e0f2bd; }
.playtest-loop {
	display: flex;
	align-items: center;
	gap: 9px;
	margin: 14px 0 2px;
	color: #879881;
	font: 10px ui-monospace, Consolas, monospace;
	letter-spacing: .08em;
}
.playtest-loop b { color: #d9efad; margin-right: 3px; }
.playtest-loop i { color: #687961; font-style: normal; }
.feedback-note {
	min-height: 16px;
	margin-top: 7px;
	color: #caee91;
	font: 10px ui-monospace, Consolas, monospace;
}
button:focus-visible,
a:focus-visible,
canvas:focus-visible {
	outline: 2px solid var(--green);
	outline-offset: 4px;
}
button:disabled {
	opacity: 0.35;
	cursor: default;
}
button {
	touch-action: manipulation;
}
button[hidden],
[hidden] {
	display: none !important;
}
.app {
	height: 100dvh;
	min-height: 480px;
	padding: 0 30px;
	display: flex;
	flex-direction: column;
}
.topbar {
	height: 82px;
	flex-shrink: 0;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
}
.brand {
	display: flex;
	align-items: center;
	gap: 12px;
	color: var(--ink);
	text-decoration: none;
	font-weight: 750;
	letter-spacing: 3px;
	font-size: 18px;
}
.brand-symbol {
	color: var(--orange);
	font: 42px Georgia;
	transform: skew(-8deg);
	line-height: 1;
}
.brand small {
	display: block;
	font-size: 8px;
	letter-spacing: 3.5px;
	color: #8a9284;
	margin-top: 5px;
}
.build-label {
	font:
		10px ui-monospace,
		Consolas,
		monospace;
	letter-spacing: 1.7px;
	color: #848d7e;
}
.build-label i,
footer i,
.intro-meta i,
.sector-label i {
	display: inline-block;
	width: 5px;
	height: 5px;
	background: var(--green);
	margin-right: 8px;
}
nav {
	display: flex;
	align-items: center;
	gap: 7px;
}
.utility {
	border: 1px solid transparent;
	background: none;
	padding: 8px 10px;
	color: #a4ac9f;
	font-size: 11px;
	letter-spacing: 0.5px;
}
.utility:hover {
	border-color: var(--line);
	color: var(--ink);
}
.utility span {
	color: var(--orange);
	margin-left: 4px;
}
#pause {
	border: 1px solid var(--line);
	width: 34px;
	height: 32px;
	font-size: 15px;
	padding: 0;
}
.arena {
	flex: 1;
	min-height: 0;
	position: relative;
	isolation: isolate;
	border: 1px solid #444b3c;
	background: #151b17;
	overflow: hidden;
}
#game {
	width: 100%;
	height: 100%;
	display: block;
	touch-action: none;
	outline: none;
}
.arena.playing #game {
	cursor: crosshair;
}
.vignette {
	position: absolute;
	inset: 0;
	pointer-events: none;
	box-shadow: inset 0 0 90px #02070477;
	z-index: 1;
}
.hud {
	position: absolute;
	z-index: 2;
	pointer-events: none;
	top: 25px;
	left: 28px;
	right: 28px;
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	gap: 10px;
	transition: opacity 0.3s;
}
.micro {
	font:
		9px ui-monospace,
		Consolas,
		monospace;
	letter-spacing: 1.6px;
	color: #a1ac95;
}
.core-readout {
	width: 190px;
	padding: 12px 14px;
	background: #0c130fe0;
	border: 1px solid #43513c;
}
.core-readout .micro {
	display: flex;
	justify-content: space-between;
	font-size: 8px;
}
.micro b {
	color: var(--green);
	font-weight: 400;
}
.health-track {
	height: 4px;
	background: #303a2c;
	margin: 9px 0 14px;
}
.health-track div {
	height: 100%;
	background: var(--green);
	transition: width 0.2s;
}
.armor-line {
	display: flex;
	justify-content: space-between;
	align-items: center;
	font-size: 10px;
	color: #a4ae98;
}
.armor-line b {
	font:
		23px ui-monospace,
		Consolas,
		monospace;
	color: var(--ink);
}
.armor-line em {
	font-size: 11px;
	color: #6d7868;
	font-style: normal;
}
.armor-pips {
	display: flex;
	gap: 3px;
	height: 9px;
	margin-top: 7px;
}
.armor-pips i {
	flex: 1;
	background: #2c352a;
}
.armor-pips .plate {
	background: #c6d2b8;
}
.armor-pips .gear {
	background: var(--orange);
}
.armor-pips .cell {
	background: #89e3cb;
}
.mass-state {
	font-size: 9px;
	color: #8c9a83;
	margin-top: 8px;
	letter-spacing: 1px;
}
.module-state {
	font-size: 8px;
	color: #f0df8b;
	margin-top: 6px;
	line-height: 1.5;
	min-height: 12px;
}
.timer-readout {
	text-align: center;
	padding: 6px 20px;
	text-shadow: 0 2px 15px #000;
	background: linear-gradient(#0c130f99, transparent);
}
#timer {
	font:
		56px / 0.99 Impact,
		"Arial Narrow",
		sans-serif;
	letter-spacing: 1px;
	margin: 6px 0 9px;
	font-variant-numeric: tabular-nums;
}
#timer span {
	font:
		23px ui-monospace,
		monospace;
	color: #a3ac96;
}
.score-readout {
	text-align: right;
	width: 190px;
	padding: 12px 0;
}
#score {
	font:
		31px ui-monospace,
		Consolas,
		monospace;
	display: block;
	letter-spacing: -1px;
	margin-top: 8px;
	text-shadow: 0 2px 8px #000;
}
.combo {
	font-size: 11px;
	color: var(--orange);
	margin-top: 8px;
	min-height: 16px;
}
.combo-track {
	height: 2px;
	background: #2b3329;
	margin-top: 8px;
	max-width: 105px;
	margin-left: auto;
}
.combo-track i {
	display: block;
	width: 0;
	height: 100%;
	background: var(--orange);
}
.sector-label {
	position: absolute;
	left: 28px;
	bottom: 26px;
	font:
		10px ui-monospace,
		Consolas,
		monospace;
	letter-spacing: 2px;
	color: #a4ac98;
	pointer-events: none;
	z-index: 2;
}
.sector-label span {
	display: block;
	color: #66705f;
	font: 9px sans-serif;
	letter-spacing: 3px;
	margin: 6px 0 0 13px;
}
.sector-label i {
	background: var(--orange);
}
.notice {
	position: absolute;
	top: 29%;
	left: 50%;
	transform: translateX(-50%);
	color: var(--orange);
	font-size: 16px;
	font-weight: 700;
	letter-spacing: 4px;
	z-index: 4;
	pointer-events: none;
	text-shadow: 0 2px 10px #000;
	opacity: 0;
	transition: opacity 0.15s;
	white-space: nowrap;
}
.notice.visible {
	opacity: 1;
}
.combat-hint {
	position: absolute;
	bottom: 100px;
	left: 50%;
	transform: translateX(-50%);
	font-size: 10px;
	color: #afb9a3;
	letter-spacing: 2px;
	pointer-events: none;
	white-space: nowrap;
	text-shadow: 0 1px 5px black;
}
.tutorial-card,
.contract-readout {
	position: absolute;
	z-index: 3;
	background: #0d1512e8;
	border: 1px solid #526246;
	box-shadow: 0 10px 28px #0005;
	backdrop-filter: blur(5px);
}
.tutorial-card {
	left: 22px;
	top: 136px;
	width: 252px;
	padding: 14px 16px 12px;
}
.tutorial-head,
.contract-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	color: #91a685;
	font: 9px ui-monospace, Consolas, monospace;
	letter-spacing: 1.4px;
}
.tutorial-head button {
	border: 0;
	background: none;
	padding: 0;
	color: #7d8b73;
	font-size: 10px;
}
.tutorial-card > strong,
.contract-readout > strong {
	display: block;
	margin-top: 10px;
	color: #e2efc5;
	font-size: 14px;
	letter-spacing: 1px;
}
.tutorial-card p {
	margin: 7px 0 12px;
	color: #a8b79f;
	font-size: 11px;
	line-height: 1.6;
}
.tutorial-progress {
	height: 3px;
	background: #263526;
	overflow: hidden;
}
.tutorial-progress i {
	display: block;
	height: 100%;
	width: 0;
	background: var(--green);
	transition: width .2s ease;
}
.tutorial-card > small {
	display: block;
	margin-top: 8px;
	color: #7d8d74;
	font: 9px ui-monospace, Consolas, monospace;
}
.contract-readout {
	right: 22px;
	top: 136px;
	width: 210px;
	padding: 12px 14px;
	border-color: #465840;
}
.contract-head b {
	color: #caee91;
	font-weight: 400;
}
.contract-readout > strong {
	font-size: 12px;
	margin-top: 8px;
}
.contract-readout > small {
	display: block;
	margin-top: 4px;
	color: #91a685;
	font-size: 10px;
}
.contract-readout.completed { border-color: #caee91; }
.contract-readout.failed { opacity: .55; }
.desktop-actions {
	position: absolute;
	bottom: 24px;
	left: 50%;
	transform: translateX(-50%);
	display: flex;
	gap: 9px;
	z-index: 2;
	pointer-events: none;
}
.action {
	background: #0d1512e8;
	border: 1px solid #3b4837;
	display: flex;
	gap: 10px;
	align-items: center;
	padding: 11px 14px;
	position: relative;
	min-width: 138px;
}
.action kbd {
	font:
		9px ui-monospace,
		Consolas,
		monospace;
	color: #c2ccb4;
	border: 1px solid #4b5643;
	padding: 6px 4px;
}
.action span {
	font-size: 11px;
	letter-spacing: 1px;
}
.action small {
	display: block;
	font:
		8px ui-monospace,
		Consolas,
		monospace;
	color: #92ad77;
	letter-spacing: 1px;
	margin-top: 5px;
}
.action i {
	position: absolute;
	left: 0;
	bottom: 0;
	height: 2px;
	background: var(--green);
	width: 100%;
}
.action-throw {
	border-color: #766045;
}
.action-throw small {
	color: var(--orange);
}
.overlay {
	position: absolute;
	inset: 0;
	z-index: 5;
}
.arena:has(#intro:not([hidden])) .hud,
.arena:has(#intro:not([hidden])) .desktop-actions,
.arena:has(#intro:not([hidden])) .combat-hint,
.arena:has(#intro:not([hidden])) .tutorial-card,
.arena:has(#intro:not([hidden])) .contract-readout,
.arena:has(#intro:not([hidden])) .sector-label {
	opacity: 0;
}
#intro {
	background: linear-gradient(
		90deg,
		#0c120ff5 0%,
		#0c120fde 33%,
		#0c120f33 57%,
		#0c120f05 100%
	);
	display: flex;
	align-items: center;
	padding: 50px 6% 65px;
}
.intro-copy {
	width: 51%;
	max-width: 600px;
	position: relative;
}
.eyebrow {
	color: var(--orange);
	font:
		10px ui-monospace,
		"Microsoft YaHei",
		monospace;
	letter-spacing: 2px;
	display: flex;
	gap: 18px;
	align-items: center;
}
.eyebrow b {
	border: 1px solid #66513c;
	padding: 5px 7px;
	font-size: 9px;
	font-weight: 400;
	letter-spacing: 1px;
}
h1 {
	font-size: clamp(48px, 5.6vw, 83px);
	font-weight: 900;
	letter-spacing: -3px;
	line-height: 1;
	margin: 28px 0 14px;
	white-space: nowrap;
}
h1 span {
	color: var(--orange);
}
.english-title {
	font:
		10px ui-monospace,
		Consolas,
		monospace;
	color: #77816e;
	letter-spacing: 3px;
}
.tagline {
	font-size: clamp(23px, 2.2vw, 34px);
	font-weight: 700;
	letter-spacing: 2px;
	line-height: 1.5;
	margin: 30px 0 16px;
}
.intro-description {
	font-size: 12px;
	color: #96a18c;
	line-height: 2;
	letter-spacing: 0.3px;
	margin-bottom: 29px;
}
.primary {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 35px;
	background: var(--orange);
	color: #1c2019;
	border: 0;
	font-size: 14px;
	font-weight: 750;
	letter-spacing: 2px;
	padding: 18px 24px;
	min-width: 250px;
	box-shadow: 4px 4px 0 #67472a;
	transition:
		background 0.15s,
		transform 0.15s;
}
.primary:hover {
	background: #ffbd77;
	transform: translateY(-2px);
}
.primary:active {
	transform: translate(2px, 2px);
	box-shadow: 2px 2px 0 #67472a;
}
.primary span {
	font-size: 22px;
	line-height: 1;
	font-weight: 400;
}
.intro-meta {
	display: flex;
	gap: 18px;
	color: #717f68;
	font-size: 9px;
	margin-top: 20px;
	letter-spacing: 0.6px;
}
.intro-meta i {
	width: 4px;
	height: 4px;
	margin-right: 4px;
}
.intro-side {
	position: absolute;
	left: 57%;
	right: 6%;
	top: 12%;
	bottom: 16%;
	pointer-events: none;
}
.spec-top {
	border-top: 1px solid #65765777;
	padding-top: 12px;
	font:
		38px Impact,
		sans-serif;
	color: #c9d9b7;
}
.spec-top span {
	display: block;
	font:
		8px ui-monospace,
		monospace;
	letter-spacing: 2px;
	color: #7a8e6c;
	margin-top: 8px;
}
.spec-bottom {
	position: absolute;
	bottom: 0;
	left: 0;
	right: 0;
	border-top: 1px solid #65765777;
	padding-top: 18px;
	display: flex;
	gap: 24px;
	align-items: center;
}
.spec-bottom > span {
	font:
		50px Impact,
		sans-serif;
	color: var(--orange);
}
.spec-bottom small {
	display: block;
	font:
		8px ui-monospace,
		monospace;
	color: #819873;
	letter-spacing: 1.6px;
	margin-top: 2px;
}
.spec-bottom p {
	font-size: 10px;
	color: #a7ba97;
	line-height: 2;
}
.spec-bottom b {
	font-weight: 400;
	color: #6f8362;
}
.intro-controls {
	position: absolute;
	left: 6%;
	bottom: 28px;
	display: flex;
	gap: 22px;
	color: #7e8c73;
	font-size: 10px;
}
.intro-controls kbd {
	font:
		9px ui-monospace,
		monospace;
	border: 1px solid #3e4b34;
	color: #b4c2a8;
	padding: 4px 6px;
	margin-right: 6px;
}
.intro-touch-note {
	display: none;
}
.modal-overlay {
	display: grid;
	place-items: center;
	background: #070d0bd9;
	backdrop-filter: blur(7px);
}
.upgrade-overlay {
	position: absolute;
	inset: 0;
	z-index: 6;
	display: grid;
	place-items: center;
	background: #07100dd9;
	backdrop-filter: blur(8px);
}
.upgrade-modal {
	width: min(720px, calc(100% - 36px));
	padding: 31px;
	background: #111b15;
	border: 1px solid #697b50;
	box-shadow: 10px 10px 0 #050b0888;
	text-align: center;
}
.upgrade-modal .eyebrow {
	justify-content: center;
}
.upgrade-modal h2 {
	margin: 18px 0 8px;
	font-size: 32px;
	letter-spacing: 3px;
}
.upgrade-modal > p {
	margin: 0 0 24px;
	font-size: 11px;
	color: #98aa8a;
}
.upgrade-choices {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 10px;
}
.upgrade-card {
	min-height: 154px;
	padding: 17px 14px;
	background: #17231a;
	border: 1px solid #45573b;
	text-align: left;
	transition:
		transform 0.15s,
		border-color 0.15s,
		background 0.15s;
}
.upgrade-card:hover,
.upgrade-card:focus-visible {
	transform: translateY(-4px);
	background: #203020;
	border-color: #d9efad;
}
.upgrade-card .upgrade-icon {
	display: block;
	width: 28px;
	height: 28px;
	margin-bottom: 20px;
	border: 2px solid currentColor;
	transform: rotate(45deg);
}
.upgrade-card strong {
	display: block;
	font-size: 13px;
	letter-spacing: 1px;
}
.upgrade-card small {
	display: block;
	margin-top: 8px;
	font-size: 10px;
	line-height: 1.7;
	color: #9aab8d;
}
.modal {
	width: 380px;
	max-width: calc(100% - 36px);
	text-align: center;
	padding: 30px 30px;
	background: #131c16;
	border: 1px solid #596647;
	box-shadow: 10px 10px 0 #080c0966;
}
.modal .eyebrow {
	justify-content: center;
	font-size: 9px;
}
.modal h2 {
	font-size: 36px;
	letter-spacing: 4px;
	margin: 20px 0 8px;
}
.modal p {
	font-size: 11px;
	color: #97a68a;
	line-height: 1.9;
	margin: 0 0 24px;
}
.modal .primary {
	width: 100%;
	min-width: 0;
}
.secondary {
	background: none;
	border: 1px solid #4d5b40;
	width: 100%;
	padding: 13px;
	margin-top: 14px;
	font-size: 12px;
	color: #b4c1a8;
}
.modal-note {
	font-size: 9px;
	color: #7f9171;
	line-height: 1.8;
	margin-top: 22px;
}
.result-score {
	border-top: 1px solid #34442d;
	border-bottom: 1px solid #34442d;
	padding: 18px 0;
	color: var(--orange);
}
.result-score > span {
	display: block;
	font-size: 10px;
	color: #8c9f7c;
	letter-spacing: 3px;
}
.result-score strong {
	display: block;
	font:
		48px ui-monospace,
		monospace;
	letter-spacing: -2px;
	margin: 8px 0;
}
.result-score small {
	font-size: 10px;
	color: #8c9f7c;
}
.result-stats {
	display: flex;
	justify-content: space-around;
	padding: 21px 0;
	gap: 8px;
}
.result-stats strong {
	display: block;
	font:
		20px ui-monospace,
		monospace;
}
.result-stats span {
	font-size: 9px;
	color: #96a589;
	display: block;
	margin-top: 5px;
}
footer {
	height: 48px;
	flex-shrink: 0;
	display: flex;
	align-items: center;
	justify-content: space-between;
	font-size: 9px;
	color: #697560;
	letter-spacing: 1px;
}
footer b {
	font:
		9px ui-monospace,
		monospace;
	color: #9ca98e;
	border: 1px solid #3b4533;
	padding: 2px 5px;
	margin-left: 9px;
}
footer p {
	color: #8c9782;
	font-size: 10px;
	letter-spacing: 3px;
}
footer em {
	font-style: normal;
	color: #46513d;
	margin: 0 9px;
}
.touch-controls {
	display: none;
}
.intro-touch-note {
	color: #99ab88;
	font-size: 10px;
	letter-spacing: 1px;
}
@media (min-width: 1500px) {
	.app {
		padding: 0 42px;
	}
	.topbar {
		height: 88px;
	}
	#intro {
		padding-left: 7%;
	}
	.intro-controls {
		left: 7%;
	}
}
@media (max-height: 760px) and (min-width: 761px) {
	h1 {
		font-size: 58px;
		margin-top: 18px;
	}
	.tagline {
		font-size: 24px;
		margin: 20px 0 12px;
	}
	.intro-description {
		margin-bottom: 20px;
	}
	.intro-meta {
		margin-top: 14px;
	}
	.topbar {
		height: 66px;
	}
	footer {
		height: 36px;
	}
}
@media (pointer: coarse), (max-width: 760px) {
	.tutorial-card { left: 12px; top: 126px; width: 205px; padding: 11px 12px 10px; }
	.contract-readout { right: 12px; top: 126px; width: 148px; padding: 10px 11px; }
	.contract-readout > strong { font-size: 10px; }
	.contract-readout > small { font-size: 8px; }
	.desktop-actions {
		display: none;
	}
	.touch-controls {
		display: flex;
		position: absolute;
		inset: auto 20px 30px;
		justify-content: space-between;
		align-items: flex-end;
		pointer-events: none;
		z-index: 3;
	}
	.stick {
		position: relative;
		width: 110px;
		height: 110px;
		border: 1px solid #91aa6d55;
		border-radius: 50%;
		background: #111b16a0;
		touch-action: none;
		pointer-events: auto;
	}
	.stick:after {
		content: "";
		position: absolute;
		inset: 18px;
		border: 1px dashed #91aa6d44;
		border-radius: 50%;
		pointer-events: none;
	}
	#stick-knob {
		position: absolute;
		left: 34px;
		top: 34px;
		width: 40px;
		height: 40px;
		border-radius: 50%;
		background: #6b825344;
		border: 1px solid #9dbb73;
		pointer-events: none;
	}
	.stick > span {
		position: absolute;
		width: 100%;
		text-align: center;
		bottom: -18px;
		font-size: 9px;
		color: #7d936a;
		pointer-events: none;
	}
	.touch-actions {
		display: grid;
		grid-template-columns: 54px 72px;
		grid-template-rows: 54px 54px;
		gap: 9px;
		align-items: end;
		pointer-events: auto;
	}
	.touch-actions button {
		border-radius: 50%;
		border: 1px solid #7e9861;
		background: #15231de8;
		font-size: 11px;
		width: 54px;
		height: 54px;
		touch-action: none;
		user-select: none;
	}
	.touch-actions small {
		display: block;
		font-size: 8px;
		color: #92ad75;
		margin-top: 3px;
	}
	.touch-fire {
		grid-column: 2;
		grid-row: 1 / 3;
		width: 72px !important;
		height: 72px !important;
		background: #ffa454e6 !important;
		border-color: #ffba7a !important;
		color: #181c14 !important;
		font-weight: 700;
		font-size: 16px !important;
		align-self: center;
	}
	.touch-fire small {
		font-size: 8px;
		color: #5d4228;
	}
	.combat-hint {
		bottom: 170px;
		font-size: 9px;
		letter-spacing: 1px;
	}
	.sector-label {
		display: none;
	}
	.intro-controls {
		display: none;
	}
	.intro-touch-note {
		display: block;
		position: absolute;
		bottom: 22px;
		left: 6%;
	}
	.arena:has(.overlay:not([hidden])) .touch-controls {
		display: none;
	}
}
@media (max-width: 760px) {
	.app {
		padding: 0 10px;
		min-height: 480px;
	}
	.topbar {
		height: 60px;
		gap: 6px;
	}
	.brand {
		font-size: 13px;
		letter-spacing: 1px;
		gap: 7px;
	}
	.brand-symbol {
		font-size: 31px;
	}
	.brand small {
		font-size: 6px;
		letter-spacing: 2px;
		margin-top: 3px;
	}
	.build-label {
		display: none;
	}
	nav {
		gap: 0;
	}
	.utility {
		font-size: 9px;
		padding: 7px 6px;
		letter-spacing: 0;
	}
	#pause {
		width: 28px;
		height: 28px;
		margin-left: 4px;
	}
	.hud {
		top: 14px;
		left: 12px;
		right: 12px;
		gap: 3px;
	}
	.core-readout {
		width: 117px;
		padding: 8px;
	}
	.core-readout .micro {
		font-size: 6px;
		letter-spacing: 0.2px;
	}
	.health-track {
		margin: 7px 0 9px;
	}
	.armor-line {
		font-size: 8px;
	}
	.armor-line b {
		font-size: 19px;
	}
	.armor-line em {
		font-size: 9px;
	}
	.armor-pips {
		gap: 2px;
		height: 6px;
	}
	.mass-state {
		font-size: 7px;
		letter-spacing: 0;
	}
	.timer-readout {
		padding: 4px 0;
	}
	.timer-readout .micro {
		font-size: 7px;
		letter-spacing: 0.5px;
	}
	#timer {
		font-size: 39px;
		margin: 7px 0;
	}
	#timer span {
		font-size: 17px;
	}
	.score-readout {
		width: 95px;
		padding: 8px 0;
	}
	.score-readout .micro {
		font-size: 7px;
		letter-spacing: 1px;
	}
	#score {
		font-size: 21px;
		margin-top: 9px;
	}
	.combo {
		font-size: 9px;
	}
	.combo-track {
		max-width: 64px;
	}
	footer {
		height: 33px;
		font-size: 7px;
	}
	footer p {
		display: none;
	}
	.footer-right {
		display: none;
	}
	#intro {
		padding: 34px 26px 50px;
		align-items: flex-start;
		background: linear-gradient(
			180deg,
			#0c120ffa,
			#0c120fee 42%,
			#0c120f22 76%,
			#0c120fdd
		);
	}
	.intro-copy {
		width: 100%;
		max-width: 100%;
	}
	.eyebrow {
		font-size: 8px;
		letter-spacing: 1px;
		gap: 10px;
	}
	.eyebrow b {
		font-size: 7px;
		padding: 4px 5px;
	}
	h1 {
		font-size: 57px;
		margin: 24px 0 12px;
		letter-spacing: -2px;
	}
	.english-title {
		font-size: 8px;
		letter-spacing: 1px;
	}
	.tagline {
		font-size: 23px;
		margin: 23px 0 12px;
		line-height: 1.5;
	}
	.tagline br {
		display: none;
	}
	.intro-description {
		font-size: 10px;
		line-height: 1.9;
		margin: 0 0 20px;
	}
	.primary {
		font-size: 12px;
		min-width: 235px;
		padding: 15px 19px;
	}
	.intro-meta {
		font-size: 8px;
		gap: 12px;
		margin-top: 15px;
	}
	.intro-side {
		display: none;
	}
	.intro-touch-note {
		left: 26px;
		font-size: 9px;
	}
	.notice {
		font-size: 12px;
		letter-spacing: 2px;
		top: 28%;
	}
	.modal {
		padding: 25px;
	}
	.modal h2 {
		font-size: 30px;
	}
	.modal p {
		margin-bottom: 16px;
	}
	.modal-note {
		margin-top: 17px;
	}
	.result-score {
		padding: 12px 0;
	}
	.result-score strong {
		font-size: 40px;
	}
	.touch-controls {
		left: 17px;
		right: 17px;
		bottom: 26px;
	}
	.upgrade-modal {
		padding: 21px 18px;
	}
	.upgrade-modal h2 {
		font-size: 24px;
	}
	.upgrade-modal > p {
		font-size: 10px;
		line-height: 1.6;
	}
	.upgrade-choices {
		grid-template-columns: 1fr;
		gap: 7px;
	}
	.upgrade-card {
		min-height: 0;
		padding: 12px;
		display: grid;
		grid-template-columns: 25px 1fr;
		column-gap: 12px;
		align-items: center;
	}
	.upgrade-card .upgrade-icon {
		grid-row: 1 / span 2;
		margin: 0 0 0 4px;
	}
	.upgrade-card small {
		margin-top: 3px;
	}
}
@media (max-width: 360px) {
	.app {
		padding: 0 5px;
	}
	.utility {
		padding: 7px 4px;
		font-size: 8px;
	}
	.brand {
		font-size: 12px;
	}
	#intro {
		padding: 28px 20px;
	}
	.tagline {
		font-size: 20px;
	}
	h1 {
		font-size: 50px;
	}
	.core-readout {
		width: 105px;
	}
	.score-readout {
		width: 82px;
	}
	#score {
		font-size: 18px;
	}
	.stick {
		width: 95px;
		height: 95px;
	}
	#stick-knob {
		left: 27px;
		top: 27px;
	}
	.touch-controls {
		left: 12px;
		right: 12px;
	}
	.touch-actions {
		gap: 6px;
	}
	.combat-hint {
		font-size: 8px;
	}
}
@media (max-height: 650px) and (max-width: 760px) {
	#intro {
		padding-top: 20px;
	}
	h1 {
		font-size: 45px;
		margin: 15px 0 8px;
	}
	.tagline {
		font-size: 20px;
		margin: 16px 0 10px;
	}
	.intro-description {
		font-size: 9px;
		margin-bottom: 16px;
	}
	.intro-meta {
		margin-top: 13px;
	}
	.intro-touch-note {
		bottom: 15px;
	}
	.result-stats {
		padding: 14px 0;
	}
	.modal {
		padding: 18px 24px;
	}
	.modal h2 {
		margin: 12px 0 8px;
	}
	.result-score strong {
		font-size: 34px;
	}
	.modal-note {
		margin-top: 13px;
	}
}
@media (prefers-reduced-motion: reduce) {
	*,
	*:before,
	*:after {
		transition: none !important;
		animation: none !important;
	}
}
@media (max-height: 500px) {
	.app {
		min-height: 0;
		padding: 0 12px;
	}
	.topbar {
		height: 44px;
	}
	.brand {
		font-size: 13px;
	}
	.brand-symbol {
		font-size: 28px;
	}
	.brand small {
		font-size: 6px;
	}
	footer {
		height: 22px;
	}
	footer p,
	.build-label,
	.intro-meta {
		display: none;
	}
	#intro {
		padding: 18px 40px 32px;
		align-items: center;
	}
	.intro-copy {
		width: 60%;
	}
	h1 {
		font-size: 40px;
		margin: 12px 0 7px;
	}
	.english-title {
		font-size: 7px;
	}
	.eyebrow {
		font-size: 8px;
	}
	.tagline {
		font-size: 18px;
		margin: 12px 0 7px;
	}
	.tagline br {
		display: none;
	}
	.intro-description {
		font-size: 9px;
		line-height: 1.7;
		margin: 0 0 13px;
	}
	.primary {
		font-size: 11px;
		padding: 11px 18px;
		min-width: 210px;
	}
	.intro-side {
		top: 12%;
		bottom: 13%;
		left: 66%;
	}
	.spec-top {
		font-size: 27px;
	}
	.spec-top span {
		font-size: 6px;
	}
	.spec-bottom {
		padding-top: 10px;
		gap: 15px;
	}
	.spec-bottom > span {
		font-size: 35px;
	}
	.spec-bottom p {
		font-size: 8px;
	}
	.intro-touch-note,
	.intro-controls {
		bottom: 10px;
		left: 40px;
		font-size: 8px;
	}
	.hud {
		top: 10px;
		left: 15px;
		right: 15px;
	}
	.core-readout {
		width: 140px;
		padding: 7px 9px;
	}
	.health-track {
		margin: 6px 0;
	}
	.armor-line b {
		font-size: 18px;
	}
	.mass-state {
		display: none;
	}
	.module-state {
		font-size: 7px;
		max-width: 145px;
	}
	.score-readout {
		padding-top: 7px;
		width: 140px;
	}
	#score {
		font-size: 23px;
	}
	#timer {
		font-size: 36px;
	}
	#timer span {
		font-size: 17px;
	}
	.combat-hint {
		display: none;
	}
	.touch-controls {
		bottom: 17px;
	}
	.stick {
		width: 78px;
		height: 78px;
	}
	#stick-knob {
		left: 22px;
		top: 22px;
		width: 32px;
		height: 32px;
	}
	.stick > span {
		display: none;
	}
	.touch-actions {
		grid-template-columns: 46px 64px;
		grid-template-rows: 43px 43px;
		gap: 5px;
	}
	.touch-actions button {
		width: 43px;
		height: 43px;
		font-size: 10px;
	}
	.touch-fire {
		width: 62px !important;
		height: 62px !important;
		font-size: 13px !important;
	}
	.modal-overlay {
		padding: 12px;
		overflow-y: auto;
	}
	.modal {
		max-height: 100%;
		overflow-y: auto;
		padding: 16px 24px;
	}
	.modal h2 {
		font-size: 25px;
		margin-top: 12px;
	}
	.modal p {
		margin-bottom: 12px;
	}
	.modal-note {
		margin-top: 10px;
	}
}
