/* «Что бы ты выбрал?»: the dilemma 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 and quiplash-matchup.css). The markup and the moving part are
   shared/client/wyr-choice.ts; the page supplies the palette (--wyr-ink, --wyr-a, --wyr-b, --text-primary).

   What is asked on top, the two sides as big hand-cut cards (A cyan with ink text, B crimson with white text: equal
   choices, never right or wrong) leaning towards each other, «или» between them. A PC player's sides are buttons:
   hover lifts the card, the pick gets a white edge, the other fades. */
.wyc-root {
    --font-display: 'Unbounded', 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    /* The /tv/ hand-cut corners (tv/style.css .tv). */
    --cut-1: 26px 12px 22px 16px / 16px 24px 12px 22px;
    --cut-3: 22px 16px 28px 12px / 12px 20px 16px 26px;
    --cut-shadow: 5px 6px 0 rgb(0 0 0 / 34%);
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 24px; width: 100%;
}
@keyframes wyc-cut-in { from { opacity: 0; transform: translateY(-26px) rotate(-5deg) scale(1.06); } }
@keyframes wyc-pop { 0% { transform: scale(.6); opacity: 0; } 60% { transform: scale(1.08); opacity: 1; } 100% { transform: scale(1); } }

.tv-wyr-kicker { display: inline-flex; align-items: center; gap: 12px; margin: 0; font-size: 25px; font-weight: 700; color: var(--text-primary, #fff); text-align: center; text-wrap: balance; }
.tv-wyr-kicker .wyc-target:empty { display: none; }
.tv-wyr-pair { width: 100%; max-width: 1160px; display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 22px; }
.tv-wyr-side {
    position: relative; min-height: 300px; display: flex; align-items: center; justify-content: center; padding: 40px 38px;
    border-radius: var(--cut-1); box-shadow: var(--cut-shadow); rotate: -1.6deg;
    animation: wyc-cut-in .65s cubic-bezier(.3, 1.45, .5, 1) both;
}
.tv-wyr-side p { margin: 0; font-weight: 700; font-size: 34px; line-height: 1.25; text-align: center; text-wrap: balance; overflow-wrap: anywhere; }
.tv-wyr-side.is-a { color: var(--wyr-ink); background: var(--wyr-a); }
.tv-wyr-side.is-b { color: #fff; background: var(--wyr-b); border-radius: var(--cut-3); rotate: 1.4deg; translate: 0 10px; animation-delay: .16s; }
/* The letter: a white stamp on the card's corner, cut and turned (tv/style.css .tv-option-letter). */
.tv-wyr-side .tv-option-letter {
    position: absolute; top: -16px; left: -14px; display: grid; place-items: center; width: 50px; height: 50px;
    font-family: var(--font-display); font-weight: 800; font-size: 22px; color: var(--wyr-ink); background: #fff;
    border-radius: 46% 54% 50% 50% / 54% 46% 54% 46%; rotate: -6deg; box-shadow: 2px 3px 0 rgb(0 0 0 / 30%);
}
.tv-wyr-or { font-family: var(--font-display); font-weight: 800; font-size: 30px; text-transform: uppercase; color: #fff; animation: wyc-pop .5s .3s cubic-bezier(.2, .8, .2, 1) both; }
.wyc-root.is-guessing .tv-wyr-side { min-height: 240px; }

/* ── A PC player's sides (buttons): hover lifts the card, the pick gets the white edge, the other fades. ── */
.wyc-root button.tv-wyr-side {
    width: 100%; margin: 0; border: 4px solid transparent; font-family: inherit; cursor: default;
    transition: border-color .2s ease, box-shadow .2s ease, opacity .25s ease, scale .15s ease;
}
.wyc-root.is-votable button.tv-wyr-side:not(:disabled) { cursor: pointer; }
.wyc-root.is-votable button.tv-wyr-side:hover:not(:disabled) { border-color: rgb(255 255 255 / 70%); box-shadow: 8px 10px 0 rgb(0 0 0 / 34%); }
.wyc-root.is-votable button.tv-wyr-side:active:not(:disabled) { scale: .97; }
.wyc-root button.tv-wyr-side:focus-visible { outline: 3px solid #fff; outline-offset: 4px; }
.wyc-root .tv-wyr-side.is-selected { border-color: #fff; box-shadow: 8px 10px 0 rgb(0 0 0 / 40%); }
.wyc-root.is-locked .tv-wyr-side:not(.is-selected) { opacity: .45; }

/* ── «4 картинки»: the question and four photo cards (2×2) in place of the two sides, the same cut cards. ── */
.wyc-pick4 { display: none; width: 100%; max-width: 1160px; flex-direction: column; align-items: center; gap: 18px; }
.wyc-root.is-pick4 .wyc-pick4 { display: flex; }
.wyc-root.is-pick4 .tv-wyr-pair { display: none; }
.wyc-pick4-question { margin: 0; font-family: var(--font-display); font-weight: 800; font-size: 34px; line-height: 1.2; color: var(--text-primary, #fff); text-align: center; text-wrap: balance; }
.wyc-pick4-grid { width: 100%; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; }
.wyc-pick4-card {
    position: relative; display: flex; flex-direction: column; gap: 10px; margin: 0; padding: 10px 10px 12px;
    color: var(--wyr-ink); background: #fff; border: 4px solid transparent; border-radius: var(--cut-1);
    box-shadow: var(--cut-shadow); rotate: calc((var(--i, 0) - 1.5) * 1.2deg); font-family: inherit;
    animation: wyc-cut-in .65s calc(var(--i, 0) * .12s) cubic-bezier(.3, 1.45, .5, 1) both;
    transition: border-color .2s ease, box-shadow .2s ease, opacity .25s ease, scale .15s ease;
}
.wyc-pick4-card:nth-child(even) { border-radius: var(--cut-3); }
.wyc-pick4-card img { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 10px; background: rgb(0 0 0 / 8%); }
.wyc-pick4-caption { font-weight: 700; font-size: 22px; line-height: 1.2; text-align: center; text-wrap: balance; overflow-wrap: anywhere; }
.wyc-pick4-card .tv-option-letter {
    position: absolute; z-index: 1; top: -14px; left: -12px; display: grid; place-items: center; width: 46px; height: 46px;
    font-family: var(--font-display); font-weight: 800; font-size: 20px; color: #fff; background: var(--wyr-b);
    border-radius: 46% 54% 50% 50% / 54% 46% 54% 46%; rotate: -6deg; box-shadow: 2px 3px 0 rgb(0 0 0 / 30%);
}
.wyc-root.is-guessing .wyc-pick4-caption { font-size: 20px; }
.wyc-root button.wyc-pick4-card { cursor: default; }
.wyc-root.is-votable button.wyc-pick4-card:not(:disabled) { cursor: pointer; }
.wyc-root.is-votable button.wyc-pick4-card:hover:not(:disabled) { border-color: var(--wyr-a); box-shadow: 8px 10px 0 rgb(0 0 0 / 34%); }
.wyc-root.is-votable button.wyc-pick4-card:active:not(:disabled) { scale: .97; }
.wyc-root button.wyc-pick4-card:focus-visible { outline: 3px solid #fff; outline-offset: 4px; }
.wyc-root .wyc-pick4-card.is-selected { border-color: var(--wyr-a); box-shadow: 8px 10px 0 rgb(0 0 0 / 40%); }
.wyc-root.is-locked .wyc-pick4-card:not(.is-selected) { opacity: .45; }
@media (max-width: 900px) { .wyc-pick4-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (prefers-reduced-motion: reduce) { .wyc-pick4-card { animation: none; } }
