*{box-sizing:border-box}body{margin:0;background:#10131c;color:#f3f4f8;font:16px system-ui,sans-serif}main{max-width:720px;margin:auto;padding:24px}header span{color:#d5b475;letter-spacing:.18em;font-weight:700}h1{font-size:clamp(2rem,6vw,3rem);margin:.3em 0}section{background:#1b2130;border:1px solid #343e53;border-radius:16px;padding:20px;margin:18px 0}label{display:block;margin:12px 0}select,button{font:inherit;color:inherit;background:#293348;border:1px solid #52627d;border-radius:10px;padding:13px;width:100%;margin-top:7px;min-height:48px}button{cursor:pointer;text-align:left}button:hover:not(:disabled),button:focus-visible{border-color:#e5bf77}button:disabled{opacity:.7;cursor:default}#start,#next{background:#d5b475;color:#111827;font-weight:700;text-align:center}#error{color:#ffb4ab}.muted{color:#b5bfd2;font-size:.85rem}[hidden]{display:none!important}progress{width:100%;accent-color:#d5b475}

/* Locally rendered original vector motifs; no external images. */
#cinema{position:fixed;inset:0;z-index:-1;overflow:hidden;background:#080b14;--accent:#d5b475}body{isolation:isolate;background:#080b14}#cinema .scene{position:absolute;inset:-4%;background-image:var(--scene);background-position:center;background-size:cover;animation:drift 18s ease-in-out infinite alternate}#cinema .atmosphere{position:absolute;inset:0;background:linear-gradient(90deg,rgba(8,11,20,.8),rgba(8,11,20,.35)),radial-gradient(ellipse at 80% 20%,transparent,rgba(8,11,20,.65));}main{max-width:780px}section{background:rgba(17,23,36,.94);box-shadow:0 12px 45px #0006}#motion{width:auto;font-size:.85rem;padding:8px 12px;min-height:36px}#round-progress{height:8px;margin-bottom:12px}body:has(#game:not([hidden])) #game{border-color:var(--game-accent,#52627d)}@keyframes drift{from{transform:scale(1) translateY(0)}to{transform:scale(1.06) translateY(-12px)}}@media(prefers-reduced-motion:reduce){#cinema .scene{animation:none}}.reduce-motion #cinema .scene{animation:none}@media(max-width:480px){main{padding:14px}section{padding:16px}#cinema .scene{background-position:65% center}}
.theme-neutral{--scene:url("themes/neutral.webp");--accent:#a5abc8}
body:has(.theme-neutral){--game-accent:#a5abc8;--scene:url("themes/neutral.webp")}
.theme-shield{--scene:url("themes/shield.webp");--accent:#4b9cf7}
body:has(.theme-shield){--game-accent:#4b9cf7;--scene:url("themes/shield.webp")}
.theme-thunder{--scene:url("themes/thunder.webp");--accent:#a9baff}
body:has(.theme-thunder){--game-accent:#a9baff;--scene:url("themes/thunder.webp")}
.theme-matrix{--scene:url("themes/matrix.webp");--accent:#31f997}
body:has(.theme-matrix){--game-accent:#31f997;--scene:url("themes/matrix.webp")}
.theme-space{--scene:url("themes/space.webp");--accent:#a8c9ff}
body:has(.theme-space){--game-accent:#a8c9ff;--scene:url("themes/space.webp")}
.theme-ring{--scene:url("themes/ring.webp");--accent:#ffb64b}
body:has(.theme-ring){--game-accent:#ffb64b;--scene:url("themes/ring.webp")}
.theme-magic{--scene:url("themes/magic.webp");--accent:#ab91ff}
body:has(.theme-magic){--game-accent:#ab91ff;--scene:url("themes/magic.webp")}
.theme-desert{--scene:url("themes/desert.webp");--accent:#e6aa63}
body:has(.theme-desert){--game-accent:#e6aa63;--scene:url("themes/desert.webp")}
.theme-jungle{--scene:url("themes/jungle.webp");--accent:#73bd85}
body:has(.theme-jungle){--game-accent:#73bd85;--scene:url("themes/jungle.webp")}
.theme-cosmic{--scene:url("themes/cosmic.webp");--accent:#c48bff}
body:has(.theme-cosmic){--game-accent:#c48bff;--scene:url("themes/cosmic.webp")}
.theme-web{--scene:url("themes/web.webp");--accent:#ed6888}
body:has(.theme-web){--game-accent:#ed6888;--scene:url("themes/web.webp")}
.theme-night{--scene:url("themes/night.webp");--accent:#879cb5}
body:has(.theme-night){--game-accent:#879cb5;--scene:url("themes/night.webp")}
.theme-ocean{--scene:url("themes/ocean.webp");--accent:#58b8d8}
body:has(.theme-ocean){--game-accent:#58b8d8;--scene:url("themes/ocean.webp")}
.theme-alien{--scene:url("themes/alien.webp");--accent:#7bbc91}
body:has(.theme-alien){--game-accent:#7bbc91;--scene:url("themes/alien.webp")}
.theme-neon{--scene:url("themes/neon.webp");--accent:#f078dd}
body:has(.theme-neon){--game-accent:#f078dd;--scene:url("themes/neon.webp")}
.theme-western{--scene:url("themes/western.webp");--accent:#e5b477}
body:has(.theme-western){--game-accent:#e5b477;--scene:url("themes/western.webp")}
.theme-ice{--scene:url("themes/ice.webp");--accent:#9ce5ff}
body:has(.theme-ice){--game-accent:#9ce5ff;--scene:url("themes/ice.webp")}
.theme-dragon{--scene:url("themes/dragon.webp");--accent:#ef7557}
body:has(.theme-dragon){--game-accent:#ef7557;--scene:url("themes/dragon.webp")}
.theme-adventure{--scene:url("themes/adventure.webp");--accent:#e5bc78}
body:has(.theme-adventure){--game-accent:#e5bc78;--scene:url("themes/adventure.webp")}
.theme-forest{--scene:url("themes/forest.webp");--accent:#7ac8ac}
body:has(.theme-forest){--game-accent:#7ac8ac;--scene:url("themes/forest.webp")}
.theme-retro{--scene:url("themes/retro.webp");--accent:#ff9a76}
body:has(.theme-retro){--game-accent:#ff9a76;--scene:url("themes/retro.webp")}
.theme-detective{--scene:url("themes/detective.webp");--accent:#a0b8ca}
body:has(.theme-detective){--game-accent:#a0b8ca;--scene:url("themes/detective.webp")}
.theme-arena{--scene:url("themes/arena.webp");--accent:#f38b72}
body:has(.theme-arena){--game-accent:#f38b72;--scene:url("themes/arena.webp")}
.theme-robot{--scene:url("themes/robot.webp");--accent:#83baca}
body:has(.theme-robot){--game-accent:#83baca;--scene:url("themes/robot.webp")}
.theme-noir{--scene:url("themes/noir.webp");--accent:#9eafc3}
body:has(.theme-noir){--game-accent:#9eafc3;--scene:url("themes/noir.webp")}
.theme-stars{--scene:url("themes/stars.webp");--accent:#b0c9ff}
body:has(.theme-stars){--game-accent:#b0c9ff;--scene:url("themes/stars.webp")}
.theme-color{--scene:url("themes/color.webp");--accent:#e8a6ff}
body:has(.theme-color){--game-accent:#e8a6ff;--scene:url("themes/color.webp")}
.theme-stage{--scene:url("themes/stage.webp");--accent:#d5b475}
body:has(.theme-stage){--game-accent:#d5b475;--scene:url("themes/stage.webp")}
.theme-earth{--scene:url("themes/earth.webp");--accent:#b2af86}
body:has(.theme-earth){--game-accent:#b2af86;--scene:url("themes/earth.webp")}
#game progress{accent-color:var(--game-accent)}#game #options button:hover:not(:disabled),#game #options button:focus-visible{border-color:var(--game-accent)}.theme-matrix .scene{animation:matrix-flow 12s linear infinite alternate}@keyframes matrix-flow{from{transform:translateY(-2%)}to{transform:translateY(2%)}}@media(prefers-reduced-motion:reduce){.theme-matrix .scene{animation:none}}.reduce-motion .theme-matrix .scene{animation:none}
/* Cinematic arena redesign: responsive, locally rendered, accessible. */
:root{color-scheme:dark;--gold:#e8c17c;--ink:#080b13;--panel:#111725;--game-accent:#d5b475}body{font-family:system-ui,-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;line-height:1.5}main{max-width:1240px;padding:28px 32px 36px}#cinema .scene{opacity:.83}#cinema .atmosphere{background:linear-gradient(180deg,#080b13a0 0%,#080b1320 34%,#080b13d9 100%),linear-gradient(90deg,#080b13aa,transparent 72%)}.topbar{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:0 0 24px;border-bottom:1px solid #ffffff25;margin-bottom:28px}.brand{display:flex;align-items:center;gap:14px}.brand .brand-mark{display:grid;place-items:center;width:48px;height:48px;border:1px solid #e8c17c99;border-radius:12px;background:linear-gradient(145deg,#e8c17c,#96713d);color:#111827;font-size:19px;letter-spacing:-.08em;box-shadow:0 0 26px #e8c17c33}.brand small{display:block;color:#a9b3c5;font-size:10px;letter-spacing:.24em}.brand span{font-size:15px;letter-spacing:.17em;color:#f4e6cb}.account{display:flex;align-items:center;gap:16px}#profile{font-size:13px;color:#e8d8b6;font-weight:650;margin:0}#motion{background:#111725b0;border-color:#ffffff32;font-size:11px;margin:0;white-space:nowrap}.arena-layout{display:grid;grid-template-columns:minmax(0,1fr) 280px;gap:24px;align-items:start}.play-column{min-width:0}section{margin:0 0 16px;border-radius:20px;background:linear-gradient(145deg,#172031f5,#0d1321f5);border:1px solid #ffffff25;box-shadow:0 24px 70px #0008;overflow:hidden}.eyebrow{font-size:10px;letter-spacing:.22em;color:var(--game-accent);font-weight:800}.hero{padding:20px 0 34px;border-bottom:1px solid #ffffff1e;margin-bottom:24px;background:radial-gradient(ellipse at 100% 0,#d5b47515,transparent 60%)}.hero h1{font-size:clamp(2.7rem,5vw,4.6rem);line-height:1.02;letter-spacing:-.055em;margin:18px 0 14px;color:#fff4df}.hero p{max-width:420px;color:#b9c4d5;margin:0}#setup{padding:32px}h2{margin:0 0 16px;letter-spacing:-.035em}label{font-size:13px;font-weight:650;color:#c2cbda}select{background:#0b1120;border:1px solid #ffffff30;appearance:auto}#start,#next{background:linear-gradient(115deg,#f2d498,#c29249);color:#161007;border-color:#f6dfa0;box-shadow:0 7px 25px #d5b47525;text-transform:uppercase;font-size:13px;letter-spacing:.12em;min-height:54px;margin-top:18px}#game{padding:0;border-color:color-mix(in srgb,var(--game-accent) 40%,#172031);position:relative}.scene-banner{height:clamp(150px,22vw,245px);position:relative;background-image:linear-gradient(0deg,#111725 0%,transparent 60%),var(--scene);background-size:cover;background-position:70% 42%;display:flex;align-items:flex-end;justify-content:space-between;padding:22px 30px}.scene-banner .eyebrow{background:#070b14c9;border:1px solid #ffffff35;padding:8px 12px;border-radius:5px}.scene-index{font:700 10px monospace;letter-spacing:.16em;color:#d2d8e5}.game-content{padding:0 30px 30px}#position{font-size:12px;color:#c2cbda;letter-spacing:.1em;text-transform:uppercase;margin:6px 0}#round-progress{height:7px;border:0;border-radius:20px;overflow:hidden;background:#263044;margin:7px 0 22px}progress::-webkit-progress-bar{background:#263044;border-radius:20px}progress::-webkit-progress-value{background:var(--game-accent);border-radius:20px}progress::-moz-progress-bar{background:var(--game-accent);border-radius:20px}#question{font-size:clamp(1.35rem,2.6vw,2.05rem);line-height:1.25;margin:0 0 24px;overflow-wrap:anywhere}#options{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}#options button{margin:0;display:flex;align-items:center;gap:12px;min-height:84px;background:linear-gradient(140deg,#232e42,#131b2b);border:1px solid #ffffff25;border-radius:12px;padding:13px;transition:transform .18s,border-color .18s,box-shadow .18s;overflow-wrap:anywhere}.option-letter{flex:0 0 34px;height:34px;display:grid;place-items:center;border:1px solid #ffffff35;background:#0a1020;border-radius:7px;color:var(--game-accent);font-weight:800;font-size:13px}.option-text{min-width:0;font-weight:650;font-size:15px}#options button:hover:not(:disabled){transform:translateY(-2px);box-shadow:0 0 22px color-mix(in srgb,var(--game-accent) 20%,transparent)}#options button:disabled{opacity:.65}#options button.is-correct{opacity:1;background:linear-gradient(145deg,#173a2c,#14271f);border-color:#62dba5}#options button.is-wrong{opacity:1;background:linear-gradient(145deg,#49242c,#29171f);border-color:#f68b91}#feedback:not(:empty){padding:14px 16px;margin:18px 0 0;border-radius:10px;background:#ffffff0a;border:1px solid #ffffff22;font-weight:650}.feedback-win{color:#a5efc9}.feedback-loss{color:#ffd0cc}.missions{padding:22px}.missions h2{font-size:23px;margin-top:8px}#challenges p{font-size:13px;padding:13px 0;margin:0;border-top:1px solid #ffffff17;color:#d8e0ee}#challenges progress{height:6px;display:block;margin-top:10px;border:0;border-radius:20px;overflow:hidden}.muted{font-size:11px;color:#a9b3c5;margin-top:20px}button:focus-visible,select:focus-visible{outline:2px solid #f5dfad;outline-offset:3px}body:has(.theme-neutral){--scene:url('themes/neutral.webp')} .scene-banner{background-image:linear-gradient(0deg,#111725 0%,transparent 65%),var(--scene)}
@media(max-width:900px){.arena-layout{grid-template-columns:1fr}aside .missions{display:block}#challenges{display:grid;grid-template-columns:repeat(3,1fr);gap:12px}}@media(max-width:560px){main{padding:14px}.topbar{flex-wrap:wrap;gap:12px;margin-bottom:16px;padding-bottom:15px}.account{width:100%;justify-content:space-between;gap:8px}#profile{font-size:11px}.brand .brand-mark{width:40px;height:40px}#setup{padding:20px}.hero{padding-top:8px}.scene-banner{height:150px;padding:14px 16px}.game-content{padding:0 16px 20px}#options{grid-template-columns:1fr;gap:9px}#options button{min-height:58px;padding:10px}.option-text{font-size:14px}#challenges{grid-template-columns:1fr}.scene-index{display:none}}@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important}}.reduce-motion *, .reduce-motion *::before,.reduce-motion *::after{animation:none!important;transition:none!important}

/* Phase 2.4 dossier */
.stats{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.stats>div{padding:14px 10px;background:linear-gradient(135deg,#263248,#101827);border:1px solid #ffffff20;border-radius:10px}.stats strong{display:block;font-size:23px;color:#f1d29a;line-height:1.2;overflow-wrap:anywhere}.stats small{color:#b9c4d5;font-size:11px}.dossier h3{font-size:14px;margin:22px 0 10px}.badges{display:grid;gap:8px}.badges span{padding:9px;border:1px solid #ffffff20;border-radius:7px;font-size:12px}.badges .earned{color:#f2d49b;border-color:#c29a58;background:#c29a5814}.badges .locked{color:#a2adbf}.scene-banner{height:clamp(180px,25vw,300px);background-position:75% 40%}.hero{background-image:linear-gradient(90deg,#111725 10%,#111725cc 45%,#11172522),url('themes/cosmic.webp');background-size:cover;background-position:center;border-radius:12px;padding:24px}.hero h1{text-shadow:0 3px 20px #000}.scene-banner::after{content:'';position:absolute;inset:0;pointer-events:none;box-shadow:inset 0 0 60px #080b1355}.scene-banner>span{z-index:1}@media(max-width:560px){.scene-banner{height:180px}.hero{padding:16px}.stats strong{font-size:20px}}
/* 2.5 Results & reward motion */
#results{position:relative;overflow:hidden;text-align:center;padding:clamp(24px,5vw,54px);border:1px solid #bca16a66;border-radius:20px;background:radial-gradient(ellipse at top,#80612e55,transparent 65%),linear-gradient(140deg,#1d283b,#0a101d);box-shadow:0 20px 60px #0006}#results[hidden],#reward[hidden]{display:none!important}.result-medal{width:86px;height:86px;display:grid;place-items:center;border:2px solid #e5c17a;border-radius:50%;margin:0 auto 24px;font-size:46px;color:#f5d994;background:radial-gradient(#745a31,#202536);box-shadow:0 0 40px #e5c17a44;animation:reward-enter .55s ease-out both}#result-score{font-size:clamp(48px,10vw,88px);line-height:1.2;font-weight:850;color:#f5d994;font-variant-numeric:tabular-nums}.result-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:24px 0}.result-grid>div{background:#101827;border:1px solid #d9bd7933;padding:18px 8px;border-radius:12px}.result-grid small,.result-grid strong{display:block}.result-grid strong{font-size:clamp(18px,4vw,28px);color:#f5d994}#reward{margin:12px 0;padding:12px;border:1px solid #d9bd7966;border-radius:10px;background:#bfa0651a;color:#f5d994;font-weight:750;animation:reward-enter .45s ease-out both}@keyframes reward-enter{from{opacity:0;transform:translateY(12px) scale(.96)}to{opacity:1;transform:none}}@media(max-width:360px){.result-grid{grid-template-columns:1fr}}

/* 1.0.1: cinematic single-panel arena, reference-inspired. */
body:has(#game:not([hidden])) main{max-width:1100px}
body:has(#game:not([hidden])) .arena-layout{grid-template-columns:minmax(0,1fr)}
body:has(#game:not([hidden])) aside{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}
#game{--arena-accent:#ff625b;position:relative;isolation:isolate;min-height:390px;border:1px solid #bda179;border-radius:10px;background:#080c10;box-shadow:0 24px 45px #0009;overflow:hidden}
#game::before{content:'';position:absolute;inset:0;z-index:-2;background-image:var(--scene);background-size:cover;background-position:center;opacity:.95}
#game::after{content:'';position:absolute;inset:0;z-index:-1;background:linear-gradient(90deg,#030507e8 0%,#030507a8 48%,#03050738 100%),linear-gradient(0deg,#030507c9,transparent 65%);pointer-events:none}
#game .scene-banner{display:none}
#game .game-content{padding:22px clamp(16px,3vw,32px) 32px;display:flex;flex-direction:column;gap:0}
#game #position{order:-2;align-self:flex-end;font-size:11px;letter-spacing:.12em;color:#eee1ca;margin:0 0 5px}
#game #round-progress{order:-1;width:100%;height:5px;margin:0 0 14px;background:#ffffff20;accent-color:var(--arena-accent)}
#game progress::-webkit-progress-bar{background:#ffffff21;border-radius:99px}
#game progress::-webkit-progress-value{background:linear-gradient(90deg,#ffc4ab,var(--arena-accent));border-radius:99px}
#game progress::-moz-progress-bar{background:linear-gradient(90deg,#ffc4ab,var(--arena-accent));border-radius:99px}
.time-row{display:flex;align-items:center;gap:16px;margin:0 0 22px;max-width:85%}
#round-clock{font:700 26px Georgia,serif;min-width:88px;text-align:center;padding:8px 10px;border:1px solid var(--arena-accent);border-radius:8px;background:linear-gradient(145deg,#291416,#0b1017);box-shadow:0 0 14px #ff625b28;color:#fff4e6;font-variant-numeric:tabular-nums}
#time-progress{height:9px;border:0;border-radius:99px;overflow:hidden;background:#ffffff20;accent-color:var(--arena-accent);flex:1;min-width:0}
#game #question{font:700 clamp(24px,3.1vw,37px)/1.12 Georgia,'Times New Roman',serif;letter-spacing:-.025em;color:#fff7ea;border-left:3px solid var(--arena-accent);padding:2px 0 3px 15px;margin:0 0 22px;text-shadow:0 2px 5px #000,0 0 18px #000;overflow-wrap:break-word}
#game #options{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px 14px}
#game #options button{min-height:61px;border:1px solid #e4ba7c;border-radius:10px;padding:10px 13px;background:repeating-linear-gradient(125deg,#ffffff05 0 1px,transparent 1px 5px),linear-gradient(145deg,#24313ceF,#080e14f5);box-shadow:inset 0 0 0 2px #72808b38,inset 0 0 12px #0008,0 4px 12px #0007;color:#fff6e7;gap:12px}
#game .option-letter{font:700 21px Georgia,serif;flex-basis:33px;height:35px;color:#ff9184;border:1px solid var(--arena-accent);background:linear-gradient(145deg,#35191b,#100e13);border-radius:7px;box-shadow:0 0 10px #ff625b24}
#game .option-text{font:700 clamp(17px,2vw,22px)/1.22 Georgia,'Times New Roman',serif;text-shadow:0 2px 3px #000}
#game #options button:hover:not(:disabled){border-color:#fff0c9;background:linear-gradient(145deg,#384957,#17212c);box-shadow:0 0 18px #e4ba7c44;transform:translateY(-2px)}
#game #options button.is-correct{background:linear-gradient(145deg,#21583c,#102c23);border-color:#77f0ad;opacity:1}
#game #options button.is-wrong{background:linear-gradient(145deg,#632c30,#291519);border-color:#ff8d85;opacity:1}
#game #feedback:empty{display:none}
@media(max-width:720px){body:has(#game:not([hidden])) aside{grid-template-columns:1fr}#game .game-content{padding:16px 15px 24px}.time-row{max-width:100%;margin-bottom:18px}#game #options{gap:10px}#game #options button{padding:9px;min-height:58px;gap:8px}#game .option-letter{flex-basis:29px;height:31px;font-size:18px}}
@media(max-width:480px){#game #options{grid-template-columns:1fr}#game #question{font-size:26px}#game::after{background:linear-gradient(90deg,#030507e0,#03050791),linear-gradient(0deg,#030507c9,transparent 65%)}#round-clock{font-size:23px;min-width:75px}}

/* 1.0.2: local cinematic raster scenes, visible behind the question. */
.theme-bourne,body:has(#cinema.theme-bourne){--scene:url("themes/bourne.webp");}
.theme-noir,body:has(#cinema.theme-noir){--scene:url("themes/noir.webp");}
.theme-thunder,body:has(#cinema.theme-thunder){--scene:url("themes/thunder.webp");}
.theme-magic,body:has(#cinema.theme-magic){--scene:url("themes/magic.webp");}
.theme-matrix,body:has(#cinema.theme-matrix){--scene:url("themes/matrix.webp");}
.theme-desert,body:has(#cinema.theme-desert){--scene:url("themes/desert.webp");}
#game::before{opacity:1;background-position:center right;background-size:cover}
#game::after{background:linear-gradient(90deg,rgba(0,0,0,.68),rgba(0,0,0,.30) 60%,rgba(0,0,0,.06)),linear-gradient(0deg,rgba(0,0,0,.60),transparent 70%)}
#game #question{text-shadow:0 2px 4px #000,0 0 15px #000,0 0 25px #000}
#game #options button{background:repeating-linear-gradient(125deg,#ffffff05 0 1px,transparent 1px 5px),linear-gradient(145deg,#24313ce8,#080e14e8)}
#game #options button.is-correct{background:linear-gradient(145deg,#21583c,#102c23)}#game #options button.is-wrong{background:linear-gradient(145deg,#632c30,#291519)}
@media(max-width:480px){#game::before{background-position:70% center}#game::after{background:linear-gradient(90deg,#030507bb,#03050755),linear-gradient(0deg,#030507bb,transparent 75%)}}

.lq-report{display:flex;align-items:center;gap:.6rem;flex-wrap:wrap;margin-top:1rem;font-size:.85rem}.lq-report select,.lq-report button{width:auto;min-height:36px;padding:.4rem .7rem}.lq-report label{margin:0}.lq-report span{color:#e8c17c}

.lq-badge-panel summary{cursor:pointer;color:#e8c17c;padding:12px 0;font-weight:700}.lq-badge-panel .badges{max-height:360px;overflow:auto;display:grid;grid-template-columns:1fr;gap:6px}.lq-badge-panel .earned{border:1px solid #b69a63;background:#26241d;padding:8px;border-radius:7px}.lq-badge-panel .locked{opacity:.65;padding:8px}

/* 1.0.6: locally bundled cinematic artwork */
.theme-shield,body:has(#cinema.theme-shield){--scene:url("themes/shield.webp");}
.theme-space,body:has(#cinema.theme-space){--scene:url("themes/space.webp");}
.theme-ring,body:has(#cinema.theme-ring){--scene:url("themes/ring.webp");}
.theme-jungle,body:has(#cinema.theme-jungle){--scene:url("themes/jungle.webp");}
.theme-cosmic,body:has(#cinema.theme-cosmic){--scene:url("themes/cosmic.webp");}
.theme-web,body:has(#cinema.theme-web){--scene:url("themes/web.webp");}
.theme-night,body:has(#cinema.theme-night){--scene:url("themes/night.webp");}
.theme-ocean,body:has(#cinema.theme-ocean){--scene:url("themes/ocean.webp");}
.theme-alien,body:has(#cinema.theme-alien){--scene:url("themes/alien.webp");}
.theme-neon,body:has(#cinema.theme-neon){--scene:url("themes/neon.webp");}
.theme-western,body:has(#cinema.theme-western){--scene:url("themes/western.webp");}
.theme-ice,body:has(#cinema.theme-ice){--scene:url("themes/ice.webp");}

/* 1.0.7 local cinematic scenes */
.theme-terminator,body:has(#cinema.theme-terminator){--scene:url("themes/terminator.webp");}
.theme-gladiator,body:has(#cinema.theme-gladiator){--scene:url("themes/gladiator.webp");}
.theme-wick,body:has(#cinema.theme-wick){--scene:url("themes/wick.webp");}
.theme-indiana,body:has(#cinema.theme-indiana){--scene:url("themes/indiana.webp");}
.theme-avatar,body:has(#cinema.theme-avatar){--scene:url("themes/avatar.webp");}
.theme-titanic,body:has(#cinema.theme-titanic){--scene:url("themes/titanic.webp");}
.theme-predator,body:has(#cinema.theme-predator){--scene:url("themes/predator.webp");}
.theme-transformers,body:has(#cinema.theme-transformers){--scene:url("themes/transformers.webp");}
.theme-hobbit,body:has(#cinema.theme-hobbit){--scene:url("themes/hobbit.webp");}
.theme-thrones,body:has(#cinema.theme-thrones){--scene:url("themes/thrones.webp");}
.theme-witcher,body:has(#cinema.theme-witcher){--scene:url("themes/witcher.webp");}
.theme-stranger,body:has(#cinema.theme-stranger){--scene:url("themes/stranger.webp");}
.theme-breaking,body:has(#cinema.theme-breaking){--scene:url("themes/breaking.webp");}
.theme-interstellar,body:has(#cinema.theme-interstellar){--scene:url("themes/interstellar.webp");}
.theme-stage,body:has(#cinema.theme-stage){--scene:url("themes/stage.webp");}
.theme-earth,body:has(#cinema.theme-earth){--scene:url("themes/earth.webp");}
/* Neutral questions use the non-identifying cinema scene. */
.theme-neutral,body:has(#cinema.theme-neutral){--scene:url("themes/stage.webp");}

/* 1.0.8 cinematic scenes */
.theme-sherlock,body:has(#cinema.theme-sherlock){--scene:url("themes/sherlock.webp");}
.theme-retro,body:has(#cinema.theme-retro){--scene:url("themes/retro.webp");}
.theme-boxing,body:has(#cinema.theme-boxing){--scene:url("themes/boxing.webp");}
.theme-hunger,body:has(#cinema.theme-hunger){--scene:url("themes/hunger.webp");}
.theme-trek,body:has(#cinema.theme-trek){--scene:url("themes/trek.webp");}
.theme-mummy,body:has(#cinema.theme-mummy){--scene:url("themes/mummy.webp");}
.theme-mission,body:has(#cinema.theme-mission){--scene:url("themes/mission.webp");}
.theme-fast,body:has(#cinema.theme-fast){--scene:url("themes/fast.webp");}
.theme-chernobyl,body:has(#cinema.theme-chernobyl){--scene:url("themes/chernobyl.webp");}
.theme-walking,body:has(#cinema.theme-walking){--scene:url("themes/walking.webp");}
.theme-peaky,body:has(#cinema.theme-peaky){--scene:url("themes/peaky.webp");}
.theme-conjuring,body:has(#cinema.theme-conjuring){--scene:url("themes/conjuring.webp");}
.theme-reacher,body:has(#cinema.theme-reacher){--scene:url("themes/reacher.webp");}
.theme-bugs,body:has(#cinema.theme-bugs){--scene:url("themes/bugs.webp");}
.theme-shrek,body:has(#cinema.theme-shrek){--scene:url("themes/shrek.webp");}
.theme-nemo,body:has(#cinema.theme-nemo){--scene:url("themes/nemo.webp");}

/* 1.0.9: all scenes use local raster artwork */
.theme-adventure,body:has(#cinema.theme-adventure){--scene:url("themes/adventure.webp");}
.theme-arena,body:has(#cinema.theme-arena){--scene:url("themes/arena.webp");}
.theme-color,body:has(#cinema.theme-color){--scene:url("themes/color.webp");}
.theme-detective,body:has(#cinema.theme-detective){--scene:url("themes/detective.webp");}
.theme-dragon,body:has(#cinema.theme-dragon){--scene:url("themes/dragon.webp");}
.theme-forest,body:has(#cinema.theme-forest){--scene:url("themes/forest.webp");}
.theme-neutral,body:has(#cinema.theme-neutral){--scene:url("themes/neutral.webp");}
.theme-robot,body:has(#cinema.theme-robot){--scene:url("themes/robot.webp");}
.theme-stars,body:has(#cinema.theme-stars){--scene:url("themes/stars.webp");}
.theme-toy,body:has(#cinema.theme-toy){--scene:url("themes/toy.webp");}

/* Grand Cinema entry, isolated from the site's WordPress theme. */
#setup.grand-cinema{padding:0;border:1px solid #98713f;overflow:hidden;background:#100a08;box-shadow:0 18px 60px #0009}
.grand-screen{position:relative;isolation:isolate;overflow:hidden;aspect-ratio:16/9;min-height:220px;background:url("themes/grand-cinema.webp") center/cover no-repeat;display:grid;place-items:center}
.grand-screen:before{content:"";position:absolute;inset:0;background:radial-gradient(ellipse at center,transparent 15%,#0004 90%);pointer-events:none}
.grand-projector{position:absolute;inset:0;pointer-events:none;background:radial-gradient(ellipse at 50% 43%,#ffdb8d33,transparent 42%);animation:lq-projector 4s ease-in-out infinite alternate}
#setup #start{position:relative;z-index:3;width:auto;max-width:86%;margin:0;transform:translateY(2%);padding:clamp(12px,2vw,24px) clamp(22px,5vw,64px);font:700 clamp(18px,3vw,32px) Georgia,serif;letter-spacing:.06em;text-transform:none;color:#201204;background:linear-gradient(115deg,#fff1c5,#d5a253 56%,#f6dca0);border:2px solid #fff0b3;border-radius:6px;box-shadow:0 0 0 4px #6c431d,0 0 32px #f7b85c80,0 12px 22px #0008;transition:opacity .35s,box-shadow .25s,scale .25s}
#setup #start:hover:not(:disabled),#setup #start:focus-visible{scale:1.04;box-shadow:0 0 0 4px #8c5724,0 0 55px #ffdb8daa,0 12px 22px #0008}
.grand-curtain{position:absolute;inset:31% auto 31.5% 29%;width:21%;z-index:2;pointer-events:none;background:repeating-linear-gradient(90deg,#380507,#9e1621 12%,#48070a 24%);box-shadow:inset 0 -4px #d9a75a;transition:transform .65s cubic-bezier(.4,0,.2,1);transform:translateX(-100%);opacity:0}
.grand-curtain.right{left:50%;transform:translateX(100%)}
.grand-cinema.opening .grand-curtain{animation:lq-curtain-left .65s ease-in-out both;opacity:1}.grand-cinema.opening .grand-curtain.right{animation:lq-curtain-right .65s ease-in-out both}.grand-cinema.opening #start{opacity:0}
@keyframes lq-curtain-left{0%{transform:translateX(0)}100%{transform:translateX(-100%);opacity:0}}@keyframes lq-curtain-right{0%{transform:translateX(0)}100%{transform:translateX(100%);opacity:0}}@keyframes lq-projector{from{opacity:.35}to{opacity:.9}}
@media(prefers-reduced-motion:reduce){.grand-projector,.grand-curtain{animation:none!important;transition:none!important}#setup #start{transition:none!important}}

/* 1.0.18: compact ruby cinema launch button. */
#setup .grand-screen{display:block;position:relative}
#setup #start{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);scale:1;z-index:3;isolation:isolate;white-space:nowrap;width:max-content;max-width:90%;min-height:46px;padding:clamp(10px,1.2vw,16px) clamp(20px,2.8vw,38px);font:800 clamp(18px,2.1vw,26px) Georgia,serif;letter-spacing:.035em;color:#fff8ed;text-shadow:0 1px 0 #350610;border:2px solid #f9c97c;border-radius:13px;background:linear-gradient(180deg,#df5364 0%,#b82d43 12%,#991b32 48%,#740e24 51%,#a82239 90%,#570b19 100%);box-shadow:inset 0 2px 2px #ffc0c9,inset 0 -4px 5px #30030dcc,0 0 0 3px #815027,0 5px 0 3px #4a0a16,0 8px 0 3px #27040b,0 20px 28px #000b,0 0 42px #a7194266;transition:transform .18s ease,box-shadow .18s ease,opacity .35s;}
#setup #start::before{content:"";position:absolute;inset:5px;border:1px solid #ffe0ac88;border-radius:8px;pointer-events:none;background:linear-gradient(180deg,#ffffff25,transparent 48%);z-index:-1}
#setup #start:hover:not(:disabled),#setup #start:focus-visible{scale:1;transform:translate(-50%,calc(-50% - 3px));box-shadow:inset 0 2px 2px #ffc0c9,inset 0 -4px 5px #30030dcc,0 0 0 3px #bf9052,0 7px 0 3px #4a0a16,0 10px 0 3px #27040b,0 24px 32px #000b,0 0 55px #e14d7777}
#setup #start:active:not(:disabled){transform:translate(-50%,calc(-50% + 6px));box-shadow:inset 0 2px 2px #ffc0c9,inset 0 -4px 5px #30030dcc,0 0 0 3px #815027,0 2px 0 3px #4a0a16,0 4px 0 3px #27040b,0 7px 15px #000b}

/* Clean Arena: keep account information without duplicating site branding. */
.topbar{justify-content:flex-end;min-height:0;padding:0 0 12px;margin-bottom:18px}.topbar .account{justify-content:flex-end;width:auto;margin-left:auto}.topbar #profile{margin:0} @media(max-width:560px){.topbar{padding-bottom:10px;margin-bottom:14px}.topbar .account{width:100%;justify-content:flex-end}}

/* 1.0.16: compact end-of-round panel only. */
#results{padding:clamp(16px,3vw,30px);max-width:760px;width:100%;margin-inline:auto;box-sizing:border-box}
#results .result-medal{width:58px;height:58px;font-size:30px;margin:0 auto 12px;box-shadow:0 0 24px #e5c17a33}
#results .eyebrow{margin:0 0 5px;font-size:10px}
#results #result-title{font-size:clamp(20px,3vw,25px);margin:0 0 8px;line-height:1.2}
#results #result-score{font-size:clamp(36px,6vw,60px);line-height:1.1;margin:8px 0 12px}
#results .result-grid{gap:10px;margin:14px 0}
#results .result-grid>div{padding:10px 8px}
#results .result-grid strong{font-size:clamp(18px,3vw,23px);line-height:1.25}
#results button{padding-block:12px}
@media(max-width:480px){#results{padding:16px}#results .result-medal{width:48px;height:48px;font-size:25px;margin-bottom:9px}#results .result-grid{gap:8px;margin:10px 0}}

.theme-witchfilm,body:has(#cinema.theme-witchfilm){--scene:url("themes/witchfilm.webp");--accent:#b5c8bc;--game-accent:#b5c8bc}

/* Temporarily pause public progress dashboard; remove lq-progress-paused from main to restore. */
main.lq-progress-paused .arena-layout{grid-template-columns:minmax(0,1fr)}
main.lq-progress-paused #lq-progress-panels{display:none!important}

/* 1.0.24: keep account data, remove the public header and unused vertical space. */
main.lq-progress-paused .topbar{display:none!important}
main.lq-progress-paused{padding-top:12px}

/* Clean gameplay: hide status and reward panels even when old theme rules override hidden. */
main.lq-progress-paused .topbar,main.lq-progress-paused #feedback,main.lq-progress-paused #reward{display:none!important;margin:0!important;padding:0!important;border:0!important}

.theme-beasts,body:has(#cinema.theme-beasts){--scene:url("themes/beasts.webp");--accent:#cba35d;--game-accent:#cba35d}
.theme-kolja,body:has(#cinema.theme-kolja){--scene:url("themes/kolja.webp");--accent:#cba35d;--game-accent:#cba35d}
.theme-school,body:has(#cinema.theme-school){--scene:url("themes/school.webp");--accent:#cba35d;--game-accent:#cba35d}
.theme-pelisky,body:has(#cinema.theme-pelisky){--scene:url("themes/pelisky.webp");--accent:#cba35d;--game-accent:#cba35d}
.theme-war,body:has(#cinema.theme-war){--scene:url("themes/war.webp");--accent:#cba35d;--game-accent:#cba35d}
.theme-oppenheimer,body:has(#cinema.theme-oppenheimer){--scene:url("themes/oppenheimer.webp");--accent:#cba35d;--game-accent:#cba35d}
.theme-dunkirk,body:has(#cinema.theme-dunkirk){--scene:url("themes/dunkirk.webp");--accent:#cba35d;--game-accent:#cba35d}
#feedback[hidden],#reward[hidden],#profile{display:none!important}

#lq-ad-break[hidden]{display:none!important} #lq-ad-break{position:fixed;inset:0;z-index:9999;background:#08090efc;display:grid;place-items:center;padding:16px;box-sizing:border-box;overflow:auto} .lq-ad-inner{width:min(100%,850px);text-align:center;color:#fff} .lq-ad-inner video{width:100%;max-height:65vh;background:#000;display:block;margin:12px auto} .lq-ad-inner a{color:#f4d395;margin:12px} #lq-ad-skip{margin:12px;padding:12px 20px;cursor:pointer}

/* 1.0.29: Grand Cinema finale, independent of last question theme. */
#results{isolation:isolate;max-width:760px;padding:clamp(20px,3vw,34px);border:1px solid #d5ad65;border-radius:16px;background:linear-gradient(90deg,#120608e8,#170e09c9 48%,#120608e8),url("themes/grand-cinema.webp") center/cover;box-shadow:0 0 0 3px #312013,0 0 0 4px #9a6f3a,0 18px 48px #0009,inset 0 0 40px #0008;font-family:Georgia,serif}
#results::before{content:"";position:absolute;inset:8px;border:1px solid #d7ad6455;border-radius:10px;pointer-events:none;z-index:-1}
#results .result-medal{width:64px;height:64px;margin:0 auto 10px;color:#ffe0a0;background:radial-gradient(circle at 35% 20%,#98682d,#33200f 70%);border:2px solid #e4bf76;box-shadow:0 0 0 4px #ac814632,0 0 26px #e6b24d55,inset 0 0 10px #ffd78b44}
#results #result-title{font-family:Georgia,serif;color:#fff0d3;font-size:clamp(22px,3vw,30px);text-shadow:0 2px 6px #000;margin-bottom:6px}
#results #result-score{font-family:Georgia,serif;color:#ffdc91;font-size:clamp(42px,6vw,64px);text-shadow:0 2px #73501f,0 0 24px #e9b65a55;margin:6px 0 12px}
#results .result-grid>div{background:linear-gradient(145deg,#2c2018e8,#100b0ded);border:1px solid #b992526e;box-shadow:inset 0 1px #e9c58b22;border-radius:8px;padding:10px}
#results .result-grid small{color:#e0cba9;font-family:system-ui,sans-serif;font-size:12px}#results .result-grid strong{color:#ffdc91}
#results #again{display:block;width:auto;min-width:170px;max-width:100%;margin:16px auto 4px;padding:12px 30px;text-align:center;font:700 19px Georgia,serif;color:#fff3df;background:linear-gradient(#c74758,#8c1930 48%,#650c20 51%,#a32338);border:2px solid #e8bc78;border-radius:9px;box-shadow:0 0 0 2px #71491f,0 4px 0 2px #350913,0 9px 18px #0009,inset 0 1px 3px #ffb4bb88;transition:transform .15s,filter .15s}
#results #again:hover{filter:brightness(1.16);transform:translateY(-2px)}#results #again:active{transform:translateY(3px)}#results #again:focus-visible{outline:2px solid #fff4d8;outline-offset:5px}
@media(max-width:480px){#results{padding:20px 14px}#results .result-medal{width:52px;height:52px}#results .result-medal svg{width:32px;height:32px}#results #again{font-size:17px;padding:10px 24px}}
@media(prefers-reduced-motion:reduce){#results #again{transition:none}}

/* 1.0.30 Blockbuster Finale — scoped, compact, live score. */
#results{position:relative;overflow:hidden;isolation:isolate;width:100%;max-width:620px;margin:22px auto;padding:15px 48px 23px;text-align:center;border:2px solid #e8ad50;border-radius:22px 22px 14px 14px;background:radial-gradient(ellipse at 50% 0,#e79b3944,transparent 35%),radial-gradient(ellipse at 50% 100%,#b4481b55,transparent 42%),linear-gradient(115deg,#100e17ed,#180e0ae8 50%,#10101bee),url("themes/grand-cinema.webp") center/cover;box-shadow:0 0 0 3px #4e2916,0 0 0 5px #c38939,0 0 24px #d8813544,0 15px 40px #000b}
#results::before{inset:7px;border:1px solid #f9c97866;border-radius:15px;z-index:-1;background:repeating-linear-gradient(135deg,transparent 0 13px,#e6b36507 14px 15px)}
#results::after{content:"";position:absolute;inset:0;pointer-events:none;z-index:-1;background:conic-gradient(from 155deg at 18% 0,transparent,#ffd27628 12deg,transparent 24deg),conic-gradient(from 178deg at 82% 0,transparent,#ffd27622 12deg,transparent 24deg);animation:lq-finale-light 4s ease-in-out infinite alternate}
#results .result-medal{width:84px;height:53px;margin:0 auto 5px;border:0;border-radius:0;background:none;box-shadow:none;filter:drop-shadow(0 0 9px #f4a53d88)}
#results .result-medal svg{width:70px;height:53px}
#results #result-title{font-size:clamp(19px,2.5vw,25px);margin:3px 0 4px;line-height:1.2}
#results #result-score{font-size:clamp(28px,4vw,40px);margin:5px 0 9px;line-height:1.1}
#results .result-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;margin:9px 0 12px}
#results .result-grid>div{padding:7px 5px;border-color:#c99547;background:linear-gradient(145deg,#2c1b13,#10090c);min-width:0}
#results .result-grid strong{font-size:clamp(16px,2.5vw,20px)}
#results #again{position:relative;display:block;width:max-content;min-width:0;max-width:100%;min-height:44px;margin:13px auto 4px;padding:8px 26px;font-size:17px;text-align:center;border:2px solid #ffd58a;background:linear-gradient(#e45153,#a41225 48%,#65091a 51%,#a31b2c);box-shadow:0 0 0 2px #87511f,0 4px 0 2px #390810,0 0 19px #e9683466,inset 0 1px 3px #ffb4bb88}
#results #again span{color:#ffdc91;margin-right:5px}
#results .finale-film{position:absolute;pointer-events:none;z-index:-1;bottom:12px;width:160px;height:48px;border-block:3px solid #d59b44;background:repeating-linear-gradient(90deg,#bd8438 0 3px,transparent 3px 23px),linear-gradient(#d49b46 0 6px,#160f13 6px 36px,#d49b46 36px);box-shadow:0 0 16px #f6a34266;opacity:.65}
#results .finale-film.left{left:-86px;transform:rotate(38deg)}#results .finale-film.right{right:-86px;transform:rotate(-38deg)}
@keyframes lq-finale-light{from{opacity:.45}to{opacity:1}}
@media(max-width:480px){#results{max-width:calc(100% - 12px);padding:13px 15px 18px;margin:14px auto}#results .result-medal{width:70px;height:46px}#results .result-medal svg{width:60px;height:46px}#results .finale-film{opacity:.25}#results #again{font-size:16px;padding:8px 22px}}
@media(prefers-reduced-motion:reduce){#results::after{animation:none}}

/* 1.0.32: preserve visible selection while server validates; late correct answer is not scored. */
#game #options button.is-selected:disabled{opacity:1;border-color:#ffe2a0;box-shadow:inset 0 0 0 2px #cba35d;background:linear-gradient(145deg,#51412a,#201911)}
#game #options button.is-wrong:disabled{opacity:1;border-color:#ff8d85;background:linear-gradient(145deg,#632c30,#291519)}
#game #options button.is-correct.is-late:disabled{outline:2px dashed #e8c17c;outline-offset:2px}

/* 1.0.33: larger cinematic frame, compact typography. */
#results{max-width:960px;padding:clamp(24px,4vw,48px) clamp(24px,6vw,80px) clamp(30px,5vw,56px);margin:24px auto;min-height:320px;box-sizing:border-box}
#results .result-medal{margin-bottom:12px}
#results #result-title{font-size:clamp(19px,2.5vw,25px);margin:4px 0 8px}
#results #result-score{font-size:clamp(28px,4vw,40px);margin:8px 0 14px}
#results .result-grid{max-width:620px;margin:12px auto 20px;gap:14px}
#results .result-grid>div{padding:12px 8px}
#results #again{margin:18px auto 6px;padding:10px 32px}
#results .finale-film{width:230px;height:60px;bottom:18px}
@media(max-width:480px){#results{max-width:calc(100% - 12px);min-height:0;padding:20px 14px 26px;margin:14px auto}#results .result-grid{gap:8px;margin:10px auto 14px}#results .finale-film{width:160px;height:48px}#results #again{padding:10px 24px}}

#results .share-cta{max-width:680px;margin:22px auto 4px;padding:14px 18px;border:1px solid #c995476e;border-radius:14px;background:linear-gradient(145deg,#2a1912cc,#130c0df0);box-shadow:inset 0 1px #f4d29b1f,0 8px 24px #0004}
#results .share-cta strong{display:block;color:#fff0d3;font:700 clamp(18px,2.2vw,24px) Georgia,serif;margin:0 0 6px;text-shadow:0 2px 6px #000}
#results .share-cta p{margin:0;color:#e9d7b6;font:400 clamp(14px,1.7vw,17px)/1.55 Arial,sans-serif}
#results .lq-share{display:flex;justify-content:center;flex-wrap:wrap;gap:12px;margin:16px auto 0}#results .lq-share button{width:auto;min-width:138px;min-height:44px;padding:8px 18px;border:1px solid #d5a14f;border-radius:8px;color:#fff;font:bold 15px Arial,sans-serif;box-shadow:0 3px 8px #0007;text-transform:none;letter-spacing:0}#results #share-fb{background:linear-gradient(145deg,#2879ed,#153c8d)}#results #share-ig{background:linear-gradient(145deg,#7134ad,#bc285f,#c65a35)}#results .lq-share span{font-size:21px;margin-right:8px}#results .lq-share button:hover{filter:brightness(1.15)}#results #share-status{font:14px/1.5 Arial,sans-serif;color:#ffe1a0;margin:12px auto 0;max-width:620px}

#ig-link-box[hidden]{display:none!important} #ig-link-box{margin:12px auto;max-width:600px} #ig-link{width:100%;padding:10px;box-sizing:border-box} #ig-copy{margin:8px auto;width:auto;padding:10px 18px}

/* Advertising Manager */
#lq-ad-break [hidden]{display:none!important}#lq-ad-break .lq-ad-inner{max-width:900px}#lq-ad-title{font:700 clamp(18px,3vw,26px) Georgia,serif;color:#f5d399}#lq-ad-image{display:block;max-width:100%;max-height:62vh;object-fit:contain;margin:12px auto;border-radius:10px}#lq-ad-link{display:inline-block;background:#8b192e;border:1px solid #e4bb70;border-radius:8px;padding:12px 24px;text-decoration:none}#lq-ad-skip{min-height:44px}#lq-ad-break button:focus-visible,#lq-ad-link:focus-visible{outline:2px solid white;outline-offset:3px}

/* Cinema Lobby 1.0.44: original CSS Art Deco doors, no external assets. */
#lq-lobby{margin:12px auto 24px;padding:clamp(16px,3vw,34px);max-width:1180px;background:linear-gradient(180deg,#1d1018e8,#170c0cf5),url('themes/grand-cinema.webp') center/cover;border:1px solid #d5a45c;box-shadow:0 0 0 3px #442817,0 16px 48px #0009;text-align:center;color:#fff0d4}
#lq-lobby header{margin-bottom:26px}#lq-lobby .lq-lobby-kicker{font-size:12px;letter-spacing:.18em;color:#d9b677;font-weight:700}#lq-lobby h1{font:700 clamp(26px,4vw,44px)/1.2 Georgia,serif;color:#ffdda0}#lq-lobby header p:last-child{color:#e8d1b3}
.lq-hall-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:18px}.lq-hall{--hall-glow:#e94c54;--hall-scene:url('themes/grand-cinema.webp');min-width:0;padding:12px 10px 16px;border:1px solid #8e653a;border-radius:12px;background:linear-gradient(#2e201b,#120b10);box-shadow:inset 0 0 20px #0007}.lq-hall-emerald{--hall-glow:#39d5a0;--hall-scene:url('themes/matrix.webp')}.lq-hall-desert{--hall-glow:#ffbd57;--hall-scene:url('themes/desert.webp')}.lq-hall-jungle{--hall-glow:#8ecf56;--hall-scene:url('themes/jungle.webp')}.lq-marquee{font:700 13px Georgia,serif;letter-spacing:.17em;color:#f5cf8b;border-bottom:1px solid #a87b42;padding:8px}.lq-hall h2{font:700 clamp(15px,1.8vw,22px)/1.25 Georgia,serif;color:#fff0d4;min-height:2.5em;margin:12px 0;overflow-wrap:anywhere}.lq-door-frame{position:relative;aspect-ratio:3/4;overflow:hidden;border:5px double #cda45f;border-radius:50% 50% 3px 3px/18% 18% 3px 3px;background:linear-gradient(0deg,#0004,#0004),var(--hall-scene) center/cover;box-shadow:0 0 14px var(--hall-glow),inset 0 0 24px #000;perspective:500px}.lq-door{position:absolute;top:0;bottom:0;width:50%;border:2px solid #bd8c48;background:repeating-linear-gradient(90deg,#d9af6520 0 2px,transparent 2px 20px),linear-gradient(110deg,#3b211c,#140b10);transition:transform .55s ease;box-shadow:inset 0 0 0 8px #170e0c,inset 0 0 0 10px #a37a44}.lq-door.left{left:0;transform-origin:left}.lq-door.right{right:0;transform-origin:right}.lq-door:after{content:'';position:absolute;top:54%;width:6px;height:26px;border-radius:5px;background:#d9b268;box-shadow:0 0 5px #000}.lq-door.left:after{right:10px}.lq-door.right:after{left:10px}.lq-hall.is-entering .left{transform:rotateY(-85deg)}.lq-hall.is-entering .right{transform:rotateY(85deg)}.is-locked .lq-door-frame{box-shadow:0 0 7px var(--hall-glow);filter:brightness(.7)}.lq-door-lock{position:absolute;top:48%;left:50%;transform:translate(-50%,-50%);color:#f5cf8b;filter:drop-shadow(0 2px 4px #000)}.lq-hall-status{font-size:13px;color:#dfc8a9;margin:14px 0 4px}.lq-countdown{font-variant-numeric:tabular-nums;font-size:14px;color:#ffdfa3;margin:4px 0}.lq-locked-label{display:block;color:#b9a58f;padding:12px;font-size:13px}#lq-enter-classic{background:linear-gradient(#a63243,#661025);border:1px solid #e8bb73;color:#fff4db;text-align:center;font-weight:700;box-shadow:0 3px 0 #3b1017}.lq-back{width:auto;display:block;margin:12px auto;color:#ffdfa3;background:#20161b;border:1px solid #b88c4b;text-align:center;font-size:14px;min-height:44px;position:relative;z-index:3}#setup .lq-back{margin:8px auto}#results .lq-back{margin:18px auto 0}#lq-lobby button:focus-visible,.lq-back:focus-visible{outline:2px solid #fff3cc;outline-offset:3px}
@media(max-width:850px){.lq-hall-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}}@media(max-width:420px){#lq-lobby{padding:12px 8px}.lq-hall-grid{gap:8px}.lq-hall{padding:8px 6px}.lq-hall h2{font-size:15px}.lq-door-frame{border-width:3px}#lq-enter-classic{font-size:12px;padding:8px}}@media(prefers-reduced-motion:reduce){.lq-door{transition:none}}

#lq-lobby .lq-guest-login{display:block;text-align:center;padding:12px;border:1px solid #e8bc78;border-radius:8px;background:#8c1930;color:#fff4df;text-decoration:none;font-weight:bold}

/* 1.0.46 Cinematic Premiere: preview only, closed halls remain unplayable. */
#lq-premiere{padding:0;max-width:1180px;margin:12px auto 24px;border:1px solid #d5a45c;background:#100b10}.lq-premiere-scene{--hall-glow:#e94c54;--hall-scene:url('themes/grand-cinema.webp');position:relative;isolation:isolate;overflow:hidden;text-align:center;min-height:440px;padding:clamp(24px,6vw,80px) clamp(14px,4vw,48px);background:linear-gradient(180deg,#100b1080,#100b10e8),var(--hall-scene) center/cover}.lq-premiere-scene.lq-hall-emerald{--hall-glow:#39d5a0;--hall-scene:url('themes/matrix.webp')}.lq-premiere-scene.lq-hall-desert{--hall-glow:#ffbd57;--hall-scene:url('themes/desert.webp')}.lq-premiere-scene.lq-hall-jungle{--hall-glow:#8ecf56;--hall-scene:url('themes/jungle.webp')}.lq-premiere-light{position:absolute;inset:0;pointer-events:none;z-index:-1;background:radial-gradient(ellipse at 50% 0,var(--hall-glow),transparent 65%);opacity:.2;animation:lq-premiere-glow 3s ease-in-out infinite alternate}.lq-premiere-content{max-width:760px;margin:auto;animation:reward-enter .6s ease-out both}.lq-premiere-kicker{font-size:12px;letter-spacing:.15em;color:#ffdfa3}.lq-premiere-content h2{font:700 clamp(28px,6vw,60px)/1.15 Georgia,serif;color:#fff4df;overflow-wrap:anywhere;text-shadow:0 3px 20px #000}.lq-premiere-description{max-width:620px;margin:16px auto 24px;white-space:pre-line;overflow-wrap:anywhere}.lq-premiere-rules{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin:20px auto}.lq-premiere-rules div{padding:14px 5px;background:#110d16dd;border:1px solid var(--hall-glow);border-radius:8px;font-size:12px}.lq-premiere-rules strong{display:block;color:#ffdfa3;font-size:clamp(19px,4vw,32px)}.lq-premiere-content button,.lq-premiere-preview{text-align:center}.lq-premiere-content button{display:block;max-width:360px;margin:12px auto;background:#20161b;border:1px solid #b88c4b}.lq-premiere-preview{font-size:13px;background:#24171a;border-color:#96713d}.lq-premiere-sr{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}@keyframes lq-premiere-glow{to{opacity:.42}}@media(prefers-reduced-motion:reduce){.lq-premiere-light,.lq-premiere-content{animation:none}}@media(max-width:420px){.lq-premiere-rules{gap:5px}.lq-premiere-rules div{font-size:11px;padding:8px 3px}}

.lq-ticket-preview{max-width:480px;margin:18px auto;animation:lq-ticket-arrival .65s ease-out both}.lq-ticket-preview img{display:block;width:100%;height:auto;filter:drop-shadow(0 6px 12px #0008)}@keyframes lq-ticket-arrival{from{opacity:0;transform:translateY(12px) rotate(-2deg)}to{opacity:1;transform:none}}@media(prefers-reduced-motion:reduce){.lq-ticket-preview{animation:none}}

/* 1.0.56 — Living Cinema, confined to the lobby. */
#lq-lobby{position:relative;isolation:isolate;overflow:hidden;--season-light:#d5a45c;--season-secondary:#8e2033}
#lq-lobby.lq-season-christmas{--season-light:#f5d99a;--season-secondary:#39704d;background:radial-gradient(ellipse at top,#325a3990,transparent 55%),linear-gradient(180deg,#240f19e8,#170c0cf5),url('themes/grand-cinema.webp') center/cover}
#lq-lobby.lq-season-halloween{--season-light:#f7b063;--season-secondary:#723b8b;background:radial-gradient(ellipse at top,#66377b80,transparent 55%),linear-gradient(180deg,#211228e8,#120b0df5),url('themes/grand-cinema.webp') center/cover}
#lq-lobby.lq-season-premiere{--season-light:#ffe2a0;--season-secondary:#b68a40;background:radial-gradient(ellipse at top,#aa762d80,transparent 55%),linear-gradient(180deg,#281b15e8,#170c0cf5),url('themes/grand-cinema.webp') center/cover}
#lq-lobby:not(.lq-season-classic)::before{content:'';position:absolute;inset:0 0 auto;height:12px;z-index:-1;background:radial-gradient(circle,var(--season-light) 0 2px,transparent 4px) 0 0/24px 12px repeat-x;pointer-events:none;filter:drop-shadow(0 0 5px var(--season-light))}
#lq-lobby.lq-motion:not(.lq-season-classic)::before{animation:lq-season-lights 4s ease-in-out infinite alternate}
@keyframes lq-season-lights{from{opacity:.55}to{opacity:1}}
#lq-lobby .lq-program{max-width:820px;margin:0 auto 24px;padding:12px 16px;background:#110d13;border:1px solid var(--season-light);box-shadow:inset 0 0 0 3px #241b18;border-radius:8px;text-align:left}
#lq-lobby .lq-program h2{color:var(--season-light);font:700 15px Georgia,serif;text-transform:uppercase;letter-spacing:.13em;text-align:center;margin:0 0 8px}
#lq-lobby .lq-program ul{list-style:none;padding:0;margin:0;max-height:260px;overflow:auto}
#lq-lobby .lq-program li{display:grid;grid-template-columns:30px minmax(0,1fr) auto;gap:12px;align-items:center;padding:8px 0;border-top:1px solid #ffffff20;font:14px/1.4 system-ui,sans-serif}
#lq-lobby .lq-program-number{color:var(--season-light);font-weight:bold;font-variant-numeric:tabular-nums}#lq-lobby .lq-program-name{overflow-wrap:anywhere}#lq-lobby .lq-program-status{color:#e6cfab;font-size:12px;text-align:right}
@media(max-width:480px){#lq-lobby .lq-program{padding:10px}#lq-lobby .lq-program li{grid-template-columns:25px minmax(0,1fr);gap:4px 8px}#lq-lobby .lq-program-status{grid-column:2;text-align:left}}
@media(prefers-reduced-motion:reduce){#lq-lobby.lq-motion::before{animation:none}}

/* 1.0.57: narrow-screen layout and touch controls. */
@media (max-width: 600px) {
 main {padding-inline:10px; min-width:0;}
 .arena-layout,.play-column {min-width:0;}
 #lq-lobby,#lq-premiere,#game,#setup,#results,#lq-ad-break {max-width:100%; min-width:0;}
 #lq-lobby .lq-hall-grid {grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;}
 #lq-lobby .lq-hall h2 {min-height:0;overflow-wrap:anywhere;}
 #lq-lobby :is(button,.lq-guest-login),#lq-premiere button,#game button,#game select,#results button,#lq-ad-skip,#lq-ad-link {min-height:48px;touch-action:manipulation;white-space:normal;overflow-wrap:anywhere;}
 #game .game-content {padding:12px 12px 20px;}
 #game #question,#game #options button {overflow-wrap:anywhere;}
 #game #options {grid-template-columns:minmax(0,1fr);}
 #game #options button {min-width:0;max-width:100%;}
 #game .scene-banner {min-height:0;height:clamp(64px,18vw,108px);}
 #lq-premiere .lq-premiere-scene {min-height:0;padding:24px 12px;}
 #lq-ad-break .lq-ad-inner {min-width:0;max-width:100%;}
 #lq-ad-break :is(video,img) {max-width:100%;max-height:50vh;object-fit:contain;}
 #lq-ad-link {margin-inline:0;max-width:100%;}
 #results .lq-share button {flex:1 1 130px;min-width:0;}
 #results .share-cta {padding:12px;}
 #cinema .scene {animation:none;transform:none;}
 #lq-lobby.lq-motion::before {animation:none;}
}
@media (max-width: 400px) {
 #lq-lobby .lq-hall-grid {grid-template-columns:minmax(0,1fr);}
 #lq-lobby .lq-door-frame {max-width:170px;margin-inline:auto;}
 #lq-lobby .lq-hall {padding:12px;}
 #lq-lobby header {margin-bottom:16px;}
 #lq-lobby .lq-program {padding:8px;}
}
@media (prefers-reduced-motion:reduce) {
 #cinema .scene,#lq-lobby *,#lq-premiere *,#results *,#setup * {animation-duration:0.01ms!important;animation-iteration-count:1!important;transition-duration:0.01ms!important;}
}
@media(max-width:600px){#results .lq-share button{min-height:48px}}

#lq-premiere .lq-cinematic-link{display:inline-flex;align-items:center;justify-content:center;min-height:48px;padding:12px 20px;margin:6px;border:1px solid var(--hall-glow);border-radius:8px;color:#fff;background:#15151eea;text-decoration:none;font-weight:700}#lq-premiere .lq-cinematic-link:hover,#lq-premiere .lq-cinematic-link:focus-visible{outline:2px solid var(--hall-glow);outline-offset:3px}

/* Avengers editorial event: existing cinematic art, unique emerald/gold presentation. */
.lq-hall[data-event-theme="avengers-doomsday"],.lq-premiere-scene[data-event-theme="avengers-doomsday"]{--hall-scene:url('themes/shield.webp');--hall-glow:#54e5af}
.lq-premiere-scene[data-event-theme="avengers-doomsday"]{background:linear-gradient(180deg,#071512a0 0%,#091712f2 54%,#080d10 100%),var(--hall-scene) center top/cover}
.lq-av-tagline{color:#8ef0c9;font-weight:700;letter-spacing:.03em}.lq-av-event-details{margin:28px auto;text-align:left;background:#071713e8;padding:clamp(14px,3vw,26px);border:1px solid #5dbe98;border-radius:12px;color:#effaf4}.lq-av-event-details h3{margin:20px 0 12px;color:#ffe0a2;font-size:clamp(18px,3vw,24px)}.lq-av-event-details h3:first-child{margin-top:0}.lq-av-chapters,.lq-av-ranks{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.lq-av-ranks{grid-template-columns:repeat(2,minmax(0,1fr))}.lq-av-chapters>div,.lq-av-ranks>div{padding:14px;border:1px solid #316651;border-radius:8px;background:#10231f;overflow-wrap:anywhere}.lq-av-event-details strong,.lq-av-event-details span{display:block}.lq-av-event-details strong{color:#9ff1d1}.lq-av-chapters p,.lq-av-event-details .lq-av-note{font-size:13px;color:#d4e5dc;margin:8px 0 0}.lq-av-ranks>div:last-child{border-color:#e4ba65;background:#332818}.lq-av-ranks>div:last-child strong{color:#ffe0a2}.lq-av-event-details ol{padding-left:22px;margin:12px 0}.lq-av-event-details li{padding:8px 0}.lq-av-event-details li span{margin-top:4px;color:#d4e5dc}@media(max-width:600px){.lq-av-chapters{grid-template-columns:1fr}.lq-av-ranks>div{padding:9px;font-size:13px}}

/* Duna editorial presentation: warm sandstone, spice and night desert. */
.lq-hall[data-event-theme="duna"],.lq-premiere-scene[data-event-theme="duna"]{--hall-scene:url('themes/desert.webp');--hall-glow:#e9a658}
.lq-premiere-scene[data-event-theme="duna"]{background:linear-gradient(180deg,#30200d90 0%,#211608ed 54%,#100c09 100%),var(--hall-scene) center top/cover}
[data-event-theme="duna"] .lq-av-tagline{color:#ffd39a}
[data-event-theme="duna"] .lq-av-event-details{background:#24180fed;border-color:#bf8b50;color:#fff4e1}
[data-event-theme="duna"] :is(.lq-av-chapters,.lq-av-ranks)>div{background:#362414;border-color:#85562f}
[data-event-theme="duna"] .lq-av-event-details strong{color:#ffc884}
[data-event-theme="duna"] .lq-av-event-details :is(p,li span){color:#f4dfc3}
[data-event-theme="duna"] .lq-av-ranks>div:last-child{background:#4b3316;border-color:#ffdc81}

/* Jumanji editorial presentation: temple ruins, jungle foliage and bronze. */
.lq-hall[data-event-theme="jumanji"],.lq-premiere-scene[data-event-theme="jumanji"]{--hall-scene:url('themes/adventure.webp');--hall-glow:#b8d978}
.lq-premiere-scene[data-event-theme="jumanji"]{background:linear-gradient(180deg,#17250e80 0%,#101e11ed 54%,#080f09 100%),var(--hall-scene) center top/cover}
[data-event-theme="jumanji"] .lq-av-tagline{color:#d7eda6}
[data-event-theme="jumanji"] .lq-av-event-details{background:#112016ed;border-color:#839b50;color:#f4fae8}
[data-event-theme="jumanji"] :is(.lq-av-chapters,.lq-av-ranks)>div{background:#1d3020;border-color:#5c743f}
[data-event-theme="jumanji"] .lq-av-event-details strong{color:#d4ea9e}
[data-event-theme="jumanji"] .lq-av-event-details :is(p,li span){color:#e0e9ce}
[data-event-theme="jumanji"] .lq-av-ranks>div:last-child{background:#3e3018;border-color:#ffdc81}
[data-event-theme="jumanji"] .lq-av-ranks>div:last-child strong{color:#ffe0a2}
