/* «Раздели зал» (0.41, split-room.js): its entry in «Игры», the start dialog and what the card adds to the hall game's
   (hall-game.css gives the card — a bottom sheet on a phone —, the countdown, the board and the podium; write-games.css
   the «Играю / Смотрю» row). «Да» and «Нет» have colours of their own, neither of them «right» or «wrong». */
.rz-card { --rz-yes: #43b3ff; --rz-no: #ff9467; background: #101218; } /* opaque: the lobby's text showed through the 97 % of .hg-card */
.rz-modal { --rz-yes: #43b3ff; --rz-no: #ff9467; }
body.rz-on.lobby-on .video-wrap { overflow: hidden; } /* the lobby does not scroll away under the game */
.rz-entry { margin-top: 16px; }
.rz-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; }
.rz-entry-btn[hidden] { display: none; }
.rz-entry-btn:hover { border-color: rgba(229, 160, 13, .6); }
.rz-entry-ico { font-size: 26px; line-height: 1; }
.rz-entry-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.rz-entry-text small { color: var(--muted); font-size: 12px; line-height: 1.3; }
.rz-entry-go { font-size: 22px; color: var(--muted); }

/* The start dialog's table of the author's points. */
.rz-table { list-style: none; margin: 4px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.rz-table li { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 8px 4px; border-radius: 10px; background: rgba(255, 255, 255, .05); font-variant-numeric: tabular-nums; }
.rz-table li b { font-size: 15px; }
.rz-table li span { font-size: 13px; color: var(--accent); font-weight: 700; }
.rz-table .rz-thead { background: transparent; color: var(--muted); }
.rz-table .rz-thead b { font-size: 12px; font-weight: 600; }
.rz-table .rz-thead span { color: var(--muted); }

.rz-card .hg-body { gap: 12px; }
.rz-dilemma { 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.45; overflow-wrap: anywhere; }
.rz-dilemma.rz-small { padding: 10px 12px; font-size: 15px; }
.rz-blank { display: inline-block; min-width: 4.5em; min-height: 1.1em; margin: 0 .12em; vertical-align: -.1em; border-bottom: 3px solid var(--accent); }
.rz-blank.rz-live:not(.empty) { min-width: 0; margin: 0; display: inline; color: var(--accent); }
.rz-fill { padding: 0 .25em; border-radius: 6px; background: rgba(229, 160, 13, .2); color: var(--accent); }
.rz-tag { margin-top: -6px; font-size: 12.5px; color: var(--muted); }
.rz-ask { font-size: 15px; font-weight: 700; }
.rz-ask small { display: block; margin-top: 2px; font-size: 12.5px; font-weight: 500; color: var(--muted); }
.rz-form { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "input send" "left left"; gap: 4px 8px; align-items: center; }
.rz-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 */
.rz-input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(229, 160, 13, .2); }
.rz-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; }
.rz-left { grid-area: left; justify-self: end; font-size: 11.5px; color: var(--muted); font-variant-numeric: tabular-nums; }
.rz-left.low { color: var(--bad); }
.rz-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* «Да» / «Нет»: two big buttons; the one answered is filled, the other fades. */
.rz-yesno { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.rz-choice { min-height: 60px; padding: 8px 12px; border-radius: 12px; border: 2px solid var(--rz-c); background: color-mix(in srgb, var(--rz-c) 14%, transparent); color: var(--text); font: inherit; font-size: 20px; font-weight: 800; letter-spacing: .02em; cursor: pointer; }
.rz-choice.rz-yes { --rz-c: var(--rz-yes); }
.rz-choice.rz-no { --rz-c: var(--rz-no); }
.rz-choice:hover:not(:disabled) { background: color-mix(in srgb, var(--rz-c) 26%, transparent); }
.rz-choice:focus-visible { outline: 3px solid var(--rz-c); outline-offset: 2px; }
.rz-choice.mine { background: var(--rz-c); color: #111; }
.rz-choice:disabled { cursor: default; }
.rz-choice:disabled:not(.mine) { opacity: .45; }
.rz-yesno.rz-fan .rz-choice { min-height: 52px; font-size: 17px; border-style: dashed; }
.rz-fans-count { margin-top: 2px; font-size: 12.5px; color: var(--muted); font-variant-numeric: tabular-nums; }

/* The reveal: the verdict, the two bars with the names, the spectators' own bar, the author and the points. */
.rz-verdict { font-size: 17px; font-weight: 800; }
.rz-verdict.perfect { color: var(--accent); }
.rz-verdict.flat { color: var(--muted); }
.rz-split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.rz-side { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.rz-yes { --rz-c: var(--rz-yes); }
.rz-no { --rz-c: var(--rz-no); }
.rz-bar { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 46px; padding: 0 12px; border-radius: 10px; overflow: hidden; border: 2px solid var(--rz-c); background: rgba(255, 255, 255, .03); font-variant-numeric: tabular-nums; }
.rz-bar i { position: absolute; inset: 0 auto 0 0; width: var(--w, 0%); background: color-mix(in srgb, var(--rz-c) 34%, transparent); transform-origin: left; animation: rz-grow .9s ease-out both; }
.rz-bar b, .rz-bar .rz-n { position: relative; font-size: 16px; font-weight: 800; }
.rz-bar .rz-n { font-size: 20px; }
.rz-names { min-height: 1.2em; font-size: 12.5px; color: var(--muted); overflow-wrap: anywhere; }
.rz-fans { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 7px 10px; border-radius: 10px; border: 1px dashed var(--line); font-size: 12.5px; color: var(--muted); }
.rz-fans-l { font-weight: 700; color: var(--text); }
.rz-mini { position: relative; flex: 1 1 80px; height: 8px; border-radius: 4px; overflow: hidden; background: color-mix(in srgb, var(--rz-no) 45%, transparent); }
.rz-mini i { position: absolute; inset: 0 auto 0 0; width: var(--w, 0%); background: var(--rz-yes); }
.rz-author { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; flex-wrap: wrap; padding: 10px 12px; border-radius: 10px; background: rgba(255, 255, 255, .05); font-size: 15px; font-weight: 600; animation: rz-in .45s ease-out .9s both; }
.rz-author.me { box-shadow: inset 3px 0 0 var(--accent); }
.rz-author small { color: var(--muted); font-weight: 500; }
.rz-pts { font-size: 20px; color: var(--ok); font-variant-numeric: tabular-nums; }
.rz-pts.zero { color: var(--muted); }
.rz-x2 { margin-left: 6px; font-size: 11px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; color: var(--accent); }
.rz-me { font-size: 13px; color: var(--muted); }
.rz-best { margin-top: 12px; display: flex; flex-direction: column; gap: 6px; }
.rz-best small { font-size: 12.5px; color: var(--muted); }
@keyframes rz-grow { from { transform: scaleX(0); } to { transform: none; } }
@keyframes rz-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

@media (max-width: 760px) {
  .rz-dilemma { padding: 12px 13px; font-size: 17px; }
  .rz-choice { min-height: 56px; font-size: 18px; }
  .rz-table { gap: 4px; }
  .rz-card .hg-btn, .rz-card .hg-min, .rz-card .hg-head .ga-tog { min-height: 44px; } /* phones first: 44-px targets (the hall game's are 40 / 36) */
  .rz-card .hg-min, .rz-card .hg-head .ga-tog { width: 44px; }
  /* The phone's keyboard is open: the sheet sits on it and fits what is left of the screen. */
  .rz-card.rz-kb { bottom: var(--rz-kb, 0px); max-height: calc(var(--rz-vh, 60vh) - 8px); padding-bottom: 10px; }
  .rz-card.rz-kb .rz-ask { display: none; }
}
@media (max-width: 360px) { .rz-split { gap: 6px; } .rz-bar { padding: 0 8px; } }
@media (prefers-reduced-motion: reduce) { .rz-bar i, .rz-author { animation: none; } }
