/* aiunum.com games shell (I-031). Linked only from /games/ and only in a --games build. Tokens flip with data-theme on .games. */
.games { --g-bg: var(--card); --g-accent: var(--cobalt-ink); --g-chip: var(--paper-2); --g-edge: var(--line); }
.games[data-theme="ai"] { --g-bg: #fff6e6; --g-accent: #0c6b46; --g-chip: #dff3e7; --g-edge: rgb(12 107 70 / 0.35); }
@media (prefers-color-scheme: dark) { .games[data-theme="ai"] { --g-bg: #1f2a22; --g-accent: #6bd6a6; --g-chip: #26372c; --g-edge: rgb(107 214 166 / 0.4); } }
.g-hero { position: relative; margin: 0; border-radius: var(--r); overflow: hidden; border: 1px solid var(--line); }
.g-hero img { width: 100%; height: auto; }
.g-hero .ai-tag { left: 0.8rem; bottom: 0.8rem; translate: none; }
.g-note { font: 600 0.8125rem/1.4 var(--mono); color: var(--ink-2); }
.g-switch { display: grid; gap: 1rem; padding: 1.25rem; border: 1px solid var(--g-edge); border-radius: var(--r); background: var(--g-bg); transition: background-color 0.3s, border-color 0.3s; }
.g-switch__bar { display: inline-flex; border: 2px solid var(--ink); border-radius: 999px; overflow: hidden; width: fit-content; }
.g-switch__bar button { font: 650 0.9375rem/1 var(--body); padding: 0.7rem 1.1rem; min-height: 44px; border: 0; background: transparent; color: var(--ink); cursor: pointer; }
.g-switch__bar button[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.g-chips { display: grid; gap: 0.75rem; list-style: none; margin: 0; padding: 0; }
@media (min-width: 760px) { .g-chips { grid-template-columns: repeat(3, 1fr); } }
.g-chips li { background: var(--g-chip); border-radius: 10px; padding: 0.9rem 1rem; display: grid; gap: 0.3rem; transition: background-color 0.3s; }
.g-chips b { font-family: var(--display); font-size: 1.2rem; color: var(--g-accent); }
.g-chips small { color: var(--ink-2); font-size: 0.9375rem; }
.games [data-for] { display: none; }
.games[data-theme="unum"] [data-for="unum"], .games[data-theme="ai"] [data-for="ai"] { display: inline; }
.games[data-theme="unum"] li [data-for="unum"], .games[data-theme="ai"] li [data-for="ai"] { display: block; }
.g-grid { display: grid; gap: 1.25rem; list-style: none; margin: 0; padding: 0; }
@media (min-width: 760px) { .g-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .g-grid { grid-template-columns: repeat(3, 1fr); } }
.gcard { display: grid; grid-template-rows: auto 1fr; border: 1px solid var(--line); border-radius: var(--r); background: var(--card); overflow: hidden; height: 100%; }
.gcard figure { position: relative; margin: 0; }
.gcard figure img { width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; }
.gcard .ai-tag { left: 0.6rem; bottom: 0.6rem; translate: none; }
.gcard__body { padding: 1rem 1.1rem 1.2rem; display: grid; gap: 0.6rem; align-content: start; }
.gcard__badge { width: fit-content; font: 650 0.75rem/1 var(--mono); letter-spacing: 0.06em; text-transform: uppercase; padding: 0.35rem 0.55rem; border-radius: 6px; background: var(--g-chip); color: var(--g-accent); }
.gcard--soon .gcard__badge { background: var(--paper-2); color: var(--ink-2); }
.gcard dl { margin: 0; display: grid; gap: 0.35rem; font-size: 0.9375rem; }
.gcard dt { font: 600 0.75rem/1.2 var(--mono); text-transform: uppercase; letter-spacing: 0.06em; color: var(--ink-2); }
.gcard dd { margin: 0; }
.g-kit { display: grid; gap: 0.5rem; padding-left: 1.2rem; }
@media (prefers-reduced-motion: reduce) { .g-switch, .g-chips li { transition: none; } }
/* AI theme sheets (s-sprites): the AI look swaps a card's picture for its sheet; the level bar picks Basics or Advanced where a game has both. */
.g-level { display: none; gap: 0.6rem; align-items: center; }
.games[data-theme="ai"] .g-level { display: grid; }
.games[data-theme="ai"] .g-unum, .games[data-theme="unum"] .g-ai { display: none; }
.games[data-level="basics"] .g-ai[data-lvl="advanced"], .games[data-level="advanced"] .g-ai[data-lvl="basics"] { display: none; }
.gcard figure.gfig--sheet img { aspect-ratio: 16 / 9; }
