/* PocketPe onboarding only; the game renderer keeps launch.css unchanged. */
:root {
	--pp-paper: #f4f0e7;
	--pp-card: #fffdf7;
	--pp-ink: #18322c;
	--pp-muted: #5e7068;
	--pp-green: #17654d;
	--pp-mint: #c9ddca;
	--pp-coral: #cb7455;
	--pp-line: #d9dfd2;
}

#preloader {
	align-items: flex-start;
	justify-content: center;
	box-sizing: border-box;
	padding: clamp(12px, 3vh, 28px) 18px;
	overflow: auto;
	overflow-anchor: none;
	background:
		radial-gradient(ellipse at 91% 8%, rgba(203, 116, 85, .15), transparent 29rem),
		radial-gradient(ellipse at 7% 96%, rgba(23, 101, 77, .13), transparent 32rem),
		var(--pp-paper);
	color: var(--pp-ink);
	font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

#preloader:has(#rom-play) .preloader-card {
	box-sizing: border-box;
	width: min(100%, 900px);
	margin: auto;
	padding: clamp(20px, 5vw, 48px);
	text-align: left;
	background: var(--pp-card);
	border: 1px solid rgba(24, 50, 44, .09);
	border-radius: 28px;
	box-shadow: 0 22px 75px rgba(37, 57, 47, .12);
}

.welcome-header, .welcome-footer, .welcome-footer nav {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
}
.brand {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	color: var(--pp-ink);
	font-size: 18px;
	font-weight: 800;
	letter-spacing: -.04em;
	text-decoration: none;
}
.brand > span:last-child > span { color: var(--pp-green); }
.brand small {
	display: block;
	margin-top: -3px;
	color: var(--pp-muted);
	font-size: 9px;
	font-weight: 700;
	letter-spacing: .13em;
	text-transform: uppercase;
}
.brand-mark {
	display: grid;
	width: 38px;
	height: 38px;
	place-items: center;
	border-radius: 13px 13px 13px 4px;
	background: var(--pp-green);
	color: #fffdf7;
	font-size: 21px;
	font-weight: 850;
}
.welcome-kicker, .eyebrow {
	color: var(--pp-green);
	font-size: 10px;
	font-weight: 800;
	letter-spacing: .16em;
	text-transform: uppercase;
}
.welcome-main { position: relative; }
.welcome-hero {
	position: relative;
	max-width: 620px;
	padding: 45px 0 30px;
}
.welcome-hero .eyebrow { margin: 0 0 12px; }
.welcome-hero h1 {
	position: relative;
	z-index: 1;
	margin: 0;
	font-size: clamp(38px, 7vw, 66px);
	line-height: .98;
	letter-spacing: -.065em;
}
.welcome-hero h1 em { color: var(--pp-green); font-style: normal; }
.hero-copy {
	position: relative;
	z-index: 1;
	max-width: 470px;
	margin: 18px 0 0;
	color: var(--pp-muted);
	font-size: 16px;
	line-height: 1.65;
}
.hero-orbit {
	position: absolute;
	right: 4%;
	top: 24px;
	width: 168px;
	height: 168px;
	border: 1px solid #d8e2d2;
	border-radius: 50%;
	transform: rotate(-29deg);
}
.hero-orbit::before, .hero-orbit::after {
	position: absolute;
	inset: 17px -5px;
	content: "";
	border: 1px solid #c8d7c4;
	border-radius: 50%;
}
.hero-orbit::after { transform: rotate(62deg); }
.hero-orbit span, .hero-orbit i, .hero-orbit b {
	position: absolute;
	width: 16px;
	height: 16px;
	border-radius: 50%;
}
.hero-orbit span { top: 16px; right: 21px; background: var(--pp-coral); }
.hero-orbit i { left: 19px; bottom: 16px; background: #d7a94d; }
.hero-orbit b { top: 71px; left: 72px; width: 22px; height: 22px; background: var(--pp-green); }
.welcome-guide {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 0;
	padding: 19px 0;
	border-top: 1px solid var(--pp-line);
	border-bottom: 1px solid var(--pp-line);
}
.guide-step { display: flex; gap: 12px; padding: 0 15px; }
.guide-step:first-child { padding-left: 0; }
.guide-step + .guide-step { border-left: 1px solid var(--pp-line); }
.guide-step > span { color: var(--pp-coral); font-size: 11px; font-weight: 800; }
.guide-step p { margin: 0; color: var(--pp-muted); font-size: 12px; line-height: 1.55; }
.guide-step strong { color: var(--pp-ink); font-size: 13px; }
.privacy-note {
	display: flex;
	align-items: flex-start;
	gap: 11px;
	max-width: 650px;
	margin: 18px 0 22px;
	color: var(--pp-muted);
	font-size: 12px;
	line-height: 1.55;
}
.privacy-note > span {
	flex: 0 0 auto;
	display: grid;
	width: 25px;
	height: 25px;
	place-items: center;
	border-radius: 50%;
	background: var(--pp-mint);
	color: var(--pp-green);
	font-size: 16px;
}
.privacy-note p { margin: 2px 0 0; }
.privacy-note strong { color: var(--pp-ink); }
.welcome-footer {
	padding-top: 19px;
	border-top: 1px solid var(--pp-line);
	color: var(--pp-muted);
	font-size: 11px;
}
.welcome-footer nav { gap: 18px; }
.welcome-footer a, .rom-legal a {
	color: var(--pp-green);
	font-weight: 700;
	text-underline-offset: 3px;
}
.preloader-title, #preloaderLabel, #preloaderVersion, .preloader-track { display: none; }

#rom-play {
	box-sizing: border-box;
	max-width: none;
	padding: 22px 0 4px;
	border-top: 1px solid var(--pp-line);
	color: var(--pp-ink);
	font: inherit;
}
#rom-play h2 { margin: 0 0 7px; font-size: 21px; letter-spacing: -.03em; }
#rom-play > p:first-of-type { margin: 0 0 14px; color: var(--pp-muted); font-size: 13px; }
#rom-play label { display: block; margin: 12px 0; color: var(--pp-ink); font-size: 13px; }
#rom-play input[type="checkbox"] { width: 18px; height: 18px; margin: 0 8px 0 0; accent-color: var(--pp-green); vertical-align: -4px; }
#rom-play input[type="file"] { display: block; box-sizing: border-box; width: min(100%, 420px); margin: 10px 0; color: var(--pp-muted); font: inherit; }
#rom-play input[type="file"]::file-selector-button { padding: 10px 14px; border: 1px solid var(--pp-line); border-radius: 10px; background: var(--pp-mint); color: var(--pp-ink); font: inherit; cursor: pointer; }
#rom-play button {
	min-height: 42px;
	margin: 4px 7px 4px 0;
	padding: 9px 15px;
	border: 1px solid var(--pp-green);
	border-radius: 999px;
	background: var(--pp-green);
	color: #fff;
	font-family: inherit;
	font-size: 13px;
	font-weight: 700;
	line-height: 1.2;
	cursor: pointer;
}
#rom-play button#rom-play-cancel, #rom-play button#rom-play-forget { background: transparent; color: var(--pp-green); }
#rom-play button:disabled { opacity: .48; cursor: not-allowed; }
#rom-play-status { min-height: 1.4em; margin: 11px 0 0; color: var(--pp-muted); font-size: 12px; }
.rom-legal { display: inline; }
.rom-legal a { margin-right: 9px; }
#rom-play :focus-visible, .welcome-header a:focus-visible, .welcome-footer a:focus-visible {
	outline: 3px solid #d49a38;
	outline-offset: 3px;
}
.legal-page {
	box-sizing: border-box;
	min-height: 100vh;
	padding: clamp(24px, 5vw, 64px) 18px;
	background: var(--pp-paper);
	color: var(--pp-ink);
	font: 16px/1.7 ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
.legal-page article { max-width: 760px; margin: 0 auto; padding: clamp(24px, 5vw, 54px); border-radius: 24px; background: var(--pp-card); box-shadow: 0 16px 55px rgba(37,57,47,.1); }
.legal-page h1 { margin: 10px 0 6px; font-size: clamp(32px, 6vw, 48px); letter-spacing: -.06em; line-height: 1.08; }
.legal-page h2 { margin: 30px 0 8px; font-size: 19px; }
.legal-page p, .legal-page li { color: #4e625a; }
.legal-page a { color: var(--pp-green); }
.legal-page nav { display: flex; flex-wrap: wrap; gap: 4px 18px; margin: 18px 0 8px; }
.legal-page nav a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 750; text-decoration: none; }
.draft-label { display: inline-block; padding: 5px 9px; border-radius: 999px; background: #f6e4d8; color: #8a442f; font-size: 11px; font-weight: 800; letter-spacing: .08em; }

@media (max-width: 620px) {
	#preloader { padding: 10px; }
	#preloader:has(#rom-play) .preloader-card { padding: 20px 18px; border-radius: 20px; }
	.welcome-header { align-items: flex-start; }
	.welcome-kicker { max-width: 90px; text-align: right; line-height: 1.45; }
	.welcome-hero { padding: 32px 0 22px; }
	.welcome-hero h1 { font-size: clamp(38px, 12vw, 56px); }
	.hero-copy { max-width: 100%; font-size: 14px; }
	.hero-orbit { display: none; }
	.welcome-guide { grid-template-columns: 1fr; gap: 13px; padding: 16px 0; }
	.guide-step, .guide-step:first-child { padding: 0; }
	.guide-step + .guide-step { border: 0; }
	.guide-step p { font-size: 12px; }
	.privacy-note { margin: 14px 0 18px; }
	.welcome-footer { align-items: flex-start; flex-direction: column; gap: 9px; }
	#rom-play { padding-top: 18px; }
}
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
