/* Purrplex website. Colors and fonts mirror the game (src/ui/theme/ui_colors.gd,
   src/ui/theme/region_palette.gd, assets/fonts). */

@font-face {
	font-family: "Fredoka";
	src: url("fonts/fredoka.woff2") format("woff2");
	font-weight: 500 700;
	font-display: swap;
}
@font-face {
	font-family: "Nunito";
	src: url("fonts/nunito.woff2") format("woff2");
	font-weight: 400 800;
	font-display: swap;
}

:root {
	--bg: #FBF8F3;
	--surface: #FFFFFF;
	--surface-alt: #F3EFFA;
	--border: #ECE6F5;
	--border-strong: #DAD3E8;
	--text: #2A2148;
	--muted: #6B6385;
	--primary: #6A4CC4;
	--primary-dark: #4B3591;
	--primary-soft: #EEE8FB;
	--on-primary: #FFFFFF;
	--link: #5A3EB3;
	--gold: #F6CD5F;
	--danger: #C2404F;
	--focus: #1F6FD1;
	--ink: #2A2140;
	--wm-a: #6B4FBB;
	--wm-b: #2E2447;
	--wm-nose: #E9627F;
	--shadow: 0 1px 2px rgba(42, 33, 72, .06), 0 12px 32px -12px rgba(42, 33, 72, .18);
	--shadow-lg: 0 2px 4px rgba(42, 33, 72, .06), 0 28px 60px -24px rgba(42, 33, 72, .32);
	--radius: 20px;
	--font-display: "Fredoka", ui-rounded, "Segoe UI", system-ui, sans-serif;
	--font-body: "Nunito", ui-rounded, "Segoe UI", system-ui, sans-serif;
	color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
	:root {
		--bg: #15111D;
		--surface: #201A2B;
		--surface-alt: #1B1625;
		--border: #2F2740;
		--border-strong: #43395A;
		--text: #F2EDFA;
		--muted: #B9B0CE;
		--primary: #7457D6;
		--primary-dark: #5E43BD;
		--primary-soft: #2C2442;
		--link: #BBA8F7;
		--focus: #7DB3FF;
		--wm-a: #A58BF0;
		--wm-b: #F2EDFA;
		--shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 12px 32px -12px rgba(0, 0, 0, .6);
		--shadow-lg: 0 2px 4px rgba(0, 0, 0, .3), 0 28px 60px -24px rgba(0, 0, 0, .7);
	}
}

/* ---------- Base ---------- */

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 84px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
	margin: 0;
	background: var(--bg);
	color: var(--text);
	font: 400 1.0625rem/1.6 var(--font-body);
	-webkit-font-smoothing: antialiased;
	overflow-x: hidden;
}

h1, h2, h3 {
	font-family: var(--font-display);
	font-weight: 600;
	line-height: 1.1;
	letter-spacing: -.01em;
	margin: 0;
	text-wrap: balance;
}
p { margin: 0; text-wrap: pretty; }
img { max-width: 100%; height: auto; }
a { color: var(--link); text-underline-offset: .18em; }
a:hover { text-decoration-thickness: 2px; }

:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 6px; }

.wrap { width: 100%; max-width: 1140px; margin: 0 auto; padding: 0 20px; }
@media (max-width: 480px) { .wrap { padding: 0 16px; } }

.skip {
	position: absolute; left: 12px; top: -60px; z-index: 100;
	background: var(--surface); color: var(--text); padding: 10px 16px; border-radius: 10px;
	box-shadow: var(--shadow);
}
.skip:focus { top: 12px; }

.eyebrow {
	font: 700 .8125rem/1.2 var(--font-body);
	letter-spacing: .12em;
	text-transform: uppercase;
	color: var(--primary);
	margin-bottom: 12px;
}
@media (prefers-color-scheme: dark) { .eyebrow { color: var(--link); } }

/* ---------- Buttons ---------- */

.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	min-height: 48px; padding: 0 22px;
	border: 2px solid transparent; border-radius: 999px;
	background: var(--primary); color: var(--on-primary);
	font: 700 1rem/1 var(--font-display); letter-spacing: .01em;
	text-decoration: none; cursor: pointer;
	transition: background-color .15s, transform .15s, box-shadow .15s;
	box-shadow: 0 6px 16px -8px rgba(106, 76, 196, .7);
}
.btn:hover { background: var(--primary-dark); text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn-ghost {
	background: transparent; color: var(--text);
	border-color: var(--border-strong); box-shadow: none;
}
.btn-ghost:hover { background: var(--primary-soft); }
.btn-soft { background: var(--primary-soft); color: var(--primary); box-shadow: none; }
.btn-soft:hover { background: var(--border); }
@media (prefers-color-scheme: dark) { .btn-soft { color: var(--link); } }
.btn-small { min-height: 40px; padding: 0 16px; font-size: .9375rem; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }

/* Single-color glyphs from assets/icons, tinted with the current text color. */
.glyph {
	display: inline-block; width: 1.25em; height: 1.25em; flex: none;
	background: currentColor;
	-webkit-mask: var(--glyph) center / contain no-repeat;
	mask: var(--glyph) center / contain no-repeat;
}
.glyph-restart { --glyph: url("icons/restart.svg"); }
.glyph-progress { --glyph: url("icons/progress.svg"); }
.glyph-daily { --glyph: url("icons/daily.svg"); }
.glyph-league { --glyph: url("icons/league.svg"); }
.glyph-achievements { --glyph: url("icons/achievements.svg"); }
.glyph-history { --glyph: url("icons/history.svg"); }

/* ---------- Header ---------- */

.site-header {
	position: sticky; top: 0; z-index: 20;
	background: color-mix(in srgb, var(--bg) 90%, transparent);
	backdrop-filter: blur(12px);
	-webkit-backdrop-filter: blur(12px);
	border-bottom: 1px solid transparent;
}
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 68px; }
.brand { display: block; line-height: 0; border-radius: 8px; }
.wordmark { width: 132px; height: auto; }
.wm-a { stroke: var(--wm-a); }
.wm-b { stroke: var(--wm-b); }
.wm-ears { fill: var(--wm-a); stroke: var(--wm-a); }
.wm-eye { fill: var(--wm-b); }
.wm-nose { fill: var(--wm-nose); stroke: var(--wm-nose); }

.site-nav { display: flex; align-items: center; gap: 28px; }
.site-nav a:not(.btn) {
	color: var(--muted); text-decoration: none; font-weight: 700; font-size: .9375rem;
}
.site-nav a:not(.btn):hover { color: var(--text); }
@media (max-width: 720px) {
	.site-nav { gap: 16px; }
	.site-nav a:not(.btn) { display: none; }
}

/* ---------- Hero ---------- */

.hero { padding: 40px 0 72px; position: relative; }
.hero::before {
	/* soft lavender glow behind the board */
	content: ""; position: absolute; inset: -68px 0 0; z-index: -1; pointer-events: none;
	background:
		radial-gradient(48rem 30rem at 82% 30%, color-mix(in srgb, var(--primary) 14%, transparent), transparent 70%),
		radial-gradient(30rem 20rem at 10% 0%, color-mix(in srgb, #F3A2BA 18%, transparent), transparent 70%);
}
.hero-grid {
	display: grid; gap: 48px; align-items: center;
	grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
}
.hero h1 {
	font-size: clamp(2.75rem, 6.4vw, 4.75rem);
	font-weight: 700;
	line-height: 1;
	letter-spacing: -.025em;
	margin-bottom: 20px;
}
.lede { font-size: clamp(1.0625rem, 1.6vw, 1.25rem); color: var(--muted); max-width: 34em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.facts {
	display: flex; flex-wrap: wrap; gap: 8px 22px;
	list-style: none; padding: 0; margin: 28px 0 0;
	font-weight: 700; font-size: .9375rem; color: var(--muted);
}
.facts li { display: inline-flex; align-items: center; gap: 8px; }
.facts li::before {
	content: ""; width: 18px; height: 18px; flex: none;
	background: url("img/paw.svg") center / contain no-repeat;
}

@media (max-width: 900px) {
	.hero { padding-top: 24px; }
	.hero-grid { grid-template-columns: minmax(0, 1fr); gap: 40px; }
	.hero-copy { text-align: center; }
	.lede { margin: 0 auto; }
	.hero-actions, .facts { justify-content: center; }
}

/* ---------- Demo card ---------- */

.demo-card {
	width: 100%; max-width: 460px; justify-self: center;
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: 28px;
	padding: 20px;
	box-shadow: var(--shadow-lg);
	scroll-margin-top: 84px;
}
@media (max-width: 400px) { .demo-card { padding: 14px; border-radius: 22px; } }
.demo-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.demo-title { font-size: 1.375rem; }
.demo-sub { color: var(--muted); font-size: .875rem; font-weight: 700; margin-top: 2px; }
.icon-btn {
	display: grid; place-items: center; width: 44px; height: 44px; flex: none;
	border: 1px solid var(--border-strong); border-radius: 14px;
	background: var(--surface); color: var(--muted); cursor: pointer;
	font-size: 1.125rem;
}
.icon-btn:hover { background: var(--primary-soft); color: var(--text); }

.demo-status-row {
	display: flex; align-items: center; justify-content: space-between; gap: 12px;
	margin: 14px 0 10px; min-height: 26px;
}
.lives, .cat-count { display: flex; gap: 4px; }
.lives img { width: 24px; height: 24px; }
.cat-count img { width: 22px; height: 22px; }
.lives img.just-lost { animation: heart-break .5s ease-out; }

.board-wrap { position: relative; }
.board {
	position: relative;
	display: grid;
	grid-template-columns: repeat(6, 1fr);
	aspect-ratio: 1;
	border-radius: 3.4%;
	overflow: hidden;
	background: #fff;
	user-select: none; -webkit-user-select: none;
	box-shadow: 0 0 0 6px #fff, 0 8px 24px -10px rgba(42, 33, 72, .35);
}
.noscript { grid-column: 1 / -1; align-self: center; text-align: center; color: #2A2148; padding: 16px; }

.cell {
	position: relative;
	appearance: none; border: 0; margin: 0; padding: 0;
	background-color: var(--fill);
	background-image: var(--pattern);
	background-size: 50% 50%;
	cursor: pointer;
	touch-action: manipulation;
	-webkit-tap-highlight-color: transparent;
	outline: none;
}
.cell:focus-visible { z-index: 3; box-shadow: inset 0 0 0 3px var(--focus), inset 0 0 0 5px #fff; }
@media (hover: hover) { .cell:hover { box-shadow: inset 0 0 0 999px rgba(255, 255, 255, .22); } }
.cell:focus-visible:hover { box-shadow: inset 0 0 0 3px var(--focus), inset 0 0 0 5px #fff; }

.mark {
	position: absolute; inset: 12%; z-index: 2;
	background: center / contain no-repeat;
	pointer-events: none;
}
.cell[data-state="x"] .mark { inset: 22%; background-image: url("img/x_note.svg"); }
.cell[data-state="xx"] .mark { inset: 22%; background-image: url("img/x_note_bold.svg"); }
.cell[data-state="cat"] .mark { background-image: url("img/cat.svg"); animation: pop .28s cubic-bezier(.3, 1.6, .5, 1); }
.cell[data-state="cat"]::before {
	content: ""; position: absolute; inset: 8%; z-index: 1; border-radius: 50%;
	background: rgba(255, 255, 255, .62);
}
.cell[data-state="wrong"] { animation: shake .4s ease-in-out; }
.cell[data-state="wrong"] .mark { inset: 6%; background-image: url("img/cat_wrong.svg"); }
.cell.hinted::after {
	content: ""; position: absolute; right: 3%; top: 3%; width: 32%; height: 32%; z-index: 3;
	background: url("img/hint_badge.svg") center / contain no-repeat;
}

/* Region fills and patterns: region_palette.gd PASTEL_HEX, ink = fill darkened 50% at 42%. */
.cell.r0 { --fill: #E4B9D6; --pattern: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Ccircle cx='10' cy='10' r='2.4' fill='%23725C6B' fill-opacity='.42'/%3E%3C/svg%3E"); }
.cell.r1 { --fill: #CFF5C7; --pattern: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M-5 5L5-5M0 20L20 0M15 25L25 15' stroke='%23677A63' stroke-opacity='.42' stroke-width='1.6'/%3E%3C/svg%3E"); }
.cell.r2 { --fill: #EA9DD7; --pattern: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M0 11Q5 5 10 11T20 11' fill='none' stroke='%23754E6B' stroke-opacity='.42' stroke-width='1.6'/%3E%3C/svg%3E"); }
.cell.r3 { --fill: #F0EE8D; --pattern: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M0 0H10V10H0ZM10 10H20V20H10Z' fill='%23787746' fill-opacity='.2'/%3E%3C/svg%3E"); }
.cell.r4 { --fill: #9AD1C1; --pattern: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Ccircle cx='10' cy='10' r='4.6' fill='none' stroke='%234D6860' stroke-opacity='.42' stroke-width='1.3'/%3E%3C/svg%3E"); }
.cell.r5 { --fill: #DAC5FE; --pattern: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 0V20M15 0V20' stroke='%236D627F' stroke-opacity='.42' stroke-width='1.6'/%3E%3C/svg%3E"); }

.board-lines { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 2; pointer-events: none; }

.board-overlay {
	position: absolute; inset: -6px; z-index: 5;
	display: grid; place-items: center; padding: 20px;
	border-radius: 18px;
	background: color-mix(in srgb, var(--surface) 72%, transparent);
	backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px);
	animation: fade .25s ease-out;
}
.board-overlay[hidden] { display: none; }
/* A win keeps the solved board visible under a light veil. */
.board-overlay.won {
	background: color-mix(in srgb, var(--surface) 30%, transparent);
	backdrop-filter: none; -webkit-backdrop-filter: none;
}
.overlay-card {
	position: relative; z-index: 1;
	background: var(--surface); border: 1px solid var(--border); border-radius: 22px;
	padding: 24px 22px; text-align: center; box-shadow: var(--shadow-lg); max-width: 340px;
}
.overlay-title { font: 700 2rem/1.1 var(--font-display); margin-bottom: 8px; }
.overlay-text { color: var(--muted); margin-bottom: 18px; }
.overlay-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }

/* Lives inside the overlay, under the card, so it never covers the text. */
.confetti { position: absolute; inset: 0; pointer-events: none; overflow: hidden; border-radius: inherit; }
.confetti i {
	position: absolute; top: -10%; width: 10px; height: 14px; border-radius: 2px;
	animation: fall var(--d, 1.6s) var(--delay, 0s) cubic-bezier(.3, .6, .6, 1) forwards;
}

.demo-legend {
	display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px;
	margin-top: 16px; color: var(--muted); font-size: .875rem; font-weight: 700;
}
.demo-legend .keys { flex-basis: 100%; text-align: center; font-weight: 600; font-size: .8125rem; }
.key-chip {
	display: inline-grid; place-items: center; width: 26px; height: 26px;
	border: 1px solid var(--border-strong); border-radius: 8px; background: #fff;
}
.key-chip img { width: 18px; height: 18px; }
.dot { margin: 0 4px; }
.only-mouse { display: none; }
@media (hover: hover) and (pointer: fine) {
	.only-mouse { display: inline; }
	.only-touch { display: none; }
}

.demo-foot { display: flex; align-items: center; gap: 14px; margin-top: 14px; }
.demo-message { flex: 1; font-size: .9375rem; color: var(--muted); min-height: 3em; display: flex; align-items: center; }
.demo-message.good { color: var(--text); }
.demo-message.bad { color: var(--danger); }
@media (prefers-color-scheme: dark) { .demo-message.bad { color: #FF8E9B; } }
.hint-btn { flex: none; }
.hint-icon { width: 28px; height: 28px; margin-left: -4px; }
.badge {
	display: inline-grid; place-items: center; min-width: 24px; height: 24px; padding: 0 6px;
	border-radius: 999px; background: var(--primary); color: #fff; font-size: .8125rem;
}
@media (max-width: 400px) {
	.demo-foot { flex-direction: column-reverse; align-items: stretch; }
	.demo-message { text-align: center; justify-content: center; min-height: 0; }
}

/* ---------- Sections ---------- */

.section { padding: 88px 0; }
@media (max-width: 720px) { .section { padding: 64px 0; } }
.section-head { text-align: center; max-width: 680px; margin: 0 auto 44px; }
.section-head.left { text-align: left; margin: 0; }
.section-head h2 { font-size: clamp(2rem, 4.2vw, 3rem); }
.section-lede { color: var(--muted); font-size: 1.125rem; margin-top: 14px; }
.band { background: var(--surface-alt); }

/* Rules */
.rules { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.rule-card {
	background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
	padding: 28px 24px; text-align: center; box-shadow: var(--shadow);
}
.rule-art { display: block; width: 120px; height: 120px; margin: 0 auto 18px; }
.rule-card h3 { font-size: 1.375rem; margin-bottom: 6px; }
.rule-card p { color: var(--muted); }

.tips {
	list-style: none; padding: 0; margin: 40px 0 0;
	display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px 32px;
}
.tips li { display: flex; gap: 14px; align-items: flex-start; color: var(--muted); }
.tips img {
	flex: none; width: 44px; height: 44px; padding: 6px;
	border-radius: 14px; background: var(--primary-soft);
}
.tips strong { color: var(--text); }
@media (max-width: 860px) {
	.rules, .tips { grid-template-columns: minmax(0, 1fr); }
	.rules { max-width: 460px; margin: 0 auto; }
	.rule-card { display: grid; grid-template-columns: 96px 1fr; gap: 4px 18px; text-align: left; align-items: center; padding: 20px; }
	.rule-art { grid-row: span 2; width: 96px; height: 96px; margin: 0; }
	.rule-card h3 { align-self: end; margin: 0; }
	.rule-card p { align-self: start; }
	.tips { max-width: 460px; margin-left: auto; margin-right: auto; }
}

/* Screenshot strip */
.shots {
	list-style: none; margin: 0 auto; padding: 8px 20px 28px;
	max-width: 1140px;
	display: grid; grid-auto-flow: column;
	grid-auto-columns: minmax(150px, 1fr);
	gap: 20px;
	overflow-x: auto; scroll-snap-type: x mandatory;
	scrollbar-width: thin;
}
.shots:focus-visible { outline-offset: -3px; }
.shots li { scroll-snap-align: center; }
.shots figure { margin: 0; }
.shots img {
	display: block; width: 100%; aspect-ratio: 600 / 1305; object-fit: cover;
	border-radius: 22px; background: var(--surface);
	border: 1px solid var(--border); box-shadow: var(--shadow);
}
.shots figcaption { text-align: center; font-weight: 700; font-size: .9375rem; margin-top: 14px; color: var(--muted); }
@media (max-width: 900px) {
	.shots { grid-auto-columns: min(62vw, 240px); padding-inline: 16px; scroll-padding-inline: 16px; }
}

/* Features */
.features { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.feature {
	background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
	padding: 26px 24px; box-shadow: var(--shadow);
}
.feature h3 { font-size: 1.25rem; margin: 16px 0 6px; }
.feature p { color: var(--muted); }
.tile {
	display: grid; place-items: center; width: 52px; height: 52px; border-radius: 16px;
	font-size: 1.625rem; color: #2A2148;
}
.tile-lilac { background: #DAC5FE; }
.tile-mint { background: #CFF5C7; }
.tile-gold { background: #F6CD5F; }
.tile-rose { background: #F3BFD6; }
.tile-sky { background: #B5EEFE; }
.tile-peach { background: #F4BBAA; }
.tile img { width: 36px; height: 36px; }
@media (max-width: 900px) { .features { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .features { grid-template-columns: minmax(0, 1fr); } }

/* League band */
.league {
	padding: 88px 0;
	background:
		radial-gradient(40rem 20rem at 50% 120%, rgba(246, 205, 95, .28), transparent 70%),
		linear-gradient(160deg, #6A4CC4, #4B3591);
	color: #fff;
}
.league .eyebrow { color: #F6CD5F; }
.league .section-lede { color: #E6DFFB; }
.crests {
	list-style: none; padding: 0; margin: 0;
	display: flex; flex-wrap: wrap; justify-content: center; align-items: flex-end; gap: 16px 36px;
}
.crests li { display: grid; justify-items: center; gap: 10px; font: 600 1rem/1 var(--font-display); }
.crests img { width: 80px; height: 88px; filter: drop-shadow(0 8px 14px rgba(20, 10, 50, .35)); }
.crests li:nth-child(2) img { width: 88px; height: 97px; }
.crests li:nth-child(3) img { width: 96px; height: 106px; }
.crests li:nth-child(4) img { width: 104px; height: 114px; }
.crests li:nth-child(5) img { width: 116px; height: 128px; }
@media (max-width: 560px) {
	/* all five on one row down to 320px wide */
	.crests { flex-wrap: nowrap; gap: 6px; justify-content: space-between; }
	.crests li { flex: 1 1 0; min-width: 0; font-size: .8125rem; }
	.crests li img { width: 100% !important; max-width: 56px; height: auto !important; }
	.crests li:nth-child(5) img { max-width: 66px; }
}

/* Comfort */
.comfort-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 56px; align-items: center; }
.emblem { display: block; width: 200px; margin-top: 32px; }
.comfort { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.comfort li {
	display: flex; gap: 16px; align-items: flex-start;
	background: var(--surface); border: 1px solid var(--border); border-radius: 16px;
	padding: 16px 18px; color: var(--muted);
}
.comfort img { flex: none; width: 28px; height: 28px; margin-top: 1px; }
.comfort strong { color: var(--text); }
@media (max-width: 860px) {
	.comfort-grid { grid-template-columns: minmax(0, 1fr); gap: 32px; }
	.section-head.left { text-align: center; margin: 0 auto; }
	.emblem { width: 140px; margin: 24px auto 0; }
}

/* Stores */
.get { padding-top: 0; }
.stores { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; max-width: 900px; margin: 0 auto; }
.store {
	display: grid; gap: 4px; justify-items: center; text-align: center;
	padding: 26px 20px; border-radius: var(--radius);
	background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow);
	color: var(--text); text-decoration: none;
}
.store-name { font: 600 1.375rem/1.2 var(--font-display); }
.store-platforms { color: var(--muted); font-size: .9375rem; }
.store-status {
	margin-top: 12px; padding: 6px 14px; border-radius: 999px;
	background: var(--primary-soft); color: var(--primary); font-weight: 800; font-size: .8125rem;
}
@media (prefers-color-scheme: dark) { .store-status { color: var(--link); } }
a.store:hover { border-color: var(--primary); }
.store.live .store-status { background: var(--primary); color: #fff; }
@media (max-width: 720px) { .stores { grid-template-columns: minmax(0, 1fr); max-width: 420px; } }

/* ---------- Footer ---------- */

.site-footer { border-top: 1px solid var(--border); padding: 28px 0 40px; color: var(--muted); font-size: .9375rem; }
.footer-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; }
.footer-row p { flex: 1; min-width: 200px; }
.footer-row nav { display: flex; gap: 20px; }
.footer-row nav a { color: var(--muted); font-weight: 700; }
.footer-row nav a:hover { color: var(--text); }

/* ---------- Text pages (support, privacy, 404) ---------- */

.page { padding: 48px 0 80px; }
.page .wrap { max-width: 760px; }
.page h1 { font-size: clamp(2.25rem, 5vw, 3.25rem); margin-bottom: 12px; }
.page h2 { font-size: 1.5rem; margin: 40px 0 12px; }
.page p, .page li { color: var(--muted); }
.page p + p { margin-top: 12px; }
.page strong { color: var(--text); }
.page ul { padding-left: 1.25em; }
.page .meta { font-weight: 700; }
.card {
	background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
	padding: 22px 24px; box-shadow: var(--shadow);
}
.contact-actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 16px 0 20px; }
.contact-actions[hidden] { display: none; }
.sr-only {
	position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; border: 0;
	overflow: hidden; clip-path: inset(50%); white-space: nowrap;
}
.offscreen { position: fixed; left: -9999px; top: 0; opacity: 0; }
.faq { display: grid; gap: 12px; }
.faq details {
	background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 0 20px;
}
.faq summary {
	cursor: pointer; list-style: none; padding: 18px 0;
	font: 600 1.125rem/1.3 var(--font-display); color: var(--text);
	display: flex; justify-content: space-between; gap: 12px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--primary); font-size: 1.5rem; line-height: 1; transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding-bottom: 18px; margin: 0; }
.not-found { text-align: center; padding: 96px 0; }
.not-found img { width: 120px; margin-bottom: 24px; }
.not-found p { margin: 12px 0 28px; }

/* ---------- Motion ---------- */

@keyframes pop { from { transform: scale(.4); opacity: 0; } to { transform: scale(1); opacity: 1; } }
@keyframes shake {
	0%, 100% { transform: translateX(0); }
	20% { transform: translateX(-5px); } 40% { transform: translateX(5px); }
	60% { transform: translateX(-3px); } 80% { transform: translateX(3px); }
}
@keyframes heart-break { 0% { transform: scale(1.35); } 100% { transform: scale(1); } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes fall {
	0% { transform: translate3d(0, 0, 0) rotate(0); opacity: 1; }
	100% { transform: translate3d(var(--x, 0), 540px, 0) rotate(var(--r, 540deg)); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation: none !important; transition: none !important; }
	.confetti { display: none; }
}
