/* cobalt-allahu-birds.css — this game's chrome on the Cobalt schema (claude_20261002_cobalt, sub-agent training-a, 2026-10-03).
 * Loads last. The play surface (canvas art, sprites, sand deck) keeps its own look; HUD, cards, type and buttons use the tokens. */

/* the game's chrome variables now come from the Cobalt tokens (light by default, dark from the shell or the system) */
:root, :root[data-theme] {
  --of-paper: var(--paper); --of-ink: var(--ink); --of-muted: var(--muted); --of-line: var(--line);
  --of-chip: color-mix(in srgb, var(--ink) 6%, transparent); --accent-fill: var(--cobalt); --pressed: var(--accent-subtle);
  color: var(--ink); font: 400 var(--fs-body)/1.5 var(--font); color-scheme: light dark;
}
:root[data-theme="light"] { color-scheme: light; }
:root[data-theme="dark"] { color-scheme: dark; }
.c-game button { font-family: var(--font); }

/* HUD: one thin glass line, small clear type */
.c-game.game-shell .hud { gap: 4px; background: var(--glass-strong); color: var(--ink); border-bottom: 1px solid var(--glass-line); }
.c-game.game-shell .hud button { width: 44px; height: 44px; border-radius: 6px; color: var(--ink); }
.c-game.game-shell .hud button:hover { background: var(--accent-subtle); }
.c-game.game-shell .hud button svg { width: 18px; height: 18px; }
.c-game #score-readout { font-size: 16px; font-weight: 700; letter-spacing: 0; }
.c-game #level-readout, .c-game #best-readout { font-size: 11px; font-weight: 700; color: var(--muted); }
.c-game.game-shell .hud .pill { height: 26px; gap: 5px; padding: 0 9px; border-radius: 13px; background: var(--accent-subtle); border: 1px solid color-mix(in srgb, var(--cobalt) 35%, transparent); color: var(--ink); font-size: 12px; font-weight: 700; }
.c-game.game-shell .hud .pill small { font-size: 10px; font-weight: 700; letter-spacing: .08em; opacity: 1; color: var(--muted); }

/* card layers: glass, content-sized, small type with bold ledes */
.c-game .card-layer { background: var(--scrim); }
.c-game .card { max-width: 26rem; border-radius: var(--r-sheet); background: var(--glass); border: 1px solid var(--glass-line); box-shadow: var(--shadow); color: var(--ink); -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur); }
@media (prefers-reduced-transparency: reduce) { .c-game .card { background: var(--glass-strong); -webkit-backdrop-filter: none; backdrop-filter: none; } }
.c-game .card-body { padding: 16px; gap: 10px; }
.c-game .card h1 { font-size: var(--fs-title); font-weight: 700; }
.c-game .card h2 { font-size: 17px; font-weight: 700; }
.c-game .eyebrow { color: var(--muted); font: 700 10px/1.2 var(--font); letter-spacing: .08em; text-transform: uppercase; }
html[data-theme] .c-game .eyebrow { color: var(--muted); }
.c-game .lede { color: var(--muted); font-size: var(--fs-body); line-height: 1.5; }
.c-game .note { color: var(--muted); font-size: var(--fs-small); }
.c-game .best { color: var(--muted); font-size: var(--fs-body); }
.c-game .best strong { color: var(--ink); }
.c-game .card button { min-height: 44px; border: 1px solid var(--rule); border-radius: 6px; background: var(--card); color: var(--cobalt); font-size: 13px; font-weight: 700; }
.c-game .card .primary { min-height: 48px; border-color: var(--cobalt); background: var(--cobalt); color: var(--on-accent); font-size: 14px; }
.c-game .card .primary:active { background: color-mix(in srgb, var(--cobalt) 80%, var(--ink)); }
.c-game .row > button { font-size: 13px; }
.c-game .card .linkish { min-height: 44px; border-color: transparent; background: transparent; color: var(--muted); font-size: 12px; font-weight: 400; }
.c-game .segmented { padding: 2px; gap: 2px; border-radius: 6px; background: var(--card); border: 1px solid var(--rule); }
.c-game .card .segmented button { min-height: 40px; border: 0; border-radius: 4px; background: transparent; color: var(--ink); font-size: 12.5px; }
.c-game .card .segmented button[aria-pressed=true] { background: var(--cobalt); color: var(--on-accent); }
.c-game .card .levels button { width: 60px; height: 60px; border-radius: 8px; color: var(--ink); font-size: 16px; }
.c-game .card .levels button.next { border-color: var(--cobalt); box-shadow: inset 0 0 0 1px var(--cobalt); }
.c-game .levels { grid-template-columns: repeat(4, 60px); }
.c-game .tally, .c-game .scores { font-size: 12.5px; }
.c-game .tally .total { font-size: 14px; }
.c-game .scores li.me { background: var(--accent-subtle); }

/* the sand deck is game art; its words stay readable */
.c-game .deck .hint { font-size: 12.5px; }
.c-game .deck button { font-size: 13px; }

/* the old explainer card rules no longer apply: the How to play sheet is c-howto (css/cobalt-arcade.css) */
.c-game .c-howto-layer .c-sheet { max-width: none; }
.c-game .card .levels button[aria-disabled="true"] { opacity: .45; cursor: default; }
.c-game .lock-note { text-align: center; color: var(--ink); font-weight: 700; }
.c-game #audio-button svg { width: 18px; height: 18px; stroke-width: 1.5; }
.c-game #audio-button polygon { fill: none; }
