/* «Другие игры» в зале (0.32.1, party-games.js): the «Игры» dialog's section and what its games add to the hall
   game's card (hall-game.css gives the card, the countdown, the options, the board and the podium). */
.pg-section[hidden] { display: none; }
.pg-modes { grid-template-columns: repeat(2, minmax(0, 1fr)); } /* 0.37: two games («Цифры кино», «Кино-викторина»), the row filled like «Творческие» */
.pg-step { font-size: 12.5px; color: var(--muted); }
body.pg-on.lobby-on .video-wrap { overflow: hidden; } /* the lobby does not scroll away under the game */
.pg-card { background: #101218; } /* opaque: the lobby's text showed through the 97 % of .hg-card */
.pg-card .hg-body { gap: 12px; }
.pg-ask { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 12px; font-size: 17px; font-weight: 700; line-height: 1.3; }
.pg-streak { font-size: 13px; font-weight: 700; color: var(--accent); }
.pg-hint { font-size: 12.5px; color: var(--muted); text-align: center; }
.pg-label { font-size: 11.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.pg-lead-ask { font-size: 15px; color: var(--muted); }
.pg-poster { display: block; width: 100%; aspect-ratio: 2 / 3; border-radius: 8px; overflow: hidden; background: #1a1d24; }
.pg-poster img, .pg-thumb img { display: block; width: 100%; height: 100%; object-fit: cover; }
.pg-thumb { flex: none; width: 44px; aspect-ratio: 2 / 3; border-radius: 6px; overflow: hidden; background: #1a1d24; }
.pg-ftitle { min-width: 0; font-size: 14px; font-weight: 600; line-height: 1.25; overflow-wrap: anywhere; }

/* «Хронология»: four films to tap in order */
.pg-chrono { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.pg-film { position: relative; display: flex; flex-direction: column; align-items: stretch; gap: 6px; padding: 6px; border-radius: 12px; border: 1px solid rgba(255, 255, 255, .14);
  background: rgba(255, 255, 255, .04); color: var(--text); font: inherit; text-align: left; cursor: pointer; }
.pg-film:hover:not(:disabled) { border-color: var(--accent); }
.pg-film:disabled { cursor: default; }
.pg-chrono .pg-poster { max-height: clamp(120px, 30vh, 240px); }
.pg-fnum { position: absolute; top: 10px; left: 10px; z-index: 1; min-width: 30px; height: 30px; border-radius: 50%; display: none; align-items: center; justify-content: center;
  background: var(--accent); color: #111; font-size: 16px; font-weight: 800; }
.pg-film.set { border-color: var(--accent); background: rgba(229, 160, 13, .1); }
.pg-film.set .pg-fnum { display: inline-flex; }
.pg-acts { display: flex; justify-content: center; gap: 10px; }
.pg-acts button { min-height: 44px; }
.pg-send { padding: 0 26px; border: 0; border-radius: 10px; background: var(--accent); color: #111; font: inherit; font-size: 15px; font-weight: 700; cursor: pointer; }
.pg-send:disabled, .pg-reset:disabled { opacity: .45; cursor: default; }
.pg-order { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 6px; }
.pg-orow { display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 6px 10px; border-radius: 10px; border: 1px solid rgba(255, 255, 255, .1); background: rgba(255, 255, 255, .04); }
.pg-orow .pg-ftitle { flex: 1; }
.pg-orow.right { border-color: var(--ok); background: rgba(62, 207, 122, .12); }
.pg-orow.wrong { border-color: var(--bad); background: rgba(255, 107, 107, .1); }
.pg-place { flex: none; width: 24px; text-align: center; font-weight: 800; color: var(--muted); }
.pg-year { font-variant-numeric: tabular-nums; font-size: 16px; }

/* «Больше или меньше»: two films side by side */
.pg-versus { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: stretch; gap: 10px; }
.pg-vs { align-self: center; }
.pg-side { align-items: center; text-align: center; padding: 8px; }
.pg-side .pg-poster { width: min(100%, 180px); max-height: clamp(140px, 32vh, 270px); }
.pg-side .pg-ftitle { font-size: 15px; text-align: center; }
.pg-side.mine { border-color: var(--accent); background: rgba(229, 160, 13, .14); }
.pg-side.right { border-color: var(--ok); background: rgba(62, 207, 122, .14); }
.pg-side.wrong { border-color: var(--bad); background: rgba(255, 107, 107, .12); }
.pg-side .hg-c { position: absolute; top: 8px; right: 10px; margin: 0; font-size: 13px; font-weight: 700; } /* how many picked it */
.pg-key { position: absolute; top: 8px; left: 8px; width: 24px; height: 24px; border-radius: 7px; display: inline-flex; align-items: center; justify-content: center; background: rgba(0, 0, 0, .55); color: var(--muted); font-size: 12px; }
.pg-vs { font-size: 13px; font-weight: 800; letter-spacing: .08em; color: var(--muted); }
.pg-value { font-size: 18px; font-variant-numeric: tabular-nums; }

/* «Правда или ложь» and «Кино-викторина» */
.pg-about { display: flex; align-items: center; gap: 10px; }
.pg-about .pg-ftitle { font-size: 15px; }
.pg-said { margin: 0; padding: 16px 18px; border-radius: 11px; background: rgba(255, 255, 255, .05); font-size: 18px; line-height: 1.45; }
.pg-verdict { font-size: 15px; font-weight: 700; line-height: 1.4; }
.pg-verdict.yes { color: var(--ok); } .pg-verdict.no { color: var(--bad); }
.pg-verdict span { font-weight: 500; color: var(--text); }
.pg-tf { justify-content: center; font-size: 17px; font-weight: 700; }
.pg-tf .hg-t { flex: none; }
.pg-q { font-size: 18px; font-weight: 600; line-height: 1.4; }
.pg-result:empty { display: none; }
.pg-result { display: flex; justify-content: center; }
.pg-mine { display: inline-flex; align-items: baseline; gap: 8px; }
.pg-mine small { font-size: 13px; color: var(--muted); }

@media (max-width: 760px) {
  .pg-chrono { grid-template-columns: 1fr; gap: 6px; }
  .pg-chrono .pg-film { flex-direction: row; align-items: center; gap: 10px; min-height: 56px; padding: 6px 10px; }
  .pg-chrono .pg-poster { width: 34px; flex: none; }
  .pg-chrono .pg-fnum { position: static; order: 3; margin-left: auto; min-width: 28px; height: 28px; }
  .pg-chrono .pg-film:not(.set) .pg-fnum { display: inline-flex; visibility: hidden; }
  .pg-chrono .pg-ftitle { flex: 1; }
  .pg-versus { gap: 6px; }
  .pg-side .pg-poster { width: min(100%, 120px); max-height: 24vh; }
  .pg-said, .pg-q { font-size: 16px; }
  .pg-said { padding: 12px 14px; }
}
@media (max-width: 380px) { .pg-side .pg-ftitle { font-size: 13.5px; } }
