:root {
  --ink:#16312c; --muted:#54706a; --paper:#f5f6ee; --line:#d7e1d6;
  --accent:#146752; --dark:#122a27; --card:#fffef8;
  font-family: "Aptos","Inter",system-ui,sans-serif; color:var(--ink); background:var(--paper);
  font-synthesis:none; line-height:1.45; color-scheme:light;
}
* {box-sizing:border-box}
body {margin:0}
a {color:var(--accent)}
button,input {font:inherit}
button {cursor:pointer}
button:disabled {opacity:.55;cursor:not-allowed}
:focus-visible {outline:3px solid #df8c39; outline-offset:3px}
[hidden] {display:none!important}
h1,h2,h3,p {margin:0}
h1 {font-size:clamp(2.25rem,5vw,4.7rem);letter-spacing:-.075em;line-height:.98}
h2 {font-size:1.28rem;letter-spacing:-.035em}
h3 {font-size:1.03rem}
p + p {margin-top:.7rem}
.top {min-height:67px;background:var(--dark);color:#f3f9ef;display:flex;align-items:center;justify-content:space-between;padding:.65rem max(1rem,calc((100vw - 1220px)/2));gap:12px}
.top a {color:inherit;text-decoration:none}
.brand {font-size:1rem;font-weight:840;letter-spacing:.12em;white-space:nowrap}
.brand-icon {font-size:1.5rem;color:#92e4bd;vertical-align:-.1em;margin-right:.2rem}
nav {display:flex;align-items:center;gap:clamp(.55rem,2vw,1.5rem);font-size:.91rem}
nav a:hover {text-decoration:underline}
.layout {width:min(1220px,calc(100% - 2rem));margin:0 auto;padding:2.6rem 0 4rem}
.headline {display:flex;align-items:end;justify-content:space-between;gap:1rem;margin-bottom:1.55rem;flex-wrap:wrap}
.headline p {color:var(--muted);margin-top:.7rem}
.card {padding:1.2rem;border:1px solid var(--line);background:var(--card);border-radius:1rem;min-width:0}
.card > h2 {margin-bottom:.75rem}
.grid {display:grid;grid-template-columns:minmax(0,1.85fr) minmax(0,1fr);gap:1rem;margin-bottom:1rem}
.metrics {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:.75rem;margin-bottom:1rem}
.metric {padding:.8rem 1rem}
.label,.muted {color:var(--muted);font-size:.9rem}
.value {font-weight:800;letter-spacing:-.045em;font-size:clamp(1.05rem,2.5vw,1.65rem);overflow-wrap:anywhere}
.primary,.secondary,.quiet {border:1px solid transparent;border-radius:.55rem;padding:.56rem .85rem;font-weight:700}
.primary {background:var(--accent);color:white}
.primary:hover {background:#0f5745}
.secondary {color:var(--accent);border-color:#bdd5c8;background:white}
.quiet {color:inherit;background:transparent;border-color:#7a9d91;padding:.38rem .62rem}
.notice {border-radius:.5rem;border:1px solid #bfd8c8;background:#e8f6eb;padding:.75rem;margin-bottom:1rem}
.notice.error {background:#feebe2;border-color:#e6baab}
.headline .notice {margin:0}
section[aria-labelledby] {scroll-margin-top:1rem}
.stack {display:grid;gap:.75rem;align-content:start}
.row {display:flex;align-items:center;justify-content:space-between;gap:.65rem;flex-wrap:wrap}
.split {display:flex;align-items:center;gap:.65rem;flex-wrap:wrap}
form {display:grid;gap:.75rem}
label {display:grid;gap:.25rem;font-size:.89rem;font-weight:650}
label.check {display:flex;align-items:flex-start;font-weight:500}
input:not([type=checkbox]) {color:var(--ink);background:white;border:1px solid #b7c9bf;padding:.55rem .65rem;border-radius:.45rem;min-width:0;width:100%}
input[type=checkbox] {accent-color:var(--accent);margin:.21rem .3rem 0 0}
.fields {display:grid;gap:.6rem;grid-template-columns:repeat(auto-fit,minmax(130px,1fr))}
.login {width:min(440px,100%);margin:3rem auto}
.login h1 {font-size:2.45rem;margin-bottom:1rem}
details {border-top:1px solid var(--line);padding:.65rem 0}
summary {cursor:pointer;font-weight:650}
pre,.preserve {white-space:pre-wrap;overflow-wrap:anywhere}
pre {max-height:18rem;overflow:auto;background:#edf2eb;border-radius:.45rem;padding:.75rem;font-size:.89rem}
.item {border-top:1px solid var(--line);padding:.8rem 0}
.item:last-child {padding-bottom:0}
.item p {margin-top:.3rem}
.tag {white-space:nowrap;display:inline-grid;place-items:center;background:#e7f3e9;border-radius:1em;padding:.15rem .54rem;color:#1d674e;font-size:.78rem;font-weight:750}
.tag.warn {background:#fff0d9;color:#825218}
.scroll {overflow:auto;max-height:380px}
table {width:100%;border-collapse:collapse;font-size:.89rem}
td,th {text-align:right;padding:.35rem;border-bottom:1px solid var(--line);white-space:nowrap}
td:first-child,th:first-child {text-align:left}
.city-card {overflow:hidden;padding:0}
.city-heading {padding:1rem 1.15rem;display:flex;align-items:center;justify-content:space-between;gap:.5rem}
.city-heading p {font-size:.85rem;margin-top:.2rem}
.city {position:relative;isolation:isolate;min-height:350px;background:radial-gradient(ellipse at 60% 50%,#deeee2 4%,#d1e7dd 55%,#b8d4cc 100%);overflow:hidden}
.city::before {content:"";position:absolute;z-index:-1;left:11%;top:4%;width:74%;height:76%;background:repeating-linear-gradient(90deg,transparent 0 42px,#d4e6ce 42px 47px),repeating-linear-gradient(0deg,#9abd9d 0 42px,#cadcc0 42px 47px);transform:rotateX(50deg) rotateZ(38deg);border:1px solid #6e9e82;box-shadow:16px 25px 0 -4px #709b80,24px 40px 25px #37685955;border-radius:1.7rem}
.city::after {content:"";position:absolute;z-index:-1;left:-14%;width:130%;top:49%;height:8px;border-block:3px solid #e6f2e6;background:#8dcbbc;transform:rotate(-14deg);opacity:.44}
.district {position:absolute;left:var(--x);top:var(--y);width:98px;min-height:89px;transform:translate(-50%,-50%);border:0;background:none;display:grid;justify-items:center;align-items:end;color:#f7fff8;line-height:1.15;isolation:isolate}
.building {position:relative;width:var(--w,55px);height:var(--h,44px);margin-bottom:7px;background:repeating-linear-gradient(0deg,transparent 0 10px,#2045456b 10px 12px),linear-gradient(90deg,var(--front) 0 31%,#fff9b2 32% 38%,var(--front) 39% 64%,#c9f4ef 65% 72%,var(--front) 73%);box-shadow:10px 8px 12px #16484255;border-radius:2px 0 1px 3px;animation:drop .5s both;animation-delay:calc(var(--n)*.045s)}
.building::before {content:"";position:absolute;left:100%;top:0;height:100%;width:19px;background:var(--side);transform-origin:left top;transform:skewY(-34deg);border-right:2px solid #24483d44}
.building::after {content:"";position:absolute;left:0;bottom:100%;width:100%;height:14px;background:var(--roof);transform-origin:left bottom;transform:skewX(-55deg)}
.district:nth-child(2) .building {border-radius:8px 8px 1px 1px}
.district:nth-child(3) .building::after {height:22px;clip-path:polygon(0% 100%,52% 0%,100% 100%)}
.district:nth-child(4) .building {border-top:6px solid #ffd9b4}
.district:nth-child(5) .building {border-bottom:6px solid #c1e395}
.district:nth-child(6) .building::after {background:repeating-linear-gradient(90deg,#e2bd78 0 9px,#486a57 9px 13px)}
.district:nth-child(7) .building {border-left:8px solid #c8c5ee}
.district b {font-size:.7rem;letter-spacing:.07em;background:#254339;padding:.3rem .4rem;border-radius:.32rem;text-shadow:0 1px #000}
.district[aria-pressed=true] b,.district:hover b {background:#0c674d;box-shadow:0 0 0 2px #e2fff4}
.district[data-next=true] .building {animation:signal 3s ease-in-out infinite}
@keyframes signal {50% {filter:brightness(1.21);transform:translateY(-4px)}}
@keyframes drop {from {opacity:0;transform:translateY(-8px)} to {opacity:1;transform:none}}
.avatar {--tone:#8ccdb4;display:grid;place-items:center;width:50px;height:50px;border-radius:40% 40% 45% 45%;background:linear-gradient(135deg,var(--tone) 70%,#284f4566 70%);border:2px solid white;color:#15372e;font-size:1.2rem;font-weight:900;box-shadow:0 0 0 1px #a6c8b9}
.district .avatar {position:absolute;right:4px;top:2px;width:26px;height:26px;font-size:.7rem;border-width:1px;z-index:1}
.agent-panel .focus {border-top:1px solid var(--line);margin-top:.8rem;padding-top:.8rem}
.shop-grid {display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,285px),1fr));gap:1rem;margin:.8rem 0 1.4rem}
.shop-grid .card {display:grid;align-content:start;gap:.6rem}
.checkout {max-width:710px;margin:auto}
@media(max-width:860px) {.grid {grid-template-columns:1fr}.layout {padding-top:1.8rem}}
@media(max-width:540px) {.city {min-height:310px}.district {transform:translate(-50%,-50%) scale(.78);width:77px}.brand {font-size:.79rem}.top {gap:4px}.top nav {font-size:.79rem}.metrics {gap:.35rem}.metric {padding:.55rem}.label {font-size:.73rem}.top .quiet {padding:.25rem .35rem}}
@media(prefers-reduced-motion:reduce) {*,*::before,*::after {animation:none!important}}
.district-0 {--n:0;--x:24%;--y:34%;--w:50px;--h:44px;--front:#3d927c;--side:#28665a;--roof:#8bd1af}
.district-1 {--n:1;--x:47%;--y:24%;--w:52px;--h:65px;--front:#52869e;--side:#386577;--roof:#8dc7d3}
.district-2 {--n:2;--x:68%;--y:30%;--w:61px;--h:40px;--front:#ab7252;--side:#895134;--roof:#d29774}
.district-3 {--n:3;--x:80%;--y:52%;--w:47px;--h:51px;--front:#aa6d87;--side:#7a4e65;--roof:#dca4ba}
.district-4 {--n:4;--x:23%;--y:68%;--w:50px;--h:55px;--front:#73935b;--side:#58723d;--roof:#b5ce83}
.district-5 {--n:5;--x:43%;--y:77%;--w:61px;--h:40px;--front:#a47e43;--side:#74582a;--roof:#d2ae66}
.district-6 {--n:6;--x:63%;--y:65%;--w:47px;--h:56px;--front:#8173a8;--side:#5a527b;--roof:#b6a7d7}
.avatar-0 {--tone:#9fd9c1}.avatar-1 {--tone:#99c7db}.avatar-2 {--tone:#ffc493}.avatar-3 {--tone:#ecc1d6}.avatar-4 {--tone:#c7e091}.avatar-5 {--tone:#eac078}.avatar-6 {--tone:#ccbfeb}
