/* Styles of the CityGSSR page (served by Staticmod). */
:root { color-scheme: light; --ink: #1d2433; --muted: #5b6474; --paper: #f4f1ea;
        --accent: #2f6fb3; --good: #2e8b57; --bad: #d9822b; }
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; font: 15px/1.4 system-ui, sans-serif; color: var(--ink); background: var(--paper); }
#app { position: fixed; inset: 0; }
.layer { position: absolute; inset: 0; z-index: 2; pointer-events: none; }
.layer > * { pointer-events: auto; }
canvas { position: absolute; inset: 0; width: 100%; height: 100%; touch-action: none; cursor: grab; }
.panel { position: absolute; top: 12px; left: 50%; transform: translateX(-50%); max-width: calc(100% - 24px);
         background: #fffdf8; border: 1px solid #d8d2c4; border-radius: 10px; padding: 10px 16px;
         box-shadow: 0 4px 16px rgba(0,0,0,.08); text-align: center; }
.panel h1 { margin: 0 0 4px; font-size: 1.4em; }
.target { font-size: 1.5em; font-weight: 700; }
.muted { color: var(--muted); font-size: .9em; }
.side { position: absolute; top: 12px; right: 12px; background: #fffdf8; border: 1px solid #d8d2c4;
        border-radius: 10px; padding: 8px 12px; min-width: 160px; font-size: .9em; }
.side ol { margin: 4px 0 0; padding-left: 20px; }
.home { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(244,241,234,.85); }
.card { background: #fffdf8; border: 1px solid #d8d2c4; border-radius: 12px; padding: 24px; width: min(420px, calc(100% - 32px));
        display: grid; gap: 10px; }
.card h1 { margin: 0; }
input { font: inherit; padding: 8px 10px; border: 1px solid #c9c2b2; border-radius: 6px; width: 100%; }
button { font: inherit; padding: 8px 14px; border: 0; border-radius: 6px; background: var(--accent); color: white; cursor: pointer; }
button.secondary { background: #e4dfd3; color: var(--ink); }
.row { display: flex; gap: 8px; }
.row > * { flex: 1; }
.row > button { flex: 0 0 auto; white-space: nowrap; }
.controls { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.controls > .row { align-self: stretch; }
.attribution { position: absolute; bottom: 4px; right: 8px; font-size: 11px; color: var(--muted); text-align: right; }

/* The /stats page. */
body.stats { height: auto; max-width: 820px; margin: 0 auto; padding: 24px 16px; }
.stats .scroll { overflow-x: auto; }
.stats table { border-collapse: collapse; width: 100%; font-variant-numeric: tabular-nums; }
.stats th, .stats td { padding: 6px 10px; border-bottom: 1px solid #d8d2c4; text-align: right; white-space: nowrap; }
.stats th:first-child, .stats td:first-child { text-align: left; }
.stats th { font-weight: 600; color: var(--muted); }
.stats .fine { font-size: 12px; color: var(--muted); margin-top: 20px; }
.good { color: var(--good); } .bad { color: var(--bad); }
canvas.minimap { inset: auto; left: 12px; bottom: 12px; width: 170px; height: 170px; z-index: 1; cursor: pointer;
                 background: #fffdf8; border: 1px solid #d8d2c4; border-radius: 10px; }
