/* n73 gA — the modes of «Угадай фильм» в зале (hall-game-modes.js): «Зум», «Без вариантов», «Ставка», «Дуэль». */

/* «Зум»: the frame opens on a detail (×--hgm-from around --hgm-x/--hgm-y) and pulls back over the round — slowly first,
   the whole frame only near the end. The round's clock: hall-game-kinds.js timing() (--hgk-ms, --hgk-at). */
.hgm-zoom .hgm-clip { display: block; overflow: hidden; line-height: 0; max-width: 100%; }
.hgm-zoom img { display: block; width: auto; height: clamp(140px, 36vh, 330px); max-width: 100%; object-fit: cover; user-select: none; -webkit-user-drag: none;
  transform-origin: var(--hgm-x, 50%) var(--hgm-y, 50%); animation: hgm-pull var(--hgk-ms, 25s) linear var(--hgk-at, 0ms) both; will-change: transform; }
@keyframes hgm-pull {
  0% { transform: scale(var(--hgm-from, 4)); }
  35% { transform: scale(calc(1 + (var(--hgm-from, 4) - 1) * .62)); }
  65% { transform: scale(calc(1 + (var(--hgm-from, 4) - 1) * .3)); }
  88%, 100% { transform: scale(1); }
}
@media (prefers-reduced-motion: reduce) { .hgm-zoom img { animation-timing-function: steps(6, end); } }

/* «Без вариантов»: the title typed, the library's titles under it */
.hgm-typed { position: relative; display: flex; flex-direction: column; gap: 6px; margin: 0; }
.hgm-line { display: flex; gap: 8px; }
.hgm-input { flex: 1; min-width: 0; min-height: 48px; padding: 0 14px; border-radius: 11px; border: 1px solid rgba(255, 255, 255, .18); background: rgba(255, 255, 255, .06); color: var(--text); font: inherit; font-size: 16px; }
.hgm-input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(229, 160, 13, .18); }
.hgm-input:disabled { opacity: .55; }
.hgm-send { flex: none; min-height: 48px; padding: 0 18px; border: 0; border-radius: 11px; background: var(--accent); color: #111; font: inherit; font-weight: 700; font-size: 15px; cursor: pointer; }
.hgm-send:disabled { opacity: .45; cursor: default; }
.hgm-sugg { list-style: none; margin: 0; padding: 4px; border-radius: 11px; border: 1px solid var(--line); background: #171a22; display: flex; flex-direction: column; gap: 2px; max-height: 236px; overflow-y: auto; }
.hgm-sugg[hidden] { display: none; }
.hgm-pick { display: flex; align-items: baseline; gap: 8px; width: 100%; min-height: 40px; padding: 6px 10px; border: 0; border-radius: 8px; background: transparent; color: var(--text); font: inherit; font-size: 14.5px; text-align: left; cursor: pointer; }
.hgm-pick span { color: var(--muted); font-size: 12.5px; }
.hgm-pick:hover, .hgm-pick:focus-visible { background: rgba(229, 160, 13, .14); outline: none; }
.hgm-msg { margin: 0; min-height: 18px; font-size: 13px; color: var(--muted); }
.hgm-locked .hgm-msg { color: var(--bad); }
.hgm-ok { color: var(--ok); font-weight: 700; font-size: 15px; }
.hgm-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.hgm-shake { animation: hgm-shake .32s ease; }
@keyframes hgm-shake { 0%, 100% { transform: none; } 25% { transform: translateX(-6px); } 75% { transform: translateX(6px); } }
.hgm-said { font-size: 13px; color: var(--muted); }

/* «Ставка»: the chips in the «Раунд N», the line of everybody's stakes at the reveal */
.hgm-stakes { display: flex; flex-direction: column; align-items: center; gap: 8px; margin-top: 4px; }
.hgm-chips { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }
.hgm-chip { min-width: 64px; min-height: 52px; padding: 4px 14px; border-radius: 12px; border: 1px solid rgba(255, 255, 255, .18); background: rgba(255, 255, 255, .05); color: var(--text); font: inherit; font-size: 20px; font-weight: 800; cursor: pointer;
  display: inline-flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1.05; }
.hgm-chip small { font-size: 10.5px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.hgm-chip[aria-checked="true"] { border-color: var(--accent); background: rgba(229, 160, 13, .2); color: var(--accent); }
.hgm-chip.hgm-allin { border-color: rgba(255, 120, 80, .55); }
.hgm-chip.hgm-allin[aria-checked="true"] { background: rgba(255, 120, 80, .2); color: #ff9a6e; }
.hgm-picked { font-size: 12px; color: var(--muted); }
.hgm-mystake { align-self: flex-start; padding: 3px 10px; border-radius: 99px; background: rgba(229, 160, 13, .16); color: var(--accent); font-size: 12.5px; font-weight: 700; }
.hgm-stakeline { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; font-size: 13px; }
.hgm-sl { font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.hgm-sp.me { font-weight: 700; }
.hgm-up { color: var(--ok); }
.hgm-down { color: var(--bad); }

/* «Дуэль»: the score under the card's head, the steal */
.hgm-duel { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 4px 12px; padding: 6px 10px; border-radius: 11px; background: linear-gradient(90deg, rgba(229, 160, 13, .1), rgba(120, 160, 255, .1)); }
.hgm-dn { font-weight: 700; font-size: 14.5px; max-width: 34%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hgm-dn.me { color: var(--accent); }
.hgm-ds { font-size: 22px; font-variant-numeric: tabular-nums; }
.hgm-dneed { flex-basis: 100%; text-align: center; font-size: 11.5px; color: var(--muted); }
.hgm-dots { display: flex; gap: 4px; }
.hgm-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.hgm-dot0 { background: rgba(255, 255, 255, .2); }
.hgm-steal { padding: 8px 12px; border-radius: 10px; background: rgba(255, 255, 255, .06); font-size: 14px; text-align: center; }
.hgm-steal.mine { background: rgba(229, 160, 13, .18); color: var(--accent); font-weight: 700; }
.hg-opt.hgm-struck { opacity: .35; text-decoration: line-through; }
.hgm-dwin { font-weight: 700; font-size: 14px; }

@media (max-width: 760px) {
  .hgm-zoom img { height: min(30vh, 250px); }
  .hgm-send { padding: 0 14px; }
  .hgm-chip { min-width: 58px; min-height: 48px; font-size: 18px; }
}

/* The games menu (games-menu.js): the riddles' mode chips, beside «Раунды» */
.gm-modes { flex-wrap: wrap; }
.gm-modes .gm-m { min-width: 0; padding: 0 12px; font-size: 14px !important; white-space: nowrap; }
@media (max-width: 760px) { .gm-modes .gm-m { padding: 0 10px; font-size: 13.5px !important; } }

/* n73 gA: six kinds under «Шоу» — the row wraps, so «Зум» (the sixth) is never off the edge of a hidden-scrollbar strip */
#hg-modal .gm-kinds { flex-wrap: wrap; overflow-x: visible; }
