/* «Блеф» и «Кинокритик» (0.33, write-games.js): their entries in «Игры», the start dialog and what the card adds to the
   hall game's (hall-game.css gives the card, the countdown, the options, the board and the podium). */
.wg-entry { margin-top: 16px; padding-top: 4px; border-top: 1px solid var(--line); }
.wg-entry[hidden], .wg-entry-btn[hidden] { display: none; }
.wg-entry-list { display: flex; flex-direction: column; gap: 8px; }
.wg-entry-btn { width: 100%; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px; min-height: 56px; padding: 8px 12px; text-align: left; border-radius: 11px; border: 1px solid var(--line); background: rgba(255, 255, 255, .04); color: var(--text); font: inherit; cursor: pointer; }
.wg-entry-list .wg-entry-btn + .wg-entry-btn { margin-top: 8px; } /* 0.38: in the dialog's .hg-others the grid's gap spaces them (a margin pushed «Блеф» below its row) */
.wg-entry-btn:hover { border-color: rgba(229, 160, 13, .6); }
.wg-entry-ico { font-size: 26px; line-height: 1; }
.wg-entry-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.wg-entry-text small { color: var(--muted); font-size: 12px; line-height: 1.3; }
.wg-entry-go { font-size: 22px; color: var(--muted); }

body.wg-on.lobby-on .video-wrap { overflow: hidden; } /* the lobby does not scroll away under the game */
.wg-card { background: #101218; } /* opaque: the lobby's text showed through the 97 % of .hg-card */
.wg-card .hg-body { gap: 12px; }
.wg-film { display: flex; align-items: center; gap: 10px; min-width: 0; }
.wg-poster { flex: none; width: 36px; aspect-ratio: 2 / 3; border-radius: 5px; overflow: hidden; background: #1a1d24; }
.wg-poster img { display: block; width: 100%; height: 100%; object-fit: cover; }
.wg-ftitle { min-width: 0; font-size: 14px; font-weight: 600; line-height: 1.25; color: var(--muted); overflow-wrap: anywhere; }
.wg-year { font-weight: 500; }
.wg-prompt { padding: 14px 16px; border-radius: 11px; background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .08); font-size: 19px; font-weight: 700; line-height: 1.4; overflow-wrap: anywhere; }
.wg-blank { display: inline-block; min-width: 4.5em; height: 1.05em; margin: 0 .15em; vertical-align: -.12em; border-bottom: 3px solid var(--accent); }
.wg-truth { padding: 0 .25em; border-radius: 6px; background: rgba(62, 207, 122, .2); color: var(--ok); }
.wg-ask { font-size: 15px; font-weight: 700; }
.wg-ask small { display: block; margin-top: 2px; font-size: 12.5px; font-weight: 500; color: var(--muted); }
.wg-form { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "input send" "left left"; gap: 4px 8px; align-items: center; }
.wg-input { grid-area: input; min-width: 0; min-height: 48px; padding: 0 14px; border-radius: 11px; border: 1px solid rgba(255, 255, 255, .18); background: rgba(0, 0, 0, .35); color: var(--text); font: inherit; font-size: 16px; } /* 16 px: no zoom on a phone */
.wg-input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(229, 160, 13, .2); }
.wg-send { grid-area: send; min-height: 48px; padding: 0 18px; border-radius: 11px; border: 0; background: var(--accent); color: #111; font: inherit; font-weight: 700; cursor: pointer; }
.wg-left { grid-area: left; justify-self: end; font-size: 11.5px; color: var(--muted); font-variant-numeric: tabular-nums; }
.wg-left.low { color: var(--bad); }
.wg-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wg-opts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.wg-opt .hg-t { overflow-wrap: anywhere; }
.wg-opt.own { opacity: .62; border-style: dashed; }
.wg-own { margin-left: auto; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }

/* The reveal: one answer after another, the most picked last (in «Блеф» the truth at the very end). */
.wg-mine { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.wg-mine small { font-size: 13px; color: var(--muted); }
.wg-reveal { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.wg-rrow { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "text pts" "who pts" "picks pts"; column-gap: 10px; padding: 9px 12px; border-radius: 10px; background: rgba(255, 255, 255, .04); border: 1px solid transparent;
  animation: wg-in .45s ease-out both; animation-delay: calc(var(--i, 0) * .9s); }
.wg-rtext { grid-area: text; font-size: 15.5px; font-weight: 700; overflow-wrap: anywhere; }
.wg-rwho { grid-area: who; font-size: 12.5px; color: var(--muted); }
.wg-rwho b { color: var(--accent); }
.wg-rpicks { grid-area: picks; font-size: 12.5px; color: var(--muted); }
.wg-pts { grid-area: pts; align-self: center; font-size: 17px; color: var(--ok); font-variant-numeric: tabular-nums; }
.wg-rrow.truth { border-color: var(--ok); background: rgba(62, 207, 122, .12); }
.wg-rrow.truth .wg-rwho { color: var(--ok); font-weight: 700; }
.wg-rrow.own { box-shadow: inset 3px 0 0 var(--accent); }
.wg-rrow.picked:not(.truth) { border-color: rgba(255, 107, 107, .55); }
.wg-rrow.sweep { border-color: var(--accent); background: rgba(229, 160, 13, .12); }
@keyframes wg-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
/* 0.38 «Голоса зрителей»: the spectators' count under a ballot, 👥 and «Приз зрителей» at the reveal, the podium's line. */
.wg-fans { margin-top: 2px; font-size: 12.5px; color: var(--muted); font-variant-numeric: tabular-nums; }
.wg-rfans { grid-column: 1; grid-row: 4; font-size: 12.5px; color: var(--muted); }
.wg-rfans b { color: var(--accent); }
.wg-rrow.prize { border-color: var(--accent); }
.wg-rrow.fav { box-shadow: inset -3px 0 0 var(--accent); }
.wg-fans-podium { margin-top: 10px; font-size: 13.5px; color: inherit; }
.wg-fans-podium b { color: var(--accent); }
.wg-fans-podium .me { font-weight: 700; }
/* 0.38 «Смотрю»: «Играю / Смотрю» under a game card's head — «Блеф», «Кинокритик» (write-games.js) and «Нарисуй и
   обмани» (draw-bluff.js puts it on draw-game.js's card). The chosen one is marked; 44 px on a phone. */
.gseat { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.gseat-btn { min-height: 32px; padding: 4px 12px; border-radius: 999px; border: 1px solid var(--line); background: transparent; color: var(--muted); font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; }
.gseat-btn[aria-pressed="true"] { background: rgba(255, 255, 255, .14); border-color: var(--accent); color: var(--text); }
.gseat-btn:disabled { opacity: .65; cursor: default; }
.gseat-note { font-size: 12.5px; color: var(--muted); }
@media (max-width: 760px) { .gseat-btn { min-height: 44px; padding: 8px 16px; } }

@media (max-width: 760px) {
  .wg-prompt { padding: 12px 13px; font-size: 17px; }
  .wg-opts { grid-template-columns: 1fr; }
  /* The phone's keyboard is open: the sheet sits on it and fits what is left of the screen. */
  .wg-card.wg-kb { bottom: var(--wg-kb, 0px); max-height: calc(var(--wg-vh, 60vh) - 8px); padding-bottom: 10px; }
  .wg-card.wg-kb .wg-film, .wg-card.wg-kb .wg-ask small { display: none; }
}
@media (prefers-reduced-motion: reduce) { .wg-rrow { animation: none; } }
