@font-face{font-family:Rubik;src:url(assets/Rubik-latin.woff2) format('woff2');font-display:swap}*{box-sizing:border-box}body{margin:0;background:#232448;color:#f6f1e6;font:15px/1.55 Rubik,system-ui,sans-serif;background-image:radial-gradient(ellipse at 15% 0,#414169 0,transparent 55%)}main{max-width:1510px;margin:auto;padding:34px}header{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:33px}.brand{display:flex;gap:19px;align-items:center}.brand-seal{width:78px;height:78px;border:1px solid #d8b764;border-radius:50%;display:grid;place-items:center;font-size:48px;font-weight:700;color:#f4ce82;box-shadow:0 0 0 7px #f9d07b10}.eyebrow,.edition{font-size:10px;letter-spacing:2.5px;text-transform:uppercase;color:#f7ce84;font-weight:600}h1{font-size:47px;line-height:1.1;letter-spacing:-2px;margin:8px 0}header p{margin:0;color:#bac1df;font-size:13px}.header-right{text-align:right;max-width:330px}#status{margin-top:13px}.layout{display:grid;grid-template-columns:minmax(0,1fr) 330px;gap:25px;align-items:start}.stage{min-width:0;outline:none}.scoreboard{display:grid;grid-template-columns:1fr 35px 1fr;align-items:center;gap:6px;margin-bottom:20px}.player-card{display:flex;align-items:center;gap:8px;min-width:0}.player-card canvas{width:64px;height:64px}.player-card div{min-width:0}.player-card b{font-size:16px;display:block;overflow-wrap:anywhere}.player-card small{display:block;font-size:10px;color:#afb9da}.player-card strong{margin-left:auto;font-size:37px;color:#f7ce84;line-height:1}.versus{text-align:center;font-size:11px;color:#a5a8ce}.question-shell{position:relative;border-radius:22px;background:#f7f2e7;color:#28294f;padding:22px 34px 24px;box-shadow:0 16px 44px #10142b55;min-height:570px;overflow:hidden}.question-shell:before{content:'';position:absolute;width:240px;height:240px;border:1px solid #d9ceb044;border-radius:50%;right:-160px;top:10px;pointer-events:none}.question-meta{display:flex;align-items:center;justify-content:space-between;font-size:11px;letter-spacing:2px;color:#686886}.category-seal{display:grid;place-items:center;background:#ebe1cf;border:1px solid #cfc0a2;border-radius:50%;width:54px;height:54px;margin:12px auto 9px;font-size:25px;font-family:Rubik,system-ui}.question-shell .eyebrow{text-align:center;color:#79653c;font-size:10px;margin:6px 0}.question-shell h2{font-size:clamp(25px,2.5vw,37px);line-height:1.26;letter-spacing:-.7px;font-weight:550;max-width:730px;margin:20px auto 15px;min-height:90px;display:flex;align-items:center;justify-content:center;text-align:center;overflow-wrap:anywhere}#quiz-hint{font-size:13px;text-align:center;color:#63637b;min-height:20px;margin:12px auto 17px;max-width:600px}.timer{display:flex;align-items:center;gap:10px;margin:18px 0}.timer progress{width:100%;height:7px;accent-color:#687697;border:0;border-radius:8px;overflow:hidden}.timer progress::-webkit-progress-bar{background:#dfdacd}.timer progress::-webkit-progress-value{background:#687697;border-radius:8px;transition:width .08s linear}#quiz-timer{font-size:12px;font-variant-numeric:tabular-nums;min-width:27px;text-align:right;color:#514c71}#answers{display:grid;grid-template-columns:1fr 1fr;gap:12px}#answers button{display:flex;gap:12px;align-items:center;min-height:83px;background:#e8e3d8;color:#303058;text-align:left;border:1px solid #cfc7b9;border-radius:12px;font-size:16px;margin:0;padding:16px;line-height:1.35}#answers button .letter{flex:0 0 27px;width:27px;height:27px;border:1px solid #aaa0ba;border-radius:50%;display:grid;place-items:center;font-size:12px}#answers button:hover:not(:disabled),#answers button.cursor{background:#d9d8ed;border-color:#65619c;box-shadow:0 0 0 2px #8a88c04a}#answers button.correct{background:#d2e6d4;color:#214b35;border-color:#72a17d;opacity:1}#answers button.incorrect{background:#f0d4ce;color:#743d37;border-color:#c99588;opacity:1}#answers button:disabled{opacity:.7}#answers.single{grid-template-columns:1fr;max-width:450px;margin:30px auto}#answers.single button{justify-content:center;text-align:center;background:#343860;color:#fff5dd;min-height:62px}.category-button .letter{font-family:system-ui}#feedback{text-align:center;font-size:13px;margin-top:20px;min-height:25px}#feedback p{font-size:12px;color:#656079;margin:7px auto;max-width:600px}#feedback a{color:#544b81;font-size:11px}.text-button{background:transparent!important;color:#655b89!important;width:auto;min-height:28px!important;font-size:11px!important;padding:4px 10px!important;text-decoration:underline;border:0!important;display:inline-block!important}.ledger{margin-top:25px;padding:0 8px}.ledger h3{font-size:11px;color:#b8bada;text-transform:uppercase;letter-spacing:2px;font-weight:500}#round-ledger{display:grid;grid-template-columns:repeat(6,1fr);gap:8px}.ledger-round{background:#333557;border:1px solid #5d5d7944;border-radius:10px;padding:10px 5px;text-align:center}.ledger-round.active{border-color:#dbbc73}.ledger-round span{font-size:10px;color:#babdd3}.marks{display:flex;justify-content:center;gap:4px;margin-top:6px}.dot{width:10px;height:10px;border-radius:50%;background:#74768e55;border:1px solid #9497b433}.dot.yes{background:#93cbaa}.dot.no{background:#dd9286}.stage-actions{display:flex;justify-content:flex-end;gap:10px}.hint,small{color:#bbc0db;font-size:11px;line-height:1.65}#controls{margin:18px 8px;color:#aab1d1}aside{background:#2b2e50;border:1px solid #64668266;border-radius:18px;padding:19px;min-width:0}aside p{font-size:13px}aside h2{font-size:24px}aside h3{font-size:19px}.tabs{display:flex;flex-wrap:wrap;border-bottom:1px solid #555975;margin:-4px -4px 18px;gap:2px}.tabs button{background:transparent;color:#bbc4e4;font-size:11px;min-height:35px;padding:7px 10px;width:auto;margin:0;border:0;border-radius:0}.tabs button.active{color:#f5d491;border-bottom:2px solid #f5d491}label{display:block;margin:13px 0;color:#c8cbe2;font-size:11px}label span{display:block;margin-bottom:6px}input,select,textarea{display:block;background:#252846;border:1px solid #5c617d;border-radius:7px;padding:12px;color:#f5f0e8;width:100%;font:13px Rubik;min-height:43px;min-width:0}textarea{min-height:95px;resize:vertical}button{display:block;cursor:pointer;font:500 13px Rubik;background:#f4ce87;border:1px solid #c7a66d;border-radius:8px;color:#30304e;padding:13px 15px;min-height:44px;width:100%;margin-top:12px;transition:background .12s}button:hover:not(:disabled){filter:brightness(1.07)}button:disabled{opacity:.45;cursor:default}button.quiet{background:transparent;color:#d8d7ee;border:1px solid #71718c}button.small{width:auto;padding:8px 15px;min-height:32px;margin:0;font-size:11px}.question-shell button.quiet{color:#655e77;border-color:#bbb1a0}.pair{display:grid;grid-template-columns:1fr 1fr;gap:10px}.pair label{min-width:0}.pair button{font-size:11px}.join{display:flex;gap:8px;align-items:center;margin-top:13px}.join input{width:62%}.join button{margin:0}.check{display:flex;gap:10px;align-items:center}.check input{width:17px;min-height:17px;height:17px;accent-color:#e9cb84}.check span{margin:0}input[type=range]{min-height:23px;padding:0;accent-color:#ecc776}hr{border:0;border-top:1px solid #666b8955;margin:22px 0}details{margin:13px 0}summary{cursor:pointer;font-size:12px}#device-code{display:block;color:#f5d293;overflow-wrap:anywhere;font-size:16px;margin-top:10px;letter-spacing:1px}#room{display:block;letter-spacing:3px;margin-top:20px}#players{font-size:12px;padding-left:20px}#messages{max-height:160px;overflow:auto;word-break:break-word;font-size:12px}#controller{display:block;width:100%;margin-top:15px}#bindings>div{margin:12px 0;font-size:11px}#bindings button{padding:8px;min-height:34px;margin-top:5px}#category-options{max-height:245px;overflow:auto}#category-stats{display:grid;grid-template-columns:repeat(6,1fr);gap:6px;margin:15px 0}.category-stat{font-family:system-ui;text-align:center;font-size:15px;color:#cfd5ee;border:1px solid #6e718866;border-radius:6px;padding:5px;opacity:.55}.category-stat.earned{background:#f4ce8733;border-color:#cfac6c;opacity:1}.duel-card{text-align:left;font-size:12px;background:#35395e;color:#e3e7fa;border-color:#6d7090}.duel-card small{display:block;margin-top:6px}a{color:#f1cf8d}footer{font-size:8px;letter-spacing:2px;color:#878cad;margin-top:28px;display:flex;justify-content:space-between;gap:15px}dialog{background:#2c2f50;color:#f6f1e6;border:1px solid #a8a2bf;border-radius:16px;width:min(470px,calc(100vw - 26px));padding:28px;max-height:85vh}dialog::backdrop{background:#141529cc;backdrop-filter:blur(5px)}dialog h2{font-size:32px}button:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible,summary:focus-visible,a:focus-visible{outline:3px solid #9b9ee9;outline-offset:3px}.stage:focus-visible{outline:1px solid #9b9ee966;outline-offset:7px;border-radius:20px}[hidden]{display:none!important}.reduced *{transition:none!important;animation:none!important}@media(max-width:1020px){main{padding:22px}.layout{grid-template-columns:minmax(0,1fr) 295px;gap:18px}.question-shell{padding:20px}.player-card canvas{width:46px;height:46px}.player-card strong{font-size:29px}.player-card b{font-size:12px}.question-shell h2{font-size:27px}#answers button{font-size:14px;padding:12px}}@media(max-width:760px){main{padding:15px}.layout{grid-template-columns:1fr}.brand-seal{width:52px;height:52px;font-size:32px;flex:0 0 52px}.brand{gap:13px}h1{font-size:34px}header{margin-bottom:25px}.brand p.eyebrow{font-size:7px;letter-spacing:1px}.header-right{display:none}header p{font-size:11px}.scoreboard{margin-bottom:15px}.question-shell{padding:15px;border-radius:15px;min-height:490px}.question-shell h2{font-size:24px;min-height:85px}.category-seal{width:42px;height:42px;font-size:21px}#answers{gap:8px}#answers button{font-size:13px;min-height:80px;padding:11px;gap:8px}#answers button .letter{flex-basis:22px;width:22px;height:22px;font-size:10px}.ledger{padding:0}.ledger-round{padding:8px 2px}#round-ledger{gap:5px}.dot{width:8px;height:8px}.marks{gap:3px}aside{margin-top:5px}.tabs{justify-content:space-between}.tabs button{padding:8px 5px;font-size:10px}footer{font-size:6px}.player-card canvas{width:44px;height:44px}.player-card strong{font-size:26px}.player-card small{font-size:8px}.player-card b{font-size:11px}}
@media(prefers-reduced-motion:reduce){*{transition:none!important;animation:none!important}}
@media(max-width:760px){header{flex-wrap:wrap;gap:10px}.header-right{display:block;max-width:none;text-align:left;flex:1 0 100%}.header-right .edition{display:none}#status{margin-top:0}}
#answers.single button.cursor,#answers.single button:hover:not(:disabled){background:#454976;color:#fff5dd}
.question-copy{display:contents}#quiz-question{font-size:calc(clamp(25px,2.5vw,37px) * var(--quiz-text-size,1))}#answers button{font-size:calc(16px * var(--quiz-text-size,1));touch-action:manipulation}#answers button:active:not(:disabled){background:#ccc9e3}.mobile-header{display:flex;gap:8px}.mobile-header button{width:auto;margin:0}#mobile-menu{display:none}#mobile-notice{position:fixed;right:max(12px,env(safe-area-inset-right));bottom:max(12px,env(safe-area-inset-bottom));max-width:min(380px,80vw);z-index:40;background:#232448f5;color:#fff5df;border:1px solid #d8b764;border-radius:12px;padding:12px 16px;font-size:13px;pointer-events:none}#rotate-hint{position:fixed;bottom:4px;left:10px;right:10px;text-align:center;z-index:25;background:#232448ed;border:1px solid #d8b764;padding:8px;border-radius:9px;pointer-events:none;font-size:12px}dialog{overflow:auto}a,button,input,select,textarea,summary{touch-action:manipulation}
body.mobile-game{overscroll-behavior:none}.mobile-game main{padding:env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left);max-width:none;height:100vh;height:100dvh;display:flex;flex-direction:column;overflow:hidden}.mobile-game header{height:48px;min-height:48px;gap:8px;margin:0;padding:0 12px;flex-wrap:nowrap}.mobile-game .brand{gap:10px}.mobile-game .brand-seal{width:32px;height:32px;flex:0 0 32px;font-size:24px;box-shadow:none}.mobile-game h1{font-size:26px;letter-spacing:-1px;margin:0}.mobile-game .brand p,.mobile-game .header-right,.mobile-game footer{display:none}.mobile-game .mobile-header{margin-left:auto;gap:6px}.mobile-game #mobile-menu{display:block}.mobile-game .mobile-header button{min-height:44px;font-size:12px;padding:8px 12px}.mobile-game .layout{display:block;flex:1;min-height:0}.mobile-game .stage{height:100%;display:grid;grid-template-columns:minmax(0,1fr) auto;grid-template-rows:48px minmax(0,1fr) 52px;gap:0 12px;padding:0 12px}.mobile-game .scoreboard{grid-column:1/-1;margin:0;gap:12px;grid-template-columns:1fr 30px 1fr}.mobile-game .player-card{gap:8px}.mobile-game .player-card canvas{width:42px;height:42px}.mobile-game .player-card b{font-size:13px;white-space:nowrap;text-overflow:ellipsis;overflow:hidden}.mobile-game .player-card strong{font-size:28px}.mobile-game .player-card small{font-size:9px}.mobile-game .question-shell{grid-column:1/-1;min-height:0;padding:0 14px 12px;border-radius:14px;display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);grid-template-rows:44px minmax(0,1fr);gap:0 20px;box-shadow:none}.mobile-game .question-meta{grid-column:1/-1;font-size:11px;letter-spacing:1px;min-height:44px}.mobile-game #pause{height:44px;min-height:44px;padding:8px 14px}.mobile-game .question-copy{display:flex;flex-direction:column;min-width:0;min-height:0;overflow:auto;overscroll-behavior:contain;padding:2px 3px}.mobile-game .category-seal{display:none}.mobile-game .question-shell .eyebrow{margin:0;text-align:left;font-size:10px;letter-spacing:1px;flex:0 0 auto}.mobile-game #quiz-question{font-size:calc(clamp(18px,2.1vw,27px) * var(--quiz-text-size,1));min-height:0;max-width:none;margin:8px 0;text-align:left;justify-content:flex-start;line-height:1.25;letter-spacing:-.3px;flex:1 0 auto}.mobile-game #quiz-hint{min-height:0;font-size:12px;text-align:left;margin:4px 0;max-width:none}.mobile-game #quiz-hint:empty{display:none}.mobile-game [data-phase=question] #quiz-hint,.mobile-game [data-phase=choose] #quiz-hint{display:none}.mobile-game .timer{margin:6px 0 0;flex:0 0 22px}.mobile-game #answers{min-height:0;gap:8px;grid-template-rows:1fr 1fr}.mobile-game #answers button{min-height:44px;font-size:calc(clamp(14px,1.6vw,19px) * var(--quiz-text-size,1));padding:10px;gap:8px;overflow-wrap:anywhere;line-height:1.3}.mobile-game #answers button .letter{width:25px;height:25px;flex-basis:25px;font-size:12px}.mobile-game #answers.single{grid-template-rows:1fr;max-width:none;margin:0;width:100%;align-items:center}.mobile-game #answers.single button{min-height:70px}.mobile-game #feedback{margin:3px 0 0;text-align:left;min-height:0;flex:0 0 auto}.mobile-game #quiz-feedback:empty,.mobile-game #explanation:empty{display:none}.mobile-game #feedback p{font-size:calc(12px * var(--quiz-text-size,1));margin:6px 0;max-width:none}.mobile-game #feedback a,.mobile-game #report{display:inline-flex!important;align-items:center;justify-content:center;min-height:44px!important;margin:0 8px 0 0;font-size:12px!important}.mobile-game #feedback [hidden]{display:none!important}.mobile-game .ledger{padding:0;margin:0;min-width:0;align-self:center}.mobile-game .ledger h3,.mobile-game #controls{display:none}.mobile-game #round-ledger{gap:5px}.mobile-game .ledger-round{height:44px;padding:2px 4px;display:grid;grid-template-columns:18px 1fr;align-content:center;gap:2px}.mobile-game .ledger-round span{grid-row:1/3;align-self:center;font-size:9px}.mobile-game .marks{margin:0;gap:3px}.mobile-game .dot{width:8px;height:8px}.mobile-game .stage-actions{align-self:center;gap:8px}.mobile-game .stage-actions button{height:44px;min-height:44px;font-size:11px;padding:8px 10px}.mobile-game aside{display:none;position:fixed;z-index:30;top:calc(48px + env(safe-area-inset-top));right:env(safe-area-inset-right);bottom:env(safe-area-inset-bottom);width:min(420px,100vw);margin:0;border-radius:14px 0 0 0;overflow:auto;overscroll-behavior:contain;box-shadow:-8px 0 40px #11122a99}.mobile-game.mobile-menu aside{display:block}.mobile-game.mobile-menu .stage{pointer-events:none;filter:brightness(.6)}.mobile-game aside .tabs{position:sticky;top:-19px;z-index:1;background:#2b2e50;justify-content:space-between;gap:0;flex-wrap:nowrap}.mobile-game aside .tabs button{min-height:44px;padding:8px 6px;font-size:11px}.mobile-game aside button,.mobile-game aside input,.mobile-game aside select,.mobile-game aside summary,.mobile-game aside a{min-height:44px}.mobile-game aside input,.mobile-game aside select,.mobile-game aside textarea{font-size:16px}.mobile-game aside .check{min-height:44px}.mobile-game aside .check input{min-height:24px;width:24px;height:24px}.mobile-game aside summary{display:flex;align-items:center}.mobile-game #mobile-notice{max-width:min(330px,80vw)}
@media(orientation:portrait){.mobile-game main{height:auto;min-height:100dvh;overflow:visible;padding-bottom:58px}.mobile-game header{padding:0 8px}.mobile-game .brand-seal,.mobile-game #install{display:none}.mobile-game h1{font-size:23px}.mobile-game .stage{display:flex;flex-direction:column;gap:10px;padding:0 10px}.mobile-game .scoreboard{height:54px}.mobile-game .question-shell{display:flex;flex-direction:column;gap:6px;min-height:510px;padding:0 14px 14px}.mobile-game .question-copy{overflow:visible}.mobile-game #quiz-question{font-size:calc(22px * var(--quiz-text-size,1))}.mobile-game #answers{min-height:172px}.mobile-game #answers button{min-height:82px}.mobile-game .stage-actions{align-self:flex-end}.mobile-game #round-ledger{width:100%}.mobile-game .ledger{align-self:stretch}.mobile-game #mobile-notice{bottom:70px}.mobile-game aside{bottom:0}.mobile-game .mobile-header button{padding:8px}}
@media(orientation:landscape) and (max-height:420px){.mobile-game .stage{grid-template-rows:42px minmax(0,1fr) 48px}.mobile-game .player-card canvas{width:38px;height:38px}.mobile-game .question-shell{padding-bottom:8px;gap:0 16px}.mobile-game #quiz-question{font-size:calc(18px * var(--quiz-text-size,1));margin:5px 0}.mobile-game #answers button{padding:7px;font-size:calc(14px * var(--quiz-text-size,1));gap:6px}.mobile-game #answers button .letter{width:22px;height:22px;flex-basis:22px;font-size:11px}.mobile-game .timer{margin-top:3px}}
.mobile-game [data-phase=question] #feedback:has(#quiz-feedback:empty){display:none}
@media(orientation:landscape) and (max-width:800px){.mobile-game #answers button .letter{display:none}.mobile-game #answers button{line-height:1.2;padding:6px}.mobile-game #quiz-question{font-size:calc(17px * var(--quiz-text-size,1));line-height:1.2}}
@media(orientation:landscape) and (max-height:420px){.mobile-game #quiz-question{margin:2px 0}.mobile-game .question-copy{padding-top:0;padding-bottom:0}}
@media(orientation:landscape){.mobile-game #mobile-notice{left:max(12px,env(safe-area-inset-left));right:auto;top:env(safe-area-inset-top);bottom:auto;max-width:calc(100vw - 340px);max-height:48px;margin:0;line-height:1.3;font-size:11px;padding:3px 10px;overflow:auto;pointer-events:auto}}
@media(orientation:portrait){.mobile-game .ledger-round{grid-template-columns:12px minmax(0,1fr);min-width:0}.mobile-game .marks{gap:2px}.mobile-game .dot{width:7px;height:7px;flex-shrink:0}}
/* ---- menu: Solo / Multiplayer entries ---- */
.tabs [data-tab=settings]{margin-left:auto}
.tabs .minor{font-size:10px;color:#9ca3c6}
.mode-buttons{display:grid;gap:10px;margin:4px 0 12px}
.mode-button{display:grid;grid-template-columns:54px minmax(0,1fr);grid-template-rows:auto auto;column-gap:12px;align-items:center;text-align:left;margin:0;padding:13px 15px;min-height:72px;border-radius:14px;background:#35395e;color:#f6f1e6;border:1px solid #6d7090}
.mode-button .mode-icon{grid-row:1/3;position:relative;width:54px;height:38px}
.mode-button b{font-size:15px;font-weight:600;line-height:1.25;align-self:end}
.mode-button small{font-size:11px;color:#bbc0db;line-height:1.35;align-self:start}
.mode-button:hover:not(:disabled){border-color:#f4ce87}
#new-solo{background:linear-gradient(135deg,#f8da98,#e9b864);color:#2c2c4f;border-color:#c7a66d;min-height:86px;box-shadow:0 8px 22px #0003}
#new-solo b{font-size:18px}
#new-solo small{color:#5d4f33}
.mode-icon i{position:absolute;top:5px;width:28px;height:28px;border-radius:50%;border:2px solid #2b2e50}
.mode-icon i:nth-child(2){left:22px}
.mode-icon.net i:nth-child(2){left:26px}
.mode-icon.crowd i{width:20px;height:20px;top:9px}
.mode-icon.crowd i:nth-child(2){left:11px}
.mode-icon.crowd i:nth-child(3){left:22px}
.mode-icon.crowd i:nth-child(4){left:33px}
i.seat-0,.pick.seat-0{background:radial-gradient(circle at 50% 58%,#eac47d 0 46%,#a2cbd0 49%)}
i.seat-1,.pick.seat-1{background:radial-gradient(circle at 50% 58%,#e18e85 0 46%,#bbb0df 49%)}
.mode-icon i.cpu{border-radius:8px;background:radial-gradient(circle at 50% 55%,#d9dcec 0 38%,#8f97b8 41%)}
aside .back{width:auto;background:none;border:0;color:#bbc4e4;padding:4px 0;min-height:30px;margin:0 0 4px;font-size:12px}
aside .back:hover{color:#f5d491}
.later-entry{display:flex;justify-content:space-between;align-items:center;gap:8px;text-align:left}
.later-entry small{color:#f5d491;font-size:11px}
#duel-options>summary,#friends-box>summary{font-size:12px;color:#c8cbe2;padding:9px 0}
[data-panel=multi] .cpu-only,[data-panel=online] .cpu-only{display:none}
[data-panel=multi] #duel-options .pair,[data-panel=online] #duel-options .pair{grid-template-columns:1fr}
/* ---- juice ---- */
@keyframes pop{0%{transform:scale(1)}40%{transform:scale(1.05)}100%{transform:scale(1)}}
@keyframes glow{0%{box-shadow:0 0 0 0 #5fbf7aaa}100%{box-shadow:0 0 0 14px #5fbf7a00}}
@keyframes shake{0%,100%{transform:translateX(0)}20%{transform:translateX(-7px)}40%{transform:translateX(6px)}60%{transform:translateX(-4px)}80%{transform:translateX(2px)}}
@keyframes pulse{0%,100%{opacity:1}50%{opacity:.5}}
@keyframes bump{0%,100%{transform:scale(1)}30%{transform:scale(1.2)}}
@keyframes rise{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:none}}
@keyframes sink{from{opacity:.3;transform:translateY(-8px)}to{opacity:1;transform:none}}
@keyframes float{0%{opacity:0;transform:translateY(6px) scale(.7)}18%{opacity:1;transform:translateY(0) scale(1.2)}70%{opacity:1}100%{opacity:0;transform:translateY(-28px) scale(1)}}
@keyframes drop{from{opacity:0;transform:translateY(-10px) scale(.4)}to{opacity:1;transform:none}}
#answers button{position:relative}
#answers button.correct{animation:pop .45s ease-out}
#answers button.correct.mine{animation:pop .45s ease-out,glow 1s ease-out;box-shadow:0 0 0 3px #72a17d55}
#answers button.incorrect{animation:shake .42s ease-in-out}
#answers .picks{position:absolute;top:-11px;right:10px;display:flex;gap:3px}
.pick{display:inline-grid;place-items:center;flex:0 0 26px;width:26px;height:26px;border-radius:50%;font-size:12px;font-weight:700;color:#28294f;border:2px solid #fffaf1;box-shadow:0 1px 4px #0003;line-height:1;text-shadow:0 0 3px #fff8}
#answers .picks .pick{animation:drop .35s cubic-bezier(.3,1.6,.6,1) both}
#answers .picks .pick:nth-child(2){animation-delay:.15s}
#compare{display:flex;justify-content:center;gap:10px;flex-wrap:wrap;margin:0 auto 8px}
#compare .side{position:relative;display:flex;align-items:center;gap:8px;padding:5px 14px 5px 5px;border-radius:99px;background:#ece5d8;border:1px solid #d4cab6;color:#4e4a6c;font-size:13px;animation:rise .3s ease-out both}
#compare .side:nth-child(2){animation-delay:.12s}
#compare .side.yes{background:#d2e6d4;border-color:#72a17d;color:#214b35}
#compare .side.no{background:#f0d4ce;border-color:#c99588;color:#743d37}
#compare .verdict{font-weight:600}
.points-pop{position:absolute;right:-8px;top:-16px;font-weight:700;color:#2f7a3e;font-size:16px;pointer-events:none;animation:float 1.6s ease-out both;text-shadow:0 1px 0 #fff}
#quiz-feedback:not(:empty)::before{content:'\2713  ';color:#3f8a55}
.timer progress{height:10px;border-radius:99px}
.timer progress::-webkit-progress-bar{background:#e3ddd0;border-radius:99px}
.timer progress::-webkit-progress-value{background:linear-gradient(90deg,#5f8f9a,#83b4aa);border-radius:99px}
.timer progress::-moz-progress-bar{background:#6f9ea4;border-radius:99px}
.timer.warn progress::-webkit-progress-value{background:linear-gradient(90deg,#e09a3e,#f2c46d)}
.timer.warn progress::-moz-progress-bar{background:#e8ad55}
.timer.danger progress::-webkit-progress-value{background:linear-gradient(90deg,#c8473a,#e8735f)}
.timer.danger progress::-moz-progress-bar{background:#d65a4a}
#quiz-timer{min-width:40px;padding:2px 8px;border-radius:99px;background:#e8e2d6;font-weight:600;text-align:center;font-size:13px}
.timer.warn #quiz-timer{background:#f6dfb2;color:#7a4f12}
.timer.danger #quiz-timer{background:#c8473a;color:#fff}
.timer.danger:not(.done) #quiz-timer{animation:bump 1s ease-in-out infinite}
.timer.danger:not(.done) progress{animation:pulse 1s ease-in-out infinite}
.timer.done{opacity:.5}
.player-card{position:relative}
.player-card.answered::after{content:'\2713';position:absolute;left:46px;top:-3px;width:20px;height:20px;border-radius:50%;background:#93cbaa;color:#1d3d2a;font-size:11px;font-weight:700;display:grid;place-items:center;border:2px solid #232448;animation:drop .3s both}
.player-card strong{transition:color .2s,text-shadow .2s}
.player-card strong.counting{color:#fff1c2;text-shadow:0 0 14px #f7ce84aa}
/* ---- end of duel ---- */
[data-phase=results] #quiz-question{min-height:0;margin:6px auto 4px;font-weight:700}
[data-outcome=win] #quiz-question{color:#7d5512;background:linear-gradient(90deg,transparent,#f6dca0 18%,#f6dca0 82%,transparent);padding:10px 48px;animation:pop .6s ease-out}
[data-outcome=lose] #quiz-question{color:#4e4a6c}
[data-phase=results] .category-seal{background:#f4ce87;border-color:#c7a66d;color:#6b4d16;font-size:28px;animation:pop .6s ease-out}
[data-phase=results] #quiz-hint:empty{display:none}
#answers.summary{display:block;max-width:580px;margin:10px auto 0}
.duel-summary{display:grid;gap:4px;font-size:13px}
.summary-row{display:grid;grid-template-columns:26px 30px minmax(0,1fr) 62px 62px minmax(0,1fr);align-items:center;gap:6px;padding:4px 8px;border-radius:10px;background:#eee8dc;animation:rise .35s ease-out both}
.summary-row:nth-child(3){animation-delay:.05s}.summary-row:nth-child(4){animation-delay:.1s}.summary-row:nth-child(5){animation-delay:.15s}.summary-row:nth-child(6){animation-delay:.2s}.summary-row:nth-child(7){animation-delay:.25s}.summary-row:nth-child(8){animation-delay:.35s}
.summary-row.head{background:none;padding:0 8px 2px}
.summary-row .blank{grid-column:span 2}
.summary-row .who{grid-column:span 2;display:flex;align-items:center;gap:6px;font-weight:600;min-width:0;color:#3b3b62}
.summary-row .who.seat-0{flex-direction:row-reverse}
.summary-row .who span:last-child{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.summary-row .num{font-size:11px;color:#8a8597;font-variant-numeric:tabular-nums}
.summary-row .cat{display:grid;place-items:center;width:28px;height:28px;border-radius:50%;background:#e2d7c2;border:1px solid #cfc0a2;font:12px system-ui;color:#5a4a2c}
.summary-row.empty{opacity:.55}
.summary-row.empty .cat{visibility:hidden}
.summary-row .cells{display:flex;gap:4px}
.summary-row .cells:nth-child(3){justify-content:flex-end}
.summary-row .cell{width:22px;height:22px;border-radius:6px;display:grid;place-items:center;font-size:12px;font-weight:700;background:#dcd5c7;color:#fff}
.summary-row .cell.yes{background:#5fa776}
.summary-row .cell.no{background:#d07a6c}
.summary-row .pts{text-align:center;font-variant-numeric:tabular-nums;color:#6d6a86}
.summary-row .pts.best{color:#28294f;font-weight:700}
.summary-row.total{background:#343860;color:#fff5dd;margin-top:4px;padding:8px}
.summary-row.total .num{grid-column:span 2;color:#f7ce84;text-transform:uppercase;letter-spacing:1.5px;font-size:10px}
.summary-row.total .tally{font-size:12px;color:#c9c6e4}
.summary-row.total .tally:nth-child(2){text-align:right}
.summary-row.total .pts{font-size:19px;color:#c9c6e4}
.summary-row.total .pts.best{color:#f7ce84}
#answers .summary-actions{display:flex;gap:10px;justify-content:center;flex-wrap:wrap;margin-top:16px}
#answers .summary-actions button{width:auto;min-width:190px;min-height:52px;margin:0;justify-content:center;text-align:center;background:#343860;color:#fff5dd;border:0;font-size:15px}
#answers .summary-actions button.rematch{background:linear-gradient(135deg,#f8da98,#e9b864);color:#2c2c4f;box-shadow:0 6px 18px #6b4d1633}
#answers .summary-actions button.rematch.asked{animation:bump 1.4s ease-in-out infinite}
#answers .summary-actions button.quiet{background:transparent;color:#4e4a6c;border:1px solid #bbb1a0}
@media(max-width:1020px){.player-card.answered::after{left:30px}}
@media(max-width:760px){.player-card.answered::after{left:28px}.summary-row{grid-template-columns:22px 28px minmax(0,1fr) 42px 42px minmax(0,1fr);gap:4px;padding:4px}.summary-row .cell{width:19px;height:19px;font-size:11px}.summary-row .cells{gap:3px}#answers .picks{top:-8px;right:6px}}
.mobile-game .player-card.answered::after{left:26px}
.mobile-game #answers.summary{grid-template-rows:none;overflow:auto;margin:0;max-width:none;min-height:0}
.mobile-game [data-phase=results] #quiz-question{background:none;padding:0}
#answers button.correct:disabled,#answers button.incorrect:disabled{opacity:1}
@media(max-width:760px){.summary-row{grid-template-columns:20px 28px minmax(0,1fr) 46px 46px minmax(0,1fr)}.summary-row.total .pts{font-size:16px}.summary-row.total .tally{font-size:10px}}
.mobile-game aside summary::before{content:"\25B8";margin-right:8px}
.mobile-game aside details[open]>summary::before{content:"\25BE"}
