/* cobalt-arcade.css — the Cobalt chrome layer shared by every Training game (Cobalt, 2026-10-03; revision 2026-10-05:
 * 11px game type floor, close without a circle, compact controls on a mouse and 44px on touch, grey accent from the kit tokens).
 * Byte-identical in every game repo. Load after the game's styles.css, with cobalt/cobalt-tokens.css and cobalt/cobalt-ui.css.
 * It styles chrome only (How to play sheet, glass cards, buttons, type floor); the play surface and its art are untouched. */

/* control height: compact on a mouse, 44px on touch (the game stylesheets use var(--c-hit)) */
:root { --c-hit: 1.9rem; }
@media (pointer: coarse) { :root { --c-hit: 44px; } }

/* ---------- How to play: one card for every game, shown as a kit sheet ---------- */
.c-howto-layer { position: fixed; inset: 0; z-index: 60; display: block; margin: 0; padding: 0; border: 0; border-radius: 0; background: var(--scrim); box-shadow: none; cursor: default; color: var(--ink); font: 400 12.5px/1.5 var(--font); -webkit-backdrop-filter: none; backdrop-filter: none; }
.c-howto-layer[hidden] { display: none !important; }
.c-howto-layer *, .c-howto-layer *::before, .c-howto-layer *::after { box-sizing: border-box; }
.c-howto-layer .c-sheet { color: var(--ink); font: 400 12.5px/1.5 var(--font); text-align: left; animation: c-howto-in var(--dur) var(--ease); }
@keyframes c-howto-in { from { transform: translateY(32px); opacity: 0; } to { transform: none; opacity: 1; } }
.c-howto-layer .c-shd .c-ttl { margin: 4px 0 0; padding: 0; font-size: 15px; font-weight: 700; letter-spacing: 0; text-transform: none; }
.c-howto-layer .c-shd .c-label { margin: 0; }
/* game chrome keeps every word at 11px or more (DESIGN_STANDARD §4.3: games and consent text) */
.c-howto-layer .c-label, .c-game .c-label { font-size: 11px; }
.c-howto-layer .c-kbd, .c-game .c-kbd { font-size: 11px; }
.c-howto-layer .c-x, .c-game .c-x { position: relative; display: grid; place-items: center; width: 28px; height: 28px; min-width: 0; min-height: 0; margin: 0; padding: 0; border: 0; border-radius: 6px; background: transparent; color: var(--muted); font: 700 11px/1 var(--font); box-shadow: none; }
.c-howto-layer .c-x .c-ico, .c-game .c-x .c-ico { width: 12px; height: 12px; }
.c-howto-layer .c-x::after, .c-game .c-x::after { content: ""; position: absolute; inset: -8px; }
.c-howto-layer .c-x:hover, .c-game .c-x:hover { color: var(--ink); background: var(--accent-subtle); }
.c-howto-layer .c-sbody.c-howto { max-width: none; margin: 0; padding: 2px 14px 12px; border: 0; border-radius: 0; background: none; box-shadow: none; }
.c-howto .c-step { align-items: start; }
.c-howto .c-step b { display: block; margin: 0; color: var(--ink); font-size: 12.5px; font-weight: 700; line-height: 1.35; }
.c-howto .c-step small { display: block; margin: 0; line-height: 1.45; }
.c-howto .c-step:last-of-type { border-bottom: 0; }
.c-howto .c-keys { margin: 8px 0 0; padding: 8px 0 0; border-top: 1px solid var(--line-soft); line-height: 1.7; }
.c-howto .c-keys .c-label { margin-right: 6px; }
.c-howto .c-kbd { color: var(--ink); background: var(--card); }
.c-howto .c-list { display: grid; grid-template-columns: 1fr 1fr; gap: 2px 12px; margin: 4px 0 0; padding: 4px 0 0; list-style: none; font-size: var(--fs-small); color: var(--muted); }
.c-howto .c-list b { color: var(--ink); font-family: var(--mono); font-size: 11px; }
.c-howto .c-blk { margin: 10px 0 0; padding: 9px 11px; border-radius: var(--r-card); background: var(--paper-soft); }
.c-howto .c-blk .c-label { display: block; margin: 0 0 3px; }
.c-howto .c-blk p { margin: 0; color: var(--ink); font-size: 12.5px; line-height: 1.5; }
.c-howto .c-foot { margin: 10px 0 0; color: var(--muted); font-size: var(--fs-small); text-align: center; }
@media (prefers-reduced-motion: reduce) { .c-howto-layer .c-sheet { animation: none; } }
html[data-reduced-motion=on] .c-howto-layer .c-sheet { animation: none; }

/* ---------- glass game cards: lobby, pause, game over, menus ---------- */
.c-game { color: var(--ink); font-family: var(--font); }
/* game cards carry text over a moving canvas: the 92% text glass (DESIGN_STANDARD glass rule) */
.c-game .c-glass-card { background: var(--glass-strong); -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur); border: 1px solid var(--glass-line); border-radius: var(--r-sheet); box-shadow: var(--shadow); color: var(--ink); }
@media (prefers-reduced-transparency: reduce) { .c-game .c-glass-card { background: var(--glass-strong); -webkit-backdrop-filter: none; backdrop-filter: none; } }
@supports not (backdrop-filter: blur(1px)) { .c-game .c-glass-card { background: var(--glass-strong); } }

/* the shared button language: quiet, token-coloured; compact on a mouse, 44px on touch */
.c-game .c-gbtn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 1.9rem; padding: 0 14px; border: 1px solid var(--rule); border-radius: 6px; background: var(--card); color: var(--cobalt); font: 700 13px/1.2 var(--font); letter-spacing: 0; text-transform: none; box-shadow: none; cursor: pointer; }
.c-game .c-gbtn.c-pri { border-color: var(--cobalt); background: var(--cobalt); color: var(--on-accent); }
@media (pointer: coarse) { .c-game .c-gbtn { min-height: 44px; } }
.c-game .c-gbtn:disabled { opacity: .45; cursor: default; }
.c-game .c-gbtn:focus-visible, .c-game button:focus-visible { outline: 2px solid var(--cobalt); outline-offset: 2px; }

/* glass HUD icon buttons: small monoline visuals, 44px targets */
.c-game .c-hud-ico { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }

/* Share on result cards and pages (shared-controls/share-float.js mountShareButton) sits with the card's secondaries */
.c-game .jslc-share-btn { font-family: var(--font); }
