/* ============================================================
   THE LOOK LIVES HERE. Ten skins, one token block each. The app's
   components never change; only these values do. A skin Calvin brings
   in from a reference becomes another block in this file, nothing more.
   Fonts are system faces on purpose: SF Pro, New York, SF Rounded and
   SF Mono are genuinely different characters and load instantly on his
   phone, so switching looks is not gated on a webfont download.
   ============================================================ */

/* ---------- 1. QUIET (default): dark, neutral, one green ---------- */
[data-skin="quiet"] {
  --ground:#101215; --surface:#171a1f; --surface-2:#1e222a; --line:#2a2f38;
  --ink:#e7ebf0; --ink-dim:#97a1af; --ink-faint:#838d9c;
  --accent:#58c9a0; --accent-ink:#0c1512; --warn:#e0a955; --danger:#eb7a6d;
  --radius:12px; --radius-sm:8px; --border-w:1px;
  --font:ui-sans-serif,-apple-system,sans-serif; --font-h:var(--font);
  --mono:ui-monospace,"SF Mono",Menlo,monospace;
  --label-case:none; --label-track:0; --bar-h:22px; --shadow:none;
}

/* ---------- 2. PAPER: light, printed, ink and a red pen ---------- */
[data-skin="paper"] {
  --ground:#f7f5f1; --surface:#ffffff; --surface-2:#efece6; --line:#ddd8ce;
  --ink:#1a1815; --ink-dim:#5d574c; --ink-faint:#6f6859;
  --accent:#a8321e; --accent-ink:#ffffff; --warn:#8a6410; --danger:#a8321e;
  --radius:4px; --radius-sm:3px; --border-w:1px;
  --font:ui-serif,Georgia,serif; --font-h:ui-serif,Georgia,serif;
  --mono:ui-monospace,Menlo,monospace;
  --label-case:none; --label-track:0; --bar-h:18px; --shadow:none;
}

/* ---------- 3. TERMINAL: phosphor, square, everything mono ---------- */
[data-skin="terminal"] {
  --ground:#080a08; --surface:#0e120e; --surface-2:#141a14; --line:#1f2a1f;
  --ink:#c8f5cf; --ink-dim:#7fae87; --ink-faint:#6d9674;
  --accent:#4ef07a; --accent-ink:#04140a; --warn:#f0d04e; --danger:#f0684e;
  --radius:0px; --radius-sm:0px; --border-w:1px;
  --font:ui-monospace,"SF Mono",Menlo,monospace; --font-h:var(--font);
  --mono:ui-monospace,"SF Mono",Menlo,monospace;
  --label-case:uppercase; --label-track:0.08em; --bar-h:20px; --shadow:none;
}

/* ---------- 4. BLUEPRINT: drafting table, cyan on navy ---------- */
[data-skin="blueprint"] {
  --ground:#0b1c2e; --surface:#10263c; --surface-2:#16324c; --line:#20486b;
  --ink:#dff0ff; --ink-dim:#8fb6d6; --ink-faint:#7ea6c8;
  --accent:#4fc3f7; --accent-ink:#04121e; --warn:#ffc95c; --danger:#ff8a80;
  --radius:2px; --radius-sm:2px; --border-w:1px;
  --font:ui-sans-serif,-apple-system,sans-serif; --font-h:var(--font);
  --mono:ui-monospace,Menlo,monospace;
  --label-case:uppercase; --label-track:0.1em; --bar-h:20px; --shadow:none;
}

/* ---------- 5. CONSOLE: chunky, loud, game-menu weight ---------- */
[data-skin="console"] {
  --ground:#15161c; --surface:#1e2028; --surface-2:#282b36; --line:#363a48;
  --ink:#ffffff; --ink-dim:#a8adbd; --ink-faint:#9298a9;
  --accent:#ff6b35; --accent-ink:#1a0d05; --warn:#ffc233; --danger:#ff4757;
  --radius:18px; --radius-sm:12px; --border-w:2px;
  --font:ui-rounded,ui-sans-serif,-apple-system,sans-serif; --font-h:var(--font);
  --mono:ui-monospace,Menlo,monospace;
  --label-case:uppercase; --label-track:0.04em; --bar-h:28px;
  --shadow:0 2px 0 rgba(0,0,0,.35);
}

/* ---------- 6. CLINICAL: white, calm, one blue, thin rules ---------- */
[data-skin="clinical"] {
  --ground:#ffffff; --surface:#fbfcfd; --surface-2:#f1f4f8; --line:#dde3ea;
  --ink:#10161d; --ink-dim:#525d6b; --ink-faint:#5d6875;
  --accent:#1565c0; --accent-ink:#ffffff; --warn:#9a6000; --danger:#c62828;
  --radius:8px; --radius-sm:6px; --border-w:1px;
  --font:ui-sans-serif,-apple-system,sans-serif; --font-h:var(--font);
  --mono:ui-monospace,Menlo,monospace;
  --label-case:none; --label-track:0; --bar-h:20px; --shadow:none;
}

/* ---------- 7. DUSK: warm dark, brass, soft edges ---------- */
[data-skin="dusk"] {
  --ground:#1a1416; --surface:#241c1f; --surface-2:#2f2529; --line:#3d3034;
  --ink:#f2e8e4; --ink-dim:#b8a49c; --ink-faint:#a89489;
  --accent:#d9a441; --accent-ink:#1a1207; --warn:#d9a441; --danger:#e0705f;
  --radius:14px; --radius-sm:10px; --border-w:1px;
  --font:ui-serif,Georgia,serif; --font-h:ui-serif,Georgia,serif;
  --mono:ui-monospace,Menlo,monospace;
  --label-case:none; --label-track:0.01em; --bar-h:22px; --shadow:none;
}

/* ---------- 8. HUD: black, thin strokes, wide tracking ---------- */
[data-skin="hud"] {
  --ground:#000000; --surface:#07090b; --surface-2:#0d1114; --line:#1c262c;
  --ink:#e6f4f8; --ink-dim:#8aa4ae; --ink-faint:#7d97a1;
  --accent:#00e5ff; --accent-ink:#001519; --warn:#ffd166; --danger:#ff5c7a;
  --radius:2px; --radius-sm:1px; --border-w:1px;
  --font:ui-sans-serif,-apple-system,sans-serif; --font-h:var(--font);
  --mono:ui-monospace,"SF Mono",Menlo,monospace;
  --label-case:uppercase; --label-track:0.14em; --bar-h:14px; --shadow:none;
}

/* ---------- 9. SLATE: grey, corporate-calm, no colour but one ---------- */
[data-skin="slate"] {
  --ground:#1c1f23; --surface:#24282d; --surface-2:#2d3238; --line:#3a4046;
  --ink:#eceef0; --ink-dim:#a0a7ad; --ink-faint:#949ba2;
  --accent:#c9d1d9; --accent-ink:#1c1f23; --warn:#d1a054; --danger:#e06c5f;
  --radius:6px; --radius-sm:4px; --border-w:1px;
  --font:ui-sans-serif,-apple-system,sans-serif; --font-h:var(--font);
  --mono:ui-monospace,Menlo,monospace;
  --label-case:none; --label-track:0; --bar-h:18px; --shadow:none;
}

/* ---------- 10. SIGNAL: near-black with one hot pink, high contrast ---------- */
[data-skin="signal"] {
  --ground:#0d0d0f; --surface:#151518; --surface-2:#1d1d22; --line:#2b2b33;
  --ink:#f5f5f7; --ink-dim:#9d9da8; --ink-faint:#91919c;
  --accent:#ff2d78; --accent-ink:#ffffff; --warn:#ffb020; --danger:#ff2d78;
  --radius:10px; --radius-sm:7px; --border-w:1px;
  --font:ui-sans-serif,-apple-system,sans-serif; --font-h:var(--font);
  --mono:ui-monospace,Menlo,monospace;
  --label-case:uppercase; --label-track:0.06em; --bar-h:24px; --shadow:none;
}

/* ---- the few places a skin needs to reach past colour ---- */
body { font-family: var(--font); }
.brand, h2, h3, .auth h1 { font-family: var(--font-h); }
.card, .agent, .money > div, .night, .outcome, .sheet, .auth input,
.composer textarea, .row-btn, .danger-btn { border-width: var(--border-w); }
.count, .badge, .tag { text-transform: var(--label-case); letter-spacing: var(--label-track); }
.bar { height: var(--bar-h); }
.card, .agent { box-shadow: var(--shadow); }

/* ---- the picker ---- */
.skins { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.skin {
  border: 2px solid var(--line); border-radius: var(--radius); padding: 0;
  overflow: hidden; background: none; text-align: left; min-height: var(--tap);
}
.skin.on { border-color: var(--accent); }
.skin .prev { height: 62px; padding: 8px 9px; display: flex; flex-direction: column; gap: 5px; }
.skin .pr-row { display: flex; align-items: center; gap: 5px; }
.skin .pr-chip { height: 9px; border-radius: 3px; flex: 1; }
.skin .pr-dot { width: 11px; height: 11px; border-radius: 3px; flex-shrink: 0; }
.skin .pr-bar { height: 9px; border-radius: 3px; }
.skin .nm { display: block; padding: 7px 9px 8px; font-size: 13px; font-weight: 620;
  background: var(--surface); color: var(--ink); border-top: 1px solid var(--line); }
.skin .nm small { display: block; font-weight: 400; font-size: 11.5px; color: var(--ink-faint); }

/* ============================================================
   11. GEOSCAPE — the skin Calvin actually asked for (2026-08-29:
   "model it after XCOM's Geoscape"). Component vocabulary, not
   copied art: holographic globe, cut corners, corner brackets,
   scanline glow, cyan primary with amber and red alert states,
   condensed uppercase labels, a resource strip and a running clock.
   ============================================================ */
[data-skin="geoscape"] {
  --ground:#04090f; --surface:#0a1622; --surface-2:#0f2131; --line:#1b3d55;
  --ink:#dff2ff; --ink-dim:#8fbdd8; --ink-faint:#7fadc9;
  --accent:#31d0f5; --accent-ink:#02121a; --warn:#ffb638; --danger:#ff4d5e;
  --radius:0px; --radius-sm:0px; --border-w:1px;
  --font:ui-sans-serif,-apple-system,"Helvetica Neue",sans-serif; --font-h:var(--font);
  --mono:ui-monospace,"SF Mono",Menlo,monospace;
  --label-case:uppercase; --label-track:0.12em; --bar-h:18px; --shadow:none;
  --cut:10px;
}

/* the scanline field: a lit screen, not a printed page */
[data-skin="geoscape"] body::after {
  content: ""; position: fixed; inset: 0; z-index: 100; pointer-events: none;
  background: repeating-linear-gradient(180deg,
    rgba(49,208,245,.045) 0 1px, transparent 1px 3px);
}
/* and the cathode glow at the edges */
[data-skin="geoscape"] body::before {
  content: ""; position: fixed; inset: 0; z-index: 99; pointer-events: none;
  background: radial-gradient(120% 80% at 50% 40%, transparent 55%, rgba(2,10,18,.85) 100%);
}

/* cut-corner panels: the angular frame, on the surfaces big enough to carry it */
[data-skin="geoscape"] .card,
[data-skin="geoscape"] .agent,
[data-skin="geoscape"] .money > div,
[data-skin="geoscape"] .night,
[data-skin="geoscape"] .sheet {
  clip-path: polygon(0 0, calc(100% - var(--cut)) 0, 100% var(--cut),
                     100% 100%, var(--cut) 100%, 0 calc(100% - var(--cut)));
  background: linear-gradient(180deg, var(--surface) 0%, var(--surface-2) 100%);
}

/* corner brackets: the focus marks. On a quest card they read as a target. */
[data-skin="geoscape"] .card { position: relative; }
[data-skin="geoscape"] .card::before,
[data-skin="geoscape"] .card::after {
  content: ""; position: absolute; width: 9px; height: 9px; pointer-events: none;
  border: 1px solid var(--accent); opacity: .8;
}
[data-skin="geoscape"] .card::before { top: 5px; left: 5px; border-right: 0; border-bottom: 0; }
[data-skin="geoscape"] .card::after { bottom: 5px; right: 5px; border-left: 0; border-top: 0; }

/* labels: condensed, tracked, uppercase */
[data-skin="geoscape"] h2, [data-skin="geoscape"] .brand {
  text-transform: uppercase; letter-spacing: .1em; font-size: 13px; font-weight: 700;
}
[data-skin="geoscape"] .brand { font-size: 14px; }
[data-skin="geoscape"] .card .a,
[data-skin="geoscape"] .lvl .meta,
[data-skin="geoscape"] .money .l {
  text-transform: uppercase; letter-spacing: .07em; font-size: 11.5px;
  font-family: var(--mono);
}
/* the money figures and the register count read as mission resources */
[data-skin="geoscape"] .money .n,
[data-skin="geoscape"] .count { font-family: var(--mono); }
[data-skin="geoscape"] .count { border-radius: 0; }

/* alert states pulse rather than sit still */
[data-skin="geoscape"] .card .who.money {
  animation: geo-alert 2.4s ease-in-out infinite;
}
@keyframes geo-alert {
  0%,100% { box-shadow: 0 0 0 0 rgba(255,77,94,.55); }
  50%     { box-shadow: 0 0 0 6px rgba(255,77,94,0); }
}
@media (prefers-reduced-motion: reduce) {
  [data-skin="geoscape"] .card .who.money { animation: none; }
}

/* the resource strip: money and the register count, always on, under the globe */
.resources { display: flex; gap: 0; border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line); margin: 0 -14px 14px; }
.resources div { flex: 1; padding: 8px 12px; border-right: 1px solid var(--line); }
.resources div:last-child { border-right: 0; }
.resources .rk { font-family: var(--mono); font-size: 10px; letter-spacing: .1em;
  text-transform: uppercase; color: var(--ink-faint); }
.resources .rv { font-family: var(--mono); font-size: 16px; font-weight: 700;
  font-variant-numeric: tabular-nums; margin-top: 1px; }
.resources .rv.hot { color: var(--danger); }
.resources .rv.ok { color: var(--accent); }
/* the running clock */
.clock { font-family: var(--mono); font-size: 11px; letter-spacing: .06em;
  color: var(--ink-faint); font-variant-numeric: tabular-nums; }

/* the nav and the action buttons were still speaking the generic language */
[data-skin="geoscape"] .nav { background: var(--surface); }
[data-skin="geoscape"] .nav button {
  text-transform: uppercase; letter-spacing: .1em; font-size: 9.5px; font-weight: 700;
}
[data-skin="geoscape"] .nav button.on { text-shadow: 0 0 8px var(--accent); }
[data-skin="geoscape"] .promote,
[data-skin="geoscape"] .demote,
[data-skin="geoscape"] .acts button,
[data-skin="geoscape"] .composer button,
[data-skin="geoscape"] .auth button,
[data-skin="geoscape"] .danger-btn,
[data-skin="geoscape"] .row-btn {
  text-transform: uppercase; letter-spacing: .09em; font-weight: 700; font-size: 13px;
  clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 8px, 100% 100%, 8px 100%, 0 calc(100% - 8px));
}
[data-skin="geoscape"] .agent-h .nm { text-transform: uppercase; letter-spacing: .08em; }
[data-skin="geoscape"] .sheet .ask { text-transform: uppercase; letter-spacing: .09em;
  font-family: var(--mono); font-size: 13px; }

/* clip-path removes borders, so buttons that relied on a border went invisible.
   In this skin they get a real surface and a bright label instead. */
[data-skin="geoscape"] .acts .no,
[data-skin="geoscape"] .acts .full,
[data-skin="geoscape"] .demote,
[data-skin="geoscape"] .row-btn {
  background: var(--surface-2); border: 0; color: var(--ink);
  box-shadow: inset 0 0 0 1px var(--line);
}
[data-skin="geoscape"] .danger-btn {
  background: rgba(255,77,94,.12); border: 0; color: var(--danger);
  box-shadow: inset 0 0 0 1px var(--danger);
}

/* ============================================================
   12. FIELD GUIDE — Calvin's reference, 2026-08-29: "take The Sims
   and reimagine it as a modern-day Pokemon RPG." Agents are creatures
   (his call: Palworld / Pokemon, not people); contemporary RPG
   rendering, no pixel-art nostalgia. Bright, warm, high-contrast
   panels; type colours; big friendly type; the party is the hero.
   ============================================================ */
[data-skin="pokedex"] {
  --ground:#f4f1ea; --surface:#ffffff; --surface-2:#efeae0; --line:#ddd5c7;
  --ink:#20242b; --ink-dim:#5c6470; --ink-faint:#626875;
  --accent:#e8963a; --accent-ink:#2a1705; --warn:#a26828; --danger:#cb4545;
  --radius:18px; --radius-sm:12px; --border-w:2px;
  --font:ui-rounded,ui-sans-serif,-apple-system,sans-serif; --font-h:var(--font);
  --mono:ui-monospace,"SF Mono",Menlo,monospace;
  --label-case:none; --label-track:0; --bar-h:20px;
  --shadow:0 2px 0 rgba(120,102,74,.16);
}
[data-skin="pokedex"] body {
  background:
    radial-gradient(circle at 12% 8%, rgba(232,150,58,.10), transparent 42%),
    radial-gradient(circle at 88% 22%, rgba(108,92,231,.09), transparent 46%),
    var(--ground);
}
[data-skin="pokedex"] h2 { font-weight: 800; letter-spacing: -0.01em; }
[data-skin="pokedex"] .brand { font-weight: 800; }
[data-skin="pokedex"] .count { font-weight: 800; }

/* the creature panel */
.mon { padding: 0 !important; overflow: hidden; }
.mon-top { display: flex; gap: 12px; padding: 12px 12px 10px;
  background: linear-gradient(135deg, color-mix(in oklab, var(--tint) 16%, transparent), transparent 62%); }
.mon-art { width: 92px; height: 92px; flex-shrink: 0; border-radius: 14px; object-fit: cover;
  background: color-mix(in oklab, var(--tint) 12%, #fff); }
.mon-id { min-width: 0; flex: 1; }
.mon-name { font-weight: 800; font-size: 17px; letter-spacing: -0.01em; display: flex;
  align-items: baseline; gap: 7px; flex-wrap: wrap; }
.mon-stage { font-size: 11px; font-weight: 700; color: var(--ink-faint); }
.mon-sub { font-size: 12.5px; color: var(--ink-dim); margin-top: 1px; }
.mon-badges { display: flex; gap: 6px; align-items: center; margin-top: 7px; flex-wrap: wrap; }
.type-pill { font-size: 11px; font-weight: 800; letter-spacing: .07em; padding: 3px 10px;
  border-radius: 999px; background: var(--pill, var(--tint)); color: #fff; }
.mon-state { font-size: 11px; font-weight: 700; padding: 3px 9px; border-radius: 999px;
  background: var(--surface-2); color: var(--ink-dim); }
.mon-state.working { background: #d8f3e0; color: #17683c; }
.mon-state.offline { background: #f2dede; color: #8e2f2f; }
.xp-row { display: flex; align-items: center; gap: 7px; margin-top: 8px; }
.xp-lbl { font-family: var(--mono); font-size: 10px; font-weight: 700; color: var(--ink-faint);
  letter-spacing: .08em; }
.xp-row .bar { flex: 1; margin-top: 0; height: 10px; }
.xp-num { font-family: var(--mono); font-size: 11px; font-weight: 700; color: var(--ink-dim);
  font-variant-numeric: tabular-nums; }
.mon-note { font-size: 12.5px; color: var(--ink-faint); padding: 0 12px 8px; }
.moves { padding: 4px 12px 12px; }
.moves-h { font-size: 11.5px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase;
  color: var(--ink-faint); margin-bottom: 6px; }
.move { background: var(--surface-2); border-radius: var(--radius-sm); padding: 10px 11px;
  margin-bottom: 7px; }
.move:last-child { margin-bottom: 0; }
.move.mastered { background: color-mix(in oklab, var(--tint) 13%, var(--surface-2)); }
.move-h { display: flex; align-items: baseline; gap: 8px; }
.move-h code { font-family: var(--mono); font-size: 12.5px; color: var(--ink-dim); }
.move-h .badge { margin-left: auto; }
/* the old .lvl rules no longer apply inside a move; keep the bar row tidy */
.move .bar-row { margin-top: 7px; }
.move .meta { font-size: 12px; color: var(--ink-faint); margin-top: 6px; }

/* creature portrait as the card avatar */
.who.art { padding: 0; overflow: hidden; background: color-mix(in oklab, var(--tint) 14%, transparent); }
.who.art img { width: 100%; height: 100%; object-fit: cover; display: block; }
[data-skin="pokedex"] .who { width: 40px; height: 40px; border-radius: 11px; }
[data-skin="pokedex"] .who.money { box-shadow: 0 0 0 2px var(--danger); }

/* chunky friendly buttons, the RPG menu feel */
[data-skin="pokedex"] .acts .yes,
[data-skin="pokedex"] .promote,
[data-skin="pokedex"] .composer button,
[data-skin="pokedex"] .auth button { font-weight: 800; box-shadow: 0 3px 0 rgba(120,102,74,.22); }
[data-skin="pokedex"] .acts .no,
[data-skin="pokedex"] .acts .full,
[data-skin="pokedex"] .demote,
[data-skin="pokedex"] .row-btn { font-weight: 700; }
[data-skin="pokedex"] .nav { border-top: 2px solid var(--line); }
[data-skin="pokedex"] .nav button { font-weight: 700; }
[data-skin="pokedex"] .card { border-color: var(--line); }
[data-skin="pokedex"] .sec-h h2 { font-size: 17px; }

/* the other skins keep the party readable too */
[data-skin="geoscape"] .mon-art,
[data-skin="quiet"] .mon-art { background: rgba(255,255,255,.06); }
[data-skin="geoscape"] .type-pill { border-radius: 0; }

/* the bar track vanished where a move sits on the same colour as the track */
.move .bar { background: color-mix(in oklab, var(--ink) 12%, transparent); }
.xp-row .bar { background: color-mix(in oklab, var(--ink) 12%, transparent); }
[data-skin="pokedex"] .move .badge { background: #fff; color: var(--ink-dim);
  box-shadow: inset 0 0 0 1px var(--line); font-family: var(--font); font-weight: 800;
  font-size: 11px; letter-spacing: .02em; padding: 3px 9px; border-radius: 999px; }
[data-skin="pokedex"] .move .badge.l2 { background: var(--pill, var(--tint)); color: #fff; box-shadow: none; }
[data-skin="pokedex"] .move .bar i,
[data-skin="pokedex"] .xp-row .bar i { background: var(--tint); }
[data-skin="pokedex"] .empty { font-size: 13.5px; }

/* The Geoscape globe belongs to the XCOM reference, not to this world. It stays
   built and shows in that skin; here it would be a tactical artifact in a
   creature-raising game. Hidden rather than deleted. */
[data-skin="pokedex"] .geo,
[data-skin="pokedex"] .geo-legend { display: none; }

/* the money card kept its red plate ON TOP of the creature portrait */
.who.art.money { background: transparent; }
/* the source art centres the creature in a wide empty backdrop, so a 40px crop
   needs a zoom with its origin on the body, not on the frame centre */
.who.art img { transform: scale(1.25); transform-origin: center 42%; }
[data-skin="pokedex"] .who.money { box-shadow: 0 0 0 2px var(--danger); }
[data-skin="pokedex"] .resources { border-top: 0; }

/* ============================================================
   FIELD GUIDE, round 2. Calvin: "feels more like a utility app
   rather than a game app." He is right: game-quality creatures were
   wearing app chrome. The tells were a scrolling card list, a flat
   tab bar, thin progress bars and a 92px thumbnail. Fixed by making
   the creature dominate, the panels physical, the stats segmented,
   and the actions a command grid instead of a button row.
   ============================================================ */

/* --- the party strip: pick a creature, like a party slot --- */
.party-strip { display: flex; gap: 8px; padding: 4px 0 12px; }
.slot { position: relative; width: 58px; height: 58px; padding: 0; border-radius: 14px;
  overflow: hidden; border: 3px solid transparent; background: var(--surface-2); flex-shrink: 0;
  box-shadow: 0 2px 0 rgba(120,102,74,.2); }
.slot img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.5); display: block; }
.slot.on { border-color: var(--tint); transform: translateY(-2px); }
.slot-dot { position: absolute; right: 3px; bottom: 3px; width: 9px; height: 9px;
  border-radius: 50%; background: var(--ink-faint); box-shadow: 0 0 0 2px var(--surface); }
.slot-dot.working { background: #2fae63; }
.slot-dot.offline { background: #d05a5a; }

/* --- the summary screen: the creature is the hero, not a thumbnail --- */
.summary { border-radius: var(--radius); overflow: hidden; }
.stage-art { position: relative; height: 232px; border-radius: var(--radius);
  background:
    radial-gradient(circle at 50% 78%, color-mix(in oklab, var(--tint) 34%, transparent), transparent 62%),
    linear-gradient(180deg, color-mix(in oklab, var(--tint) 15%, var(--surface)), var(--surface));
  box-shadow: inset 0 0 0 2px var(--line); display: grid; place-items: center; }
.hero-mon { height: 224px; width: auto; object-fit: contain; filter: drop-shadow(0 10px 14px rgba(60,45,20,.28));
  animation: bob 3.6s ease-in-out infinite; }
@keyframes bob { 0%,100% { transform: translateY(0) } 50% { transform: translateY(-9px) } }
@media (prefers-reduced-motion: reduce) { .hero-mon { animation: none } }
.stage-tag { position: absolute; top: 10px; right: 12px; font-family: var(--mono); font-size: 10.5px;
  font-weight: 800; letter-spacing: .1em; color: var(--ink-dim);
  background: var(--surface); padding: 4px 9px; border-radius: 999px;
  box-shadow: inset 0 0 0 1px var(--line); }

/* --- the name plate: pressed, not flat --- */
.plate { margin-top: 10px; background: var(--surface); border-radius: var(--radius); padding: 12px 13px;
  box-shadow: inset 0 0 0 2px var(--line), 0 3px 0 rgba(120,102,74,.16); }
.plate-name { font-size: 23px; font-weight: 800; letter-spacing: -0.02em;
  display: flex; align-items: center; gap: 9px; flex-wrap: wrap; }
.plate-sub { font-size: 12.5px; color: var(--ink-dim); margin-top: 2px; }
.plate-state { margin-top: 9px; font-size: 12px; font-weight: 700; color: var(--ink-dim);
  background: var(--surface-2); border-radius: 8px; padding: 6px 9px; }
.plate-state.working { color: #17683c; background: #d8f3e0; }

/* --- segmented stat bars: a game counts in notches, not a smooth fill --- */
.stat { display: flex; align-items: center; gap: 8px; margin-top: 10px; }
.stat-k { font-family: var(--mono); font-size: 10.5px; font-weight: 800; letter-spacing: .1em;
  color: var(--ink-faint); }
.stat-v { font-family: var(--mono); font-size: 12px; font-weight: 800; color: var(--ink-dim);
  font-variant-numeric: tabular-nums; margin-left: auto; }
.seg { display: flex; gap: 2px; flex: 1; height: 14px; }
.seg i { flex: 1; border-radius: 2px; background: color-mix(in oklab, var(--ink) 13%, transparent); }
.seg i.on { background: var(--tint); box-shadow: inset 0 -2px 0 rgba(0,0,0,.16); }

/* --- moves as chunky cartridge tiles, two up --- */
.moves-grid-h { font-family: var(--mono); font-size: 11px; font-weight: 800; letter-spacing: .12em;
  color: var(--ink-faint); margin: 16px 0 7px; }
.moves-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.mv { background: var(--surface); border-radius: 14px; padding: 11px;
  box-shadow: inset 0 0 0 2px var(--line), 0 3px 0 rgba(120,102,74,.14); }
.mv.mastered { background: color-mix(in oklab, var(--tint) 12%, var(--surface));
  box-shadow: inset 0 0 0 2px var(--tint), 0 3px 0 rgba(120,102,74,.14); }
/* the move name is an identifier: let the badge drop to its own line rather
   than break "build.change" into "build.chang / e" */
.mv-top { display: flex; align-items: baseline; gap: 6px; margin-bottom: 8px; flex-wrap: wrap; }
.mv-top code { font-family: var(--mono); font-size: 10.5px; color: var(--ink-dim);
  white-space: nowrap; }
.mv-top .badge { margin-left: auto; }
.mv .seg { height: 11px; }
.mv-note { font-size: 11.5px; color: var(--ink-dim); margin-top: 8px; line-height: 1.35; }
.mv-num { font-family: var(--mono); font-size: 10.5px; font-weight: 700; color: var(--ink-faint);
  margin-top: 5px; }
.mv .promote, .mv .demote { margin-top: 9px; font-size: 12px; min-height: 36px; }

/* --- the encounter: who is talking, then a command grid --- */
.enc-who { display: flex; align-items: center; gap: 9px; margin-bottom: 10px; }
.enc-who img { width: 40px; height: 40px; border-radius: 11px; object-fit: cover;
  transform: scale(1.5); background: color-mix(in oklab, var(--tint) 15%, transparent); }
.enc-who span { font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase;
  color: var(--ink-faint); }
.cmd { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; margin-top: 4px; }
.cmd-b { display: flex; flex-direction: column; align-items: flex-start; gap: 1px;
  min-height: 58px; padding: 10px 12px; border: 0; border-radius: 14px; text-align: left;
  background: var(--surface-2); color: var(--ink);
  box-shadow: inset 0 0 0 2px var(--line), 0 4px 0 rgba(120,102,74,.2); }
.cmd-b b { font-size: 14px; font-weight: 800; letter-spacing: .04em; }
.cmd-b small { font-size: 11px; color: var(--ink-dim); font-weight: 600; }
.cmd-b:active { transform: translateY(3px); box-shadow: inset 0 0 0 2px var(--line), 0 1px 0 rgba(120,102,74,.2); }
.cmd-b.yes { background: var(--accent); color: var(--accent-ink); box-shadow: inset 0 0 0 2px #b9711f, 0 4px 0 #a2641c; }
.cmd-b.yes small { color: #4a2f08; }
.cmd-b.no { background: var(--surface); }

/* --- the menu bar: pressed keys, not a flat tab strip --- */
[data-skin="pokedex"] .nav { background: var(--surface-2); border-top: 2px solid var(--line);
  gap: 5px; padding: 7px 7px calc(7px + env(safe-area-inset-bottom)); }
[data-skin="pokedex"] .nav button { border-radius: 12px; background: var(--surface);
  box-shadow: inset 0 0 0 2px var(--line), 0 3px 0 rgba(120,102,74,.18);
  font-weight: 800; font-size: 10px; letter-spacing: .03em; padding: 7px 0 8px; min-height: 46px; }
[data-skin="pokedex"] .nav button.on { background: var(--accent); color: var(--accent-ink);
  box-shadow: inset 0 0 0 2px #b9711f, 0 3px 0 #a2641c; }
[data-skin="pokedex"] .nav button:active { transform: translateY(2px);
  box-shadow: inset 0 0 0 2px var(--line), 0 1px 0 rgba(120,102,74,.18); }

/* --- quest cards get a selection cursor and press physics --- */
[data-skin="pokedex"] .card { box-shadow: inset 0 0 0 2px var(--line), 0 3px 0 rgba(120,102,74,.16);
  border: 0; padding-left: 26px; position: relative; }
[data-skin="pokedex"] .card::before { content: "▶"; position: absolute; left: 9px; top: 50%;
  transform: translateY(-50%); font-size: 10px; color: var(--accent); opacity: 0; transition: opacity .14s; }
[data-skin="pokedex"] .card:active { transform: translateY(2px);
  box-shadow: inset 0 0 0 2px var(--line), 0 1px 0 rgba(120,102,74,.16); }
[data-skin="pokedex"] .card:active::before, [data-skin="pokedex"] .card:focus-visible::before { opacity: 1; }
[data-skin="pokedex"] .sheet { box-shadow: inset 0 0 0 2px var(--line); }
[data-skin="pokedex"] .resources div { border-right: 2px solid var(--line); }

/* ============================================================
   THE WORLD. Calvin: "it's character/agent-focused. Where's the rest
   of the environment, the world these characters live in?" The Sims
   half of his reference was missing. The lot is generated art in the
   creatures' own style; creatures stand at their stations and places
   fly a marker when they hold something waiting on him.
   ============================================================ */
.world { position: relative; margin: 2px -14px 12px; overflow: hidden; }
.world-plate { width: 100%; display: block; }
.world::after { content: ""; position: absolute; inset: 0; pointer-events: none;
  transition: background .8s ease; }
.world.morning::after { background: linear-gradient(180deg, rgba(255,196,120,.16), transparent 55%); }
.world.day::after     { background: none; }
.world.dusk::after    { background: linear-gradient(180deg, rgba(255,140,80,.20), rgba(80,50,120,.16)); }
.world.night::after   { background: linear-gradient(180deg, rgba(30,40,90,.44), rgba(10,15,45,.40)); }

/* a place that holds something waiting on him */
.place { position: absolute; transform: translate(-50%,-50%); background: none; border: 0;
  padding: 0; display: grid; place-items: center; min-width: 34px; min-height: 34px; }
.place-name { position: absolute; top: 100%; margin-top: 3px; white-space: nowrap;
  font-size: 9.5px; font-weight: 800; letter-spacing: .03em; color: #fff;
  background: rgba(28,24,18,.62); padding: 2px 6px; border-radius: 6px; opacity: 0;
  transition: opacity .18s; pointer-events: none; }
.place:active .place-name, .place:focus-visible .place-name { opacity: 1; }
.mark { min-width: 24px; height: 24px; border-radius: 12px; background: var(--accent);
  color: var(--accent-ink); font-size: 12px; font-weight: 800; display: grid; place-items: center;
  padding: 0 6px; box-shadow: 0 2px 0 rgba(90,60,15,.45), 0 0 0 2px rgba(255,255,255,.75);
  animation: mark-bob 2.2s ease-in-out infinite; }
.mark.money { background: var(--danger); color: #fff; box-shadow: 0 2px 0 rgba(120,25,25,.45), 0 0 0 2px rgba(255,255,255,.75); }
@keyframes mark-bob { 0%,100% { transform: translateY(0) } 50% { transform: translateY(-4px) } }

/* a creature standing at its station */
.stand { position: absolute; transform: translate(-50%,-50%); width: 62px; height: 62px;
  padding: 0; border: 0; background: none; }
.stand img { width: 100%; height: 100%; object-fit: contain;
  filter: drop-shadow(0 4px 5px rgba(40,30,10,.4)); animation: bob 3.4s ease-in-out infinite; }
.stand.offline img { filter: drop-shadow(0 4px 5px rgba(40,30,10,.35)) grayscale(.55) opacity(.72); animation: none; }
.stand.working img { animation-duration: 1.8s; }
.stand::after { content: ""; position: absolute; left: 50%; bottom: -2px; width: 26px; height: 7px;
  transform: translateX(-50%); border-radius: 50%; background: rgba(40,30,10,.22); }

.world-foot { position: absolute; left: 14px; right: 14px; bottom: 8px; display: flex;
  align-items: center; gap: 8px; pointer-events: none; }
.world-phase { font-family: var(--mono); font-size: 9.5px; font-weight: 800; letter-spacing: .12em;
  color: #fff; background: rgba(28,24,18,.5); padding: 3px 8px; border-radius: 999px; }
.world-hint { margin-left: auto; font-size: 10px; font-weight: 700; color: #fff;
  background: rgba(28,24,18,.5); padding: 3px 8px; border-radius: 999px; }

@media (prefers-reduced-motion: reduce) {
  .mark, .stand img { animation: none; }
}
/* the globe skin keeps its globe; the world belongs to the field guide */
/* The globe belongs to the geoscape skin ALONE. Scoping the hide-rule to one
   skin name meant every new skin inherited a stray globe; inverted so a new
   skin can never accidentally show it. */
.geo, .geo-legend { display: none; }
[data-skin="geoscape"] .geo, [data-skin="geoscape"] .geo-legend { display: block; }
[data-skin="geoscape"] .geo-legend { display: flex; }
[data-skin="geoscape"] .world { display: none; }

/* ============================================================
   13. INK & INK-BRUSH — THE LOCKED LOOK (Calvin, 2026-08-30):
   "Sumi-e Ink as the main style, but the characters and animated
   objects are shonen daylight."
   The world and all chrome are ink on washi: monochrome, quiet,
   no colour at all. The ONLY saturated things on screen are the
   creatures and the objects that are alive or want something.
   That makes colour carry information instead of decoration.
   ============================================================ */
[data-skin="ink"] {
  --ground:#efeade; --surface:#f8f5ec; --surface-2:#e6e0d0; --line:#c9c0ab;
  --ink:#1c1a17; --ink-dim:#4d4840; --ink-faint:#615c50;
  --accent:#b3241c; --accent-ink:#ffffff; --warn:#8a6a10; --danger:#b3241c;
  --radius:3px; --radius-sm:2px; --border-w:1px;
  --font:ui-serif,"Hiragino Mincho ProN",Georgia,serif; --font-h:var(--font);
  --mono:ui-monospace,"SF Mono",Menlo,monospace;
  --label-case:none; --label-track:0.02em; --bar-h:14px; --shadow:none;
}
/* washi: the paper is the ground, with its fibre showing */
[data-skin="ink"] body {
  background-color: var(--ground);
  background-image:
    radial-gradient(circle at 18% 22%, rgba(120,105,80,.05) 0 1px, transparent 1px),
    radial-gradient(circle at 62% 68%, rgba(120,105,80,.045) 0 1px, transparent 1px),
    radial-gradient(circle at 84% 34%, rgba(120,105,80,.04) 0 1px, transparent 1px);
  background-size: 37px 41px, 53px 47px, 29px 31px;
}
/* everything structural is a brushed rule, not a filled box */
[data-skin="ink"] .card,
[data-skin="ink"] .agent,
[data-skin="ink"] .money > div,
[data-skin="ink"] .night,
[data-skin="ink"] .outcome,
[data-skin="ink"] .plate,
[data-skin="ink"] .mv,
[data-skin="ink"] .cmd-b {
  background: var(--surface); box-shadow: none;
  border: 1px solid var(--line); border-radius: var(--radius);
}
[data-skin="ink"] .stage-art {
  background: var(--surface); box-shadow: inset 0 0 0 1px var(--line);
  border-radius: var(--radius);
}
[data-skin="ink"] h2, [data-skin="ink"] .brand, [data-skin="ink"] .plate-name {
  font-weight: 600; letter-spacing: 0.01em;
}
/* the seal: the one vermilion mark, like a stamp on a scroll */
[data-skin="ink"] .count { background: var(--accent); color: #fff; border-radius: 2px;
  font-family: var(--mono); font-weight: 700; }
[data-skin="ink"] .count.zero { background: transparent; color: var(--ink-faint);
  box-shadow: inset 0 0 0 1px var(--line); }
[data-skin="ink"] .type-pill { border-radius: 2px; }
[data-skin="ink"] .seg i { border-radius: 0; background: rgba(28,26,23,.14); }
[data-skin="ink"] .seg i.on { background: var(--tint); box-shadow: none; }
[data-skin="ink"] .bar { border-radius: 0; background: rgba(28,26,23,.12); }
/* buttons read as brushed labels, with the seal reserved for the primary act */
[data-skin="ink"] .cmd-b { clip-path: none; }
[data-skin="ink"] .cmd-b.yes { background: var(--accent); color: #fff; border-color: var(--accent); }
[data-skin="ink"] .cmd-b.yes small { color: rgba(255,255,255,.82); }
[data-skin="ink"] .promote { background: var(--accent); color: #fff; border-radius: var(--radius); }
[data-skin="ink"] .nav { background: var(--surface); border-top: 1px solid var(--line); gap: 0; padding: 0; }
[data-skin="ink"] .nav button { background: none; box-shadow: none; border-radius: 0;
  border-right: 1px solid var(--line); font-weight: 600; letter-spacing: .04em; }
[data-skin="ink"] .nav button:last-child { border-right: 0; }
[data-skin="ink"] .nav button.on { color: var(--accent); background: var(--surface-2); }
[data-skin="ink"] .resources div { border-right: 1px solid var(--line); }
[data-skin="ink"] .resources { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

/* the world plate is ink; only the living things on it carry colour */
[data-skin="ink"] .world { filter: none; }
[data-skin="ink"] .world.night::after  { background: rgba(30,34,60,.26); }
[data-skin="ink"] .world.dusk::after   { background: rgba(120,70,30,.12); }
[data-skin="ink"] .world.morning::after{ background: rgba(190,160,90,.08); }
[data-skin="ink"] .mark { background: var(--accent); color: #fff; border-radius: 2px;
  box-shadow: 0 0 0 2px var(--surface); font-family: var(--mono); }
[data-skin="ink"] .mark.money { background: var(--accent); }
[data-skin="ink"] .world-phase, [data-skin="ink"] .world-hint {
  background: rgba(28,26,23,.66); border-radius: 2px; }
