:root {
	color-scheme: dark;
	font:
		15px/1.5 system-ui,
		-apple-system,
		BlinkMacSystemFont,
		'Segoe UI',
		sans-serif;
	/* Menu palette: orange highlights, lavender text, deep blue scenery. */
	--page: #040420;
	--panel: #0c0c38;
	--field: #040424;
	--line: #343474;
	--text: #ffffff;
	--muted: #babaf8;
	--accent: #ff6400;
	--accent-hover: #ff8538;
	--accent-ink: #1b0900;
	--control: #191953;
	--control-hover: #25256b;
	--line-hover: #6060c0;
	--map-grid: #6060c01a;
}
* {
	box-sizing: border-box;
}
html {
	scrollbar-gutter: stable;
	overflow-y: scroll;
}
body {
	margin: 0;
	background: var(--page);
	color: var(--text);
	border-top: 3px solid var(--accent);
}
main {
	max-width: 1120px;
	margin: 0 auto;
	padding: 0 32px;
}
h1,
h2,
h3,
p {
	margin: 0;
}
h2 {
	color: var(--accent);
	font-size: clamp(28px, 3.5vw, 42px);
	line-height: 1.12;
	letter-spacing: -0.045em;
	font-weight: 750;
}
h3 {
	font-size: 19px;
	letter-spacing: -0.025em;
}
.site-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	padding: 20px 0 24px;
}
.wordmark {
	font-size: 26px;
	font-weight: 850;
	font-style: italic;
	letter-spacing: -1px;
}
.brand-mark {
	color: var(--accent);
	letter-spacing: -5px;
	margin-right: 12px;
	font-style: normal;
}
.brand-dot {
	color: var(--accent);
}

/* Device compatibility */
.compatibility-notice {
	max-width: 640px;
	padding: 64px 0;
}

/* Package selection */
#picker {
	display: block;
	padding: 24px 0;
}
.intro {
	color: var(--muted);
	margin-top: 22px;
	line-height: 1.8;
}
.package-upload {
	margin-top: 20px;
	display: grid;
	justify-items: center;
	gap: 12px;
	padding: 36px 24px;
	border: 1px dashed var(--line-hover);
	border-radius: 8px;
	text-align: center;
	background: var(--field);
	transition: border-color 0.15s, background 0.15s;
}
.package-upload:focus-within,
.package-upload.is-dragging {
	border-color: var(--accent);
	background: var(--panel);
}
.upload-icon {
	color: var(--accent);
	margin-bottom: 4px;
}
.package-upload h4 {
	margin: 0;
	font-size: 20px;
	font-weight: 600;
}
.package-upload .file-button {
	margin-top: 8px;
	min-width: 160px;
}
.package-guide {
	display: block;
	margin-top: 16px;
	text-align: center;
	font-size: 13px;
}

#import-hint ul {
	margin: 10px 0;
	padding-left: 20px;
}
#import-hint li + li,
#import-hint p + p {
	margin-top: 8px;
}

/* Controls share the same focus and disabled states, including file pickers. */
button,
.button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 20px;
	padding: 11px 18px;
	border: 1px solid var(--line);
	border-radius: 5px;
	background: var(--control);
	color: var(--text);
	font: inherit;
	font-size: 13px;
	font-weight: 600;
	cursor: pointer;
	text-decoration: none;
	transition:
		background 0.15s,
		border-color 0.15s;
}
button:hover,
.button:hover {
	background: var(--control-hover);
	border-color: var(--line-hover);
}
button.primary,
.button.primary {
	background: var(--accent);
	border-color: var(--accent);
	color: var(--accent-ink);
}
button.primary:hover,
.button.primary:hover {
	background: var(--accent-hover);
	border-color: var(--accent-hover);
}
button.quiet {
	background: transparent;
	border-color: var(--line);
	color: var(--muted);
}
button.quiet:hover {
	background: var(--control);
	color: var(--text);
}
button:disabled,
.file-button:has(input:disabled) {
	opacity: 0.45;
	cursor: not-allowed;
}
:focus-visible,
.file-button:focus-within {
	outline: 2px solid var(--accent);
	outline-offset: 4px;
}
.file-button {
	position: relative;
	overflow: hidden;
	flex-direction: row;
}
input[type='file'] {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	opacity: 0;
	cursor: pointer;
}
.button-row {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 10px;
}
label {
	display: flex;
	flex-direction: column;
	gap: 7px;
	font-size: 12px;
	font-weight: 500;
	color: var(--muted);
}
input,
select {
	min-width: 0;
	width: 100%;
	border: 1px solid var(--line);
	border-radius: 5px;
	padding: 10px 12px;
	background: var(--field);
	color: var(--text);
	font: inherit;
	font-size: 14px;
}
select {
	padding-right: 30px;
}
input:hover,
select:hover {
	border-color: var(--line-hover);
}
input[type='checkbox'] {
	width: 16px;
	height: 16px;
	margin: 0;
	accent-color: var(--accent);
	flex-shrink: 0;
}
.check-label {
	flex-direction: row;
	align-items: center;
	gap: 10px;
	color: var(--text);
	min-height: 24px;
}

/* Race setup */
#race-message {
	font-size: 13px;
	color: var(--muted);
	margin: 18px 0;
}
#race-message:empty {
	display: none;
}
.setup-tabs {
	display: flex;
	gap: 28px;
	border-bottom: 1px solid var(--line);
	margin: 0 0 24px;
}
.setup-tabs [role='tab'] {
	background: transparent;
	border: 0;
	border-bottom: 3px solid transparent;
	border-radius: 0;
	padding: 16px 4px;
	font-size: 17px;
	color: var(--muted);
}
.setup-tabs [role='tab']:hover {
	color: var(--text);
}
.setup-tabs [role='tab'][aria-selected='true'] {
	color: var(--accent);
	border-bottom-color: var(--accent);
}
.setup-tabs [role='tab']:focus-visible {
	outline-offset: -2px;
}
.secondary-tabs {
	gap: 20px;
}
.secondary-tabs [role='tab'] {
	padding: 8px 4px;
	font-size: 14px;
	border-bottom-width: 2px;
}
/* Keep clicks available so unavailable tabs can explain the restriction. */
.setup-tabs [role='tab'][aria-disabled='true'] {
	opacity: 0.45;
	cursor: not-allowed;
	color: var(--muted);
}
.selection-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 20px;
}
fieldset {
	min-width: 0;
	border: 0;
	margin: 0;
	padding: 22px;
	background: var(--panel);
	border-radius: 8px;
}
legend {
	float: left;
	width: 100%;
	padding: 0;
	margin-bottom: 18px;
	font-size: 11px;
	font-weight: 650;
	letter-spacing: 0.1em;
	text-transform: uppercase;
}
legend + * {
	clear: both;
}
.section-number {
	font:
		11px ui-monospace,
		monospace;
	color: var(--accent);
	margin-right: 10px;
}
.selection-card {
	border: 1px solid var(--line);
}
.selection-label {
	font-size: 11px;
}
.selection-label select {
	font-size: 20px;
	font-weight: 600;
	letter-spacing: -0.025em;
}
.track-details {
	margin: 10px 0 16px;
	font-size: 12px;
	color: var(--muted);
	min-height: 18px;
}
.map-stage {
	min-height: 155px;
	position: relative;
	display: grid;
	place-items: center;
	padding: 20px;
	border-radius: 5px;
	background-color: var(--field);
	background-image:
		linear-gradient(var(--map-grid) 1px, transparent 1px),
		linear-gradient(90deg, var(--map-grid) 1px, transparent 1px);
	background-size: 20px 20px;
}
.map-caption {
	font-weight: 650;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	position: absolute;
	left: 12px;
	top: 10px;
	color: var(--muted);
	font-size: 8px;
}
.track-map {
	display: block;
	width: auto;
	height: 140px;
	max-width: 100%;
	object-fit: contain;
	filter: brightness(1.6);
}
.track-map-status {
	color: var(--muted);
	font-size: 12px;
}
.track-map-status:empty {
	display: none;
}
.car-details {
	display: grid;
	gap: 18px;
	padding: 12px 0;
}
.car-details label {
	color: var(--text);
	font-size: 12px;
}
.car-details meter {
	appearance: none;
	width: 100%;
	height: 7px;
	background: var(--line);
	border: none;
	border-radius: 2px;
}
.car-details meter::-webkit-meter-bar {
	background: var(--line);
	border: none;
	border-radius: 2px;
	height: 7px;
}
.car-details meter::-webkit-meter-optimum-value {
	background: var(--accent);
	border-radius: 2px;
}
.car-details meter::-moz-meter-bar {
	background: var(--accent);
	border-radius: 2px;
}
.race-settings {
	margin-top: 20px;
}
.settings-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 16px 22px;
}
.settings-grid.graphics-settings {
	grid-template-columns: repeat(2, minmax(0, 1fr));
}
.name-color-field {
	display: flex;
	align-items: center;
	gap: 0.75rem;
}

.name-color-field select {
	flex: 1;
	min-width: 0;
}

.name-color-swatch {
	background: var(--driver-color);
	width: 1.5rem;
	height: 1.5rem;
	flex-shrink: 0;
	border: 1px solid var(--muted);
	border-radius: 3px;
}

.race-options {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
}
.race-options > label {
	flex: 1 1 140px;
	min-width: 0;
}
.race-options > .check-label {
	flex: 0 0 auto;
	padding-top: 24px;
}
.settings-note {
	color: var(--muted);
	font-size: 12px;
}
#settings-panel,
#launcher-settings {
	display: grid;
	gap: 24px;
	padding-bottom: 32px;
}
.settings-section {
	min-width: 0;
	padding: 24px;
	border: 1px solid var(--line);
	border-radius: 8px;
	background: var(--panel);
}
.settings-section > legend,
.settings-section > h3,
#prepare-game > h3 {
	color: var(--accent);
	font-size: 17px;
	font-weight: 700;
	letter-spacing: 0;
	text-transform: none;
	margin: 0 0 20px;
	padding: 0 0 12px;
	border-bottom: 1px solid var(--line);
}
#reset-data {
	margin-left: auto;
}
.settings-section .check-label {
	align-self: end;
}
.settings-section input:not([type='checkbox']),
.settings-section select,
.settings-section .check-label {
	min-height: 43px;
}
#forget-current-package {
	max-width: 100%;
	overflow-wrap: anywhere;
	text-align: left;
}
#results-empty {
	color: var(--muted);
	padding: 36px 0;
}
button.start-button {
	width: 100%;
	margin: 24px 0 32px;
	padding: 21px 28px;
	font-size: 21px;
	font-weight: 800;
	letter-spacing: 0.06em;
}
#race-results {
	padding: 22px;
	margin-bottom: 22px;
	background: var(--panel);
	border-radius: 8px;
}
#race-results h3 {
	margin-bottom: 12px;
}
.table-scroll {
	overflow-x: auto;
}
table {
	width: 100%;
	border-collapse: collapse;
	font-size: 13px;
	white-space: nowrap;
}
th,
td {
	text-align: left;
	padding: 12px 16px 12px 0;
	border-bottom: 1px solid var(--line);
}
th {
	color: var(--muted);
	font-weight: 500;
}
tbody tr:last-child td {
	border-bottom: 0;
}

/* Playing and secondary tools */
html:has(.floating-overlay[open]) {
	overflow: hidden;
}
.floating-overlay {
	width: min(960px, calc(100vw - 40px));
	max-width: none;
	max-height: calc(100dvh - 32px);
	padding: 0;
	border: 0;
	overflow: visible;
	background: transparent;
	color: var(--text);
}
#race-overlay {
	--race-aspect: 1.333333;
	width: min(
		960px,
		calc(100vw - 40px),
		calc((100dvh - 160px) * var(--race-aspect))
	);
}
.floating-overlay::backdrop {
	background: rgb(2 2 18 / 82%);
	backdrop-filter: blur(4px);
}
#race-shell {
	display: flex;
	flex-direction: column;
	gap: 12px;
	max-height: calc(100dvh - 32px);
	overflow-y: auto;
}
#race-view {
	position: relative;
	flex: none;
	overflow: hidden;
	border: 1px solid var(--line-hover);
	border-radius: 6px;
	box-shadow: 0 18px 70px rgb(0 0 0 / 60%);
}
#canvas {
	/* Layout follows the selected mode, independent of the runtime buffer. */
	aspect-ratio: var(--race-aspect);
	display: block;
	width: 100%;
	height: auto;
	background: black;
	object-fit: contain;
}
#race-notices {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	display: flex;
	flex-direction: column;
	gap: 8px;
	width: max-content;
	max-width: calc(100% - 32px);
	max-height: calc(100% - 32px);
	overflow: auto;
}
.notice-card {
	margin: 0;
	padding: 12px 24px;
	border: 1px solid var(--line-hover);
	border-radius: 6px;
	background: rgb(2 2 18 / 85%);
	font-size: clamp(18px, 3vw, 32px);
	font-weight: 700;
	text-align: center;
	overflow-wrap: anywhere;
}
.notice-card > p {
	margin: 0;
}
.notice-overlay {
	width: min(560px, calc(100vw - 40px));
	overflow-y: auto;
}
.notice-overlay .notice-card {
	padding-top: 24px;
	font-size: 18px;
}
.notice-overlay button {
	margin-top: 20px;
}
#continue-race {
	position: absolute;
	bottom: 24px;
	left: 50%;
	transform: translateX(-50%);
	max-width: calc(100% - 32px);
}
#race-notices:empty,
#race-notices:not(:has(> :not(:empty):not([hidden]))) {
	display: none;
}
#race-notices > * {
	margin: 0;
	font: inherit;
	color: inherit;
}
#race-notices > pre {
	padding: 0;
	border: 0;
	background: transparent;
	color: #ffb8a5;
}
#race-shell > .session-tools {
	margin: 0;
	max-width: none;
	flex: none;
}
#race-shell .session-tools button {
	box-shadow: 0 4px 18px rgb(0 0 0 / 40%);
}
#race-shell:fullscreen {
	width: 100%;
	height: 100%;
	max-height: none;
	padding: 0;
	justify-content: center;
	background: var(--page);
}
#race-shell:fullscreen #race-view {
	border-radius: 0;
	min-height: 0;
	flex: 1;
	border: 0;
}
#race-overlay #race-shell:fullscreen .session-tools,
#race-shell:fullscreen #continue-race {
	display: none;
}
.fullscreen-pause-hint {
	display: none;
}
#race-shell:fullscreen .fullscreen-pause-hint {
	display: block;
	margin-top: 8px;
	font-size: 14px;
	font-weight: 400;
}
#race-shell:fullscreen #canvas {
	height: 100%;
}
body:has(#canvas:not([hidden])) #package-status {
	display: none;
}
body:has(#canvas[hidden]) #fullscreen {
	display: none;
}
.keyboard-note {
	color: var(--muted);
	font-size: 12px;
	margin-top: 22px;
}
kbd {
	border: 1px solid var(--line);
	border-radius: 3px;
	padding: 3px 6px;
}
#asset-download {
	display: grid;
	align-content: center;
	justify-items: center;
	min-height: 60vh;
	padding: 48px 24px;
	text-align: center;
}
#asset-download label {
	font-size: clamp(22px, 3vw, 30px);
	font-weight: 600;
	color: var(--text);
}
#asset-download progress {
	display: block;
	width: min(100%, 560px);
	height: 12px;
	margin: 24px 0 16px;
	accent-color: var(--accent);
}
#asset-download-size {
	font-size: 13px;
	font-variant-numeric: tabular-nums;
	color: var(--muted);
}
.subtle-status {
	color: var(--muted);
	font-size: 12px;
	overflow-wrap: anywhere;
	margin: 12px 0;
}
.subtle-status:empty {
	display: none;
}
.session-tools {
	display: none;
	justify-content: flex-end;
	max-width: 960px;
	margin: 18px auto;
}
.session-tools:has(#race-actions[hidden]) #leave-race {
	display: none;
}
body:has(#canvas:not([hidden])) .session-tools,
.session-tools:has(#retry-storage:not([hidden]), #resume:not([hidden])) {
	display: flex;
}
#save-status {
	font-size: 12px;
	color: var(--muted);
	margin-bottom: 14px;
}
pre {
	white-space: pre-wrap;
	overflow-wrap: anywhere;
	color: #ffb8a5;
	padding: 16px;
	border-left: 2px solid #ff9071;
	background: #271b16;
	font: inherit;
	font-size: 13px;
}
[hidden] {
	display: none !important;
}

@media (max-width: 720px) {
	main {
		padding: 0 20px;
	}
	.wordmark {
		font-size: 23px;
	}
	#picker {
		padding: 36px 0 24px;
	}
	.selection-grid {
		grid-template-columns: 1fr;
	}
	.settings-grid {
		grid-template-columns: 1fr 1fr;
	}
	.race-options > .check-label {
		padding-top: 20px;
	}
	.driver-settings .check-label {
		grid-column: 1 / -1;
	}
}
@media (max-width: 400px) {
	main {
		padding: 0 14px;
	}
	fieldset,
	.settings-section {
		padding: 18px;
	}
}
@media (max-width: 340px) {
	.settings-grid {
		grid-template-columns: 1fr;
	}
	.race-options > .check-label {
		padding-top: 0;
	}
}
@media (prefers-reduced-motion: reduce) {
	button,
	.button {
		transition: none;
	}
}

#prepare-game {
	margin: 24px 0 0;
	padding-top: 24px;
	border-top: 1px solid var(--line);
	display: grid;
	gap: 16px;
}
.prepare-update {
	display: flex;
	align-items: end;
	flex-wrap: wrap;
	gap: 12px;
}
.prepare-update > label:first-child {
	flex: 1 1 240px;
}

.prepare-stages {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 12px;
	list-style: none;
	padding: 0;
	margin: 8px 0 0;
	font-size: 12px;
}
.prepare-stages li {
	display: grid;
	gap: 8px;
	padding: 12px 0;
	color: var(--muted);
	border-bottom: 2px solid var(--line);
}
.prepare-stages li[data-state='active'] {
	color: var(--accent);
	border-color: var(--accent);
}
.prepare-stages li[data-state='complete'] {
	color: var(--text);
	border-color: var(--text);
}
.stage-state {
	font-weight: 700;
}
@media (max-width: 720px) {
	.prepare-stages {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}
#prepare-progress {
	width: 100%;
	height: 12px;
	accent-color: var(--accent);
}
#prepare-start {
	margin: 8px 0 0;
}
#prepare-cancel {
	justify-self: end;
}
#prepare-status {
	font-size: 0.9rem;
}

/* Custom multiplayer lobby */
#multiplayer-panel,
#lobby-connected {
	display: grid;
	gap: 16px;
	min-width: 0;
}
#multiplayer-panel {
	padding-bottom: 24px;
}
#join-server {
	display: block;
	margin-inline-start: auto;
}
#lobby-connection .settings-grid {
	clear: both;
	margin-bottom: 16px;
}
.lobby-chat-compose {
	display: flex;
	align-items: center;
	gap: 12px;
}
.lobby-commands {
	justify-content: flex-end;
	gap: 8px;
}
.lobby-commands button {
	padding: 8px 12px;
}
.lobby-workspace {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr);
	gap: 20px;
}
.lobby-roster,
.lobby-chat {
	display: grid;
	grid-template-rows: 300px auto;
	gap: 12px;
	min-width: 0;
	align-content: start;
}
.lobby-chat-compose input {
	flex: 1;
	min-width: 0;
}
#lobby-players,
#lobby-console {
	margin: 0;
	overflow-y: auto;
	overflow-wrap: anywhere;
	border: 1px solid var(--line);
	border-radius: 8px;
	background: var(--panel);
}
#lobby-players {
	padding: 0;
	list-style: none;
}
#lobby-players li {
	padding: 12px;
	border-left: 3px solid var(--driver-color);
}
#lobby-players li + li {
	border-top: 1px solid var(--line);
}
#lobby-players li.local {
	background: rgba(255, 255, 255, 0.04);
}
.lobby-player-heading {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	gap: 8px;
}
.lobby-player-heading strong {
	min-width: 0;
}
.lobby-player-state {
	font-size: 12px;
	color: var(--muted);
	flex-shrink: 0;
}
.lobby-player-state.ready {
	color: var(--accent);
}
.lobby-player-details {
	font-size: 12px;
	color: var(--muted);
	margin-top: 6px;
}
#lobby-console {
	position: relative;
	padding: 12px;
	font-size: 13px;
}
#lobby-chat-log {
	margin: 0;
	padding: 0;
	list-style: none;
}
#lobby-chat-log li + li {
	margin-top: 8px;
}
#lobby-notice,
#lobby-command-output {
	margin-top: 12px;
}
#lobby-notice {
	color: var(--accent);
}
#lobby-command-output {
	white-space: pre-line;
}
#lobby-status:empty,
#lobby-notice:empty {
	display: none;
}
.lobby-results > summary {
	cursor: pointer;
	color: var(--muted);
}
.lobby-results .table-scroll {
	margin-top: 12px;
}
@media (max-width: 800px) {
	.lobby-workspace {
		grid-template-columns: 1fr;
	}
	.lobby-roster {
		grid-template-rows: auto;
	}
	#lobby-players {
		max-height: 240px;
	}
}
@media (max-width: 720px) {
	#lobby-connection .settings-grid {
		grid-template-columns: 1fr;
	}
	.setup-tabs {
		gap: 16px;
		flex-wrap: wrap;
	}
}

#lobby-ready {
	text-transform: uppercase;
	margin-bottom: 0;
}

#results-overlay {
	overflow-y: auto;
}
.summary-tools {
	justify-content: flex-end;
	margin: 0 0 12px;
}
.results-card {
	padding: 24px;
	border: 1px solid var(--line-hover);
	border-radius: 6px;
	background: var(--panel);
	box-shadow: 0 18px 70px rgb(0 0 0 / 60%);
}
.results-card h2 {
	margin-top: 0;
}

.driver-section {
	margin-bottom: 20px;
}
.driver-profile {
	grid-template-columns: repeat(3, minmax(0, 1fr));
}
.driver-profile:has(> button:not([hidden])) {
	grid-template-columns: repeat(3, minmax(0, 1fr)) auto;
}
.driver-profile > button {
	align-self: end;
	justify-self: end;
}
@media (max-width: 720px) {
	.driver-profile,
	.driver-profile:has(> button:not([hidden])) {
		grid-template-columns: 1fr;
	}
}

/* Public website and game library */
.site-header a {
	text-decoration: none;
}
.wordmark {
	color: var(--text);
	white-space: nowrap;
}
.site-navigation {
	display: flex;
	gap: 24px;
	flex-wrap: wrap;
}
.site-navigation a {
	color: var(--muted);
}
.site-navigation a:hover,
.site-navigation a[aria-current] {
	color: var(--accent);
}
.landing-hero {
	padding: 24px 0 48px;
}
.landing-hero h1, .guide-heading h1 {
	font-size: clamp(36px, 5vw, 64px);
	line-height: 1.1;
	letter-spacing: -0.045em;
}
.landing-hero h1 {
	font-size: clamp(40px, 7vw, 88px);
	color: var(--accent);
}
.hero-preview {
	position: relative;
	display: grid;
	overflow: hidden;
	border: 1px solid var(--line);
	border-radius: 6px;
	background: var(--panel);
}
.hero-preview::before {
	content: '';
	grid-area: 1 / 1;
	padding-top: 56.25%;
}
.hero-image {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
}
.hero-content {
	grid-area: 1 / 1;
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 32px;
	padding: clamp(24px, 4vw, 48px);
	text-align: center;
	background: radial-gradient(
		ellipse at center, rgba(4, 4, 32, 0.7), transparent 95%
	);
}
.hero-content h1 {
	margin: 0;
	text-shadow: 0 2px 20px rgba(0, 0, 0, 0.7);
}
.hero-actions {
	justify-content: center;
	margin: 0;
	gap: 12px;
}
.hero-actions .button {
	min-height: 60px;
	padding: 18px 28px;
	font-size: 16px;
}
.guide-steps p, .native-guide p {
	color: var(--muted);
}
.guide-heading {
	padding: 36px 0;
}
#prepared-game {
	margin-top: 24px;
}
#prepared-game p {
	margin: 16px 0;
}
.guide-steps {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 32px;
	padding: 0;
	list-style: none;
	counter-reset: steps;
	margin: 32px 0;
}
.guide-steps li {
	counter-increment: steps;
}
.guide-steps li::before {
	content: '0' counter(steps);
	color: var(--accent);
}
.guide-steps h2 {
	font-size: 22px;
	margin: 12px 0;
}
.guide-help {
	color: var(--muted);
	font-size: 14px;
	line-height: 1.6;
}
.guide-help > p {
	margin-bottom: 16px;
}
.guide-help details {
	padding: 12px 0;
	border-top: 1px solid var(--line);
}
.guide-help summary {
	color: var(--text);
	cursor: pointer;
}
.guide-help details p {
	margin-top: 12px;
	max-width: 72ch;
}
.native-guide {
	max-width: 800px;
	padding: 16px 0;
}
.native-guide li {
	margin: 14px 0;
}
.native-guide pre {
	overflow: auto;
	padding: 20px;
	background: var(--field);
	border: 1px solid var(--line);
}
.native-guide p {
	margin: 20px 0;
}
#package-tools {
	display: grid;
	gap: 24px;
	margin-top: 20px;
}
.content-choice {
	display: flex;
	gap: 20px;
	align-items: end;
}
.content-choice label {
	flex: 1;
}
.package-list li {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding: 12px 0;
	border-bottom: 1px solid var(--line);
}
.package-list {
	list-style: none;
	padding: 0;
}
.package-list span {
	flex: 1 1 180px;
	overflow-wrap: anywhere;
	min-width: 0;
}
#remembered-package {
	margin-top: 24px;
}
.package-list .button-row {
	flex-shrink: 0;
	margin-left: auto;
}
@media (max-width: 720px) {
	.site-header {
		flex-direction: column;
		align-items: start;
	}
	.guide-steps {
		grid-template-columns: 1fr;
		gap: 20px;
	}
	.content-choice {
		align-items: stretch;
		flex-direction: column;
	}
}

.about-sections {
	display: grid;
	gap: 24px;
	margin: 24px 0 48px;
}
.about-sections h2 {
	margin: 0 0 16px;
}
.about-sections p {
	line-height: 1.7;
}
.about-sections p + p {
	margin-top: 16px;
}
.about-sections p + ul {
	margin-top: 4px;
}
.game-credits {
	display: grid;
	grid-template-columns: minmax(100px, 1fr) 3fr;
	gap: 16px 24px;
	line-height: 1.6;
	margin: 24px 0;
}
.game-credits dt {
	color: var(--muted);
}
.game-credits dd {
	margin: 0;
}

.credit-names {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 8px 24px;
	list-style: none;
	padding: 0;
	margin: 0;
}
@media (max-width: 720px) {
	.credit-names {
		grid-template-columns: 1fr;
	}
}

.release-download {
	justify-content: space-between;
}
.release-download h2 {
	font-size: 22px;
}
.download-sections {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 24px;
	margin: 24px 0 48px;
	align-items: start;
}
.download-sections h2 {
	margin: 0 0 16px;
}
.download-sections p {
	color: var(--muted);
	line-height: 1.6;
}
.download-list {
	list-style: none;
	margin: 0;
	padding: 0;
}
.download-list li {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding: 20px 0;
	border-bottom: 1px solid var(--line);
}
.download-list li:last-child {
	border-bottom: 0;
	padding-bottom: 0;
}
.download-list li > div {
	min-width: 0;
}
.download-list strong, .download-list span {
	display: block;
	overflow-wrap: anywhere;
}
.download-list span {
	margin-top: 6px;
	font-size: 12px;
	color: var(--muted);
}
.download-checksum {
	margin-top: 8px;
	font-size: 12px;
	color: var(--muted);
}
.download-checksum summary {
	cursor: pointer;
}
.download-checksum code {
	display: block;
	margin-top: 8px;
	overflow-wrap: anywhere;
	user-select: all;
}
.download-list .button {
	flex-shrink: 0;
}
@media (max-width: 960px) {
	.download-sections {
		grid-template-columns: 1fr;
	}
}

.notice-overlay .reset-card {
	padding: 24px;
	font-size: 14px;
	text-align: left;
	font-weight: 400;
}
.reset-card h3 {
	margin: 0 0 8px;
	font-size: 22px;
}
.reset-toolbar,
.reset-footer {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 12px;
	color: var(--muted);
}
.reset-toolbar {
	margin-bottom: 12px;
}
.reset-card button {
	margin: 0;
}
.reset-toolbar button {
	padding: 6px 8px;
	border-color: transparent;
}
.reset-card fieldset {
	padding: 0;
	background: transparent;
	border-radius: 0;
}
.reset-card .check-label {
	display: grid;
	grid-template-columns: 16px 1fr;
	gap: 3px 12px;
	padding: 12px 8px;
	border-top: 1px solid var(--line);
	font-size: 14px;
	cursor: pointer;
}
.reset-card .check-label span {
	font-weight: 600;
}
.reset-card small {
	grid-column: 2;
	font-size: 12px;
	font-weight: 400;
	color: var(--muted);
}
.reset-footer {
	margin-top: 8px;
	padding-top: 20px;
	border-top: 1px solid var(--line);
	font-size: 12px;
}
.reset-footer .button-row {
	margin-left: auto;
}
.reset-card #reset-status {
	margin-top: 16px;
}
.reset-card #reset-status:empty {
	display: none;
}
@media (max-width: 400px) {
	.notice-overlay .reset-card {
		padding: 20px 16px;
	}
}
