[hidden] { display: none !important; }

:root {
  --green: oklch(0.38 0.075 158);
  --green-d: oklch(0.31 0.065 160);
  --green-dd: oklch(0.26 0.05 162);
  --green-l: oklch(0.46 0.08 158);
  --bone: oklch(0.95 0.022 95);
  --bone-2: oklch(0.90 0.032 90);
  --bone-3: oklch(0.84 0.04 88);
  --ink: oklch(0.23 0.035 165);
  --ink-2: oklch(0.29 0.035 165);
  --lamp: oklch(0.87 0.13 92);
  --lamp-d: oklch(0.76 0.14 78);
  --teal: oklch(0.70 0.08 200);
  --rose: oklch(0.74 0.075 28);
  --rose-d: oklch(0.64 0.08 28);
  --red: oklch(0.47 0.11 28);
  --sage: oklch(0.80 0.07 150);
  --mute-g: oklch(0.85 0.03 140);
  --mute-p: oklch(0.42 0.03 160);
  --road: 92px;
  --gut: clamp(16px, 4vw, 56px);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --f: "Overpass", "Trebuchet MS", sans-serif;
  --m: "Overpass Mono", ui-monospace, monospace;
  --w: "Rye", Georgia, serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 72px; }
body {
  margin: 0; background: var(--green); color: var(--bone);
  font-family: var(--f); font-size: 17px; line-height: 1.5;
  font-variant-numeric: tabular-nums; overflow-x: hidden;
}
a { color: inherit; }
img, svg { display: block; }
button { font: inherit; color: inherit; }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--lamp); color: var(--ink); padding: 8px 14px; border-radius: 6px; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--lamp); outline-offset: 3px; border-radius: 4px; }
.tab { font-variant-numeric: tabular-nums; }
.r { text-align: right; }

/* skeletons */
.sk { display: inline-block; height: .8em; border-radius: 4px; background: linear-gradient(90deg, oklch(1 0 0 / .12), oklch(1 0 0 / .26), oklch(1 0 0 / .12)); background-size: 200% 100%; animation: sk 1.4s linear infinite; vertical-align: middle; }
.sk-w5 { width: 5ch; } .sk-w6 { width: 7ch; }
.sk-line { display: block; height: 14px; margin: 10px 0; width: 100%; }
.sk-line.short { width: 60%; }
@keyframes sk { to { background-position: -200% 0; } }

/* ============ HUD ============ */
.hud {
  position: fixed; inset: 0 0 auto 0; z-index: 40; height: 64px;
  display: flex; align-items: center; gap: 24px; padding: 0 var(--gut);
  transition: background-color .25s var(--ease), box-shadow .25s var(--ease);
}
.hud.solid { background: var(--green-d); box-shadow: 0 1px 0 oklch(1 0 0 / .08); }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand-word { font-weight: 900; font-size: 20px; letter-spacing: -.01em; }
.routes { display: flex; gap: 4px; }
.routes a { text-decoration: none; font-weight: 600; padding: 8px 12px; border-radius: 6px; }
.routes a:hover { background: oklch(1 0 0 / .1); }
.routes a[aria-current="page"] { background: var(--bone); color: var(--green-d); }
.hud-right { margin-left: auto; display: flex; gap: 10px; align-items: center; }
.chip {
  display: flex; align-items: center; gap: 10px; min-height: 40px; padding: 6px 14px;
  background: var(--green-d); border: 2px solid var(--bone); border-radius: 8px; cursor: pointer;
  transition: transform .15s var(--ease), background-color .15s;
}
.chip:hover { transform: translateY(-1px); background: var(--green); }
.chip-sym { font-weight: 900; }
.chip-price { font-weight: 600; }
.chip-chg { font-size: 14px; font-weight: 600; }
.up { color: var(--sage); } .down { color: oklch(0.80 0.09 30); }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 40px; padding: 8px 18px;
  border-radius: 8px; border: 0; cursor: pointer; font-weight: 800; text-decoration: none;
  transition: transform .15s var(--ease), box-shadow .15s var(--ease), background-color .15s;
}
.btn:active { transform: translateY(1px); }
.btn-ghost { background: var(--bone); color: var(--green-d); box-shadow: 0 3px 0 var(--bone-3); }
.btn-ghost:hover { transform: translateY(-1px); box-shadow: 0 4px 0 var(--bone-3); }
.btn-lamp { background: var(--lamp); color: var(--ink); box-shadow: 0 3px 0 var(--lamp-d); }
.btn-lamp:hover { transform: translateY(-1px); }
.btn[disabled] { opacity: .6; cursor: progress; }

/* ============ SCENE ============ */
.scene {
  position: relative; min-height: max(720px, 100svh); overflow: hidden; isolation: isolate;
  padding-top: 64px; display: flex; flex-direction: column;
  color: var(--ink);
}
.sky {
  position: absolute; inset: 0; z-index: -2;
  background:
    radial-gradient(60% 40% at 72% 78%, oklch(0.90 0.09 85 / .9), transparent 70%),
    linear-gradient(180deg, oklch(0.52 0.07 210) 0%, oklch(0.64 0.075 204) 28%, oklch(0.76 0.07 190) 48%, oklch(0.80 0.075 45) 70%, oklch(0.86 0.08 80) 84%);
}
.sky::after { /* linen weave */
  content: ""; position: absolute; inset: 0; pointer-events: none; mix-blend-mode: multiply; opacity: .55;
  background:
    repeating-linear-gradient(0deg, oklch(0.4 0.03 80 / .10) 0 1px, transparent 1px 3px),
    repeating-linear-gradient(90deg, oklch(0.4 0.03 80 / .08) 0 1px, transparent 1px 4px);
}
.sun { position: absolute; width: clamp(120px, 14vw, 240px); aspect-ratio: 1; left: 68%; bottom: 26%; border-radius: 50%;
  background: radial-gradient(circle, oklch(0.95 0.07 90), oklch(0.90 0.1 80) 60%, transparent 71%); filter: blur(1px); }
.mesas { position: absolute; left: 0; right: 0; bottom: calc(var(--road) - 6px); width: 100%; height: 34%; }
.mesa-far { fill: oklch(0.66 0.07 25); opacity: .75; }
.mesa-near { fill: oklch(0.56 0.07 28); opacity: .85; }
.scene::after { /* the road */
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: var(--road); z-index: -1;
  background:
    repeating-linear-gradient(90deg, transparent 0 60px, oklch(0.55 0.05 50 / .25) 60px 62px, transparent 62px 140px),
    linear-gradient(180deg, oklch(0.62 0.06 55), oklch(0.54 0.055 45) 55%, oklch(0.46 0.05 40));
  box-shadow: inset 0 3px 0 oklch(0.45 0.05 45);
}

.scene-grid {
  flex: 1; position: relative; display: grid;
  grid-template-columns: clamp(300px, 25vw, 430px) minmax(0, 1fr);
  grid-template-rows: minmax(0, 1fr) auto;
  grid-template-areas: "limits tag" "limits street";
  column-gap: clamp(16px, 2vw, 32px);
  padding-left: var(--gut);
}
.limits { grid-area: limits; display: flex; flex-direction: column; justify-content: space-between; gap: 24px; padding-top: clamp(16px, 4vh, 48px); position: relative; z-index: 3; }
.rule { margin: 0; font-size: clamp(19px, 1.35vw, 23px); line-height: 1.35; font-weight: 800; color: var(--ink); text-wrap: balance; max-width: 26ch; }

.sign { position: relative; filter: drop-shadow(0 18px 18px oklch(0.25 0.04 30 / .35)); }
.sign-face, .sign-plate {
  position: relative; z-index: 1; background: linear-gradient(160deg, var(--green-l), var(--green) 45%, var(--green-d));
  color: var(--bone); border-radius: 14px; text-align: center;
  box-shadow: inset 0 0 0 6px var(--green), inset 0 0 0 9px var(--bone);
}
.sign-face { padding: 22px 20px 20px; }
.sign-face::after, .sign-plate::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: linear-gradient(115deg, oklch(1 0 0 / .14), transparent 35%, transparent 70%, oklch(1 0 0 / .06)); }
.sign-name { font-weight: 800; font-size: clamp(30px, 2.8vw, 46px); line-height: 1; letter-spacing: -.005em; }
.sign-pop { font-weight: 800; line-height: .9; margin-top: 10px; display: flex; align-items: baseline; justify-content: center; gap: 12px; }
.sign-pop-l { font-size: clamp(26px, 2.2vw, 38px); }
.roll { font-size: clamp(76px, 7.4vw, 132px); letter-spacing: -.03em; display: inline-flex; overflow: hidden; height: 1em; line-height: 1; }
.roll .d { display: inline-block; position: relative; height: 1em; }
.roll .d > span { display: block; transition: transform .9s var(--ease); }
.sign-est { font-weight: 600; font-size: clamp(17px, 1.3vw, 22px); margin-top: 8px; }
.sign-plate { margin-top: 8px; padding: 16px 20px 14px; text-align: left; }
.plate-row { display: flex; justify-content: space-between; gap: 12px; font-weight: 800; font-size: 18px; position: relative; z-index: 1; }
.plate-small { font-weight: 600; font-size: 14px; margin-top: 8px; color: var(--mute-g); }
.meter { position: relative; z-index: 1; height: 14px; margin-top: 10px; border-radius: 3px; background: var(--green-dd); box-shadow: inset 0 0 0 2px oklch(0.95 0.022 95 / .5); overflow: hidden; }
.meter i { position: absolute; inset: 2px auto 2px 2px; width: calc(100% - 4px); transform-origin: left center; transform: scaleX(var(--p, 0)); border-radius: 2px; background: linear-gradient(90deg, var(--lamp-d), var(--lamp)); transition: transform .9s var(--ease); }
.posts { display: flex; justify-content: space-around; height: calc(var(--road) + 30px); margin-top: -4px; padding: 0 22%; }
.posts i { width: 12px; background: linear-gradient(90deg, oklch(0.55 0.01 80), oklch(0.72 0.01 80) 40%, oklch(0.5 0.01 80)); }

.street-wrap { grid-area: street; position: relative; min-width: 0; z-index: 2; margin-right: 0; }
.street { overflow-x: auto; overflow-y: hidden; scrollbar-width: none; cursor: grab; touch-action: pan-x pan-y; outline-offset: -4px; }
.street::-webkit-scrollbar { display: none; }
.street.drag { cursor: grabbing; }
.street-track { position: relative; display: flex; align-items: flex-end; gap: 10px; width: max-content; padding: 30px 80px var(--road) 12px; min-height: clamp(360px, 54vh, 540px); }
.street-hint { position: absolute; right: var(--gut); bottom: 12px; margin: 0; padding: 2px 8px; border-radius: 4px; background: oklch(0.23 0.035 165 / .78); font-weight: 800; font-size: 14px; color: var(--bone); pointer-events: none; }
.road { display: none; }

/* buildings */
.bldg {
  --c: oklch(0.5 0.1 28); --trim: oklch(0.86 0.03 85); --sh: 0.28;
  position: relative; flex: none; width: var(--bw); height: var(--bh);
  display: flex; flex-direction: column; align-items: center;
  animation: rise .8s var(--ease) both; animation-delay: var(--dl, 0ms);
}
.bldg .facade {
  position: absolute; inset: 0; clip-path: var(--clip);
  background:
    linear-gradient(90deg, transparent 70%, oklch(0.2 0.03 30 / .22)),
    repeating-linear-gradient(90deg, transparent 0 15px, oklch(0.2 0.03 30 / .14) 15px 16px),
    linear-gradient(180deg, color-mix(in oklch, var(--c), white 8%), color-mix(in oklch, var(--c), black 22%));
}
.bldg .facade::after { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(0deg, oklch(0.4 0.03 80 / .10) 0 1px, transparent 1px 3px); mix-blend-mode: multiply; }
.bsign {
  position: relative; z-index: 1; margin-top: calc(var(--top, 26px) + 4px); padding: 4px 12px 2px;
  font-family: var(--w); font-size: var(--fs, 17px); line-height: 1.2; color: var(--ink); white-space: nowrap;
  background: var(--trim); border: 2px solid oklch(0.3 0.03 40 / .6); border-radius: 2px;
}
.wins { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(var(--cols), 34px); gap: 12px 14px; margin-top: 16px; }
.win {
  position: relative; width: 34px; height: 44px; padding: 0; cursor: pointer; border-radius: 3px 3px 1px 1px;
  border: 3px solid var(--trim); background: oklch(0.24 0.03 200);
  box-shadow: inset 0 -6px 0 oklch(0.19 0.03 200);
  transition: transform .15s var(--ease), box-shadow .2s var(--ease);
}
.win::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent calc(50% - 1px), var(--trim) calc(50% - 1px) calc(50% + 1px), transparent calc(50% + 1px)), linear-gradient(0deg, transparent calc(55% - 1px), var(--trim) calc(55% - 1px) calc(55% + 1px), transparent calc(55% + 1px)); opacity: .8; z-index: 2; pointer-events: none; }
.win:hover { transform: translateY(-2px); }
.win.on { background: radial-gradient(circle at 50% 60%, oklch(0.96 0.08 95), var(--lamp) 45%, var(--lamp-d)); box-shadow: 0 0 18px oklch(0.87 0.13 92 / .7), inset 0 -6px 0 oklch(0.72 0.13 75); }
.win .wg { position: absolute; left: 50%; bottom: 1px; width: 22px; transform: translateX(-50%); fill: oklch(0.98 0.01 95); z-index: 1; filter: drop-shadow(0 0 2px oklch(0.6 0.1 70)); }
.win .wg .e { fill: var(--ink); }
.win .wn { position: absolute; top: -2px; right: -8px; z-index: 3; min-width: 18px; height: 18px; padding: 0 4px; border-radius: 9px; background: var(--ink); color: var(--lamp); font-size: 11px; font-weight: 800; line-height: 19px; }
.win.pinned { outline: 3px solid var(--bone); outline-offset: 3px; }
.win.flare { animation: flare 1.6s var(--ease); }
@keyframes flare { 0% { box-shadow: 0 0 0 0 oklch(0.95 0.1 95), 0 0 60px oklch(0.95 0.12 92); transform: scale(1.25); } 100% { transform: none; } }
.door { position: absolute; bottom: 0; left: 50%; transform: translateX(-50%); z-index: 1; width: 44px; height: 62px; background: linear-gradient(180deg, oklch(0.22 0.03 40), oklch(0.16 0.02 40)); border: 3px solid var(--trim); border-bottom: 0; }
.door.swing::before, .door.swing::after { content: ""; position: absolute; top: 18px; width: 17px; height: 26px; background: repeating-linear-gradient(90deg, oklch(0.55 0.06 60) 0 3px, oklch(0.42 0.05 50) 3px 5px); }
.door.swing::before { left: 1px; } .door.swing::after { right: 1px; }
.awning { position: absolute; bottom: 72px; left: -6px; right: -6px; height: 16px; z-index: 1; background: repeating-linear-gradient(90deg, var(--trim) 0 14px, color-mix(in oklch, var(--c), black 30%) 14px 28px); clip-path: polygon(0 0, 100% 0, 97% 100%, 3% 100%); }
.walk { position: absolute; bottom: -8px; left: -8px; right: -8px; height: 10px; z-index: 1; background: repeating-linear-gradient(90deg, oklch(0.45 0.05 55) 0 22px, oklch(0.36 0.04 50) 22px 24px); }
@keyframes rise { from { transform: translateY(24px); opacity: 0; } }

/* street ghosts */
.ghosts-layer { position: absolute; inset: 0; pointer-events: none; z-index: 5; }
.sprite { position: absolute; bottom: 14px; width: 62px; pointer-events: auto; background: none; border: 0; padding: 0; cursor: pointer; transform: translateX(-50%); }
.sprite .bob { display: block; animation: bob var(--dur, 3.8s) ease-in-out infinite; animation-delay: var(--del, 0s); }
.sprite svg { width: 100%; fill: oklch(0.97 0.012 95 / .92); filter: drop-shadow(0 6px 8px oklch(0.25 0.04 30 / .35)); transition: transform .2s var(--ease); }
.sprite svg .e { fill: var(--ink); }
.sprite:hover svg, .sprite.pinned svg { transform: translateY(-4px) scale(1.06); }
.sprite .tagl { display: block; margin: 6px auto 0; width: max-content; padding: 2px 7px; border-radius: 4px; background: var(--ink); color: var(--bone); font: 600 12px/1.4 var(--m); }
.sprite.pinned .tagl { background: var(--lamp); color: var(--ink); }
.sprite.arrive { animation: arrive 1.6s var(--ease) both; }
@keyframes arrive { from { transform: translate(calc(-50% - var(--from, 300px)), -120px) scale(.6); opacity: 0; } }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }
.tumble { position: absolute; bottom: 10px; left: 0; width: 46px; height: 46px; z-index: 4; animation: tumble 14s linear infinite; }
.tumble svg { width: 100%; height: 100%; stroke: oklch(0.42 0.05 55); fill: none; stroke-width: 2; animation: spin 1.4s linear infinite; }
@keyframes tumble { 0% { transform: translateX(-80px); } 60%, 100% { transform: translateX(calc(var(--tw, 1200px) + 80px)); } }
@keyframes spin { to { transform: rotate(360deg); } }
.empty-note { position: absolute; z-index: 6; left: 50%; top: 42%; transform: translate(-50%, -50%); width: min(420px, 80%); padding: 16px 20px; border-radius: 10px; background: oklch(0.23 0.035 165 / .9); color: var(--bone); text-align: center; font-weight: 600; }
.empty-note b { display: block; font-size: 20px; font-weight: 800; color: var(--lamp); }

/* key tag */
.keytag {
  grid-area: tag; justify-self: end; align-self: start; margin: clamp(12px, 3vh, 32px) var(--gut) 12px 0; width: 316px; position: relative; z-index: 6;
  background: linear-gradient(160deg, oklch(0.53 0.12 28), var(--red) 55%, oklch(0.42 0.1 28));
  color: var(--bone); border-radius: 18px 18px 60px 60px / 18px 18px 40px 40px; padding: 26px 24px 30px;
  box-shadow: 0 16px 30px oklch(0.25 0.05 30 / .35), inset 0 0 0 3px oklch(0.95 0.022 95 / .55);
  transform: rotate(2deg); transition: transform .3s var(--ease);
}
.keytag:hover { transform: rotate(0deg) translateY(-2px); }
.keytag-hole { position: absolute; top: 12px; left: 50%; width: 16px; height: 16px; margin-left: -8px; border-radius: 50%; background: oklch(0.64 0.075 204); box-shadow: inset 0 2px 3px oklch(0.2 0.03 30 / .5), 0 0 0 3px oklch(0.8 0.02 80); }
.kt-kicker { font-weight: 600; font-size: 14px; margin-top: 6px; }
.kt-no { font-weight: 900; font-size: 44px; line-height: 1; margin: 4px 0 10px; letter-spacing: -.02em; }
.kt-rows { display: grid; grid-template-columns: auto 1fr; gap: 4px 14px; font-size: 15px; margin: 0; }
.kt-rows dt { font-weight: 600; opacity: .85; }
.kt-rows dd { margin: 0; font-weight: 800; text-align: right; min-width: 0; }
.kt-links { display: flex; gap: 10px; margin-top: 16px; flex-wrap: wrap; }
.kt-links a { font-weight: 800; font-size: 15px; padding: 7px 12px; border-radius: 7px; background: var(--bone); color: var(--red); text-decoration: none; }
.kt-links a.alt { background: transparent; color: var(--bone); box-shadow: inset 0 0 0 2px var(--bone); }
.kt-empty p { margin: 6px 0 0; font-size: 15px; }
.kt-head { display: flex; align-items: center; gap: 14px; margin: 6px 0 8px; }
.kt-head .kt-no { margin: 0; font-size: 40px; }
.kt-win { position: relative; flex: none; width: 50px; height: 58px; border: 3px solid var(--bone); border-radius: 4px 4px 2px 2px; overflow: hidden;
  background: radial-gradient(circle at 50% 62%, oklch(0.96 0.08 95), var(--lamp) 45%, var(--lamp-d)); box-shadow: 0 0 14px oklch(0.87 0.13 92 / .5); }
.kt-win svg { position: absolute; left: 50%; bottom: 0; width: 34px; transform: translateX(-50%); }
.kt-look { margin: 0 0 12px; font-size: 15px; line-height: 1.35; }
.kt-look b { display: block; font-weight: 800; }
.kt-look span { display: block; font-size: 13px; opacity: .85; margin-top: 2px; }

/* last run plate: a tin plate hung under the town sign */
.runplate { position: relative; z-index: 1; margin: 8px 10px 0; padding: 12px 16px 12px; border-radius: 8px; background: var(--ink); color: var(--bone);
  box-shadow: inset 0 0 0 2px oklch(0.95 0.022 95 / .35); font-size: 14px; text-align: left; }
.rp-top { display: flex; justify-content: space-between; gap: 10px; font-size: 13px; color: var(--mute-g); }
.rp-top b { color: var(--bone); font-weight: 800; }
.rp-result { font-weight: 800; font-size: 16px; line-height: 1.3; margin: 4px 0 6px; overflow-wrap: anywhere; }
.rp-result.ok { color: var(--sage); } .rp-result.warn { color: var(--lamp); } .rp-result.bad { color: oklch(0.80 0.09 30); }
.rp-rows { display: grid; grid-template-columns: auto 1fr; gap: 1px 12px; margin: 0; font-size: 13px; }
.rp-rows dt { color: var(--mute-g); }
.rp-rows dd { margin: 0; text-align: right; font-weight: 600; min-width: 0; overflow-wrap: anywhere; }
.rp-next { margin-top: 6px; padding-top: 6px; border-top: 1px dashed oklch(0.95 0.022 95 / .3); font-weight: 800; font-size: 14px; color: var(--lamp); }
.addr { font-family: var(--m); font-size: .92em; }
.copy { display: inline-flex; align-items: center; gap: 6px; background: none; border: 0; padding: 2px 4px; margin: -2px -4px; border-radius: 4px; cursor: pointer; font: inherit; color: inherit; min-height: 24px; }
.copy:hover { background: oklch(1 0 0 / .12); }
.copy svg { width: 14px; height: 14px; stroke: currentColor; fill: none; stroke-width: 2; flex: none; }
.motion-toggle { position: absolute; left: var(--gut); bottom: 10px; z-index: 7; background: oklch(0.23 0.035 165 / .8); color: var(--bone); border: 0; border-radius: 6px; padding: 5px 10px; font-size: 13px; font-weight: 600; cursor: pointer; min-height: 28px; }

/* ============ BANDS ============ */
.band { position: relative; padding: clamp(72px, 9vw, 132px) 0; }
.wrap { width: min(1320px, 100% - 2 * var(--gut)); margin: 0 auto; }
.band-green { background: var(--green); color: var(--bone); }
.band-paper { background: var(--bone); color: var(--ink); }
.band-rose { background: var(--rose); color: var(--ink); }
.band-ink { background: var(--ink); color: var(--bone); }
.band-green::before, .band-rose::before, .band-paper::before { content: ""; position: absolute; inset: 0; pointer-events: none; mix-blend-mode: multiply; opacity: .35;
  background: repeating-linear-gradient(0deg, oklch(0.3 0.03 80 / .10) 0 1px, transparent 1px 3px), repeating-linear-gradient(90deg, oklch(0.3 0.03 80 / .08) 0 1px, transparent 1px 4px); }
.band > * { position: relative; }
.h1 { font-weight: 900; font-size: clamp(48px, 7vw, 104px); line-height: .92; letter-spacing: -.03em; margin: 0; }
.h2 { font-weight: 900; font-size: clamp(38px, 5vw, 72px); line-height: .95; letter-spacing: -.025em; margin: 0; text-wrap: balance; }
.h3 { font-weight: 800; font-size: 24px; margin: 56px 0 16px; }
.lede { font-size: 19px; max-width: 56ch; margin: 16px 0 0; }
.band-green .lede { color: var(--mute-g); }
.band-paper .lede, .band-rose .lede { color: var(--mute-p); }
.band-rose .lede { color: oklch(0.30 0.04 30); }
.textlink { display: inline-block; margin-top: 28px; font-weight: 800; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 5px; }
.textlink:hover { text-decoration-color: var(--red); }
.textlink-light:hover { text-decoration-color: var(--lamp); }

/* road in */
.road-in { padding-bottom: 0; overflow: hidden; }
.highway { margin-top: 56px; position: relative; overflow-x: auto; scrollbar-width: thin; }
.hwy-signs { display: grid; grid-template-columns: 1fr 1.9fr 1fr 1fr 1fr; gap: clamp(14px, 2vw, 28px); align-items: end; padding: 0 var(--gut); min-width: 1080px; }
.hsign { margin: 0; display: flex; flex-direction: column; align-items: center; position: relative; }
.hsign-face, .gpanel {
  width: 100%; background: var(--green-l); color: var(--bone); border-radius: 12px; padding: 20px 18px 18px;
  box-shadow: inset 0 0 0 5px var(--green-l), inset 0 0 0 8px var(--bone), 0 10px 0 var(--green-dd);
}
.hsign-face b, .gpanel b { display: block; font-weight: 900; font-size: 30px; line-height: 1; }
.hsign-face span, .gpanel span { display: block; margin-top: 8px; font-size: 16px; line-height: 1.3; font-weight: 600; }
.hsign-end .hsign-face { background: var(--lamp); color: var(--ink); box-shadow: inset 0 0 0 5px var(--lamp), inset 0 0 0 8px var(--ink), 0 10px 0 var(--lamp-d); }
.gantry { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; width: 100%; }
.gpanel { position: relative; padding-top: 44px; }
.gp-burn { background: oklch(0.36 0.02 160); box-shadow: inset 0 0 0 5px oklch(0.36 0.02 160), inset 0 0 0 8px var(--bone), 0 10px 0 var(--green-dd); }
.gp-vault { background: var(--bone); color: var(--green-d); box-shadow: inset 0 0 0 5px var(--bone), inset 0 0 0 8px var(--green-d), 0 10px 0 var(--green-dd); }
.arrow { position: absolute; top: 14px; left: 18px; width: 22px; height: 22px; }
.arrow::before { content: ""; position: absolute; left: 9px; top: 4px; width: 4px; height: 18px; background: currentColor; }
.arrow::after { content: ""; position: absolute; left: 3px; top: 0; border: 8px solid transparent; border-bottom: 10px solid currentColor; border-top: 0; }
.a-l { transform: rotate(-45deg); } .a-r { transform: rotate(45deg); }
.hpost { display: block; width: 12px; height: 120px; background: linear-gradient(90deg, oklch(0.5 0.01 80), oklch(0.72 0.01 80) 45%, oklch(0.48 0.01 80)); }
.hsign-gantry .hpost { position: absolute; bottom: -120px; left: 14%; }
.hsign-gantry .hpost-2 { left: auto; right: 14%; }
.hsign-gantry { margin-bottom: 120px; }
.asphalt { height: 110px; min-width: 1080px; margin-top: -16px;
  background: linear-gradient(0deg, transparent 47%, var(--lamp) 47% 53%, transparent 53%) 0 0 / 80px 100% repeat-x,
    linear-gradient(180deg, oklch(0.30 0.012 160), oklch(0.24 0.012 160)); }
.asphalt { background:
    repeating-linear-gradient(90deg, var(--lamp) 0 44px, transparent 44px 90px) 0 50% / 100% 6px no-repeat,
    linear-gradient(180deg, oklch(0.30 0.012 160), oklch(0.24 0.012 160)); }

/* register */
.reg-wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: clamp(32px, 5vw, 80px); align-items: start; }
.reg-head { position: sticky; top: 96px; }
.book {
  background: var(--bone-2); border-radius: 4px; padding: 20px 0 16px;
  box-shadow: 0 1px 0 var(--bone-3), 0 18px 40px oklch(0.4 0.04 80 / .18);
  background-image: linear-gradient(90deg, transparent 58px, oklch(0.6 0.12 25 / .55) 58px 60px, transparent 60px);
}
.book-cols, .book-line { display: grid; grid-template-columns: 60px minmax(0, 1.5fr) minmax(0, 1fr) minmax(0, .8fr) 176px; gap: 12px; align-items: center; padding: 0 20px 0 0; }
.book-cols { font-weight: 800; font-size: 14px; color: var(--mute-p); padding-bottom: 10px; border-bottom: 2px solid oklch(0.5 0.05 200 / .45); }
.book-cols span:first-child, .book-line .bno { text-align: center; }
.book-lines { list-style: none; margin: 0; padding: 0; }
.book-line { min-height: 50px; border-bottom: 1px solid oklch(0.55 0.05 200 / .3); }
.book-line .bno { font-weight: 900; font-size: 18px; }
.book-line .bguest { display: flex; align-items: center; gap: 10px; min-width: 0; font-family: var(--m); font-size: 15px; text-decoration: none; }
.book-line .bguest > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.book-line .bguest:hover > span { text-decoration: underline; }
svg.gh { overflow: visible; }
svg.gi { width: 20px; height: auto; flex: none; margin-top: 3px; }
.gno { display: inline-flex; align-items: center; gap: 8px; }
.txl { display: inline-flex; gap: 12px; justify-content: flex-end; white-space: nowrap; }
.txl .pend { font-size: 13px; font-weight: 600; opacity: .75; }
.book-line .btime { font-size: 15px; color: var(--mute-p); }
.book-line .btok { text-align: right; font-weight: 800; }
.book-line .bproof { text-align: right; }
.book-line .bproof a { font-weight: 800; font-size: 14px; color: var(--red); }
.book-line.new { animation: inkin 1.4s var(--ease); }
@keyframes inkin { from { background: oklch(0.87 0.13 92 / .7); } }
.book-empty { padding: 28px 24px 20px 80px; color: var(--ink); }
.book-empty b { display: block; font-size: 20px; }

/* tables */
.tablewrap { margin-top: 32px; overflow-x: auto; border-radius: 10px; background: var(--green-d); box-shadow: inset 0 0 0 2px oklch(1 0 0 / .08); }
.tablewrap.tall { max-height: 70vh; overflow: auto; }
.ttable { width: 100%; border-collapse: collapse; font-size: 16px; }
.ttable th { text-align: left; font-weight: 800; font-size: 14px; padding: 14px 16px; color: var(--mute-g); border-bottom: 2px solid oklch(1 0 0 / .14); white-space: nowrap; }
.ttable th.r, .ttable td.r { text-align: right; }
.ttable.sticky thead th { position: sticky; top: 0; background: var(--green-d); z-index: 1; }
.ttable td { padding: 12px 16px; border-bottom: 1px solid oklch(1 0 0 / .08); white-space: nowrap; }
.ttable tr.me td { background: oklch(0.87 0.13 92 / .16); }
.ttable a { text-decoration: none; }
.ttable a:hover { text-decoration: underline; }
.ttable th button { background: none; border: 0; padding: 0; font: inherit; color: inherit; cursor: pointer; }
.tag { display: inline-flex; align-items: center; gap: 6px; font-weight: 800; font-size: 14px; padding: 2px 9px; border-radius: 5px; }
.tag svg { width: 14px; height: 16px; fill: currentColor; }
.tag-ghost { background: var(--bone); color: var(--green-d); }
.tag-trader { background: oklch(1 0 0 / .1); color: var(--bone); }
.tag-pool { background: oklch(0.5 0.02 160); color: var(--bone); }
.tag-me { background: var(--lamp); color: var(--ink); margin-left: 6px; }
.empty-row td { white-space: normal; padding: 28px 16px; color: var(--mute-g); }
.cen-top { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 40px; align-items: end; }
.supplybar { display: flex; height: 44px; border-radius: 6px; overflow: hidden; background: var(--green-dd); box-shadow: inset 0 0 0 2px oklch(1 0 0 / .12); }
.supplybar i { display: block; height: 100%; transition: width .9s var(--ease); }
.sb-ghost { background: var(--bone); } .sb-trader { background: var(--sage); opacity: .55; } .sb-pool { background: oklch(0.5 0.02 160); }
.supplylegend { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 10px; font-size: 15px; font-weight: 600; }
.supplylegend span::before { content: ""; display: inline-block; width: 12px; height: 12px; border-radius: 3px; margin-right: 7px; vertical-align: -1px; background: var(--sw); }

/* treasury */
.tre-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); margin-top: 40px; align-items: stretch; }
.splitbar { display: flex; height: 76px; border-radius: 8px; overflow: hidden; box-shadow: inset 0 0 0 2px oklch(0.23 0.035 165 / .2); }
.splitbar div { display: flex; align-items: flex-end; padding: 10px 12px; font-weight: 900; font-size: 22px; min-width: 0; overflow: hidden; }
.sp-burn { background: var(--ink); color: var(--bone); flex: 10; }
.sp-creator { background: var(--bone); color: var(--ink); flex: 45; }
.sp-vault { background: var(--green); color: var(--bone); flex: 45; }
.splitlist { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 10px; }
.splitlist li { display: grid; grid-template-columns: 1fr auto; gap: 10px; align-items: baseline; font-size: 17px; border-bottom: 1px solid oklch(0.23 0.035 165 / .18); padding-bottom: 10px; }
.splitlist li b { font-weight: 800; }
.splitlist li small { display: block; font-size: 14px; color: oklch(0.30 0.04 30); }
.vaultbox { background: var(--ink); color: var(--bone); border-radius: 12px; padding: 24px; display: flex; flex-direction: column; gap: 14px; }
.vb-top { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; }
.vb-top h3 { margin: 0; font-size: 20px; font-weight: 800; }
.vb-big { font-weight: 900; font-size: clamp(40px, 4vw, 60px); line-height: 1; letter-spacing: -.02em; }
.vb-big small { font-size: .4em; font-weight: 800; letter-spacing: 0; margin-left: 6px; }
.vb-rows { display: grid; grid-template-columns: 1fr auto; gap: 6px 12px; font-size: 16px; margin: 0; }
.vb-rows dt { color: var(--mute-g); }
.vb-rows dd { margin: 0; font-weight: 800; text-align: right; }
.vb-note { font-size: 14px; color: var(--mute-g); margin: 0; }
.vb-load { font-size: .45em; letter-spacing: 0; }
.vb-addr { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; font-size: 15px; padding: 10px 0; border-top: 1px solid oklch(1 0 0 / .12); border-bottom: 1px solid oklch(1 0 0 / .12); }
.vb-addr > span { color: var(--mute-g); }
.vb-addr .copy { font-family: var(--m); font-weight: 600; margin: 0; }
.vb-addr a { font-weight: 800; color: var(--lamp); }
.runs-lede { margin: -6px 0 0; max-width: 60ch; color: oklch(0.30 0.04 30); }
.runs-wrap { margin-top: 18px; background: var(--ink); color: var(--bone); }
.runs-table td.res { white-space: normal; min-width: 220px; }
.rw { font-weight: 800; overflow-wrap: anywhere; }
.rw.ok { color: var(--sage); } .rw.warn { color: var(--lamp); } .rw.bad { color: oklch(0.80 0.09 30); }
.retry { margin-left: 8px; background: var(--bone); color: var(--ink); border: 0; border-radius: 6px; padding: 4px 12px; font-weight: 800; cursor: pointer; min-height: 30px; }
.spends { list-style: none; padding: 0; margin: 0; border-top: 2px solid oklch(0.23 0.035 165 / .3); }
.spends li { display: grid; grid-template-columns: 110px minmax(0, 1fr) auto auto; gap: 16px; align-items: center; padding: 14px 0; border-bottom: 1px solid oklch(0.23 0.035 165 / .2); font-size: 16px; }
.spends .sk-kind { font-weight: 800; }
.spends .sk-note { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.spends .sk-amt { font-weight: 800; text-align: right; }
.spends a { font-weight: 800; color: var(--ink); }
.spends .empty { display: block; padding: 20px 0; }
.days { display: flex; align-items: flex-end; gap: 4px; height: 140px; padding: 12px; background: oklch(0.23 0.035 165 / .08); border-radius: 8px; overflow-x: auto; }
.days .day { flex: 1 0 14px; max-width: 42px; background: var(--green); border-radius: 3px 3px 0 0; min-height: 3px; position: relative; }
.days .empty { align-self: center; margin: auto; color: oklch(0.30 0.04 30); }

/* proof */
.proof-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(32px, 6vw, 96px); }
.steps { margin: 32px 0 0; padding: 0; list-style: none; counter-reset: s; display: grid; gap: 22px; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 52px 1fr; gap: 16px; font-size: 18px; color: var(--mute-g); }
.steps li::before { content: counter(s); display: grid; place-items: center; width: 52px; height: 52px; border-radius: 10px; background: var(--green); color: var(--bone); font-weight: 900; font-size: 24px; box-shadow: inset 0 0 0 3px var(--green), inset 0 0 0 5px var(--bone); }
.steps li b { color: var(--bone); display: block; font-size: 20px; }
.faq details { border-bottom: 1px solid oklch(1 0 0 / .14); }
.faq summary { cursor: pointer; list-style: none; padding: 20px 40px 20px 0; font-weight: 800; font-size: 20px; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 6px; top: 16px; font-size: 28px; color: var(--lamp); transition: transform .2s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq p { margin: 0 0 22px; color: var(--mute-g); max-width: 62ch; }

/* pages */
.page { min-height: 100svh; padding: 120px 0 96px; position: relative; }
.page-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 16px 40px; }
.toolbar { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-top: 40px; }
.seg { display: inline-flex; background: var(--green-dd); border-radius: 8px; padding: 4px; gap: 4px; }
.seg button { border: 0; background: none; padding: 8px 16px; border-radius: 6px; font-weight: 800; cursor: pointer; min-height: 36px; }
.seg button[aria-selected="true"], .seg button[aria-pressed="true"] { background: var(--bone); color: var(--green-d); }
.seg-small button { padding: 6px 12px; font-size: 15px; }
.search { flex: 1 1 260px; max-width: 420px; }
.search input { width: 100%; min-height: 44px; border-radius: 8px; border: 2px solid oklch(1 0 0 / .3); background: var(--green-dd); color: var(--bone); padding: 8px 14px; font: 600 16px var(--m); }
.search input::placeholder { color: oklch(0.80 0.03 150); }
.search input:focus { outline: none; border-color: var(--lamp); }
.pager { display: flex; gap: 10px; align-items: center; margin-top: 16px; font-weight: 600; }
.pager button { background: var(--bone); color: var(--green-d); border: 0; border-radius: 6px; padding: 6px 14px; font-weight: 800; cursor: pointer; min-height: 36px; }
.pager button[disabled] { opacity: .4; cursor: default; }
.band-rose .spends a { color: var(--ink); }

/* ghost page */
.ghostpage { background: radial-gradient(70% 50% at 30% 30%, oklch(0.30 0.04 165), var(--ink)); }
.gp { display: grid; grid-template-columns: minmax(260px, 420px) minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
.gp-window { position: relative; aspect-ratio: 3 / 4; border-radius: 10px 10px 4px 4px; border: 12px solid var(--bone-2);
  background: radial-gradient(circle at 50% 62%, oklch(0.97 0.07 95), var(--lamp) 45%, var(--lamp-d)); box-shadow: 0 0 80px oklch(0.87 0.13 92 / .35), inset 0 -26px 0 oklch(0.72 0.13 75); overflow: hidden; }
.gp-window::before { content: ""; position: absolute; inset: 0; z-index: 2; background: linear-gradient(90deg, transparent calc(50% - 5px), var(--bone-2) calc(50% - 5px) calc(50% + 5px), transparent calc(50% + 5px)), linear-gradient(0deg, transparent calc(55% - 5px), var(--bone-2) calc(55% - 5px) calc(55% + 5px), transparent calc(55% + 5px)); }
.gp-window svg { position: absolute; left: 50%; bottom: 20px; width: 58%; transform: translateX(-50%); fill: oklch(0.98 0.01 95); z-index: 1; animation: bob 4s ease-in-out infinite; }
.gp-window svg .e { fill: var(--ink); }
.gp-window.dark { background: oklch(0.2 0.03 200); box-shadow: inset 0 -26px 0 oklch(0.16 0.03 200); }
.gp h1 { font-weight: 900; font-size: clamp(56px, 8vw, 120px); line-height: .9; letter-spacing: -.03em; margin: 8px 0 20px; }
.gp .kick { font-weight: 800; color: var(--lamp); font-size: 18px; }
.gp dl { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 12px 28px; margin: 24px 0; font-size: 17px; }
.gp dt { color: var(--mute-g); }
.gp dd { margin: 0; font-weight: 800; min-width: 0; overflow-wrap: anywhere; }
.gp .hold { display: inline-flex; gap: 8px; align-items: center; padding: 4px 12px; border-radius: 6px; background: var(--sage); color: var(--ink); font-weight: 800; }
.gp .hold.no { background: var(--rose); }
.gp-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 12px; }
.gp-note { color: var(--mute-g); max-width: 60ch; font-size: 16px; }
.gp-look { margin: 18px 0 0; font-size: 20px; }
.gp-look b { display: block; font-weight: 800; color: var(--bone); }
.gp-look span { display: block; font-size: 15px; color: var(--mute-g); margin-top: 2px; }
.gp-check { margin-top: 28px; padding: 16px 18px; border-radius: 10px; background: oklch(0.29 0.035 165); max-width: 64ch; }
.gp-check b { color: var(--lamp); font-size: 17px; }
.gp-check p { margin: 6px 0 0; color: var(--mute-g); font-size: 16px; }
.gp-check a { color: var(--bone); font-weight: 600; }
.back { display: inline-block; margin-bottom: 28px; font-weight: 800; text-decoration: none; }
.back:hover { text-decoration: underline; }

/* footer */
.footer { padding: 64px 0 120px; }
.foot-grid { display: grid; grid-template-columns: 1.2fr .8fr 1.2fr 1.4fr; gap: 32px; align-items: start; }
.foot-grid > * { min-width: 0; }
.foot-brand { display: flex; gap: 14px; align-items: flex-start; }
.foot-brand p { margin: 0; color: var(--mute-g); }
.foot-brand b { color: var(--bone); font-size: 20px; }
.footer nav { display: grid; gap: 8px; }
.footer nav a { font-weight: 800; text-decoration: none; }
.footer nav a:hover { text-decoration: underline; }
.foot-k { display: block; font-weight: 800; color: var(--lamp); margin-bottom: 6px; }
.foot-sched p { margin: 0; color: var(--mute-g); }
#footCa { font-family: var(--m); font-size: 14px; overflow-wrap: anywhere; }

/* sheet */
.sheet-scrim { position: fixed; inset: 0; z-index: 60; background: oklch(0.2 0.03 165 / .5); }
.sheet { position: fixed; z-index: 61; top: 76px; right: var(--gut); width: 400px; max-height: calc(100svh - 96px); overflow: auto;
  background: var(--bone); color: var(--ink); border-radius: 14px; padding: 22px; box-shadow: 0 24px 60px oklch(0.2 0.04 165 / .45);
  animation: sheetin .25s var(--ease); }
@keyframes sheetin { from { transform: translateY(-8px); opacity: 0; } }
.sheet-grab { display: none; }
.sheet-head { display: flex; justify-content: space-between; align-items: center; }
.sheet-head h2 { margin: 0; font-weight: 900; font-size: 28px; }
.x { width: 36px; height: 36px; border-radius: 8px; border: 0; background: var(--bone-2); font-size: 24px; cursor: pointer; line-height: 1; }
.cs-img { width: 56px; height: 56px; border-radius: 10px; object-fit: cover; background: var(--bone-2); }
.cs-row { display: flex; gap: 14px; align-items: center; margin: 14px 0; }
.cs-price { font-weight: 900; font-size: 32px; line-height: 1; }
.cs-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 16px; margin: 12px 0; }
.cs-stats div { display: flex; flex-direction: column; font-size: 14px; color: var(--mute-p); }
.cs-stats b { font-size: 18px; color: var(--ink); }
.spark { width: 100%; height: 64px; margin: 8px 0; }
.spark path.l { fill: none; stroke: var(--green); stroke-width: 2; }
.spark path.a { fill: oklch(0.38 0.075 158 / .12); }
.cs-ca { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 12px; background: var(--bone-2); border-radius: 8px; font-family: var(--m); font-size: 14px; margin: 12px 0; }
.buy { display: grid; grid-template-columns: 1fr auto; gap: 8px; margin-top: 8px; }
.buy label { grid-column: 1 / -1; font-weight: 800; font-size: 15px; }
.buy input { min-height: 44px; border-radius: 8px; border: 2px solid var(--bone-3); background: oklch(0.98 0.01 95); padding: 8px 12px; font: 700 17px var(--f); color: var(--ink); }
.buy input:focus { outline: none; border-color: var(--green); }
.buy .btn-lamp { background: var(--green); color: var(--bone); box-shadow: 0 3px 0 var(--green-dd); }
.buy-err { grid-column: 1 / -1; color: var(--red); font-weight: 700; font-size: 15px; margin: 0; }
.presets { grid-column: 1 / -1; display: flex; gap: 6px; }
.presets button { border: 0; background: var(--bone-2); border-radius: 6px; padding: 5px 10px; font-weight: 800; cursor: pointer; min-height: 30px; }
.cs-links { display: flex; gap: 14px; margin-top: 14px; font-weight: 800; font-size: 15px; }

/* toasts */
.toasts { position: fixed; z-index: 80; left: 50%; bottom: 24px; transform: translateX(-50%); display: grid; gap: 8px; width: min(440px, calc(100% - 32px)); }
.toast { background: var(--ink); color: var(--bone); border-radius: 10px; padding: 12px 16px; font-weight: 600; box-shadow: 0 12px 30px oklch(0.2 0.04 165 / .4); animation: sheetin .25s var(--ease); display: flex; justify-content: space-between; gap: 12px; }
.toast a { color: var(--lamp); font-weight: 800; }
.toast.err { background: var(--red); }

/* tabbar */
.tabbar { display: none; }

/* ============ RESPONSIVE ============ */
@media (min-width: 1700px) {
  .wrap { width: min(1560px, 100% - 2 * var(--gut)); }
  .keytag { width: 340px; }
}
@media (max-width: 1100px) {
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .cen-top { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  :root { --road: 70px; }
  body { font-size: 16px; }
  .routes, .hud .btn-ghost { display: none; }
  .hud { height: 56px; gap: 12px; }
  .hud .chip { padding: 5px 10px; gap: 7px; min-height: 36px; }
  .scene { min-height: auto; padding-top: 56px; }
  .scene-grid { grid-template-columns: minmax(0, 1fr); grid-template-areas: "limits" "street" "tag"; padding-left: 0; }
  .limits { padding: 16px var(--gut) 0; gap: 14px; }
  .rule { font-size: 18px; max-width: none; }
  .sign { display: grid; grid-template-columns: 1.1fr 1fr; gap: 8px; filter: drop-shadow(0 10px 12px oklch(0.25 0.04 30 / .3)); }
  .sign-face { padding: 14px 10px 12px; }
  .sign-name { font-size: 22px; }
  .sign-pop { margin-top: 6px; gap: 6px; }
  .sign-pop-l { font-size: 20px; }
  .roll { font-size: 60px; }
  .sign-est { font-size: 14px; margin-top: 4px; }
  .sign-plate { margin-top: 0; padding: 14px 14px 12px; display: flex; flex-direction: column; justify-content: center; }
  .plate-row { font-size: 15px; flex-direction: column; gap: 0; }
  .plate-small { font-size: 13px; }
  .posts { display: none; }
  .runplate { grid-column: 1 / -1; margin: 0; }
  .book-line .txl { gap: 10px; font-size: 14px; }
  .kt-look { font-size: 14px; }
  .street-track { min-height: 340px; padding: 20px 40px var(--road) 16px; }
  .street-hint { bottom: 8px; font-size: 13px; }
  .keytag { justify-self: stretch; width: auto; margin: 16px var(--gut) 24px; transform: none; border-radius: 16px 16px 44px 44px / 16px 16px 30px 30px; }
  .keytag:hover { transform: none; }
  /* on phones the key tag sits under the street, so the road belongs to the street, not the scene */
  .scene::after { display: none; }
  .road { display: block; position: absolute; left: 0; right: 0; bottom: 0; height: var(--road); z-index: -1;
    background: repeating-linear-gradient(90deg, transparent 0 60px, oklch(0.55 0.05 50 / .25) 60px 62px, transparent 62px 140px), linear-gradient(180deg, oklch(0.62 0.06 55), oklch(0.54 0.055 45) 55%, oklch(0.46 0.05 40));
    box-shadow: inset 0 3px 0 oklch(0.45 0.05 45); }
  .street-hint { top: 8px; bottom: auto; }
  .keytag { margin-bottom: 56px; }
  .rule { font-size: 16px; }
  .runplate { padding: 9px 12px; }
  .rp-result { font-size: 15px; margin: 2px 0 4px; }
  .rp-next { margin-top: 4px; padding-top: 4px; }
  .reg-wrap, .proof-grid, .tre-grid { grid-template-columns: minmax(0, 1fr); }
  .reg-head { position: static; }
  .book-cols { display: none; }
  .book { background-image: none; }
  .book-line { grid-template-columns: 44px minmax(0, 1fr) auto; grid-template-areas: "no guest tok" "no time proof"; gap: 2px 10px; padding: 10px 14px 10px 0; }
  .book-line .bno { grid-area: no; } .book-line .bguest { grid-area: guest; } .book-line .btime { grid-area: time; font-size: 14px; }
  .book-line .btok { grid-area: tok; } .book-line .bproof { grid-area: proof; }
  .book-empty { padding: 20px; }
  .spends li { grid-template-columns: minmax(0, 1fr) auto; gap: 4px 12px; }
  .spends .sk-note { grid-column: 1 / -1; order: 3; white-space: normal; font-size: 15px; }
  .hwy-signs { min-width: 980px; }
  .asphalt { min-width: 980px; }
  .foot-grid { grid-template-columns: minmax(0, 1fr); }
  .footer { padding-bottom: 110px; }
  .gp { grid-template-columns: minmax(0, 1fr); }
  .gp-window { max-width: 240px; }
  .page { padding-top: 88px; }
  .ttable { font-size: 15px; }
  .ttable th, .ttable td { padding: 10px 10px; }
  .sheet { top: auto; bottom: 0; left: 0; right: 0; width: auto; max-height: 86svh; border-radius: 18px 18px 0 0; padding: 12px 18px calc(22px + env(safe-area-inset-bottom)); animation: sheetup .3s var(--ease); }
  .sheet-grab { display: block; width: 44px; height: 5px; border-radius: 3px; background: var(--bone-3); margin: 0 auto 10px; }
  @keyframes sheetup { from { transform: translateY(40px); opacity: 0; } }
  .toasts { bottom: 84px; }
  .tabbar {
    display: grid; grid-template-columns: repeat(4, 1fr); position: fixed; z-index: 50; left: 0; right: 0; bottom: 0;
    background: var(--green-d); box-shadow: 0 -1px 0 oklch(1 0 0 / .1); padding: 6px 6px calc(6px + env(safe-area-inset-bottom));
  }
  .tabbar a, .tabbar button { display: flex; flex-direction: column; align-items: center; gap: 2px; min-height: 52px; justify-content: center; font-size: 12px; font-weight: 800; text-decoration: none; background: none; border: 0; border-radius: 8px; cursor: pointer; }
  .tabbar svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
  .tabbar a[aria-current="page"] { background: var(--bone); color: var(--green-d); }
}
@media (max-width: 420px) {
  .brand-word { font-size: 17px; }
  .hud .chip-chg { display: none; }
}
@media (hover: none) { .street-hint { opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .tumble { display: none; }
}
.nomotion .sprite .bob, .nomotion .tumble, .nomotion .tumble svg, .nomotion .gp-window svg { animation-play-state: paused; }
