/* «Как хорошо ты меня знаешь?»: 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 and wyr-choice.css). The markup
   and the moving part are shared/client/knowme-stage.ts; the answer cards, their cut and their button states are
   question-stage.css's .tv-option (the root is also .qs-root, load that file first). The page supplies the palette
   (--km-ink, --km-cream, --km-brick, --km-navy, --gold, --rp-correct, --rp-wrong).

   Who answers on a navy cut label, the question big in the middle, the hint in cream, the options as cream cut cards
   with ink text (a meme question: the pictures on cream cards). A PC player's options are buttons: hover lifts the
   card, the pick gets the brick edge and shadow, the others fade. */
.kms-root { --km-shadow: 5px 6px 0 rgb(23 25 31 / 28%); }
@keyframes kms-in { from { opacity: 0; transform: translateY(14px); } }
@keyframes kms-cut-in { from { opacity: 0; transform: translateY(-26px) rotate(-5deg) scale(1.06); } }

.tv-km-main { flex: 1; min-height: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px; padding: 0 12px; }
.tv-km-who {
    display: inline-flex; align-items: center; gap: 14px; padding: 8px 20px 8px 18px; font-size: 22px; font-weight: 700;
    background: var(--km-navy); color: var(--km-cream); border-radius: var(--cut-2); box-shadow: var(--km-shadow);
    rotate: -1.5deg; animation: kms-cut-in .6s cubic-bezier(.3, 1.45, .5, 1) both;
}
.tv-km-who .rp-player { color: #fff; font-size: 26px; }
.tv-km-teaser { color: var(--km-cream); background: var(--km-brick); }
.tv-km-question {
    max-width: 1080px; margin: 0; color: #fff; font-weight: 700; font-size: 40px; line-height: 1.25; text-align: center;
    text-wrap: balance; overflow-wrap: anywhere; animation: kms-in .5s cubic-bezier(.2, .8, .2, 1) both;
}
/* An AI photo of a player over a picture question (shared/client/knowme-stage.ts photo): a cream cut card with a slight
   tilt and the hard shadow, the «ИИ-фото» mark in its corner outside ru/ua (EU AI Act). The question gets smaller beside it. */
.kms-photo {
    position: relative; margin: 0; padding: 8px; width: min(300px, 32vh); background: var(--km-cream);
    border-radius: var(--cut-2); box-shadow: var(--km-shadow); rotate: 1.5deg; animation: kms-cut-in .6s cubic-bezier(.3, 1.45, .5, 1) both;
}
.kms-photo[hidden] { display: none; }
.kms-photo-mark[hidden] { display: none; }
.kms-photo img { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 6px; }
.kms-photo-mark {
    position: absolute; top: 12px; left: 12px; padding: 1px 4px; border-radius: 999px; background: var(--km-cream);
    color: var(--km-ink); font-size: 7px; font-weight: 700; opacity: .85;
}
.kms-root.has-photo { gap: 12px; }
.kms-root.has-photo .tv-km-question { font-size: 32px; }
.tv-km-hint { margin: 0; color: var(--km-cream); font-size: 22px; font-weight: 600; text-align: center; }
.tv-km-options { width: 100%; max-width: 1100px; }
.tv-km-options .tv-option { min-height: 78px; font-size: 25px; font-weight: 600; color: var(--km-ink); background: var(--km-cream); border-color: transparent; }
.tv-km-options.is-two { max-width: 760px; }
.tv-km-options.is-memes { display: flex; justify-content: center; gap: 20px; }
.tv-km-options.is-memes .tv-option { position: relative; flex: 0 1 240px; padding: 10px; min-height: 0; }
.tv-km-options.is-memes .tv-option-letter { position: absolute; z-index: 1; top: -12px; left: -12px; width: 42px; height: 42px; font-size: 19px; }
.tv-km-meme { display: block; width: 100%; height: 200px; object-fit: contain; border-radius: 10px; }

/* ── A PC player's options (buttons, question-stage.css .qs-root button.tv-option): ink text on cream, the pick with
   the brick edge and its shadow, never the gold that would vanish on cream. ── */
.kms-root button.tv-option { color: var(--km-ink); }
.kms-root .tv-km-options.is-two button.tv-option { text-align: center; }
.kms-root button.tv-option:hover:not(:disabled) { border-color: var(--km-brick); }
.kms-root button.tv-option:focus-visible { outline-color: #fff; }
.kms-root .tv-option.is-selected {
    color: #fff; background: var(--km-brick); border-color: var(--km-cream);
    box-shadow: 6px 7px 0 color-mix(in srgb, var(--km-brick) 55%, #000);
}
.kms-root .tv-option.is-selected .tv-option-letter { color: var(--km-brick); background: var(--km-cream); }
.kms-root .tv-km-options.is-memes .tv-option.is-selected { background: var(--km-cream); border-color: var(--km-brick); border-width: 4px; }
/* «4 картинки»: the photo's caption under it (shared/client/pick4.ts). */
.tv-km-caption { display: block; padding-top: 8px; font-size: 21px; font-weight: 700; line-height: 1.15; color: var(--km-ink); text-align: center; text-wrap: balance; overflow-wrap: anywhere; }
/* The card is .tv-option (a row: letter, text): a picture card stacks the photo and its whole caption in a column,
   so the caption never sits beside the photo and runs under the next card (owner 2026-11-09, PC «Угадай!»). */
.tv-km-options.is-memes .tv-option { flex-direction: column; align-items: stretch; gap: 0; min-width: 0; text-align: center; }
