/* n69 g1 «Игры» (games-menu.js): the menu inside hall-game.js's #hg-modal — the show card with its kinds, four first-choice
   cards, the seasonal rows, «Ещё игры ▾», the picked game's rule and «Начать» / «Предложить» at the foot; the host's toast
   with a proposal. Emphasis = the one flat accent button; no glow, no pulse. Touch targets ≥ 44 px. */
.hg-legacy[hidden], #hg-modal .hg-sheet > .hg-mbtns[hidden] { display: none !important; }
#hg-modal .ga-credit { margin: 12px 0 0; font-size: 11.5px; color: var(--muted); } /* the games' music credit (game-audio.js), below the menu */
.gm-menu { display: flex; flex-direction: column; gap: 10px; margin-top: 10px; }
.gm-menu button { font: inherit; color: var(--text); cursor: pointer; }
.gm-card { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; column-gap: 10px; min-height: 60px; padding: 9px 11px; text-align: left; border-radius: 12px; border: 1px solid var(--line); background: rgba(255, 255, 255, .03); }
.gm-card:hover, .gm-row:hover, .gm-kind:hover { border-color: rgba(229, 160, 13, .6); }
.gm-card[aria-checked="true"], .gm-row[aria-checked="true"], .gm-kind[aria-checked="true"] { border-color: var(--accent); background: rgba(229, 160, 13, .13); }
.gm-ico { font-size: 24px; line-height: 1; }
.gm-txt { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.gm-txt b { font-size: 14.5px; line-height: 1.2; }
.gm-txt small { color: var(--muted); font-size: 12px; line-height: 1.3; }
.gm-short { opacity: .55; }
.gm-short .gm-ico { filter: grayscale(1); }
.gm-need { font-size: 11.5px; font-weight: 600; padding: 2px 8px; border-radius: 99px; border: 1px solid var(--line); color: var(--muted); white-space: nowrap; }
/* The show: the biggest card, its kinds as a small row under it */
.gm-showbox { border: 1px solid var(--line); border-radius: 14px; background: rgba(255, 255, 255, .025); padding: 4px; }
.gm-showbox:has(.gm-hero[aria-checked="true"]) { border-color: var(--accent); }
.gm-hero { width: 100%; min-height: 70px; border: 0; background: transparent; }
.gm-hero[aria-checked="true"] { background: rgba(229, 160, 13, .1); }
.gm-hero .gm-ico { font-size: 32px; }
.gm-hero .gm-txt b { font-size: 17px; }
.gm-kinds { display: flex; gap: 6px; padding: 4px 6px 6px; overflow-x: auto; scrollbar-width: none; }
.gm-kinds::-webkit-scrollbar { display: none; }
.gm-kind { flex: 0 0 auto; min-height: 40px; padding: 0 12px; border-radius: 99px; border: 1px solid var(--line); background: rgba(255, 255, 255, .03); font-size: 13.5px !important; white-space: nowrap; }
.gm-top { display: grid; gap: 8px; }
.gm-first { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.gm-season[hidden] { display: none; }
.gm-season > section { margin: 0 !important; }
.gm-season > section + section { margin-top: 8px !important; }
/* «Ещё игры ▾» */
.gm-more { border-top: 1px solid var(--line); padding-top: 2px; }
.gm-more > summary { display: flex; align-items: center; gap: 6px; min-height: 44px; font-weight: 600; font-size: 14px; color: var(--muted); cursor: pointer; list-style: none; }
.gm-more > summary::-webkit-details-marker { display: none; }
.gm-more > summary span { transition: transform .15s; }
.gm-more[open] > summary span { transform: rotate(180deg); }
.gm-group + .gm-group { margin-top: 10px; }
.gm-gt { font-size: 11.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin: 2px 0 6px; }
.gm-rows { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 6px; }
.gm-row { display: flex; align-items: center; gap: 9px; min-height: 46px; padding: 0 12px; text-align: left; border-radius: 11px; border: 1px solid var(--line); background: rgba(255, 255, 255, .03); font-size: 14px; }
.gm-row .gm-ico { font-size: 19px; }
.gm-row .gm-need { margin-left: auto; }
/* n73: a game's own reason it cannot start here now («Чья оценка?»: too few ratings) — wraps, it is a sentence */
.gm-need.gm-why { white-space: normal; border-radius: 10px; line-height: 1.3; text-align: left; max-width: 260px; }
.gm-row .gm-need.gm-why { max-width: 55%; }
/* The picked game: its rule, its rounds, «настроить» and «Начать» — stays in view at the dialog's foot */
.gm-pick { position: sticky; bottom: -16px; z-index: 1; margin: 2px -18px -16px; padding: 11px 18px 14px; background: var(--panel); border-top: 1px solid var(--line); border-radius: 0 0 16px 16px; }
.gm-pick-name { font-weight: 700; font-size: 15px; }
.gm-rule { margin: 3px 0 0; color: var(--muted); font-size: 13px; line-height: 1.4; }
.gm-pay { margin: 4px 0 0; color: var(--muted); font-size: 12.5px; line-height: 1.4; } /* 0.65: what the game pays in club points (its class by length) */
.gm-rounds { display: flex; align-items: center; gap: 6px; margin-top: 8px; }
.gm-rl { font-size: 11.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin-right: 4px; }
.gm-r { min-width: 48px; min-height: 40px; border-radius: 10px; border: 1px solid var(--line); background: rgba(255, 255, 255, .03); font-size: 15px !important; font-weight: 600; }
.gm-r[aria-checked="true"] { border-color: var(--accent); background: rgba(229, 160, 13, .13); }
.gm-warn, .gm-film { margin: 7px 0 0; font-size: 12.5px; color: var(--muted); }
.gm-film { color: var(--bad); }
.gm-warn[hidden], .gm-film[hidden] { display: none; }
.gm-btns { display: flex; justify-content: flex-end; align-items: center; gap: 10px; margin-top: 10px; }
.gm-tune { min-height: 44px; padding: 0 14px; border-radius: 11px; border: 1px solid var(--line); background: transparent; font-weight: 600; }
.gm-go { min-height: 46px; padding: 0 26px; border: 0; border-radius: 11px; background: var(--accent); color: #111 !important; font-size: 15.5px !important; font-weight: 700; }
.gm-go:disabled { opacity: .45; cursor: default; }
@media (max-width: 760px) {
  #hg-modal { padding: 10px; }
  #hg-modal .hg-sheet { max-height: calc(100vh - 20px); max-height: calc(100dvh - 20px); padding: 14px 12px 14px; }
  .gm-menu { gap: 8px; margin-top: 6px; }
  .gm-card { min-height: 56px; padding: 8px 9px; column-gap: 8px; }
  .gm-first .gm-card { grid-template-columns: auto minmax(0, 1fr); }
  .gm-first .gm-card .gm-need { grid-column: 2; justify-self: start; margin-top: 3px; }
  .gm-txt b { font-size: 14px; }
  .gm-first .gm-txt small { display: none; }
  .gm-kind { min-height: 44px; }
  .gm-r { min-height: 44px; }
  .gm-rows { grid-template-columns: 1fr; }
  .gm-pick { bottom: -14px; margin: 2px -12px -14px; padding: 10px 12px 12px; }
}
@media (prefers-reduced-motion: reduce) { .gm-more > summary span { transition: none; } }
/* The host's toast: «Аня предлагает: Кто из нас?» [Начать] [×] */
.gm-offer { position: fixed; left: 50%; bottom: calc(18px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); z-index: 2450; display: flex; align-items: center; gap: 10px; max-width: min(560px, calc(100vw - 20px)); padding: 8px 8px 8px 14px; border-radius: 14px; background: #15171f; border: 1px solid var(--line); box-shadow: 0 14px 40px rgba(0, 0, 0, .55); color: var(--text); }
.gm-offer[hidden] { display: none; }
.gm-otext { font-size: 14px; line-height: 1.35; }
.gm-ogo { flex: 0 0 auto; min-height: 44px; padding: 0 18px; border: 0; border-radius: 11px; background: var(--accent); color: #111; font: inherit; font-weight: 700; cursor: pointer; }
.gm-ox { flex: 0 0 auto; width: 44px; height: 44px; border: 0; border-radius: 10px; background: transparent; color: var(--muted); font-size: 22px; cursor: pointer; }
.gm-ox:hover { color: var(--text); background: rgba(255, 255, 255, .06); }
/* n69 g1 «Дальше» (games-next.js): one row on every podium — the cup line, three choices and «Меню» */
.gn-next { display: flex; flex-direction: column; gap: 8px; margin-top: 4px; padding: 10px; border-radius: 12px; border: 1px solid var(--line); background: rgba(255, 255, 255, .03); color: var(--text); text-align: left; }
.gn-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; }
.gn-head > b { font-size: 14.5px; }
.gn-cup { font-size: 12.5px; color: var(--muted); }
.gn-choices { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)) auto; gap: 8px; }
.gn-c, .gn-menu { min-height: 52px; padding: 6px 10px; border-radius: 11px; border: 1px solid var(--line); background: rgba(255, 255, 255, .04); color: var(--text); font: inherit; text-align: left; cursor: pointer; }
.gn-c { display: flex; flex-direction: column; justify-content: center; gap: 1px; min-width: 0; }
.gn-c small { font-size: 11px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); }
.gn-c b { font-size: 14px; line-height: 1.2; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gn-c:hover, .gn-menu:hover { border-color: rgba(229, 160, 13, .6); }
.gn-main { border: 0; background: var(--accent); color: #111; }
.gn-main small { color: rgba(17, 17, 17, .7); }
.gn-menu { font-weight: 600; white-space: nowrap; }
.gn-note { margin: 0; font-size: 12.5px; color: var(--muted); }
@media (max-width: 760px) {
  .gn-choices { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gn-c b { white-space: normal; }
}
#dg-modal .dg-modes .hg-chip[hidden] { display: none; } /* «Нарисуй и обмани» hidden: .hg-chip's display: grid would beat [hidden] */
