/* ==========================================================================
   SOLAMIA — cartoon nation theme
   ========================================================================== */

@font-face { font-family: "Luckiest Guy"; src: url("../fonts/luckiest-guy.woff2") format("woff2"); font-display: swap; }
@font-face { font-family: "Patrick Hand"; src: url("../fonts/patrick-hand.woff2") format("woff2"); font-display: swap; }
@font-face { font-family: "Bangers"; src: url("../fonts/bangers.woff2") format("woff2"); font-display: swap; }
@font-face { font-family: "Space Mono"; src: url("../fonts/space-mono.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Space Mono"; src: url("../fonts/space-mono-bold.woff2") format("woff2"); font-weight: 700; font-display: swap; }

:root {
	--ink: #1a1423;
	--paper: #fff6dc;
	--paper-2: #f6e6b8;
	--white: #ffffff;
	--purple: #9945ff;
	--purple-d: #6b2fd1;
	--green: #14f195;
	--green-d: #0a9e5f;
	--yellow: #ffd43b;
	--red: #e8364b;
	--pink: #ff8fb1;
	--orange: #ff9f43;
	--blue: #4da3ff;
	--night: #1d0b3f;
	--night-2: #3a1580;
	/* Republic of Solami passport palette */
	--ros-ink: #1b1d5c;
	--ros-cover: #3343c9;
	--ros-page: #8b9dff;
	--ros-panel: #b6c3ff;
	--ros-desk: #4b2cb8;
	--ros-desk-2: #6a4ce6;
	--ros-cream: #fdf6e3;
	--ros-pink: #ff4fc8;
	--muted: #6d5f78;

	--display: "Luckiest Guy", "Arial Black", Impact, sans-serif;
	--comic: "Bangers", "Arial Black", Impact, sans-serif;
	--hand: "Patrick Hand", "Comic Sans MS", "Segoe Print", cursive;
	--mono: "Space Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
	--body: ui-rounded, "SF Pro Rounded", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

	--line: 4px solid var(--ink);
	--shadow: 6px 6px 0 var(--ink);
	--shadow-sm: 4px 4px 0 var(--ink);
	--radius: 22px;
	--hud-h: 68px;
	--s: 1;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--hud-h) + 12px); }
body {
	margin: 0;
	padding-top: var(--hud-h);
	background: var(--paper);
	color: var(--ink);
	font-family: var(--body);
	font-size: 17px;
	line-height: 1.55;
	-webkit-font-smoothing: antialiased;
	overflow-x: hidden;
}
img { max-width: 100%; height: auto; }
a { color: var(--purple-d); text-decoration-thickness: 2px; text-underline-offset: 3px; }
a:hover { color: var(--ink); }
kbd {
	font-family: var(--mono); font-size: .8em; font-weight: 700;
	display: inline-block; min-width: 1.7em; text-align: center;
	padding: 1px 6px; margin: 0 2px;
	background: var(--white); border: 2px solid var(--ink); border-radius: 6px;
	box-shadow: 2px 2px 0 var(--ink);
}
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 12px; top: 12px; z-index: 999; background: var(--yellow); padding: 8px 14px; border: var(--line); }
:focus-visible { outline: 4px solid var(--purple); outline-offset: 3px; }

.wrap { max-width: 1180px; margin: 0 auto; padding: 0 20px; }
.wrap.narrow { max-width: 820px; }
.center { text-align: center; }
.muted { color: var(--muted); }
.small { font-size: 14px; }

/* ---------- type ---------- */
.title {
	font-family: var(--display);
	font-weight: 400;
	font-size: clamp(34px, 5.4vw, 60px);
	line-height: .98;
	letter-spacing: .5px;
	margin: 0 0 14px;
	color: var(--ink);
	text-shadow: 3px 3px 0 var(--yellow);
}
.title a { color: inherit; text-decoration: none; }
.kicker {
	display: inline-block;
	font: 700 12px/1 var(--mono);
	text-transform: uppercase;
	letter-spacing: 1.5px;
	color: var(--white);
	background: var(--purple);
	border: 3px solid var(--ink);
	border-radius: 999px;
	padding: 7px 12px 6px;
	margin: 0 0 14px;
}
.lead { font-size: clamp(17px, 1.6vw, 20px); max-width: 62ch; margin: 0 0 18px; }

/* ---------- buttons ---------- */
.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	font: 400 18px/1 var(--display);
	letter-spacing: .5px;
	padding: 13px 22px 10px;
	color: var(--ink);
	background: var(--white);
	border: var(--line);
	border-radius: 999px;
	box-shadow: var(--shadow-sm);
	text-decoration: none;
	cursor: pointer;
	transition: transform .12s ease, box-shadow .12s ease;
	white-space: nowrap;
}
.btn:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--ink); color: var(--ink); }
.btn:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--ink); }
.btn[disabled] { opacity: .6; cursor: not-allowed; transform: none; box-shadow: var(--shadow-sm); }
.btn-yellow { background: var(--yellow); }
.btn-green { background: var(--green); }
.btn-x { background: var(--ink); color: var(--white); box-shadow: 4px 4px 0 var(--purple); }
.btn-x:hover { color: var(--white); box-shadow: 6px 6px 0 var(--purple); }
.btn-sm { font-size: 15px; padding: 9px 15px 7px; border-width: 3px; box-shadow: 3px 3px 0 var(--ink); }
.btn-lg { font-size: 22px; padding: 16px 28px 12px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 8px; }
.btn-row--center { justify-content: center; }
.linklike { background: none; border: 0; padding: 0; font: inherit; color: var(--red); text-decoration: underline; cursor: pointer; }

.card {
	background: var(--white);
	border: var(--line);
	border-radius: var(--radius);
	box-shadow: var(--shadow);
	padding: 28px;
}

/* ==========================================================================
   HUD header
   ========================================================================== */
.hud {
	position: fixed; inset: 0 0 auto 0; z-index: 50;
	height: var(--hud-h);
	display: flex; align-items: center; gap: 18px;
	padding: 0 18px;
	background: rgba(255, 246, 220, .94);
	backdrop-filter: blur(8px);
	border-bottom: var(--line);
}
.brand { display: flex; align-items: center; gap: 8px; text-decoration: none; color: var(--ink); flex: none; }
.brand-sun { width: 44px; height: 44px; display: block; }
.brand-sun svg { width: 100%; height: 100%; display: block; }
.brand-sun .rays { transform-origin: 100px 100px; animation: spin 18s linear infinite; }
.brand-word { font: 400 28px/1 var(--display); letter-spacing: .5px; padding-top: 4px; text-shadow: 2px 2px 0 var(--green); }
.hud-stats { display: flex; gap: 8px; margin: 0 auto; min-width: 0; overflow-x: auto; scrollbar-width: none; }
.hud-stats::-webkit-scrollbar { display: none; }
.chip {
	display: inline-flex; align-items: baseline; gap: 7px;
	padding: 6px 12px 5px;
	background: var(--white); border: 3px solid var(--ink); border-radius: 999px;
	white-space: nowrap;
}
.chip em { font: normal 700 11px/1 var(--mono); text-transform: uppercase; letter-spacing: 1px; color: var(--muted); }
.chip b { font: 700 15px/1 var(--mono); }
.hud-nav { display: flex; align-items: center; gap: 16px; flex: none; }
.hud-nav a:not(.btn) { font: 400 20px/1 var(--comic); letter-spacing: 1px; color: var(--ink); text-decoration: none; }
.hud-nav a:not(.btn):hover { color: var(--purple-d); }
[data-tone].up { color: var(--green-d); }
[data-tone].down { color: var(--red); }

/* ==========================================================================
   CITY
   ========================================================================== */
.city {
	--s: 1;
	--ground: 150px;
	--side: 46px;
	position: relative;
	height: clamp(580px, calc(100svh - var(--hud-h)), 880px);
	overflow: hidden;
	/* Solami dusk: the passport desk purple fading into a pink horizon. */
	background: linear-gradient(#4b2cb8 0%, #6a4ce6 32%, #a99cff 62%, #ffc4e4 88%, #ffe3c2 100%);
	border-bottom: var(--line);
	user-select: none;
	-webkit-user-select: none;
	touch-action: pan-y;
	transition: background .8s;
}
.mood-cloudy .city { background: linear-gradient(#5b4aa8 0%, #8a80c8 45%, #c4bde6 80%, #e6e0f2 100%); }
.mood-rainy .city { background: linear-gradient(#59708c 0%, #8ea3b8 60%, #b9c6d3 100%); }
.mood-storm .city { background: linear-gradient(#2a2346 0%, #4b4370 60%, #6d6590 100%); }

.sky { position: absolute; inset: 0; pointer-events: none; }
.sun { position: absolute; top: 7%; right: 9%; width: calc(150px * var(--s)); transition: transform .8s, filter .8s; }
.sun svg { display: block; width: 100%; }
.sun .rays { transform-origin: 100px 100px; animation: spin 30s linear infinite; }
.mood-cloudy .sun { transform: translate(-40px, 20px) scale(.9); }
.mood-rainy .sun, .mood-storm .sun { transform: translateY(40px) scale(.75); filter: grayscale(.8) brightness(.8); }
.mood-rainy .sun-mouth, .mood-storm .sun-mouth { d: path("M78 134 Q100 118 122 134"); }

.cloud { position: absolute; width: calc(190px * var(--s)); animation: drift 70s linear infinite; }
.cloud svg { display: block; width: 100%; }
.cloud.c1 { top: 12%; left: -20%; }
.cloud.c2 { top: 26%; left: -20%; animation-duration: 95s; animation-delay: -40s; width: calc(140px * var(--s)); }
.cloud.c3 { top: 6%; left: -20%; animation-duration: 120s; animation-delay: -85s; width: calc(240px * var(--s)); }
.mood-rainy .cloud path, .mood-storm .cloud path { fill: #c2c8d4; }

.hovercar { position: absolute; width: calc(150px * var(--s)); animation: fly 26s linear infinite; }
.hovercar svg { display: block; width: 100%; animation: hover 1.4s ease-in-out infinite alternate; }
.hovercar.h1 { top: 34%; left: -200px; }
.hovercar.h2 { top: 20%; left: -200px; animation-duration: 38s; animation-delay: -18s; transform: scaleX(-1); animation-name: fly-back; width: calc(110px * var(--s)); }

.rain { position: absolute; inset: 0; opacity: 0; transition: opacity .8s;
	background-image: repeating-linear-gradient(105deg, transparent 0 18px, rgba(255,255,255,.55) 18px 20px, transparent 20px 46px);
	background-size: 260px 260px; animation: rain .5s linear infinite; }
.mood-rainy .rain { opacity: .5; }
.mood-storm .rain { opacity: .8; }
.mood-storm .city::after { content: ""; position: absolute; inset: 0; background: #fff; opacity: 0; pointer-events: none; animation: flash 7s infinite; }

.layer { position: absolute; left: 0; right: 0; pointer-events: none; background-repeat: repeat-x; }
.layer-far { bottom: calc(var(--ground) + 70px * var(--s)); height: calc(300px * var(--s)); background-image: url("../img/mountains.svg"); background-size: auto 100%; }
.layer-mid { bottom: calc(var(--ground) - 4px); height: calc(190px * var(--s)); background-image: url("../img/hills.svg"); background-size: auto 100%; }

.world {
	position: absolute; top: 0; bottom: 0; left: 0;
	width: calc(var(--world) * var(--s) * 1px);
	will-change: transform;
}
.street {
	position: absolute; left: 0; right: 0; bottom: 0;
	height: var(--ground);
	border-top: var(--line);
	background:
		linear-gradient(var(--ink), var(--ink)) 0 var(--side) / 100% 4px no-repeat,
		repeating-linear-gradient(90deg, #e3d7b6 0 62px, #b9ac88 62px 65px) 0 0 / 100% var(--side) no-repeat,
		repeating-linear-gradient(90deg, var(--yellow) 0 56px, transparent 56px 112px) 0 calc(var(--side) + (var(--ground) - var(--side)) * .42) / 100% 7px no-repeat,
		#4f4966;
}

/* buildings */
.building {
	position: absolute;
	left: calc(var(--x) * var(--s) * 1px);
	bottom: calc(var(--ground) - 2px);
	width: calc(var(--w) * var(--s) * 1px);
	padding: 0; margin: 0; border: 0; background: none;
	cursor: pointer;
	transform-origin: 50% 100%;
	transition: transform .25s cubic-bezier(.3, 1.6, .5, 1);
	z-index: 2;
	font: inherit; color: inherit;
}
.building .bsvg { display: block; width: 100%; height: auto; overflow: visible; }
.building:hover, .building.is-near { transform: scale(1.035); }
.building:focus-visible { outline-offset: 6px; border-radius: 12px; }
.door-prompt {
	position: absolute; left: 50%; bottom: calc(100% + 12px);
	transform: translate(-50%, 8px) scale(.9);
	opacity: 0; pointer-events: none;
	white-space: nowrap;
	font: 400 calc(16px + 2px * var(--s)) / 1 var(--display);
	padding: 10px 14px 7px;
	background: var(--yellow); border: var(--line); border-radius: 999px; box-shadow: var(--shadow-sm);
	transition: opacity .2s, transform .2s;
}
.door-prompt kbd { font-size: 13px; }
.is-near .door-prompt { opacity: 1; transform: translate(-50%, 0) scale(1); animation: nudge 1.2s ease-in-out infinite; }
.b-moon .door-prompt { bottom: calc(100% - 20px); }
.blink { animation: blink 1.4s steps(2, jump-none) infinite; }
.blink.b2 { animation-delay: .7s; }
.flag { animation: wave 2.2s ease-in-out infinite alternate; transform-origin: 203px 40px; transform-box: view-box; }

.sign-text {
	position: absolute; left: 6%; right: 6%; top: 8%; height: 56%;
	display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
	font-family: var(--display); color: var(--ink); line-height: 1;
	pointer-events: none;
}
.sign-text strong { font-weight: 400; font-size: calc(48px * var(--s)); color: var(--white); text-shadow: 3px 3px 0 var(--ink), -2px -2px 0 var(--ink), 2px -2px 0 var(--ink), -2px 2px 0 var(--ink); }
.sign-text small { font-size: calc(17px * var(--s)); letter-spacing: .5px; }
.sign-text b { font-weight: 400; }

.led {
	position: absolute; left: 18.6%; width: 62.8%; top: 4.2%; height: 15.4%;
	overflow: hidden; display: flex; align-items: center;
	border-radius: 4px;
	font: 700 calc(22px * var(--s)) / 1 var(--mono);
	color: var(--green);
	text-shadow: 0 0 8px rgba(20, 241, 149, .8);
	pointer-events: none;
}
.led-track { display: flex; gap: 2.2em; padding-left: 100%; white-space: nowrap; animation: marquee 16s linear infinite; }
.led-track b { font-weight: 700; color: var(--yellow); text-shadow: 0 0 8px rgba(255, 212, 59, .8); }
.led .up { color: var(--green); }
.led .down { color: #ff6b7d; text-shadow: 0 0 8px rgba(232, 54, 75, .9); }

.plaza-wall {
	position: absolute; left: 8.5%; width: 83%; top: 21.5%; height: 48%;
	display: grid; grid-template-columns: repeat(6, 1fr); grid-template-rows: repeat(2, 1fr);
	gap: 6%; padding: 3% 2%;
	pointer-events: none;
}
.plaza-wall img, .plaza-wall i {
	width: 100%; aspect-ratio: 1; object-fit: cover; align-self: center;
	border: 3px solid var(--ink); border-radius: 50%;
	background: var(--green);
	display: grid; place-items: center;
	font: normal 400 calc(22px * var(--s)) / 1 var(--display);
	color: var(--ink);
}
.plaza-wall i.free { background: var(--paper-2); color: var(--muted); border-style: dashed; }

.rocket { transform-box: view-box; }
.flame { opacity: 0; transform-origin: 176px 440px; transform-box: view-box; }
.b-moon.launching .flame { opacity: 1; animation: flicker .12s infinite alternate; }
.b-moon.launching .rocket { animation: launch 2.4s cubic-bezier(.5, 0, .9, .5) forwards; }
.b-moon.launching { animation: shake .1s 12; }
.b-moon.launching .door-prompt { opacity: 0 !important; }

/* people */
.player, .npc {
	position: absolute; left: 0;
	bottom: calc(var(--ground) - var(--side) + 6px);
	width: calc(92px * var(--s));
	z-index: 4;
	pointer-events: none;
}
.npc { left: calc(var(--x) * var(--s) * 1px); z-index: 3; width: calc(82px * var(--s)); }
.player { will-change: transform; z-index: 5; }
.citizen-svg { display: block; width: 100%; overflow: visible; transform-origin: 50% 100%; }
.citizen-svg .leg { transform-box: fill-box; transform-origin: 50% 0; }
.citizen-svg .head { transform-box: fill-box; transform-origin: 50% 100%; }
.npc .citizen-svg { animation: idle 2.4s ease-in-out infinite; }
.npc:nth-of-type(2n) .citizen-svg { animation-delay: -1.1s; }
.player .citizen-svg { animation: idle 2s ease-in-out infinite; }
.player.walking .citizen-svg { animation: bob .3s ease-in-out infinite alternate; }
.player.walking .leg-l { animation: step .3s ease-in-out infinite alternate; }
.player.walking .leg-r { animation: step .3s ease-in-out infinite alternate-reverse; }
.player.left .citizen-svg { scale: -1 1; }
.player .shadow {
	position: absolute; left: 12%; right: 12%; bottom: -4px; height: 10px;
	background: rgba(26, 20, 35, .25); border-radius: 50%; z-index: -1;
}
.bubble {
	position: absolute; left: 50%; bottom: calc(100% + 8px);
	transform: translateX(-50%);
	white-space: nowrap;
	font: 400 calc(15px + 4px * var(--s)) / 1 var(--comic);
	letter-spacing: 1px;
	padding: 8px 12px 6px;
	background: var(--white);
	border: 3px solid var(--ink);
	border-radius: 14px;
	box-shadow: 3px 3px 0 var(--ink);
	transition: opacity .3s, transform .3s;
}
.bubble::after {
	content: ""; position: absolute; left: 50%; top: 100%;
	width: 12px; height: 12px; margin: -6px 0 0 -6px;
	background: var(--white);
	border-right: 3px solid var(--ink); border-bottom: 3px solid var(--ink);
	transform: rotate(45deg);
}
.bubble.pop { animation: pop .35s cubic-bezier(.3, 1.8, .5, 1); }
.player-bubble { background: var(--yellow); }
.player-bubble::after { background: var(--yellow); }
.t-mob { display: none; }
.player.has-moved .player-bubble { opacity: 0; transform: translate(-50%, -6px); }

.lamp {
	position: absolute; left: calc(var(--x) * var(--s) * 1px);
	bottom: calc(var(--ground) - 2px);
	width: calc(10px * var(--s)); height: calc(210px * var(--s));
	background: #3b3550; border: 3px solid var(--ink); border-bottom: 0;
	z-index: 1;
}
.lamp::before {
	content: ""; position: absolute; left: 50%; top: -6px;
	width: calc(46px * var(--s)); height: calc(24px * var(--s));
	transform: translateX(-50%);
	background: var(--yellow);
	border: 3px solid var(--ink); border-radius: 50% 50% 8px 8px;
	box-shadow: 0 0 24px 8px rgba(255, 212, 59, .45);
}

/* city UI */
.city-ui { position: absolute; left: 0; right: 0; bottom: 0; height: calc(var(--ground) - var(--side)); z-index: 6; pointer-events: none; }
.city-ui > * { pointer-events: auto; }
.minimap {
	list-style: none; margin: 0; padding: 0;
	position: absolute; left: 24px; right: 24px; bottom: 16px; height: 30px;
}
.minimap::before {
	content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 6px; margin-top: -3px;
	background: var(--paper); border: 3px solid var(--ink); border-radius: 999px;
}
.minimap li { position: static; }
.minimap button {
	position: absolute; top: 50%; left: var(--p);
	transform: translate(-50%, -50%);
	font: 400 13px/1 var(--display);
	padding: 6px 9px 4px;
	background: var(--white); color: var(--ink);
	border: 3px solid var(--ink); border-radius: 999px;
	cursor: pointer; white-space: nowrap;
	transition: background .15s, transform .15s;
}
.minimap button:hover, .minimap button.is-here { background: var(--yellow); transform: translate(-50%, -50%) scale(1.08); }
.minimap .mm-you {
	position: absolute; top: 50%; left: 0;
	width: 18px; height: 18px; margin: -9px 0 0 -9px;
	background: var(--green); border: 3px solid var(--ink); border-radius: 50%;
	z-index: 2; pointer-events: none;
	box-shadow: 0 0 0 4px rgba(20, 241, 149, .35);
}
.hint {
	position: absolute; left: 24px; top: 12px; margin: 0;
	font: 700 13px/1.4 var(--mono); color: var(--paper);
}
.hint kbd { color: var(--ink); }
.pad { display: none; position: absolute; right: 12px; bottom: 58px; gap: 8px; }
.pad-btn {
	min-width: 54px; height: 54px; padding: 0 14px;
	font: 400 20px/1 var(--display);
	background: var(--white); color: var(--ink);
	border: var(--line); border-radius: 16px; box-shadow: var(--shadow-sm);
	cursor: pointer; touch-action: none;
}
.pad-btn:active, .pad-btn.is-down { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--ink); background: var(--yellow); }
.pad-enter { background: var(--yellow); font-size: 18px; }
.scroll-cue {
	position: absolute; right: 22px; bottom: calc(var(--ground) - var(--side) - 46px); z-index: 6;
	font: 400 16px/1 var(--display); text-decoration: none; color: var(--ink);
	background: var(--white); border: 3px solid var(--ink); border-radius: 999px; padding: 9px 14px 6px;
	box-shadow: 3px 3px 0 var(--ink);
}
.no-js .player-bubble { display: none; }

/* panel */
.panel {
	width: min(940px, calc(100vw - 24px));
	max-height: calc(100svh - 40px);
	padding: 0;
	border: var(--line);
	border-radius: 26px;
	background: var(--paper);
	color: var(--ink);
	box-shadow: 10px 10px 0 var(--ink);
	overflow: hidden;
}
.panel[open] { animation: panel-in .35s cubic-bezier(.3, 1.5, .5, 1); }
.panel::backdrop { background: rgba(29, 11, 63, .62); backdrop-filter: blur(3px); }
.panel-inner { position: relative; max-height: calc(100svh - 48px); overflow-y: auto; padding: 34px 32px 30px; }
.panel-close {
	position: sticky; top: 0; float: right; margin: -16px -12px 0 12px;
	width: 46px; height: 46px; z-index: 2;
	font: 700 20px/1 var(--mono);
	background: var(--white); border: var(--line); border-radius: 50%; box-shadow: var(--shadow-sm);
	cursor: pointer;
}
.panel .title { font-size: clamp(30px, 4.4vw, 46px); }
.mini-stats { display: flex; flex-wrap: wrap; gap: 12px; margin: 18px 0; }
.mini-stats span { background: var(--white); border: 3px solid var(--ink); border-radius: 16px; padding: 12px 16px; box-shadow: 3px 3px 0 var(--ink); }
.mini-stats em { display: block; font: normal 700 11px/1 var(--mono); text-transform: uppercase; letter-spacing: 1px; color: var(--muted); margin-bottom: 6px; }
.mini-stats b { font: 400 28px/1 var(--display); }

/* ==========================================================================
   Sections
   ========================================================================== */
.section { padding: clamp(56px, 8vw, 100px) 0; position: relative; }
.section-economy {
	background-color: var(--paper);
	background-image: radial-gradient(rgba(26, 20, 35, .12) 1.5px, transparent 1.6px);
	background-size: 22px 22px;
}
.section-passport {
	background: radial-gradient(1200px 400px at 80% 0%, rgba(153, 69, 255, .5), transparent), linear-gradient(var(--night), var(--night-2));
	color: var(--white);
	border-top: var(--line); border-bottom: var(--line);
}
.section-passport .title { color: var(--white); text-shadow: 3px 3px 0 var(--purple); }
.section-passport .lead { color: #e9dfff; }
.section-plaza { background: var(--paper-2); }
.section-split { background: #dff7ec; border-top: var(--line); }
.split { display: grid; grid-template-columns: 1.1fr 1fr; gap: 28px; align-items: start; }

/* economy */
.economy-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; margin-bottom: 26px; }
.weather {
	display: flex; align-items: center; gap: 12px;
	background: var(--white); border: var(--line); border-radius: 18px; box-shadow: var(--shadow-sm);
	padding: 12px 18px 12px 12px;
	max-width: 380px;
}
.weather-ico { font-size: 38px; line-height: 1; }
.weather-ico::before { content: "☀️"; }
.mood-cloudy .weather-ico::before { content: "⛅"; }
.mood-rainy .weather-ico::before { content: "🌧️"; }
.mood-storm .weather-ico::before { content: "⛈️"; }
.weather em { display: block; font: normal 700 11px/1 var(--mono); text-transform: uppercase; letter-spacing: 1px; color: var(--muted); margin-bottom: 4px; }
.weather b { font: 400 18px/1.15 var(--comic); letter-spacing: .6px; }

.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.stat {
	position: relative;
	display: flex; flex-direction: column; gap: 4px;
	background: var(--white);
	border: var(--line); border-radius: 20px; box-shadow: var(--shadow-sm);
	padding: 18px 18px 16px;
	min-width: 0;
}
.stat-ico { width: 38px; height: 38px; position: absolute; right: 14px; top: 14px; }
.stat-ico svg { width: 100%; height: 100%; display: block; }
.stat-label { font: 400 22px/1 var(--comic); letter-spacing: 1px; padding-right: 44px; }
.stat-value { font: 400 clamp(26px, 2.6vw, 36px) / 1.05 var(--display); margin-top: 6px; overflow-wrap: anywhere; }
.stat-sub { font: 700 11px/1.3 var(--mono); text-transform: uppercase; letter-spacing: 1px; color: var(--muted); }
.stat--hero { grid-column: span 2; grid-row: span 2; background: var(--yellow); justify-content: flex-end; padding: 24px; }
.stat--hero .stat-ico { width: 64px; height: 64px; right: 20px; top: 20px; }
.stat--hero .stat-label { font-size: 34px; }
.stat--hero .stat-value { font-size: clamp(54px, 7vw, 96px); text-shadow: 4px 4px 0 var(--white); }
.stat--hero .stat-sub { color: var(--ink); font-size: 13px; }
.stats > .stat:last-child { grid-column: span 2; }
.stat-value--long { font-size: clamp(22px, 2.1vw, 28px); }
.stat-value.flash { animation: flash-val .9s; }
.economy--compact .stats { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.economy--compact .stat--hero .stat-value { font-size: clamp(42px, 6vw, 70px); }

.growth { margin-top: 22px; padding: 22px 24px; }
.growth-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.growth-head h3 { font: 400 26px/1 var(--display); margin: 0; }
.tabs { display: flex; gap: 6px; background: var(--paper); border: 3px solid var(--ink); border-radius: 999px; padding: 4px; }
.tabs button { font: 400 15px/1 var(--display); padding: 8px 14px 5px; border: 0; border-radius: 999px; background: transparent; cursor: pointer; color: var(--ink); }
.tabs button[aria-selected="true"] { background: var(--ink); color: var(--white); }
.growth-chart { margin-top: 14px; min-height: 120px; }
.growth-chart svg { display: block; width: 100%; height: auto; overflow: visible; }
.growth-chart .axis { font: 700 11px var(--mono); fill: var(--muted); }
.eco-foot { margin: 16px 0 0; font: 400 13px/1.4 var(--mono); }

/* CA */
.ca-box {
	display: flex; align-items: center; gap: 10px;
	background: var(--white); border: var(--line); border-radius: 16px; box-shadow: var(--shadow-sm);
	padding: 10px 10px 10px 12px; margin: 18px 0;
}
.ca-label { font: 400 15px/1 var(--display); background: var(--purple); color: var(--white); border: 3px solid var(--ink); border-radius: 10px; padding: 7px 8px 4px; }
.ca-box code { flex: 1; min-width: 0; font: 700 14px/1.3 var(--mono); overflow-wrap: anywhere; }
.ca-box--small { box-shadow: none; border-width: 3px; margin: 14px 0 0; max-width: 520px; }
.ca-box--small code { font-size: 12px; }

.steps { list-style: none; counter-reset: s; padding: 0; margin: 18px 0 20px; display: grid; gap: 10px; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 44px 1fr; column-gap: 12px; align-items: center; }
.steps li::before {
	content: counter(s); grid-row: span 2;
	width: 44px; height: 44px; display: grid; place-items: center;
	font: 400 22px/1 var(--display); padding-top: 4px;
	background: var(--green); border: 3px solid var(--ink); border-radius: 50%;
}
.steps b { font: 400 19px/1.1 var(--display); letter-spacing: .3px; }
.steps span { font-size: 15px; color: var(--muted); }

.articles { list-style: none; padding: 0; margin: 10px 0 0; display: grid; gap: 12px; }
.articles li { background: var(--paper); border: 3px solid var(--ink); border-radius: 16px; padding: 12px 16px; }
.art-no { font: 700 12px/1 var(--mono); text-transform: uppercase; letter-spacing: 1px; color: var(--purple-d); margin-right: 8px; }
.articles b { font: 400 19px/1.2 var(--display); }
.articles p { margin: 4px 0 0; font-size: 15px; }

/* passport teaser */
.pcta { display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(24px, 4vw, 56px); align-items: center; }
.pcta-img img {
	display: block; width: 100%;
	border-radius: 22px; border: var(--line);
	box-shadow: 10px 10px 0 var(--ink);
	transform: rotate(-3deg);
	transition: transform .3s cubic-bezier(.3, 1.6, .5, 1);
}
.pcta-img img:hover { transform: rotate(-1deg) scale(1.02); }
.panel .pcta { grid-template-columns: 1fr; }
.panel .pcta .lead { color: inherit; }

/* residents wall */
.wall { list-style: none; padding: 0; margin: 22px 0 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 18px 14px; }
.wall a { display: flex; flex-direction: column; align-items: center; gap: 6px; text-decoration: none; color: var(--ink); }
.wall img, .wall-ph {
	width: 80px; height: 80px; object-fit: cover;
	border: var(--line); border-radius: 50%; box-shadow: 3px 3px 0 var(--ink);
	background: var(--green); display: grid; place-items: center;
	font: 400 32px/1 var(--display);
	transition: transform .2s cubic-bezier(.3, 1.8, .5, 1);
}
.wall a:hover img, .wall a:hover .wall-ph { transform: translateY(-4px) rotate(-4deg); }
.wall-h { font: 700 12px/1.2 var(--mono); max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.empty { font: 400 22px/1.3 var(--comic); letter-spacing: .5px; }

/* moon */
.moon-bar { height: 34px; background: var(--white); border: var(--line); border-radius: 999px; overflow: hidden; box-shadow: var(--shadow-sm); margin: 6px 0 10px; }
.moon-bar span { display: block; height: 100%; background: repeating-linear-gradient(-45deg, var(--green) 0 16px, #3ff5ad 16px 32px); border-right: 4px solid var(--ink); transition: width 1.2s cubic-bezier(.3, 1.2, .5, 1); animation: stripes 1s linear infinite; }
.moon-meta { font: 400 18px/1.3 var(--comic); letter-spacing: .5px; }
.moon-meta b { font-family: var(--display); font-weight: 400; }

/* ==========================================================================
   Passport office pages
   ========================================================================== */
.office .section-plaza { background: none; padding: 10px 0 40px; }
.office { padding: clamp(36px, 6vw, 70px) 0 30px; background: radial-gradient(900px 380px at 50% 0, #e9dcff, transparent), var(--paper); }
.notice { background: var(--white); border: var(--line); border-radius: 16px; padding: 14px 18px; margin: 0 0 22px; font-weight: 600; box-shadow: var(--shadow-sm); }
.notice-error { background: #ffe1e5; }
.apply { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(24px, 4vw, 54px); align-items: center; margin-bottom: 60px; }
.apply-form .title { font-size: clamp(32px, 4.2vw, 50px); }
.apply-steps { list-style: none; padding: 0; margin: 6px 0 24px; display: grid; gap: 10px; }
.apply-steps li { display: flex; align-items: center; gap: 12px; font-weight: 600; }
.apply-steps span { flex: none; width: 34px; height: 34px; display: grid; place-items: center; font: 400 18px/1 var(--display); padding-top: 3px; background: var(--yellow); border: 3px solid var(--ink); border-radius: 50%; }
.apply-form .small { margin: 18px 0 0; }
.apply-preview { position: relative; padding-bottom: 60px; }
.apply-preview img { display: block; width: 100%; border: var(--line); border-radius: 20px; box-shadow: 10px 10px 0 var(--ink); transform: rotate(2.5deg); }
.apply-clerk { position: absolute; left: -10px; bottom: -10px; width: 120px; }
.apply-clerk .citizen-svg { animation: idle 2s ease-in-out infinite; }
.apply-clerk .bubble { left: 110%; bottom: 60%; transform: none; }
.apply-clerk .bubble::after { left: -1px; top: 60%; transform: rotate(135deg); }

.issued { text-align: center; position: relative; margin-bottom: 60px; }
.issued .lead { margin-left: auto; margin-right: auto; }
.passport-figure { margin: 26px auto 26px; max-width: 900px; }
.passport-figure img { display: block; width: 100%; border: var(--line); border-radius: 22px; box-shadow: 12px 12px 0 var(--ink); }
.is-new .passport-figure img { animation: stamp-in .9s cubic-bezier(.2, 1.4, .4, 1) both; }
.office-tools { display: flex; justify-content: center; gap: 22px; flex-wrap: wrap; margin-top: 22px; font-size: 14px; }
.office-tools form { margin: 0; }
.confetti { position: fixed; inset: 0; pointer-events: none; z-index: 60; overflow: hidden; }
.confetti i { position: absolute; top: -20px; width: 12px; height: 18px; border: 2px solid var(--ink); border-radius: 3px; animation: fall linear forwards; }
.public-passport .title { font-size: clamp(30px, 4.6vw, 54px); }

/* generic pages */
.content-page { padding: 56px 0 80px; }
.entry { margin-bottom: 24px; }
.entry-content > * { max-width: 70ch; }
.lost { text-align: center; }
.lost-guy { width: 140px; margin: 0 auto 10px; animation: idle 1.6s ease-in-out infinite; }

/* footer */
.site-footer { background: var(--ink); color: #d9d0e6; padding: 46px 0 26px; }
.footer-grid { display: flex; justify-content: space-between; gap: 30px; flex-wrap: wrap; }
.footer-brand { font: 400 34px/1 var(--display); color: var(--white); margin: 0 0 6px; text-shadow: 3px 3px 0 var(--purple); }
.site-footer .muted { color: #a99cbb; margin: 0; }
.site-footer .ca-box { background: #2a2236; border-color: #5b4f6e; color: var(--white); }
.site-footer .ca-box .btn { box-shadow: none; }
.footer-links { display: flex; flex-wrap: wrap; gap: 10px 22px; align-content: flex-start; max-width: 520px; }
.footer-links a { color: var(--white); font: 400 20px/1 var(--comic); letter-spacing: 1px; text-decoration: none; }
.footer-links a:hover { color: var(--green); }
.disclaimer { font-size: 13px; color: #8f82a3; margin-top: 30px; padding-top: 18px; border-top: 1px solid #3a3048; }

.toast {
	position: fixed; left: 50%; bottom: 24px; z-index: 80;
	transform: translate(-50%, calc(100% + 40px));
	opacity: 0; visibility: hidden;
	font: 400 18px/1 var(--display);
	padding: 14px 20px 10px;
	background: var(--green); border: var(--line); border-radius: 999px; box-shadow: var(--shadow-sm);
	transition: transform .3s cubic-bezier(.3, 1.6, .5, 1);
	pointer-events: none;
}
.toast.show { transform: translate(-50%, 0); opacity: 1; visibility: visible; }

/* ==========================================================================
   Animations
   ========================================================================== */
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes drift { from { transform: translateX(0); } to { transform: translateX(140vw); } }
@keyframes fly { from { transform: translateX(0); } to { transform: translateX(calc(100vw + 400px)); } }
@keyframes fly-back { from { transform: translateX(calc(100vw + 400px)) scaleX(-1); } to { transform: translateX(0) scaleX(-1); } }
@keyframes hover { from { transform: translateY(-4px); } to { transform: translateY(4px); } }
@keyframes rain { to { background-position: -60px 260px; } }
@keyframes flash { 0%, 92%, 96%, 100% { opacity: 0; } 93%, 95% { opacity: .55; } }
@keyframes blink { 50% { opacity: .25; } }
@keyframes wave { from { transform: skewY(-3deg); } to { transform: skewY(3deg) scaleX(.96); } }
@keyframes marquee { to { transform: translateX(-100%); } }
@keyframes nudge { 50% { transform: translate(-50%, -4px) scale(1); } }
@keyframes idle { 0%, 100% { transform: scaleY(1); } 50% { transform: scaleY(.97) scaleX(1.02); } }
@keyframes bob { from { transform: translateY(0) rotate(-2deg); } to { transform: translateY(-6px) rotate(2deg); } }
@keyframes step { from { transform: translateY(0) rotate(-14deg); } to { transform: translateY(-4px) rotate(14deg); } }
@keyframes pop { from { transform: translateX(-50%) scale(.4); opacity: 0; } }
@keyframes panel-in { from { transform: scale(.85) translateY(30px); opacity: 0; } }
@keyframes flash-val { 30% { color: var(--purple); transform: scale(1.06); } }
@keyframes flicker { from { transform: scaleY(.8); } to { transform: scaleY(1.25); } }
@keyframes launch { 0% { transform: translateY(0); } 15% { transform: translateY(6px); } 100% { transform: translateY(-1400px); } }
@keyframes shake { 50% { transform: translateX(2px); } }
@keyframes stripes { to { background-position: 45px 0; } }
@keyframes stamp-in { 0% { transform: scale(1.6) rotate(-8deg); opacity: 0; } 60% { transform: scale(.97) rotate(1deg); opacity: 1; } 100% { transform: none; } }
@keyframes fall { to { transform: translateY(110vh) rotate(720deg); } }


/* ---------- Hero identity (Republic of Solami) ---------- */
.hero-id {
	position: absolute; z-index: 3; left: clamp(16px, 4vw, 64px); top: clamp(18px, 5vh, 54px);
	display: grid; justify-items: start; gap: 10px; pointer-events: none;
	transition: opacity .45s, transform .45s;
}
.hero-id a { pointer-events: auto; }
.hero-rep {
	margin: 0; font: 400 calc(26px * var(--s))/1 var(--hand); color: var(--ros-ink); letter-spacing: .5px; text-transform: uppercase;
	background: var(--ros-cream); border: 3px solid var(--ros-ink); border-radius: 7px; padding: .3em .55em .15em;
	transform: rotate(-3deg); box-shadow: 4px 5px 0 rgba(20, 10, 58, .45);
}
.hero-title {
	margin: 0; font: 400 calc(84px * var(--s))/.95 var(--display); color: var(--white); letter-spacing: 1px;
	text-shadow: 4px 0 var(--ros-ink), -4px 0 var(--ros-ink), 0 4px var(--ros-ink), 0 -4px var(--ros-ink),
		3px 3px var(--ros-ink), -3px -3px var(--ros-ink), 3px -3px var(--ros-ink), -3px 3px var(--ros-ink), 7px 8px var(--ros-ink);
}
.hero-tags { margin: 2px 0 0; display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.hero-solamia, .hero-nat { border: 3px solid var(--ros-ink); border-radius: 999px; box-shadow: 3px 3px 0 var(--ros-ink); }
.hero-solamia { font: 400 calc(26px * var(--s))/1 var(--display); background: var(--yellow); color: var(--ros-ink); padding: .32em .6em .12em; transform: rotate(-2deg); }
.hero-nat { font: 400 calc(21px * var(--s))/1 var(--hand); background: var(--ros-pink); color: var(--white); padding: .3em .7em .15em; transform: rotate(2deg); }
.hero-burn { display: inline-flex; align-items: center; gap: 10px; margin-top: 6px; padding: 7px 14px 6px 10px; text-decoration: none;
	background: linear-gradient(90deg, #ff9f43, #ff4fc8); color: #2a0f1e; border: 3px solid var(--ros-ink); border-radius: 999px; box-shadow: 4px 4px 0 var(--ros-ink); transform: rotate(-1deg); transition: transform .15s; }
.hero-burn:hover { transform: rotate(-1deg) translate(-1px, -1px); color: #2a0f1e; }
.hero-burn-flame { font-size: 26px; animation: flicker 1.4s infinite alternate; }
@keyframes flicker { from { transform: scale(1) rotate(-4deg); } to { transform: scale(1.12) rotate(5deg); } }
.hero-burn-txt { display: grid; line-height: 1.05; }
.hero-burn-txt small { font: 700 10px/1.2 var(--mono); text-transform: uppercase; letter-spacing: 1px; }
.hero-burn-txt b { font: 400 22px/1 var(--display); }
.hero-burn-txt em { font: 400 14px/1.1 var(--hand); font-style: normal; opacity: .85; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
.hero-cta .btn { border-color: var(--ros-ink); box-shadow: 4px 4px 0 var(--ros-ink); }
.hero-play { background: var(--ros-cream); }
.hero-bar { background: var(--ros-pink); color: #fff; }
.hero-bar:hover { color: #fff; }
.bar-admin-note { margin-top: 10px; background: #fff4c2; border: 3px dashed #e0a800; border-radius: 12px; padding: 10px 12px; font-size: 14px; display: grid; gap: 6px; justify-items: start; }
.bar-admin-note ul { margin: 0; padding-left: 18px; }

.hero-passport {
	position: absolute; z-index: 2; left: clamp(745px, 53vw, 880px); top: clamp(40px, 9vh, 96px);
	width: clamp(260px, 22vw, 360px); display: block; transform: rotate(4deg);
	filter: drop-shadow(0 10px 0 rgba(20, 10, 58, .25));
	animation: hero-float 5s ease-in-out infinite alternate;
	transition: opacity .45s, filter .2s;
}
.hero-passport img { display: block; width: 100%; height: auto; }
.hero-passport:hover { filter: drop-shadow(0 14px 0 rgba(20, 10, 58, .3)) brightness(1.04); }
.hero-stamp {
	position: absolute; right: -5%; bottom: -16%; width: 30%; aspect-ratio: 1; border-radius: 50%;
	display: grid; place-content: center; text-align: center; gap: 3px;
	background: var(--ros-cream); border: 5px double var(--ros-pink); color: var(--ros-pink);
	box-shadow: 3px 4px 0 rgba(20, 10, 58, .35);
	transform: rotate(-16deg); animation: hero-stamp .5s cubic-bezier(.2, 1.6, .4, 1) .7s both;
}
.hero-stamp b { font: 400 clamp(16px, 1.6vw, 24px)/1 var(--hand); letter-spacing: 1px; text-transform: uppercase; }
.hero-stamp small { font: 400 clamp(9px, .75vw, 11px)/1.1 var(--hand); text-transform: uppercase; letter-spacing: .5px; padding: 0 8px; }
@keyframes hero-float { from { transform: rotate(4deg) translateY(0); } to { transform: rotate(2deg) translateY(-10px); } }
@keyframes hero-stamp { from { opacity: 0; transform: rotate(-16deg) scale(2.2); } to { opacity: 1; transform: rotate(-16deg) scale(1); } }

/* Walk away from the start, or start a run → the title steps aside. */
.city.cam-away .hero-id, .city.cam-away .hero-passport, .rush-on .hero-id, .rush-on .hero-passport {
	opacity: 0; pointer-events: none;
}
.city.cam-away .hero-id a, .city.cam-away .hero-passport { pointer-events: none; visibility: hidden; transition: opacity .45s, visibility 0s .45s; }

@media (max-height: 760px) and (min-width: 721px) {
	.hero-passport { width: clamp(240px, 22vw, 320px); }
	.hero-title { font-size: calc(68px * var(--s)); }
}
@media (max-width: 1100px) and (min-width: 721px) {
	.hero-passport { left: auto; right: 4vw; top: auto; bottom: calc(var(--ground) + 330px * var(--s)); width: 240px; }
}
@media (max-width: 720px) {
	.hero-id { gap: 7px; top: 16px; left: 14px; }
	.hero-rep { font-size: 16px; border-width: 2.5px; }
	.hero-title { font-size: 44px; text-shadow: 3px 0 var(--ros-ink), -3px 0 var(--ros-ink), 0 3px var(--ros-ink), 0 -3px var(--ros-ink), 2px 2px var(--ros-ink), -2px -2px var(--ros-ink), 2px -2px var(--ros-ink), -2px 2px var(--ros-ink), 4px 5px var(--ros-ink); }
	.hero-solamia { font-size: 17px; border-width: 2.5px; }
	.hero-nat { font-size: 15px; border-width: 2.5px; }
	.hero-cta { margin-top: 4px; gap: 8px; }
	.hero-burn { padding: 5px 10px 4px 8px; gap: 7px; }
	.hero-burn-flame { font-size: 20px; }
	.hero-burn-txt b { font-size: 17px; }
	.hero-cta .btn { font-size: 15px; padding: 9px 13px 7px; border-width: 3px; box-shadow: 3px 3px 0 var(--ros-ink); }
	.hero-passport { display: none; }
	.city .sun { top: 12px; right: 8px; width: 74px; }
	.cloud.c1, .cloud.c3 { display: none; }
	.cloud.c2 { top: 34%; }
}


/* ---------- Solami Rush: passport control, challenges, hero board ---------- */
.deli-pass { background: var(--ros-page); border: var(--line); border-color: var(--ros-ink); border-radius: 18px; padding: 14px 16px 16px; display: grid; gap: 10px;
	background-image: repeating-linear-gradient(170deg, rgba(255,255,255,.12) 0 2px, transparent 2px 22px); }
.deli-pass-title { margin: 0; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; }
.deli-pass-title span { font: 400 20px/1 var(--hand); text-transform: uppercase; letter-spacing: .5px; color: var(--ros-ink); background: var(--ros-cream); border: 3px solid var(--ros-ink); border-radius: 6px; padding: 4px 10px 1px; transform: rotate(-2deg); }
.deli-pass-title small { font: 400 17px/1.2 var(--hand); color: var(--ros-ink); }
.deli-pass-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
.deli-pp { position: relative; display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 8px 10px; cursor: pointer;
	background: var(--ros-panel); border: 3px solid var(--ros-ink); border-radius: 14px; box-shadow: 3px 3px 0 var(--ros-ink); transition: transform .12s, background .12s; }
.deli-pp:hover { transform: translate(-1px, -1px); }
.deli-pp input { position: absolute; opacity: 0; pointer-events: none; }
.deli-pp img, .deli-pp-av { width: 44px; height: 44px; border-radius: 10px; border: 3px solid var(--ros-ink); object-fit: cover; background: var(--ros-cream); display: grid; place-items: center; font: 400 18px/1 var(--display); }
.deli-pp-txt { min-width: 0; display: grid; }
.deli-pp-txt b { font: 400 20px/1.05 var(--hand); color: var(--ros-ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.deli-pp-txt small { font: 700 11px/1.2 var(--mono); color: var(--ros-ink); opacity: .75; }
.deli-pp-ok { font: 400 14px/1 var(--hand); text-transform: uppercase; color: var(--ros-pink); border: 3px double var(--ros-pink); border-radius: 999px; padding: 5px 8px 3px; transform: rotate(-10deg); opacity: 0; transition: opacity .15s; background: rgba(255,255,255,.7); }
.deli-pp:has(input:checked) { background: var(--ros-cream); }
.deli-pp:has(input:checked) .deli-pp-ok { opacity: 1; }
.deli-pp:has(input:focus-visible) { outline: 3px solid var(--ros-pink); outline-offset: 2px; }
.deli-paid-note { flex-basis: 100%; margin: 4px 0 0; color: var(--muted); }
.deli-paid-note a { color: var(--ink); font-weight: 800; }
.deli-board--daily .deli-board-head { background: linear-gradient(90deg, #0a9e5f, #14f195); color: var(--ink); }
.deli-board--daily .deli-board-head h3 { color: var(--ink); }
.deli-board--daily .deli-board-head span { color: #0d2b22; }
.rush-board .rush-share { font: 700 11px/1 var(--mono); background: var(--yellow); border: 2px solid var(--ink); border-radius: 999px; padding: 3px 7px; }
.rush-board li:has(.rush-share) { grid-template-columns: 30px 40px minmax(0, 1fr) auto auto; }
.deli-nopass { display: grid; gap: 12px; justify-items: start; }
.deli-nopass[hidden], .deli-pass-list[hidden], .deli-play[hidden] { display: none; }
.deli-nopass p { margin: 0; font-size: 16px; color: var(--ros-ink); }
.deli-vs { display: grid; grid-template-columns: 52px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 10px 12px; border: var(--line); border-radius: 16px; background: var(--yellow); box-shadow: var(--shadow-sm); }
.deli-vs[hidden] { display: none; }
.deli-vs img, .deli-vs-av { width: 52px; height: 52px; border-radius: 50%; border: 3px solid var(--ink); object-fit: cover; background: var(--green); display: grid; place-items: center; font: 400 22px/1 var(--display); }
.deli-vs p { margin: 0; display: grid; min-width: 0; }
.deli-vs small { font: 700 11px/1 var(--mono); text-transform: uppercase; letter-spacing: 1px; }
.deli-vs b { font: 400 22px/1.1 var(--display); overflow: hidden; text-overflow: ellipsis; }
.deli-vs span { font: 700 12px/1.2 var(--mono); }
.deli-vs-x { border: 3px solid var(--ink); background: #fff; border-radius: 50%; width: 34px; height: 34px; font-weight: 800; cursor: pointer; }
.office-next { text-align: center; margin: 14px 0 0; }

.hero-board {
	position: absolute; z-index: 3; right: clamp(14px, 2vw, 32px); top: clamp(92px, 13vh, 118px); width: 292px;
	background: var(--ros-cream); border: 4px solid var(--ros-ink); border-radius: 18px; box-shadow: 6px 7px 0 rgba(20, 10, 58, .45);
	overflow: hidden; transform: rotate(1.5deg); transition: opacity .45s;
}
.hb-head { background: var(--ros-ink); color: #fff; padding: 9px 14px 7px; display: grid; gap: 2px; }
.hb-head b { font: 400 22px/1 var(--display); color: var(--yellow); letter-spacing: .5px; }
.hb-head span { font: 700 10px/1.2 var(--mono); text-transform: uppercase; letter-spacing: 1px; color: #cfd3ff; }
.hero-board .rush-board li { grid-template-columns: 22px 30px minmax(0, 1fr) auto; gap: 8px; padding: 6px 12px; border-bottom-color: #e9e2cc; }
.hero-board .rush-board .rank { font-size: 17px; }
.hero-board .rush-board .av { width: 30px; height: 30px; border-width: 2.5px; font-size: 14px; }
.hero-board .rush-board .who b { font: 400 18px/1.05 var(--hand); }
.hero-board .rush-board .who span { font-size: 10px; }
.hero-board .rush-board .score { font-size: 16px; }
.hero-board .rush-empty { padding: 14px; font: 400 18px/1.2 var(--hand); }
/* tabs: Free / Qualified */
.hb-tabs { display: grid; grid-template-columns: 1fr 1fr; margin: -9px -14px -7px; }
.hb-tab { appearance: none; border: 0; background: transparent; color: #cfd3ff; padding: 8px 10px 7px; text-align: left; cursor: pointer; display: grid; gap: 2px; border-bottom: 3px solid transparent; font-family: inherit; }
.hb-tab + .hb-tab { border-left: 2px solid rgba(255,255,255,.12); }
.hb-tab b { font: 400 19px/1 var(--display); color: #cfd3ff; letter-spacing: .4px; }
.hb-tab span { font: 700 9.5px/1.2 var(--mono); text-transform: uppercase; letter-spacing: .8px; }
.hb-tab span em { font-style: normal; text-transform: none; letter-spacing: 0; }
.hb-tab.is-on { background: rgba(255,255,255,.07); border-bottom-color: var(--yellow); }
.hb-tab.is-on b { color: var(--yellow); }
.hb-tab:hover b { color: #fff; }
.hb-pool { margin: 0; padding: 7px 12px 6px; font: 700 10px/1.3 var(--mono); text-transform: uppercase; letter-spacing: .5px; color: var(--ros-ink); background: #fff4c2; border-bottom: 2px solid #e9e2cc; display: flex; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.hb-pool b { color: #b3261e; }
.hero-board .rush-board .rush-share { font-size: 9.5px; padding: 2px 5px; }
.hero-board .rush-board li:has(.rush-share) { grid-template-columns: 22px 30px minmax(0, 1fr) auto auto; }
.hb-actions { display: flex; gap: 8px; padding: 10px 12px 12px; border-top: 3px solid var(--ros-ink); background: var(--ros-panel); }
.hb-actions .btn { flex: 1; justify-content: center; text-align: center; border-color: var(--ros-ink); box-shadow: 3px 3px 0 var(--ros-ink); padding-left: 8px; padding-right: 8px; }
.hero-champ { display: none; }
.only-phone { display: none; }
.city.cam-away .hero-board, .rush-on .hero-board { opacity: 0; pointer-events: none; visibility: hidden; transition: opacity .45s, visibility 0s .45s; }

@media (min-width: 721px) {
	.city .sun { top: 2%; right: 1.5%; width: calc(120px * var(--s)); }
}
@media (max-height: 760px) and (min-width: 721px) {
	.hero-board .rush-board li:nth-child(n+4) { display: none; }
}
@media (max-width: 1400px) and (min-width: 721px) {
	.hero-passport { display: none; } /* three hero buttons + the Forbes board need the room */
}
@media (max-width: 720px) {
	.hero-board { display: none; }
	/* compact hero on phones: smaller type, four short buttons, the #1 pill flows right under them */
	.hero-id { gap: 6px; top: 12px; max-width: calc(100vw - 28px); }
	.hero-title { font-size: min(calc(84px * var(--s)), 12.5vw); }
	.hero-burn { padding: 4px 11px 3px 8px; gap: 7px; margin-top: 0; }
	.hero-burn-flame { font-size: 19px; } .hero-burn-txt b { font-size: 17px; } .hero-burn-txt em { font-size: 12px; } .hero-burn-txt small { font-size: 8.5px; }
	.hero-cta { gap: 7px; margin-top: 2px; }
	.hero-cta .btn { padding: 8px 11px 7px; font-size: 14.5px; box-shadow: 3px 3px 0 var(--ros-ink); }
	.hide-phone { display: none; } .only-phone { display: inline; }
	.hero-champ {
		position: static; width: 100%; max-width: 420px; display: flex; align-items: baseline; flex-wrap: nowrap; gap: 8px; margin-top: 0; pointer-events: auto;
		background: var(--ros-cream); color: var(--ros-ink); border: 3px solid var(--ros-ink); border-radius: 14px; padding: 7px 12px 5px;
		box-shadow: 3px 3px 0 var(--ros-ink); text-decoration: none; font: 400 16px/1.1 var(--hand); transition: opacity .45s; padding: 5px 11px 4px;
	}
	.hero-champ b { font-weight: 400; min-width: 0; flex: 0 1 auto; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
	.hero-champ em { font: 400 17px/1 var(--display); font-style: normal; }
	.hero-champ-go { margin-left: auto; color: var(--ros-pink); white-space: nowrap; }
	.hero-champ span, .hero-champ em { white-space: nowrap; }
	.deli-pass-list { grid-template-columns: 1fr; }
	.deli-vs { grid-template-columns: 40px minmax(0, 1fr) auto; gap: 10px; padding: 9px 10px; }
	.deli-vs img, .deli-vs-av { width: 40px; height: 40px; }
	.deli-vs b { font-size: 17px; overflow-wrap: anywhere; }
	.deli-pp { grid-template-columns: 40px minmax(0, 1fr) auto; gap: 8px; }
	.deli-pp img, .deli-pp-av { width: 40px; height: 40px; }
	.deli-pp-txt small { white-space: nowrap; font-size: 10px; }
	.deli-pp-ok { font-size: 12px; padding: 4px 6px 2px; }
	.deli-play .btn { flex: 1 1 auto; justify-content: center; }
}


/* ==========================================================================
   THE BURN BAR
   ========================================================================== */
.bar-page { background: radial-gradient(120% 80% at 50% 0%, #4b2cb8 0%, #2a1670 55%, #1d0b3f 100%); color: #fff; padding-bottom: 60px; }
.bar-top { padding: clamp(26px, 4vw, 48px) 0 10px; }
.bar-top-in { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 22px; }
.bar-title { display: grid; justify-items: start; gap: 8px; }
.bar-rep { margin: 0; font: 400 20px/1 var(--hand); text-transform: uppercase; color: var(--ros-ink); background: var(--ros-cream); border: 3px solid var(--ros-ink); border-radius: 6px; padding: 5px 10px 2px; transform: rotate(-2deg); }
.bar-neon { margin: 0; font: 400 clamp(46px, 7vw, 84px)/.95 var(--display); color: #ffe3f6; letter-spacing: 2px;
	text-shadow: 0 0 6px #ff4fc8, 0 0 18px #ff4fc8, 0 0 38px rgba(255,79,200,.7), 4px 5px 0 var(--ros-ink); animation: neon 6s infinite; }
@keyframes neon { 0%, 92%, 100% { opacity: 1; } 93% { opacity: .55; } 94% { opacity: 1; } 96% { opacity: .7; } }
.bar-sub { margin: 0; max-width: 46ch; font-size: 17px; color: #e7e2ff; }
.bar-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.bar-stat { background: rgba(255,255,255,.08); border: 3px solid #ffffff33; border-radius: 16px; padding: 10px 14px; display: grid; gap: 4px; min-width: 120px; }
.bar-stat span { font: 700 10px/1.2 var(--mono); text-transform: uppercase; letter-spacing: 1px; color: #cfc4ff; }
.bar-stat b { font: 400 26px/1 var(--display); color: #fff; }
.bar-stat--fire { background: linear-gradient(135deg, #ff9f43, #ff4fc8); border-color: var(--ros-ink); box-shadow: 4px 4px 0 var(--ros-ink); }
.bar-stat--fire span { color: #3a1020; }
.bar-ca { margin: 16px 0 0; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; font-size: 14px; color: #cfc4ff; }
.bar-ca code { background: #1a1423; color: var(--green); padding: 5px 9px; border-radius: 8px; font-size: 13px; overflow-wrap: anywhere; }
.bar-ca .btn { color: var(--ink); }

.bar-grid { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(300px, 1fr); gap: 22px; margin-top: 22px; align-items: start; }
.bar-chat { background: var(--ros-cream); color: var(--ros-ink); border: 4px solid var(--ros-ink); border-radius: 22px; box-shadow: 7px 8px 0 rgba(10,4,30,.6); display: grid; grid-template-rows: auto minmax(0, 1fr) auto; height: min(74vh, 720px); min-height: 460px; overflow: hidden; }
.bar-chat-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 12px 16px; background: var(--ros-ink); color: #fff; flex-wrap: wrap; }
.bar-chat-head h2 { margin: 0; font: 400 22px/1 var(--display); color: var(--yellow); }
.bar-as { display: flex; align-items: center; gap: 8px; font: 700 11px/1 var(--mono); text-transform: uppercase; letter-spacing: 1px; }
.bar-as[hidden] { display: none; }
.bar-as select { font: 400 16px/1.2 var(--hand); padding: 6px 10px; border-radius: 10px; border: 2px solid #fff; background: var(--ros-cream); color: var(--ros-ink); max-width: 220px; }
.bar-feed { list-style: none; margin: 0; padding: 12px 14px; overflow-y: auto; display: grid; align-content: start; gap: 8px; overscroll-behavior: contain;
	background: repeating-linear-gradient(180deg, transparent 0 31px, rgba(27,29,92,.06) 31px 32px); }
.bar-loading { font: 400 19px/1.3 var(--hand); color: #6b6a99; padding: 20px 4px; }
.bar-msg { position: relative; }
.bar-msg p { margin: 0; overflow-wrap: anywhere; }
.bar-msg--msg { background: #fff; border: 2.5px solid var(--ros-ink); border-radius: 14px; padding: 8px 12px 9px; box-shadow: 2px 3px 0 rgba(27,29,92,.18); }
.bar-msg--msg p { font-size: 16px; line-height: 1.4; margin-top: 4px; }
.bar-msg--order, .bar-msg--tip { text-align: center; font: 400 18px/1.25 var(--hand); color: #5a2a8a; padding: 4px 10px; }
.bar-msg--order p, .bar-msg--tip p { display: inline-block; background: #ffe9f7; border: 2px dashed #ff4fc8; border-radius: 12px; padding: 5px 12px 3px; }
.bar-msg--tip p { background: #fff4c2; border-color: #e0a800; }
.bar-msg.is-hidden { opacity: .4; }
.bar-msg.is-hidden::after { content: "hidden"; position: absolute; right: 10px; bottom: 4px; font: 700 10px/1 var(--mono); text-transform: uppercase; color: var(--red); }
.bar-who { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; }
.bar-who img, .bar-av { width: 30px; height: 30px; border-radius: 50%; border: 2.5px solid var(--ros-ink); object-fit: cover; flex: none; display: grid; place-items: center; background: var(--ros-panel); font: 400 14px/1 var(--display); padding-top: 1px; }
.bar-name { font: 400 19px/1 var(--hand); color: var(--ros-ink); background: none; border: 0; padding: 0; cursor: pointer; text-decoration: underline dotted 2px; text-underline-offset: 3px; }
.bar-name:disabled { cursor: default; text-decoration: none; }
.bar-holder { font: 700 11px/1 var(--mono); background: #ffc82e; border: 2px solid var(--ros-ink); border-radius: 999px; padding: 2px 6px; }
.bar-badge { font-size: 16px; }
.bar-who time { font: 700 11px/1 var(--mono); color: #8a87b5; margin-left: 2px; }
.bar-tools { margin-left: auto; display: inline-flex; gap: 6px; }
.bar-tools button { font: 700 11px/1 var(--mono); background: #fff; border: 2px solid var(--ros-ink); border-radius: 8px; padding: 4px 7px; cursor: pointer; color: var(--ros-ink); }
.bar-msg--msg .bar-tools button[data-bar-report] { border-color: transparent; color: #b5b2d6; font-size: 14px; padding: 2px 4px; }
.bar-msg--msg .bar-tools button[data-bar-report]:hover { color: var(--red); }
.bar-msg--order .bar-tools, .bar-msg--tip .bar-tools { position: absolute; right: 6px; top: 4px; }
.bar-compose { border-top: 3px solid var(--ros-ink); padding: 10px 12px 12px; background: var(--ros-panel); display: grid; gap: 8px; }
.bar-form { display: flex; gap: 8px; min-width: 0; }
.bar-form .btn { flex: none; }
.bar-chat, .bar-side, .bar-card { min-width: 0; }
.bar-form input { flex: 1; min-width: 0; font: 400 16px/1.3 var(--body); padding: 11px 14px; border: 3px solid var(--ros-ink); border-radius: 14px; background: #fff; color: var(--ink); }
.bar-form input:disabled { background: #e9e6ff; }
.bar-hint { margin: 0; font-size: 14px; }
.bar-hint[hidden] { display: none; }
.bar-hint a { color: var(--ros-ink); font-weight: 800; }
.bar-gate { display: grid; gap: 10px; justify-items: start; }
.bar-gate p { margin: 0; }

.bar-side { display: grid; gap: 16px; }
.bar-card { background: var(--ros-cream); color: var(--ros-ink); border: 4px solid var(--ros-ink); border-radius: 20px; padding: 14px 16px 16px; box-shadow: 6px 7px 0 rgba(10,4,30,.6); }
.bar-card h3 { margin: 0 0 10px; font: 400 24px/1 var(--display); }
.bar-card p { margin: 8px 0 0; }
.bar-card a { color: var(--ros-ink); }
.bar-wline { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 0 !important; }
.bar-wline code { background: var(--ros-ink); color: #fff; padding: 4px 8px; border-radius: 8px; }
.bar-seal { font: 400 15px/1 var(--hand); background: #ffc82e; border: 2.5px solid var(--ros-ink); border-radius: 999px; padding: 4px 10px 2px; }
.bar-seal--no { background: #e9e6ff; }
.bar-wbtn img { width: 18px; height: 18px; border-radius: 4px; margin-right: 6px; vertical-align: -3px; }
.deli-pp-wait { margin: 0; font: 400 18px/1.2 var(--hand); }
.bar-wbtns { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.bar-wait { font: 400 18px/1.3 var(--hand); }
.bar-deeplinks { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
.bar-drinks { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.bar-drink, .bar-tip { display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 7px 8px; border-radius: 12px; }
.bar-drink:hover { background: #fff; }
.bar-drink--round { background: #fff4c2; border: 2px dashed #e0a800; }
.bar-drink-emo { font-size: 26px; text-align: center; }
.bar-drink-txt { display: grid; min-width: 0; }
.bar-drink-txt b, .bar-tip b { font: 400 19px/1.1 var(--hand); }
.bar-drink-txt small, .bar-tip small { font-size: 13px; color: #5d5b8c; line-height: 1.25; }
.bar-drink .btn { min-width: 64px; justify-content: center; }
.bar-tip { grid-template-columns: 34px minmax(0, 1fr) auto auto; margin-top: 8px; border-top: 2px dashed #c9c4ee; padding-top: 12px; border-radius: 0; }
.bar-tip label { display: grid; }
.bar-tip-in { display: inline-flex; align-items: center; gap: 2px; font: 400 18px/1 var(--display); }
.bar-tip-in input { width: 64px; font: 700 15px/1 var(--body); padding: 7px 6px; border: 2.5px solid var(--ros-ink); border-radius: 10px; }
.bar-for { display: flex; justify-content: space-between; align-items: center; gap: 8px; background: var(--ros-pink); color: #fff; border: 3px solid var(--ros-ink); border-radius: 12px; padding: 8px 12px; margin-bottom: 10px; font: 400 18px/1.2 var(--hand); }
.bar-for[hidden] { display: none; }
.bar-for .linklike { color: #fff; }
.bar-soon { background: #e9e6ff; border-radius: 10px; padding: 8px 10px; }
.bar-split { display: flex; border: 3px solid var(--ros-ink); border-radius: 12px; overflow: hidden; font: 400 16px/1 var(--hand); }
.bar-split .b { flex: 9; background: linear-gradient(90deg, #ff9f43, #ff4fc8); padding: 9px 10px 6px; color: #2a0f1e; }
.bar-split .t { flex: 1.6; background: var(--ros-panel); padding: 9px 6px 6px; text-align: center; border-left: 3px solid var(--ros-ink); }

.bar-pay { border: 4px solid var(--ros-ink); border-radius: 22px; padding: 0; width: min(460px, calc(100vw - 32px)); background: var(--ros-cream); color: var(--ros-ink); box-shadow: 8px 9px 0 rgba(10,4,30,.6); }
.bar-pay::backdrop { background: rgba(20, 8, 50, .65); }
.bar-pay-in { padding: 26px 22px 22px; display: grid; gap: 10px; position: relative; }
.bar-pay .title { margin: 0; font-size: 30px; }
.bar-pay-sum { margin: 0; font-size: 17px; }
.bar-pay-sum span { font-size: 14px; color: #5d5b8c; }
.bar-steps { list-style: none; margin: 4px 0; padding: 0; display: grid; gap: 6px; counter-reset: st; }
.bar-steps li { counter-increment: st; display: flex; align-items: center; gap: 10px; font: 400 19px/1.2 var(--hand); color: #8a87b5; }
.bar-steps li::before { content: counter(st); width: 26px; height: 26px; border-radius: 50%; border: 2.5px solid currentColor; display: grid; place-items: center; font: 700 12px/1 var(--mono); flex: none; }
.bar-steps li.on { color: var(--ros-ink); }
.bar-steps li.on::before { content: "…"; background: var(--yellow); animation: spin-dot 1s infinite; }
.bar-steps li.ok { color: var(--ros-ink); }
.bar-steps li.ok::before { content: "✓"; background: var(--green); }
.bar-steps li.no { color: var(--red); }
.bar-steps li.no::before { content: "✕"; background: #ffd1d6; }
@keyframes spin-dot { 50% { transform: scale(1.15); } }
.bar-pay-msg { margin: 0; font-size: 15px; }
.bar-pay-tx { margin: 0; font: 700 13px/1 var(--mono); }

/* City panel teaser */
.bar-teaser { display: grid; gap: 14px; justify-items: start; }
.bar-teaser-stats { display: flex; gap: 10px; flex-wrap: wrap; }
.bar-teaser-stats span { background: var(--ros-ink); color: #fff; border-radius: 999px; padding: 7px 14px 5px; font: 400 18px/1 var(--hand); }
.bar-teaser-stats b { font-family: var(--display); font-weight: 400; color: var(--yellow); }
.bar-teaser-menu { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 18px; width: 100%; }
.bar-teaser-menu li { font: 400 19px/1.2 var(--hand); display: flex; gap: 8px; align-items: baseline; }
.bar-teaser-menu em { margin-left: auto; font-style: normal; font: 400 15px/1 var(--display); }

@media (max-width: 960px) {
	.bar-grid { grid-template-columns: minmax(0, 1fr); }
	.bar-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); width: 100%; }
	.bar-chat { height: 68vh; }
}
@media (max-width: 520px) {
	.bar-teaser-menu { grid-template-columns: 1fr; }
	.bar-stat b { font-size: 21px; }
	.bar-chat { border-radius: 16px; min-height: 420px; }
	.bar-tip { grid-template-columns: 30px minmax(0, 1fr) auto; }
	.bar-tip .btn { grid-column: 1 / -1; }
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1000px) {
	.stats, .economy--compact .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.split, .pcta, .apply { grid-template-columns: 1fr; }
	.hud-nav a:not(.btn) { display: none; }
}
@media (max-width: 720px) {
	:root { --hud-h: 104px; }
	.hud { flex-wrap: wrap; height: auto; min-height: var(--hud-h); padding: 8px 12px; gap: 6px 10px; }
	.brand-sun { width: 36px; height: 36px; }
	.brand-word { font-size: 24px; }
	.hud-nav { margin-left: auto; }
	.hud-stats { order: 3; width: 100%; margin: 0; }
	.chip { padding: 5px 9px 4px; }
	.chip b { font-size: 13px; }
	.city { --s: .78; --ground: 150px; --side: 40px; height: min(calc(100svh - var(--hud-h)), 640px); min-height: 520px; }
	.t-desk { display: none; }
	.t-mob { display: inline; }
	.minimap { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; height: auto; bottom: 10px; left: 10px; right: 10px; }
	.minimap::before, .minimap .mm-you { display: none; }
	.minimap button { position: static; transform: none; font-size: 12px; padding: 7px 10px 5px; }
	.minimap button:hover, .minimap button.is-here { transform: none; }
	.stat { padding: 14px 14px 12px; }
	.stat-ico { width: 28px; height: 28px; right: 10px; top: 10px; }
	.stat-label { font-size: 18px; padding-right: 30px; }
	.stat-value--long { font-size: 19px; }
	.hint { display: none; }
	.pad { display: flex; bottom: 52px; }
	.scroll-cue { display: none; }
	.panel-inner { padding: 28px 18px 22px; }
	.stat--hero .stat-label { font-size: 26px; }
	.card { padding: 20px; }
	.apply-clerk { width: 86px; }
}
@media (pointer: coarse) {
	.pad { display: flex; }
	.hint { display: none; }
}
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
	.cloud, .hovercar, .rain { display: none; }
}

/* ==========================================================================
   Passport application form
   ========================================================================== */
.apply-form { display: flex; flex-direction: column; gap: 16px; }
.apply-form .title { margin-bottom: 0; }
.apply-form .kicker { align-self: flex-start; margin-bottom: 0; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.photo-drop {
	position: relative;
	display: flex; align-items: center; gap: 16px;
	padding: 14px;
	background: var(--paper);
	border: 3px dashed var(--ink); border-radius: 18px;
	cursor: pointer;
	transition: background .15s, transform .15s;
}
.photo-drop:hover, .photo-drop.is-over { background: #fff1b8; }
.photo-drop.is-over { transform: scale(1.01); }
.photo-drop input[type=file] { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; }
.photo-drop:focus-within { outline: 4px solid var(--purple); outline-offset: 3px; }
.photo-frame {
	flex: none; width: 96px; height: 112px;
	display: grid; place-items: center;
	background: linear-gradient(#6fd3ff, #c9f2ff);
	border: var(--line); border-radius: 12px; box-shadow: 3px 3px 0 var(--ink);
	overflow: hidden;
}
.photo-frame img { width: 100%; height: 100%; object-fit: cover; }
.photo-empty { font-size: 36px; }
.photo-text b { display: block; font: 400 20px/1.1 var(--display); margin-bottom: 4px; }
.photo-text span { font-size: 14px; color: var(--muted); }
.field { display: flex; flex-direction: column; gap: 6px; }
.field > span { font: 700 12px/1 var(--mono); text-transform: uppercase; letter-spacing: 1px; }
.field em { font-style: normal; color: var(--muted); text-transform: none; letter-spacing: 0; }
.field input, .at-input {
	width: 100%;
	font: 600 18px/1.2 var(--body);
	padding: 12px 14px;
	color: var(--ink);
	background: var(--white);
	border: var(--line); border-radius: 14px;
}
.field input:focus { outline: none; box-shadow: 4px 4px 0 var(--purple); }
.at-input { display: flex; align-items: center; gap: 4px; padding: 0 0 0 14px; }
.at-input:focus-within { box-shadow: 4px 4px 0 var(--purple); }
.at-input i { font: 700 20px/1 var(--mono); font-style: normal; color: var(--purple-d); }
.at-input input { border: 0; padding-left: 2px; box-shadow: none !important; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; cursor: pointer; }
.check input { flex: none; width: 22px; height: 22px; margin: 1px 0 0; accent-color: var(--purple); }
.apply-form .btn-lg { align-self: flex-start; }
.apply-form .btn.is-busy { pointer-events: none; opacity: .8; }
.apply-form .btn.is-busy::after { content: ""; width: 16px; height: 16px; border: 3px solid var(--ink); border-right-color: transparent; border-radius: 50%; animation: spin .7s linear infinite; }
.apply-form .small { margin: 0; }
.cancel { font-size: 14px; }
.share-tip { max-width: 560px; margin: 16px auto 0; }
.share-hint {
	max-width: 560px; margin: 18px auto 0; padding: 14px 18px;
	font: 400 18px/1.3 var(--display);
	background: var(--green); border: var(--line); border-radius: 18px; box-shadow: var(--shadow-sm);
	animation: pop-in .35s cubic-bezier(.3, 1.8, .5, 1);
}
.share-hint.is-warn { background: var(--yellow); }
.share-hint kbd { font-size: 14px; }
@keyframes pop-in { from { transform: scale(.85); opacity: 0; } }

/* My passports */
.form-note { margin: -6px 0 0; }
.form-actions { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.my-passports { margin: 10px 0 56px; }
.my-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; }
.my-head .title { font-size: clamp(30px, 4vw, 44px); margin: 0; display: flex; align-items: center; gap: 12px; }
.my-head .count { font: 400 20px/1 var(--display); padding: 8px 12px 5px; background: var(--purple); color: var(--white); border: 3px solid var(--ink); border-radius: 999px; text-shadow: none; }
.my-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 18px; }
.my-grid a {
	display: flex; flex-direction: column; height: 100%;
	text-decoration: none; color: var(--ink);
	background: var(--white); border: var(--line); border-radius: 18px; box-shadow: var(--shadow-sm);
	overflow: hidden; transition: transform .2s cubic-bezier(.3, 1.6, .5, 1), box-shadow .2s;
}
.my-grid a:hover { transform: translate(-2px, -3px) rotate(-.6deg); box-shadow: 7px 7px 0 var(--ink); color: var(--ink); }
.my-grid img { display: block; width: 100%; height: auto; border-bottom: 3px solid var(--ink); }
.my-grid a > span { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; padding: 10px 14px 12px; }
.my-grid b { font: 400 18px/1.1 var(--display); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.my-grid em { font: normal 700 12px/1 var(--mono); color: var(--muted); flex: none; }
.my-grid .is-current a { background: var(--yellow); box-shadow: 5px 5px 0 var(--purple); }
.my-add a {
	align-items: center; justify-content: center; gap: 6px; min-height: 160px;
	background: var(--paper); border-style: dashed; box-shadow: none;
}
.my-add span { font: 400 46px/1 var(--display); width: 64px; height: 64px; display: grid; place-items: center; padding-top: 6px; background: var(--yellow); border: var(--line); border-radius: 50%; }
.my-add b { font-size: 18px; }

/* ==========================================================================
   Solami Rush
   ========================================================================== */
.deli-led { left: 12.5%; width: 75%; top: 3.8%; height: 10%; font-size: calc(18px * var(--s)); }

.rush {
	position: absolute; inset: 0; z-index: 30;
	display: grid; align-items: end; justify-items: center;
	background: #5a3ad8;
	touch-action: none; user-select: none; -webkit-user-select: none;
}
.rush[hidden] { display: none; }
.rush canvas { display: block; outline: none; cursor: pointer; }
.rush-on .city .world, .rush-on .city .city-ui, .rush-on .city .scroll-cue { visibility: hidden; }
.rush-top { position: absolute; right: 12px; bottom: 12px; display: flex; gap: 8px; z-index: 2; }
.rush-btn {
	font: 400 15px/1 var(--display); padding: 9px 14px 6px;
	background: #fff; color: var(--ink); border: 3px solid var(--ink); border-radius: 999px; box-shadow: 3px 3px 0 var(--ink);
	cursor: pointer;
}
.rush-btn[aria-pressed="true"] { background: var(--green); }
.rush-x { width: 40px; padding: 8px 0 6px; }
.rush-over { position: absolute; inset: 0; display: grid; place-items: center; padding: 14px; background: rgba(29, 11, 63, .62); z-index: 3; overflow-y: auto; }
.rush-over[hidden] { display: none; }
.rush-paper { width: min(760px, 100%); display: grid; gap: 12px; justify-items: center; }
.rush-print {
	width: 100%; aspect-ratio: 1200 / 630; display: grid; place-items: center; align-content: center; gap: 10px;
	background: #f4ecd8; border: var(--line); border-radius: 8px; box-shadow: 8px 8px 0 var(--ink);
}
.rush-print[hidden] { display: none; }
.rush-print .mast { font: 400 clamp(26px, 5vw, 46px)/1 var(--display); }
.rush-printing { font: 400 clamp(18px, 3vw, 26px)/1.2 var(--comic); letter-spacing: .6px; color: var(--red); animation: blink 1s steps(2) infinite; }
.rush-img { width: 100%; height: auto; border: var(--line); border-radius: 8px; box-shadow: 8px 8px 0 var(--ink); background: #f4ecd8; animation: stamp-in .6s cubic-bezier(.2, 1.4, .4, 1) both; }
.rush-status { font-weight: 700; color: #fff; text-align: center; min-height: 1.4em; text-shadow: 0 1px 0 var(--ink); }
.rush-status a { color: var(--yellow); }
.rush-status b { color: var(--green); }
.rush-actions { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }
.rush-actions .btn.is-disabled { opacity: .5; pointer-events: none; }
.rush-over .share-hint { max-width: 520px; margin: 0; }

/* Deli panel */
.deli { display: grid; gap: 18px; }
.deli .lead { margin-bottom: 0; }
.deli-play { display: flex; flex-wrap: wrap; gap: 12px 16px; align-items: center; }
.deli-play .small { flex-basis: 100%; margin: 0; }
.deli-as { display: flex; align-items: center; gap: 8px; font: 700 12px/1 var(--mono); text-transform: uppercase; letter-spacing: 1px; }
.deli-as[hidden] { display: none; }
.deli-as select { font: 700 15px/1.2 var(--body); padding: 10px 12px; border: 3px solid var(--ink); border-radius: 12px; background: #fff; color: var(--ink); max-width: 260px; }
.deli-how { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 18px; font-size: 15px; }
.deli-how b { font: 400 17px/1 var(--display); margin-right: 6px; }
.deli-board { background: #fff; border: var(--line); border-radius: 18px; overflow: hidden; }
.deli-board-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; background: var(--ink); color: #fff; padding: 12px 16px 9px; flex-wrap: wrap; }
.deli-board-head h3 { margin: 0; font: 400 22px/1 var(--display); color: var(--yellow); }
.deli-board-head span { font: 700 11px/1 var(--mono); letter-spacing: 1px; text-transform: uppercase; color: #cfc4e0; }

.rush-board { list-style: none; margin: 0; padding: 0; }
.rush-board li { display: grid; grid-template-columns: 30px 40px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 9px 16px; border-bottom: 2px solid #efe6cf; }
.rush-board li:last-child { border-bottom: 0; }
.rush-board .rank { font: 400 20px/1 var(--display); text-align: center; }
.rush-board .av { width: 40px; height: 40px; border-radius: 50%; border: 3px solid var(--ink); object-fit: cover; display: grid; place-items: center; font: 400 17px/1 var(--display); padding-top: 2px; background: var(--green); }
.rush-board .who { min-width: 0; display: grid; }
.rush-board .who b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rush-board .who span { font: 700 12px/1.2 var(--mono); color: var(--muted); }
.rush-board .score { font: 400 18px/1 var(--display); color: var(--ink); text-decoration: none; font-variant-numeric: tabular-nums; }
.rush-board .top1 { background: #fff4c2; } .rush-board .top2 { background: #f4f4f8; } .rush-board .top3 { background: #ffe9d6; }
.rush-empty { display: block !important; font: 400 18px/1.3 var(--comic); letter-spacing: .5px; padding: 16px !important; }
.rush-board-page { padding: 0 0 50px; }
.rush-board-page .rush-board { background: #fff; border: var(--line); border-radius: 18px; overflow: hidden; box-shadow: var(--shadow-sm); max-width: 720px; }

@media (max-width: 720px) {
	.deli-how { grid-template-columns: 1fr; }
	.rush-top { right: 8px; bottom: 8px; }
	.rush-btn { font-size: 13px; padding: 7px 10px 5px; }
	.rush-x { width: 34px; }
}

/* Origin section */
.section-origin {
	background:
		radial-gradient(circle at 12% 18%, rgba(255,255,255,.28) 0 2px, transparent 3px) 0 0 / 140px 140px,
		radial-gradient(circle at 70% 60%, rgba(255,255,255,.2) 0 2px, transparent 3px) 0 0 / 190px 190px,
		radial-gradient(120% 140% at 15% 0%, var(--ros-desk-2) 0%, var(--ros-desk) 55%, #3a1f99 100%);
	border-top: var(--line); border-bottom: var(--line);
}
.section-origin .kicker { font-family: var(--hand); font-size: 20px; letter-spacing: .5px; text-transform: uppercase; background: var(--ros-cream); color: var(--ros-ink); border-color: var(--ros-ink); border-radius: 7px; transform: rotate(-2deg); justify-self: start; }
.origin-embed { gap: 26px; }
.origin-ours { display: grid; justify-items: center; gap: 8px; max-width: 420px; text-decoration: none; transform: rotate(-2deg); transition: transform .2s; }
.origin-ours:hover { transform: rotate(0deg) translateY(-4px); }
.origin-ours img { width: 100%; height: auto; display: block; filter: drop-shadow(0 8px 0 rgba(20,10,58,.3)); }
.origin-ours span { font: 400 22px/1 var(--hand); color: var(--ros-ink); background: var(--yellow); border: 3px solid var(--ros-ink); border-radius: 999px; padding: 6px 14px 3px; box-shadow: 3px 3px 0 var(--ros-ink); }
.section-origin .title { color: #fff; text-shadow: 3px 3px 0 var(--ink); }
.section-origin .lead, .section-origin p { color: #fff; }
.section-origin .muted { color: #e8eaff; }
.origin { display: grid; grid-template-columns: 1fr minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); align-items: center; }
.origin-text { display: grid; gap: 14px; }
.origin-text p { margin: 0; max-width: 60ch; }
.origin-embed { min-width: 0; display: grid; justify-items: center; }
.origin-embed .twitter-tweet { margin: 0 !important; }
.origin-embed blockquote.twitter-tweet {
	width: 100%; max-width: 520px; margin: 0; padding: 22px;
	background: #fff; color: var(--ink); border: var(--line); border-radius: 20px; box-shadow: var(--shadow);
	transform: rotate(1.5deg);
}
.origin-embed blockquote.twitter-tweet p { color: var(--ink); font: 400 22px/1.25 var(--comic); letter-spacing: .5px; margin: 0 0 12px; }
.origin-embed blockquote.twitter-tweet a { font-weight: 800; }
.welcome-origin { background: #e9e3ff; border: 3px solid var(--ink); border-radius: 14px; padding: 12px 14px; margin: 0; }
@media (max-width: 900px) { .origin { grid-template-columns: 1fr; } }

/* ---------------- Pump House Radio tower ---------------- */
.radio-tower {
	position: absolute; z-index: 1; pointer-events: none;
	left: calc(var(--x) * var(--s) * 1px); bottom: calc(var(--ground) - 2px);
	width: calc(var(--w) * var(--s) * 1px);
}
.radio-tower .bsvg { display: block; width: 100%; height: auto; overflow: visible; }
.radio-tower .rw { opacity: 0; transition: opacity .3s; }
.radio-tower.is-on .rw { opacity: 1; }
.radio-tower.is-on .rw1 { animation: rwave 1.6s ease-out infinite; }
.radio-tower.is-on .rw2 { animation: rwave 1.6s ease-out .5s infinite; }
@keyframes rwave { 0% { opacity: 0; } 30% { opacity: 1; } 100% { opacity: 0; } }
.radio-tower .beacon { animation: beacon 1.4s steps(1) infinite; }
@keyframes beacon { 0%, 60% { fill: #ff4f6d; } 61%, 100% { fill: #7a1f2e; } }
.radio-btn {
	pointer-events: auto; cursor: pointer;
	position: absolute; left: 50%; bottom: calc(100% + 10px); transform: translateX(-50%);
	display: flex; align-items: center; gap: 9px; white-space: nowrap;
	padding: 7px 14px 7px 11px; border: 3px solid var(--ink); border-radius: 999px;
	background: #fff; color: var(--ink); box-shadow: 4px 4px 0 var(--ink);
	font: inherit; transition: transform .2s cubic-bezier(.3, 1.6, .5, 1), background .2s;
}
.radio-btn:hover { transform: translateX(-50%) scale(1.04); }
.radio-btn-txt { display: grid; line-height: 1; text-align: left; }
.radio-btn-txt small { font: 700 9.5px/1 var(--mono); text-transform: uppercase; letter-spacing: 1px; color: #15803d; }
.radio-btn-txt b { font: 400 19px/1 var(--display); letter-spacing: .4px; }
.radio-btn-txt em { font: 700 9px/1 var(--mono); font-style: normal; color: #555; margin-top: 3px; max-width: 200px; overflow: hidden; text-overflow: ellipsis; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.radio-pick select { font: 700 10px/1.2 var(--mono); border: 2px solid var(--ink); border-radius: 6px; background: #fff; padding: 2px 4px; max-width: 300px; margin: 2px 0; }
.radio-ic { font-size: 13px; width: 26px; height: 26px; display: grid; place-items: center; border-radius: 50%; background: #22c55e; color: #fff; border: 2px solid var(--ink); }
.radio-tower.is-on .radio-btn { background: #dcfce7; }
.radio-tower.is-on .radio-btn-txt small::before { content: "On air · "; }
.radio-tower.is-on .radio-ic::before { content: "■"; font-size: 10px; }
.radio-tower.is-on .radio-ic { font-size: 0; }
.radio-eq { display: none; align-items: flex-end; gap: 2px; height: 16px; }
.radio-eq i { width: 3px; background: #22c55e; border-radius: 2px; height: 30%; animation: eq .8s ease-in-out infinite alternate; }
.radio-eq i:nth-child(2) { animation-delay: .15s; } .radio-eq i:nth-child(3) { animation-delay: .3s; } .radio-eq i:nth-child(4) { animation-delay: .45s; }
@keyframes eq { from { height: 25%; } to { height: 100%; } }
.radio-tower.is-on .radio-eq, .radio-mini .radio-eq { display: flex; }
.radio-tower.is-loading .radio-ic { animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.radio-mini {
	position: fixed; left: 16px; bottom: 118px; z-index: 55;
	display: flex; align-items: center; gap: 10px; padding: 8px 10px 8px 14px;
	background: var(--ros-cream); border: 3px solid var(--ink); border-radius: 999px; box-shadow: 4px 4px 0 var(--ink);
	max-width: calc(100vw - 32px);
}
.radio-mini[hidden] { display: none; }
.radio-mini-txt { display: grid; line-height: 1.1; min-width: 0; }
.radio-mini-txt b { font: 400 17px/1 var(--display); }
.radio-mini-txt a { font: 700 9px/1.2 var(--mono); text-transform: uppercase; letter-spacing: .6px; color: #555; text-decoration: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.radio-mini .btn { padding: 6px 12px; }
@media (max-width: 700px) {
	.radio-btn-txt b { font-size: 16px; }
	.radio-mini-txt a { display: none; }
	/* phones: no floating mini player (it would sit on the map strip); the hero button + ⏭ and the tower do the job */
	.radio-mini { display: none !important; }
	.radio-on .hero-radio-next { display: inline-flex; padding-left: 10px; padding-right: 10px; }
	.radio-on .hero-radio-btn .only-phone { display: none; }
}

/* hero radio card (desktop: under the passport; small screens: hidden, the CTA button does the job) */
.hero-radio {
	position: absolute; z-index: 3; left: clamp(745px, 53vw, 880px); top: clamp(282px, 32vh, 300px); width: clamp(300px, 25vw, 350px);
	background: var(--ros-cream); border: 4px solid var(--ros-ink); border-radius: 18px; box-shadow: 6px 7px 0 rgba(20, 10, 58, .45);
	transform: rotate(-1.5deg); overflow: hidden; transition: opacity .45s, visibility 0s;
}
.city.cam-away .hero-radio, .rush-on .hero-radio { opacity: 0; pointer-events: none; visibility: hidden; transition: opacity .45s, visibility 0s .45s; }
.hr-head { display: flex; align-items: center; gap: 8px; background: var(--ros-ink); color: #fff; padding: 6px 12px 5px; }
.hr-head b { font: 400 17px/1 var(--display); color: var(--yellow); letter-spacing: .4px; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hr-live { font: 700 9.5px/1 var(--mono); text-transform: uppercase; letter-spacing: 1px; color: #cfd3ff; text-decoration: none; }
.hr-dot { width: 9px; height: 9px; border-radius: 50%; background: #ff4f6d; box-shadow: 0 0 0 0 rgba(255, 79, 109, .6); animation: hrdot 1.6s infinite; }
@keyframes hrdot { 0% { box-shadow: 0 0 0 0 rgba(255, 79, 109, .6); } 70% { box-shadow: 0 0 0 8px rgba(255, 79, 109, 0); } 100% { box-shadow: 0 0 0 0 rgba(255, 79, 109, 0); } }
.hr-body { display: flex; align-items: center; gap: 10px; padding: 8px 12px 8px; }
.hr-play { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 7px; cursor: pointer; font: 400 17px/1 var(--display); letter-spacing: .4px;
	padding: 8px 12px 7px 11px; border: 3px solid var(--ros-ink); border-radius: 999px; background: #22c55e; color: #fff; box-shadow: 3px 3px 0 var(--ros-ink); transition: transform .15s; }
.hr-play:hover { transform: translate(-1px, -1px); }
.hr-ic { width: 0; height: 0; border-style: solid; border-width: 7px 0 7px 11px; border-color: transparent transparent transparent #fff; }
.radio-on .hr-play { background: #ff4f6d; }
.radio-on .hr-ic { width: 11px; height: 11px; border: 0; background: #fff; border-radius: 2px; }
.radio-on .hr-play .radio-eq { display: flex; } .hr-play .radio-eq i { background: #fff; }
.hr-station { display: flex; align-items: center; gap: 5px; min-width: 0; flex: 1; }
.hr-station .radio-pick { flex: 1; min-width: 0; display: block; }
.hr-station .radio-pick select { width: 100%; max-width: none; margin: 0; }
.hr-nav { cursor: pointer; flex: 0 0 auto; font-size: 11px; padding: 4px 6px; border: 2px solid var(--ros-ink); border-radius: 8px; background: #fff; box-shadow: 2px 2px 0 var(--ros-ink); }
.hr-credit { display: block; padding: 0 12px 6px; font: 700 8.5px/1.2 var(--mono); text-transform: uppercase; letter-spacing: .5px; color: #666; text-decoration: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.radio-status { margin: 0; padding: 6px 12px 8px; font: 400 15px/1.25 var(--hand); color: var(--ros-ink); }
.radio-status[hidden] { display: none; }
.radio-status.is-err { color: #b3261e; }
.radio-status.is-wait { color: #4b5563; }
.radio-retry { cursor: pointer; font: 400 15px/1 var(--display); padding: 5px 10px 4px; margin-left: 6px; border: 2px solid var(--ros-ink); border-radius: 999px; background: var(--yellow); box-shadow: 2px 2px 0 var(--ros-ink); }
.radio-status--mini { position: absolute; left: 0; right: 0; top: calc(100% + 6px); background: var(--ros-cream); border: 3px solid var(--ink); border-radius: 12px; box-shadow: 3px 3px 0 var(--ink); }
.radio-mini { position: fixed; } /* keep */
.hero-radio-btn, .hero-radio-next { background: #dcfce7; display: none; }
.radio-on .hero-radio-btn { background: #fecdd3; }
@media (min-width: 1850px) {
	/* wide screens: in the sky, right of the passport */
	.hero-radio { left: calc(clamp(745px, 53vw, 880px) + clamp(260px, 22vw, 360px) + 20px); width: min(310px, calc(100vw - 340px - clamp(745px, 53vw, 880px) - clamp(260px, 22vw, 360px) - 40px)); top: clamp(120px, 16vh, 170px); transform: rotate(1.5deg); }
	.hero-radio .hr-live { display: none; }
}
@media (max-width: 1400px) {
	.hero-radio { display: none; }
	.hero-radio-btn { display: inline-flex; }
	.hero-id { max-width: calc(100vw - 400px); } /* four CTAs wrap instead of running under the Forbes board */
}
@media (max-width: 900px) {
	.hero-id { max-width: calc(100vw - 32px); }
}

/* ---------------- /city/ · 2.5D map ---------------- */
.iso-page { background: #7b61ff; }
.iso-wrap { position: relative; height: calc(100vh - var(--header-h, 66px)); min-height: 520px; overflow: hidden; }
#iso { display: block; width: 100%; height: 100%; touch-action: none; cursor: grab; }
#iso:active { cursor: grabbing; }
.iso-hud-top { position: absolute; left: 14px; right: 14px; top: 12px; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; pointer-events: none; }
.iso-hud-top .btn, .iso-places button { pointer-events: auto; }
.iso-back { border-color: var(--ros-ink); box-shadow: 3px 3px 0 var(--ros-ink); background: var(--ros-cream); }
.iso-title { display: grid; line-height: 1; background: var(--ros-ink); color: #fff; border-radius: 12px; padding: 7px 12px 6px; box-shadow: 3px 3px 0 rgba(20,10,58,.45); }
.iso-title b { font: 400 22px/1 var(--display); color: var(--yellow); letter-spacing: .5px; }
.iso-title span { font: 700 9.5px/1.2 var(--mono); text-transform: uppercase; letter-spacing: 1px; color: #cfd3ff; }
.iso-hint { margin: 0; font: 400 15px/1.2 var(--hand); color: #fff; text-shadow: 1px 1px 0 var(--ros-ink); background: rgba(26,20,35,.35); padding: 5px 10px; border-radius: 10px; }
.iso-prompt { position: absolute; left: 0; top: 0; z-index: 3; display: flex; align-items: center; gap: 10px; background: #fff; border: 3px solid var(--ink); border-radius: 999px; padding: 6px 8px 6px 14px; box-shadow: 4px 4px 0 var(--ink); white-space: nowrap; }
.iso-prompt[hidden] { display: none; }
.iso-prompt b { font: 400 18px/1 var(--display); }
.iso-prompt small { font: 700 10px/1 var(--mono); color: #666; }
.iso-prompt kbd { border: 2px solid var(--ink); border-radius: 5px; padding: 1px 5px; background: var(--yellow); }
.iso-places { position: absolute; left: 14px; right: 14px; bottom: 12px; display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; pointer-events: none; }
.iso-places::-webkit-scrollbar { display: none; }
.iso-places button { flex: 0 0 auto; cursor: pointer; font: 400 15px/1 var(--display); letter-spacing: .3px; padding: 8px 12px 7px; border: 3px solid var(--ros-ink); border-radius: 999px; background: var(--ros-cream); color: var(--ros-ink); box-shadow: 3px 3px 0 var(--ros-ink); }
.iso-places button:hover { background: var(--yellow); }
.iso-toast { position: absolute; left: 50%; bottom: 70px; transform: translateX(-50%); background: var(--ros-ink); color: #fff; border-radius: 12px; padding: 8px 14px; font: 400 17px/1.2 var(--hand); z-index: 4; }
.iso-toast[hidden] { display: none; }
.sign-city { position: absolute; left: 50%; transform: translateX(-50%); bottom: calc(100% + 6px); font: 400 15px/1 var(--display); background: var(--yellow); border: 3px solid var(--ink); border-radius: 999px; padding: 6px 12px 5px; box-shadow: 3px 3px 0 var(--ink); color: var(--ink); text-decoration: none; white-space: nowrap; pointer-events: auto; }
@media (max-width: 720px) {
	.iso-hint { display: none; }
	.iso-title span { display: none; }
	.iso-wrap { height: calc(100vh - 96px); }
}
/* city: on-screen walking pad (phones / tablets) */
.iso-pad { position: absolute; right: 14px; bottom: 64px; display: none; grid-template-columns: 44px 44px 44px; grid-template-rows: 44px 44px 44px; gap: 4px; z-index: 3; }
.iso-pad button { cursor: pointer; border: 3px solid var(--ros-ink); border-radius: 12px; background: var(--ros-cream); color: var(--ros-ink); font: 700 16px/1 var(--mono); box-shadow: 3px 3px 0 var(--ros-ink); touch-action: none; user-select: none; -webkit-user-select: none; }
.iso-pad button.is-down { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--ros-ink); background: var(--yellow); }
.iso-pad [data-iso-move="up"] { grid-column: 2; grid-row: 1; } .iso-pad [data-iso-move="left"] { grid-column: 1; grid-row: 2; } .iso-pad [data-iso-move="right"] { grid-column: 3; grid-row: 2; } .iso-pad [data-iso-move="down"] { grid-column: 2; grid-row: 3; }
.iso-pad-enter { grid-column: 2; grid-row: 2; background: var(--yellow) !important; font-family: var(--display) !important; font-size: 18px !important; }
@media (hover: none) and (pointer: coarse) { .iso-pad { display: grid; } }
@media (max-width: 720px) { .iso-pad { bottom: 70px; right: 10px; } }
.iso-page .rush { position: absolute; }

/* "Explore in 2.5D" stamp on the hero: lands like the passport's APPROVED stamp */
.hero-title { position: relative; }
.hero-explore {
	position: absolute; z-index: 4; left: 100%; margin-left: 18px; top: 50%; margin-top: -58px; width: 116px; aspect-ratio: 1; border-radius: 50%; text-shadow: none; letter-spacing: 0;
	display: grid; place-content: center; text-align: center; gap: 1px; text-decoration: none; pointer-events: auto;
	background: var(--ros-cream); border: 5px double #0fa968; color: #0b8f5a; box-shadow: 3px 4px 0 rgba(20, 10, 58, .35);
	transform: rotate(-14deg); animation: hero-stamp .5s cubic-bezier(.2, 1.6, .4, 1) 1s both; transition: transform .2s;
}
.hero-explore:hover { transform: rotate(-10deg) scale(1.06); color: #0b8f5a; }
.hero-explore b { font: 400 24px/1 var(--hand); letter-spacing: 1px; text-transform: uppercase; }
.hero-explore small { font: 400 11px/1.1 var(--hand); text-transform: uppercase; letter-spacing: .5px; }
.hero-explore em { font: 400 20px/1 var(--display); font-style: normal; color: #ff4fc8; text-shadow: 1px 1px 0 var(--ros-ink); }
.hero-explore::after { content: "→"; position: absolute; right: 12px; bottom: 14px; font: 700 14px/1 var(--mono); }
@media (max-width: 720px) {
	.hero-title { position: static; }
	.hero-explore { left: auto; right: -8px; margin: 0; top: 60px; width: 90px; border-width: 4px; }
	.hero-explore b { font-size: 18px; } .hero-explore small { font-size: 9px; } .hero-explore em { font-size: 15px; } .hero-explore::after { right: 8px; bottom: 10px; font-size: 11px; }
}

/* ====================== Town Hall (/townhall/) ====================== */
.th-page { background: radial-gradient(120% 70% at 50% 0%, #ffb347 0%, #ff8a3d 35%, #7b61ff 100%); color: var(--ink); padding-bottom: 60px; }
.th-top { position: relative; padding: clamp(26px, 4vw, 48px) 0 0; overflow: hidden; }
.th-top-in { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(280px, 1fr); gap: 20px; align-items: end; position: relative; z-index: 2; }
.th-rep { display: inline-block; margin: 0 0 8px; font: 400 22px/1 var(--hand); text-transform: uppercase; letter-spacing: .5px; color: var(--ros-ink); background: var(--ros-cream); border: 3px solid var(--ros-ink); border-radius: 7px; padding: .3em .55em .15em; transform: rotate(-2deg); box-shadow: 3px 4px 0 rgba(20,10,58,.35); }
.th-h1 { margin: 0; font: 400 clamp(46px, 7vw, 84px)/.95 var(--display); color: #fff; letter-spacing: 2px;
	text-shadow: 4px 0 var(--ros-ink), -4px 0 var(--ros-ink), 0 4px var(--ros-ink), 0 -4px var(--ros-ink), 3px 3px var(--ros-ink), -3px -3px var(--ros-ink), 3px -3px var(--ros-ink), -3px 3px var(--ros-ink), 7px 8px var(--ros-ink); }
.th-sub { margin: 10px 0 0; font: 400 clamp(17px, 1.6vw, 20px)/1.35 var(--hand); color: #fff; text-shadow: 1px 1px 0 var(--ros-ink); max-width: 560px; }
.th-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.th-stat { background: var(--ros-cream); border: 3px solid var(--ros-ink); border-radius: 16px; padding: 10px 12px; box-shadow: 4px 4px 0 var(--ros-ink); display: grid; gap: 2px; }
.th-stat span { font: 700 10px/1.2 var(--mono); text-transform: uppercase; letter-spacing: 1px; }
.th-stat b { font: 400 30px/1 var(--display); }
.th-stat--done { background: #dcfce7; }
.th-facade { height: 110px; margin-top: 18px; display: flex; justify-content: center; gap: clamp(28px, 6vw, 90px); align-items: flex-end; background: linear-gradient(#ffd43b 0 14px, transparent 14px); position: relative; }
.th-facade::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 14px; border-bottom: 4px solid var(--ros-ink); }
.th-col { width: 34px; height: 96px; background: linear-gradient(90deg, #fff7dc, #e9dcb0); border: 4px solid var(--ros-ink); border-bottom: 0; border-radius: 6px 6px 0 0; box-shadow: inset -6px 0 0 rgba(0,0,0,.08); }
.th-h2 { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; margin: 0 0 16px; font: 400 clamp(30px, 4vw, 44px)/1 var(--display); color: var(--ros-ink); }
.th-h2 small { font: 400 17px/1.2 var(--hand); color: var(--ros-ink); opacity: .8; }

/* hall of presidents: wall with frames */
.th-hall { background: #4a2a1b url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='80'%3E%3Cpath d='M0 40h80M40 0v80' stroke='%23000' stroke-opacity='.12' stroke-width='2'/%3E%3C/svg%3E"); padding: 34px 0 20px; border-top: 6px solid var(--ros-ink); border-bottom: 6px solid var(--ros-ink); position: relative; }
.th-hall .th-h2, .th-hall .th-h2 small { color: #fff4c2; text-shadow: 1px 1px 0 var(--ros-ink); }
.th-wall { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 22px 18px; }
.th-frame { position: relative; margin: 0; background: #fff6dc; border: 10px solid #c9951e; outline: 4px solid var(--ros-ink); outline-offset: 0; border-radius: 6px; padding: 10px 10px 12px; box-shadow: 8px 10px 0 rgba(0,0,0,.35), inset 0 0 0 3px #a06f10; transform: rotate(var(--tilt, 0deg)); transition: transform .25s; }
.th-frame:hover { transform: rotate(0deg) scale(1.04); z-index: 2; }
.th-frame::before { content: ""; position: absolute; left: 50%; top: -34px; width: 4px; height: 26px; background: var(--ros-ink); transform: translateX(-50%); }
.th-portrait { background: radial-gradient(circle at 50% 35%, #b39dff, #5a3ad8); border: 3px solid var(--ros-ink); border-radius: 4px; padding: 10px 24px 0; }
.th-portrait .citizen-svg { width: 100%; max-width: 120px; margin: 0 auto; display: block; }
.th-frame figcaption { display: grid; gap: 2px; text-align: center; margin-top: 8px; }
.th-frame figcaption b { font: 400 19px/1.05 var(--display); color: var(--ros-ink); }
.th-frame figcaption span { font: 700 9.5px/1.3 var(--mono); text-transform: uppercase; letter-spacing: .6px; color: #6b4a12; }
.th-frame figcaption em { font: 400 15px/1.2 var(--hand); color: var(--ros-ink); }
.th-frame--impeached { --tilt: 7deg; }
.th-frame--impeached .th-portrait { filter: saturate(.6); }
.th-tape { position: absolute; left: -16px; top: 42%; transform: rotate(-14deg); background: #ffd43b; color: var(--ros-ink); border: 3px solid var(--ros-ink); padding: 4px 10px; font: 700 12px/1 var(--mono); letter-spacing: 2px; box-shadow: 2px 2px 0 var(--ros-ink); }
.th-statue { display: grid; justify-items: center; margin: 26px auto 0; max-width: 300px; position: relative; }
.th-statue-fig { width: 150px; filter: drop-shadow(0 6px 0 rgba(0,0,0,.35)); }
.th-statue-fig .citizen-svg { animation: none; }
.th-pedestal { background: linear-gradient(#c9ced6, #8f969e); border: 4px solid var(--ros-ink); border-radius: 10px 10px 4px 4px; padding: 10px 22px 12px; text-align: center; display: grid; gap: 2px; box-shadow: 6px 8px 0 rgba(0,0,0,.35); min-width: 230px; }
.th-pedestal b { font: 400 20px/1 var(--display); letter-spacing: 1px; color: var(--ros-ink); }
.th-pedestal span { font: 400 14px/1.2 var(--hand); color: #2a2436; }
.th-pigeon { position: absolute; left: 50%; top: -6px; transform: translateX(28px); font-size: 22px; animation: pigeon 6s ease-in-out infinite; }
@keyframes pigeon { 0%, 70%, 100% { transform: translateX(28px) translateY(0); } 80% { transform: translateX(34px) translateY(-6px) rotate(-8deg); } 90% { transform: translateX(26px) translateY(-2px); } }

/* proposals */
.th-props { padding: 30px 0 0; }
.th-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(290px, 1fr); gap: 22px; align-items: start; }
.th-main, .th-side { min-width: 0; }
.th-compose { margin-bottom: 14px; }
.th-form { display: grid; gap: 8px; margin-top: 8px; }
.th-form input, .th-form textarea { font: 400 16px/1.35 var(--body); padding: 11px 14px; border: 3px solid var(--ros-ink); border-radius: 14px; background: #fff; color: var(--ink); width: 100%; box-sizing: border-box; resize: vertical; }
.th-form input:disabled, .th-form textarea:disabled { background: #efe9ff; }
.th-form-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.th-filter { display: flex; gap: 6px; flex-wrap: wrap; margin: 6px 0 12px; }
.th-filter button { cursor: pointer; font: 700 11px/1 var(--mono); text-transform: uppercase; letter-spacing: .6px; padding: 7px 10px; border: 3px solid var(--ros-ink); border-radius: 999px; background: var(--ros-cream); color: var(--ros-ink); box-shadow: 2px 2px 0 var(--ros-ink); }
.th-filter button.is-on { background: var(--yellow); }
.th-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.th-item { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 12px; background: var(--ros-cream); border: 4px solid var(--ros-ink); border-radius: 18px; padding: 12px; box-shadow: 5px 6px 0 rgba(10,4,30,.45); }
.th-item--hidden { opacity: .55; }
.th-item--done { background: #e8fff1; } .th-item--planned { background: #fff7d6; } .th-item--declined { background: #f1eef5; }
.th-vote { cursor: pointer; display: grid; place-items: center; gap: 2px; align-self: start; width: 64px; padding: 8px 0 6px; border: 3px solid var(--ros-ink); border-radius: 14px; background: #fff; box-shadow: 3px 3px 0 var(--ros-ink); font: inherit; }
.th-vote span { font-size: 20px; } .th-vote b { font: 400 20px/1 var(--display); }
.th-vote.is-on { background: #dcfce7; } .th-vote:disabled { opacity: .6; }
.th-item-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; flex-wrap: wrap; }
.th-item-head h3 { margin: 0; font: 400 24px/1.05 var(--display); color: var(--ros-ink); overflow-wrap: anywhere; }
.th-item p { margin: 6px 0 10px; font-size: 15.5px; line-height: 1.45; overflow-wrap: anywhere; white-space: pre-line; }
.th-status { flex: none; font: 700 10px/1 var(--mono); text-transform: uppercase; letter-spacing: .8px; padding: 6px 9px; border: 2px solid var(--ros-ink); border-radius: 999px; background: #fff; }
.th-status--done { background: #14f195; } .th-status--planned { background: var(--yellow); } .th-status--considering { background: #dff4ff; } .th-status--declined { background: #e9e6ff; }
.th-item-meta { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 13px; }
.th-item-meta > span { display: grid; line-height: 1.15; }
.th-item-meta small { color: #6b6480; font: 700 10px/1.3 var(--mono); }
.th-av { width: 36px; height: 36px; border-radius: 50%; border: 2.5px solid var(--ros-ink); object-fit: cover; display: grid; place-items: center; background: var(--yellow); font: 400 16px/1 var(--display); }
.th-seal { font-style: normal; display: inline-grid; place-items: center; width: 16px; height: 16px; border-radius: 50%; background: #ffd43b; border: 2px solid var(--ros-ink); font: 700 9px/1 var(--mono); margin-left: 4px; vertical-align: middle; }
.th-modbar { margin-left: auto; display: flex; gap: 8px; align-items: center; }
.th-modbar select { font: 700 11px/1 var(--mono); border: 2px solid var(--ros-ink); border-radius: 6px; padding: 3px 4px; }
.th-empty, .th-loading { background: rgba(255,255,255,.75); border: 3px dashed var(--ros-ink); border-radius: 16px; padding: 18px; text-align: center; font: 400 18px/1.3 var(--hand); color: var(--ros-ink); }
.th-rules ul { margin: 6px 0 8px; padding-left: 18px; font-size: 14.5px; line-height: 1.45; }
.th-cta { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 0 0 14px; }
@media (max-width: 900px) {
	.th-top-in, .th-grid { grid-template-columns: minmax(0, 1fr); }
	.th-stats { grid-template-columns: repeat(3, 1fr); }
	.th-wall { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 24px 12px; }
	.th-frame { border-width: 7px; padding: 8px 6px 10px; }
	.th-item { grid-template-columns: 54px minmax(0, 1fr); gap: 10px; padding: 10px; }
	.th-vote { width: 54px; }
	.th-facade { gap: 18px; height: 80px; } .th-col { width: 24px; height: 66px; }
}

/* town hall teaser (street + city panel) */
.th-teaser-pres { list-style: none; margin: 0; padding: 0; display: flex; gap: 10px; flex-wrap: wrap; align-items: flex-end; }
.th-teaser-pres li { display: grid; justify-items: center; gap: 4px; width: 74px; }
.th-teaser-fig { width: 56px; background: radial-gradient(circle at 50% 35%, #b39dff, #5a3ad8); border: 3px solid var(--ros-ink); border-radius: 8px; padding: 4px 6px 0; box-shadow: 3px 3px 0 var(--ros-ink); }
.th-teaser-fig .citizen-svg { display: block; width: 100%; animation: none; }
.th-teaser-pres b { font: 400 11px/1.1 var(--display); text-align: center; color: var(--ros-ink); }
.th-teaser-more { align-self: center; font: 400 16px/1 var(--hand); color: var(--ros-ink); width: auto !important; }
.th-teaser-law { width: 100%; }
.th-teaser-law summary { cursor: pointer; font: 400 18px/1 var(--display); color: var(--ros-ink); padding: 8px 0; }
.th-teaser-law .constitution .kicker, .th-teaser-law .constitution .title { display: none; }

/* ====================== Museum (/museum/) ====================== */
.mu-page { background: #efe8da; color: var(--ink); padding-bottom: 60px; }
.mu-top { position: relative; padding: clamp(26px, 4vw, 48px) 0 0; background: radial-gradient(120% 70% at 50% 0%, #c9c3d6 0%, #9aa0a6 60%, #efe8da 100%); overflow: hidden; }
.mu-top-in { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(280px, 1fr); gap: 20px; align-items: end; position: relative; z-index: 2; }
.mu-h1 { margin: 0; font: 400 clamp(42px, 6.5vw, 78px)/.95 var(--display); color: #fff; letter-spacing: 2px;
	text-shadow: 4px 0 var(--ros-ink), -4px 0 var(--ros-ink), 0 4px var(--ros-ink), 0 -4px var(--ros-ink), 3px 3px var(--ros-ink), -3px -3px var(--ros-ink), 3px -3px var(--ros-ink), -3px 3px var(--ros-ink), 7px 8px var(--ros-ink); }
.mu-sub { margin: 10px 0 0; font: 400 clamp(17px, 1.6vw, 20px)/1.35 var(--hand); color: var(--ros-ink); max-width: 560px; }
.mu-facade { height: 96px; margin-top: 18px; display: flex; justify-content: center; gap: clamp(30px, 7vw, 110px); align-items: flex-end; background: linear-gradient(#d9dcdf 0 14px, transparent 14px); position: relative; }
.mu-facade::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 14px; border-bottom: 4px solid var(--ros-ink); }
.mu-facade span { width: 30px; height: 82px; background: linear-gradient(90deg, #f1f3f5, #c4c8cc); border: 4px solid var(--ros-ink); border-bottom: 0; border-radius: 6px 6px 0 0; }
.mu-h2, .mu-h2 small { color: var(--ros-ink); }
.mu-loading, .mu-page .th-empty { margin: 30px 0; }

/* halls: dark wall, side-scrolling rail, framed works with a spotlight */
.mu-hall { padding: 26px 0 10px; }
.mu-hall-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.mu-hall-head .th-h2 { margin: 0 0 10px; }
.mu-arrows { display: flex; gap: 6px; }
.mu-arrows button { cursor: pointer; width: 38px; height: 38px; border: 3px solid var(--ros-ink); border-radius: 50%; background: var(--ros-cream); box-shadow: 2px 2px 0 var(--ros-ink); font-size: 13px; }
.mu-rail { overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; scrollbar-width: thin; padding: 26px 0 22px; outline: none;
	background: #3a2a4f url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cpath d='M0 60h120M60 0v120' stroke='%23000' stroke-opacity='.14' stroke-width='3'/%3E%3C/svg%3E"); border-top: 5px solid var(--ros-ink); border-bottom: 5px solid var(--ros-ink);
	box-shadow: inset 0 -42px 0 #6b5a3e, inset 0 -46px 0 var(--ros-ink); }
.mu-hall--big .mu-rail { background-color: #4a2a1b; }
.mu-rail-in { display: flex; gap: 28px; padding: 0 max(16px, calc((100vw - 1240px) / 2 + 16px)) 0; align-items: flex-end; width: max-content; min-width: 100%; }
.mu-rail-end { align-self: center; font-size: 46px; opacity: .6; padding: 0 20px; }
.mu-work { position: relative; margin: 0; scroll-snap-align: start; flex: 0 0 auto; width: 250px; cursor: pointer; transition: transform .25s; }
.mu-work--big { width: 340px; }
.mu-work--top { width: auto; }
.mu-work:hover, .mu-work:focus-visible { transform: translateY(-6px) rotate(-.6deg); outline: none; }
/* frame = outer moulding → inner bevel → mat (passe-partout) → canvas */
.mu-frame { padding: 14px; border-radius: 4px; box-shadow: 10px 12px 0 rgba(0,0,0,.42), 0 0 0 4px var(--ros-ink); position: relative; }
.mu-frame::before { content: ""; position: absolute; inset: 6px; border: 2px solid rgba(0,0,0,.25); border-radius: 2px; pointer-events: none; }
.mu-frame::after { content: ""; position: absolute; inset: 2px; border: 1px solid rgba(255,255,255,.45); border-radius: 3px; pointer-events: none; }
.mu-mat { background: #fdf6e3; padding: 12px; box-shadow: inset 0 0 0 1px rgba(0,0,0,.08), inset 2px 2px 6px rgba(0,0,0,.14); }
.mu-canvas { background: #fdf6e3; max-height: 300px; overflow: hidden; display: grid; place-items: center; box-shadow: inset 0 0 0 1px rgba(0,0,0,.2), 0 1px 0 rgba(255,255,255,.6); }
.mu-work--big .mu-canvas { max-height: 380px; }
.mu-work--top .mu-canvas { max-height: 460px; }
.mu-canvas img { display: block; width: 100%; height: 100%; object-fit: cover; }
/* frame finishes */
.mu-frame--gold .mu-frame { background: linear-gradient(135deg, #f7e27a 0%, #c9951e 28%, #8a6410 52%, #e3bd4a 76%, #a67a16 100%); }
.mu-frame--gold .mu-frame::before { border-color: rgba(90,60,0,.45); box-shadow: inset 0 0 0 3px rgba(255,235,160,.45); }
.mu-frame--walnut .mu-frame { background: linear-gradient(135deg, #7a4a2a 0%, #4a2a16 35%, #6b3f24 60%, #3a1f10 100%); }
.mu-frame--walnut .mu-mat { background: #f1e7d0; }
.mu-frame--white .mu-frame { background: linear-gradient(135deg, #ffffff 0%, #ececec 40%, #ffffff 70%, #dcdcdc 100%); }
.mu-frame--white .mu-mat { background: #fafafa; }
.mu-frame--black .mu-frame { background: linear-gradient(135deg, #3a3a44 0%, #16161c 40%, #2a2a33 70%, #0e0e12 100%); }
.mu-frame--black .mu-mat { background: #f4f1ea; }
.mu-frame--royal .mu-frame { background: linear-gradient(135deg, #b39dff 0%, #5a3ad8 35%, #9945ff 60%, #3a1f99 100%); }
.mu-frame--royal .mu-mat { background: #f3edff; }
/* brass plaque */
.mu-plaque { margin: 12px auto 0; width: 86%; background: linear-gradient(#f3d98a, #c9a33e 60%, #a87f22); border: 2px solid #5a3f0a; border-radius: 4px; padding: 6px 10px 5px; display: grid; gap: 1px; box-shadow: 0 2px 0 rgba(0,0,0,.35), inset 0 1px 0 rgba(255,255,255,.6); text-align: center; position: relative; }
.mu-plaque::before, .mu-plaque::after { content: ""; position: absolute; top: 50%; width: 5px; height: 5px; border-radius: 50%; background: #5a3f0a; transform: translateY(-50%); box-shadow: inset 0 1px 0 rgba(255,255,255,.5); }
.mu-plaque::before { left: 4px; } .mu-plaque::after { right: 4px; }
.mu-plaque b { font: 400 17px/1.05 var(--display); color: #2a1f08; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mu-plaque span { font: 700 9px/1.3 var(--mono); text-transform: uppercase; letter-spacing: .7px; color: #5a3f0a; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mu-plaque em { font: 700 10px/1.2 var(--mono); font-style: normal; color: #2a1f08; }
.mu-medal { position: absolute; z-index: 2; left: -14px; top: -16px; font-size: 40px; filter: drop-shadow(2px 3px 0 rgba(0,0,0,.35)); animation: medal .6s cubic-bezier(.2,1.6,.4,1) both; }
@keyframes medal { from { transform: scale(0) rotate(-30deg); } to { transform: scale(1) rotate(-8deg); } }
/* podium */
.mu-top3 { padding: 30px 0 10px; background: linear-gradient(#efe8da, #e2d7c0); }
.mu-podium { display: grid; grid-template-columns: 1fr 1.25fr 1fr; gap: 26px; align-items: end; padding: 30px 0 24px; }
.mu-podium .mu-work--top:nth-child(2) { transform: translateY(-14px); }
.mu-podium .mu-work--top:nth-child(2):hover { transform: translateY(-20px) rotate(-.4deg); }
.mu-podium .mu-work--top .mu-frame { padding: 18px; box-shadow: 14px 16px 0 rgba(0,0,0,.42), 0 0 0 4px var(--ros-ink); }
.mu-podium .mu-work--top .mu-plaque b { font-size: 21px; }
.mu-podium .mu-light-spot { display: none; }
.mu-podium .mu-work::before { display: none; }
.mu-light-spot { position: absolute; left: 50%; top: -26px; transform: translateX(-50%); width: 60px; height: 14px; background: var(--ros-ink); border-radius: 0 0 10px 10px; }
.mu-light-spot::after { content: ""; position: absolute; left: 50%; top: 14px; transform: translateX(-50%); border-left: 70px solid transparent; border-right: 70px solid transparent; border-top: 60px solid rgba(255, 240, 180, .14); filter: blur(2px); pointer-events: none; }
.mu-work::before { content: ""; position: absolute; left: 50%; top: -34px; width: 3px; height: 26px; background: var(--ros-ink); transform: translateX(-50%); }

/* upload */
.mu-hang { padding-top: 30px; }
.mu-form { display: grid; gap: 10px; }
.mu-form input[type=text], .mu-form textarea { font: 400 16px/1.35 var(--body); padding: 11px 14px; border: 3px solid var(--ros-ink); border-radius: 14px; background: #fff; color: var(--ink); width: 100%; box-sizing: border-box; resize: vertical; }
.mu-drop { position: relative; display: grid; place-items: center; gap: 8px; min-height: 150px; border: 3px dashed var(--ros-ink); border-radius: 16px; background: #fff; padding: 14px; cursor: pointer; text-align: center; overflow: hidden; }
.mu-drop.is-over { background: #fff4c2; }
.mu-drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.mu-drop-txt { display: grid; gap: 4px; } .mu-drop-txt b { font: 400 20px/1.1 var(--display); color: var(--ros-ink); } .mu-drop-txt small { color: #555; }
.mu-drop img { max-height: 220px; max-width: 100%; border: 3px solid var(--ros-ink); border-radius: 8px; } .mu-drop.has-file .mu-drop-txt { display: none; }
.mu-check { display: flex; gap: 10px; align-items: flex-start; font-size: 14.5px; line-height: 1.35; } .mu-check input { margin-top: 3px; } .mu-check small { color: #555; }
.mu-progress { margin: 0; font: 400 16px/1.3 var(--hand); color: var(--ros-ink); }
.mu-mine { margin-top: 18px; } .mu-mine h3 { margin: 0 0 8px; }
.mu-mine ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.mu-mine li { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; gap: 10px; align-items: center; background: #fff; border: 3px solid var(--ros-ink); border-radius: 12px; padding: 6px 10px 6px 6px; }
.mu-mine img { width: 64px; height: 48px; object-fit: cover; border-radius: 6px; border: 2px solid var(--ros-ink); cursor: pointer; }
.mu-mine li span { display: grid; line-height: 1.2; } .mu-mine li b { font: 400 17px/1.1 var(--display); } .mu-mine li small { font: 700 10px/1.3 var(--mono); color: #6b6480; text-transform: uppercase; }

/* lightbox */
.mu-light { border: 4px solid var(--ros-ink); border-radius: 22px; padding: 0; max-width: min(1100px, 96vw); width: 100%; background: var(--ros-cream); color: var(--ink); box-shadow: 10px 12px 0 rgba(10,4,30,.6); }
.mu-light::backdrop { background: rgba(20, 10, 40, .72); backdrop-filter: blur(4px); }
.mu-light-in { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(280px, 1fr); }
.mu-light-img { background: #2a1f3a; display: grid; place-items: center; padding: 18px; border-radius: 18px 0 0 18px; }
.mu-light-img img { max-width: 100%; max-height: 72vh; border: 8px solid #c9951e; outline: 3px solid var(--ros-ink); box-shadow: 8px 10px 0 rgba(0,0,0,.45); background: #fdf6e3; }
.mu-light-side { padding: 22px 22px 22px 18px; display: grid; gap: 10px; align-content: start; }
.mu-light .panel-close { position: absolute; right: 12px; top: 12px; z-index: 2; }
.mu-l-by { display: flex; align-items: center; gap: 10px; margin: 0; } .mu-l-by > span:last-child { display: grid; line-height: 1.15; } .mu-l-by small { font: 700 10px/1.3 var(--mono); color: #6b6480; }
.mu-l-by .th-av img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.mu-l-descr { margin: 0; white-space: pre-line; line-height: 1.45; }
.mu-tipbox { background: #fff; border: 3px solid var(--ros-ink); border-radius: 14px; padding: 12px; display: grid; gap: 8px; }
.mu-tip-head { margin: 0; display: grid; } .mu-tip-head small { color: #555; }
.mu-tip-amounts { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.mu-tip-status { margin: 0; min-height: 1em; color: var(--ros-ink); }
.mu-modbar { font-size: 14px; display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
@media (max-width: 900px) {
	.mu-top-in { grid-template-columns: minmax(0, 1fr); }
	.mu-light-in { grid-template-columns: minmax(0, 1fr); }
	.mu-light-img { border-radius: 18px 18px 0 0; } .mu-light-img img { max-height: 48vh; }
	.mu-work { width: 200px; } .mu-work--big { width: 260px; }
	.mu-rail-in { gap: 18px; padding: 0 16px; }
	.mu-facade { gap: 20px; height: 70px; } .mu-facade span { width: 22px; height: 58px; }
}

/* lightbox actions */
.mu-l-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.mu-vote { cursor: pointer; display: inline-flex; align-items: baseline; gap: 6px; padding: 8px 14px 7px 12px; border: 3px solid var(--ros-ink); border-radius: 999px; background: #fff; box-shadow: 3px 3px 0 var(--ros-ink); font: inherit; transition: transform .15s; }
.mu-vote span { font-size: 18px; } .mu-vote b { font: 400 22px/1 var(--display); } .mu-vote small { font: 700 10px/1 var(--mono); text-transform: uppercase; letter-spacing: .6px; color: #666; }
.mu-vote.is-on { background: #ffe0ec; } .mu-vote:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--ros-ink); } .mu-vote:disabled { opacity: .6; }
.mu-light .share-hint { margin: 0; font-size: 14px; }
@media (max-width: 900px) {
	.mu-podium { grid-template-columns: 1fr; gap: 34px; }
	.mu-podium .mu-work--top:nth-child(2) { transform: none; order: -1; }
	.mu-work { width: 210px; } .mu-work--big { width: 270px; } .mu-work--top { width: auto; max-width: 420px; margin: 0 auto; }
	.mu-work--top .mu-stack i:first-child { transform: translate(8px, -10px) rotate(2deg); } .mu-work--top .mu-stack i:last-child { transform: translate(4px, -5px) rotate(1deg); }
	.mu-work--top .mu-canvas { max-height: 360px; }
}

/* collections: one framed work per artist, the rest stacked behind */
.mu-stack { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.mu-stack i { position: absolute; inset: 0 auto 0 0; width: 100%; height: calc(100% - 46px); border: 4px solid var(--ros-ink); border-radius: 4px; background: #c9a33e; box-shadow: 6px 8px 0 rgba(0,0,0,.3); }
.mu-stack i:first-child { transform: translate(14px, -12px) rotate(3deg); background: #7a4a2a; }
.mu-stack i:last-child { transform: translate(7px, -6px) rotate(1.5deg); }
.mu-work { z-index: 0; }
.mu-more { position: absolute; z-index: 3; right: 6px; top: -12px; background: var(--ros-ink); color: #fff; font: 700 10px/1 var(--mono); letter-spacing: .5px; padding: 6px 9px; border-radius: 999px; border: 2px solid #fff; box-shadow: 2px 2px 0 rgba(0,0,0,.3); transform: rotate(6deg); }
.mu-work--top .mu-more { right: 10px; top: -10px; font-size: 12px; }
.mu-light-img { position: relative; }
.mu-l-nav { position: absolute; left: 50%; bottom: 10px; transform: translateX(-50%); display: flex; align-items: center; gap: 8px; background: rgba(0,0,0,.6); color: #fff; padding: 4px 6px; border-radius: 999px; font: 700 12px/1 var(--mono); }
.mu-l-nav button { cursor: pointer; width: 32px; height: 32px; border-radius: 50%; border: 2px solid #fff; background: #fff; color: var(--ros-ink); font-size: 12px; }
.mu-l-strip { margin-top: 4px; }
.mu-l-strip-h { margin: 0 0 6px; font: 700 10px/1.3 var(--mono); text-transform: uppercase; letter-spacing: .7px; color: #666; }
.mu-l-thumbs { display: flex; gap: 8px; overflow-x: auto; padding: 4px 2px 8px; scrollbar-width: thin; }
.mu-l-thumb { flex: 0 0 auto; width: 64px; height: 64px; padding: 3px; border: 3px solid var(--ros-ink); border-radius: 4px; background: #c9a33e; cursor: pointer; box-shadow: 2px 2px 0 rgba(0,0,0,.3); opacity: .8; transition: transform .15s, opacity .15s; }
.mu-l-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; background: #fdf6e3; }
.mu-l-thumb:hover, .mu-l-thumb.is-cur { opacity: 1; transform: translateY(-3px); }
.mu-l-thumb.is-cur { background: var(--yellow); outline: 3px solid var(--yellow); }

/* museum locked */
.mu-locked { padding: 40px 0 70px; background: linear-gradient(#efe8da, #e2d7c0); text-align: center; }
.mu-doors { position: relative; width: min(300px, 70vw); margin: 0 auto 26px; display: grid; grid-template-columns: 1fr 1fr; gap: 6px; padding: 10px; background: #8a6410; border: 4px solid var(--ros-ink); border-radius: 18px 18px 6px 6px; box-shadow: 10px 12px 0 rgba(0,0,0,.35); }
.mu-door { aspect-ratio: 1 / 1.5; background: linear-gradient(90deg, #5a3a1a, #3a2410 60%, #5a3a1a); border: 3px solid var(--ros-ink); border-radius: 14px 14px 4px 4px; position: relative; }
.mu-door::before, .mu-door::after { content: ""; position: absolute; left: 14%; right: 14%; border: 3px solid rgba(0,0,0,.45); border-radius: 6px; }
.mu-door::before { top: 10%; height: 30%; } .mu-door::after { top: 52%; height: 34%; }
.mu-door i { position: absolute; top: 48%; width: 12px; height: 12px; border-radius: 50%; background: #ffd43b; border: 2px solid var(--ros-ink); }
.mu-door:first-child i { right: 8px; } .mu-door:last-child i { left: 8px; }
.mu-chain { position: absolute; left: 50%; top: 46%; transform: translate(-50%, -50%) rotate(-12deg); font-size: 44px; filter: drop-shadow(2px 3px 0 rgba(0,0,0,.4)); }
.mu-placard { display: inline-grid; gap: 8px; max-width: 520px; padding: 18px 26px 20px; background: #fff; border: 4px solid var(--ros-ink); border-radius: 10px; box-shadow: 6px 6px 0 var(--ros-ink); transform: rotate(-1deg); }
.mu-placard b { font: 400 34px/1 var(--display); color: var(--ros-ink); letter-spacing: 1px; }
.mu-placard span { font-size: 15px; color: #444; }
.mu-placard p { margin: 8px 0 0; display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }

/* ---- the Burn Pit ---- */
/* street: only a glow on the horizon, far behind the hills (click → the real pit in the 2.5D city) */
.far-fire { position: absolute; left: 6%; bottom: calc(var(--ground) + 180px * var(--s)); width: calc(110px * var(--s)); z-index: 0; opacity: .92; filter: drop-shadow(0 0 14px rgba(255,159,67,.55)); transition: transform .3s; }
.far-fire:hover { transform: scale(1.06); }
.far-fire svg { display: block; width: 100%; overflow: visible; }
.ff-tyres ellipse { fill: #2b2535; stroke: var(--ink); stroke-width: 2; }
.ff-flames path { fill: #ff9f43; stroke: var(--ink); stroke-width: 1.5; transform-origin: 50% 100%; animation: ff-flicker 1.1s ease-in-out infinite alternate; }
.ff-flames .ff-f1 { fill: #ffd43b; animation-duration: .9s; } .ff-flames .ff-f3 { fill: #e8364b; animation-duration: 1.3s; animation-delay: -.4s; }
@keyframes ff-flicker { from { transform: scaleY(.92) skewX(-2deg); } to { transform: scaleY(1.08) skewX(2deg); } }
.ff-smoke circle { fill: rgba(70,64,80,.35); animation: ff-smoke 4s linear infinite; }
.ff-smoke circle:nth-child(2) { animation-delay: -1.4s; } .ff-smoke circle:nth-child(3) { animation-delay: -2.7s; }
@keyframes ff-smoke { 0% { transform: translate(0, 30px) scale(.5); opacity: .7; } 100% { transform: translate(26px, -60px) scale(1.5); opacity: 0; } }
.mood-rainy .far-fire, .mood-storm .far-fire { opacity: .6; }
@media (max-width: 760px) { .far-fire { left: 3%; width: calc(90px * var(--s)); } }
/* city panel */
.bp .bp-lead { font-size: 16px; }
.bp-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 14px 0; }
.th-stat--fire { background: #ffe8d6; }
.bp-stats small { display: block; font: 700 10px/1.3 var(--mono); color: #666; text-transform: uppercase; letter-spacing: .5px; }
.bp-fire-box { display: grid; gap: 14px; border-color: #e8364b !important; }
.bp-step h3 { margin: 0 0 4px; font: 400 22px/1 var(--display); }
.bp-wallets { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 6px; }
.bp-wallets img { vertical-align: -4px; border-radius: 4px; }
.bp-connected { margin: 6px 0 0; font-size: 14px; } .bp-connected code { background: #fff; border: 2px solid var(--ink); border-radius: 6px; padding: 2px 6px; }
.bp-amounts { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-top: 6px; }
.btn-fire { background: #e8364b; color: #fff; box-shadow: 4px 4px 0 var(--ink); } .btn-fire:hover { color: #fff; background: #ff4f6d; }
.bp-status { margin: 0; min-height: 1.4em; font-size: 15px; }
.bp-cert-wrap { margin: 16px 0; display: grid; gap: 10px; } .bp-cert-wrap[hidden], .bp-connected[hidden] { display: none; }
.bp-cert { width: 100%; height: auto; border: 4px solid var(--ink); border-radius: 12px; box-shadow: 6px 6px 0 var(--ink); background: #1a1423; }
.bp-share { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.bp-boards { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin: 18px 0 10px; }
.bp-h3 { margin: 0 0 8px; font: 400 22px/1 var(--display); }
.bp-top, .bp-recent { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; font-size: 14px; }
.bp-top li { display: grid; grid-template-columns: 30px 1fr auto; gap: 8px; align-items: baseline; background: #fff; border: 2px solid var(--ink); border-radius: 8px; padding: 6px 10px; box-shadow: 2px 2px 0 var(--ink); }
.bp-top li:first-child { background: #fff3c4; } .bp-rank { font-size: 18px; }
.bp-amt { font: 700 13px/1.2 var(--mono); color: #e8364b; } .bp-amt small, .bp-top small { color: #666; font-weight: 400; }
.bp-recent li { border-bottom: 1px dashed #d8d0c0; padding: 4px 0; }
@media (max-width: 760px) { .bp-stats, .bp-boards { grid-template-columns: 1fr; } }

/* ---- Photo Booth ---- */
.booth-lead { font-size: 16px; }
.booth-grid { display: grid; grid-template-columns: minmax(260px, 380px) 1fr; gap: 22px; align-items: start; }
.booth-stage { position: relative; display: grid; gap: 10px; }
.booth-preview { position: relative; border: 4px solid var(--ink); border-radius: 14px; overflow: hidden; box-shadow: 8px 8px 0 var(--ink); background: #fff; aspect-ratio: 1; }
.booth-preview svg { display: block; width: 100%; height: 100%; }
.booth-preview.is-3d { cursor: grab; touch-action: pan-y; }
.booth-preview.is-drag { cursor: grabbing; }
.booth-l { position: absolute; inset: 0; }
.booth-l canvas { display: block; width: 100%; height: 100%; }
.booth-preview.is-round .booth-gl { clip-path: circle(49% at 50% 50%); }
.booth-turn { position: absolute; left: 50%; bottom: 8px; translate: -50% 0; padding: 3px 10px; border-radius: 99px; background: rgba(26, 20, 35, .72); color: #fff; font: 700 11px/1.4 var(--mono); white-space: nowrap; pointer-events: none; transition: opacity .4s; }
.booth-preview.was-dragged .booth-turn { opacity: 0; }
.booth-curtain { position: absolute; left: 0; right: 0; top: -8px; height: 26px; background: repeating-linear-gradient(90deg, #e8364b 0 18px, #fdf6e3 18px 36px); border: 3px solid var(--ink); border-radius: 8px; z-index: 2; }
.booth-flash { position: absolute; inset: 0; background: #fff; opacity: 0; pointer-events: none; border-radius: 14px; }
.booth-flash.is-on { animation: booth-flash .5s ease-out; }
@keyframes booth-flash { 0% { opacity: 1; } 100% { opacity: 0; } }
.booth-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.booth-controls { display: grid; gap: 12px; max-height: 70vh; overflow: auto; padding-right: 6px; }
.booth-group h4 { margin: 0 0 6px; font: 700 10px/1.3 var(--mono); text-transform: uppercase; letter-spacing: .8px; color: #666; }
.booth-opts { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.booth-chip { cursor: pointer; font: 700 12px/1 var(--body); padding: 7px 10px; border: 2px solid var(--ink); border-radius: 999px; background: #fff; box-shadow: 2px 2px 0 var(--ink); transition: transform .1s; }
.booth-chip:hover { transform: translateY(-1px); } .booth-chip.is-on { background: var(--yellow); box-shadow: 1px 1px 0 var(--ink); transform: translate(1px, 1px); }
.booth-sw { cursor: pointer; width: 30px; height: 30px; border-radius: 50%; border: 3px solid var(--ink); background: var(--c); box-shadow: 2px 2px 0 var(--ink); }
.booth-sw.is-on { outline: 3px solid var(--yellow); outline-offset: 2px; transform: scale(1.1); }
.booth-custom { position: relative; width: 30px; height: 30px; border-radius: 50%; border: 3px dashed var(--ink); display: grid; place-items: center; cursor: pointer; overflow: hidden; }
.booth-custom input { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; height: 100%; }
.booth-text input { font: inherit; width: 110px; padding: 5px 8px; border: 2px solid var(--ink); border-radius: 8px; }
@media (max-width: 760px) {
	.booth-grid { grid-template-columns: 1fr; }
	.booth-stage { position: sticky; top: var(--hud-h, 100px); z-index: 5; grid-template-columns: 150px 1fr; align-items: center; gap: 10px 12px; padding: 10px 0 8px; background: var(--paper, #fdf6e3); border-bottom: 3px solid var(--ink); }
	.booth-curtain { display: none; }
	.booth-turn { font-size: 9px; padding: 1px 6px; bottom: 4px; }
	.booth-preview { width: 150px; box-shadow: 4px 4px 0 var(--ink); }
	.booth-actions { flex-direction: column; align-items: stretch; }
	.booth-actions .btn { padding: 9px 12px; font-size: 14px; text-align: center; }
	.booth-stage > .small { display: none; } .booth-stage > .share-hint { grid-column: 1 / -1; margin: 0; }
	#panel .booth-stage { top: 0; }
	.booth-controls { max-height: none; }
	.section-booth .booth-stage { background: #fdf6e3; }
}

.section-booth { background: linear-gradient(#fdf6e3, #ffe8d6); }
.section-booth .booth { max-width: 1100px; margin: 0 auto; }
.section-booth .booth .title { font-size: clamp(34px, 5vw, 56px); }
.section-booth .booth-grid { grid-template-columns: minmax(280px, 420px) 1fr; }
.section-booth .booth-controls { max-height: none; }
@media (max-width: 760px) { .section-booth .booth-grid { grid-template-columns: 1fr; } }
.tax-note { margin: -4px 0 10px; padding: 6px 10px; background: #fff3c4; border: 2px dashed var(--ink); border-radius: 8px; }

/* ---- Mia, the street cat ---- */
.street-cat { position: absolute; left: calc(var(--x) * var(--s) * 1px); bottom: calc(var(--ground) - var(--side) + 4px); width: calc(92px * var(--s)); z-index: 4; transform: translateX(-50%); cursor: pointer; text-decoration: none; color: inherit; }
.street-cat .cat-svg { display: block; width: 100%; overflow: visible; transform-origin: 50% 100%; }
.street-cat.left .cat-svg { scale: -1 1; }
.street-cat .shadow { position: absolute; left: 14%; right: 14%; bottom: -3px; height: 8px; background: rgba(26,20,35,.25); border-radius: 50%; z-index: -1; }
.cat-svg .cat-leg, .cat-svg .cat-tail, .cat-svg .cat-head { transform-box: fill-box; }
.cat-svg .cat-leg { transform-origin: 50% 0; }
.cat-svg .cat-tail { transform-origin: 100% 100%; animation: cat-tail 1.6s ease-in-out infinite alternate; }
.cat-svg .cat-head { transform-origin: 20% 90%; }
.cat-svg .cat-eyes { transform-box: fill-box; transform-origin: 50% 50%; animation: cat-blink 4.5s infinite; }
.street-cat.walking .cat-svg { animation: cat-bob .26s ease-in-out infinite alternate; }
.street-cat.walking .cat-leg-f1, .street-cat.walking .cat-leg-b2 { animation: cat-step .26s ease-in-out infinite alternate; }
.street-cat.walking .cat-leg-f2, .street-cat.walking .cat-leg-b1 { animation: cat-step .26s ease-in-out infinite alternate-reverse; }
.street-cat.meowing .cat-head { animation: cat-meow .5s ease-in-out 2; }
.street-cat.meowing .cat-tail { animation-duration: .5s; }
.cat-bubble { opacity: 0; transform: translate(-50%, 6px) scale(.9); background: var(--yellow); font-size: calc(13px + 3px * var(--s)); pointer-events: none; }
.cat-bubble::after { background: var(--yellow); }
.street-cat.meowing .cat-bubble, .street-cat:hover .cat-bubble, .street-cat:focus-visible .cat-bubble { opacity: 1; transform: translate(-50%, 0) scale(1); }
.street-cat:focus-visible { outline: 3px solid var(--yellow); outline-offset: 4px; border-radius: 12px; }
@keyframes cat-step { from { transform: rotate(18deg); } to { transform: rotate(-18deg); } }
@keyframes cat-bob { from { transform: translateY(0); } to { transform: translateY(-2px); } }
@keyframes cat-tail { from { transform: rotate(-8deg); } to { transform: rotate(10deg); } }
@keyframes cat-meow { 0%, 100% { transform: rotate(0); } 50% { transform: rotate(-9deg) translateY(-2px); } }
@keyframes cat-blink { 0%, 94%, 100% { transform: scaleY(1); } 96% { transform: scaleY(.1); } }
@media (prefers-reduced-motion: reduce) { .street-cat .cat-svg, .street-cat .cat-tail, .street-cat .cat-leg, .cat-svg .cat-eyes { animation: none !important; } }

/* ==========================================================================
   3D art (pre-rendered clay look, assets/img/3d). Overrides the old SVG rules.
   ========================================================================== */
img.b3d { display: block; width: 100%; height: auto; user-select: none; -webkit-user-drag: none; }
.layer-far { background-image: url("../img/3d/sky-mountains.webp"); }
.layer-mid { background-image: url("../img/3d/sky-hills.webp"); }
.sun { aspect-ratio: 1; }
.sun img { position: absolute; inset: 0; width: 100%; height: 100%; }
.sun .rays { transform-origin: 50% 50%; animation: spin 40s linear infinite; }
.sun .face { filter: drop-shadow(0 0 18px rgba(255, 200, 40, .45)); }
.mood-rainy .sun img, .mood-storm .sun img { filter: grayscale(.7) brightness(.85); }
.cloud img { filter: drop-shadow(0 6px 8px rgba(40, 20, 120, .15)); }
.mood-rainy .cloud img, .mood-storm .cloud img { filter: grayscale(.5) brightness(.82); }
.hovercar img { animation: hover 1.4s ease-in-out infinite alternate; }
/* buildings: soft contact shadow on the pavement + animated layers */
.building::after { content: ""; position: absolute; left: 4%; right: 4%; bottom: -6px; height: 14px; border-radius: 50%; background: radial-gradient(closest-side, rgba(30, 14, 60, .32), transparent); z-index: -1; pointer-events: none; }
.b-welcome::after, .b-plaza::after { left: 16%; right: 16%; }
.building .flag3d, .building .flame3d { position: absolute; inset: 0; width: 100%; height: auto; pointer-events: none; }
.building .flag3d { transform-origin: 50.75% 9%; animation: flag3d 2.2s ease-in-out infinite alternate; }
@keyframes flag3d { from { transform: skewY(-2deg) scaleX(1); } to { transform: skewY(2.5deg) scaleX(.97); } }
.building .flame3d { transform-origin: 50% 23%; animation: flame3d .9s ease-in-out infinite alternate; }
@keyframes flame3d { from { transform: scale(1, .95); filter: brightness(1); } to { transform: scale(1.03, 1.06); filter: brightness(1.12); } }
.b-moon .rocket { position: absolute; inset: 0; transform-box: border-box; }
.b-moon .rocket img { position: absolute; inset: 0; width: 100%; height: auto; }
.b-moon .rocket .flame { opacity: 0; transform-origin: 58.7% 89%; transform-box: border-box; }
.b-moon.launching .rocket .flame { opacity: 1; animation: flicker .12s infinite alternate; }
.radio-tower .radio-fx { position: absolute; inset: 0; width: 100%; height: auto; overflow: visible; pointer-events: none; }
/* lamps are 3D now */
.lamp { width: calc(60px * var(--s)); height: auto; margin-left: calc(-25px * var(--s)); background: none; border: 0; }
.lamp::before { display: none; }
.lamp::after { content: ""; position: absolute; left: 50%; top: 2%; width: 70%; aspect-ratio: 1; transform: translateX(-50%); border-radius: 50%; background: radial-gradient(closest-side, rgba(255, 212, 59, .45), transparent); pointer-events: none; }
/* people: sprite sheets */
.spr { display: block; width: 100%; aspect-ratio: 200 / 283; background-repeat: no-repeat; background-size: 100% 100%; transform-origin: 50% 100%; }
.spr-player { background-image: url("../img/3d/solely-idle.webp"); animation: idle 2s ease-in-out infinite; }
.player.walking .spr-player { background-image: url("../img/3d/solely-walk.webp"); background-size: 800% 100%; animation: spr8 .62s steps(8) infinite; }
.player.left .spr { scale: -1 1; }
@keyframes spr8 { from { background-position: 0 0; } to { background-position: 114.2857% 0; } }
@keyframes spr6 { from { background-position: 0 0; } to { background-position: 120% 0; } }
.npc img.npc3d { transform-origin: 50% 100%; animation: idle 2.4s ease-in-out infinite; }
.npc:nth-of-type(2n) img.npc3d { animation-delay: -1.1s; }
.street-cat { width: calc(110px * var(--s)); }
.spr-cat { background-image: url("../img/3d/mia-walk.webp"); background-size: 600% 100%; }
.street-cat.walking .spr-cat { animation: spr6 .55s steps(6) infinite; }
.street-cat.meowing .spr-cat { background-image: url("../img/3d/mia-meow.webp"); background-size: 100% 100%; animation: cat-meow .5s ease-in-out 2; }
.street-cat.left .spr-cat { scale: -1 1; }
.street-cat .cat-bubble { bottom: 62%; }

/* ---- Community art (front page) ---- */
.section-art { padding: 64px 0 34px; background: linear-gradient(#efe8da, #e2d7c0); }
.ca-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px 30px; flex-wrap: wrap; margin-bottom: 8px; }
.ca-title { margin: 6px 0 6px; font: 400 clamp(34px, 5vw, 56px) / 1 var(--display); color: var(--ink); text-shadow: 3px 3px 0 var(--yellow); }
.ca-sub { margin: 0; max-width: 560px; font-size: 16px; }
.ca-side { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.ca-stats { margin: 0; font: 700 12px/1.3 var(--mono); text-transform: uppercase; letter-spacing: .6px; }
.ca-stats b { font-size: 18px; }
.ca-hall { padding-top: 6px; }
.ca-hall .mu-work { text-decoration: none; color: inherit; display: block; }
.ca-hall .mu-plaque { display: grid; }
.ca-empty .mu-canvas { display: grid; place-items: center; font-size: 52px; background: #f1e7d0; aspect-ratio: 1; }
.ca-door { flex: 0 0 auto; align-self: flex-end; width: 190px; height: 300px; display: grid; place-items: end center; padding-bottom: 26px; text-decoration: none; color: var(--white); background: linear-gradient(90deg, #5a3a1a, #3a2410 55%, #5a3a1a); border: 5px solid var(--ros-ink); border-bottom: 0; border-radius: 95px 95px 0 0; box-shadow: inset 0 0 0 8px #8a6410, 8px 0 0 rgba(0,0,0,.25); position: relative; transition: transform .2s; }
.ca-door::before { content: ""; position: absolute; right: 26px; top: 52%; width: 14px; height: 14px; border-radius: 50%; background: var(--yellow); border: 3px solid var(--ros-ink); }
.ca-door:hover { transform: translateY(-4px); color: var(--white); }
.ca-door-in { display: grid; gap: 4px; text-align: center; background: var(--ros-ink); padding: 10px 14px; border-radius: 10px; box-shadow: 0 0 0 3px var(--yellow); }
.ca-door-in b { font: 400 20px/1 var(--display); color: var(--yellow); }
.ca-door-in small { font: 700 10px/1.2 var(--mono); text-transform: uppercase; letter-spacing: .5px; }
@media (max-width: 760px) { .ca-side .btn-lg { width: 100%; text-align: center; } .ca-door { width: 160px; height: 250px; } }

/* ===================================================================== Moonshot Roadster (3D runner) */
.rs-page { background: var(--paper, #fdf6e3); }
.rs-stage { position: relative; height: max(560px, calc(100svh - var(--hud-h))); overflow: hidden; background: #f1dcff; user-select: none; -webkit-user-select: none; touch-action: none; isolation: isolate; }
.rs-sky { position: absolute; inset: 0; z-index: -1; background: linear-gradient(#8f7bff, #f1dcff 58%); transition: background 2s; }
.rs-sky::before { content: ""; position: absolute; inset: 0; opacity: 0; transition: opacity 2s; background-image: radial-gradient(2px 2px at 12% 18%, #fff 50%, transparent 51%), radial-gradient(1.5px 1.5px at 33% 8%, #fff 50%, transparent 51%), radial-gradient(2px 2px at 58% 22%, #fff 50%, transparent 51%), radial-gradient(1.5px 1.5px at 72% 12%, #fff 50%, transparent 51%), radial-gradient(2px 2px at 88% 30%, #fff 50%, transparent 51%), radial-gradient(1.5px 1.5px at 22% 36%, #fff 50%, transparent 51%), radial-gradient(1.5px 1.5px at 46% 40%, #fff 50%, transparent 51%), radial-gradient(2px 2px at 95% 6%, #fff 50%, transparent 51%); background-size: 420px 300px; }
.rs-sun { position: absolute; right: 14%; top: 7%; width: 110px; height: 110px; border-radius: 50%; background: #fff6dc; box-shadow: 0 0 60px 20px rgba(255, 246, 220, .5); transition: all 2s; }
.rs-earth { position: absolute; right: 16%; top: 9%; width: 120px; height: 120px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #14c88a 0 18%, transparent 19%), radial-gradient(circle at 62% 60%, #14c88a 0 14%, transparent 15%), #4da3ff; box-shadow: 0 0 40px rgba(77, 163, 255, .6); opacity: 0; transition: opacity 2s; }
.rs-stage[data-zone="1"] .rs-sky { background: linear-gradient(#ff7a59, #ffd9a8 60%); }
.rs-stage[data-zone="1"] .rs-sun { top: 30%; width: 150px; height: 150px; background: #ffd27a; box-shadow: 0 0 90px 30px rgba(255, 170, 90, .55); }
.rs-stage[data-zone="2"] .rs-sky { background: linear-gradient(#5b2a86, #d77ac8 62%); }
.rs-stage[data-zone="2"] .rs-sun { top: 40%; background: #ff9ff0; box-shadow: 0 0 80px 30px rgba(255, 79, 200, .45); }
.rs-stage[data-zone="3"] .rs-sky { background: linear-gradient(#0b0a2a, #2c2160 70%); }
.rs-stage[data-zone="3"] .rs-sky::before, .rs-stage[data-zone="4"] .rs-sky::before { opacity: 1; }
.rs-stage[data-zone="3"] .rs-sun { width: 60px; height: 60px; background: #f3ecff; box-shadow: 0 0 30px 6px rgba(243, 236, 255, .5); }
.rs-stage[data-zone="4"] .rs-sky { background: linear-gradient(#05040f, #24202e 70%); }
.rs-stage[data-zone="4"] .rs-sun { opacity: 0; }
.rs-stage[data-zone="4"] .rs-earth { opacity: 1; }
.rs-canvas { position: absolute; inset: 0; }
.rs-canvas canvas { display: block; width: 100%; height: 100%; outline: none; }
.rs-speed { position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .3s; background: repeating-conic-gradient(from 0deg at 50% 45%, transparent 0 4deg, rgba(255, 255, 255, .22) 4.2deg 4.6deg, transparent 4.8deg 11deg); -webkit-mask: radial-gradient(circle at 50% 45%, transparent 0 28%, #000 62%); mask: radial-gradient(circle at 50% 45%, transparent 0 28%, #000 62%); }
.rs-stage.is-boost .rs-speed { opacity: 1; animation: rs-speed .25s linear infinite; }
@keyframes rs-speed { to { transform: scale(1.04); } }
.rs-flash { position: absolute; inset: 0; background: #fff; opacity: 0; pointer-events: none; }
.rs-flash.is-on { animation: rs-flash .45s ease-out; }
@keyframes rs-flash { 0% { opacity: .85; } 100% { opacity: 0; } }

/* HUD */
.rs-hud { position: absolute; inset: 0; pointer-events: none; font-family: var(--display); }
.rs-hud-l, .rs-hud-r { position: absolute; top: 14px; display: grid; gap: 8px; }
.rs-hud-l { left: 14px; justify-items: start; }
.rs-hud-r { right: 14px; justify-items: end; }
.rs-pill { display: inline-flex; align-items: center; gap: 10px; padding: 8px 18px; border: 4px solid var(--ink); border-radius: 999px; background: #fdf6e3; box-shadow: 4px 4px 0 var(--ink); font-size: 18px; color: var(--ink); white-space: nowrap; }
.rs-pill--coins { background: var(--yellow); font-size: 30px; padding: 6px 20px 6px 10px; }
.rs-coin { width: 30px; height: 30px; border-radius: 50%; background: radial-gradient(circle at 40% 35%, #ffe680, #ffcf33 60%, #d9a400); border: 3px solid var(--ink); }
.rs-pill--combo { font: 700 15px/1 var(--mono); background: #fff; }
.rs-pill--shield { font: 700 15px/1 var(--mono); background: #8be9ff; }
.rs-pill--mc { font-size: 26px; }
.rs-pill--mc span { font: 700 15px/1 var(--mono); }
.rs-zone { font: 700 12px/1 var(--mono); letter-spacing: 1px; text-transform: uppercase; color: #fff; background: rgba(26, 20, 35, .75); padding: 5px 10px; border-radius: 99px; }
.rs-powers { display: grid; gap: 6px; justify-items: end; }
.rs-pw { position: relative; overflow: hidden; display: inline-flex; gap: 6px; align-items: center; padding: 6px 14px; border: 3px solid var(--ink); border-radius: 99px; background: var(--yellow); box-shadow: 3px 3px 0 var(--ink); font: 700 13px/1 var(--mono); }
.rs-pw em { position: absolute; left: 0; bottom: 0; height: 4px; background: var(--ink); }
.rs-pw i { font-style: normal; }
.rs-thrust { position: absolute; left: 50%; bottom: 16px; translate: -50% 0; display: flex; align-items: center; gap: 12px; padding: 8px 16px; border: 4px solid var(--ink); border-radius: 99px; background: #fdf6e3; box-shadow: 4px 4px 0 var(--ink); }
.rs-thrust span { font: 700 13px/1 var(--mono); }
.rs-thrust i { display: block; width: min(34vw, 260px); height: 18px; border-radius: 99px; background: #d9d4e8; overflow: hidden; }
.rs-thrust b { display: block; height: 100%; width: 100%; border-radius: 99px; background: linear-gradient(90deg, #14f195, #8fe8ff); transition: width .1s linear; }
.rs-thrust.is-low b { background: #e8364b; }
.rs-icon { pointer-events: auto; width: 44px; height: 44px; border: 3px solid var(--ink); border-radius: 50%; background: #fdf6e3; box-shadow: 3px 3px 0 var(--ink); font: 700 15px/1 var(--mono); cursor: pointer; }
.rs-pausebtn { position: absolute; left: 14px; bottom: 16px; }
.rs-count { position: absolute; left: 50%; top: 34%; translate: -50% -50%; font: 400 clamp(80px, 16vw, 170px)/1 var(--display); color: var(--yellow); -webkit-text-stroke: 6px var(--ink); paint-order: stroke; text-shadow: 6px 6px 0 var(--ink); pointer-events: none; }
.rs-count.is-pop { animation: rs-pop .6s ease-out; }
.rs-count.is-go { color: #14f195; }
@keyframes rs-pop { 0% { transform: scale(.4); opacity: 0; } 30% { transform: scale(1.15); opacity: 1; } 100% { transform: scale(1); } }
.rs-toast { position: absolute; left: 50%; top: 22%; translate: -50% 0; padding: 10px 20px; border: 4px solid var(--ink); border-radius: 14px; background: #fdf6e3; box-shadow: 5px 5px 0 var(--ink); font: 400 22px/1.1 var(--display); color: var(--ink); white-space: nowrap; opacity: 0; transform: translateY(10px) scale(.9); transition: opacity .2s, transform .2s; pointer-events: none; }
.rs-toast.is-on { opacity: 1; transform: none; }
.rs-toast.is-gold { background: var(--yellow); }
.rs-toast.is-red { background: #ff8a9a; }
.rs-toast.is-blue { background: #8be9ff; }
.rs-toast.is-zone { background: #14f195; font-size: 28px; }
.rs-touchhint { position: absolute; left: 50%; bottom: 84px; translate: -50% 0; width: min(92%, 420px); padding: 10px 14px; border-radius: 12px; background: rgba(26, 20, 35, .85); color: #fff; font: 700 12px/1.4 var(--mono); text-align: center; pointer-events: none; }

/* menu / pause / results */
.rs-menu, .rs-over, .rs-pause { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: 24px; padding: 24px; overflow: auto; touch-action: pan-y; }
.rs-menu { justify-content: flex-start; padding-left: max(24px, 5vw); background: linear-gradient(90deg, rgba(26, 20, 35, .35), transparent 70%); }
.rs-over, .rs-pause { background: rgba(26, 20, 35, .45); }
.rs-menu[hidden], .rs-over[hidden], .rs-pause[hidden] { display: none; }
.rs-card { width: min(100%, 460px); padding: 22px 24px; border: 4px solid var(--ink); border-radius: 20px; background: #fdf6e3; box-shadow: 8px 8px 0 var(--ink); }
.rs-card--board { width: min(100%, 340px); align-self: center; }
.rs-title { margin: 6px 0 8px; font: 400 clamp(38px, 5vw, 58px)/.95 var(--display); color: var(--ink); text-shadow: 3px 3px 0 var(--yellow); }
.rs-title span { color: #9945ff; display: block; }
.rs-lead { margin: 0 0 14px; font-size: 15px; line-height: 1.45; }
.rs-label { margin: 10px 0 6px; font: 700 11px/1 var(--mono); letter-spacing: 1.5px; text-transform: uppercase; color: #6d5f78; }
.rs-drivers { display: grid; gap: 6px; max-height: 168px; overflow: auto; }
.rs-drv { display: flex; align-items: center; gap: 10px; padding: 6px 10px; border: 3px solid var(--ink); border-radius: 12px; background: #fff; cursor: pointer; font-size: 14px; }
.rs-drv:has(input:checked) { background: var(--yellow); }
.rs-drv input { accent-color: #9945ff; }
.rs-drv img, .rs-av { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; border: 2px solid var(--ink); display: grid; place-items: center; background: #b98cff; font: 400 16px/1 var(--display); }
.rs-drv b { display: block; } .rs-drv small { font: 700 11px/1.2 var(--mono); color: #6d5f78; }
.rs-paints { display: flex; flex-wrap: wrap; gap: 8px; }
.rs-sw { width: 38px; height: 38px; border-radius: 10px; border: 3px solid var(--ink); background: linear-gradient(135deg, var(--c) 0 62%, var(--s) 62% 74%, var(--c) 74%); box-shadow: 2px 2px 0 var(--ink); cursor: pointer; position: relative; }
.rs-sw.is-on { outline: 3px solid #9945ff; outline-offset: 2px; transform: scale(1.08); }
.rs-sw--pass::after { content: "🛂"; position: absolute; right: -8px; top: -10px; font-size: 13px; }
.rs-sw.is-locked { opacity: .35; cursor: not-allowed; }
.rs-paintname { margin: 6px 0 0; }
.rs-go { display: flex; gap: 10px; align-items: center; margin: 16px 0 10px; }
.rs-keys { margin: 0; color: #6d5f78; line-height: 1.5; }
.rs-vs { margin: 0 0 10px; padding: 8px 12px; border: 3px solid var(--ink); border-radius: 12px; background: #ff8a9a; font-size: 14px; }
.rs-soon { padding: 10px 12px; border-radius: 12px; background: #fff; border: 3px dashed var(--ink); }
.rs-h2 { margin: 4px 0 10px; font: 400 28px/1 var(--display); }
.rs-board { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.rs-board li { display: grid; grid-template-columns: 28px 1fr auto auto; gap: 8px; align-items: center; padding: 6px 10px; border: 3px solid var(--ink); border-radius: 12px; background: #fff; font-size: 14px; }
.rs-board li:nth-child(1) { background: var(--yellow); }
.rs-board li.rs-empty { display: block; color: #6d5f78; }
.rs-board a { color: inherit; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rs-rank { font: 400 18px/1 var(--display); }
.rs-zonetag { font: 700 10px/1 var(--mono); text-transform: uppercase; color: #6d5f78; }
.rs-board b { font: 400 17px/1 var(--display); }
.rs-board--page { max-width: 640px; }
.rs-card--over { width: min(100%, 620px); text-align: center; }
.rs-o-head { margin: 4px 0 8px; font: 400 clamp(24px, 3.2vw, 34px)/1.05 var(--display); }
.rs-o-money { display: flex; align-items: baseline; justify-content: center; gap: 12px; margin: 6px 0 10px; }
.rs-o-money b { font: 400 clamp(54px, 8vw, 84px)/1 var(--display); color: var(--yellow); -webkit-text-stroke: 4px var(--ink); paint-order: stroke; text-shadow: 4px 4px 0 var(--ink); }
.rs-o-money span { font: 700 13px/1 var(--mono); text-transform: uppercase; padding: 6px 10px; border-radius: 99px; background: var(--ink); color: #fff; }
.rs-o-stats { list-style: none; margin: 0 0 10px; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.rs-o-stats li { padding: 8px 4px; border: 3px solid var(--ink); border-radius: 12px; background: #fff; }
.rs-o-stats b { display: block; font: 400 24px/1 var(--display); }
.rs-o-stats span { font: 700 10px/1 var(--mono); text-transform: uppercase; color: #6d5f78; }
.rs-o-cause, .rs-o-rank { margin: 4px 0; font-size: 14px; }
.rs-o-rank { font-weight: 700; }
.rs-o-card { margin: 10px 0; }
.rs-o-card img { width: 100%; height: auto; border: 3px solid var(--ink); border-radius: 12px; display: block; }
.rs-o-btns { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 12px; }
.rs-stage.is-racing { cursor: none; }
.rs-stage.is-racing .rs-hud button { cursor: pointer; }
.rs-info { padding: 56px 0; }
.rs-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; margin-top: 18px; }
.rs-tile { padding: 18px; border: 4px solid var(--ink); border-radius: 16px; background: #fff; box-shadow: 6px 6px 0 var(--ink); }
.rs-tile h3 { margin: 0 0 6px; font: 400 22px/1 var(--display); }
.rs-tile p { margin: 0; font-size: 15px; line-height: 1.5; }
.rs-nogl .rs-canvas { display: none; }
@media (max-width: 760px) {
	.rs-stage { height: max(540px, calc(100svh - var(--hud-h))); }
	.rs-menu { flex-direction: column; align-items: stretch; justify-content: flex-start; padding: 14px; background: rgba(26, 20, 35, .25); }
	.rs-card, .rs-card--board { width: 100%; }
	.rs-card { padding: 16px; box-shadow: 5px 5px 0 var(--ink); }
	.rs-keys { display: none; }
	.rs-pill { font-size: 15px; padding: 5px 12px; border-width: 3px; box-shadow: 3px 3px 0 var(--ink); }
	.rs-pill--coins { font-size: 22px; }
	.rs-coin { width: 22px; height: 22px; }
	.rs-pill--mc { font-size: 18px; }
	.rs-pill--mc span { font-size: 11px; }
	.rs-toast { font-size: 17px; top: 26%; }
	.rs-o-stats { grid-template-columns: repeat(2, 1fr); }
	.rs-thrust { bottom: 12px; padding: 6px 12px; }
	.rs-pausebtn { bottom: 70px; }
}
.rs-hud [hidden], .rs-stage [hidden] { display: none !important; }
/* front page: Roadster teaser */
.section-roadster { background: linear-gradient(180deg, #8f7bff, #f1dcff); }
.rst { display: grid; grid-template-columns: 1fr 1.1fr; gap: 32px; align-items: center; }
.rst .title span { color: #fff; -webkit-text-stroke: 0; text-shadow: 3px 3px 0 var(--ink); }
.rst-chips { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 18px; padding: 0; }
.rst-chips li { padding: 6px 12px; border: 3px solid var(--ink); border-radius: 99px; background: #fdf6e3; font: 700 13px/1 var(--mono); box-shadow: 3px 3px 0 var(--ink); }
.rst .btn-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.rst-art { position: relative; display: block; aspect-ratio: 16 / 10; border: 4px solid var(--ink); border-radius: 22px; overflow: hidden; box-shadow: 8px 8px 0 var(--ink); background: linear-gradient(#8f7bff, #f1dcff 60%); }
.rst-road { position: absolute; left: 50%; bottom: 0; width: 170%; height: 52%; translate: -50% 0; background: linear-gradient(90deg, transparent 49.4%, #fff6dc 49.4% 50.6%, transparent 50.6%) 0 0 / 100% 60px, #4f4966; clip-path: polygon(42% 0, 58% 0, 100% 100%, 0 100%); animation: rst-road .5s linear infinite; }
@keyframes rst-road { to { background-position: 0 60px, 0 0; } }
.rst-car { position: absolute; left: 50%; bottom: 8%; width: 74%; translate: -50% 0; animation: rst-hop 2.4s ease-in-out infinite; filter: drop-shadow(0 18px 10px rgba(26, 20, 35, .25)); }
@keyframes rst-hop { 0%, 100% { transform: translateY(0) rotate(0); } 45% { transform: translateY(-14%) rotate(-3deg); } 55% { transform: translateY(-14%) rotate(-3deg); } }
.rst-top { position: absolute; right: 12px; top: 12px; margin: 0; padding: 8px 12px; list-style: none; border: 3px solid var(--ink); border-radius: 14px; background: #fdf6e3; font: 700 12px/1.5 var(--mono); color: var(--ink); }
.rst-top b { font-family: var(--display); } .rst-top em { font-style: normal; color: #9945ff; }
.btn.is-disabled { opacity: .6; pointer-events: none; }
@media (max-width: 860px) { .rst { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { .rst-road, .rst-car { animation: none; } }
.rs-over, .rs-pause { align-items: flex-start; }
.rs-over > .rs-card, .rs-pause > .rs-card { margin: auto; }
.rs-o-card { max-width: 440px; margin: 10px auto; }
.rst-art img.rst-car { width: 66%; height: auto; bottom: 10%; }
/* Roadster qualified runs */
.rs-go { flex-wrap: wrap; }
.rs-paidnote { margin: 0 0 10px; line-height: 1.45; color: #4a3f55; }
.rs-tabs { display: flex; gap: 6px; margin-bottom: 10px; }
.rs-tab { flex: 1; padding: 8px 10px; border: 3px solid var(--ink); border-radius: 12px; background: #fff; font: 700 12px/1 var(--mono); cursor: pointer; }
.rs-tab.is-on { background: var(--yellow); box-shadow: 2px 2px 0 var(--ink); }
.rs-qbadge { padding: 5px 10px; border: 3px solid var(--ink); border-radius: 99px; background: #14f195; font: 700 12px/1 var(--mono); box-shadow: 3px 3px 0 var(--ink); }
.rs-o-daily { margin: 4px 0; padding: 8px 12px; border: 3px solid var(--ink); border-radius: 12px; background: #14f195; font-size: 14px; }

/* ===================================================================== v4.0.0 · ecosystem */
/* hero: CA search */
.hero-bank { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 8px 0 4px; padding: 6px 8px 6px 10px; max-width: 560px; background: var(--ros-cream); border: 3px solid var(--ros-ink); border-radius: 18px; box-shadow: 4px 4px 0 var(--ros-ink); pointer-events: auto; }
.hero-bank-ico { font-size: 22px; }
.hero-bank input { flex: 1 1 200px; min-width: 0; border: 0; background: transparent; font: 400 16px/1.2 var(--body); color: var(--ros-ink); padding: 6px 2px; outline: none; }
.hero-bank input::placeholder { color: #6b6690; }
.hero-bank small { flex-basis: 100%; font: 400 14px/1.1 var(--hand); color: #4b4670; padding: 0 2px; }
.hero-bank small b { font-family: var(--mono); font-size: 12px; }
/* teaser grids */
.bkt, .rft, .lbt { display: grid; grid-template-columns: 1.15fr 1fr; gap: 32px; align-items: center; }
.bkt--compact, .rft--compact { grid-template-columns: 1fr; gap: 16px; }
.bkt-form { display: flex; gap: 8px; flex-wrap: wrap; margin: 14px 0; }
.bkt-form input { flex: 1 1 240px; min-width: 0; padding: 12px 14px; border: var(--line); border-radius: 14px; font: 400 16px/1.2 var(--mono); background: var(--white); box-shadow: var(--shadow-sm); }
.bkt-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.bkt-list li { background: var(--white); border: 3px solid var(--ink); border-radius: 14px; padding: 9px 12px; box-shadow: 3px 3px 0 var(--ink); font-size: 15px; }
.bkt-side { display: grid; gap: 16px; justify-items: center; }
.bkt-side .th-stats { width: 100%; }
.bkt-art img { width: min(100%, 300px); height: auto; filter: drop-shadow(8px 10px 0 rgba(26, 20, 35, .18)); }
.eco-more { margin-top: 16px; } .eco-more summary { cursor: pointer; font: 700 14px/1.2 var(--mono); text-transform: uppercase; letter-spacing: 1px; }
.rf-jackpot { display: grid; justify-items: center; text-align: center; gap: 4px; padding: 18px 20px; background: linear-gradient(135deg, #1d0b3f, #3a1580); color: #fff; border: 4px solid var(--ink); border-radius: 22px; box-shadow: 6px 6px 0 var(--ink); }
.rf-jackpot small { font: 700 11px/1.2 var(--mono); letter-spacing: 1.5px; text-transform: uppercase; color: var(--yellow); }
.rf-jackpot b { font: 400 clamp(44px, 6vw, 72px)/1 var(--display); color: var(--yellow); text-shadow: 4px 4px 0 var(--ink), 0 0 30px rgba(255, 212, 59, .5); }
.rf-jackpot span { font: 400 17px/1.2 var(--hand); }
.rft-board { display: grid; gap: 12px; }
.abt-plan { font: 400 22px/1.2 var(--hand); margin: 0 0 16px; }
.abt-plan b { font-family: var(--display); font-weight: 400; color: var(--purple-d); font-size: 26px; }
/* bookshelves */
.lb-books { display: flex; align-items: flex-end; gap: 6px; flex-wrap: wrap; padding: 0 14px; min-height: 120px; }
.lb-book { position: relative; width: var(--w, 46px); height: var(--h, 170px); display: flex; flex-direction: column; align-items: center; padding: 8px 0 6px; border: 3px solid var(--ink); border-radius: 6px 6px 3px 3px; background: linear-gradient(90deg, rgba(255,255,255,.35), rgba(255,255,255,0) 30%, rgba(0,0,0,.12)), var(--c, #9945ff); color: #fff; cursor: pointer; text-decoration: none; box-shadow: 3px 3px 0 var(--ink); transform-origin: bottom center; transition: transform .18s, box-shadow .18s; font: inherit; }
.lb-book:hover, .lb-book:focus-visible { transform: translateY(-10px) rotate(-3deg); box-shadow: 5px 8px 0 var(--ink); z-index: 2; }
.lb-book .lb-ico { font-size: 20px; line-height: 1; filter: drop-shadow(1px 1px 0 rgba(0,0,0,.35)); }
.lb-book .lb-spine { flex: 1; writing-mode: vertical-rl; transform: rotate(180deg); font: 700 13px/1 var(--mono); letter-spacing: .3px; text-shadow: 1px 1px 0 rgba(0,0,0,.45); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-height: calc(var(--h, 170px) - 60px); margin: 6px 0; }
.lb-book .lb-year { font: 700 9px/1 var(--mono); opacity: .85; }
.lb-books--mini .lb-book .lb-spine { font-size: 11px; }
.lb-books--empty .lb-book { opacity: .55; cursor: default; }
.lb-plank { height: 16px; margin: 0 -4px; background: linear-gradient(#b8794a, #9a5b2e); border: 3px solid var(--ink); border-radius: 6px; box-shadow: 0 10px 0 -4px #6b3f20, 5px 5px 0 var(--ink); }
.lb-top { padding: clamp(26px, 4vw, 48px) 0 24px; background: radial-gradient(120% 70% at 50% 0%, #9fe3d3 0%, #4fb8a6 55%, var(--paper) 100%); }
.lb-top-in, .rf-top-in { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(280px, 1fr); gap: 20px; align-items: end; position: relative; z-index: 2; }
.lb-h1, .rf-h1 { margin: 0; font: 400 clamp(40px, 6vw, 74px)/.95 var(--display); color: #fff; letter-spacing: 2px; text-shadow: 4px 4px 0 var(--ink); }
.lb-sub, .rf-sub { margin: 10px 0 0; font: 400 clamp(17px, 1.6vw, 20px)/1.35 var(--hand); color: var(--ink); max-width: 560px; }
.lb-room { padding: 30px 0 60px; }
.lb-shelf { margin: 0 0 34px; }
.lb-shelf-head { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; margin: 0 0 10px; }
.lb-shelf-head h2 { margin: 0; font: 400 clamp(26px, 3vw, 38px)/1 var(--display); text-shadow: 2px 2px 0 var(--yellow); }
.lb-shelf-head span { font: 400 16px/1.2 var(--hand); color: var(--muted); }
.lb-row { background: linear-gradient(#f6e6b8, #efd9a2); border: 4px solid var(--ink); border-radius: 18px; padding: 18px 8px 0; box-shadow: var(--shadow); }
.lb-cards { list-style: none; margin: 12px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px; }
.lb-card { background: var(--white); border: 3px solid var(--ink); border-radius: 14px; padding: 10px 12px; box-shadow: 3px 3px 0 var(--ink); border-left: 10px solid var(--c, #9945ff); }
.lb-card-btn { display: flex; gap: 10px; align-items: flex-start; width: 100%; text-align: left; background: none; border: 0; padding: 0; cursor: pointer; font: inherit; color: inherit; }
.lb-card-ico { font-size: 26px; line-height: 1; }
.lb-card-txt { display: grid; gap: 2px; } .lb-card-txt b { font-size: 15px; line-height: 1.2; } .lb-card-txt em { font: 400 14px/1.25 var(--hand); color: var(--muted); font-style: normal; }
.lb-tags { margin: 8px 0 0; display: flex; flex-wrap: wrap; gap: 4px; }
.lb-tags span { font: 700 11px/1 var(--mono); padding: 4px 7px; border-radius: 99px; background: var(--paper-2); border: 2px solid var(--ink); }
.lb-reader { border: 0; padding: 0; background: transparent; max-width: min(900px, 94vw); width: 100%; }
.lb-reader::backdrop { background: rgba(29, 11, 63, .7); backdrop-filter: blur(3px); }
.lb-reader-in { position: relative; max-height: 88vh; overflow: auto; background: var(--ros-cream); border: 4px solid var(--ink); border-radius: 22px; box-shadow: 10px 10px 0 var(--ink); padding: 22px 26px 18px; }
.lb-reader-head { display: flex; gap: 16px; align-items: flex-start; padding-right: 40px; border-bottom: 3px dashed rgba(26, 20, 35, .25); padding-bottom: 14px; margin-bottom: 14px; }
.lb-reader-ico { font-size: 44px; line-height: 1; flex: 0 0 auto; }
.lb-reader-head h2 { margin: 4px 0 2px; font: 400 clamp(26px, 3.2vw, 40px)/1.05 var(--display); }
.lb-reader-phrase { margin: 0 0 4px; font: 400 19px/1.3 var(--hand); color: var(--purple-d); }
.lb-reader-body { font-size: 17px; line-height: 1.65; } .lb-reader-body img { max-width: 100%; height: auto; border-radius: 12px; }
.lb-reader-foot { margin-top: 18px; display: grid; gap: 12px; }
.lb-reader-nav { display: flex; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.lb-single .lb-entry { border-left: 12px solid var(--c, #9945ff); }
.lb-entry-head { display: flex; gap: 16px; align-items: flex-start; margin-bottom: 10px; }
.lb-back { margin: 0 0 12px; font: 400 17px/1.2 var(--hand); }
body.lb-open { overflow: hidden; }
/* raffle page */
.rf-top { position: relative; padding: clamp(26px, 4vw, 48px) 0 34px; background: radial-gradient(120% 70% at 50% 0%, #ffd9a0 0%, #ff9f43 55%, var(--paper) 100%); overflow: hidden; }
.rf-board { display: grid; gap: 10px; }
.rf-meta { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.rf-meta span { display: grid; gap: 2px; text-align: center; background: var(--ros-cream); border: 3px solid var(--ros-ink); border-radius: 14px; padding: 8px 6px; box-shadow: 3px 3px 0 var(--ros-ink); }
.rf-meta em { font: 700 10px/1.2 var(--mono); text-transform: uppercase; letter-spacing: 1px; font-style: normal; } .rf-meta b { font: 400 22px/1 var(--display); }
.rf-bunting { position: absolute; left: 0; right: 0; top: 0; display: flex; justify-content: space-between; padding: 0 2%; pointer-events: none; }
.rf-bunting i { width: 0; height: 0; border-left: 14px solid transparent; border-right: 14px solid transparent; border-top: 26px solid var(--red); filter: drop-shadow(0 2px 0 var(--ink)); }
.rf-bunting i:nth-child(2n) { border-top-color: var(--yellow); } .rf-bunting i:nth-child(3n) { border-top-color: var(--green); } .rf-bunting i:nth-child(5n) { border-top-color: var(--sky, #4da3ff); }
.rf-grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(300px, 1fr); gap: 22px; margin: 26px auto 60px; align-items: start; }
.rf-buy h2 { margin: 0 0 12px; font: 400 30px/1 var(--display); }
.rf-step { margin: 14px 0 0; } .rf-step h3 { margin: 0 0 4px; font: 400 22px/1 var(--display); }
.rf-qty { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: 8px 0; }
.rf-qty input { width: 86px; text-align: center; font: 700 22px/1 var(--mono); padding: 8px; border: 3px solid var(--ros-ink); border-radius: 12px; background: #fff; }
.rf-quick { display: flex; gap: 6px; }
.rf-total { margin: 6px 0 12px; font: 400 20px/1.2 var(--hand); } .rf-total b { font: 400 30px/1 var(--display); }
.rf-go { width: 100%; }
.rf-mine { margin-top: 16px; padding-top: 12px; border-top: 3px dashed rgba(27, 29, 92, .25); } .rf-mine h3 { margin: 0 0 4px; font: 400 20px/1 var(--display); }
.rf-wins { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 6px; } .rf-wins li { background: #fff4c2; border: 2px solid var(--ros-ink); border-radius: 10px; padding: 6px 10px; }
.rf-side { display: grid; gap: 16px; }
.rf-winners { margin: 8px 0 0; padding-left: 22px; } .rf-winners li { margin: 4px 0; } .rf-winners code { font-size: 12px; } .rf-winners span { font-weight: 700; color: var(--purple-d); }
.rf-rules { margin: 6px 0 0; padding-left: 20px; display: grid; gap: 6px; font-size: 15px; }
.rf-soon { font: 400 20px/1.3 var(--hand); }
/* burn pit token picker */
.bp-tokens { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 6px; margin-top: 8px; max-height: 240px; overflow: auto; padding-right: 2px; }
.bp-tok { display: flex; align-items: center; gap: 8px; padding: 6px 8px; background: #fff; border: 3px solid var(--ros-ink); border-radius: 12px; cursor: pointer; text-align: left; font: inherit; color: inherit; box-shadow: 3px 3px 0 var(--ros-ink); }
.bp-tok.is-on { background: var(--yellow); } .bp-tok:hover { transform: translate(-1px, -1px); }
.bp-tok img, .bp-tok i { width: 28px; height: 28px; border-radius: 50%; flex: 0 0 auto; display: grid; place-items: center; font-style: normal; font-weight: 700; background: var(--purple); color: #fff; }
.bp-tok span { display: grid; min-width: 0; } .bp-tok b { font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .bp-tok small { font: 400 12px/1.2 var(--mono); color: var(--muted); }
/* about */
.ab-top { padding: clamp(26px, 4vw, 56px) 0 24px; background: radial-gradient(120% 70% at 50% 0%, #c9b6ff 0%, #9945ff 55%, var(--paper) 100%); }
.ab-top-in { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(200px, 1fr); gap: 20px; align-items: center; }
.ab-h1 { margin: 0; font: 400 clamp(38px, 6vw, 76px)/1 var(--display); color: #fff; text-shadow: 4px 4px 0 var(--ink); letter-spacing: 1px; }
.ab-lead { margin: 14px 0 0; font-size: clamp(17px, 1.7vw, 21px); line-height: 1.5; max-width: 62ch; color: #fff; }
.ab-fig img { width: min(100%, 260px); height: auto; display: block; margin: 0 auto; filter: drop-shadow(8px 10px 0 rgba(26, 20, 35, .25)); }
.ab-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; margin: 30px auto; }
.ab-card { display: grid; gap: 8px; align-content: start; } .ab-card h2 { margin: 0; font: 400 28px/1.05 var(--display); } .ab-card p { margin: 0; font-size: 16px; line-height: 1.5; }
.ab-ico { font-size: 36px; line-height: 1; }
.ab-card--plan { background: var(--night); color: #fff; } .ab-card--plan h2 { color: var(--yellow); }
.ab-big { font: 400 clamp(26px, 3vw, 38px)/1.1 var(--display); color: #fff; text-shadow: 3px 3px 0 var(--purple-d); }
.ab-places { list-style: none; margin: 14px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 10px; }
.ab-places a { display: grid; gap: 4px; padding: 12px 14px; background: var(--white); border: 3px solid var(--ink); border-radius: 14px; box-shadow: 3px 3px 0 var(--ink); color: var(--ink); text-decoration: none; }
.ab-places a:hover { transform: translate(-2px, -2px); box-shadow: 5px 5px 0 var(--ink); } .ab-places b { font-size: 17px; } .ab-places span { font-size: 14px; color: var(--muted); line-height: 1.4; }
.ab-counts { margin: 30px auto 60px; display: grid; gap: 16px; } .ab-counts .th-stats { grid-template-columns: repeat(4, 1fr); }
.ab-how { margin: 0; max-width: 72ch; font-size: 16px; line-height: 1.55; }
@media (max-width: 860px) { .bkt, .rft, .lbt, .lb-top-in, .rf-top-in, .ab-top-in, .rf-grid { grid-template-columns: 1fr; } .ab-counts .th-stats { grid-template-columns: repeat(2, 1fr); } .ab-fig { display: none; } }
@media (max-width: 560px) { .rf-meta { grid-template-columns: 1fr 1fr; } .lb-book { --h: calc(var(--h, 170px) * .8); } .lb-reader-in { padding: 16px 14px; } }

/* ================================================================= v4.1 Launch Pad */
.lp-top { position: relative; padding: clamp(26px, 4vw, 48px) 0 34px; background: radial-gradient(120% 90% at 50% 0%, #2b1066 0%, #120635 70%, #0b0322 100%); border-bottom: 4px solid var(--ink); overflow: hidden; }
.lp-top-in { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(280px, 1fr); gap: 20px; align-items: end; position: relative; z-index: 2; }
.lp-top .th-rep { color: #ffd43b; }
.lp-h1 { margin: 0; font: 400 clamp(40px, 6vw, 74px)/.95 var(--display); color: #fff; letter-spacing: 2px; text-shadow: 4px 4px 0 var(--ink); }
.lp-h1 em { font-style: normal; color: #14f195; }
.lp-sub { margin: 10px 0 0; font: 400 clamp(17px, 1.6vw, 20px)/1.35 var(--hand); color: #efe9ff; max-width: 600px; }
.lp-sub b { color: #ffd43b; }
.lp-stars { position: absolute; inset: 0; pointer-events: none; opacity: .7;
	background-image: radial-gradient(1.5px 1.5px at 12% 22%, #fff 50%, transparent 51%), radial-gradient(1px 1px at 32% 68%, #fff 50%, transparent 51%), radial-gradient(2px 2px at 54% 18%, #ffd43b 50%, transparent 51%), radial-gradient(1px 1px at 71% 42%, #fff 50%, transparent 51%), radial-gradient(1.5px 1.5px at 88% 15%, #fff 50%, transparent 51%), radial-gradient(1px 1px at 44% 50%, #fff 50%, transparent 51%), radial-gradient(1.5px 1.5px at 80% 70%, #14f195 50%, transparent 51%), radial-gradient(1px 1px at 20% 80%, #fff 50%, transparent 51%); }
.lp-stats .th-stat b.lp-stat-sm { font-size: 22px; }
.lp-stats--4 { grid-template-columns: repeat(4, 1fr); }
.lp-grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(300px, 1fr); gap: 22px; margin: 26px auto 40px; align-items: start; }
.lp-launch h2, .lp-h2 { margin: 0 0 12px; font: 400 30px/1 var(--display); }
.lp-h2 { margin: 30px 0 14px; } .lp-h2 small { font: 400 16px/1 var(--mono); background: var(--ros-cream); border: 2px solid var(--ink); border-radius: 999px; padding: 4px 10px; vertical-align: middle; }
.lp-step { margin: 14px 0 0; } .lp-step h3 { margin: 0 0 4px; font: 400 22px/1 var(--display); }
.lp-soon { font: 400 20px/1.3 var(--hand); }
.lp-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 12px; margin-top: 8px; }
.lp-field { display: grid; gap: 4px; } .lp-field span { font: 700 11px/1.2 var(--mono); text-transform: uppercase; letter-spacing: 1px; } .lp-field small { text-transform: none; letter-spacing: 0; font-weight: 400; opacity: .7; }
.lp-field input, .lp-field textarea { width: 100%; font: 400 16px/1.3 var(--sans, inherit); padding: 9px 11px; border: 3px solid var(--ros-ink); border-radius: 12px; background: #fff; color: var(--ros-ink); box-sizing: border-box; }
.lp-field textarea { resize: vertical; }
.lp-field--full { grid-column: 1 / -1; }
.lp-field--img { grid-column: 1 / -1; grid-template-columns: 1fr auto; align-items: center; } .lp-field--img span { grid-column: 1 / -1; }
.lp-field--img input { font-size: 14px; } .lp-field--img img { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; border: 3px solid var(--ros-ink); background: #fff; }
.lp-agree { display: grid; grid-template-columns: auto 1fr; gap: 8px; align-items: start; font-size: 14px; line-height: 1.35; margin-top: 6px; } .lp-agree input { margin-top: 3px; width: 18px; height: 18px; }
.lp-cost { margin: 8px 0 10px; }
.lp-go { width: 100%; }
.lp-status { margin-top: 10px; }
.lp-how .rf-rules { margin: 6px 0 0; padding-left: 20px; } .lp-how li { margin: 6px 0; }
/* rockets */
.lp-rockets { margin-bottom: 60px; }
.lp-empty { font: 400 20px/1.3 var(--hand); }
.lp-cards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 14px; }
.lp-card { background: var(--ros-cream); border: 4px solid var(--ros-ink); border-radius: 20px; box-shadow: 6px 7px 0 rgba(10,4,30,.6); overflow: hidden; transition: transform .15s; }
.lp-card:hover { transform: translate(-2px, -2px); }
.lp-card.is-grad { background: #dcfce7; }
.lp-card-in { display: grid; grid-template-columns: 64px 1fr auto; gap: 12px; align-items: center; padding: 12px 14px; text-decoration: none; color: var(--ros-ink); }
.lp-logo { width: 64px; height: 64px; border-radius: 50%; border: 3px solid var(--ros-ink); background: #fff; display: grid; place-items: center; font-size: 30px; overflow: hidden; flex: none; }
.lp-logo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.lp-logo--big { width: 96px; height: 96px; font-size: 44px; box-shadow: 4px 4px 0 var(--ink); }
.lp-card-txt { display: grid; gap: 2px; min-width: 0; } .lp-card-txt b { font: 400 22px/1.05 var(--display); } .lp-card-txt b em { font-style: normal; font: 700 13px/1 var(--mono); background: var(--yellow); border: 2px solid var(--ros-ink); border-radius: 999px; padding: 2px 7px; vertical-align: middle; margin-left: 4px; }
.lp-card-txt small { font: 400 13px/1.2 var(--mono); opacity: .8; } .lp-card-descr { font-size: 14px; line-height: 1.3; opacity: .9; }
.lp-card-num { display: grid; text-align: right; gap: 2px; } .lp-card-num small { font: 700 10px/1.2 var(--mono); text-transform: uppercase; letter-spacing: 1px; } .lp-card-num b { font: 400 22px/1 var(--display); }
.lp-bar { position: relative; height: 22px; background: #fff; border-top: 3px solid var(--ros-ink); overflow: hidden; }
.lp-bar span { position: absolute; inset: 0 auto 0 0; background: linear-gradient(90deg, #9945ff, #14f195); transition: width .6s; }
.lp-bar i { position: absolute; inset: 0; display: grid; place-items: center; font: 700 11px/1 var(--mono); letter-spacing: 1px; font-style: normal; mix-blend-mode: difference; color: #fff; }
.lp-bar--big { height: 34px; border: 3px solid var(--ros-ink); border-radius: 999px; margin: 8px 0; } .lp-bar--big i { font-size: 13px; }
/* token page */
.lp-token-head { position: relative; z-index: 2; display: grid; gap: 16px; }
.lp-back { color: #ffd43b; font: 700 12px/1 var(--mono); text-transform: uppercase; letter-spacing: 1px; text-decoration: none; }
.lp-token-id { display: grid; grid-template-columns: 96px 1fr; gap: 16px; align-items: center; }
.lp-h1--token { font-size: clamp(32px, 5vw, 56px); }
.lp-token-meta { margin: 6px 0 0; color: #efe9ff; font-size: 15px; } .lp-token-meta code { background: rgba(255,255,255,.15); border-radius: 6px; padding: 1px 6px; }
.lp-tag { font: 700 10px/1 var(--mono); text-transform: uppercase; letter-spacing: 1px; padding: 4px 8px; border-radius: 999px; background: var(--yellow); color: var(--ink); border: 2px solid var(--ink); } .lp-tag--grad { background: #14f195; }
.lp-token-links { margin: 8px 0 0; display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 14px; } .lp-token-links a, .lp-token-links .linklike { color: #fff; } .lp-token-links code { background: rgba(255,255,255,.15); border-radius: 6px; padding: 2px 6px; color: #fff; }
.lp-grid--token { grid-template-columns: minmax(0, 1.4fr) minmax(300px, 1fr); }
.lp-main { display: grid; gap: 18px; }
.lp-graduate { margin-top: 10px; padding: 12px; border: 3px dashed var(--ros-ink); border-radius: 14px; background: #fff7d6; }
.lp-sides { display: grid; grid-template-columns: 1fr 1fr; gap: 0; margin: 12px 0 10px; border: 3px solid var(--ros-ink); border-radius: 12px; overflow: hidden; }
.lp-side { border: 0; background: #fff; color: var(--ros-ink); font: 700 14px/1 var(--mono); text-transform: uppercase; letter-spacing: 1px; padding: 11px; cursor: pointer; }
.lp-side.is-on { background: var(--ros-ink); color: #fff; }
.lp-side[data-lp-side="buy"].is-on { background: #0e9f6e; } .lp-side[data-lp-side="sell"].is-on { background: #d1443c; }
.lp-amount { display: grid; grid-template-columns: 1fr auto; align-items: center; border: 3px solid var(--ros-ink); border-radius: 12px; background: #fff; overflow: hidden; }
.lp-amount input { border: 0; font: 400 26px/1 var(--display); padding: 10px 12px; width: 100%; min-width: 0; background: transparent; color: var(--ros-ink); } .lp-amount span { font: 700 13px/1 var(--mono); padding: 0 12px; }
.lp-trade .rf-quick { margin: 8px 0; display: flex; gap: 6px; flex-wrap: wrap; }
.lp-quote { min-height: 22px; margin: 6px 0 10px; font-size: 15px; }
.lp-bal { font-size: 13px; margin-left: 8px; }
.lp-facts { display: grid; grid-template-columns: auto 1fr; gap: 6px 12px; margin: 10px 0 0; font-size: 14px; } .lp-facts dt { font: 700 10px/1.6 var(--mono); text-transform: uppercase; letter-spacing: 1px; } .lp-facts dd { margin: 0; word-break: break-all; } .lp-facts code { font-size: 12px; }
.lp-creator { background: #fff3c4; }
@media (max-width: 860px) {
	.lp-top-in, .lp-grid, .lp-grid--token { grid-template-columns: minmax(0, 1fr); }
	.lp-stats--4 { grid-template-columns: repeat(2, 1fr); }
	.lp-fields { grid-template-columns: 1fr; }
	.lp-token-id { grid-template-columns: 72px 1fr; } .lp-logo--big { width: 72px; height: 72px; }
	.lp-card-in { grid-template-columns: 52px 1fr; } .lp-card-num { grid-column: 2; text-align: left; } .lp-logo { width: 52px; height: 52px; font-size: 24px; }
}
.moon-launch { margin-top: 14px; padding: 12px 14px; border: 3px solid var(--ink); border-radius: 16px; background: #fff7d6; display: grid; gap: 8px; } .moon-launch p { margin: 0; } .moon-launch .btn { justify-self: start; margin-right: 6px; }

/* ================================================================= v4.2 Home page layout: badges, games, launch teaser */
.section.has-badge { position: relative; }
.sec-badge { position: absolute; top: 18px; left: 50%; translate: -50% 0; z-index: 3; font: 700 11px/1 var(--mono); letter-spacing: 2px; padding: 7px 14px; border: 3px solid var(--ink); border-radius: 999px; background: var(--yellow); color: var(--ink); box-shadow: 3px 3px 0 var(--ink); transform: rotate(-3deg); }
.sec-badge--new { background: #14f195; } .sec-badge--soon { background: #ffd43b; } .sec-badge--hot { background: #ff4f6d; color: #fff; } .sec-badge--live { background: #9945ff; color: #fff; }
.btn.has-badge { position: relative; }
.chip-badge { position: absolute; top: -10px; right: -8px; font: 700 9px/1 var(--mono); letter-spacing: 1px; padding: 4px 7px; border: 2px solid var(--ink); border-radius: 999px; background: #14f195; color: var(--ink); transform: rotate(6deg); }
.chip-badge--soon { background: #ffd43b; } .chip-badge--hot { background: #ff4f6d; color: #fff; } .chip-badge--live { background: #9945ff; color: #fff; }
.hero-launch { background: #1d0b3f; color: #fff; border-color: var(--ink); } .hero-launch:hover { background: #2b1066; }
.hero-raffle { background: #ff9f43; } .hero-race { background: #9945ff; color: #fff; }
/* games */
.gm-head { max-width: 760px; margin-bottom: 22px; }
.gm-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; align-items: start; }
.gm-card { background: var(--ros-cream); border: 4px solid var(--ros-ink); border-radius: 22px; padding: 16px 18px 18px; box-shadow: 8px 8px 0 var(--ink); display: grid; gap: 12px; }
.gm-card--race { background: #efe6ff; }
.gm-card-head { display: grid; grid-template-columns: 110px 1fr; gap: 14px; align-items: center; }
.gm-card-head h3 { margin: 2px 0 4px; font: 400 30px/1 var(--display); } .gm-card-head p { margin: 0; font-size: 14px; line-height: 1.35; }
.gm-art { width: 110px; height: auto; filter: drop-shadow(0 6px 0 rgba(26,20,35,.25)); }
.gm-contest { margin: 0; padding: 8px 12px; border: 3px solid var(--ink); border-radius: 12px; background: #fff7d6; font: 700 12px/1.3 var(--mono); }
.gm-card .rush-board { margin: 0; }
.gm-card .btn-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
/* launch teaser */
.lpt { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: center; }
.lpt .title small { font-size: .5em; vertical-align: middle; background: var(--yellow); border: 3px solid var(--ink); border-radius: 999px; padding: 2px 10px; -webkit-text-stroke: 0; text-shadow: none; }
.lpt .btn-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.lpt-board { border: 4px solid var(--ink); border-radius: 22px; background: linear-gradient(160deg, #2b1066, #120635); box-shadow: 8px 8px 0 var(--ink); padding: 14px; min-height: 220px; display: grid; align-content: center; }
.lpt-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.lpt-list li { background: var(--ros-cream); border: 3px solid var(--ros-ink); border-radius: 14px; overflow: hidden; }
.lpt-list a { display: grid; grid-template-columns: 44px 1fr; gap: 10px; align-items: center; padding: 8px 10px; text-decoration: none; color: var(--ros-ink); }
.lpt-list .lp-logo { width: 44px; height: 44px; font-size: 22px; }
.lpt-txt { display: grid; gap: 2px; min-width: 0; } .lpt-txt b { font: 400 18px/1.05 var(--display); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .lpt-txt b em { font-style: normal; font: 700 11px/1 var(--mono); background: var(--yellow); border: 2px solid var(--ros-ink); border-radius: 999px; padding: 2px 6px; margin-left: 4px; vertical-align: middle; } .lpt-txt small { font: 400 12px/1.2 var(--mono); opacity: .8; }
.lpt-bar { display: block; height: 6px; background: #fff; border-top: 2px solid var(--ros-ink); } .lpt-bar b { display: block; height: 100%; background: linear-gradient(90deg, #9945ff, #14f195); }
.lpt-empty { text-align: center; color: #fff; display: grid; gap: 6px; justify-items: center; } .lpt-empty p { margin: 0; font: 400 18px/1.3 var(--hand); } .lpt-rocket { font-size: 56px; animation: lpt-float 3s ease-in-out infinite; }
@keyframes lpt-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
.lpt--compact { grid-template-columns: 1fr; gap: 16px; }
@media (max-width: 860px) { .gm-grid, .lpt { grid-template-columns: 1fr; } .gm-card-head { grid-template-columns: 80px 1fr; } .gm-art { width: 80px; } }
.hb-tabs { grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); }
.hb-tabs:has(> :nth-child(3)) .hb-tab b { font-size: 16px; } .hb-tabs:has(> :nth-child(3)) .hb-tab { padding: 8px 8px 7px; } .hb-tabs:has(> :nth-child(3)) .hb-tab span { font-size: 9px; letter-spacing: .5px; }
.hb-actions { flex-wrap: wrap; } .hb-actions .btn { white-space: nowrap; }
.hb-actions .btn[hidden] { display: none; }

/* ================================================================= v4.4 Central Bank module: check | GO PRO */
.bkt--split { grid-template-columns: minmax(0, 1.25fr) minmax(300px, 1fr); gap: 26px; align-items: stretch; }
.bkt--split .bkt-check { display: grid; gap: 14px; align-content: space-between; }
.bkt-foot { display: grid; grid-template-columns: 150px 1fr; gap: 16px; align-items: end; }
.bkt-foot .bkt-art img { width: 150px; }
.bkt-nums { display: grid; gap: 6px; justify-items: start; font-size: 15px; }
.bkt-nums b { font: 400 22px/1 var(--display); margin-right: 4px; }
.bkt-pro { position: relative; display: grid; gap: 12px; align-content: start; padding: 22px 22px 20px; border: 4px solid var(--ink); border-radius: 24px; box-shadow: 8px 8px 0 var(--ink); color: #fff; overflow: hidden;
	background: radial-gradient(120% 90% at 100% 0%, rgba(20, 241, 149, .28) 0%, transparent 55%), linear-gradient(160deg, #6b2fd1 0%, #3a1580 55%, #1d0b3f 100%); }
.bkt-pro::after { content: ""; position: absolute; right: -60px; top: -60px; width: 200px; height: 200px; border-radius: 50%; background: radial-gradient(circle, rgba(255, 212, 59, .35), transparent 70%); pointer-events: none; }
.bkt-pro-badge { justify-self: start; font: 700 12px/1 var(--mono); letter-spacing: 2px; text-transform: uppercase; color: var(--ink); background: var(--yellow); border: 3px solid var(--ink); border-radius: 999px; padding: 7px 12px; box-shadow: 3px 3px 0 var(--ink); transform: rotate(-2deg); }
.bkt-pro-title { margin: 0; font: 400 clamp(26px, 2.6vw, 34px)/1.02 var(--display); letter-spacing: .5px; text-shadow: 3px 3px 0 var(--ink); }
.bkt-pro-title em { font-style: normal; color: var(--yellow); }
.bkt-pro-price { margin: 0; display: flex; align-items: baseline; gap: 8px; }
.bkt-pro-price b { font: 400 54px/1 var(--display); color: var(--yellow); text-shadow: 3px 3px 0 var(--ink); }
.bkt-pro-price span { display: grid; font: 700 15px/1.2 var(--mono); }
.bkt-pro-price small { font: 400 12px/1.3 var(--mono); opacity: .85; }
.bkt-pro-lead { margin: 0; font-size: 15px; line-height: 1.4; opacity: .95; }
.bkt-pro-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; }
.bkt-pro-list li { position: relative; padding-left: 26px; font-size: 15px; line-height: 1.35; }
.bkt-pro-list li::before { content: "✓"; position: absolute; left: 0; top: 0; width: 19px; height: 19px; border-radius: 50%; background: var(--green); color: var(--ink); font: 700 12px/19px var(--mono); text-align: center; }
.bkt-pro-go { justify-self: stretch; text-align: center; justify-content: center; background: var(--yellow); color: var(--ink); border-color: var(--ink); box-shadow: 4px 4px 0 var(--ink); }
.bkt-pro-go:hover { background: #ffe066; color: var(--ink); }
.bkt-pro-fine { margin: -4px 0 0; font: 400 12px/1.4 var(--mono); opacity: .8; text-align: center; }
.bkt-pro-win { color: #b9ffe0; font-weight: 700; font-size: 14px; text-decoration: none; } .bkt-pro-win:hover { color: #fff; text-decoration: underline; }
.bkt-pro-count { margin: 0; font-size: 13px; opacity: .85; } .bkt-pro-count b { font: 400 18px/1 var(--display); color: var(--yellow); }
.bkt-pro.is-free .bkt-pro-go { background: var(--green); }
@media (max-width: 860px) { .bkt--split { grid-template-columns: 1fr; } .bkt-foot { grid-template-columns: 100px 1fr; } .bkt-foot .bkt-art img { width: 100px; } }
.bkt-foot .bkt-art { position: relative; }
.bkt-led { position: absolute; left: 17%; right: 17%; top: 1.5%; height: 8.5%; display: grid; place-items: center; overflow: hidden; white-space: nowrap; font: 700 clamp(6px, .75vw, 9px)/1 var(--mono); letter-spacing: .5px; color: #14f195; text-shadow: 0 0 4px rgba(20, 241, 149, .8); }
.rf-jackpot b .rf-n { font: inherit; font-style: normal; color: inherit; }

/* ================================================================ v4.7 · on-screen game pad (phones) */
.gpad { position: absolute; left: 0; right: 0; bottom: 0; z-index: 4; display: none; justify-content: space-between; align-items: flex-end; padding: 0 14px calc(14px + env(safe-area-inset-bottom, 0px)); pointer-events: none; touch-action: none; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; }
.gpad.is-on { display: flex; }
.gpad-side { display: flex; align-items: flex-end; gap: 12px; pointer-events: auto; }
.gpad.is-swipes .gpad-side { display: none; }
.gpad-btn { position: relative; isolation: isolate; display: grid; place-items: center; align-content: center; gap: 2px; padding: 0; border: 4px solid var(--ink); border-radius: 50%; background: #fdf6e3; color: var(--ink); box-shadow: 4px 4px 0 var(--ink); cursor: pointer; touch-action: none; -webkit-tap-highlight-color: transparent; transition: transform .05s, box-shadow .05s, background .05s; }
.gpad-btn i { font-style: normal; font-size: 26px; line-height: 1; }
.gpad-btn span { font: 700 10px/1 var(--mono); letter-spacing: .06em; }
.gpad-xl { width: 92px; height: 92px; }
.gpad-xl i { font-size: 34px; }
.gpad-lg { width: 76px; height: 76px; }
.gpad-md { width: 64px; height: 64px; }
.gpad-sm { width: 52px; height: 52px; }
.gpad-sm i { font-size: 20px; }
.gpad-sm span { font-size: 8px; }
.gpad-btn.is-down { transform: translate(4px, 4px); box-shadow: 0 0 0 var(--ink); background: var(--yellow, #ffd23f); }
.gpad-btn.is-off { opacity: .45; }
/* FLY: the ring around the button is the air in the thrusters */
.gpad-btn.has-ring::before { content: ""; position: absolute; inset: -11px; z-index: -1; border-radius: 50%; background: conic-gradient(#14f195 var(--fill, 100%), rgba(253, 246, 227, .35) 0); border: 3px solid var(--ink); }
.gpad-btn.has-ring.is-low::before { background: conic-gradient(#e8364b var(--fill, 0%), rgba(253, 246, 227, .35) 0); }
.gpad-btn.has-ring { margin: 0 4px 4px 0; }
.gpad-mode { position: absolute; left: 50%; bottom: calc(18px + env(safe-area-inset-bottom, 0px)); translate: -50% 0; pointer-events: auto; padding: 7px 11px 6px; border: 3px solid var(--ink); border-radius: 99px; background: rgba(253, 246, 227, .92); color: var(--ink); box-shadow: 3px 3px 0 var(--ink); font: 700 11px/1 var(--mono); white-space: nowrap; cursor: pointer; }

/* Roadster: left ◀ ▶, right a thumb arc (SLAM above, HOP/ROLL left of the big FLY) */
.gpad--rs .gpad-btn { background: rgba(253, 246, 227, .9); }
.gpad--rs .gpad-r { display: grid; grid-template-columns: auto auto; grid-template-areas: ". slam" "jump fly"; gap: 10px 12px; align-items: end; justify-items: center; }
.gpad--rs .gpad-k-slam { grid-area: slam; margin-bottom: 4px; }
.gpad--rs .gpad-k-jump { grid-area: jump; }
.gpad--rs .gpad-k-fly { grid-area: fly; }
.gpad--rs .gpad-mode { left: 14px; translate: none; bottom: calc(112px + env(safe-area-inset-bottom, 0px)); }
.rs-stage.has-pad .rs-thrust { display: none; }
.rs-stage.has-pad .rs-pausebtn { left: 50%; bottom: auto; top: 14px; translate: -50% 0; width: 40px; height: 40px; }
.rs-stage.has-pad .rs-touchhint { bottom: 190px; }
@media (max-width: 359px) { .gpad-xl { width: 80px; height: 80px; } .gpad-lg { width: 66px; height: 66px; } .gpad-md { width: 56px; height: 56px; } .gpad-side { gap: 8px; } }

/* Rush: portrait phone = a handheld, the buttons live on a deck under the game */
/* Phones: full screen while playing */
.is-touch body.rush-on { overflow: hidden; }
.is-touch body.rush-on .rush { position: fixed; inset: 0; z-index: 1000; }
.is-touch .rs-stage.is-racing { position: fixed; inset: 0; height: auto; z-index: 1000; }
.rush.has-deck .rush-top { bottom: 162px; }
.rush.has-pad:not(.has-deck) .rush-top { top: 12px; bottom: auto; }
.rush.has-deck { padding-bottom: 150px; }
.rush.has-deck::before { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 150px; background: linear-gradient(#2a1a52, #1b1036); border-top: 4px solid var(--ink); box-shadow: inset 0 4px 0 rgba(255, 255, 255, .08); }
.rush.has-deck .gpad { height: 150px; align-items: center; padding-top: 0; padding-bottom: env(safe-area-inset-bottom, 0px); }
.rush.has-deck .gpad-mode { bottom: calc(16px + env(safe-area-inset-bottom, 0px)); }
.rush.has-deck .gpad-k-bribe { position: absolute; left: 50%; top: 18px; translate: -50% 0; margin: 0; }
.rush:not(.has-deck) .gpad-btn { background: rgba(253, 246, 227, .85); }
.gpad--rush .gpad-r { gap: 14px; }
.rush:not(.has-deck) .gpad--rush .gpad-k-bribe { margin-bottom: 30px; }

/* ================================================================ v5.0 · Swap tab + drawer (Jupiter) */
.swap-tab { position: fixed; right: 0; top: 50%; z-index: 56; translate: 6px -50%; display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 12px 8px 12px 7px; border: 3px solid var(--ink); border-right: 0; border-radius: 14px 0 0 14px; background: var(--yellow); color: var(--ink); box-shadow: -3px 3px 0 var(--ink); cursor: pointer; font: 400 15px/1 var(--display); transition: translate .15s ease, background .15s; }
.swap-tab:hover, .swap-tab:focus-visible { translate: 0 -50%; }
.swap-tab-ic { font-size: 18px; line-height: 1; }
.swap-tab-t, .swap-tab-sym { writing-mode: vertical-rl; transform: rotate(180deg); letter-spacing: 1px; }
.swap-tab-sym { font: 700 11px/1 var(--mono); padding: 5px 2px; border-radius: 99px; background: var(--ink); color: var(--yellow); }
.swap-tab.has-token { background: var(--green, #14f195); }
.rush-on .swap-tab, .swap-open .swap-tab { display: none; }
.swap-veil { position: fixed; inset: 0; z-index: 1090; background: rgba(29, 11, 63, .45); opacity: 0; transition: opacity .2s; }
.swap-veil.is-on { opacity: 1; }
.swap-drawer { position: fixed; top: 0; right: 0; bottom: 0; z-index: 1100; width: min(440px, 100vw); display: flex; flex-direction: column; gap: 10px; padding: 14px 16px calc(14px + env(safe-area-inset-bottom, 0px)); background: var(--cream, #fdf6e3); border-left: 4px solid var(--ink); box-shadow: -8px 0 0 rgba(26, 20, 35, .15); translate: 100% 0; transition: translate .22s ease; overflow-y: auto; }
.swap-drawer.is-on { translate: 0 0; }
.swap-drawer[hidden], .swap-veil[hidden] { display: none; }
.swap-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.swap-head h2 { margin: 0; font: 400 24px/1 var(--display); color: var(--ink); }
.swap-head h2 small { display: block; margin-top: 4px; font: 700 11px/1 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--muted, #6d5f78); }
.swap-x { width: 40px; height: 40px; border: 3px solid var(--ink); border-radius: 50%; background: #fff; box-shadow: 3px 3px 0 var(--ink); font: 700 15px/1 var(--mono); cursor: pointer; }
.swap-body { flex: 1 1 auto; min-height: 520px; display: flex; flex-direction: column; }
.swap-jup { flex: 1 1 auto; min-height: 520px; border: 3px solid var(--ink); border-radius: 18px; background: #1b1d2a; overflow: hidden; box-shadow: 4px 4px 0 var(--ink); }
.swap-loading { margin: 0; padding: 40px 16px; text-align: center; color: #cfc8e6; font: 700 13px/1.4 var(--mono); }
.swap-fallback { margin: 10px 0 0; font-size: 14px; }
.swap-fallback a { font-weight: 700; }
.swap-warn { margin: 0; padding: 10px 12px; border: 3px solid var(--ink); border-radius: 12px; background: #ffe2a8; font-size: 14px; line-height: 1.4; }
.swap-warn.is-stop { background: #ffc9c9; }
.swap-preview { margin: 0; padding: 8px 10px; border: 2px dashed var(--ink); border-radius: 10px; font-size: 13px; background: #fff; }
.swap-fine { margin: 0; font-size: 12px; line-height: 1.45; color: var(--muted, #6d5f78); }
@media (max-width: 640px) {
	.swap-tab { padding: 10px 6px 10px 5px; font-size: 13px; top: 62%; }
	.swap-tab-ic { font-size: 16px; }
	.swap-drawer { border-left: 0; padding-top: 10px; }
	.swap-body, .swap-jup { min-height: 480px; }
}
@media (prefers-reduced-motion: reduce) { .swap-drawer, .swap-veil, .swap-tab { transition: none; } }
@media print { .swap-tab, .swap-drawer, .swap-veil { display: none !important; } }
