/* «Опрос клуба» (0.34, club-poll-game.js): its entry in «Игры», the card's slider, the bets, the bar of the reveal.
   The card, the dialog, the board and the podium are hall-game.css's (.hg-*). */
.cp-entry { margin-top: 12px; padding-top: 4px; }
.cp-entry[hidden] { display: none; }
.cp-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; }
.cp-entry-btn:hover { border-color: rgba(229, 160, 13, .6); }
.cp-entry-ico { font-size: 26px; line-height: 1; }
.cp-entry-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.cp-entry-text small { color: var(--muted); font-size: 12px; line-height: 1.3; }
.cp-entry-go { font-size: 22px; color: var(--muted); }

.cp-x2 { padding: 2px 8px; border-radius: 999px; background: var(--accent); color: #111; font-size: 12px; font-weight: 800; }
.cp-double { padding: 3px 10px; border-radius: 999px; background: var(--accent); color: #111; font-size: 13px; font-weight: 800; }
.cp-lead-q { max-width: 560px; text-align: center; font-size: 15px; line-height: 1.35; color: var(--text); }
.cp-card { background: #101218; } /* 0.35 G1b: opaque like the other games' cards — the lobby's posters showed through */
.cp-qbox { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 12px; background: rgba(255, 255, 255, .05); }
.cp-q { font-size: 19px; font-weight: 700; line-height: 1.3; }
.cp-poster { flex: 0 0 auto; width: 42px; height: 63px; border-radius: 6px; overflow: hidden; }
.cp-poster img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cp-who { font-size: 14px; color: var(--muted); text-align: center; }

/* The slider: a big thumb with the number above it, a step either side for the last bit of precision. */
.cp-slider { --p: 50%; display: grid; grid-template-columns: 48px 1fr 48px; align-items: center; gap: 10px; padding: 34px 0 4px; }
.cp-step { width: 48px; height: 48px; border-radius: 12px; border: 1px solid var(--line); background: rgba(255, 255, 255, .05); color: var(--text); font-size: 24px; line-height: 1; cursor: pointer; }
.cp-step:hover { border-color: var(--muted); }
.cp-rangewrap { position: relative; }
.cp-bubble { position: absolute; bottom: calc(100% + 2px); left: clamp(30px, var(--p), calc(100% - 30px)); transform: translateX(-50%); padding: 4px 10px; border-radius: 9px; background: var(--accent); color: #111; font-weight: 800; font-size: 16px; white-space: nowrap; pointer-events: none; }
.cp-range { -webkit-appearance: none; appearance: none; display: block; width: 100%; height: 44px; margin: 0; background: transparent; cursor: pointer; touch-action: none; }
.cp-range:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; border-radius: 8px; }
.cp-range::-webkit-slider-runnable-track { height: 10px; border-radius: 6px; background: linear-gradient(to right, var(--accent) var(--p), rgba(255, 255, 255, .14) var(--p)); }
.cp-range::-moz-range-track { height: 10px; border-radius: 6px; background: rgba(255, 255, 255, .14); }
.cp-range::-moz-range-progress { height: 10px; border-radius: 6px; background: var(--accent); }
.cp-range::-webkit-slider-thumb { -webkit-appearance: none; width: 30px; height: 30px; margin-top: -10px; border-radius: 50%; background: #fff; border: 3px solid var(--accent); box-shadow: 0 2px 8px rgba(0, 0, 0, .5); }
.cp-range::-moz-range-thumb { width: 26px; height: 26px; border-radius: 50%; background: #fff; border: 3px solid var(--accent); box-shadow: 0 2px 8px rgba(0, 0, 0, .5); }
.cp-ends { display: flex; justify-content: space-between; font-size: 11.5px; color: var(--muted); margin-top: 2px; }
.cp-acts { display: flex; justify-content: center; }
.cp-lock { min-height: 46px; min-width: 160px; padding: 0 22px; border-radius: 11px; border: 0; background: var(--accent); color: #111; font: inherit; font-size: 16px; font-weight: 800; cursor: pointer; }
.cp-lock .ico { color: inherit; }

/* A track that only shows: the leader's live number, the number to bet on, the reveal's bar. */
.cp-track { position: relative; margin: 30px 0 22px; height: 12px; border-radius: 7px; background: rgba(255, 255, 255, .12); }
.cp-track .cp-ends { position: absolute; top: 16px; left: 0; right: 0; }
.cp-fill { position: absolute; left: 0; top: 0; bottom: 0; width: 0; border-radius: 7px; background: var(--accent); transition: width 2.2s cubic-bezier(.2, .8, .2, 1); }
.cp-mark { position: absolute; top: -4px; width: 4px; height: 20px; margin-left: -2px; border-radius: 2px; background: #fff; transition: left .12s linear; }
.cp-mark .cp-tag { position: absolute; bottom: calc(100% + 3px); left: 50%; transform: translateX(-50%); padding: 2px 7px; border-radius: 7px; background: rgba(255, 255, 255, .92); color: #111; font-size: 12px; font-weight: 700; white-space: nowrap; }
.cp-mark.cp-live, .cp-mark.cp-guess, .cp-mark.cp-mine { background: #6cc4ff; }
.cp-mark.cp-live .cp-tag, .cp-mark.cp-guess .cp-tag, .cp-mark.cp-mine .cp-tag { background: #6cc4ff; }
.cp-mark.cp-dot { top: -3px; width: 12px; height: 12px; margin-left: -6px; border-radius: 50%; background: rgba(255, 255, 255, .7); border: 2px solid rgba(16, 18, 24, .97); }
.cp-mark.cp-dot .cp-tag { display: none; }
.cp-mark.cp-dot.me, .cp-mark.cp-dot.best { background: #6cc4ff; z-index: 1; }
.cp-mark.cp-dot.me .cp-tag, .cp-mark.cp-dot.best .cp-tag { display: block; background: #6cc4ff; }
.cp-track.cp-rev { margin-top: 34px; }

/* The bets. */
.cp-bets { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 18px; }
.cp-bet { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 56px; border-radius: 12px; border: 1px solid rgba(255, 255, 255, .16); background: rgba(255, 255, 255, .05); color: var(--text); font: inherit; font-size: 17px; font-weight: 800; cursor: pointer; }
.cp-bet:hover:not(:disabled) { border-color: var(--accent); }
.cp-bet:disabled { cursor: default; opacity: .55; }
.cp-bet.mine { opacity: 1; border-color: var(--accent); background: rgba(229, 160, 13, .16); }

/* The reveal. */
.cp-answer { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.cp-answer > span { font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.cp-num { font-size: 34px; font-weight: 800; color: var(--accent); font-variant-numeric: tabular-nums; }
.cp-answer small { color: var(--muted); font-size: 12.5px; }
.cp-after { display: flex; flex-direction: column; gap: 8px; margin-top: 14px; animation: cp-in .35s 2.1s both; }
.cp-verdict { text-align: center; font-weight: 700; }
.cp-verdict.exact { color: var(--accent); }
.cp-split { margin-left: 10px; color: var(--muted); font-weight: 600; font-size: 13px; }
.cp-result { display: flex; justify-content: center; align-items: baseline; gap: 8px; font-size: 18px; }
.cp-result small { color: var(--accent); font-weight: 700; }
.cp-rows { display: flex; flex-direction: column; gap: 4px; }
.cp-row { display: grid; grid-template-columns: 1fr auto 52px; gap: 10px; align-items: center; min-height: 34px; padding: 4px 10px; border-radius: 9px; background: rgba(255, 255, 255, .04); }
.cp-row.me { outline: 1px solid rgba(229, 160, 13, .55); }
.cp-row.right .cp-rpts { color: #7ddc8a; }
.cp-rname { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cp-rname small { color: var(--muted); }
.cp-rval { color: var(--muted); font-size: 13px; white-space: nowrap; }
.cp-rpts { text-align: right; font-variant-numeric: tabular-nums; }
@keyframes cp-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

@media (max-width: 760px) {
  .cp-q { font-size: 17px; }
  .cp-slider { grid-template-columns: 44px 1fr 44px; gap: 8px; }
  .cp-step { width: 44px; height: 44px; }
  .cp-bet { min-height: 52px; }
  .cp-num { font-size: 30px; }
}
@media (prefers-reduced-motion: reduce) { .cp-fill, .cp-mark { transition: none; } .cp-after { animation: none; } }
