/* V13: premium native surfaces, consistent hierarchy and a collectible achievement system. */
html:root body:not(.studio){font-family:ui-rounded,-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;background:#fff9f0;color:#101b36;--ink:#101b36;--muted:#667188;--line:#e5e4e2;--panel:#fffdfa;color-scheme:light}
html:root body:not(.studio) button{font-weight:750;letter-spacing:-.15px}html:root button:focus-visible,html:root a:focus-visible{outline:3px solid #4d7cff;outline-offset:3px}html:root body:not(.studio) input,html:root body:not(.studio) select,html:root body:not(.studio) textarea{color:#101b36;background:#fffdfa;border-color:#dadfe8}
html:root body:not(.studio) .app-header{background:#0b1430;border:0}html:root .brand-language{border-color:#ffffff26;background:#ffffff05}html:root .brand-language button.active{background:#2654eb}html:root .trivia-home .native-hero{background:linear-gradient(125deg,#2458f2,#123cba)!important;box-shadow:inset 0 1px 0 #ffffff24!important;border-radius:22px}html:root .trivia-home .native-hero h2{font-weight:800;letter-spacing:-1.1px}html:root .trivia-home .hero-palm{opacity:.17}html:root .trivia-home .hero-play{background:#f3cd70!important;box-shadow:0 2px 0 #091e6d25!important;border-radius:13px}html:root .trivia-home .native-modes button{border:1px solid #dfb14e13!important}html:root .trivia-home .native-modes button:nth-child(2){border-color:#e93c6a12!important}html:root .trivia-home .native-arena{background:#edf2ff;border:1px solid #dae3ff}html:root .trivia-feature{border-radius:18px;box-shadow:0 3px 9px #1324470c}html:root .trivia-feature img{opacity:.82;filter:saturate(1.05)}html:root .trivia-feature:after{background:linear-gradient(90deg,#07182ad9,#07182a16),linear-gradient(0deg,#07182a8c,transparent)}html:root .trivia-party-entry{border:1px solid #ffffff28;box-shadow:inset 0 1px 0 #ffffff22}html:root .trivia-home .native-discover button{background:#fffdf9;border-color:#e5e2dc;box-shadow:none}
html:root .trivia-home .trivia-identity small{letter-spacing:-.55px}html:root .trivia-home .level-mini{background:#f2ce76;border:1px solid #e2b65255!important;border-radius:12px}html:root body:not(.studio) .mobile-nav{background:#fffdf9ed!important;box-shadow:0 -6px 24px #18244405;backdrop-filter:blur(18px);border-color:#e4e6ed}html:root .mobile-nav a.active{background:#eaf0ff!important;color:#1744da!important}html:root .mobile-nav a.active:before{display:none}
html:root body:not(.studio) .journey-card{background:#fffdfa;border:1px solid #e2e6ef;border-radius:18px;box-shadow:none}html:root body:not(.studio) .level-token{background:#f4d17b;color:#172444;box-shadow:none;border-radius:13px}html:root body:not(.studio) .question-card{background:#fffdfa;border:1px solid #e0e5f0;box-shadow:0 5px 18px #19346a04;border-radius:21px}html:root body:not(.studio) .answer:not(.correct):not(.wrong):not(.pending){background:#f5f7fc;border:1px solid #e1e7f3;box-shadow:none;color:#142340}html:root body:not(.studio) .answer b{border-radius:9px;background:#e7edf9;color:#36517c}html:root body:not(.studio) .answer.correct{background:#e5f6ed;border-color:#70bf99;color:#145438}html:root body:not(.studio) .answer.wrong{background:#ffeded;border-color:#edaaa8;color:#842c32}html:root body:not(.studio) .answer.correct b{background:#247852;color:white}html:root body:not(.studio) .answer.wrong b{background:#ba4a54;color:white}html:root body:not(.studio) .category-pill{background:#edf2ff;color:#2e4d93;border:0}html:root body:not(.studio) .player-question-image{border-radius:13px;box-shadow:none;object-fit:cover}html:root body:not(.studio) .duel-clock{background:#e9efff;color:#163d9a}html:root body:not(.studio) .duel-clock>i{background:#2b59e5}html:root body:not(.studio) .duel-clock.urgent{background:#fff0df;color:#924622}html:root body:not(.studio) .result-medal{filter:drop-shadow(0 8px 15px #b69b4420)}
html:root body:not(.studio) dialog{border:1px solid #e3e6ef;background:#fffaf2;color:#14213f;box-shadow:0 22px 90px #07142b30}html:root body:not(.studio) dialog::backdrop{background:#07122677;backdrop-filter:blur(8px)}html:root .lesson-visual{border-radius:18px;overflow:hidden}html:root .lesson-body{background:#fffdfa;border:1px solid #e8e5df;border-radius:16px}html:root body[data-play-world=party]:not(.studio){background:#0b1232;color:#fff8ee}html:root body[data-play-world=party] .party-card{background:#fffaf2;color:#14213f}
html:root body.studio{background:#f5f6f8}html:root .studio-panel{background:#fffefd;border-color:#e0e5ee;box-shadow:0 4px 22px #13213e03;border-radius:18px}html:root .studio-desk-tabs{background:#0d1733}html:root .studio-heading{background:#0d1733}html:root .studio-desk-tabs .badge-nav.selected{background:#2556ed}
/* A text-free, configurable collectible. Native images never contain English labels. */
.achievement-art{--badge-tone:#d5a84d;--badge-light:#fff0c6;--badge-dark:#94631e;position:relative;display:inline-grid;place-items:center;width:122px;height:134px;flex:none;isolation:isolate}.achievement-art:before{content:'';position:absolute;inset:6px 10px 20px;background:linear-gradient(145deg,var(--badge-light),var(--badge-tone));clip-path:polygon(50% 0,96% 25%,96% 73%,50% 100%,4% 73%,4% 25%);z-index:-1}.achievement-art:after{content:'';position:absolute;left:31%;right:31%;top:65%;bottom:0;background:var(--badge-dark);clip-path:polygon(0 0,100% 0,100% 100%,50% 80%,0 100%);z-index:-2}.badge-edge{position:absolute;inset:15px 19px 29px;background:#ffffff5c;clip-path:polygon(50% 0,96% 25%,96% 73%,50% 100%,4% 73%,4% 25%)}.badge-core{position:absolute;inset:22px 26px 36px;display:grid;place-items:center;background:#0c1933;border-radius:50%;border:2px solid var(--badge-tone);box-shadow:0 3px 8px #09172e26}.badge-core img{width:75%;height:77%;object-fit:contain}.badge-core svg{width:48%;height:48%;color:var(--badge-light)}.achievement-art>i{position:absolute;bottom:26px;right:22px;font-size:21px;font-style:normal;color:#fff5cf;text-shadow:0 1px 3px var(--badge-dark)}.badge-blue{--badge-tone:#537eea;--badge-light:#d1e0ff;--badge-dark:#24479f}.badge-red{--badge-tone:#e77689;--badge-light:#ffe2de;--badge-dark:#a13855}.badge-jade{--badge-tone:#50ad92;--badge-light:#d7f7e8;--badge-dark:#216651}.badge-violet{--badge-tone:#a181d7;--badge-light:#edddff;--badge-dark:#63448f}.badge-small{width:78px;height:88px}.badge-small:before{inset:4px 5px 12px}.badge-small:after{bottom:0}.badge-small .badge-edge{inset:10px 11px 18px}.badge-small .badge-core{inset:15px 16px 22px}.badge-small>i{bottom:16px;right:12px;font-size:15px}
.badge-studio-overview{display:flex;gap:14px;margin:20px 0 28px}.badge-studio-overview>div{flex:1;padding:19px 22px;background:white;border:1px solid #e2e7ef;border-radius:15px;display:grid;gap:6px}.badge-studio-overview strong{font-size:29px;color:#173d89}.badge-studio-overview span{font-size:12px;color:#68748b}.badge-library{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px;margin:24px 0}.badge-library-card{background:#fffefd;border:1px solid #e1e6ef;border-radius:20px;padding:24px;text-align:center;display:flex;align-items:center;flex-direction:column;color:#13213e;box-shadow:none}.badge-library-card h2{font-size:20px;line-height:1.3;margin:15px 0 6px}.badge-library-card p{font-size:12px}.badge-library-card small{font-size:11px;color:#6d7c93}.badge-library>.studio-empty{grid-column:1/-1}.badge-editor-tabs{display:flex;gap:10px;margin:20px 0}.badge-editor-tabs button{flex:1}.badge-editor-grid{display:grid;grid-template-columns:minmax(0,1.5fr) minmax(260px,1fr);gap:24px;align-items:start;margin:25px 0}.badge-editor-grid .form label{display:flex;flex-direction:column;gap:8px;color:#34415b;font-size:12px}.badge-editor-grid textarea{font:inherit;font-size:16px;min-height:80px;width:100%;padding:13px;border:1px solid #dfe4ef;border-radius:11px;background:#fffefd;color:#14213f}.badge-editor-grid hr{border:0;border-top:1px solid #e5e8ee;width:100%;margin:14px 0}.badge-symbol-picker{display:grid;grid-template-columns:repeat(9,1fr);gap:5px}.badge-symbol-picker button{padding:8px;min-width:0;min-height:38px}.badge-symbol-picker img{height:23px;max-width:22px;object-fit:contain}.badge-color-picker{display:flex;gap:10px}.badge-color-picker button{width:35px;height:35px;min-height:35px;border-radius:50%;border:3px solid transparent;padding:5px;color:#10203c}.badge-color-picker button.chosen{outline:2px solid #213d7c;outline-offset:2px}.swatch-gold{background:#e9be58}.swatch-blue{background:#7199f1}.swatch-red{background:#e78798}.swatch-jade{background:#73bd9f}.swatch-violet{background:#b497df}.badge-upload input{font-size:12px}.badge-live-preview{background:linear-gradient(150deg,#eef3ff,#fff8e8);border:1px solid #dee6f7;border-radius:24px;padding:30px 24px;text-align:center;display:flex;flex-direction:column;align-items:center;gap:14px;position:sticky;top:24px}.badge-live-preview h2{font-size:24px;color:#13213e;line-height:1.2;overflow-wrap:anywhere;margin:0}.badge-live-preview p{font-size:14px;color:#536583;line-height:1.6;margin:0;white-space:pre-wrap;overflow-wrap:anywhere}.badge-live-preview small{font-size:12px;color:#5c6c87;white-space:pre-wrap;overflow-wrap:anywhere}.badge-live-preview .eyebrow{font-size:9px;color:#556b95}.badge-language-review{border:1px solid #e3e7ef;border-radius:13px;padding:17px;margin:12px 0}.badge-language-review small{display:block;margin:12px 0}.badge-player-result{display:flex;justify-content:space-between;width:100%;margin:6px 0}.badge-player-result span{font-size:11px;color:#4564a0}
.achievement-screen{display:flex;flex-direction:column;height:100%;gap:13px}.achievement-heading{position:relative;padding-right:60px;flex:none}.achievement-heading .back{font-size:11px;margin-bottom:19px;display:block}.achievement-heading .eyebrow{font-size:8px;display:block;margin:5px 0 9px;color:#60759c}.achievement-heading h1{font-size:35px;line-height:1.1;margin:0 0 7px}.achievement-heading p{font-size:12px;margin:0}.achievement-count{position:absolute;top:0;right:0;font-size:10px;padding:7px 10px;background:#f4d48966;border-radius:20px}.achievement-grid{display:grid;gap:12px;grid-template-columns:1fr;min-height:0}.achievement-card{display:flex;align-items:center;gap:12px;padding:13px 15px;background:#fffefd;color:#13213f;border:1px solid #e2e6ef;border-radius:18px;text-align:left;width:100%;box-shadow:0 3px 12px #1b386004;min-height:112px}.achievement-card>span:not(.achievement-art){min-width:0;flex:1}.achievement-card small{display:block;font-size:7px;font-weight:800;letter-spacing:1px;color:#88702e;margin-bottom:6px}.achievement-card strong{display:block;font-size:16px;line-height:1.2;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.achievement-card p{font-size:10px;line-height:1.4;margin:5px 0;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.achievement-card>svg{width:15px;color:#2e765c;flex:none}.achievement-card.locked .achievement-art{filter:grayscale(.85);opacity:.58}.achievement-card.locked small{color:#7383a2}.badge-progress{background:#eaf0fa;height:4px;border-radius:9px;overflow:hidden;margin:6px 0}.badge-progress i{display:block;height:100%;background:#5a7ed2;border-radius:9px}.achievement-card em{font-style:normal;font-size:9px;color:#6c7d9d}.achievement-note{font-size:10px!important;text-align:center;color:#748197;margin:auto 0 0}.achievement-empty{display:flex;flex-direction:column;align-items:center;padding:25px;text-align:center}.achievement-empty h2{font-size:23px}.achievement-empty p{font-size:13px}.badge-detail{text-align:center;padding:10px;display:flex;flex-direction:column;align-items:center;gap:14px}.badge-detail h2{font-size:27px;margin:0;overflow-wrap:anywhere}.badge-detail p{font-size:14px;line-height:1.6;white-space:pre-wrap}.badge-detail strong{font-size:12px;white-space:pre-wrap}.badge-detail small{color:#7283a0}.profile-badges-link{display:flex;justify-content:space-between;align-items:center;padding:15px 18px;background:#fff7e3;border:1px solid #edd9a1;border-radius:14px;width:100%;color:#14213f}.profile-badges-link svg{width:20px}
@media(min-width:801px){.achievement-screen{height:auto;max-width:1060px}.achievement-grid{grid-template-columns:repeat(3,1fr)}.achievement-card{flex-direction:column;text-align:center;padding:25px;min-height:240px}.achievement-card>svg{display:none}.achievement-card .badge-small{width:112px;height:125px}.achievement-note{margin:15px}.achievement-heading h1{font-size:46px}.achievement-card strong{white-space:normal}}
@media(max-width:800px){.badge-editor-grid{grid-template-columns:1fr}.badge-live-preview{position:static;grid-row:1;padding:15px;gap:8px}.badge-live-preview .achievement-art{transform:scale(.75);margin:-12px}.badge-live-preview p{font-size:12px}.badge-symbol-picker{grid-template-columns:repeat(5,1fr)}.badge-library{grid-template-columns:repeat(2,1fr)}.badge-library-card{padding:16px 10px}.badge-editor-tabs{flex-wrap:wrap}.badge-editor-tabs button{font-size:11px;min-width:100px}.badge-studio-overview{gap:6px}.badge-studio-overview>div{padding:14px 10px}.badge-studio-overview span{font-size:10px}.badge-studio-overview strong{font-size:23px}html:root .mobile-account .page-tabs button{font-size:10px;padding:9px 7px}.achievement-screen .list-pager button{padding:8px 14px;min-height:35px}}
@media(max-width:800px) and (max-height:700px){.achievement-screen{gap:7px}.achievement-heading .back{margin-bottom:10px}.achievement-heading h1{font-size:26px}.achievement-heading .eyebrow{margin:3px 0 6px;font-size:7px}.achievement-heading p{font-size:10px}.achievement-grid{gap:7px}.achievement-card{min-height:90px;padding:8px 10px;gap:8px}.achievement-card .badge-small{width:62px;height:70px}.achievement-card strong{font-size:13px}.achievement-card p{font-size:9px}.achievement-card small{font-size:6px;margin-bottom:4px}.achievement-note{font-size:8px!important}.achievement-card em{font-size:8px}.achievement-screen .list-pager{margin:0}.badge-detail-sheet .achievement-art{transform:scale(.8);margin:-10px}.badge-detail-sheet .badge-detail{gap:8px}.badge-detail-sheet .badge-detail h2{font-size:22px}.badge-detail-sheet .badge-detail p{font-size:12px}}
@media(prefers-reduced-motion:reduce){.achievement-art,.achievement-card{animation:none!important;transition:none!important}}
html:root body:not(.studio) .trivia-home .native-hero{background:linear-gradient(125deg,#2458f2,#123cba)!important;box-shadow:inset 0 1px 0 #ffffff24!important}html:root body:not(.studio) .trivia-home .hero-play{background:#f3cd70!important}.badge-upload{background:#f4f7fd;border:1px dashed #b8c8e5;border-radius:12px;padding:15px;cursor:pointer;display:flex!important;flex-direction:row!important;align-items:center;justify-content:center;color:#284c8d!important}.badge-upload svg{width:19px;height:19px}.badge-upload input{display:none}html:root .studio-desk-tabs:has(.badge-nav.selected) button:not(.badge-nav){background:transparent!important;color:#dbe4fa!important}html:root .studio-desk-tabs .badge-nav.selected{background:#2556ed!important;color:white!important}.badge-editor-grid{margin-top:18px}.badge-editor-tabs{margin-bottom:18px}
html:root .editorial-studio:has(.badge-editor-grid) .studio-editor-top{display:flex;justify-content:space-between;align-items:center;margin:26px 0;min-height:42px;padding:0}html:root .editorial-studio:has(.badge-editor-grid) .studio-editor-top>.text-button{background:none;border:0;padding:0;justify-content:flex-start;color:#5f7498;min-height:35px;font-size:12px}html:root .editorial-studio:has(.badge-editor-grid) .studio-editor-top>div{display:flex;align-items:center;gap:15px;font-size:11px;color:#6f809a}html:root .editorial-studio:has(.badge-editor-grid) .studio-intro{margin:24px 0}html:root .editorial-studio:has(.badge-editor-grid) .studio-intro h1{font-size:32px;max-width:700px;line-height:1.16}
