/* «Кто из нас»: a step of a round on the big screen, one look on the shared screen (/tv/) and on a PC player's stage
   (owner 2026-10-29: «версии некоторых экранов в ПК и ТВ почти не отличаются» → one code for both, after
   hundred-board.css, question-stage.css, quiplash-matchup.css, truth-detect.css, wyr-choice.css, fibbage-stage.css and
   knowme-stage.css). The markup and the moving part are shared/client/wml-stage.ts. The page supplies the palette
   (--wm-crimson, --wm-rose, --wm-rose-text, --tv-surface, --tv-line, --text-secondary, --rp-correct) and the cuts
   (--cut-1…4, --cut-shadow).

   vote: the statement on a dark cut card with the lead in rose and the crimson shadow, the hint under it (a PC player:
   the players as cut-card buttons). reveal: the statement small on the left, the votes as the phones' tally rows
   (hearts, voters, a bar to the most votes). punish: the punishments on cut cards with the rose edge. */
@keyframes wms-in { from { opacity: 0; transform: translateY(14px); } }
@keyframes wms-cut-in { from { opacity: 0; transform: translateY(-26px) rotate(-5deg) scale(1.06); } }
@keyframes wms-row-in { from { opacity: 0; transform: translateX(30px); } }
@keyframes wms-bar { from { transform: scaleX(0); } }
@keyframes wms-heart { 0% { color: var(--wm-rose-text); transform: scale(1); } 40% { transform: scale(1.5); } 100% { color: rgb(228 227 229 / 22%); transform: scale(1); } }

.wms-root .hidden { display: none !important; }
.wms-root .tv-wml-main { flex: 1; min-height: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 22px; padding: 0 12px; }
.wms-root .tv-wml-card {
    display: flex; flex-direction: column; align-items: center; gap: 10px; max-width: 1060px; padding: 40px 60px;
    background: var(--tv-surface); border: 2px solid var(--tv-line); border-radius: 30px 18px 34px 20px / 20px 32px 18px 30px;
    box-shadow: 9px 11px 0 color-mix(in srgb, var(--wm-crimson) 60%, transparent); rotate: -1.2deg;
    animation: wms-cut-in .7s cubic-bezier(.3, 1.45, .5, 1) both;
}
.wms-root .tv-wml-lead { margin: 0; font-size: 24px; font-weight: 700; color: var(--wm-rose-text); }
.wms-root .tv-wml-question { margin: 0; color: #fff; font-weight: 700; font-size: 44px; line-height: 1.22; text-align: center; text-wrap: balance; overflow-wrap: anywhere; }
.wms-root .tv-wml-hint { display: inline-flex; align-items: center; gap: 12px; margin: 0; font-size: 24px; font-weight: 700; color: var(--text-secondary); text-align: center; }
.wms-root :is(.tv-wml-tally, .tv-wml-summary, .tv-wml-punish, .wms-players) { display: none; }
.wms-root:is([data-step="reveal"], [data-step="punish"]) .tv-wml-hint,
.wms-root[data-step="punish"] .tv-wml-card { display: none; }
.wms-root[data-step="reveal"] .tv-wml-main { flex-direction: row; align-items: center; gap: 40px; }
.wms-root[data-step="reveal"] .tv-wml-card { flex: 0 0 360px; padding: 28px 30px; }
.wms-root[data-step="reveal"] .tv-wml-question { font-size: 28px; }
.wms-root[data-step="reveal"] .tv-wml-lead { font-size: 18px; }
.wms-root[data-step="reveal"] .tv-wml-tally { display: flex; }
.wms-root[data-step="reveal"] .tv-wml-summary:not(.hidden) { display: flex; }
.wms-root[data-step="punish"] .tv-wml-punish { display: flex; }
.wms-root .tv-wml-tally {
    flex: 1; min-width: 0; flex-direction: column; justify-content: center; gap: 10px; max-height: 590px; margin: 0;
    padding: var(--cut-room, 14px); list-style: none; overflow: hidden;
}
.wms-root .tv-wml-row {
    position: relative; display: flex; align-items: center; gap: 16px; min-height: 0; flex: 0 1 72px; padding: 8px 20px;
    background: var(--tv-surface); border: 2px solid var(--tv-line); border-radius: var(--cut-1); box-shadow: var(--cut-shadow);
    overflow: hidden; rotate: -.5deg; animation: wms-row-in .5s cubic-bezier(.2, .8, .2, 1) both; animation-delay: calc(200ms + var(--i, 0) * 120ms);
}
.wms-root .tv-wml-row:nth-child(even) { border-radius: var(--cut-2); rotate: .5deg; translate: 4px 0; }
.wms-root .tv-wml-row > :not(.tv-wml-bar) { position: relative; }
.wms-root .tv-wml-bar { position: absolute; inset: 0 auto 0 0; width: calc(var(--share, 0) * 100%); background: color-mix(in srgb, var(--wm-rose) 22%, transparent); transform-origin: left; animation: wms-bar .8s cubic-bezier(.2, .8, .2, 1) both; animation-delay: calc(500ms + var(--i, 0) * 120ms); }
.wms-root .tv-wml-row.is-lost { border-color: var(--wm-rose); }
.wms-root .tv-wml-row.is-lost .tv-wml-bar { background: color-mix(in srgb, var(--wm-crimson) 60%, transparent); }
.wms-root .tv-wml-row.is-answer:not(.is-lost) { border-color: var(--wm-rose); }
.wms-root .tv-wml-row-main { flex: 1; min-width: 0; display: flex; align-items: center; flex-wrap: wrap; gap: 8px 14px; }
.wms-root .tv-wml-row-main .rp-player { font-size: 24px; color: #fff; }
.wms-root .tv-wml-hearts { display: inline-flex; gap: 3px; }
.wms-root .tv-wml-heart { font-size: 18px; color: rgb(228 227 229 / 22%); }
.wms-root .tv-wml-heart.is-on { color: var(--wm-rose-text); }
.wms-root .tv-wml-heart.is-breaking { animation: wms-heart 1s 1s ease-in both; }
.wms-root .tv-wml-badge { padding: 3px 10px; border-radius: 8px; font-size: 15px; font-weight: 800; color: #fff; background: var(--wm-crimson); }
.wms-root .tv-wml-row-votes { display: flex; align-items: center; gap: 12px; flex: 0 0 auto; }
.wms-root .tv-wml-count { font-size: 18px; font-weight: 700; color: var(--text-secondary); white-space: nowrap; }
.wms-root .tv-wml-row.is-lost .tv-wml-count { color: #fff; }
.wms-root .tv-wml-voters { display: flex; }
.wms-root .tv-wml-voters > * { width: 34px; height: 34px; margin-left: -8px; font-size: 14px; border: 2px solid var(--tv-surface); border-radius: 50%; }
.wms-root .tv-wml-empty { padding: 20px; font-size: 22px; color: var(--text-secondary); text-align: center; }
.wms-root .tv-wml-summary { flex-direction: column; gap: 6px; margin: 0; font-size: 20px; color: var(--text-secondary); }
.wms-root .tv-wml-summary strong { font-size: 24px; color: var(--wm-rose-text); }
.wms-root[data-step="reveal"] .tv-wml-main:has(.tv-wml-summary:not(.hidden)) { display: grid; grid-template-columns: 360px minmax(0, 1fr); grid-template-rows: auto 1fr; column-gap: 40px; row-gap: 14px; align-content: center; }
.wms-root[data-step="reveal"] .tv-wml-main:has(.tv-wml-summary:not(.hidden)) .tv-wml-card { grid-column: 1; grid-row: 1; }
.wms-root[data-step="reveal"] .tv-wml-main:has(.tv-wml-summary:not(.hidden)) .tv-wml-summary { grid-column: 1; grid-row: 2; align-self: start; padding: 0 10px; }
.wms-root[data-step="reveal"] .tv-wml-main:has(.tv-wml-summary:not(.hidden)) .tv-wml-tally { grid-column: 2; grid-row: 1 / 3; }
.wms-root .tv-wml-punish { flex-direction: column; align-items: center; gap: 22px; width: 100%; max-width: 1180px; }
.wms-root .tv-wml-punish-title { margin: 0; font-family: var(--font-display); font-weight: 800; font-size: 40px; letter-spacing: -.03em; color: var(--wm-rose-text); text-align: center; animation: wms-in .5s ease both; }
.wms-root .tv-wml-tasks { display: flex; flex-wrap: wrap; justify-content: center; gap: 22px; width: 100%; }
.wms-root .tv-wml-task {
    text-align: left;
    flex: 1 1 340px; max-width: 760px; display: flex; flex-direction: column; gap: 16px; padding: 28px 32px;
    background: var(--tv-surface); border: 2px solid var(--wm-rose); border-radius: var(--cut-1);
    box-shadow: 7px 9px 0 color-mix(in srgb, var(--wm-crimson) 55%, transparent); rotate: -1deg;
    animation: wms-cut-in .6s cubic-bezier(.3, 1.45, .5, 1) both; animation-delay: calc(150ms + var(--i, 0) * 140ms);
}
.wms-root .tv-wml-task:nth-child(even) { border-radius: var(--cut-3); rotate: 1deg; }
.wms-root .tv-wml-task.is-done { border-color: var(--rp-correct); }
.wms-root .tv-wml-task-who { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; }
.wms-root .tv-wml-task-who .rp-player { font-size: 24px; color: #fff; }
.wms-root .tv-wml-task-who .tv-chip-mark {
    position: static; display: inline-grid; place-items: center; width: 30px; height: 30px; margin: 0; border-radius: 50%;
    color: #fff; background: var(--rp-correct); font-size: 17px;
}
.wms-root .tv-wml-task-text { margin: 0; color: #fff; font-size: 30px; font-weight: 700; line-height: 1.3; text-wrap: balance; overflow-wrap: anywhere; }
.wms-root .tv-wml-task-teaser {
    align-self: flex-start; display: inline-flex; align-items: center; gap: 10px; padding: 8px 18px 8px 14px; color: #fff;
    background: var(--wm-crimson); font-size: 19px; font-weight: 700; border-radius: var(--cut-2); box-shadow: var(--cut-shadow); rotate: -1.5deg;
}
.wms-root .tv-wml-punish-hint { margin: 0; font-size: 21px; font-weight: 600; color: var(--text-secondary); text-align: center; }

/* ── A PC player's vote (buttons; the screen has none): the players as dark cut cards, up to four a row and centred, a number stamp each,
   hearts (guess mode: points) under the name; hover lifts the edge to rose, the pick turns crimson with the rose edge
   and its shadow, the others fade. ── */
.wms-root[data-step="vote"] .wms-players { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px 18px; width: 100%; max-width: 1180px; padding: 6px 14px 14px 6px; }
.wms-root .wms-player {
    position: relative; flex: 0 1 270px; display: flex; align-items: center; gap: 12px; min-width: 0; min-height: 84px; padding: 10px 16px 10px 12px;
    color: #fff; font: inherit; text-align: left; cursor: pointer; background: var(--tv-surface); border: 2px solid var(--tv-line);
    border-radius: var(--cut-1); box-shadow: var(--cut-shadow); rotate: -.8deg;
    transition: border-color .15s ease, translate .15s ease, opacity .2s ease;
}
.wms-root .wms-player:nth-child(4n + 2) { border-radius: var(--cut-2); rotate: .7deg; }
.wms-root .wms-player:nth-child(4n + 3) { border-radius: var(--cut-3); rotate: -.4deg; }
.wms-root .wms-player:nth-child(4n + 4) { border-radius: var(--cut-4); rotate: .5deg; }
.wms-root .wms-players.rp-dealt .wms-player { animation: wms-cut-in .5s cubic-bezier(.3, 1.45, .5, 1) backwards; animation-delay: calc(380ms + var(--i, 0) * 90ms); }
.wms-root .wms-players.is-votable .wms-player:hover { border-color: var(--wm-rose); translate: 0 -3px; }
.wms-root .wms-player:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
.wms-root .wms-player:disabled { cursor: default; }
.wms-root .wms-players.is-locked .wms-player:not(.is-selected) { opacity: .45; }
.wms-root .wms-player.is-offline { opacity: .45; }
.wms-root .wms-player.is-selected { background: var(--wm-crimson); border-color: var(--wm-rose); box-shadow: 6px 7px 0 color-mix(in srgb, var(--wm-crimson) 55%, #000); }
.wms-root .wms-player-key {
    flex: none; display: grid; place-items: center; width: 34px; height: 34px; font-family: var(--font-display); font-size: 16px; font-weight: 800;
    color: #fff; background: var(--wm-crimson); border-radius: 46% 54% 50% 50% / 54% 46% 54% 46%; rotate: -6deg; box-shadow: 2px 3px 0 rgb(0 0 0 / 30%);
}
.wms-root .wms-player.is-selected .wms-player-key { color: var(--wm-crimson); background: #fff; }
.wms-root .wms-player-copy { display: grid; gap: 4px; min-width: 0; }
.wms-root .wms-player-copy .rp-player { min-width: 0; font-size: 21px; font-weight: 700; color: #fff; }
.wms-root .wms-player-meta { display: flex; align-items: center; gap: 10px; }
.wms-root .wms-player-score { font-size: 16px; font-weight: 800; color: var(--wm-rose-text); }
.wms-root .wms-player-you { font-size: 14px; color: var(--text-secondary); }
.wms-root .wms-player.is-selected :is(.tv-wml-heart.is-on, .wms-player-score, .wms-player-you) { color: #fff; }

/* «ИИ-фото» pilot (2026-11-06): the follow-up round's AI picture over the statement card (vote step only), a white
   photo frame with the slight tilt and crimson hard shadow of the card, marked «ИИ-фото» (shared/client/wml-stage.ts image()). */
.wms-root .wms-ai-photo {
    position: relative; margin: 0; padding: 10px 10px 12px; background: #fff; border-radius: 8px;
    box-shadow: 9px 11px 0 color-mix(in srgb, var(--wm-crimson) 60%, transparent); rotate: 2deg;
    animation: wms-cut-in .7s cubic-bezier(.3, 1.45, .5, 1) both;
}
.wms-root .wms-ai-photo img { display: block; width: min(38vh, 420px); height: min(38vh, 420px); max-width: none; aspect-ratio: 1; object-fit: cover; border-radius: 4px; }
.wms-root .wms-ai-photo-mark {
    position: absolute; top: 14px; left: 14px; padding: 1px 4px; border-radius: 999px;
    background: rgb(0 0 0 / 62%); color: #fff; font-size: 7px; font-weight: 700;
}
.wms-root .wms-ai-photo-mark[hidden] { display: none; }
.wms-root:not([data-step="vote"]) .wms-ai-photo { display: none; }
/* With the picture the vote is two columns (owner 2026-11-07 «на 2 пк 2 раза картинка»: the photo over the card pushed
   the card and the players off a PC window): the photo on the left, the statement card on the right, the hint and the
   players under both. */
.wms-root[data-step="vote"] .tv-wml-main:has(> .wms-ai-photo:not(.hidden)) {
    display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 48px; row-gap: 22px; align-content: center; justify-items: center;
}
.wms-root[data-step="vote"] .tv-wml-main:has(> .wms-ai-photo:not(.hidden)) > .wms-ai-photo { grid-column: 1; grid-row: 1; align-self: center; }
.wms-root[data-step="vote"] .tv-wml-main:has(> .wms-ai-photo:not(.hidden)) > .tv-wml-card { grid-column: 2; grid-row: 1; align-self: center; }
.wms-root[data-step="vote"] .tv-wml-main:has(> .wms-ai-photo:not(.hidden)) > :not(.wms-ai-photo, .tv-wml-card) { grid-column: 1 / -1; }
