/* cobalt-contraforce.css — ContraForce chrome on the Cobalt schema (claude_20261002_cobalt, sub-agent training-a, 2026-10-03).
 * Loads after styles.css and the kit. The mission canvas, its overlay art and the touch pads keep their look; the page,
 * header, loadout panel, status readouts, buttons and type come from the tokens. */

/* the palette styles.css expects (it used to @import /cic/shell-tokens.css, which this origin does not serve) */
:root, :root[data-theme] {
  --of-paper: var(--paper); --of-paper-soft: var(--paper-soft); --of-ink: var(--ink); --of-ink-soft: var(--muted);
  --of-rule: var(--rule); --of-primary: var(--cobalt); --of-good: var(--good); --of-warn: var(--warn);
  --control-min-h: 44px;
  font-family: var(--font);
}
body.c-game { font: 400 12.5px/1.5 var(--font); color: var(--ink); }
.c-game :focus-visible { outline: 2px solid var(--cobalt); outline-offset: 2px; }

/* header: no title band; a small label, a modest bold title, one quiet line */
.c-game .app-header { align-items: center; padding-block: .2rem .8rem; }
.c-game .eyebrow { color: var(--muted); font-size: 11px; font-weight: 700; letter-spacing: .08em; }
.c-game h1 { font-size: 22px; line-height: 1.15; letter-spacing: -.01em; text-shadow: none; }
.c-game .lede { font-size: 13px; }

/* buttons: sentence case, token colours, 44px targets; one cobalt primary per area */
.c-game .button { min-height: var(--c-hit, 44px); padding: 0 12px; border-radius: 6px; font: 700 13px/1.2 var(--font); letter-spacing: 0; text-transform: none; }
.c-game .button.secondary { border-color: var(--rule); background: var(--card); color: var(--cobalt); }
.c-game .button.primary { border-color: var(--cobalt); background: var(--cobalt); color: var(--on-accent); }
.c-game .game-overlay .button.primary { border-color: #c5cedb; background: #c5cedb; color: #0b1324; /* the mission frame is always night: the dark-theme grey accent */ }

/* loadout panel: a plain card, small labels over fields */
.c-game .mission-panel { border-color: var(--line); border-radius: var(--r-card); background: var(--card); }
.c-game .loadout-group { color: var(--muted); font-size: 11px; font-weight: 700; letter-spacing: .08em; }
.c-game select { min-height: var(--c-hit, 44px); border-color: var(--rule); border-radius: 6px; background: var(--card); color: var(--ink); font-family: var(--font); font-size: 16px; }
/* Tilt steering reads as a toggle: the state word sits in the label app.js writes; pressed is the cobalt state */
.c-game #tilt-button { justify-content: flex-start; }
.c-game #tilt-button[aria-pressed="true"] { border-color: var(--cobalt); background: var(--accent-subtle); color: var(--cobalt); }
.c-game .mission-readout { color: var(--muted); font-size: 11px; }
.c-game .mission-readout strong { color: var(--ink); font-size: 15px; }

/* status readouts: small labels, bold values, no colour bands */
.c-game .hud > div { border-color: var(--line); border-top: 1px solid var(--line); border-radius: var(--r-card); background: var(--card); }
.c-game .hud span { font-size: 11px; font-weight: 700; letter-spacing: .08em; }
.c-game .hud strong { font-size: 15px; }
.c-game .meter { border-color: var(--line); border-radius: 3px; background: var(--paper-soft); }
.c-game .controls-panel { border-color: var(--line); border-radius: var(--r-card); background: var(--card); }
.c-game .controls-panel > p { font-size: 12px; }
.c-game .game-frame { border-radius: var(--r-card); }

/* the How to play sheet replaces the old fixed help box */
.c-game .c-howto-layer { z-index: 60; }
@media (max-width: 48rem) { .c-game .header-actions { display: grid; grid-template-columns: 1fr 1fr; width: 100%; } .c-game .header-actions .button { width: 100%; } }
/* touch pads: the grey accent fill carries the accent-ink word in both themes (white on the dark-theme grey failed 4.5:1) */
.c-game .control-button.action { color: var(--on-accent); }
