:root {
  --kqm-void: #01020a;
  --kqm-night: #030618;
  --kqm-royal: #102d7a;
  --kqm-blue: #2459c8;
  --kqm-purple: #281552;
  --kqm-cyan: #83d8ff;
  --kqm-gold: #f5c85b;
  --kqm-amber: #d98a21;
  --kqm-green: #2bc576;
  --kqm-red: #d33e50;
  --kqm-text: #f8f5ec;
  --kqm-muted: rgba(236, 240, 255, .62);
  --kqm-line: rgba(163, 211, 255, .5);
  --kqm-gold-line: rgba(245, 200, 91, .68);
  --kqm-focus: #fff1a8;
  --kqm-ease: cubic-bezier(.2, .75, .2, 1);
  --kqm-fast: 180ms;
  --kqm-medium: 420ms;
  --kqm-layer-studio: 0;
  --kqm-layer-stage: 2;
  --kqm-layer-overlay: 20;
}

/* The game is one television set, not a collection of cards. */
.kqm-game {
  position: relative;
  width: calc(100% - 24px);
  min-height: 720px;
  margin: 0 12px 24px;
  overflow: hidden;
  border: 1px solid rgba(114, 158, 236, .35);
  border-radius: 4px;
  background: var(--kqm-void);
  color: var(--kqm-text);
  box-shadow: 0 26px 80px rgba(0, 0, 0, .62);
  isolation: isolate;
  font-family: "Trebuchet MS", "Arial Narrow", Arial, sans-serif;
}

.kqm-game::before,
.kqm-game::after { display: none; }

.kqm-game button:focus-visible,
.kqm-game input:focus-visible + span { outline: 2px solid var(--kqm-focus); outline-offset: 3px; }

.kqm-studio { position: absolute; z-index: var(--kqm-layer-studio); inset: 0; overflow: hidden; pointer-events: none; background: #02040f; }
.kqm-studio-backdrop { position: absolute; inset: -4%; overflow: hidden; background: radial-gradient(ellipse at 50% 42%, rgba(42, 92, 207, .56), transparent 34%), radial-gradient(ellipse at 52% 76%, rgba(87, 31, 150, .46), transparent 48%), linear-gradient(180deg, #02030b 0%, #07143e 42%, #06051c 72%, #02030c 100%); transform: scale(1.01); transition: filter 1.2s ease, transform 7s ease; }
.kqm-studio-backdrop::before { position: absolute; inset: 0; content: ""; opacity: .32; background: repeating-radial-gradient(ellipse at 50% 62%, transparent 0 48px, rgba(91, 138, 225, .16) 49px 50px, transparent 51px 88px); mask-image: linear-gradient(to bottom, transparent 12%, #000 62%, transparent 95%); }
.kqm-studio-backdrop::after { position: absolute; inset: 0; content: ""; opacity: .42; background: radial-gradient(circle at 50% 20%, rgba(130, 190, 255, .18), transparent 24%), linear-gradient(112deg, transparent 18%, rgba(77, 126, 230, .1) 42%, transparent 64%); mix-blend-mode: screen; transition: opacity .8s ease, transform 5s ease; }
.kqm-studio-audience { position: absolute; right: -4%; bottom: 9%; left: -4%; height: 25%; opacity: .5; background: radial-gradient(circle at 7% 80%, rgba(74, 115, 201, .55) 0 1px, transparent 2px), radial-gradient(circle at 17% 55%, rgba(241, 194, 91, .42) 0 1px, transparent 2px), radial-gradient(circle at 28% 83%, rgba(85, 139, 237, .52) 0 1px, transparent 2px), radial-gradient(circle at 70% 72%, rgba(245, 200, 91, .36) 0 1px, transparent 2px), radial-gradient(circle at 84% 47%, rgba(103, 155, 244, .48) 0 1px, transparent 2px), radial-gradient(circle at 94% 80%, rgba(71, 109, 193, .52) 0 1px, transparent 2px); background-size: 48px 35px, 61px 42px, 53px 39px, 57px 34px, 67px 45px, 43px 32px; filter: blur(.4px); }
.kqm-studio-rings { position: absolute; top: 49%; left: 50%; width: min(70vw, 820px); aspect-ratio: 1.85; transform: translate(-50%, -50%); }
.kqm-studio-rings i { position: absolute; inset: 0; border: 1px solid rgba(94, 142, 238, .28); border-radius: 50%; box-shadow: inset 0 0 38px rgba(64, 108, 216, .08), 0 0 18px rgba(48, 94, 196, .11); }
.kqm-studio-rings i:nth-child(2) { inset: 12%; border-color: rgba(245, 200, 91, .17); }
.kqm-studio-rings i:nth-child(3) { inset: 25%; border-color: rgba(123, 183, 255, .22); }
.kqm-beam { position: absolute; top: -32%; width: 18%; height: 105%; opacity: .2; background: linear-gradient(180deg, rgba(134, 184, 255, .6), transparent 72%); clip-path: polygon(42% 0, 58% 0, 100% 100%, 0 100%); filter: blur(7px); transform-origin: 50% 0; animation: kqm-tv-beam 9s ease-in-out infinite alternate; }
.kqm-beam-a { left: 3%; transform: rotate(17deg); }
.kqm-beam-b { left: 42%; opacity: .14; animation-delay: -3s; }
.kqm-beam-c { right: 1%; transform: rotate(-16deg); animation-delay: -6s; }
.kqm-stage-floor { position: absolute; right: -12%; bottom: -30%; left: -12%; height: 65%; background: radial-gradient(ellipse at 50% 5%, rgba(42, 89, 187, .35), transparent 42%), repeating-radial-gradient(ellipse at 50% 0, transparent 0 71px, rgba(106, 151, 238, .13) 72px 73px); transform: perspective(520px) rotateX(61deg); transform-origin: 50% 0; }
.kqm-vignette { position: absolute; inset: 0; background: radial-gradient(ellipse at 50% 48%, transparent 30%, rgba(0, 0, 7, .48) 77%, rgba(0, 0, 4, .88) 100%); }

.kqm-game[data-tier="2"] .kqm-studio-backdrop { filter: brightness(.76) saturate(1.12); transform: scale(1.025); }
.kqm-game[data-tier="3"] .kqm-studio-backdrop { filter: brightness(.48) saturate(.92) hue-rotate(8deg); transform: scale(1.045); }
.kqm-game[data-tier="3"] .kqm-beam { opacity: .1; }
.kqm-game[data-final="true"] .kqm-studio-backdrop { filter: brightness(.3) saturate(.7); transform: scale(1.06); }
.kqm-game[data-final="true"] .kqm-studio-rings i:nth-child(2) { border-color: rgba(245, 200, 91, .5); box-shadow: 0 0 45px rgba(245, 200, 91, .12); }
.kqm-game.is-suspense .kqm-studio-backdrop { filter: brightness(.32) saturate(.78); transform: scale(1.04); }
.kqm-game.is-entering-game .kqm-studio-rings { animation: kqm-tv-enter-stage .76s var(--kqm-ease) both; }
.kqm-game.is-entering-game .kqm-content,
.kqm-game.is-entering-game .kqm-presenter,
.kqm-game.is-entering-game .kqm-ladder { animation: kqm-tv-stage-reveal .76s var(--kqm-ease) both; }
.kqm-game[data-screen="menu"] .kqm-studio-backdrop { filter: brightness(.88) saturate(1.12); }
.kqm-game[data-screen="menu"] .kqm-studio-backdrop::after { opacity: .58; transform: scale(1.025); }
.kqm-game[data-screen="question"] .kqm-studio-backdrop::after { opacity: .18; transform: scale(1.08); }
.kqm-game[data-screen="question"][data-tier="1"] .kqm-studio-backdrop { filter: brightness(.56) saturate(.95); }
.kqm-game[data-screen="question"][data-tier="2"] .kqm-studio-backdrop { filter: brightness(.43) saturate(.92); }
.kqm-game[data-screen="question"][data-tier="3"] .kqm-studio-backdrop { filter: brightness(.3) saturate(.8); }

.kqm-topbar { position: relative; z-index: 8; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; min-height: 64px; padding: 8px 18px; border: 0; border-bottom: 1px solid rgba(116, 164, 245, .2); background: linear-gradient(180deg, rgba(2, 4, 16, .9), rgba(2, 5, 18, .48)); backdrop-filter: none; }
.kqm-brand { display: flex; align-items: center; gap: 10px; }
.kqm-brand > img { width: 44px; height: 44px; border: 1px solid rgba(245, 200, 91, .55); border-radius: 50%; object-fit: cover; box-shadow: 0 0 18px rgba(41, 87, 190, .5); }
.kqm-brand strong { color: rgba(248, 245, 236, .9); font-size: .66rem; line-height: 1.2; letter-spacing: .1em; }
.kqm-question-counter { display: grid; justify-items: center; min-width: 112px; padding: 5px 18px; border: 0; background: linear-gradient(90deg, transparent, rgba(42, 75, 155, .22), transparent); }
.kqm-question-counter small { color: var(--kqm-gold); font-size: .48rem; letter-spacing: .18em; }
.kqm-question-counter strong { font-size: .86rem; letter-spacing: .08em; }
.kqm-top-actions { justify-self: end; display: flex; gap: 8px; }
.kqm-top-actions button { display: grid; width: 36px; height: 36px; place-items: center; border: 1px solid rgba(158, 202, 255, .34); border-radius: 50%; background: rgba(4, 9, 31, .72); color: var(--kqm-text); font-size: .8rem; transition: border-color var(--kqm-fast), color var(--kqm-fast), transform var(--kqm-fast); }
.kqm-top-actions button:hover { border-color: var(--kqm-gold-line); color: var(--kqm-gold); transform: scale(1.05); }

.kqm-stage { position: relative; z-index: var(--kqm-layer-stage); display: grid; grid-template-columns: minmax(205px, 26%) minmax(420px, 1fr) minmax(160px, 18%); min-height: 570px; }
.kqm-content { position: relative; z-index: 4; display: grid; min-width: 0; place-items: center; padding: clamp(20px, 3vw, 44px) clamp(18px, 3.4vw, 52px); }
.kqm-screen { width: min(100%, 850px); text-align: center; }

.kqm-presenter { position: relative; z-index: 3; display: flex; min-width: 0; align-items: end; justify-content: center; margin: 0; overflow: visible; border: 0; background: none; }
.kqm-presenter-light { position: absolute; top: 2%; left: 5%; width: 90%; height: 80%; background: radial-gradient(ellipse at 50% 30%, rgba(78, 124, 226, .28), transparent 57%); filter: blur(4px); animation: kqm-tv-host-light 5s ease-in-out infinite alternate; }
.kqm-presenter-orbit { position: absolute; top: 14%; left: 50%; width: 92%; aspect-ratio: 1; transform: translateX(-50%); }
.kqm-presenter-orbit i { position: absolute; inset: 0; border: 1px solid rgba(104, 153, 241, .24); border-radius: 50%; }
.kqm-presenter-orbit i:nth-child(2) { inset: 14%; border-color: rgba(245, 200, 91, .2); animation: kqm-tv-orbit 18s linear infinite; }
.kqm-presenter img { position: relative; z-index: 2; width: min(124%, 360px); max-height: 88%; object-fit: contain; object-position: center bottom; filter: drop-shadow(0 26px 28px rgba(0, 0, 0, .72)); transform-origin: 50% 100%; transition: filter var(--kqm-medium), transform var(--kqm-medium), opacity var(--kqm-medium); }
.kqm-game[data-host-state="asking"] .kqm-presenter img { transform: translateY(-1%) rotate(-.5deg); }
.kqm-game[data-host-state="waiting"] .kqm-presenter img,
.kqm-game[data-host-state="suspense"] .kqm-presenter img { filter: brightness(.72) saturate(.82) drop-shadow(0 28px 34px rgba(0, 0, 0, .84)); transform: translateY(1%) scale(1.015); }
.kqm-game[data-host-state="correct"] .kqm-presenter img,
.kqm-game[data-host-state="milestone"] .kqm-presenter img,
.kqm-game[data-host-state="victory"] .kqm-presenter img { filter: brightness(1.15) saturate(1.12) drop-shadow(0 22px 34px rgba(245, 200, 91, .2)); transform: translateY(-2%) scale(1.025); }
.kqm-game[data-host-state="wrong"] .kqm-presenter img { filter: grayscale(.34) brightness(.68) drop-shadow(0 28px 34px rgba(0, 0, 0, .86)); }
.kqm-presenter figcaption { position: absolute; z-index: 5; right: -7%; bottom: 20px; left: 8%; display: grid; gap: 4px; padding: 11px 13px 12px 17px; border: 0; border-left: 2px solid var(--kqm-gold); border-radius: 0; background: linear-gradient(90deg, rgba(4, 8, 27, .94), rgba(6, 11, 35, .76) 74%, transparent); color: var(--kqm-text); text-align: left; backdrop-filter: none; box-shadow: 0 10px 30px rgba(0, 0, 0, .38); }
.kqm-presenter figcaption small { color: var(--kqm-gold); font-size: .46rem; font-weight: 900; letter-spacing: .16em; }
.kqm-presenter figcaption span { min-height: 2.5em; font-size: clamp(.6rem, .85vw, .72rem); line-height: 1.35; }
.kqm-presenter figcaption.is-typing span::after { content: ""; display: inline-block; width: 1px; height: 1em; margin-left: 2px; background: var(--kqm-gold); vertical-align: -.12em; animation: kqm-tv-caret .7s step-end infinite; }

.kqm-eyebrow { color: var(--kqm-gold); font-size: .56rem; font-weight: 900; letter-spacing: .22em; }
.kqm-welcome { display: grid; justify-items: center; }
.kqm-menu-emblem { position: relative; width: clamp(118px, 18vw, 210px); aspect-ratio: 1; margin-bottom: 12px; }
.kqm-menu-emblem::before,
.kqm-menu-emblem::after { position: absolute; inset: -10%; content: ""; border: 1px solid rgba(119, 168, 255, .3); border-radius: 50%; animation: kqm-tv-orbit 20s linear infinite; }
.kqm-menu-emblem::after { inset: -20%; border-color: rgba(245, 200, 91, .17); animation-direction: reverse; animation-duration: 28s; }
.kqm-menu-emblem img { position: relative; z-index: 2; display: block; width: 100%; height: 100%; border-radius: 50%; object-fit: cover; box-shadow: 0 0 24px rgba(65, 112, 220, .42), 0 0 70px rgba(28, 59, 150, .32); }
.kqm-welcome h2 { max-width: 18ch; margin: 8px 0 10px; font-size: clamp(1.8rem, 4vw, 3.5rem); line-height: .96; letter-spacing: .02em; text-transform: uppercase; text-wrap: balance; }
.kqm-welcome h2 em { display: block; margin-top: 5px; color: var(--kqm-gold); font-style: normal; text-shadow: 0 0 22px rgba(245, 200, 91, .24); }
.kqm-menu-promise { display: flex; align-items: center; justify-content: center; gap: 11px; margin: 0 0 15px !important; color: rgba(246, 247, 253, .73) !important; font-size: .64rem !important; text-transform: uppercase; letter-spacing: .08em; }
.kqm-menu-promise i { width: 3px; height: 3px; border-radius: 50%; background: var(--kqm-gold); }

.kqm-theme-panel { width: min(100%, 770px); margin: 0 auto 16px; padding: 0; border: 0; border-radius: 0; background: none; text-align: center; }
.kqm-theme-heading { display: flex; align-items: end; justify-content: center; gap: 18px; margin-bottom: 8px; }
.kqm-theme-heading small { color: var(--kqm-gold); font-size: .44rem; letter-spacing: .18em; }
.kqm-theme-heading h3 { margin: 2px 0 0; font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; }
.kqm-theme-heading button { min-height: 26px; padding: 0 11px; border: 0; border-bottom: 1px solid var(--kqm-gold-line); border-radius: 0; background: none; color: var(--kqm-gold); font-size: .52rem; text-transform: uppercase; }
.kqm-theme-selector { display: flex; max-width: 100%; gap: 6px; overflow-x: auto; padding: 6px 3px 9px; scroll-snap-type: x proximity; scrollbar-width: thin; scrollbar-color: rgba(245, 200, 91, .45) transparent; }
.kqm-theme-selector label { flex: 0 0 auto; scroll-snap-align: center; }
.kqm-theme-selector span { display: grid; min-width: 108px; min-height: 39px; place-items: center; padding: 6px 11px; border: 1px solid rgba(133, 183, 255, .32); border-radius: 0; background: linear-gradient(180deg, rgba(19, 42, 104, .72), rgba(4, 10, 32, .9)); color: rgba(249, 249, 252, .76); clip-path: polygon(8px 0, calc(100% - 8px) 0, 100% 50%, calc(100% - 8px) 100%, 8px 100%, 0 50%); font-size: .53rem; letter-spacing: .03em; transition: transform var(--kqm-fast), border-color var(--kqm-fast), color var(--kqm-fast), box-shadow var(--kqm-fast); }
.kqm-theme-selector label:hover span { border-color: rgba(245, 200, 91, .62); transform: translateY(-2px); }
.kqm-theme-selector input:checked + span { border-color: var(--kqm-gold); background: linear-gradient(180deg, #5e4218, #1d204c); color: #fff8da; box-shadow: 0 0 20px rgba(245, 200, 91, .24), inset 0 0 16px rgba(255, 221, 132, .08); transform: translateY(-2px); }
.kqm-theme-selector input:checked + span::before { content: ""; }
.kqm-theme-mode { justify-content: center; gap: 8px; margin-top: 0; padding: 0; border: 0; }
.kqm-theme-mode strong { color: var(--kqm-gold); font-size: .5rem; letter-spacing: .08em; text-transform: uppercase; }
.kqm-theme-mode span { color: rgba(237, 240, 250, .48); font-size: .48rem; text-align: center; }
.kqm-menu-actions { gap: 13px; }
.kqm-play-button { position: relative; min-width: 205px; min-height: 52px; border: 1px solid rgba(198, 222, 255, .7); border-radius: 0; background: linear-gradient(180deg, #17367f, #08153f); color: #fff; clip-path: polygon(14px 0, calc(100% - 14px) 0, 100% 50%, calc(100% - 14px) 100%, 14px 100%, 0 50%); box-shadow: 0 0 20px rgba(50, 101, 218, .28); animation: none; letter-spacing: .1em; text-transform: uppercase; }
.kqm-play-button::after { position: absolute; inset: 3px 13px; content: ""; border-top: 1px solid rgba(255, 255, 255, .2); pointer-events: none; }
.kqm-play-button:hover { border-color: var(--kqm-gold); box-shadow: 0 0 28px rgba(245, 200, 91, .22); transform: translateY(-1px); }
.kqm-secondary { min-height: 42px; padding: 0 17px; border: 1px solid rgba(148, 193, 255, .38); border-radius: 0; background: rgba(3, 9, 31, .72); color: rgba(248, 249, 253, .82); font-size: .61rem; letter-spacing: .05em; text-transform: uppercase; }

.kqm-question { width: min(100%, 960px); }
.kqm-question-meta { grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); margin-bottom: 12px; color: rgba(220, 232, 255, .6); font-size: .54rem; letter-spacing: .11em; text-transform: uppercase; }
.kqm-question-meta > b { padding: 0; border: 0; border-radius: 0; background: none; color: var(--kqm-gold); font-size: .52rem; }
.kqm-question-meta strong { color: var(--kqm-gold); font-size: .72rem; }
.kqm-question-frame { position: relative; display: grid; grid-template-columns: 22px minmax(0, 1fr) 22px; align-items: center; width: calc(100% + 44px); margin: 0 -22px 22px; }
.kqm-question-frame::before { position: absolute; inset: 0 20px; content: ""; border-top: 1px solid rgba(190, 220, 255, .62); border-bottom: 1px solid rgba(190, 220, 255, .62); background: radial-gradient(ellipse at center, rgba(41, 82, 174, .36), rgba(4, 10, 36, .93) 66%); box-shadow: 0 0 26px rgba(36, 82, 181, .18); }
.kqm-question-frame > i { position: relative; z-index: 2; width: 17px; aspect-ratio: 1; border: 1px solid var(--kqm-gold-line); background: #0b194b; transform: rotate(45deg); }
.kqm-question-frame > i:last-child { justify-self: end; }
.kqm-question h2 { position: relative; z-index: 1; display: grid; min-height: 94px; margin: 0; place-items: center; padding: 18px 28px; border: 0; background: none; color: #fff; font-size: clamp(1rem, 2vw, 1.48rem); line-height: 1.32; text-wrap: balance; text-shadow: 0 2px 9px rgba(0, 0, 0, .88); }
.kqm-answers { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px 13px; }
.kqm-answer { position: relative; display: grid; grid-template-columns: 35px minmax(0, 1fr); align-items: center; gap: 9px; min-height: 62px; padding: 9px 19px; overflow: hidden; border: 1px solid rgba(156, 202, 255, .52); border-radius: 0; background: radial-gradient(ellipse at center, rgba(27, 59, 134, .34), rgba(3, 9, 33, .94) 72%); color: #fff; clip-path: polygon(15px 0, calc(100% - 15px) 0, 100% 50%, calc(100% - 15px) 100%, 15px 100%, 0 50%); text-align: left; transition: transform var(--kqm-fast), border-color var(--kqm-fast), filter var(--kqm-medium), background var(--kqm-medium), box-shadow var(--kqm-medium), opacity var(--kqm-medium); }
.kqm-answer::after { position: absolute; top: 0; bottom: 0; left: -35%; width: 28%; content: ""; opacity: 0; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .2), transparent); transform: skewX(-18deg); }
.kqm-answer > b { display: grid; width: 27px; height: 27px; place-items: center; border: 0; border-radius: 0; color: var(--kqm-gold); font-size: .69rem; }
.kqm-answer > b::after { content: "·"; margin-left: 2px; }
.kqm-answer > span { font-size: clamp(.66rem, 1.05vw, .82rem); line-height: 1.28; }
.kqm-answer:hover { border-color: var(--kqm-gold-line); transform: translateY(-1px); box-shadow: 0 0 18px rgba(73, 129, 239, .18); }
.kqm-answer:hover::after { opacity: 1; animation: kqm-tv-answer-sweep .65s ease-out; }
.kqm-answer.is-selected { border-color: #ffd16b; background: radial-gradient(ellipse at center, #9d601d, #4f2c0b 74%); box-shadow: 0 0 28px rgba(233, 151, 39, .4), inset 0 0 18px rgba(255, 226, 145, .12); }
.kqm-answer.is-correct { border-color: #7bf0ae; background: radial-gradient(ellipse at center, #177a4d, #07351f 74%); box-shadow: 0 0 34px rgba(43, 197, 118, .42); animation: kqm-tv-correct-flash .7s var(--kqm-ease); }
.kqm-answer.is-wrong { border-color: #ff7885; background: radial-gradient(ellipse at center, #8a2432, #3c0c18 74%); box-shadow: 0 0 30px rgba(211, 62, 80, .38); }
.kqm-answer.is-removed { visibility: visible; opacity: .16; filter: grayscale(1); pointer-events: none; }
.kqm-answer.is-removed > span,
.kqm-answer.is-removed > b { visibility: hidden; }
.kqm-game.is-suspense .kqm-answer:not(.is-selected) { opacity: .24; filter: brightness(.55); }

.kqm-ladder { position: relative; z-index: 4; align-self: center; padding: 18px 12px 18px 8px; border: 0; background: linear-gradient(90deg, transparent, rgba(2, 5, 18, .68) 25%); }
.kqm-ladder header { padding: 0 8px 9px; border: 0; text-align: right; }
.kqm-ladder header small { color: rgba(220, 231, 252, .5); font-size: .43rem; letter-spacing: .16em; }
.kqm-ladder header strong { color: var(--kqm-gold); font-size: .66rem; letter-spacing: .08em; }
.kqm-ladder ol { gap: 1px; margin-top: 7px; }
.kqm-ladder li { position: relative; grid-template-columns: 23px 1fr; min-height: 26px; padding: 2px 8px; color: rgba(228, 234, 250, .42); font-size: .64rem; transition: color var(--kqm-medium), transform var(--kqm-medium), background var(--kqm-medium); }
.kqm-ladder li span { color: rgba(123, 176, 255, .72); }
.kqm-ladder li.is-safe { color: var(--kqm-gold); }
.kqm-ladder li.is-passed { color: rgba(112, 218, 164, .66); }
.kqm-ladder li.is-current { color: #07112e; background: linear-gradient(90deg, transparent 0, #f6cf70 12%, #fff0b8 78%, transparent 100%); clip-path: polygon(8px 0, 100% 0, calc(100% - 8px) 50%, 100% 100%, 8px 100%, 0 50%); transform: translateX(-5px) scale(1.04); box-shadow: none; animation: kqm-tv-current 1.5s ease-in-out infinite alternate; }
.kqm-ladder li.is-current span { color: #17234c; }

.kqm-controls { position: relative; z-index: 7; display: flex; min-height: 83px; align-items: center; justify-content: center; gap: clamp(20px, 6vw, 78px); padding: 9px 18px 13px; border: 0; border-top: 1px solid rgba(112, 155, 232, .18); background: linear-gradient(0deg, rgba(1, 3, 12, .95), rgba(2, 5, 19, .52)); }
.kqm-lifelines { display: flex; gap: 15px; }
.kqm-lifelines button { position: relative; display: grid; grid-template: 1fr auto / 1fr; justify-items: center; width: 74px; min-width: 74px; height: 62px; min-height: 62px; padding: 0; border: 0; border-radius: 0; background: none; color: #fff; text-align: center; }
.kqm-lifelines button > span { position: relative; grid-row: auto; display: grid; width: 45px; height: 35px; place-items: center; border: 1px solid rgba(163, 207, 255, .66); border-radius: 50%; background: radial-gradient(ellipse, #183d91, #061033 75%); color: #fff; box-shadow: 0 0 14px rgba(59, 115, 227, .22); font-size: .62rem; font-weight: 900; transition: border-color var(--kqm-fast), transform var(--kqm-fast), box-shadow var(--kqm-fast); }
.kqm-lifelines button small { color: rgba(232, 237, 250, .5); font-size: .43rem; white-space: nowrap; }
.kqm-lifelines button:hover > span { border-color: var(--kqm-gold); transform: scale(1.05); box-shadow: 0 0 20px rgba(245, 200, 91, .22); }
.kqm-lifelines button.is-used { opacity: .38; }
.kqm-lifelines button.is-used::after { position: absolute; top: 20px; left: 16px; width: 43px; height: 2px; content: ""; background: #e54758; box-shadow: 0 0 8px rgba(229, 71, 88, .8); transform: rotate(-18deg); }
.kqm-quit { display: grid; min-width: 148px; min-height: 42px; padding: 5px 10px; border: 0; border-bottom: 1px solid rgba(245, 200, 91, .28); border-radius: 0; background: none; color: rgba(238, 240, 248, .62); text-align: center; cursor: pointer; }
.kqm-quit small { font-size: .5rem; }
.kqm-quit strong { color: var(--kqm-gold); font-size: .56rem; }
.kqm-quit:hover { border-color: var(--kqm-gold); background: linear-gradient(0deg, rgba(245, 200, 91, .06), transparent); }

.kqm-audience { grid-template-columns: repeat(4, 1fr); min-height: 128px; margin-top: 14px; padding: 10px 15px; border: 0; border-bottom: 1px solid rgba(151, 195, 255, .3); border-radius: 0; background: linear-gradient(180deg, rgba(3, 8, 27, .25), rgba(4, 10, 34, .86)); }
.kqm-audience i { background: linear-gradient(to top, #214aa5, #8abfff 76%, #f4d06f); }
.kqm-audience div { min-width: 0; }
.kqm-audience b { color: #f8d97e; font-size: clamp(.65rem, 1vw, 1rem); }
.kqm-audience span { display: block; color: #fff; font-size: clamp(.82rem, 1.25vw, 1.2rem); font-weight: 1000; line-height: 1; text-shadow: 0 0 14px rgba(125, 188, 255, .75); }
.kqm-friend-hint { margin-top: 13px; padding: 11px 15px; border: 0; border-left: 2px solid var(--kqm-gold); border-radius: 0; background: linear-gradient(90deg, rgba(40, 27, 7, .82), rgba(4, 9, 30, .75)); }

/* Decision moments stay on the set: the scene dims, the chosen answer remains visible. */
.kqm-answer-confirmation { position: absolute; z-index: 18; inset: 0; display: grid; place-items: center; padding: clamp(12px, 2vh, 28px); background: radial-gradient(ellipse at 50% 52%, rgba(255, 190, 47, .28), rgba(15, 8, 0, .82) 52%, rgba(0, 1, 7, .96)); backdrop-filter: none; }
.kqm-answer-confirmation::before { position: absolute; inset: 0; content: ""; opacity: .9; background: linear-gradient(112deg, transparent 20%, rgba(255, 215, 103, .22) 44%, transparent 62%); pointer-events: none; animation: kqm-gold-sweep 2.8s ease-in-out infinite alternate; }
.kqm-answer-confirmation > div { position: relative; z-index: 1; display: grid; width: min(92vw, 1120px); justify-items: center; gap: clamp(9px, 1.15vh, 16px); overflow: visible; padding: clamp(20px, 2.7vh, 38px) clamp(26px, 3.4vw, 62px); border: 2px solid #ffd45b; background: linear-gradient(145deg, #b97a13 0%, #70420a 36%, #402306 68%, #211203 100%); text-align: center; box-shadow: 0 0 0 5px rgba(255, 206, 73, .12), 0 0 64px rgba(255, 182, 35, .52), inset 0 0 58px rgba(255, 222, 122, .15); clip-path: polygon(28px 0, calc(100% - 28px) 0, 100% 28px, 100% calc(100% - 28px), calc(100% - 28px) 100%, 28px 100%, 0 calc(100% - 28px), 0 28px); }
.kqm-last-choice-portrait { display: block; width: clamp(100px, 11vw, 190px); max-height: 24dvh; object-fit: contain; filter: drop-shadow(0 0 24px rgba(92, 146, 255, .42)) drop-shadow(0 18px 22px rgba(0, 0, 0, .72)); }
.kqm-answer-confirmation > div > small { color: #fff0b4; font-size: .54rem; font-weight: 900; letter-spacing: .22em; text-shadow: 0 2px 5px rgba(35, 17, 0, .85); }
.kqm-answer-confirmation h2 { margin: 0; color: #fff; font-size: clamp(1.7rem, 4.6vw, 4rem); line-height: 1; text-shadow: 0 3px 0 rgba(65, 31, 0, .7), 0 0 26px rgba(255, 219, 119, .5); }
.kqm-answer-confirmation p { margin: 0; padding: 9px 22px; border: 1px solid rgba(255, 231, 164, .56); background: rgba(25, 11, 0, .48); color: #fff4c9; font-size: clamp(.72rem, .85vw, 1rem); }
.kqm-answer-confirmation > div > div { gap: 8px; }
.kqm-answer-confirmation .kqm-primary { border-color: #fff0a8; background: linear-gradient(180deg, #ffd961, #e59a18); color: #211200; box-shadow: 0 0 28px rgba(255, 215, 86, .5); clip-path: polygon(10px 0, calc(100% - 10px) 0, 100% 50%, calc(100% - 10px) 100%, 10px 100%, 0 50%); }
.kqm-answer-confirmation .kqm-secondary { border-color: rgba(255, 233, 169, .58); background: rgba(21, 12, 4, .82); color: #fff7dc; }
.kqm-abandon-confirmation { align-items: center; }

.kqm-joker-sequence { z-index: 21; background: radial-gradient(ellipse at 50% 52%, rgba(25, 59, 139, .66), rgba(1, 3, 14, .96) 68%); }
.kqm-joker-sequence::before,
.kqm-joker-sequence::after { border-color: rgba(125, 176, 255, .22); }
.kqm-joker-sequence small { color: var(--kqm-gold); }
.kqm-joker-sequence h2 { text-shadow: 0 0 30px rgba(75, 126, 232, .42); }

.kqm-milestone { z-index: 22; background: radial-gradient(ellipse at center, rgba(79, 57, 12, .5), rgba(5, 9, 35, .96) 52%, #01020a 100%); }
.kqm-milestone > div { gap: 7px; }
.kqm-milestone img { width: min(25vmin, 155px); aspect-ratio: 1; border-radius: 50%; box-shadow: 0 0 50px rgba(245, 200, 91, .24); }
.kqm-milestone small { color: var(--kqm-gold); }
.kqm-milestone strong { color: #fff1b5; }
.kqm-milestone p { margin: 0; color: rgba(246, 241, 221, .72); font-size: .66rem; }

.kqm-final-intro { position: absolute; z-index: 23; inset: 0; display: grid; place-items: center; overflow: hidden; background: radial-gradient(ellipse at center, rgba(44, 32, 9, .38), rgba(2, 5, 20, .97) 48%, #010208 100%); }
.kqm-final-intro[hidden] { display: none; }
.kqm-final-intro::before,
.kqm-final-intro::after { position: absolute; width: min(72vmin, 650px); aspect-ratio: 1; content: ""; border: 1px solid rgba(245, 200, 91, .32); border-radius: 50%; box-shadow: 0 0 70px rgba(245, 200, 91, .08); animation: kqm-tv-orbit 20s linear infinite; }
.kqm-final-intro::after { width: min(48vmin, 430px); border-color: rgba(123, 176, 255, .3); animation-direction: reverse; }
.kqm-final-intro > div { position: relative; z-index: 1; display: grid; justify-items: center; gap: 8px; text-align: center; animation: kqm-tv-final-intro .55s var(--kqm-ease) both; }
.kqm-final-intro img { width: min(23vmin, 165px); aspect-ratio: 1; border-radius: 50%; object-fit: cover; box-shadow: 0 0 54px rgba(245, 200, 91, .2); }
.kqm-final-intro small { color: var(--kqm-gold); font-size: .58rem; font-weight: 900; letter-spacing: .22em; }
.kqm-final-intro h2 { margin: 3px 0; color: #fff; font-size: clamp(2.3rem, 7vw, 6rem); line-height: .92; text-transform: uppercase; text-shadow: 0 0 30px rgba(245, 200, 91, .18); }
.kqm-final-intro p { margin: 0; color: rgba(242, 244, 252, .66); font-size: .7rem; }
.kqm-final-intro strong { color: #fff0af; font-size: clamp(1.25rem, 3.4vw, 2.8rem); letter-spacing: .08em; text-shadow: 0 0 30px rgba(245, 200, 91, .3); }
.kqm-final-intro.is-leaving { opacity: 0; transform: scale(1.025); transition: opacity .42s ease, transform .42s ease; }

.kqm-finish { display: grid; justify-items: center; }
.kqm-finish-emblem { width: clamp(110px, 17vw, 190px); aspect-ratio: 1; margin-bottom: 15px; }
.kqm-finish-emblem img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; box-shadow: 0 0 55px rgba(72, 121, 224, .38); }
.kqm-finish h2 { max-width: 18ch; margin: 9px 0 8px; font-size: clamp(2rem, 5vw, 4.4rem); line-height: .94; text-transform: uppercase; }
.kqm-finish p { margin-bottom: 21px; }
.kqm-finish-actions { display: flex; gap: 9px; }
.kqm-game[data-result="victory"] .kqm-studio-backdrop { filter: brightness(1.15) saturate(1.25); }
.kqm-game[data-result="victory"] .kqm-finish h2 { color: #fff1a8; text-shadow: 0 0 30px rgba(245, 200, 91, .42); }
.kqm-game[data-result="victory"] .kqm-finish::before,
.kqm-game[data-result="victory"] .kqm-finish::after { position: absolute; inset: 3% 0 0; content: ""; opacity: .58; background-image: radial-gradient(circle, #f8d472 0 2px, transparent 3px), radial-gradient(circle, #fff0b1 0 1px, transparent 2px), radial-gradient(circle, #4f8ff5 0 1px, transparent 2px); background-position: 7% 85%, 17% 22%, 31% 74%; background-size: 83px 91px, 119px 107px, 71px 83px; mask-image: linear-gradient(to bottom, transparent, #000 18%, #000 70%, transparent); pointer-events: none; animation: kqm-tv-victory-particles 3.2s linear infinite; }
.kqm-game[data-result="victory"] .kqm-finish::after { opacity: .32; animation-duration: 5.4s; animation-direction: reverse; }
.kqm-game[data-result="victory"] .kqm-finish > * { position: relative; z-index: 1; }
.kqm-game[data-result="defeat"] .kqm-studio-backdrop { filter: grayscale(.45) brightness(.42); }

.kqm-rules-backdrop { background: rgba(0, 1, 8, .88); backdrop-filter: none; }
.kqm-rules-card { border: 1px solid rgba(144, 190, 255, .38); border-radius: 0; background: linear-gradient(150deg, #081237, #03071b 60%, #180d31); }
.kqm-rules-jokers article { border: 0; border-top: 1px solid rgba(144, 190, 255, .25); border-radius: 0; background: none; }
.kqm-sound-prompt { background: radial-gradient(ellipse at 50% 45%, #142c72, #030719 53%, #010208 100%); }
.kqm-sound-prompt-card { border: 0; border-top: 1px solid var(--kqm-gold-line); border-bottom: 1px solid rgba(151, 197, 255, .32); border-radius: 0; background: linear-gradient(90deg, transparent, rgba(4, 9, 31, .96) 12% 88%, transparent); box-shadow: none; }
.kqm-sound-prompt-logo { background: url("/assets/games/kafmillion-logo.jpg") center / cover; color: transparent; }
.kqm-sound-prompt-card > div button { border-radius: 0; clip-path: polygon(10px 0, calc(100% - 10px) 0, 100% 50%, calc(100% - 10px) 100%, 10px 100%, 0 50%); }

.kqm-intro { background: #000; }
.kqm-intro video { object-fit: contain; }
.kqm-intro-shade { background: radial-gradient(ellipse at center, transparent 42%, rgba(0, 0, 5, .72) 100%), linear-gradient(180deg, rgba(0, 0, 0, .2), transparent 65%, rgba(0, 0, 0, .8)); }
.kqm-intro-emblem { position: absolute; top: 50%; left: 50%; width: min(34vmin, 270px); aspect-ratio: 1; opacity: 0; transform: translate(-50%, -50%) scale(.85); animation: kqm-tv-intro-logo 3.7s 1s var(--kqm-ease) both; pointer-events: none; }
.kqm-intro-emblem::before { position: absolute; inset: -20%; content: ""; border: 1px solid rgba(121, 174, 255, .38); border-radius: 50%; box-shadow: 0 0 70px rgba(56, 106, 216, .35); animation: kqm-tv-orbit 18s linear infinite; }
.kqm-intro-emblem img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; box-shadow: 0 0 48px rgba(245, 200, 91, .2); }
.kqm-intro-skip { border-radius: 0; background: rgba(2, 6, 22, .74); }

.kqm-lock > div { border-radius: 0; background: rgba(3, 7, 24, .96); }

body.kqm-immersive { background: #000; }
.kqm-game.is-immersive { border-radius: 0; }
.kqm-game.is-immersive .kqm-content { overflow: auto; }
.kqm-game[data-screen="menu"] .kqm-stage { grid-template-columns: 1fr; min-height: 655px; }
.kqm-game[data-screen="menu"] .kqm-ladder { display: none; }
.kqm-game[data-screen="menu"] .kqm-presenter { position: absolute; z-index: 2; right: auto; bottom: 0; left: max(18px, 4vw); display: flex; width: min(27vw, 390px); height: min(72vh, 700px); opacity: .94; pointer-events: none; }
.kqm-game[data-screen="menu"] .kqm-presenter figcaption { display: none; }
.kqm-game[data-screen="menu"] .kqm-presenter img { width: 100%; max-width: none; height: 100%; max-height: none; }
.kqm-game[data-screen="menu"] .kqm-content { grid-column: 1; padding-top: 24px; padding-bottom: 28px; }
.kqm-game[data-screen="finish"] .kqm-stage { grid-template-columns: minmax(160px, 25%) 1fr; }
.kqm-game[data-screen="finish"] .kqm-ladder { display: none; }

/* Desktop television layout: the set fills the viewport instead of sitting in a web card. */
@media (min-width: 981px) and (min-height: 561px) {
  .kqm-game.is-immersive {
    display: grid;
    grid-template-rows: clamp(70px, 7.4dvh, 96px) minmax(0, 1fr) clamp(104px, 11.8dvh, 142px);
    width: 100vw;
    max-width: none;
    height: 100dvh;
    max-height: none;
  }
  .kqm-game.is-immersive .kqm-topbar { min-height: 0; padding: clamp(9px, 1.1dvh, 15px) clamp(24px, 2.2vw, 54px); }
  .kqm-game.is-immersive .kqm-brand { gap: clamp(12px, 1vw, 22px); }
  .kqm-game.is-immersive .kqm-brand > img { width: clamp(50px, 4.5dvh, 68px); height: clamp(50px, 4.5dvh, 68px); }
  .kqm-game.is-immersive .kqm-brand strong { font-size: clamp(.72rem, .74vw, 1rem); }
  .kqm-game.is-immersive .kqm-question-counter { min-width: clamp(150px, 13vw, 240px); padding: 7px 24px; }
  .kqm-game.is-immersive .kqm-question-counter small { font-size: clamp(.56rem, .55vw, .78rem); }
  .kqm-game.is-immersive .kqm-question-counter strong { font-size: clamp(1rem, 1.05vw, 1.45rem); }
  .kqm-game.is-immersive .kqm-top-actions button { width: clamp(42px, 3.4dvh, 54px); height: clamp(42px, 3.4dvh, 54px); font-size: clamp(.9rem, .9vw, 1.2rem); }

  .kqm-game.is-immersive .kqm-stage {
    grid-template-columns: clamp(330px, 25vw, 610px) minmax(0, 1fr) clamp(285px, 21vw, 500px);
    width: 100%;
    height: auto !important;
    min-height: 0 !important;
    overflow: hidden;
  }
  .kqm-game.is-immersive .kqm-content { min-height: 0; padding: clamp(14px, 1.8dvh, 28px) clamp(18px, 1.6vw, 38px); overflow: visible; }
  .kqm-game.is-immersive .kqm-screen { width: 100%; max-width: none; }
  .kqm-game.is-immersive .kqm-question { display: grid; align-content: center; width: 100%; min-height: min(66dvh, 760px); }

  .kqm-game.is-immersive .kqm-presenter { min-height: 0; padding: 0 0 clamp(8px, 1.2dvh, 18px); }
  .kqm-game.is-immersive .kqm-presenter img { width: min(142%, 34vw); height: min(79dvh, 980px); max-height: 100%; object-position: center bottom; transform: scale(1.16); }
  .kqm-game.is-immersive[data-host-state="asking"] .kqm-presenter img { transform: translateY(-1%) rotate(-.5deg) scale(1.18); }
  .kqm-game.is-immersive[data-host-state="waiting"] .kqm-presenter img,
  .kqm-game.is-immersive[data-host-state="suspense"] .kqm-presenter img { transform: translateY(1%) scale(1.19); }
  .kqm-game.is-immersive[data-host-state="correct"] .kqm-presenter img,
  .kqm-game.is-immersive[data-host-state="milestone"] .kqm-presenter img,
  .kqm-game.is-immersive[data-host-state="victory"] .kqm-presenter img { transform: translateY(-2%) scale(1.2); }
  .kqm-game.is-immersive .kqm-presenter-orbit { top: 4%; width: min(132%, 34vw); }
  .kqm-game.is-immersive .kqm-presenter figcaption { right: -10%; bottom: clamp(12px, 2dvh, 28px); left: 3%; gap: 8px; min-height: clamp(112px, 12.5dvh, 160px); padding: clamp(16px, 1.9dvh, 26px) clamp(20px, 1.7vw, 38px); }
  .kqm-game.is-immersive .kqm-presenter figcaption small { font-size: clamp(.58rem, .58vw, .8rem); }
  .kqm-game.is-immersive .kqm-presenter figcaption span { min-height: 3.5em; font-size: clamp(1rem, 1.12vw, 1.48rem); line-height: 1.42; }

  .kqm-game.is-immersive .kqm-question-meta { margin-bottom: clamp(14px, 1.7dvh, 24px); font-size: clamp(.65rem, .68vw, .92rem); }
  .kqm-game.is-immersive .kqm-question-meta > b { font-size: clamp(.66rem, .7vw, .95rem); }
  .kqm-game.is-immersive .kqm-question-meta strong { font-size: clamp(.86rem, .9vw, 1.2rem); }
  .kqm-game.is-immersive .kqm-question-frame { grid-template-columns: clamp(25px, 1.8vw, 42px) minmax(0, 1fr) clamp(25px, 1.8vw, 42px); width: calc(100% + clamp(46px, 4vw, 86px)); margin: 0 clamp(-43px, -2vw, -23px) clamp(18px, 2.2dvh, 32px); }
  .kqm-game.is-immersive .kqm-question-frame::before { right: clamp(20px, 1.6vw, 35px); left: clamp(20px, 1.6vw, 35px); border-width: 2px 0; }
  .kqm-game.is-immersive .kqm-question-frame > i { width: clamp(20px, 1.35vw, 32px); }
  .kqm-game.is-immersive .kqm-question h2 { min-height: clamp(128px, 15dvh, 190px); padding: clamp(23px, 3dvh, 42px) clamp(34px, 3vw, 74px); font-size: clamp(1.5rem, 1.85vw, 2.8rem); line-height: 1.28; }
  .kqm-game.is-immersive .kqm-answers { gap: clamp(13px, 1.6dvh, 22px) clamp(16px, 1.3vw, 30px); }
  .kqm-game.is-immersive .kqm-answer { grid-template-columns: clamp(42px, 3vw, 66px) minmax(0, 1fr); gap: clamp(10px, 1vw, 20px); min-height: clamp(78px, 9.2dvh, 118px); padding: clamp(13px, 1.7dvh, 24px) clamp(24px, 2vw, 46px); clip-path: polygon(24px 0, calc(100% - 24px) 0, 100% 50%, calc(100% - 24px) 100%, 24px 100%, 0 50%); }
  .kqm-game.is-immersive .kqm-answer > b { width: clamp(36px, 2.5vw, 54px); height: clamp(36px, 2.5vw, 54px); font-size: clamp(.9rem, 1vw, 1.32rem); }
  .kqm-game.is-immersive .kqm-answer > span { font-size: clamp(1rem, 1.18vw, 1.7rem); line-height: 1.3; }

  .kqm-game.is-immersive .kqm-ladder { align-self: stretch; display: grid; grid-template-rows: auto minmax(0, 1fr); min-height: 0; padding: clamp(18px, 2.2dvh, 32px) clamp(18px, 1.5vw, 34px) clamp(18px, 2.2dvh, 32px) clamp(10px, 1vw, 22px); }
  .kqm-game.is-immersive .kqm-ladder header { padding-bottom: clamp(10px, 1.3dvh, 18px); }
  .kqm-game.is-immersive .kqm-ladder header small { font-size: clamp(.55rem, .56vw, .76rem); }
  .kqm-game.is-immersive .kqm-ladder header strong { font-size: clamp(.82rem, .82vw, 1.15rem); }
  .kqm-game.is-immersive .kqm-ladder ol { display: grid; align-content: center; gap: clamp(2px, .35dvh, 5px); min-height: 0; margin: 0; }
  .kqm-game.is-immersive .kqm-ladder li { grid-template-columns: clamp(28px, 2vw, 44px) 1fr; min-height: clamp(29px, 3.15dvh, 43px); padding: 3px clamp(10px, .8vw, 18px); font-size: clamp(.72rem, .76vw, 1.02rem); }

  .kqm-game.is-immersive .kqm-controls { min-height: 0; gap: clamp(38px, 7vw, 150px); padding: clamp(8px, 1dvh, 14px) clamp(28px, 3vw, 70px) max(clamp(10px, 1.3dvh, 18px), env(safe-area-inset-bottom)); }
  .kqm-game.is-immersive .kqm-lifelines { gap: clamp(22px, 2.2vw, 48px); }
  .kqm-game.is-immersive .kqm-lifelines button { width: clamp(108px, 8.5vw, 165px); min-width: clamp(108px, 8.5vw, 165px); height: clamp(82px, 8.5dvh, 112px); min-height: clamp(82px, 8.5dvh, 112px); }
  .kqm-game.is-immersive .kqm-lifelines button > span { width: clamp(70px, 5.5vw, 104px); height: clamp(50px, 5.3dvh, 72px); font-size: clamp(.82rem, .86vw, 1.12rem); }
  .kqm-game.is-immersive .kqm-lifelines button small { font-size: clamp(.56rem, .58vw, .78rem); }
  .kqm-game.is-immersive .kqm-lifelines button.is-used::after { top: 42%; left: 16%; width: 68%; }
  .kqm-game.is-immersive .kqm-quit { min-width: clamp(210px, 17vw, 330px); min-height: clamp(58px, 6.4dvh, 82px); }
  .kqm-game.is-immersive .kqm-quit small { font-size: clamp(.66rem, .68vw, .92rem); }
  .kqm-game.is-immersive .kqm-quit strong { font-size: clamp(.76rem, .78vw, 1.05rem); }

  .kqm-game.is-immersive .kqm-audience { min-height: clamp(170px, 21dvh, 270px); margin-top: clamp(16px, 2dvh, 28px); padding: clamp(15px, 1.8dvh, 25px) clamp(22px, 2vw, 46px); }
  .kqm-game.is-immersive .kqm-audience div { height: clamp(142px, 18dvh, 235px); }

  .kqm-game.is-immersive .kqm-answer-confirmation h2 { font-size: clamp(2.7rem, 4.4vw, 6rem); }
  .kqm-game.is-immersive .kqm-answer-confirmation p { font-size: clamp(1rem, 1.15vw, 1.5rem); }
  .kqm-game.is-immersive .kqm-answer-confirmation > div > small { font-size: clamp(.62rem, .62vw, .85rem); }
  .kqm-game.is-immersive .kqm-answer-confirmation > div > div { gap: clamp(12px, 1vw, 22px); }
  .kqm-game.is-immersive .kqm-answer-confirmation button { min-width: clamp(210px, 16vw, 320px); min-height: clamp(50px, 5.5dvh, 72px); font-size: clamp(.7rem, .72vw, .98rem); }

  .kqm-game.is-immersive[data-screen="menu"],
  .kqm-game.is-immersive[data-screen="finish"] { grid-template-rows: clamp(70px, 7.4dvh, 96px) minmax(0, 1fr); }
  .kqm-game.is-immersive[data-screen="menu"] .kqm-stage { grid-template-columns: 1fr; min-height: 0; }
  .kqm-game.is-immersive[data-screen="menu"] .kqm-content { align-items: start; padding: clamp(6px, .7dvh, 11px) 2.4vw clamp(12px, 1.4dvh, 20px); overflow-y: auto; }
  .kqm-game.is-immersive[data-screen="menu"] .kqm-screen { width: min(95vw, 1840px); height: 100%; max-width: none; }
  .kqm-game.is-immersive[data-screen="menu"] .kqm-welcome { display: grid; grid-template-rows: auto auto auto auto auto auto; align-content: start; justify-items: center; min-height: 100%; }
  .kqm-game.is-immersive[data-screen="menu"] .kqm-menu-emblem { width: clamp(145px, 15dvh, 205px); margin: 0 0 clamp(3px, .4dvh, 7px); }
  .kqm-game.is-immersive[data-screen="menu"] .kqm-eyebrow { font-size: clamp(.72rem, .74vw, 1.02rem); }
  .kqm-game.is-immersive[data-screen="menu"] .kqm-welcome h2 { margin: clamp(4px, .5dvh, 8px) 0; max-width: 22ch; font-size: clamp(2.7rem, 4vw, 5.4rem); }
  .kqm-game.is-immersive[data-screen="menu"] .kqm-menu-promise { margin-bottom: clamp(8px, .9dvh, 13px) !important; font-size: clamp(.76rem, .78vw, 1.08rem) !important; }
  .kqm-game.is-immersive[data-screen="menu"] .kqm-theme-panel { display: grid; align-content: center; width: min(94vw, 1760px); min-height: 0; margin: 0 auto clamp(10px, 1.2dvh, 17px); }
  .kqm-game.is-immersive[data-screen="menu"] .kqm-theme-heading { align-items: center; margin-bottom: clamp(9px, 1dvh, 15px); }
  .kqm-game.is-immersive[data-screen="menu"] .kqm-theme-heading small { font-size: clamp(.62rem, .64vw, .88rem); }
  .kqm-game.is-immersive[data-screen="menu"] .kqm-theme-heading h3 { font-size: clamp(1.2rem, 1.25vw, 1.7rem); }
  .kqm-game.is-immersive[data-screen="menu"] .kqm-theme-heading button { min-height: 46px; padding: 0 18px; font-size: clamp(.66rem, .66vw, .9rem); }
  .kqm-game.is-immersive[data-screen="menu"] .kqm-theme-selector { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(12px, 1.15vw, 22px); max-width: none; max-height: none; overflow: visible; padding: 6px; }
  .kqm-game.is-immersive[data-screen="menu"] .kqm-theme-selector label { min-width: 0; }
  .kqm-game.is-immersive[data-screen="menu"] .kqm-theme-selector span { width: 100%; min-width: 0; min-height: clamp(82px, 8.5dvh, 114px); padding: 16px 22px; font-size: clamp(.92rem, .96vw, 1.32rem); line-height: 1.2; }
  .kqm-game.is-immersive[data-screen="menu"] .kqm-theme-mode { margin-top: clamp(8px, .9dvh, 13px); }
  .kqm-game.is-immersive[data-screen="menu"] .kqm-theme-mode strong { font-size: clamp(.7rem, .72vw, .98rem); }
  .kqm-game.is-immersive[data-screen="menu"] .kqm-theme-mode span { font-size: clamp(.64rem, .66vw, .9rem); }
  .kqm-game.is-immersive[data-screen="menu"] .kqm-menu-actions { display: grid; grid-template-columns: minmax(420px, 1.35fr) minmax(320px, 1fr); width: min(82vw, 1320px); gap: clamp(18px, 1.6vw, 32px); }
  .kqm-game.is-immersive[data-screen="menu"] .kqm-play-button { width: 100%; min-width: 0; min-height: clamp(82px, 8.8dvh, 116px); font-size: clamp(1.02rem, 1.08vw, 1.48rem); }
  .kqm-game.is-immersive[data-screen="menu"] .kqm-menu-actions .kqm-secondary { width: 100%; min-width: 0; min-height: clamp(82px, 8.8dvh, 116px); font-size: clamp(.9rem, .94vw, 1.28rem); }
}

@media (max-width: 980px) {
  .kqm-game.is-audience-visible .kqm-ladder { display: none !important; }
}

@media (min-width: 721px) and (max-width: 980px) {
  .kqm-game.is-immersive.is-audience-visible .kqm-stage { grid-template-columns: minmax(160px, 24%) minmax(0, 1fr); }
}

@keyframes kqm-tv-beam { to { transform: rotate(-8deg) translateX(11%); opacity: .28; } }
@keyframes kqm-tv-host-light { to { opacity: .55; transform: scale(1.08); } }
@keyframes kqm-tv-orbit { to { transform: rotate(1turn); } }
@keyframes kqm-tv-caret { 50% { opacity: 0; } }
@keyframes kqm-tv-answer-sweep { to { left: 115%; } }
@keyframes kqm-tv-correct-flash { 0%, 100% { filter: brightness(1); } 42% { filter: brightness(1.85); } }
@keyframes kqm-tv-current { to { filter: brightness(1.16); transform: translateX(-8px) scale(1.045); } }
@keyframes kqm-tv-intro-logo { 0% { opacity: 0; transform: translate(-50%, -50%) scale(.82); } 22%, 72% { opacity: 1; transform: translate(-50%, -50%) scale(1); } 100% { opacity: 0; transform: translate(-50%, -50%) scale(1.06); } }
@keyframes kqm-tv-enter-stage { from { opacity: .15; transform: translate(-50%, -50%) scale(.42) rotate(-3deg); filter: brightness(2); } to { opacity: 1; transform: translate(-50%, -50%) scale(1); filter: none; } }
@keyframes kqm-tv-stage-reveal { 0%, 24% { opacity: 0; transform: scale(.985); } 100% { opacity: 1; transform: none; } }
@keyframes kqm-tv-victory-particles { to { background-position: 7% 10%, 17% -55%, 31% -8%; } }
@keyframes kqm-tv-final-intro { from { opacity: 0; transform: scale(.88); } to { opacity: 1; transform: none; } }

@media (max-width: 980px) {
  .kqm-stage { grid-template-columns: minmax(145px, 21%) minmax(360px, 1fr) minmax(145px, 19%); }
  .kqm-content { padding-right: 24px; }
  .kqm-question-frame { width: calc(100% + 22px); margin-right: -11px; margin-left: -11px; }
  .kqm-ladder { position: relative; top: auto; right: auto; width: auto; max-height: none; overflow: visible; }
}

@media (max-width: 720px) and (orientation: portrait) {
  .kqm-game { min-height: 760px; }
  .kqm-topbar { grid-template-columns: 1fr auto auto; min-height: 55px; padding: 6px 9px; }
  .kqm-brand strong { display: none; }
  .kqm-brand > img { width: 37px; height: 37px; }
  .kqm-question-counter { min-width: 78px; padding: 4px 8px; }
  .kqm-stage,
  .kqm-game.is-immersive .kqm-stage { grid-template-columns: 1fr; grid-template-rows: 122px minmax(0, 1fr) 58px; min-height: 620px; }
  .kqm-game.is-immersive .kqm-stage { min-height: 0; }
  .kqm-game.is-immersive.is-audience-visible .kqm-stage { grid-template-rows: 103px minmax(0, 1fr) 0; }
  .kqm-presenter { grid-row: 1; display: grid; grid-template-columns: 82px minmax(0, 1fr); align-items: end; justify-items: center; overflow: hidden; }
  .kqm-presenter-orbit { top: 4px; left: 42px; width: 80px; transform: none; }
  .kqm-presenter-light { display: none; }
  .kqm-presenter img { grid-column: 1; width: 104px; height: 120px; max-height: none; object-position: center bottom; }
  .kqm-presenter figcaption { position: relative; right: auto; bottom: auto; left: auto; grid-column: 2; align-self: center; width: calc(100% - 8px); min-height: 66px; padding: 9px 10px 9px 13px; }
  .kqm-presenter figcaption span { min-height: 2.7em; font-size: .62rem; }
  .kqm-content,
  .kqm-game.is-immersive .kqm-content { grid-row: 2; padding: 8px 10px 12px; overflow: auto; }
  .kqm-question-meta { grid-template-columns: 1fr auto; margin-bottom: 7px; }
  .kqm-question-meta > b { grid-column: 1 / -1; grid-row: 1; }
  .kqm-question-meta > span,
  .kqm-question-meta > strong { grid-row: 2; }
  .kqm-question-frame { grid-template-columns: 14px minmax(0, 1fr) 14px; width: calc(100% + 10px); margin: 0 -5px 10px; }
  .kqm-question-frame::before { right: 12px; left: 12px; }
  .kqm-question-frame > i { width: 12px; }
  .kqm-question h2 { min-height: 70px; padding: 12px 14px; font-size: clamp(.88rem, 4.3vw, 1.12rem); }
  .kqm-answers { grid-template-columns: 1fr; gap: 6px; }
  .kqm-answer { min-height: 48px; padding: 7px 14px; }
  .kqm-answer > span { font-size: .69rem; }
  .kqm-ladder,
  .kqm-game.is-immersive .kqm-ladder { position: relative; top: auto; bottom: auto; grid-row: 3; width: 100%; height: 58px; padding: 5px 6px; overflow-x: auto; overflow-y: hidden; background: rgba(1, 3, 13, .9); }
  .kqm-ladder header { display: none; }
  .kqm-ladder ol { display: flex; width: max-content; min-width: 100%; gap: 2px; margin: 0; }
  .kqm-ladder li { grid-template-columns: 1fr; grid-template-rows: auto auto; justify-items: center; width: 49px; min-height: 45px; padding: 3px 2px; font-size: .48rem; }
  .kqm-ladder li strong { justify-self: center; white-space: nowrap; }
  .kqm-controls { min-height: 70px; gap: 10px; padding: 6px 7px max(7px, env(safe-area-inset-bottom)); }
  .kqm-lifelines { gap: 7px; }
  .kqm-lifelines button { width: 54px; min-width: 54px; height: 52px; min-height: 52px; }
  .kqm-lifelines button > span { width: 39px; height: 31px; }
  .kqm-lifelines button small { font-size: .37rem; }
  .kqm-quit { min-width: 94px; }
  .kqm-game[data-screen="menu"] .kqm-stage { grid-template-rows: 1fr; min-height: 680px; }
  .kqm-game[data-screen="menu"] .kqm-presenter { top: auto; right: auto; bottom: 0; left: 4px; width: 108px; height: 170px; opacity: .72; }
  .kqm-game[data-screen="menu"] .kqm-content { align-items: start; padding: 12px 14px max(24px, env(safe-area-inset-bottom)); overflow-y: auto; }
  .kqm-game[data-screen="menu"] .kqm-screen { width: 100%; max-width: none; }
  .kqm-game[data-screen="menu"] .kqm-welcome { align-content: start; width: 100%; }
  .kqm-game[data-screen="menu"] .kqm-menu-emblem { width: clamp(150px, 20dvh, 195px); margin-bottom: 7px; }
  .kqm-game[data-screen="menu"] .kqm-welcome h2 { max-width: 13ch; margin: 7px 0 9px; font-size: clamp(2.15rem, 10vw, 3.15rem); }
  .kqm-game[data-screen="menu"] .kqm-menu-promise { gap: 8px; margin-bottom: 14px !important; font-size: clamp(.58rem, 2.6vw, .74rem) !important; }
  .kqm-game[data-screen="menu"] .kqm-theme-panel { width: 100%; margin-bottom: 16px; }
  .kqm-game[data-screen="menu"] .kqm-theme-heading { align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 10px; text-align: left; }
  .kqm-game[data-screen="menu"] .kqm-theme-heading small { font-size: .55rem; }
  .kqm-game[data-screen="menu"] .kqm-theme-heading h3 { font-size: .94rem; }
  .kqm-game[data-screen="menu"] .kqm-theme-heading button { min-height: 40px; padding: 0 14px; font-size: .63rem; }
  .kqm-game[data-screen="menu"] .kqm-theme-selector { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; max-height: none; overflow: visible; padding: 3px; }
  .kqm-game[data-screen="menu"] .kqm-theme-selector label { min-width: 0; }
  .kqm-game[data-screen="menu"] .kqm-theme-selector span { width: 100%; min-width: 0; min-height: 68px; padding: 10px 12px; font-size: clamp(.67rem, 3vw, .82rem); line-height: 1.2; }
  .kqm-game[data-screen="menu"] .kqm-theme-mode { margin-top: 10px; }
  .kqm-game[data-screen="menu"] .kqm-theme-mode strong { font-size: .62rem; }
  .kqm-game[data-screen="menu"] .kqm-theme-mode span { font-size: .58rem; }
  .kqm-game[data-screen="menu"] .kqm-menu-actions { display: grid; width: 100%; gap: 10px; }
  .kqm-game[data-screen="menu"] .kqm-play-button,
  .kqm-game[data-screen="menu"] .kqm-menu-actions .kqm-secondary { width: 100%; min-width: 0; min-height: 66px; font-size: .82rem; }
  .kqm-game[data-screen="finish"] .kqm-stage { grid-template-columns: 1fr; grid-template-rows: 112px 1fr; }
  .kqm-game[data-screen="finish"] .kqm-presenter { display: grid; }
  .kqm-answer-confirmation { align-items: end; padding: 10px 8px max(16px, env(safe-area-inset-bottom)); }
  .kqm-answer-confirmation > div { padding: 13px 8px; }
  .kqm-answer-confirmation h2 { font-size: 1.6rem; }
}

@media (max-height: 540px) and (orientation: landscape) {
  .kqm-stage { grid-template-columns: 145px minmax(0, 1fr) minmax(145px, 19%); }
  .kqm-presenter img { width: 132%; max-height: 96%; }
  .kqm-game[data-screen="menu"] .kqm-presenter { top: auto; right: auto; bottom: 0; left: 8px; width: 150px; height: 230px; opacity: .8; }
}

@media (max-height: 560px) and (orientation: landscape) {
  .kqm-topbar { min-height: 47px; padding: 4px 10px; }
  .kqm-brand > img { width: 35px; height: 35px; }
  .kqm-stage,
  .kqm-game.is-immersive .kqm-stage { grid-template-columns: 122px minmax(0, 1fr) 125px; grid-template-rows: minmax(0, 1fr); min-height: 0; }
  .kqm-presenter img { width: 142px; max-height: 82%; }
  .kqm-presenter figcaption { right: -12px; bottom: 5px; left: 5px; padding: 6px 7px 6px 9px; }
  .kqm-presenter figcaption small { display: none; }
  .kqm-presenter figcaption span { min-height: 2.4em; font-size: .47rem; }
  .kqm-content,
  .kqm-game.is-immersive .kqm-content { padding: 5px 10px; }
  .kqm-question-meta { margin-bottom: 4px; font-size: .44rem; }
  .kqm-question-frame { margin-bottom: 5px; }
  .kqm-question h2 { min-height: 54px; padding: 7px 15px; font-size: .82rem; }
  .kqm-answers { gap: 5px 7px; }
  .kqm-answer { min-height: 36px; padding: 4px 12px; }
  .kqm-answer > b { width: 22px; height: 22px; font-size: .55rem; }
  .kqm-answer > span { font-size: .57rem; }
  .kqm-ladder,
  .kqm-game.is-immersive .kqm-ladder { top: auto; bottom: auto; padding: 3px 5px; }
  .kqm-ladder header { display: none; }
  .kqm-ladder ol { margin: 0; }
  .kqm-ladder li { min-height: 19px; font-size: .43rem; }
  .kqm-controls { min-height: 51px; padding: 3px 9px max(3px, env(safe-area-inset-bottom)); }
  .kqm-lifelines button { width: 55px; min-width: 55px; height: 45px; min-height: 45px; }
  .kqm-lifelines button > span { width: 35px; height: 27px; font-size: .5rem; }
  .kqm-lifelines button small { font-size: .35rem; }
  .kqm-quit { min-width: 105px; min-height: 34px; }
  .kqm-game[data-screen="menu"] .kqm-stage { min-height: 0; }
  .kqm-game[data-screen="menu"] .kqm-content { align-items: start; padding: 7px 18px 16px; overflow-y: auto; }
  .kqm-game[data-screen="menu"] .kqm-screen { width: 100%; max-width: none; }
  .kqm-game[data-screen="menu"] .kqm-welcome { width: 100%; }
  .kqm-game[data-screen="menu"] .kqm-menu-emblem { width: clamp(84px, 19dvh, 112px); margin-bottom: 2px; }
  .kqm-welcome .kqm-eyebrow { display: none; }
  .kqm-game[data-screen="menu"] .kqm-welcome h2 { margin: 2px 0 4px; font-size: clamp(1.45rem, 5.5dvh, 2rem); }
  .kqm-game[data-screen="menu"] .kqm-menu-promise { margin-bottom: 7px !important; font-size: .48rem !important; }
  .kqm-game[data-screen="menu"] .kqm-theme-panel { width: min(96vw, 1120px); margin-bottom: 8px; }
  .kqm-game[data-screen="menu"] .kqm-theme-heading { margin-bottom: 5px; }
  .kqm-game[data-screen="menu"] .kqm-theme-heading h3 { font-size: .72rem; }
  .kqm-game[data-screen="menu"] .kqm-theme-heading button { min-height: 31px; }
  .kqm-game[data-screen="menu"] .kqm-theme-selector { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; max-height: none; padding: 2px; overflow: visible; }
  .kqm-game[data-screen="menu"] .kqm-theme-selector label { min-width: 0; }
  .kqm-game[data-screen="menu"] .kqm-theme-selector span { width: 100%; min-width: 0; min-height: clamp(40px, 9dvh, 52px); padding: 5px 9px; font-size: clamp(.5rem, 1.7vw, .66rem); }
  .kqm-game[data-screen="menu"] .kqm-theme-mode { display: flex; margin-top: 5px; }
  .kqm-game[data-screen="menu"] .kqm-theme-mode strong,
  .kqm-game[data-screen="menu"] .kqm-theme-mode span { font-size: .46rem; }
  .kqm-game[data-screen="menu"] .kqm-menu-actions { display: grid; grid-template-columns: 1.35fr 1fr; width: min(88vw, 760px); gap: 10px; }
  .kqm-game[data-screen="menu"] .kqm-play-button,
  .kqm-game[data-screen="menu"] .kqm-menu-actions .kqm-secondary { width: 100%; min-width: 0; min-height: 48px; font-size: .63rem; }
  .kqm-answer-confirmation { padding: 6px 140px 8px; }
  .kqm-answer-confirmation > div { padding: 8px 12px; }
  .kqm-answer-confirmation h2 { font-size: 1.45rem; }
}

/* General is the main game. Theme packs remain an optional, separate stage. */
.kqm-theme-close,
.kqm-theme-dialog-heading { display: none; }
.kqm-theme-panel:not(.is-open) { width: min(82vw, 1320px) !important; padding: clamp(10px, 1.15dvh, 16px) clamp(16px, 1.5vw, 30px); border-top: 1px solid rgba(143, 190, 255, .26); border-bottom: 1px solid rgba(245, 200, 91, .22); background: linear-gradient(90deg, transparent, rgba(7, 15, 47, .8) 10% 90%, transparent); }
.kqm-theme-panel:not(.is-open) .kqm-theme-selector { display: none !important; }
.kqm-mode-overview { display: grid; width: min(100%, 1060px); margin: auto; gap: 8px; }
.kqm-general-choice { position: relative; display: grid; grid-template-columns: auto 1fr auto; grid-template-rows: auto auto; align-items: center; column-gap: 14px; min-height: 70px; padding: 11px 18px; overflow: hidden; border: 1px solid rgba(132, 186, 255, .52); border-radius: 6px; background: linear-gradient(110deg, rgba(10, 31, 92, .96), rgba(20, 54, 133, .88) 62%, rgba(8, 19, 59, .96)); color: #fff; text-align: left; box-shadow: inset 0 0 24px rgba(91, 151, 255, .12), 0 9px 28px rgba(0, 0, 0, .22); transition: transform var(--kqm-fast), border-color var(--kqm-fast), box-shadow var(--kqm-fast); }
.kqm-general-choice::before { position: absolute; inset: 0 auto 0 0; width: 5px; content: ""; background: linear-gradient(#76baff, #e7f4ff, #5d87ff); box-shadow: 0 0 16px rgba(95, 162, 255, .82); }
.kqm-general-choice:hover { transform: translateY(-2px); border-color: #9dcdff; box-shadow: inset 0 0 30px rgba(91, 151, 255, .2), 0 12px 34px rgba(0, 0, 0, .28); }
.kqm-general-choice.is-active { border-color: #f5c85b; box-shadow: inset 0 0 30px rgba(91, 151, 255, .16), 0 0 0 2px rgba(245, 200, 91, .11), 0 10px 30px rgba(0, 0, 0, .25); }
.kqm-general-choice .kqm-mode-badge { grid-row: 1 / 3; padding: 6px 9px; border: 1px solid rgba(189, 220, 255, .38); border-radius: 4px; color: #a9d2ff; font-size: clamp(.48rem, .5vw, .66rem); font-weight: 900; letter-spacing: .1em; white-space: nowrap; }
.kqm-general-choice > strong { align-self: end; font-size: clamp(.82rem, .88vw, 1.16rem); letter-spacing: .06em; text-transform: uppercase; }
.kqm-general-choice > small { align-self: start; color: rgba(239, 246, 255, .68); font-size: clamp(.54rem, .56vw, .74rem); line-height: 1.35; }
.kqm-general-choice > em { grid-column: 3; grid-row: 1 / 3; padding: 7px 10px; border: 1px solid rgba(245, 200, 91, .46); border-radius: 999px; color: var(--kqm-gold); font-size: clamp(.48rem, .5vw, .66rem); font-style: normal; font-weight: 900; letter-spacing: .06em; text-transform: uppercase; white-space: nowrap; }
.kqm-theme-bonus { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 18px; min-height: 66px; padding: 8px 10px 8px 18px; border: 1px solid rgba(245, 200, 91, .22); border-radius: 6px; background: linear-gradient(110deg, rgba(25, 18, 55, .82), rgba(15, 18, 49, .9)); text-align: left; }
.kqm-theme-bonus-copy { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 2px 9px; min-width: 0; }
.kqm-theme-bonus-copy .kqm-mode-badge { grid-row: 1 / 3; padding: 5px 8px; border: 1px solid rgba(245, 200, 91, .35); border-radius: 4px; color: var(--kqm-gold); font-size: clamp(.45rem, .46vw, .61rem); font-weight: 900; letter-spacing: .09em; white-space: nowrap; }
.kqm-theme-bonus-copy strong { font-size: clamp(.68rem, .7vw, .92rem); letter-spacing: .04em; text-transform: uppercase; }
.kqm-theme-bonus-copy p { margin: 0 !important; color: rgba(239, 240, 251, .58) !important; font-size: clamp(.5rem, .52vw, .68rem) !important; line-height: 1.3; }
#kqmThemeOpen { position: relative; display: grid; grid-template-columns: auto auto; grid-template-rows: auto auto; align-items: center; column-gap: 9px; min-width: clamp(230px, 18vw, 320px); min-height: 50px; padding: 7px 16px; overflow: hidden; border: 2px solid #ffd65e; border-radius: 5px; background: linear-gradient(135deg, #9b650f, #e1a62c 46%, #74500f); color: #160e00; box-shadow: 0 0 0 3px rgba(255, 208, 73, .08), 0 0 22px rgba(255, 191, 49, .25); text-align: left; animation: kqm-theme-callout 1.8s ease-in-out infinite alternate; }
#kqmThemeOpen::after { position: absolute; top: -40%; left: -35%; width: 24%; height: 180%; content: ""; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .7), transparent); transform: skewX(-18deg); animation: kqm-theme-shine 3.2s ease-in-out infinite; }
#kqmThemeOpen > span { grid-row: 1 / 3; color: #fff1a8; font-size: 1.25rem; text-shadow: 0 2px 6px rgba(58, 30, 0, .76); }
#kqmThemeOpen > strong { font-size: clamp(.67rem, .7vw, .92rem); letter-spacing: .07em; text-transform: uppercase; }
#kqmThemeOpen > small { color: rgba(30, 17, 0, .75); font-size: .5rem; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; }
#kqmThemeOpen:hover { filter: brightness(1.12); transform: translateY(-2px) scale(1.01); }
.kqm-theme-panel:not(.is-open) .kqm-theme-mode { margin-top: 6px !important; }
.kqm-theme-panel:not(.is-open) .kqm-theme-mode strong { color: #a9d2ff; }
.kqm-theme-panel.is-open { position: fixed; z-index: 60; inset: 0; box-sizing: border-box; display: grid !important; grid-template-rows: auto minmax(0, 1fr) auto; align-content: start !important; width: 100vw !important; max-width: none !important; height: 100dvh; height: 100svh; margin: 0 !important; padding: max(10px, env(safe-area-inset-top)) clamp(22px, 4vw, 72px) max(12px, env(safe-area-inset-bottom)); overflow: hidden; border: 0; background: radial-gradient(circle at 50% 12%, rgba(45, 96, 212, .52), transparent 34%), radial-gradient(circle at 50% 100%, rgba(91, 36, 153, .34), transparent 42%), #020511; text-align: center; animation: kqm-theme-dialog-in .35s var(--kqm-ease) both; }
.kqm-theme-panel.is-open::before { position: absolute; inset: 0; content: ""; pointer-events: none; background: repeating-radial-gradient(ellipse at 50% 60%, transparent 0 62px, rgba(109, 160, 244, .09) 63px 64px, transparent 65px 108px); mask-image: linear-gradient(to bottom, transparent, #000 30% 82%, transparent); }
.kqm-theme-panel.is-open > * { position: relative; z-index: 1; }
.kqm-theme-panel.is-open .kqm-theme-close { position: fixed; z-index: 3; top: max(16px, env(safe-area-inset-top)); right: max(18px, env(safe-area-inset-right)); display: grid; width: 52px; height: 52px; place-items: center; border: 1px solid rgba(171, 210, 255, .5); border-radius: 50%; background: rgba(4, 11, 38, .9); color: #fff; font-size: 1.65rem; }
.kqm-theme-panel.is-open .kqm-mode-overview { display: none; }
.kqm-theme-panel.is-open .kqm-theme-dialog-heading { display: grid; grid-template-columns: 1fr auto; align-items: center; width: min(92vw, 1500px); margin: 0 auto clamp(8px, 1.2dvh, 16px); gap: 18px; text-align: left; }
.kqm-theme-dialog-heading small { color: var(--kqm-gold); font-size: clamp(.66rem, .7vw, .94rem); font-weight: 900; letter-spacing: .16em; }
.kqm-theme-dialog-heading h3 { margin: 2px 0 4px; font-size: clamp(1.8rem, 3vw, 4rem); letter-spacing: .02em; text-transform: uppercase; }
.kqm-theme-dialog-heading p { margin: 0 !important; color: rgba(238, 243, 255, .64) !important; font-size: clamp(.65rem, .72vw, .95rem) !important; }
#kqmThemeGeneral { min-height: 48px; padding: 8px 17px; border: 1px solid rgba(245, 200, 91, .56); border-radius: 5px; background: rgba(10, 20, 58, .82); color: var(--kqm-gold); font-size: clamp(.61rem, .65vw, .86rem); font-weight: 900; letter-spacing: .05em; text-transform: uppercase; }
#kqmThemeGeneral:hover { background: rgba(245, 200, 91, .14); }
.kqm-theme-panel.is-open .kqm-theme-selector { display: grid !important; grid-template-columns: repeat(3, minmax(0, 1fr)) !important; align-content: start; width: min(92vw, 1580px); max-width: none !important; min-height: 0; max-height: 100% !important; margin: 0 auto; gap: clamp(10px, 1.15vw, 18px) !important; padding: 6px 10px 22px !important; overflow-x: hidden !important; overflow-y: auto !important; overscroll-behavior: contain; scrollbar-gutter: stable; -webkit-overflow-scrolling: touch; }
.kqm-theme-panel.is-open .kqm-theme-selector label { min-width: 0; }
.kqm-theme-panel.is-open .kqm-theme-selector span { width: 100% !important; min-width: 0 !important; min-height: clamp(72px, 8.5dvh, 104px) !important; padding: 14px 20px !important; font-size: clamp(.9rem, 1.02vw, 1.35rem) !important; line-height: 1.25; }
.kqm-theme-panel.is-open .kqm-theme-mode { align-self: end; margin-top: clamp(7px, 1dvh, 14px) !important; }
.kqm-theme-panel.is-open .kqm-theme-mode strong { font-size: clamp(.78rem, .82vw, 1.12rem) !important; }
.kqm-theme-panel.is-open .kqm-theme-mode span { font-size: clamp(.7rem, .74vw, 1rem) !important; }
.kqm-abandon-confirmation button { max-width: min(90vw, 430px); padding: 12px 24px; white-space: normal; line-height: 1.25; }

@media (max-width: 720px) {
  .kqm-theme-panel:not(.is-open) { width: 100% !important; padding: 9px 7px; }
  .kqm-mode-overview { gap: 6px; }
  .kqm-general-choice { grid-template-columns: 1fr auto; min-height: 62px; padding: 8px 10px 8px 14px; column-gap: 8px; }
  .kqm-general-choice .kqm-mode-badge { display: none; }
  .kqm-general-choice > strong { grid-column: 1; font-size: clamp(.68rem, 3.1vw, .84rem); }
  .kqm-general-choice > small { grid-column: 1; font-size: clamp(.49rem, 2.25vw, .62rem); }
  .kqm-general-choice > em { grid-column: 2; padding: 6px 8px; font-size: .47rem; }
  .kqm-theme-bonus { grid-template-columns: minmax(0, 1fr) auto; min-height: 62px; gap: 7px; padding: 7px 7px 7px 11px; }
  .kqm-theme-bonus-copy { display: block; }
  .kqm-theme-bonus-copy .kqm-mode-badge { display: inline-block; margin-bottom: 3px; font-size: .43rem; }
  .kqm-theme-bonus-copy strong { display: block; font-size: clamp(.57rem, 2.55vw, .7rem); }
  .kqm-theme-bonus-copy p { display: none; }
  #kqmThemeOpen { min-width: 145px; min-height: 51px; padding: 6px 9px; column-gap: 6px; }
  #kqmThemeOpen > span { font-size: 1rem; }
  #kqmThemeOpen > strong { font-size: clamp(.53rem, 2.35vw, .66rem); }
  #kqmThemeOpen > small { font-size: .42rem; }
  .kqm-theme-panel:not(.is-open) .kqm-theme-mode { display: none; }
  .kqm-theme-panel.is-open { padding: max(8px, env(safe-area-inset-top)) 10px max(10px, env(safe-area-inset-bottom)); }
  .kqm-theme-panel.is-open .kqm-theme-close { top: max(10px, env(safe-area-inset-top)); right: max(10px, env(safe-area-inset-right)); width: 44px; height: 44px; font-size: 1.35rem; }
  .kqm-theme-panel.is-open .kqm-theme-dialog-heading { grid-template-columns: 1fr; justify-items: center; gap: 8px; padding: 0 44px; text-align: center; }
  .kqm-theme-dialog-heading h3 { font-size: clamp(1.35rem, 6vw, 2rem); }
  .kqm-theme-dialog-heading p { font-size: clamp(.57rem, 2.7vw, .7rem) !important; }
  #kqmThemeGeneral { min-height: 40px; padding: 7px 11px; font-size: .57rem; }
  .kqm-theme-panel.is-open .kqm-theme-selector { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 8px !important; padding-bottom: 18px !important; }
  .kqm-theme-panel.is-open .kqm-theme-selector span { min-height: 62px !important; padding: 9px 10px !important; font-size: clamp(.65rem, 3vw, .82rem) !important; }
  .kqm-abandon-confirmation > div > div { display: grid; width: min(94vw, 430px); }
  .kqm-abandon-confirmation button { width: 100%; max-width: none; min-height: 54px; }
}

@media (max-width: 720px) and (max-height: 740px) and (orientation: portrait) {
  .kqm-game[data-screen="menu"] .kqm-stage { min-height: 0; }
  .kqm-game[data-screen="menu"] .kqm-content { padding: 4px 12px 8px; }
  .kqm-game[data-screen="menu"] .kqm-menu-emblem { width: 105px; margin-bottom: 2px; }
  .kqm-game[data-screen="menu"] .kqm-welcome h2 { max-width: 15ch; margin: 3px 0 5px; font-size: 1.62rem; }
  .kqm-game[data-screen="menu"] .kqm-menu-promise { margin-bottom: 7px !important; font-size: .51rem !important; }
  .kqm-game[data-screen="menu"] .kqm-theme-panel { margin-bottom: 7px; padding-block: 6px; }
  .kqm-general-choice,
  .kqm-theme-bonus { min-height: 52px; }
  .kqm-general-choice { padding-block: 6px; }
  .kqm-game[data-screen="menu"] .kqm-menu-actions { grid-template-columns: 1.2fr 1fr; gap: 8px; }
  .kqm-game[data-screen="menu"] .kqm-play-button,
  .kqm-game[data-screen="menu"] .kqm-menu-actions .kqm-secondary { min-height: 54px; font-size: .65rem; }
}

@media (max-height: 560px) and (orientation: landscape) {
  .kqm-theme-panel:not(.is-open) { width: min(88vw, 860px) !important; padding: 6px 14px; }
  .kqm-mode-overview { grid-template-columns: 1fr 1.15fr; gap: 7px; }
  .kqm-general-choice,
  .kqm-theme-bonus { min-height: 50px; }
  .kqm-general-choice { padding-block: 5px; }
  .kqm-theme-bonus-copy p,
  .kqm-theme-panel:not(.is-open) .kqm-theme-mode { display: none; }
  #kqmThemeOpen { min-width: 185px; min-height: 44px; }
  .kqm-theme-panel.is-open { padding: 6px 58px 8px; }
  .kqm-theme-panel.is-open .kqm-theme-close { top: 9px; right: 10px; width: 40px; height: 40px; }
  .kqm-theme-panel.is-open .kqm-theme-dialog-heading { grid-template-columns: 1fr auto; margin-bottom: 7px; padding: 0; text-align: left; }
  .kqm-theme-dialog-heading h3 { font-size: clamp(1.15rem, 5dvh, 1.7rem); }
  .kqm-theme-dialog-heading small,
  .kqm-theme-dialog-heading p { display: none; }
  .kqm-theme-panel.is-open .kqm-theme-selector { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; gap: 7px !important; }
  .kqm-theme-panel.is-open .kqm-theme-selector span { min-height: clamp(38px, 10dvh, 54px) !important; padding: 5px 9px !important; font-size: clamp(.53rem, 1.7vw, .7rem) !important; }
  .kqm-theme-panel.is-open .kqm-theme-mode { margin-top: 7px !important; }
}

@keyframes kqm-theme-dialog-in { from { opacity: 0; transform: scale(.97); } to { opacity: 1; transform: none; } }
@keyframes kqm-theme-callout { to { box-shadow: 0 0 0 5px rgba(255, 208, 73, .15), 0 0 44px rgba(255, 191, 49, .58); } }
@keyframes kqm-theme-shine { 0%, 55% { left: -35%; } 100% { left: 125%; } }
@keyframes kqm-gold-sweep { to { transform: translateX(8%); opacity: .62; } }

.kqm-game[data-screen="menu"] .kqm-beam { top: -38%; width: 24%; height: 138%; opacity: .34; filter: blur(9px); }
.kqm-game[data-screen="menu"] .kqm-beam-a { animation: kqm-projector-a 6.5s ease-in-out infinite alternate; }
.kqm-game[data-screen="menu"] .kqm-beam-b { animation: kqm-projector-b 8s ease-in-out -2s infinite alternate; }
.kqm-game[data-screen="menu"] .kqm-beam-c { animation: kqm-projector-c 7.2s ease-in-out -4s infinite alternate; }
.kqm-game[data-screen="menu"] .kqm-studio-rings { animation: kqm-menu-breathe 6s ease-in-out infinite alternate; }
@keyframes kqm-projector-a { from { transform: rotate(25deg) translateX(-8%); } to { transform: rotate(4deg) translateX(12%); opacity: .2; } }
@keyframes kqm-projector-b { from { transform: rotate(-9deg) translateX(-12%); } to { transform: rotate(13deg) translateX(11%); opacity: .25; } }
@keyframes kqm-projector-c { from { transform: rotate(-24deg) translateX(7%); } to { transform: rotate(-3deg) translateX(-13%); opacity: .21; } }
@keyframes kqm-menu-breathe { to { opacity: .76; transform: translate(-50%, -50%) scale(1.07); } }

/* iOS needs larger visual and touch targets than the Android WebView. */
html.app-ios .kqm-game {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

@media (max-width: 720px) and (orientation: portrait) {
  html.app-ios .kqm-game.is-immersive {
    width: 100%;
    height: 100dvh;
    max-height: 100dvh;
  }
  html.app-ios .kqm-game.is-immersive .kqm-topbar {
    min-height: 62px;
    padding: max(7px, env(safe-area-inset-top)) max(12px, env(safe-area-inset-right)) 7px max(12px, env(safe-area-inset-left));
  }
  html.app-ios .kqm-game.is-immersive .kqm-brand > img { width: 42px; height: 42px; }
  html.app-ios .kqm-game.is-immersive .kqm-question-counter { min-width: 88px; padding: 5px 10px; }
  html.app-ios .kqm-game.is-immersive .kqm-question-counter small { font-size: .5rem; }
  html.app-ios .kqm-game.is-immersive .kqm-question-counter strong { font-size: .8rem; }
  html.app-ios .kqm-game.is-immersive .kqm-top-actions button { width: 40px; height: 40px; font-size: .88rem; }
  html.app-ios .kqm-game.is-immersive .kqm-stage { grid-template-rows: 128px minmax(0, 1fr) 62px; }
  html.app-ios .kqm-game.is-immersive.is-audience-visible .kqm-stage { grid-template-rows: 128px minmax(0, 1fr) 0; }
  html.app-ios .kqm-game.is-immersive .kqm-content { overflow-x: hidden; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
  html.app-ios .kqm-game.is-immersive .kqm-content::-webkit-scrollbar { display: none; }
  html.app-ios .kqm-game.is-immersive .kqm-presenter { grid-template-columns: 110px minmax(0, 1fr); }
  html.app-ios .kqm-game.is-immersive .kqm-presenter-orbit { left: 55px; width: 104px; }
  html.app-ios .kqm-game.is-immersive .kqm-presenter img { width: 110px; height: 128px; }
  html.app-ios .kqm-game.is-immersive .kqm-presenter figcaption { width: calc(100% - 5px); min-height: 74px; padding: 10px 12px 10px 15px; }
  html.app-ios .kqm-game.is-immersive .kqm-presenter figcaption small { font-size: .47rem; }
  html.app-ios .kqm-game.is-immersive .kqm-presenter figcaption span { min-height: 2.7em; font-size: .7rem; line-height: 1.35; }
  html.app-ios .kqm-game.is-immersive .kqm-content { padding: 10px 12px 14px; }
  html.app-ios .kqm-game.is-immersive .kqm-question-meta { margin-bottom: 9px; font-size: .56rem; }
  html.app-ios .kqm-game.is-immersive .kqm-question-meta > b { font-size: .57rem; }
  html.app-ios .kqm-game.is-immersive .kqm-question-meta strong { font-size: .68rem; }
  html.app-ios .kqm-game.is-immersive .kqm-question-frame { margin-bottom: 12px; }
  html.app-ios .kqm-game.is-immersive .kqm-question h2 { min-height: 80px; padding: 14px 16px; font-size: clamp(1rem, 4.8vw, 1.24rem); line-height: 1.28; }
  html.app-ios .kqm-game.is-immersive .kqm-answers { gap: 7px; }
  html.app-ios .kqm-game.is-immersive .kqm-answer { grid-template-columns: 32px minmax(0, 1fr); gap: 9px; min-height: 54px; padding: 8px 15px; }
  html.app-ios .kqm-game.is-immersive .kqm-answer > b { width: 30px; height: 30px; font-size: .68rem; }
  html.app-ios .kqm-game.is-immersive .kqm-answer > span { font-size: clamp(.75rem, 3.35vw, .88rem); line-height: 1.28; }
  html.app-ios .kqm-game.is-immersive .kqm-ladder { height: 62px; padding: 6px 7px; }
  html.app-ios .kqm-game.is-immersive .kqm-ladder li { width: 53px; min-height: 49px; font-size: .52rem; }
  html.app-ios .kqm-game.is-immersive .kqm-controls { min-height: 82px; gap: 12px; padding: 7px max(9px, env(safe-area-inset-right)) max(9px, env(safe-area-inset-bottom)) max(9px, env(safe-area-inset-left)); }
  html.app-ios .kqm-game.is-immersive .kqm-lifelines { gap: 8px; }
  html.app-ios .kqm-game.is-immersive .kqm-lifelines button { width: 60px; min-width: 60px; height: 58px; min-height: 58px; }
  html.app-ios .kqm-game.is-immersive .kqm-lifelines button > span { width: 43px; height: 34px; font-size: .62rem; }
  html.app-ios .kqm-game.is-immersive .kqm-lifelines button small { font-size: .4rem; }
  html.app-ios .kqm-game.is-immersive .kqm-quit { min-width: 125px; min-height: 48px; }
  html.app-ios .kqm-game.is-immersive .kqm-quit small { font-size: .47rem; }
  html.app-ios .kqm-game.is-immersive .kqm-quit strong { font-size: .58rem; }

  html.app-ios .kqm-game.is-immersive[data-screen="menu"] .kqm-content { padding: 10px 16px max(24px, env(safe-area-inset-bottom)); }
  html.app-ios .kqm-game.is-immersive[data-screen="menu"] .kqm-stage { grid-template-rows: minmax(0, 1fr); }
  html.app-ios .kqm-game.is-immersive[data-screen="menu"] .kqm-menu-emblem { width: clamp(162px, 20dvh, 205px); }
  html.app-ios .kqm-game.is-immersive[data-screen="menu"] .kqm-eyebrow { font-size: .62rem; }
  html.app-ios .kqm-game.is-immersive[data-screen="menu"] .kqm-welcome h2 { margin: 8px 0 10px; font-size: clamp(2.3rem, 10.5vw, 3.25rem); }
  html.app-ios .kqm-game.is-immersive[data-screen="menu"] .kqm-menu-promise { font-size: clamp(.64rem, 2.8vw, .78rem) !important; }
  html.app-ios .kqm-game.is-immersive[data-screen="menu"] .kqm-theme-panel { margin-bottom: 14px; }
  html.app-ios .kqm-game.is-immersive .kqm-general-choice,
  html.app-ios .kqm-game.is-immersive .kqm-theme-bonus { min-height: 68px; }
  html.app-ios .kqm-game.is-immersive .kqm-general-choice > strong { font-size: clamp(.75rem, 3.3vw, .9rem); }
  html.app-ios .kqm-game.is-immersive .kqm-general-choice > small { font-size: clamp(.54rem, 2.4vw, .65rem); }
  html.app-ios .kqm-game.is-immersive .kqm-theme-bonus-copy strong { font-size: clamp(.64rem, 2.75vw, .75rem); }
  html.app-ios .kqm-game.is-immersive #kqmThemeOpen { min-width: 154px; min-height: 56px; }
  html.app-ios .kqm-game.is-immersive[data-screen="menu"] .kqm-play-button,
  html.app-ios .kqm-game.is-immersive[data-screen="menu"] .kqm-menu-actions .kqm-secondary { min-height: 70px; font-size: .88rem; }

  html.app-ios .kqm-game.is-immersive .kqm-answer-confirmation { align-items: center; padding: max(16px, env(safe-area-inset-top)) 12px max(16px, env(safe-area-inset-bottom)); }
  html.app-ios .kqm-game.is-immersive .kqm-answer-confirmation > div { width: min(94vw, 500px); gap: 12px; padding: 20px 14px; }
  html.app-ios .kqm-game.is-immersive .kqm-answer-confirmation h2 { font-size: clamp(1.9rem, 9vw, 2.7rem); }
  html.app-ios .kqm-game.is-immersive .kqm-answer-confirmation p { font-size: .78rem; }
  html.app-ios .kqm-game.is-immersive .kqm-answer-confirmation button { min-width: 0; min-height: 52px; font-size: .69rem; }
}

@media (max-width: 720px) and (max-height: 740px) and (orientation: portrait) {
  html.app-ios .kqm-game.is-immersive[data-screen="question"] .kqm-stage { grid-template-rows: 108px minmax(0, 1fr) 52px; }
  html.app-ios .kqm-game.is-immersive[data-screen="question"] .kqm-presenter { grid-template-columns: 96px minmax(0, 1fr); }
  html.app-ios .kqm-game.is-immersive[data-screen="question"] .kqm-presenter-orbit { left: 48px; width: 90px; }
  html.app-ios .kqm-game.is-immersive[data-screen="question"] .kqm-presenter img { width: 96px; height: 110px; }
  html.app-ios .kqm-game.is-immersive[data-screen="question"] .kqm-presenter figcaption { min-height: 62px; padding-block: 7px; }
  html.app-ios .kqm-game.is-immersive[data-screen="question"] .kqm-presenter figcaption span { font-size: .62rem; }
  html.app-ios .kqm-game.is-immersive[data-screen="question"] .kqm-content { padding: 6px 10px 8px; }
  html.app-ios .kqm-game.is-immersive[data-screen="question"] .kqm-question-meta { margin-bottom: 5px; }
  html.app-ios .kqm-game.is-immersive[data-screen="question"] .kqm-question-frame { margin-bottom: 7px; }
  html.app-ios .kqm-game.is-immersive[data-screen="question"] .kqm-question h2 { min-height: 65px; padding: 10px 14px; font-size: clamp(.92rem, 4.35vw, 1.08rem); }
  html.app-ios .kqm-game.is-immersive[data-screen="question"] .kqm-answers { gap: 4px; }
  html.app-ios .kqm-game.is-immersive[data-screen="question"] .kqm-answer { min-height: 44px; padding-block: 6px; }
  html.app-ios .kqm-game.is-immersive[data-screen="question"] .kqm-answer > span { font-size: clamp(.7rem, 3.1vw, .82rem); }
  html.app-ios .kqm-game.is-immersive[data-screen="question"] .kqm-ladder { height: 52px; padding-block: 4px; }
  html.app-ios .kqm-game.is-immersive[data-screen="question"] .kqm-ladder li { min-height: 43px; }
  html.app-ios .kqm-game.is-immersive[data-screen="question"] .kqm-controls { min-height: 76px; }
  html.app-ios .kqm-game.is-immersive[data-screen="menu"] .kqm-content { padding-top: 5px; }
  html.app-ios .kqm-game.is-immersive[data-screen="menu"] .kqm-menu-emblem { width: 122px; margin-bottom: 3px; }
  html.app-ios .kqm-game.is-immersive[data-screen="menu"] .kqm-welcome h2 { margin: 4px 0 6px; font-size: 1.82rem; }
  html.app-ios .kqm-game.is-immersive[data-screen="menu"] .kqm-menu-promise { margin-bottom: 8px !important; font-size: .56rem !important; }
  html.app-ios .kqm-game.is-immersive[data-screen="menu"] .kqm-theme-panel { margin-bottom: 8px; }
  html.app-ios .kqm-game.is-immersive .kqm-general-choice,
  html.app-ios .kqm-game.is-immersive .kqm-theme-bonus { min-height: 58px; }
  html.app-ios .kqm-game.is-immersive[data-screen="menu"] .kqm-play-button,
  html.app-ios .kqm-game.is-immersive[data-screen="menu"] .kqm-menu-actions .kqm-secondary { min-height: 60px; font-size: .72rem; }
}

@media (max-height: 560px) and (orientation: landscape) {
  html.app-ios .kqm-game.is-immersive .kqm-topbar { min-height: 50px; padding: max(5px, env(safe-area-inset-top)) max(12px, env(safe-area-inset-right)) 5px max(12px, env(safe-area-inset-left)); }
  html.app-ios .kqm-game.is-immersive .kqm-brand > img { width: 38px; height: 38px; }
  html.app-ios .kqm-game.is-immersive .kqm-stage { grid-template-columns: 145px minmax(0, 1fr) 142px; }
  html.app-ios .kqm-game.is-immersive .kqm-presenter img { width: 158px; }
  html.app-ios .kqm-game.is-immersive .kqm-presenter figcaption span { font-size: .53rem; }
  html.app-ios .kqm-game.is-immersive .kqm-content { padding: 6px 12px; overflow-x: hidden; scrollbar-width: none; }
  html.app-ios .kqm-game.is-immersive .kqm-content::-webkit-scrollbar { display: none; }
  html.app-ios .kqm-game.is-immersive .kqm-question-meta { font-size: .48rem; }
  html.app-ios .kqm-game.is-immersive .kqm-question h2 { min-height: 58px; padding: 8px 17px; font-size: .9rem; }
  html.app-ios .kqm-game.is-immersive .kqm-answer { min-height: 39px; padding: 5px 13px; }
  html.app-ios .kqm-game.is-immersive .kqm-answer > span { font-size: .64rem; }
  html.app-ios .kqm-game.is-immersive .kqm-controls { min-height: 58px; padding-right: max(12px, env(safe-area-inset-right)); padding-left: max(12px, env(safe-area-inset-left)); }
  html.app-ios .kqm-game.is-immersive .kqm-lifelines button { width: 60px; min-width: 60px; height: 49px; min-height: 49px; }
  html.app-ios .kqm-game.is-immersive .kqm-quit { min-width: 145px; min-height: 38px; }
  html.app-ios .kqm-game.is-immersive[data-screen="menu"] .kqm-menu-emblem { width: clamp(92px, 21dvh, 118px); }
  html.app-ios .kqm-game.is-immersive[data-screen="menu"] .kqm-welcome h2 { font-size: clamp(1.55rem, 6dvh, 2.08rem); }
  html.app-ios .kqm-game.is-immersive[data-screen="menu"] .kqm-menu-promise { font-size: .52rem !important; }
  html.app-ios .kqm-game.is-immersive[data-screen="menu"] .kqm-play-button,
  html.app-ios .kqm-game.is-immersive[data-screen="menu"] .kqm-menu-actions .kqm-secondary { min-height: 52px; font-size: .68rem; }
  html.app-ios .kqm-game.is-immersive .kqm-answer-confirmation { padding-right: max(120px, env(safe-area-inset-right)); padding-left: max(120px, env(safe-area-inset-left)); }
}

@media (prefers-reduced-motion: reduce) {
  .kqm-beam,
  .kqm-menu-emblem::before,
  .kqm-menu-emblem::after,
  .kqm-studio-rings,
  #kqmThemeOpen,
  #kqmThemeOpen::after,
  .kqm-answer-confirmation::before,
  .kqm-presenter-orbit i,
  .kqm-intro-emblem,
  .kqm-ladder li.is-current,
  .kqm-game[data-result="victory"] .kqm-finish::before,
  .kqm-game[data-result="victory"] .kqm-finish::after,
  .kqm-final-intro::before,
  .kqm-final-intro::after,
  .kqm-final-intro > div { animation: none !important; }
  .kqm-studio-backdrop,
  .kqm-answer,
  .kqm-presenter img { transition-duration: .01ms !important; }
}
/* Trois actions principales sur le menu officiel. */
@media(min-width:761px){.kqm-game.is-immersive[data-screen="menu"] .kqm-menu-actions{grid-template-columns:minmax(300px,1.35fr) repeat(2,minmax(210px,.8fr))}}
