/* Games section — launcher grid of every game + the bar shown while a game is open. Flat; no animations. */
.games-view [hidden] { display:none !important; }
.games-hero { display:flex; align-items:center; justify-content:space-between; gap:18px; margin:24px 0 20px; }
.games-hero .eyebrow { font-size:10px; color:var(--ink-3); letter-spacing:.13em; font-weight:800; }
.games-hero h2 { font-family:var(--display,inherit); font-size:clamp(28px,5vw,46px); letter-spacing:-.04em; margin:10px 0; }
.games-hero p { font-size:13px; line-height:1.7; color:var(--ink-3); margin:0; }
.games-hero .sfx-toggle { border-color:var(--line-2); background:var(--surface); color:var(--ink); }

/* launcher */
.games-group + .games-group { margin-top:26px; }
.games-group h3 { display:flex; align-items:center; gap:8px; margin:0 0 12px; font-size:12px; font-weight:800; letter-spacing:.12em; text-transform:uppercase; color:var(--ink-3); }
.games-group h3 small { padding:2px 8px; border-radius:999px; background:var(--surface-2); color:var(--ink-2); font-size:11px; letter-spacing:0; }
.games-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(230px,1fr)); gap:12px; }
.game-card { display:grid; grid-template-columns:auto minmax(0,1fr); grid-template-rows:auto auto; column-gap:14px; row-gap:8px; align-items:center; min-height:100px; padding:16px; border-radius:18px; border:1px solid var(--line-2); background:var(--surface); color:var(--ink); font:inherit; text-align:left; cursor:pointer; box-shadow:var(--shadow); -webkit-tap-highlight-color:transparent; }
.game-card:hover { border-color:var(--accent); }
.game-card:active { background:var(--surface-2); }
.game-card-icon { grid-row:1 / span 2; width:60px; height:60px; border-radius:18px; display:grid; place-items:center; font-size:32px; line-height:1; background:var(--surface-2); background:color-mix(in srgb, var(--tone, var(--accent)) 16%, var(--surface)); border:1px solid color-mix(in srgb, var(--tone, var(--accent)) 32%, transparent); }
.game-card-copy { min-width:0; }
.game-card-copy b { display:block; font-size:16px; font-weight:800; line-height:1.25; }
.game-card-copy small { display:block; margin-top:3px; font-size:12.5px; font-weight:600; line-height:1.4; color:var(--ink-3); }
.game-card-players { justify-self:start; padding:3px 9px; border-radius:999px; background:var(--surface-2); color:var(--ink-2); font-size:11px; font-weight:800; }

/* while a game is open */
.games-bar { display:flex; align-items:center; gap:12px; margin:0 0 16px; padding:8px 10px; border-radius:16px; background:var(--surface); border:1px solid var(--line-2); }
.games-bar-title { font-weight:800; font-size:15px; min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.games-view .game-panel { min-width:0; }

/* shared hero used by the newer games */
.game-hero { margin-bottom:18px; }
.game-hero .eyebrow { color:var(--green-700); font-weight:800; letter-spacing:.14em; font-size:11px; }
.game-hero h2 { font-family:var(--display,inherit); font-size:clamp(24px,4vw,32px); margin:2px 0 4px; letter-spacing:-.025em; color:var(--ink); }
.game-hero h2 > span { color:var(--accent); }
.game-hero p { margin:0; font-size:13px; color:var(--ink-3); font-weight:600; }
.games-view .fc-hero h2, .games-view .ludo-hero h2, .games-view .chooser-hero h2 { font-size:clamp(24px,4vw,32px); }

@media (max-width:560px) {
  .games-hero { margin:18px 0 14px; }
  .games-hero p { font-size:12px; }
  .games-grid { grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; }
  .game-card { grid-template-columns:1fr; grid-template-rows:auto; justify-items:center; text-align:center; padding:14px 10px; min-height:0; }
  .game-card-icon { grid-row:auto; width:54px; height:54px; font-size:28px; }
  .game-card-copy small { font-size:11.5px; }
  .game-card-players { justify-self:center; }
}
