/* Unit 2 games: page-specific styles (colours come from site.css tokens with fallbacks). */
.g-total { font-weight: 700; font-size: 1.1em; }
.g-jump { display: flex; flex-wrap: wrap; gap: .5rem 1rem; margin: .5rem 0 1rem; }
.g-jump a { display: inline-block; padding: .5rem 0; min-height: 44px; box-sizing: border-box; }
.g-game { border: 1px solid color-mix(in srgb, currentColor 22%, transparent); border-radius: 12px;
  padding: 1rem; margin: 1.5rem 0; max-width: 100%; box-sizing: border-box; overflow-wrap: anywhere; }
.g-game h2 { margin-top: 0; }
.g-levels { display: flex; flex-wrap: wrap; gap: .4rem; margin: .5rem 0; }
.g-levels button { min-width: 44px; min-height: 44px; border-radius: 8px; font: inherit; cursor: pointer;
  border: 2px solid color-mix(in srgb, currentColor 35%, transparent); background: transparent; color: inherit; }
.g-levels button.done { border-color: var(--v, #2e9d4f); }
.g-levels button[aria-current="true"] { background: color-mix(in srgb, var(--x, #2f6fdf) 25%, transparent);
  border-color: var(--x, #2f6fdf); font-weight: 700; }
.g-score { font-weight: 600; margin: .3rem 0 .6rem; }
.g-board { display: grid; grid-template-columns: 1fr; gap: 1rem; }
@media (min-width: 900px) { .g-board { grid-template-columns: 1fr 1.3fr; } }
.g-pic svg { width: 100%; height: auto; max-height: 240px; display: block; }
.g-forces { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: .6rem; }
.g-force { border: 1px solid color-mix(in srgb, currentColor 22%, transparent); border-radius: 10px; padding: .5rem;
  display: flex; flex-direction: column; gap: .4rem; }
.g-force.on { border-color: var(--f, #8e44ad); background: color-mix(in srgb, var(--f, #8e44ad) 8%, transparent); }
.g-force .g-name { font-weight: 600; font-size: .95em; }
.g-force.ok { outline: 3px solid var(--v, #2e9d4f); }
.g-force.bad { outline: 3px solid #d64545; }
.g-toggle { min-height: 44px; font: inherit; border-radius: 8px; cursor: pointer; color: inherit; background: transparent;
  border: 2px solid color-mix(in srgb, currentColor 35%, transparent); }
.g-force.on .g-toggle { background: var(--f, #8e44ad); color: #fff; border-color: var(--f, #8e44ad); }
.g-pad { display: grid; grid-template-columns: repeat(3, 44px); grid-template-rows: repeat(3, 44px); gap: 2px;
  justify-content: center; }
.g-pad button { width: 44px; height: 44px; font-size: 20px; line-height: 1; cursor: pointer; border-radius: 6px;
  color: inherit; background: transparent; border: 1px solid color-mix(in srgb, currentColor 30%, transparent); padding: 0; }
.g-pad button[aria-pressed="true"] { background: var(--f, #8e44ad); color: #fff; border-color: var(--f, #8e44ad); }
.g-pad .g-dot { display: flex; align-items: center; justify-content: center; font-size: 12px; opacity: .7; }
.g-pad[hidden] { display: none; }
.g-actions { display: flex; flex-wrap: wrap; gap: .5rem; margin: .8rem 0; }
.g-btn { min-height: 44px; padding: .4rem 1rem; font: inherit; border-radius: 8px; cursor: pointer; color: inherit;
  background: transparent; border: 2px solid color-mix(in srgb, currentColor 40%, transparent); }
.g-btn.g-main { background: var(--x, #2f6fdf); border-color: var(--x, #2f6fdf); color: #fff; font-weight: 600; }
.g-btn:disabled { opacity: .45; cursor: default; }
.g-feedback { min-height: 1.5em; }
.g-feedback .good, .g-good { color: var(--v, #2e9d4f); font-weight: 600; }
.g-feedback .bad, .g-bad { color: #d64545; font-weight: 600; }
.g-feedback ul { padding-left: 1.2rem; }
.g-compare { margin-top: .8rem; }
.g-choices { border: 1px solid color-mix(in srgb, currentColor 22%, transparent); border-radius: 10px; margin: .6rem 0;
  padding: .5rem .8rem; min-width: 0; }
.g-choices > div { display: flex; flex-wrap: wrap; gap: .4rem; }
.g-choice { min-height: 44px; padding: .3rem .8rem; font: inherit; border-radius: 8px; cursor: pointer; color: inherit;
  background: transparent; border: 2px solid color-mix(in srgb, currentColor 35%, transparent); }
.g-choice[aria-pressed="true"] { border-color: var(--x, #2f6fdf); background: color-mix(in srgb, var(--x, #2f6fdf) 20%, transparent); font-weight: 600; }
.g-canvas { width: 100%; max-width: 100%; height: 200px; display: block; border-radius: 8px;
  border: 1px solid color-mix(in srgb, currentColor 18%, transparent); }
.g-control { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; margin: .8rem 0; }
.g-control input[type=range] { flex: 1 1 160px; min-width: 0; min-height: 44px; }
.g-control input[type=number] { width: 6.5em; min-height: 44px; font: inherit; box-sizing: border-box; }
.g-control label { font-weight: 600; }
.g-data { font-variant-numeric: tabular-nums; }
