/* The game follows the site's light/dark appearance. */
.qz-page,.qz-discovery-tabs{--qz-bg:#fff;--qz-input:#f5f8fd;--qz-text:#142142;--qz-muted:#566b89;--qz-border:#d6e1f1;--qz-soft:#eef3fa;--qz-pink:#ff007a;--qz-own:#ffeaf4;--qz-credit:#ce0062;--qz-good:#e7f8ef;--qz-good-text:#176944;--qz-bad:#fff0f4;--qz-bad-text:#a3214b;color:var(--qz-text)}
@media(prefers-color-scheme:dark){.qz-page,.qz-discovery-tabs{--qz-bg:#17212b;--qz-input:#202c39;--qz-text:#edf2f7;--qz-muted:#b3bfd0;--qz-border:#354253;--qz-soft:#202c39;--qz-own:#3b2038;--qz-credit:#ff94c4;--qz-good:#16382e;--qz-good-text:#a5eed0;--qz-bad:#402332;--qz-bad-text:#ffc1d1}}
html[data-theme=light] :is(.qz-page,.qz-discovery-tabs){--qz-bg:#fff;--qz-input:#f5f8fd;--qz-text:#142142;--qz-muted:#566b89;--qz-border:#d6e1f1;--qz-soft:#eef3fa;--qz-own:#ffeaf4;--qz-credit:#ce0062;--qz-good:#e7f8ef;--qz-good-text:#176944;--qz-bad:#fff0f4;--qz-bad-text:#a3214b}
html[data-theme=dark] :is(.qz-page,.qz-discovery-tabs){--qz-bg:#17212b;--qz-input:#202c39;--qz-text:#edf2f7;--qz-muted:#b3bfd0;--qz-border:#354253;--qz-soft:#202c39;--qz-own:#3b2038;--qz-credit:#ff94c4;--qz-good:#16382e;--qz-good-text:#a5eed0;--qz-bad:#402332;--qz-bad-text:#ffc1d1}
.qz-discovery-tabs{box-sizing:border-box;max-width:524px;margin:16px auto 0;padding:4px;gap:4px;background:var(--qz-soft);border-radius:18px}.qz-discovery-tabs a{display:flex;align-items:center;justify-content:center;gap:9px;flex:1;min-width:0;min-height:48px;padding:10px 14px;border-radius:14px;text-decoration:none!important;color:var(--qz-muted)}.qz-discovery-tabs a[aria-current=page]{color:white!important;background:var(--qz-pink);box-shadow:0 5px 14px #ff007a22}
.app-shell--games .app-shell__content{background:var(--app-page,#fff)!important}.qz-page{padding-top:20px}.qz-head{margin-bottom:20px}.qz-head>a{border-color:var(--qz-border);background:var(--qz-soft);color:var(--qz-muted)}.app-shell .qz-page :is(h1,h2,h3){color:var(--qz-text)!important}
.qz-game-card{position:relative;text-align:center;padding:24px 18px 26px;overflow:hidden;background:radial-gradient(ellipse at 100% 100%,#fa0095,transparent 65%),radial-gradient(ellipse at 0 10%,#12538b,transparent 70%),linear-gradient(140deg,#052341,#24214e);box-shadow:0 12px 28px #18245820}.qz-trophy-scene{position:relative;display:grid;place-items:center;height:126px;margin-bottom:8px}.qz-trophy{font-size:88px;position:relative;z-index:1;filter:drop-shadow(0 8px 16px #ffbe3655)}.qz-confetti{position:absolute;font-size:22px;filter:drop-shadow(0 0 10px #ffc64b88)}.qz-confetti:nth-child(2){left:12%;top:10%;transform:rotate(-15deg)}.qz-confetti:nth-child(3){right:9%;top:27%;color:#49b5ff;transform:rotate(28deg)}.qz-confetti:nth-child(4){left:6%;bottom:14%;color:#ff62d5;transform:rotate(15deg)}.qz-confetti:nth-child(5){right:17%;bottom:4%;color:#ffcd38}.app-shell .qz-page .qz-game-card h2{font-size:30px;line-height:1.15;margin:8px 0 12px;color:white!important}.qz-game-card p{color:white;font-size:14px;line-height:1.55}.qz-game-card>.qz-game-bottom{display:flex;justify-content:center;align-items:center;gap:12px;border:0;background:#ffffff19;border-radius:12px;margin-top:20px;padding:12px;font-size:13px;font-weight:600}
.qz-hero-stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin:15px 0}.qz-hero-stats>div{background:var(--qz-soft);border-radius:13px;padding:12px 4px;text-align:center;font-size:12px;color:var(--qz-muted)}.qz-hero-stats strong{display:block;font-size:19px;color:var(--qz-text);margin-bottom:5px}.qz-hero-actions{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:10px}.qz-hero-actions a{display:flex;justify-content:center;align-items:center;gap:8px;border:1px solid var(--qz-border);background:var(--qz-bg);border-radius:13px;color:var(--qz-text);min-height:48px;text-decoration:none;font-size:13px;font-weight:600}
.qz-card,.qz-submit{border-color:var(--qz-border);background:var(--qz-bg);padding:20px}.qz-primary{min-height:53px;border-radius:15px;background:linear-gradient(110deg,#ff0088,#ff006a);box-shadow:0 7px 16px #ff007a1a;font-size:15px}.qz-tabs,.qz-periods{gap:4px;padding:4px;border-radius:13px;background:var(--qz-soft)}.qz-tabs button[aria-pressed=true],.qz-periods button[aria-pressed=true]{background:var(--qz-pink);color:white}.qz-notice{color:var(--qz-credit)}
.qz-statrow{color:var(--qz-text);background:var(--qz-soft);padding:12px;border-radius:15px;font-weight:600}.qz-timer{width:54px;height:45px;flex-shrink:0;border:1px solid #ff91c2;border-radius:13px;background:var(--qz-bg);color:var(--qz-credit);font-variant-numeric:tabular-nums}.qz-progress{height:8px;border-radius:8px;background:var(--qz-border);overflow:hidden;margin-top:10px}.qz-progress>span{display:block;height:100%;background:var(--qz-pink);border-radius:inherit;transition:width .2s linear}.qz-difficulty{display:inline-block;font-size:12px;background:var(--qz-own);color:var(--qz-credit);padding:6px 10px;border-radius:8px;margin-top:16px}
.qz-answer{min-height:60px;border-color:var(--qz-border);border-radius:15px}.qz-answer b{background:var(--qz-soft);color:var(--qz-text)}.qz-answer.is-correct{border-color:#29aa72;background:var(--qz-good);color:var(--qz-good-text)}.qz-answer.is-wrong{border-color:#f04c7f;background:var(--qz-bad);color:var(--qz-bad-text)}.qz-answer:disabled{opacity:1}.qz-feedback a,.qz-result-number,.qz-ranking-row strong{color:var(--qz-credit)}.qz-ranking-row{border-color:var(--qz-border);background:var(--qz-soft)}.qz-ranking-row.is-own{background:var(--qz-own)}.qz-submit input,.qz-submit textarea,.qz-submit select{border-color:var(--qz-border);background:var(--qz-input);color:var(--qz-text)}
.qz-discovery-tabs--overlay{max-width:none;margin:0;background:transparent;gap:6px}.qz-discovery-tabs--overlay a{flex:0 1 auto;color:white!important;background:#0b1014d9}.qz-discovery-tabs--overlay a[aria-current=page]{background:#ff007a}
@media(max-width:560px){.qz-discovery-tabs:not(.qz-discovery-tabs--overlay){margin-left:18px;margin-right:18px}}@media(max-width:350px){.qz-hero-stats strong{font-size:17px}.qz-card,.qz-submit{padding:16px}}@media(prefers-reduced-motion:reduce){.qz-progress>span{transition:none}}
/* One bottom-nav allowance, not shell + legacy body + game padding. */
body.app-shell.app-shell--games{padding-bottom:0!important}
body.app-shell.app-shell--games .app-shell__content{min-height:0!important;padding:0 0 calc(var(--app-nav-height,76px) + env(safe-area-inset-bottom) + 10px)!important}
.app-shell--games .qz-page{padding:12px 18px 0}
.app-shell--games .qz-page>.qz-muted:last-child{margin:10px 0 0;font-size:11px}
.app-shell--games .qz-discovery-tabs{margin-top:10px}
.app-shell--games .qz-discovery-tabs a{min-height:44px;padding:8px 12px}
.app-shell--games .qz-head{margin-bottom:12px}
.app-shell--games .qz-head h1{font-size:20px}
.app-shell--games .qz-head p{font-size:12px}
.app-shell--games .qz-game-card{padding:14px 16px 16px;border-radius:20px}
.app-shell--games .qz-trophy-scene{height:72px;margin-bottom:4px}
.app-shell--games .qz-trophy{font-size:58px}
.app-shell--games .qz-confetti{font-size:16px}
.app-shell--games .qz-game-card small{font-size:9px;letter-spacing:1.3px}
body.app-shell .qz-page .qz-game-card h2{font-size:24px;line-height:1.15;margin:7px 0}
.app-shell--games .qz-game-card p{font-size:12px;line-height:1.45;margin:8px 0}
.app-shell--games .qz-game-card>.qz-game-bottom{margin-top:12px;padding:9px;font-size:12px}
.app-shell--games .qz-hero-stats{margin:10px 0;gap:8px}
.app-shell--games .qz-hero-stats>div{padding:8px 4px;font-size:11px}
.app-shell--games .qz-hero-stats strong{font-size:17px;margin-bottom:3px}
.app-shell--games .qz-page>.qz-primary{margin-top:10px;min-height:46px}
.app-shell--games .qz-hero-actions{margin-top:8px;gap:8px}
.app-shell--games .qz-hero-actions a{min-height:44px;font-size:12px}
