:root{color-scheme:dark;--bg:#101110;--panel:#1c1e1b;--ink:#faf9ee;--muted:#a0a397;--gold:#f5d56d;--green:#c5e5b8;--line:#33372f;--red:#f1a293;--dock:90px}*{box-sizing:border-box}html{scroll-behavior:smooth;overscroll-behavior-y:none}body{margin:0;background:var(--bg);color:var(--ink);font-family:Inter,-apple-system,BlinkMacSystemFont,'Segoe UI',Arial,sans-serif;font-size:15px;-webkit-font-smoothing:antialiased;overflow-x:hidden}button,input,select{font:inherit}button,a{touch-action:manipulation;-webkit-tap-highlight-color:transparent}button{cursor:pointer;border:0;border-radius:16px;padding:16px 22px;min-height:48px;background:var(--gold);color:#191c14;font-weight:750;display:inline-flex;align-items:center;justify-content:center;gap:10px;transition:transform .16s,filter .16s}button:active{transform:scale(.97)}button:hover{filter:brightness(1.07)}button:disabled{opacity:.48;cursor:default;transform:none}a{color:inherit;text-decoration:none}a:hover{color:var(--gold)}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible{outline:3px solid var(--gold);outline-offset:4px}svg.ui-icon{width:22px;height:22px;flex-shrink:0;vertical-align:middle}.gold{background:linear-gradient(115deg,#fae296,#f2cc53);color:#202417;box-shadow:0 4px 0 #ac8b37,0 8px 20px #f5d56d0d}.gold:active{box-shadow:0 1px 0 #ac8b37;transform:translateY(3px)}.secondary{background:#242720;color:var(--ink);border:1px solid #42463a}.icon-button{width:44px;height:44px;min-height:44px;padding:0;border:1px solid var(--line);background:#1d201a;color:#babdaf;border-radius:14px}.ambient{position:fixed;pointer-events:none;width:800px;height:600px;top:-400px;left:50%;transform:translateX(-50%);background:#d9b957;opacity:.05;filter:blur(120px);z-index:-1}.app-header{max-width:1040px;margin:auto;padding:22px 40px 14px;display:flex;align-items:center;justify-content:space-between;padding-top:max(22px,env(safe-area-inset-top));height:100px}.app-header img{width:222px;max-height:61px;object-fit:contain}.header-actions{display:flex;gap:12px;align-items:center}.avatar{width:45px;height:45px;min-height:45px;border-radius:50%;padding:0;background:linear-gradient(140deg,#37412a,#202a1b);border:1px solid #637548;color:#d9e7b1;font-size:17px}.playing .app-header{height:78px;max-width:740px}.playing .app-header img{width:185px}.playing .avatar{display:none}main{max-width:1040px;margin:auto;padding:24px 40px 45px;min-height:72vh}.eyebrow{letter-spacing:1.9px;text-transform:uppercase;font-size:10px;font-weight:800;color:var(--muted);line-height:1.6}.centered{text-align:center}.tiny-star{color:var(--gold);font-size:16px;margin-left:8px}h1{font-size:clamp(34px,4vw,46px);letter-spacing:-1.7px;line-height:1.12;font-weight:800;margin:12px 0 20px}h2{font-size:23px;letter-spacing:-.65px;line-height:1.2;margin:12px 0}h3{font-size:20px;letter-spacing:-.3px;margin:12px 0}p{line-height:1.65;color:var(--muted)}.greeting{display:flex;align-items:center;justify-content:space-between;margin-bottom:25px;gap:20px}.greeting h1{margin-bottom:0}.mini-score{display:grid;text-align:center;gap:7px;justify-items:center;background:#1d2118;border:1px solid #323e23;border-radius:20px;padding:18px 25px;min-width:135px}.mini-score svg{color:var(--gold)}.mini-score strong{font-size:27px}.mini-score small{font-size:8px;letter-spacing:1.5px;color:#b4bca7}.home-hero{background:linear-gradient(130deg,#f9e59b,#eed071 68%,#d4ad4e);color:#242719;border-radius:28px;position:relative;overflow:hidden;display:grid;grid-template-columns:1fr 1fr;min-height:340px;border:1px solid #ffe8ab;box-shadow:0 14px 50px #0002}.home-hero:after{content:'';position:absolute;inset:0;background-image:radial-gradient(#4e461323 .65px,transparent .65px);background-size:6px 6px;pointer-events:none;opacity:.4}.hero-copy{padding:32px 38px;position:relative;z-index:1}.pill{font-size:9px;letter-spacing:1.1px;font-weight:800;display:inline-flex;gap:7px;align-items:center;background:#fceab44f;border:1px solid #74642650;border-radius:30px;padding:7px 10px}.pill .ui-icon{width:13px;height:13px}.hero-copy h2{font-size:43px;line-height:1.02;letter-spacing:-1.7px;margin:20px 0 12px}.hero-copy p{color:#4f522e;font-size:14px;line-height:1.5}.hero-play{background:#22291b;color:#fae492;border:1px solid #22291b;box-shadow:0 5px 0 #928247;border-radius:14px;min-width:185px;justify-content:space-between;margin-top:9px}.hero-play:active{box-shadow:0 1px 0 #928247;transform:translateY(4px)}.hero-copy>small{display:block;font-size:8px;letter-spacing:1.4px;font-weight:700;color:#575b36;margin-top:20px}.hero-emblem{position:relative;display:flex;align-items:center;justify-content:center;min-height:320px}.heritage-medal{background:linear-gradient(145deg,#273323,#162010);color:#f7d97b;border-radius:50%;width:195px;height:195px;display:flex;flex-direction:column;align-items:center;justify-content:center;z-index:1;transform:rotate(-10deg);box-shadow:8px 10px 0 #8e793d,10px 12px 30px #4b38154d;border:8px double #d9bc67;animation:medal-float 5s ease-in-out infinite}.heritage-medal span{font-size:7px;letter-spacing:1px}.heritage-medal strong{font-size:57px;font-weight:850;letter-spacing:-2px;line-height:1.5}.heritage-medal small{font-size:12px;letter-spacing:7px;margin-left:7px}.sunburst{position:absolute;width:265px;height:265px;border-radius:50%;background:repeating-conic-gradient(#c09a4840 0deg 2deg,transparent 2deg 12deg);mask-image:radial-gradient(transparent 54%,black 55%,black 68%,transparent 70%);animation:rotate 70s linear infinite}.orbital{position:absolute;border:1px solid #99824045;width:300px;height:300px;border-radius:50%}.o2{width:380px;height:380px}.spark{position:absolute;font-style:normal;color:#4c582b;z-index:1}.s1{font-size:40px;right:40px;top:60px}.s2{font-size:23px;left:32px;bottom:70px}.s3{font-size:30px;right:38px;bottom:68px}.section-head{display:flex;justify-content:space-between;align-items:center;gap:15px;margin:30px 0 17px}.section-head h2{font-size:21px;margin:0}.section-head .muted{font-size:11px}.muted{color:var(--muted)}.modes{display:grid;grid-template-columns:1fr 1fr;gap:15px}.mode{padding:22px 18px;background:#1e241b;border:1px solid #36402c;color:var(--ink);text-align:left;border-radius:21px;justify-content:flex-start;position:relative;gap:14px;min-height:132px}.mode.daily{background:linear-gradient(120deg,#25271c,#1e2119)}.mode.duel{background:linear-gradient(120deg,#202b2c,#1b2220);border-color:#334244}.mode-icon{background:#e8d56e18;color:#ecd576;display:grid;place-items:center;border-radius:14px;width:47px;height:47px;flex-shrink:0}.duel .mode-icon{background:#95dbe317;color:#b0d8d8}.mode small{font-size:8px;letter-spacing:1.5px;color:#bdbb90}.duel small{color:#92baba}.mode h3{margin:8px 0;font-size:19px}.mode p{font-size:11px;font-weight:400;margin:0;max-width:210px;line-height:1.5}.mode .arrow{margin-left:auto;color:#7d8471}.mode .arrow svg{width:16px}.category-list{display:grid;grid-template-columns:repeat(4,1fr);gap:12px}.chip{background:#1d201c;color:var(--ink);border:1px solid #32382c;border-radius:20px;min-height:135px;display:flex;flex-direction:column;align-items:flex-start;padding:20px;gap:9px;position:relative;text-align:left}.chip strong{font-size:13px}.chip small{font-size:10px;color:#a5aa99;font-weight:400}.chip>svg{position:absolute;right:16px;top:20px;width:16px;color:#666e5f}.category-icon{color:#e6ce78;width:35px;height:35px;border-radius:11px;background:#b9ad581b;display:grid;place-items:center}.tone-1 .category-icon{color:#c7d8bc;background:#8dab721f}.tone-2 .category-icon{color:#b9d9dc;background:#7daeb322}.tone-3 .category-icon{color:#d9c2de;background:#a585b020}.banner{background:#1c221b;border:1px solid #333e2b;border-radius:20px;padding:24px;display:flex;align-items:center;justify-content:space-between;gap:20px;margin-top:28px}.banner small{font-size:8px;letter-spacing:1.6px;color:#cfca8c}.banner h3{font-size:19px;margin:8px 0}.banner p{font-size:12px;margin:0}.banner a{display:flex;align-items:center;gap:10px;color:var(--gold);white-space:nowrap;font-size:12px}.mobile-nav{display:flex;position:fixed;bottom:22px;left:50%;transform:translateX(-50%);width:min(480px,calc(100% - 36px));background:#262921ec;border:1px solid #434938;border-radius:26px;box-shadow:0 8px 40px #0008;backdrop-filter:blur(22px);padding:9px 12px;z-index:10;justify-content:space-around;padding-bottom:max(9px,env(safe-area-inset-bottom))}.mobile-nav a{color:#9aa28c;display:grid;justify-items:center;gap:4px;min-width:67px;min-height:53px;align-content:center;position:relative;border-radius:17px}.mobile-nav small{font-size:9px;font-weight:650}.mobile-nav a.active{color:var(--gold);background:#bdab5a17}.mobile-nav a.active:before{content:'';position:absolute;width:20px;height:2px;top:0;background:var(--gold);border-radius:3px}.playing .mobile-nav{display:none}footer{max-width:1040px;margin:auto;padding:18px 40px calc(var(--dock) + 40px);border-top:1px solid #252922;color:#808776;font-size:10px;display:flex;justify-content:space-between;gap:12px}.playing footer{display:none}.screen{animation:screen-enter .32s cubic-bezier(.22,.7,.3,1)}.screen.same-screen{animation:none}.narrow{max-width:660px;margin:auto}.panel{background:#1c201a;border:1px solid var(--line);border-radius:23px;padding:28px}.back{font-size:12px;color:var(--muted);display:inline-flex;margin-bottom:20px}.actions{display:flex;gap:12px;margin:24px 0 0;flex-wrap:wrap}.quiz-toolbar{display:flex;justify-content:space-between;align-items:center;gap:15px}.quiz-toolbar>span{font-size:9px;letter-spacing:1.6px;font-weight:700;color:#a7ad9b}.quiz-toolbar select{font-size:10px!important;padding:10px;border-radius:12px;max-width:105px}.quiz-progress{display:flex;align-items:center;gap:17px;margin:24px 0 20px}.steps{display:flex;flex:1;gap:5px}.steps i{height:5px;flex:1;background:#30392a;border-radius:5px;transition:background .3s}.steps .done{background:var(--gold)}.steps .current{background:#a38d45}.quiz-progress strong{font-size:13px;white-space:nowrap}.quiz-progress strong span{color:#77836d;font-weight:450}.game-status{display:flex;align-items:center;justify-content:space-between;margin:0 0 25px;gap:10px;min-height:32px}.round-points,.streak-label{display:flex;align-items:center;gap:7px;font-size:12px;color:#adb59f}.round-points svg{color:var(--gold);width:17px}.round-points strong{color:var(--gold)}.streak-label svg{width:17px;color:#d6ab66}.question-card{background:linear-gradient(140deg,#20281c,#1b2018);border:1px solid #39452d;border-radius:26px;padding:28px 26px}.question-meta{display:flex;justify-content:space-between;align-items:center;gap:10px}.category-pill{display:flex;align-items:center;gap:7px;color:#d3ddbc;font-size:10px;background:#8aa1661c;border:1px solid #50613b;padding:7px 10px;border-radius:30px}.category-pill svg{width:13px;height:13px}.question-meta>small{font-size:8px;letter-spacing:1.4px;color:#8f9b7f}.question{font-size:30px;line-height:1.23;letter-spacing:-.7px;min-height:84px;margin:27px 0}.answers{display:grid;gap:12px}.answer{background:#2a3322;border:1px solid #48533a;color:var(--ink);text-align:left;justify-content:flex-start;min-height:67px;border-radius:17px;gap:13px;padding:14px 15px;font-weight:550;position:relative;transition:background .18s,border-color .18s,transform .16s,opacity .2s}.answer>b{width:31px;height:31px;flex-shrink:0;font-size:11px;font-weight:700;display:grid;place-items:center;background:#3b452e;border-radius:10px;color:#c6cfae}.answer>span{flex:1;font-size:14px;line-height:1.45}.answer>i{font-style:normal;width:22px}.answer:disabled{opacity:1}.answer.dimmed{opacity:.45}.answer.correct{background:#40572f;border-color:#c3df90;color:#f3ffe7;box-shadow:0 0 22px #c5e88c0e}.answer.correct>b{background:#cbe89b;color:#263218}.answer.correct>i{color:#d7efb6}.answer.wrong{background:#51362c;border-color:#c58c77}.answer.wrong>b{background:#e7ab93;color:#43241d}.answer.wrong>i{color:#ffc6ae}.feedback-zone{min-height:124px;padding:19px 3px 0}.choose-hint{text-align:center;color:#8d9b7e;font-size:11px;display:flex;align-items:center;justify-content:center;gap:8px;margin:12px 0}.choose-hint svg{width:16px}.feedback{display:flex;align-items:center;gap:13px;margin-bottom:18px}.feedback-icon{width:42px;height:42px;flex-shrink:0;background:#a6ce791f;border:1px solid #547837;border-radius:13px;display:grid;place-items:center;color:#cae7a8}.feedback.negative .feedback-icon{background:#e8b59813;border-color:#674336;color:#edb49b}.feedback strong{font-size:16px;color:#d5eab5}.feedback.negative strong{color:#edc7b5}.feedback p{margin:3px 0 0;font-size:12px;color:#a2b889;line-height:1.5}.feedback.negative p{color:#c7ab96}.next-button{width:100%;justify-content:space-between;min-height:55px;border-radius:16px}.content-note{text-align:center;font-size:9px;color:#777f6c;line-height:1.7;margin:25px 20px}.playing main{padding-top:12px;padding-bottom:max(24px,env(safe-area-inset-bottom))}.results{text-align:center;position:relative}.results>.back{position:absolute;top:0;left:0}.result-medal{height:150px;position:relative;display:grid;place-items:center;margin:0 auto 8px;width:220px}.medal-halo{position:absolute;width:150px;height:150px;border-radius:50%;border:1px solid #e4ce682c;box-shadow:0 0 0 16px #e4ce6806,0 0 0 32px #e4ce6803}.medal-body{position:relative;width:108px;height:108px;display:grid;place-items:center;border-radius:30px;background:linear-gradient(135deg,#faeab6,#dab951);box-shadow:0 9px 0 #9e8131,0 20px 30px #dfc26720;transform:rotate(-8deg);animation:medal-in .55s cubic-bezier(.2,1.7,.5,1)}.medal-body svg{width:58px;height:58px;color:#4c4826;stroke-width:1.3}.medal-body.loss,.medal-body.learn{background:linear-gradient(135deg,#d5e0c1,#879c71);box-shadow:0 9px 0 #536348,0 20px 30px #9fb98315}.medal-body.draw{background:linear-gradient(135deg,#d4e6e8,#84a7ab);box-shadow:0 9px 0 #426168}.medal-spark{position:absolute;color:#e6cc72;font-size:22px}.medal-spark.one{left:22px;top:30px}.medal-spark.two{right:22px;bottom:30px;font-size:16px}.results h1{font-size:34px;max-width:390px;margin:16px auto 13px;letter-spacing:-1px}.result-subtitle{font-size:13px;max-width:380px;margin:0 auto}.score-orbit{width:210px;height:210px;position:relative;margin:25px auto 18px}.score-orbit svg{width:100%;height:100%;transform:rotate(-90deg);overflow:visible}.orbit-track,.orbit-value{fill:none;stroke-width:5}.orbit-track{stroke:#303b26}.orbit-value{stroke:#f2d577;stroke-linecap:round;stroke-dasharray:496.4;stroke-dashoffset:calc(496.4*(1 - var(--score)/100));animation:draw-ring 1.1s ease-out}.score-orbit>div{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:6px}.percent{font-size:64px;font-weight:800;letter-spacing:-2px;color:var(--gold)}.percent span{font-size:35px;font-weight:600;margin-left:2px}.score-orbit small{font-size:8px;letter-spacing:2px;color:#aeb79d}.result-metrics{display:grid;grid-template-columns:1fr 1fr;max-width:350px;margin:0 auto 26px}.result-metrics>div{display:grid;gap:6px}.result-metrics>div+div{border-left:1px solid #3a4230}.result-metrics strong{font-size:28px;color:#e9ecd9}.result-metrics span{font-size:17px;color:#889978}.result-metrics small{font-size:8px;letter-spacing:1.3px;color:#8c9b7b}.result-replay{width:100%;justify-content:space-between}.share-actions{margin-top:16px;flex-wrap:nowrap}.share-actions button{flex:1;font-size:12px;padding:13px}.share-actions svg{width:17px}.breakdown{margin-top:30px;padding:24px;background:#1a2117;border:1px solid #333f29;border-radius:22px;text-align:left}.breakdown .section-head{margin:0 0 22px}.breakdown .section-head h2{font-size:20px}.breakdown .section-head span{font-size:8px;letter-spacing:1px}.category-result{display:flex;gap:14px;align-items:center;margin:17px 0}.category-result>span{color:#b9c79c;width:30px}.category-result>div{flex:1}.category-result strong{font-size:12px;font-weight:550}.category-result>b{font-size:12px;color:#bfcba8}.bar{height:4px;background:#344129;border-radius:5px;margin-top:10px;overflow:hidden}.bar i{display:block;background:#a6c17a;height:100%;border-radius:5px}.duel-result{display:flex;gap:25px;align-items:center;justify-content:center;margin:25px 0}.duel-result>div{display:grid;justify-items:center;gap:7px;min-width:100px}.duel-result strong{font-size:12px}.duel-result span{font-size:22px;color:#d5debf}.lobby{text-align:center;position:relative}.lobby>.back{position:absolute;left:0;top:0}.lobby-emblem{margin:15px auto 25px;width:95px;height:95px;background:linear-gradient(135deg,#394238,#1d2a23);color:#dce6c2;border:1px solid #546444;border-radius:27px;display:grid;place-items:center;transform:rotate(-7deg);box-shadow:0 6px 0 #151e13}.lobby-emblem svg{width:47px;height:47px}.lobby h1{font-size:40px;margin:16px 0}.lobby>p{font-size:13px}.code-label{font-size:8px;letter-spacing:2px;color:#87967a;margin-top:30px}.room-code{font-size:45px;letter-spacing:8px;font-weight:800;color:var(--gold);margin:12px 0 28px;user-select:all}.lobby-players{display:flex;justify-content:center;align-items:center;gap:32px;margin:24px 0 32px}.lobby-player{display:grid;justify-items:center;gap:9px;min-width:105px;max-width:150px}.player-avatar{width:65px;height:65px;min-height:65px;border-radius:22px;background:#303d27;border:1px solid #526841;color:#d7e9b2;display:grid;place-items:center;font-size:25px;font-weight:700;position:relative}.player-avatar.ready{border-color:#d6e698}.player-avatar.ready:after{content:'✓';position:absolute;right:-5px;bottom:-5px;width:22px;height:22px;border-radius:50%;background:#d8eab1;color:#35412b;font-size:12px;border:3px solid var(--bg);display:grid;place-items:center}.player-avatar.waiting{border-style:dashed;color:#708360;background:transparent}.lobby-player>strong{font-size:13px;overflow-wrap:anywhere}.lobby-player>span{font-size:10px;color:#91a37e}.vs{font-size:11px;font-weight:800;color:#68765b;letter-spacing:1px}.lobby .actions{justify-content:center}.lobby .actions button{min-width:160px}.competitor{display:flex;align-items:center;gap:7px;color:#a7b899;font-size:10px;max-width:44%;overflow:hidden}.competitor b{width:27px;height:27px;border-radius:9px;display:grid;place-items:center;background:#303f28;flex-shrink:0}.competitor strong{font-size:16px;color:#e3eccf}.competitor i{font-style:normal;color:var(--gold)}.stats{display:grid;grid-template-columns:repeat(4,1fr);gap:14px;margin:24px 0}.stat{padding:20px;border:1px solid var(--line);background:var(--panel);border-radius:16px}.stat strong{display:block;font-size:30px;margin-bottom:8px;color:var(--gold)}.stat small{color:var(--muted);font-size:10px}.form{display:grid;gap:16px}label{display:grid;gap:8px;font-size:12px;color:#bdc5af;font-weight:600}input,select{background:#252b20;border:1px solid #4a553d;color:var(--ink);width:100%;padding:13px 14px;border-radius:12px;min-height:44px}input::placeholder{color:#7e8d70}select{cursor:pointer}.check{display:flex;align-items:center;gap:9px}.check input{width:18px;min-height:18px;accent-color:var(--gold)}.split{display:grid;grid-template-columns:1fr 1fr;gap:24px}.studio-grid{display:grid;grid-template-columns:1fr 1.2fr;gap:24px}.studio-tabs{display:flex;gap:10px;margin:25px 0;flex-wrap:wrap}.studio-tabs button{font-size:12px}.question-list{max-height:560px;overflow:auto}.q-row{padding:16px 0;border-bottom:1px solid var(--line);display:flex;justify-content:space-between;gap:14px}.q-row p{font-size:12px;color:#d4ddc5;margin:6px 0}.q-row small{font-size:9px;color:#8a9a78}.q-row button{padding:9px;font-size:10px;min-height:36px;border-radius:10px}.notice{padding:13px 15px;background:#252e1f;border:1px solid #36442b;border-radius:13px;color:#95a785;font-size:10px;line-height:1.65}.table-wrap{overflow:auto;border:1px solid var(--line);border-radius:18px}table{width:100%;border-collapse:collapse;text-align:left;background:var(--panel)}th,td{padding:18px;border-bottom:1px solid var(--line)}th{font-size:9px;letter-spacing:1px;color:#9cae89;text-transform:uppercase}td{font-size:13px}td small{color:#8c9c7b}.empty{padding:40px;text-align:center}.player-row{padding:17px;background:#252e20;border:1px solid #36452b;border-radius:14px;margin:12px 0;display:flex;justify-content:space-between;gap:15px}.player-row small{font-size:10px;color:#90a27b}.shop{display:grid;grid-template-columns:.8fr 1fr;gap:50px;align-items:center}.shop img{height:400px;max-width:100%;object-fit:contain;margin:auto;display:block}dialog{border:1px solid #4b5940;border-radius:28px;padding:28px;max-width:450px;width:calc(100% - 36px);background:#242b1f;color:var(--ink);box-shadow:0 30px 100px #0008}dialog::backdrop{background:#070b05bb;backdrop-filter:blur(8px)}dialog h2{font-size:26px}dialog p{font-size:13px}.dialog-icon{color:var(--gold)}dialog .actions button{flex:1;font-size:12px}#toast{position:fixed;bottom:calc(110px + env(safe-area-inset-bottom));left:50%;transform:translateX(-50%);background:#e8eadb;color:#293220;border:1px solid #fff6;padding:13px 20px;border-radius:15px;font-size:12px;z-index:30;display:none;max-width:90%;box-shadow:0 10px 35px #0008}.playing #toast{bottom:24px}#fx{position:fixed;inset:0;pointer-events:none;z-index:25;overflow:hidden}.confetti{position:absolute;left:var(--x);top:-15px;width:7px;height:12px;border-radius:1px;animation:confetti-fall var(--duration) var(--delay) ease-out forwards}.confetti.mini{top:35vh;width:5px;height:7px;animation-name:confetti-burst}#countdown{display:none;position:fixed;inset:0;background:#11190bee;backdrop-filter:blur(14px);z-index:28;align-items:center;justify-content:center;text-align:center}#countdown.visible{display:flex}.countdown-copy small{font-size:10px;letter-spacing:3px;color:#baca9a}.countdown-copy strong{font-size:100px;display:block;color:var(--gold);letter-spacing:-4px;animation:count-bounce .6s ease-out}.countdown-copy p{font-size:13px;color:#a9ba8f}.answer-pop{animation:answer-pop .4s ease}.answer-shake{animation:answer-shake .35s ease}.feedback-enter{animation:feedback-up .3s ease}.waiting-dots{animation:breathe 1.5s ease-in-out infinite}@keyframes screen-enter{from{opacity:0;transform:translateX(14px)}to{opacity:1;transform:none}}@keyframes answer-pop{50%{transform:scale(1.025)}}@keyframes answer-shake{20%,60%{transform:translateX(-5px)}40%,80%{transform:translateX(5px)}}@keyframes feedback-up{from{opacity:0;transform:translateY(15px)}to{opacity:1;transform:none}}@keyframes medal-in{from{opacity:0;transform:translateY(25px) rotate(-15deg) scale(.7)}to{opacity:1;transform:rotate(-8deg)}}@keyframes draw-ring{from{stroke-dashoffset:496.4}}@keyframes confetti-fall{to{transform:translate(var(--drift),105vh) rotate(var(--spin));opacity:0}}@keyframes confetti-burst{0%{transform:translate(0,-20px);opacity:1}to{transform:translate(var(--drift),45vh) rotate(var(--spin));opacity:0}}@keyframes medal-float{50%{transform:translateY(-7px) rotate(-7deg)}}@keyframes rotate{to{transform:rotate(360deg)}}@keyframes count-bounce{from{transform:scale(.65);opacity:0}to{transform:scale(1);opacity:1}}@keyframes breathe{50%{opacity:.4}}@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}*,*:before,*:after{animation:none!important;transition:none!important}.screen{opacity:1;transform:none}}
@media(min-width:900px){.game-screen{padding-top:12px}.results{padding-top:10px}.results>.back{top:10px}.home-hero{min-height:345px}.hero-copy{padding-left:36px}.hero-copy h2{font-size:47px}.mobile-nav{bottom:18px}.studio .mobile-nav{display:none}.studio footer{padding-bottom:30px}.studio main{max-width:1250px}.studio .app-header{max-width:1250px}}
@media(max-width:800px){.app-header{padding:18px 24px 10px;height:86px}.app-header img{width:190px}.header-actions{gap:9px}.icon-button{width:40px;height:40px;min-height:40px}.avatar{width:40px;height:40px;min-height:40px}.avatar,.header-actions .icon-button{font-size:14px}main{padding:20px 24px 30px}.greeting h1{font-size:33px}.mini-score{padding:15px;min-width:115px}.home-hero{min-height:310px}.hero-copy{padding:26px}.hero-copy h2{font-size:37px}.hero-emblem{min-height:290px}.heritage-medal{width:155px;height:155px}.heritage-medal strong{font-size:45px}.heritage-medal span{font-size:5px}.heritage-medal small{font-size:10px;letter-spacing:5px}.sunburst{width:220px;height:220px}.o1{width:250px;height:250px}.o2{width:320px;height:320px}.mode{padding:20px 16px;gap:12px}.mode h3{font-size:17px}.mode-icon{width:38px;height:38px}.category-list{grid-template-columns:repeat(4,1fr)}.chip{padding:15px;min-height:120px}.chip strong{font-size:11px}.studio-grid{grid-template-columns:1fr}.stats{grid-template-columns:repeat(2,1fr)}footer{padding-left:24px;padding-right:24px}.banner{padding:20px}.shop{gap:25px}}
@media(max-width:560px){.app-header{padding:18px 22px 12px;height:82px;padding-top:max(18px,env(safe-area-inset-top))}.app-header img{width:168px}.header-actions .ui-icon{width:18px;height:18px}.app-header .icon-button{border:0;background:transparent}.greeting{margin-bottom:22px;gap:14px}.greeting h1{font-size:28px;letter-spacing:-1px}.greeting .eyebrow{font-size:8px;letter-spacing:1.4px}.mini-score{min-width:90px;padding:12px;border-radius:17px;gap:4px}.mini-score strong{font-size:22px}.mini-score svg{width:17px}.mini-score small{font-size:6px;letter-spacing:1px}main{padding:12px 22px 26px}.home-hero{border-radius:25px;min-height:280px;grid-template-columns:1.25fr .85fr;overflow:hidden}.hero-copy{padding:23px 0 24px 22px}.hero-copy h2{font-size:35px;letter-spacing:-1.3px;margin:17px 0 12px}.hero-copy p{font-size:11px;line-height:1.5;max-width:190px}.pill{font-size:6px;letter-spacing:.7px;padding:6px 7px;gap:4px}.pill .ui-icon{width:10px;height:10px}.hero-play{min-width:168px;min-height:49px;font-size:12px;padding:13px 15px;margin-top:11px;gap:10px}.hero-play svg{width:19px}.hero-copy>small{font-size:6px;letter-spacing:.8px;margin-top:14px;white-space:nowrap}.hero-emblem{min-height:280px;transform:translateX(16px)}.heritage-medal{width:128px;height:128px;border-width:6px;box-shadow:6px 7px 0 #8e793d,8px 10px 23px #4b381540}.heritage-medal strong{font-size:36px;line-height:1.55}.heritage-medal span{font-size:4px;letter-spacing:.65px}.heritage-medal small{font-size:8px;letter-spacing:4px}.sunburst{width:173px;height:173px}.o1{width:203px;height:203px}.o2{width:265px;height:265px}.s1{right:13px;top:30px;font-size:24px}.s2{left:14px;bottom:37px;font-size:19px}.s3{right:7px;bottom:46px;font-size:19px}.section-head{margin:27px 0 15px}.section-head h2{font-size:19px;letter-spacing:-.6px}.section-head .muted{font-size:9px;white-space:nowrap}.modes{grid-template-columns:1fr;gap:12px}.mode{min-height:104px;padding:20px;gap:15px;border-radius:20px}.mode-icon{width:44px;height:44px;border-radius:13px}.mode h3{font-size:18px;margin:6px 0}.mode small{font-size:7px}.mode p{font-size:10px;max-width:210px}.mode .arrow svg{width:15px}.category-list{grid-template-columns:repeat(2,1fr);gap:12px}.chip{min-height:126px;padding:18px;border-radius:20px;gap:7px}.chip strong{font-size:12px}.chip small{font-size:9px}.category-icon{width:33px;height:33px;margin-bottom:3px}.chip>svg{top:20px;right:16px}.banner{align-items:flex-start;flex-direction:column;gap:15px}.banner h3{font-size:16px}.banner p{font-size:11px}.banner a{font-size:11px}.mobile-nav{bottom:12px;border-radius:25px;width:calc(100% - 30px)}footer{font-size:8px;padding:18px 22px calc(105px + env(safe-area-inset-bottom));flex-wrap:wrap}.playing .app-header{height:71px;padding:16px 22px 10px}.playing .app-header img{width:158px}.playing main{padding:5px 20px max(24px,env(safe-area-inset-bottom))}.quiz-toolbar{gap:10px}.quiz-toolbar .icon-button{width:34px;height:34px;min-height:34px;border-radius:11px}.quiz-toolbar .icon-button svg{width:17px}.quiz-toolbar>span{font-size:8px;letter-spacing:1.1px}.quiz-toolbar select{max-width:87px;min-height:33px;padding:7px 9px;font-size:9px!important}.quiz-progress{margin:19px 0 18px;gap:12px}.quiz-progress strong{font-size:11px}.steps{gap:4px}.steps i{height:4px}.game-status{margin-bottom:18px;min-height:25px}.round-points,.streak-label{font-size:10px;gap:6px}.round-points svg,.streak-label svg{width:15px;height:15px}.question-card{padding:23px 19px;border-radius:24px}.question-meta{gap:7px}.category-pill{font-size:9px;padding:6px 8px;gap:5px}.category-pill svg{width:11px;height:11px}.question-meta>small{font-size:7px;letter-spacing:.8px}.question{font-size:25px;line-height:1.23;letter-spacing:-.6px;min-height:66px;margin:24px 0}.answers{gap:11px}.answer{min-height:63px;padding:12px;border-radius:15px;gap:11px}.answer>b{width:29px;height:29px;border-radius:9px;font-size:10px}.answer>span{font-size:12px;line-height:1.45}.answer>i{width:18px}.answer>i svg{width:18px;height:18px}.feedback-zone{padding:17px 1px 0;min-height:95px}.feedback-icon{width:38px;height:38px;min-height:38px;border-radius:12px}.feedback-icon svg{width:18px;height:18px}.feedback strong{font-size:14px}.feedback p{font-size:10px;margin-top:3px}.feedback{gap:11px;margin-bottom:15px}.next-button{font-size:13px;min-height:52px;padding:14px 18px}.content-note{font-size:8px;margin:20px 15px 10px}.results h1{font-size:29px;margin-top:14px;max-width:290px}.result-subtitle{font-size:12px;max-width:300px}.result-medal{height:130px;margin-bottom:7px;width:185px}.medal-halo{width:128px;height:128px}.medal-body{width:90px;height:90px;border-radius:26px}.medal-body svg{width:48px;height:48px}.result-medal .one{left:15px;top:15px}.result-medal .two{right:16px;bottom:20px}.results>.back{top:4px}.results .eyebrow{font-size:8px}.score-orbit{width:185px;height:185px;margin:24px auto 17px}.percent{font-size:60px}.percent span{font-size:29px}.result-metrics strong{font-size:26px}.result-metrics small{font-size:7px}.result-replay{font-size:13px;min-height:54px;padding:15px}.result-replay svg{width:18px}.share-actions{gap:10px}.share-actions button{font-size:10px;padding:12px 7px;min-height:45px;gap:7px;border-radius:13px}.share-actions svg{width:16px}.breakdown{padding:20px;margin-top:25px}.breakdown .section-head h2{font-size:18px}.breakdown .section-head span{font-size:7px}.lobby h1{font-size:35px}.lobby .room-code{font-size:36px;letter-spacing:6px}.lobby-players{gap:22px}.lobby .actions{gap:10px}.lobby .actions button{min-width:0;flex:1;font-size:12px;padding:14px 10px}.lobby .actions svg{width:17px}.panel{padding:23px}.split,.shop{grid-template-columns:1fr}.shop{gap:25px}.shop img{height:300px}.studio-tabs button{font-size:10px;padding:13px}.stats{gap:10px}.stat{padding:15px}.stat strong{font-size:24px}.stat small{font-size:9px}th,td{padding:13px 12px}.table-wrap td{font-size:11px}.table-wrap th{font-size:8px}.table-wrap td small{font-size:9px}.q-row>div:last-child{flex-direction:column}.q-row p{font-size:11px}.actions button{font-size:12px}.competitor{font-size:9px}.competitor strong{font-size:14px}.greeting+.home-hero{} }
@media(max-width:360px){main{padding-left:16px;padding-right:16px}.app-header{padding-left:16px;padding-right:16px}.hero-copy{padding-left:17px}.hero-play{min-width:146px;font-size:11px}.hero-copy h2{font-size:32px}.hero-emblem{transform:translateX(17px)}.heritage-medal{width:114px;height:114px}.heritage-medal strong{font-size:32px}.greeting h1{font-size:25px}.mini-score{min-width:80px;padding:10px}.playing main{padding-left:16px;padding-right:16px}.question{font-size:23px}}
.friends-screen>p,.rankings>p{font-size:13px;max-width:420px}.versus-art{height:170px;display:flex;align-items:center;justify-content:center;gap:35px;position:relative}.versus-art .player-avatar{width:80px;height:80px;font-size:35px;transform:rotate(-8deg);background:#c0d792;color:#304124;border:4px solid #e0edb5;box-shadow:0 7px 0 #627643}.versus-art .rival{transform:rotate(8deg);background:#d5c198;color:#4c402c;border-color:#eeddb5;box-shadow:0 7px 0 #8b7956}.versus-art>span{color:var(--gold)}.versus-art>span svg{width:40px;height:40px}.versus-art>i{position:absolute;bottom:5px;font-style:normal;letter-spacing:3px;color:#87976c;font-size:10px}.invite-panel{margin-top:20px;background:linear-gradient(145deg,#2b351f,#1d2618);text-align:center;border-color:#4c5c33}.invite-panel .pill{background:#dacb6520;border-color:#8b884944;color:#e1d58e}.invite-panel h2{font-size:29px;margin:20px 0 10px}.invite-panel p{font-size:12px}.invite-panel>button{width:100%;justify-content:space-between;margin-top:10px}.divider{margin:27px 0;text-align:center;border-bottom:1px solid #37422c;height:8px}.divider span{background:var(--bg);padding:0 15px;font-size:8px;letter-spacing:1.6px;color:#8a9a77;position:relative;top:-6px}.code-input{font-size:25px;letter-spacing:6px;text-align:center;padding:19px;text-transform:uppercase}.podium{display:flex;justify-content:center;align-items:flex-end;gap:15px;margin:38px 0 30px;min-height:190px}.podium-player{display:grid;justify-items:center;gap:7px;max-width:31%;text-align:center}.podium-player .player-avatar{width:61px;height:61px;min-height:61px;font-size:23px;margin-bottom:8px;border-radius:21px;position:relative}.podium-player .player-avatar>span{position:absolute;bottom:-10px;left:50%;transform:translateX(-50%);width:22px;height:22px;border-radius:7px;background:#6e8255;color:#f0f5d7;font-size:10px;display:grid;place-items:center;border:2px solid var(--bg)}.podium-player.place-1 .player-avatar{width:80px;height:80px;min-height:80px;background:linear-gradient(145deg,#f7df8f,#bb9b48);color:#423f24;border:2px solid #fae8a2}.podium-player.place-1 .player-avatar>span{background:var(--gold);color:#342f1e}.podium-player.place-1>svg{color:var(--gold);margin-bottom:4px}.podium-player strong{font-size:12px;overflow-wrap:anywhere}.podium-player small{font-size:10px;color:#98aa84}.podium-player>b{font-size:22px;color:#e8deb1;margin-top:2px}.podium-player>span{font-size:7px;letter-spacing:1.5px;color:#8c9c77}.rank-list{border:1px solid #3a452e;border-radius:21px;background:#1d2519;overflow:hidden}.rank-row{display:flex;gap:13px;align-items:center;padding:18px;border-bottom:1px solid #343f29}.rank-row:last-child{border:0}.rank-number{font-size:11px;color:#8a9c73;width:18px}.rank-avatar{display:grid;place-items:center;width:38px;height:38px;border-radius:12px;background:#3c4a2e;color:#d5e3b7;flex-shrink:0}.rank-avatar svg{width:18px;height:18px}.rank-row>div{flex:1;min-width:0;display:grid;gap:4px}.rank-row strong{font-size:12px;overflow-wrap:anywhere}.rank-row small{font-size:9px;color:#91a27b}.rank-points{display:grid;gap:5px;text-align:right;flex-shrink:0}.rank-points strong{color:var(--gold);font-size:16px}.rank-points small{font-size:8px}.empty-trophy{color:var(--gold);margin:20px auto 25px}.empty-trophy svg{width:65px;height:65px}.empty h2{font-size:26px}.profile-identity{display:flex;align-items:center;gap:22px;margin:16px 0 30px}.profile-avatar{width:90px;height:90px;border-radius:27px;background:linear-gradient(140deg,#d5e9a1,#728856);color:#304221;display:grid;place-items:center;font-size:42px;font-weight:800;border:1px solid #c7d6a0;box-shadow:0 6px 0 #354728;flex-shrink:0}.profile-identity h1{font-size:36px;margin:8px 0}.profile-identity p{display:flex;align-items:center;gap:7px;margin:0;font-size:12px}.profile-identity p svg{width:13px;height:13px}.profile-identity .eyebrow{font-size:8px;letter-spacing:1.2px}.profile-stats{display:grid;grid-template-columns:1fr 1fr;border:1px solid #3d492f;border-radius:21px;background:#242c1d;padding:23px}.profile-stats>div{display:grid;justify-items:center;gap:10px}.profile-stats>div+div{border-left:1px solid #404d32}.profile-stats svg{color:#d7cb88;width:20px}.profile-stats strong{font-size:30px}.profile-stats small{font-size:7px;letter-spacing:1.4px;color:#95a67e}.outcome-loss .medal-body{animation:loss-medal .75s cubic-bezier(.2,.8,.2,1)}@keyframes loss-medal{0%{opacity:0;transform:translateY(-15px) rotate(-18deg)}40%{transform:rotate(12deg)}65%{transform:rotate(-12deg)}100%{opacity:1;transform:rotate(-8deg)}}@media(max-width:560px){.profile-identity{gap:17px}.profile-identity h1{font-size:30px}.profile-avatar{width:73px;height:73px;font-size:33px;border-radius:24px}.profile-identity .eyebrow{font-size:7px;letter-spacing:.9px}.rank-row{padding:16px;gap:11px}.rank-row strong{font-size:11px}.rank-row small{font-size:8px}.rank-points strong{font-size:15px}.rank-points small{font-size:7px}.invite-panel h2{font-size:26px}.friends-screen h1,.rankings h1{font-size:35px}.podium-player .player-avatar{width:51px;height:51px;min-height:51px}.podium-player.place-1 .player-avatar{width:71px;height:71px;min-height:71px}.podium-player strong{font-size:10px}.podium-player small{font-size:8px}.podium-player>b{font-size:20px}.versus-art{height:150px}.versus-art .player-avatar{width:70px;height:70px;font-size:29px}.profile-stats strong{font-size:27px}}
.answer.pending{border-color:var(--gold);background:#3c432b}.answer.pending>i:after{content:'';display:block;width:17px;height:17px;border:2px solid #ecd97855;border-top-color:var(--gold);border-radius:50%;animation:rotate .7s linear infinite}@media(max-width:560px){dialog{position:fixed;inset:auto 0 0;margin:0;width:100%;max-width:none;padding:30px 25px max(30px,env(safe-area-inset-bottom));border-radius:28px 28px 0 0;border-bottom:0;border-left:0;border-right:0;animation:feedback-up .25s ease}dialog:before{content:'';display:block;width:38px;height:4px;background:#606b51;border-radius:6px;margin:-15px auto 25px}}
@media(max-width:800px){body.keyboard-open .mobile-nav{display:none}body.keyboard-open #toast{bottom:20px}}
/* V3: deliberate pre-play choices, saved rounds and a learning-first recap. */
.resume-card{width:100%;text-align:left;justify-content:flex-start;padding:19px 22px;margin:24px 0 0;border:1px solid #64724d;background:linear-gradient(110deg,#2a3421,#1b2118);color:var(--ink);box-shadow:0 8px 24px #0002}.resume-card>div{display:grid;gap:6px;flex:1}.resume-card small{font-size:8px;letter-spacing:1.4px;color:var(--gold)}.resume-card strong{font-size:16px}.resume-card span:not(.resume-icon){font-size:11px;color:var(--muted)}.resume-icon{width:43px;height:43px;display:grid;place-items:center;background:#455133;border-radius:14px;color:var(--gold)}
dialog.setup-sheet,dialog.review-sheet{width:min(570px,calc(100% - 36px));max-height:88dvh;overflow-y:auto;padding:28px;border-radius:26px;scrollbar-width:thin;overscroll-behavior:contain}.sheet-top{display:flex;justify-content:space-between;align-items:center;gap:16px;margin-bottom:20px}.sheet-top .eyebrow{font-size:9px;line-height:1.6}.sheet-top .icon-button{width:36px;height:36px;min-height:36px;flex-shrink:0}.setup-sheet h2,.review-sheet h2{font-size:30px;line-height:1.12;letter-spacing:-1px;margin:0 0 12px}.setup-intro{color:var(--muted);font-size:13px;line-height:1.7;margin:0 0 23px}.setup-label{display:block;font-size:9px;letter-spacing:1.5px;color:var(--muted);font-weight:700;margin:20px 0 11px}.topic-options{display:grid;grid-template-columns:1fr 1fr;gap:8px}.topic-option{cursor:pointer;position:relative}.topic-option:first-child{grid-column:1/-1}.topic-option input,.language-picker input{position:absolute;opacity:0;width:1px;height:1px}.topic-option>span{display:flex;align-items:center;gap:9px;padding:14px 12px;min-height:53px;border:1px solid #41483a;border-radius:13px;background:#20251c;color:#c6ccbd;transition:background .18s,border-color .18s}.topic-option strong{font-size:11px;flex:1}.topic-option svg{width:18px;height:18px}.topic-option svg:last-child{width:15px;opacity:0}.topic-option input:checked+span{border-color:var(--gold);background:#3a3a22;color:#f9e6a3}.topic-option input:checked+span svg:last-child{opacity:1}.topic-option input:focus-visible+span,.language-picker input:focus-visible+span{outline:3px solid var(--gold);outline-offset:3px}.language-picker{display:flex;gap:6px;background:#141813;border:1px solid #343c2e;border-radius:14px;padding:5px}.language-picker label{flex:1;position:relative;cursor:pointer}.language-picker span{display:block;text-align:center;padding:12px 4px;font-weight:650;font-size:12px;border-radius:9px;color:var(--muted)}.language-picker input:checked+span{background:#3c482e;color:#e4edcf;box-shadow:0 2px 8px #0004}.round-facts{display:flex;justify-content:center;gap:22px;margin:23px 0;color:#b1bca3;font-size:11px}.round-facts span{display:flex;align-items:center;gap:7px}.round-facts svg{width:16px;height:16px}.round-facts b{font-weight:inherit}.setup-play{width:100%;margin-bottom:6px}.setup-note{display:block;text-align:center;font-size:10px;color:#a3ad98;line-height:1.5;margin:13px 0 0}.copy-code{background:transparent;color:var(--gold);border:0;min-height:60px;padding:0 8px;display:flex;margin:0 auto 8px}.copy-code svg{width:19px;height:19px;color:#9da887}.review-button{width:100%;margin:24px 0 0;justify-content:flex-start}.review-button svg:last-child{margin-left:auto}.review-tabs{display:flex;gap:8px;margin-bottom:20px}.review-tabs button{flex:1;min-height:45px;padding:12px 7px;font-size:12px}.review-tabs b{font-size:10px;border-radius:20px;padding:3px 6px;background:#0002}.review-list{display:grid;gap:12px}.review-item{padding:18px;border:1px solid #3c4533;background:#1c2418;border-radius:18px}.review-meta{display:flex;justify-content:space-between;align-items:center;gap:8px;color:#a4b292;font-size:9px}.review-meta b{display:flex;align-items:center;gap:4px;font-weight:600;white-space:nowrap}.review-meta svg{width:13px;height:13px}.review-item h3{font-size:16px;line-height:1.5;margin:15px 0;font-weight:650}.your-answer{font-size:12px;color:#d0aaa0;text-decoration:line-through;line-height:1.5}.review-answer{display:flex;align-items:center;gap:10px;padding:12px;border-radius:11px;background:#304127;color:#dceacb;font-size:13px;line-height:1.5}.review-answer svg{width:17px;height:17px}.review-missed{background:#25231c;border-color:#4d4534}.review-missed .review-meta b{color:#e1ba90}.review-empty{text-align:center;padding:35px 12px}.review-empty>svg{width:40px;height:40px;color:var(--gold)}.review-empty p{color:var(--muted);font-size:13px}.review-sheet .setup-play{margin-top:22px}
@media(max-width:560px){dialog.setup-sheet,dialog.review-sheet{width:100%;max-height:91dvh;margin:0;inset:auto 0 0;border-radius:28px 28px 0 0;padding:25px 22px max(25px,env(safe-area-inset-bottom))}.setup-sheet h2,.review-sheet h2{font-size:28px}.topic-option>span{padding:13px 10px}.topic-option strong{font-size:10px}.resume-card{padding:16px;gap:12px}.resume-card strong{font-size:14px}.resume-card small{font-size:7px;letter-spacing:1px}.review-meta{font-size:8px}}
/* V4 account gate, saved progression and public arena. */
.account-gate .mobile-nav,.account-gate .header-actions,.account-gate footer>a:first-of-type{display:none}.account-gate main{max-width:740px}.account-gate footer{padding-bottom:25px}.auth-screen{text-align:center;max-width:450px}.auth-screen h1{font-size:44px;line-height:1.06;letter-spacing:-2px;margin:16px 0}.auth-screen>p{font-size:13px;line-height:1.7;color:var(--muted)}.auth-screen .form{text-align:left}.auth-screen .review-tabs{margin:20px 0 12px}.auth-languages{margin:22px 0}.auth-art{position:relative;display:grid;place-items:center;height:180px}.auth-art .heritage-medal{position:relative;width:145px;height:145px;transform:rotate(-8deg);box-shadow:0 8px 0 #8d7c38,0 0 80px #d8c35520}.auth-art .heritage-medal strong{font-size:44px}.auth-art .heritage-medal span{font-size:6px}.auth-art i{position:absolute;color:var(--gold);font-size:30px;right:25%;top:18px}.password-field{position:relative}.password-field input{padding-right:72px}.password-toggle{position:absolute;right:4px;top:4px;background:none;color:#bac8a2;padding:8px;min-height:38px;font-size:11px}.form-error{color:#ffc0ae;background:#563326;padding:12px;border-radius:10px;font-size:12px;line-height:1.6;margin:0}.form-error[hidden]{display:none}.onboarding{max-width:510px}.onboarding h1{font-size:41px;letter-spacing:-1.6px;line-height:1.1;margin:20px 0}.onboarding-steps{display:flex;gap:7px;align-items:center;margin:10px 0 38px}.onboarding-steps>span{height:4px;flex:1;background:#323b2b;border-radius:5px}.onboarding-steps>span.active{background:var(--gold)}.onboarding-steps small{color:var(--muted);font-size:10px;margin-left:10px}.onboard-promise{display:flex;align-items:center;justify-content:center;gap:10px;color:#b1bf9b;font-size:12px;padding:26px 0}.text-button{display:block;margin:20px auto;background:none;color:var(--muted);font-size:12px}.interest-fieldset{margin:0;border:0;padding:0;min-width:0}.interest-fieldset legend{font-size:12px;line-height:1.5;margin-bottom:10px;color:#bdc8ad}.interest-grid{display:grid;grid-template-columns:1fr 1fr;gap:8px}.interest-grid label{position:relative;cursor:pointer}.interest-grid input{position:absolute;opacity:0;width:1px;height:1px}.interest-grid span{display:flex;align-items:center;gap:7px;padding:12px 9px;border:1px solid #45503a;border-radius:11px;font-size:11px;color:#b9c6a6;min-height:47px}.interest-grid svg{width:17px;height:17px}.interest-grid input:checked+span{color:#f7dfa1;border-color:var(--gold);background:#413e26}.interest-grid input:focus-visible+span{outline:3px solid var(--gold);outline-offset:3px}.journey-card{display:flex;gap:16px;align-items:center;padding:20px;background:linear-gradient(120deg,#27321e,#20261c);border:1px solid #4c5c39;border-radius:21px;margin:24px 0}.level-token{width:56px;height:65px;flex-shrink:0;display:grid;align-content:center;justify-items:center;gap:3px;font-size:28px;font-weight:800;background:#d8dfac;color:#28351b;border-radius:15px;box-shadow:0 4px 0 #65744c}.level-token small{font-size:7px;letter-spacing:1px}.journey-copy{flex:1;min-width:0}.journey-copy>div:first-child{display:flex;gap:9px;justify-content:space-between;align-items:center}.journey-copy strong{font-size:12px;line-height:1.5}.journey-copy span{font-size:10px;color:var(--gold);white-space:nowrap}.xp-track{background:#465037;height:6px;border-radius:9px;overflow:hidden;margin:10px 0}.xp-track i{display:block;height:100%;background:linear-gradient(90deg,#c4d38c,var(--gold));border-radius:9px;transition:width .6s}.journey-copy p{font-size:10px;color:#adb99a;margin:0;line-height:1.5}.journey-card .icon-button{border:0;background:none;width:30px;min-width:30px}.level-road{display:grid;gap:10px;margin:20px 0}.level-road>div{display:grid;gap:8px;padding:18px;background:#283321;border:1px solid #4b573e;border-radius:14px}.level-road b{font-size:10px;color:var(--gold);letter-spacing:1px}.level-road strong{font-size:21px}.level-road span{color:#afbc9d;font-size:12px}.arena-entry{display:flex;justify-content:flex-start;text-align:left;width:100%;padding:26px;gap:22px;background:linear-gradient(125deg,#3c422b,#242c1f);border:1px solid #7d8050;color:var(--ink);margin:24px 0;border-radius:23px;position:relative;overflow:hidden}.arena-entry>div{flex:1}.arena-entry small{color:var(--gold);font-size:9px;letter-spacing:1px}.arena-entry h3{margin:8px 0;font-size:25px;letter-spacing:-.6px}.arena-entry p{font-size:12px;color:#b5c09f;margin:0;line-height:1.5}.arena-symbol{display:grid;place-items:center;width:61px;height:61px;border-radius:50%;background:#606341;border:1px solid #a6a66a;color:#f7e3a3;flex-shrink:0;box-shadow:0 0 0 10px #9c9b5810}.arena-symbol svg{width:35px;height:35px}.arena-screen{text-align:center;max-width:510px}.arena-screen h1{font-size:39px;line-height:1.12;letter-spacing:-1.5px}.arena-screen>p{line-height:1.7;color:var(--muted);font-size:13px}.arena-orbit{height:190px;position:relative;display:grid;place-items:center;margin-bottom:10px}.arena-orbit>svg{width:85px;height:85px;color:#e7d998;filter:drop-shadow(0 0 22px #c8b94a55)}.arena-orbit i{position:absolute;width:160px;height:160px;border:1px solid #7a7953;border-radius:50%;transform:rotate(-30deg) scaleY(.55)}.arena-orbit i:nth-of-type(2){transform:rotate(30deg) scaleY(.55);width:185px;height:185px}.arena-orbit span{position:absolute;bottom:18px;background:#d4dcae;color:#2a361d;font-size:11px;font-weight:800;padding:10px 14px;border-radius:20px;border:4px solid var(--bg)}.match-identity{display:flex;align-items:center;text-align:left;gap:13px;background:#283120;border:1px solid #4a5938;border-radius:18px;padding:17px;margin:26px 0 15px}.match-identity .player-avatar{width:45px;height:45px;min-height:45px;font-size:20px;flex-shrink:0}.match-identity>div:nth-child(2){display:grid;gap:6px;flex:1;min-width:0}.match-identity strong{font-size:14px;overflow-wrap:anywhere}.match-identity span{font-size:10px;color:#b8c59f}.match-identity>b{display:grid;gap:5px;justify-items:end;color:var(--gold);font-size:20px}.match-identity small{font-size:6px;letter-spacing:1px;color:#a0ad8a}.matchmaking-panel{padding:28px 24px}.matchmaking-panel h2{font-size:27px;letter-spacing:-.7px;line-height:1.2}.matchmaking-panel p{font-size:12px;line-height:1.7;color:#adba9b}.matchmaking-panel button{width:100%;margin-top:14px}.arena-rules{display:grid;gap:14px;text-align:left;padding:24px 10px}.arena-rules span{display:flex;gap:12px;align-items:center;font-size:12px;color:#afbd9b}.arena-rules svg{width:18px;height:18px;color:#d4d5a4}.search-pulse{width:70px;height:70px;display:grid;place-items:center;color:var(--gold);border:1px solid #af9c55;border-radius:50%;margin:5px auto 28px;animation:search-pulse 2s ease-in-out infinite}.search-pulse svg{width:34px;height:34px}.queue-time{display:block;font-variant-numeric:tabular-nums;font-size:29px;color:#e4dfb7;margin-top:20px;font-weight:500}.match-clock{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:18px 0;color:#c9d4ae}.match-clock>span{display:flex;gap:5px;align-items:center;font-size:12px;border-radius:12px;padding:8px 11px;background:#293520}.match-clock small{font-size:9px;color:#9dae89}.match-clock svg{width:16px;height:16px}.match-clock .urgent{color:#f6b199;background:#44291f}.xp-award{display:flex;align-items:center;gap:12px;text-align:left;padding:17px;margin:14px 0 21px;border-radius:18px;border:1px solid #65703e;background:#2f3b23}.xp-award>span{color:var(--gold);display:grid;place-items:center;background:#526036;width:39px;height:39px;border-radius:11px;flex-shrink:0}.xp-award strong{font-size:17px;color:#f2e2a7}.xp-award p{font-size:11px;line-height:1.5;margin:5px 0 0;color:#b7c7a4}.xp-award.leveled{border-color:var(--gold);box-shadow:0 0 35px #efcf6210}.signout-button{width:100%;margin-top:25px}.profile-screen .journey-card{margin:0 0 23px}.profile-screen .profile-stats{margin-bottom:25px}@keyframes search-pulse{50%{box-shadow:0 0 0 18px #d2c0680a;transform:scale(1.06)}}
@media(max-width:560px){.auth-screen h1{font-size:37px}.auth-art{height:160px}.auth-art .heritage-medal{width:130px;height:130px}.onboarding h1{font-size:35px}.journey-card{padding:17px 13px;gap:11px}.journey-copy strong{font-size:11px}.journey-copy span{font-size:9px}.journey-copy p{font-size:9px}.level-token{width:47px;height:58px;font-size:26px}.journey-card .icon-button{width:23px;min-width:23px}.arena-entry{padding:21px 17px;gap:17px}.arena-entry h3{font-size:24px}.arena-entry p{font-size:11px}.arena-entry small{font-size:7px}.arena-symbol{width:46px;height:46px}.arena-symbol svg{width:26px;height:26px}.arena-screen h1{font-size:33px}.matchmaking-panel{padding:26px 20px}.match-identity{gap:10px;padding:14px}.auth-screen .panel{padding:22px}.account-gate main{padding-top:15px}.auth-screen .content-note{font-size:10px}.arena-orbit{height:165px}.match-identity span{font-size:9px}}
@media(prefers-reduced-motion:reduce){.search-pulse{animation:none}.xp-track i{transition:none}}

@media(max-width:560px){.auth-art{height:128px}.auth-art .heritage-medal{width:106px;height:106px}.auth-art .heritage-medal strong{font-size:34px}.auth-art i{font-size:24px}.auth-screen h1{font-size:35px}.auth-screen .auth-languages{margin:18px 0}.auth-screen>.content-note{margin-bottom:10px}}
/* V5 motion: restrained, GPU-friendly transforms; no particle burst on answers. */
.screen{animation:v5-screen-in .32s cubic-bezier(.2,.7,.2,1)}.screen.same-screen{animation:none}.heritage-medal{animation:none}.sunburst{animation:none}.answer{transition:background-color .22s,border-color .22s,transform .18s cubic-bezier(.2,.7,.2,1)}.answer.answer-pop{animation:none}.answer.success-glow{animation:v5-answer-glow .7s ease-out}.check-draw svg path{stroke-dasharray:25;stroke-dashoffset:25;animation:v5-check .38s .08s ease forwards}.earned-points{position:absolute;right:17px;top:-9px;border-radius:20px;background:#d4e6b5;color:#243719;font-size:12px;font-weight:800;padding:5px 10px;pointer-events:none;animation:v5-points .85s cubic-bezier(.2,.7,.2,1) forwards}.answer{position:relative}.answer.answer-shake{animation:v5-miss .25s ease-out}.feedback-enter{animation:v5-screen-in .25s ease}.result-medal.victory-glow .medal-halo{animation:v5-halo 1.3s ease-out}.medal-body{animation:v5-medal .65s cubic-bezier(.2,.7,.2,1)}.outcome-loss .medal-body{animation:v5-medal .6s ease-out}.gold:active,.hero-play:active{transform:translateY(1px) scale(.985)}dialog{animation:v5-sheet .28s cubic-bezier(.2,.7,.2,1)}dialog::backdrop{background:#050a08b8;backdrop-filter:none}.learn-button{min-height:44px}.feedback-zone>.learn-button{margin-top:8px}.feedback-zone>.next-button{margin-top:8px}.page-tabs{display:flex;gap:7px;flex-shrink:0}.page-tabs button{flex:1;font-size:11px;padding:10px 6px;min-height:40px}.native-page[hidden],.rank-row[hidden]{display:none!important}.list-pager{display:flex;justify-content:space-between;align-items:center;padding:10px 15px;gap:10px}.list-pager span{font-size:11px;color:var(--muted)}.list-pager .icon-button:first-child svg{transform:rotate(180deg)}
@keyframes v5-screen-in{from{opacity:0;transform:translate3d(0,8px,0)}to{opacity:1;transform:translate3d(0,0,0)}}@keyframes v5-sheet{from{opacity:0;transform:translate3d(0,18px,0)}to{opacity:1;transform:translate3d(0,0,0)}}@keyframes v5-answer-glow{0%{box-shadow:0 0 0 0 #d8e9a055}65%{box-shadow:0 0 0 6px #d8e9a000}100%{box-shadow:0 0 0 0 #d8e9a000}}@keyframes v5-check{to{stroke-dashoffset:0}}@keyframes v5-points{0%{opacity:0;transform:translateY(8px)}30%{opacity:1;transform:translateY(0)}80%{opacity:1;transform:translateY(-9px)}100%{opacity:0;transform:translateY(-14px)}}@keyframes v5-miss{30%{transform:translateX(-3px)}65%{transform:translateX(2px)}100%{transform:translateX(0)}}@keyframes v5-halo{from{opacity:.7;transform:scale(.75)}to{opacity:0;transform:scale(1.3)}}@keyframes v5-medal{from{opacity:0;transform:translateY(10px) scale(.94)}to{opacity:1;transform:translateY(0) scale(1)}}
.lesson-modal{width:min(460px,calc(100% - 30px));max-height:94dvh;padding:23px;border-radius:26px;overflow:hidden;background:#202a1b;border:1px solid #667349;color:var(--ink)}.lesson-top{display:flex;align-items:center;justify-content:space-between;gap:10px}.lesson-top .eyebrow{font-size:8px}.lesson-top .icon-button{width:36px;height:36px;min-height:36px}.lesson-page-dots{display:flex;gap:6px;margin:16px 0 12px}.lesson-page-dots button{width:24px;height:4px;min-height:4px;padding:0;border-radius:4px;background:#4b5b3b}.lesson-page-dots button.active{background:var(--gold)}.lesson-modal h2{font-size:28px;margin:12px 0 15px;letter-spacing:-.7px}.lesson-visual{flex:0 1 224px;min-height:100px}.lesson-picture,.lesson-visual>img{display:block;width:100%;height:100%;max-height:224px;object-fit:contain;border-radius:20px}.lesson-body{margin-top:15px}.lesson-answer{font-size:17px;line-height:1.35;color:#efe3b1;display:block}.lesson-text{font-size:14px;line-height:1.65;color:#bfccad;margin:11px 0 8px}.lesson-language{font-size:9px;color:#93a180;line-height:1.4;display:block}.lesson-sources{display:flex;gap:10px;margin-top:8px;font-size:10px;color:var(--gold)}.lesson-actions{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:20px;flex-shrink:0}.lesson-actions button{padding:13px 8px;font-size:12px;min-height:44px}.lesson-match-note{display:block;text-align:center;font-size:8px;color:#97a887;margin-top:13px}.lesson-practice>p{font-size:13px;color:#d0dcc0;line-height:1.5;margin:14px 0}.practice-options{display:grid;gap:8px}.practice-options button{text-align:left;justify-content:flex-start;font-size:12px;line-height:1.4;padding:12px}.practice-options .practice-correct{border-color:#bcd692;background:#3a532d;color:#e0f0c7}.practice-options .practice-wrong{border-color:#bd856b;background:#443026}.lesson-practice #practice-response{font-size:10px;line-height:1.4;color:#a9bb95;min-height:28px}.category-picker{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin:20px 0}.category-picker button{flex-direction:column;gap:8px;min-height:85px;padding:13px 8px}.category-picker strong{font-size:12px}.category-picker small{font-size:10px;color:var(--muted)}
@media(max-width:800px){
 html,body{height:100%;overflow:hidden;overscroll-behavior:none}body{height:100dvh;display:flex;flex-direction:column}body.studio{height:auto;min-height:100dvh;overflow:auto;display:block}body:not(.studio) .app-header{height:58px;min-height:58px;padding:10px 20px;max-width:none;width:100%;padding-top:max(8px,env(safe-area-inset-top))}body:not(.studio) .app-header img{width:177px;max-height:40px}.header-actions{gap:8px}.header-actions .icon-button,.header-actions .avatar{width:35px;height:35px;min-height:35px}.header-actions .ui-icon{width:18px;height:18px}body:not(.studio) main{padding:10px 18px 8px;min-height:0;flex:1;width:100%;max-width:620px;overflow:hidden;display:flex;flex-direction:column}body:not(.studio) #app>.screen{height:100%;min-height:0;flex:1;display:flex;flex-direction:column}body:not(.studio) footer{display:none}body:not(.studio):not(.playing):not(.account-gate) main{padding-bottom:80px}.mobile-nav{bottom:max(8px,env(safe-area-inset-bottom));height:61px;padding:6px 10px;background:#252d20f5;backdrop-filter:none}.playing main,.account-gate main{padding-bottom:8px}.narrow{width:100%;max-width:none}.mobile-detail-note{display:none!important}.game-screen{height:100%;min-height:0;display:flex;flex-direction:column;gap:7px}.quiz-toolbar{margin:0;min-height:35px;gap:8px}.quiz-toolbar>span{font-size:8px;letter-spacing:.7px}.quiz-toolbar select{height:33px;min-height:33px;font-size:11px;padding:6px 8px;max-width:99px}.quiz-toolbar .icon-button{width:33px;height:33px;min-height:33px}.quiz-progress{margin:0;min-height:17px}.quiz-progress>strong{font-size:13px}.quiz-progress .steps{gap:4px}.game-status{margin:0;min-height:25px;font-size:11px}.game-status .ui-icon{width:15px;height:15px}.competitor{font-size:10px;gap:5px}.competitor b{width:23px;height:23px;font-size:10px}.question-card{flex:1;min-height:0;display:flex;flex-direction:column;padding:14px;border-radius:21px;gap:9px;margin:0}.question-meta{margin:0;min-height:22px;gap:8px}.question-meta small{font-size:8px}.category-pill{font-size:9px;padding:5px 8px}.category-pill svg{width:13px;height:13px}.question{flex:1;min-height:30px;overflow:hidden;margin:0;display:flex;align-items:center;font-size:22px;line-height:1.22;letter-spacing:-.3px}.answers{display:grid;grid-template-rows:repeat(4,minmax(44px,1fr));gap:7px;min-height:197px;flex:1.4}.answer{padding:8px 10px;min-height:44px;gap:10px;border-radius:12px}.answer>b{width:27px;height:27px;min-width:27px;font-size:11px}.answer>span:not(.earned-points){height:100%;min-height:20px;display:flex;align-items:center;overflow:hidden;line-height:1.22;font-size:15px}.answer>i{width:18px;flex-shrink:0}.answer .ui-icon{width:17px;height:17px}.feedback-zone{display:grid;grid-template-columns:1fr 1fr;gap:6px;flex-shrink:0;margin:0;min-height:26px}.feedback-zone .feedback{grid-column:1/-1;margin:0;padding:9px 12px;min-height:40px;border-radius:12px;gap:9px}.feedback-icon{width:26px;height:26px;min-width:26px}.feedback strong{font-size:12px}.feedback p{font-size:9px;line-height:1.3;margin-top:3px}.feedback-zone>.learn-button,.feedback-zone>.next-button{margin:0;width:100%;min-height:44px;padding:10px 7px;font-size:11px;line-height:1.2}.feedback-zone>.choose-hint{grid-column:1/-1;margin:0;padding:4px;font-size:10px;min-height:22px}.game-screen>.content-note{display:none}.match-clock{margin:0;min-height:25px}.match-clock>span{padding:5px 8px;font-size:10px}.match-clock small{font-size:8px}
 .mobile-home{display:flex;flex-direction:column;gap:12px;height:100%;min-height:0}.home-native-top{display:flex;align-items:center;gap:15px;flex-shrink:0}.home-native-top>div{flex:1}.home-native-top small{font-size:8px;letter-spacing:1px;color:#aebc99}.home-native-top h1{font-size:26px;line-height:1.08;letter-spacing:-.8px;margin:7px 0 0}.level-mini{display:grid;align-content:center;gap:3px;width:53px;min-width:53px;height:59px;min-height:59px;background:#2d3c23;border:1px solid #708157;color:#e2e5b7;font-size:23px;padding:6px;border-radius:15px}.level-mini small{font-size:7px;letter-spacing:1px}.native-xp{flex-shrink:0}.native-xp>div:first-child{display:flex;justify-content:space-between;color:#aabc91;font-size:9px;gap:8px}.native-xp small{font-size:9px}.native-xp .xp-track{height:5px;margin:7px 0 0}.native-hero{display:flex;align-items:center;position:relative;overflow:hidden;background:linear-gradient(125deg,#f4dda0,#d7b65b);color:#26331d;border-radius:23px;padding:20px;flex:1.5;min-height:148px;max-height:240px}.native-hero>div:first-child{flex:1;z-index:1}.native-hero .eyebrow{font-size:7px;color:#67653a;letter-spacing:1px}.native-hero h2{font-size:31px;line-height:1.05;letter-spacing:-1px;margin:11px 0 13px}.native-hero .hero-play{font-size:12px;min-height:43px;min-width:145px;padding:10px 14px;margin:0}.mini-medallion{width:100px;height:100px;position:absolute;right:-9px;top:50%;transform:translateY(-50%) rotate(-10deg);background:#25341d;border:5px double #e3cc78;border-radius:50%;display:flex;flex-direction:column;align-items:center;justify-content:center;font-size:29px;font-weight:800;color:#f2d584;box-shadow:3px 5px 0 #9a8139}.mini-medallion span{font-size:8px;letter-spacing:4px;margin-top:6px}.native-arena{display:flex;justify-content:flex-start;gap:13px;text-align:left;background:linear-gradient(115deg,#34432a,#26331e);border:1px solid #748057;color:var(--ink);padding:16px;border-radius:19px;min-height:86px;flex:1;max-height:116px}.native-arena>span{color:var(--gold);width:37px;height:37px;display:grid;place-items:center;background:#4b5c36;border-radius:13px;flex-shrink:0}.native-arena>div{flex:1;min-width:0}.native-arena small{font-size:7px;letter-spacing:1px;color:#d7d3a0}.native-arena strong{display:block;font-size:17px;margin-top:6px}.native-arena p{font-size:9px;line-height:1.4;margin:5px 0 0;color:#aebd97}.native-modes{display:grid;grid-template-columns:1fr 1fr;gap:8px;flex-shrink:0}.native-modes button{padding:12px 8px;min-height:54px;font-size:10px;line-height:1.2;gap:7px}.native-modes svg{width:19px;height:19px}.native-topic{display:flex;justify-content:space-between;text-align:left;width:100%;background:#1e2a18;border:1px solid #405532;color:#dbe5ca;padding:13px;min-height:46px;gap:8px;flex-shrink:0}.native-topic span{display:flex;align-items:center;gap:8px;font-size:11px}.native-topic small{color:#8da17a;font-size:9px}.native-topic .ui-icon{width:17px;height:17px}.mobile-home .resume-card{margin:0;padding:11px 13px;min-height:59px;flex-shrink:0}.mobile-home .resume-card small{font-size:6px}.mobile-home .resume-card strong{font-size:11px}.mobile-home .resume-card span:not(.resume-icon){font-size:8px}.mobile-home .resume-card>div{gap:3px}.mobile-home .resume-icon{width:31px;height:31px}
 .auth-screen{display:flex;flex-direction:column;height:100%;min-height:0;text-align:center;gap:9px}.auth-art{height:95px;min-height:70px;flex:1}.auth-art .heritage-medal{width:92px;height:92px}.auth-art .heritage-medal strong{font-size:28px}.auth-art .heritage-medal span{font-size:4px}.auth-art .heritage-medal small{font-size:6px;letter-spacing:3px}.auth-art i{font-size:20px;right:26%;top:7px}.auth-screen h1{font-size:30px;line-height:1.04;margin:0}.auth-screen .eyebrow{font-size:7px}.auth-screen>p{font-size:10px;line-height:1.4;margin:0}.auth-screen .auth-languages{margin:0}.auth-screen .review-tabs{margin:0}.auth-screen .review-tabs button{min-height:38px;font-size:11px;padding:10px}.auth-screen .form{padding:16px;gap:10px;flex-shrink:0}.form label{font-size:11px;gap:5px}.form input,.form select{min-height:39px;height:39px;padding:9px 11px;font-size:13px}.form button.gold{min-height:43px;padding:11px;font-size:12px}.auth-screen .password-toggle{top:2px;min-height:34px;font-size:10px}.auth-screen .form small{font-size:9px}.auth-screen .content-note{display:none}.language-picker{padding:4px}.language-picker span{padding:10px 3px;font-size:11px}.onboarding{height:100%;display:flex;flex-direction:column;min-height:0;gap:9px}.onboarding-steps{margin:0 0 6px}.onboarding h1{font-size:28px;margin:0;line-height:1.08}.onboarding>.eyebrow{font-size:7px}.onboarding>.setup-intro{font-size:11px;line-height:1.4;margin:0}.onboarding .panel{padding:17px;gap:9px;margin:0;flex:1;min-height:0;display:flex;flex-direction:column;justify-content:center}.onboarding .text-button{margin:0;font-size:10px;min-height:28px;padding:7px}.onboarding .form label small{font-size:9px;line-height:1.3}.onboarding .actions{margin-top:5px}.onboarding .actions button{min-height:43px;flex:1;font-size:12px}.onboard-promise{padding:20px 0;font-size:11px}.onboarding .interest-grid{grid-template-columns:1fr 1fr;gap:6px}.onboarding .interest-grid span{padding:8px;min-height:37px;font-size:10px}.onboarding fieldset legend{font-size:10px;line-height:1.4;margin-bottom:6px}
 .mobile-account{display:flex;flex-direction:column;height:100%;min-height:0;gap:12px}.compact-identity{display:flex;align-items:center;gap:12px;flex-shrink:0}.compact-identity>.player-avatar{width:45px;height:45px;min-height:45px;font-size:20px}.compact-identity>div:nth-child(2){flex:1;min-width:0}.compact-identity small{font-size:7px;letter-spacing:1px;color:#98ad80}.compact-identity h1{font-size:25px;line-height:1.1;margin:7px 0 0;overflow-wrap:anywhere}.compact-identity>.icon-button{width:32px;min-width:32px;height:32px;min-height:32px}.mobile-account .journey-card{margin:0;padding:12px;gap:10px;flex-shrink:0}.mobile-account .level-token{width:43px;height:51px;font-size:23px}.mobile-account .journey-copy strong{font-size:10px}.mobile-account .journey-copy p{font-size:8px}.mobile-account .journey-copy .xp-track{margin:7px 0}.mobile-account .form{flex:1;min-height:0;padding:17px;gap:10px;justify-content:center}.mobile-account .form .gold{margin-top:6px}.mobile-account .form>.secondary{min-height:38px;font-size:12px;padding:9px}.native-history{flex:1;min-height:0;display:flex;flex-direction:column;gap:10px}.native-history .profile-stats{padding:13px;flex-shrink:0}.native-history .profile-stats strong{font-size:23px}.native-history .profile-stats small{font-size:7px}.native-history .rank-list{flex:1;min-height:0;display:flex;flex-direction:column}.native-history .rank-row{flex:1;padding:10px 13px;min-height:52px}.native-history .rank-row>div{gap:3px}.native-history .rank-row strong{font-size:10px}.native-history .rank-row small{font-size:8px}.native-history .rank-row>b:last-child{font-size:16px;color:var(--gold)}.native-history .list-pager{padding:0 12px;flex-shrink:0}.list-pager .icon-button{height:32px;min-height:32px;width:32px}
 .friends-screen,.lobby{height:100%;display:flex;flex-direction:column;min-height:0;gap:10px}.friends-screen h1,.lobby h1{font-size:30px;margin:0;line-height:1.08}.friends-screen>p,.lobby>p{font-size:11px;line-height:1.45;margin:0}.friends-screen>.eyebrow,.lobby>.eyebrow{font-size:7px}.versus-art{height:70px;min-height:50px;margin:0;flex:1}.versus-art .player-avatar{width:47px;height:47px;min-height:47px;font-size:21px}.versus-art>span svg{width:25px;height:25px}.versus-art i{font-size:9px}.friends-screen .invite-panel{padding:17px;margin:0}.invite-panel h2{font-size:23px;margin:10px 0}.invite-panel p{font-size:10px;margin:7px 0;line-height:1.4}.invite-panel .pill{font-size:7px;padding:5px 8px}.invite-panel button{min-height:42px;padding:11px;font-size:12px}.friends-screen .divider{margin:2px 0;font-size:7px}.friends-screen #join{padding:15px;gap:9px}.friends-screen #join .secondary{min-height:42px;padding:10px;font-size:12px}.lobby-emblem{margin:0 auto;height:45px;width:45px}.lobby-emblem svg{height:27px;width:27px}.lobby h1{font-size:30px}.lobby .room-code{font-size:34px;letter-spacing:4px;min-height:45px;margin:0 auto;padding:0}.lobby .code-label{font-size:8px;margin:0}.lobby>small{font-size:8px}.lobby-players{margin:0;flex:1;min-height:110px;align-items:center}.lobby .player-avatar{width:52px;height:52px;min-height:52px;font-size:23px}.lobby-player strong{font-size:12px}.lobby-player span{font-size:9px}.lobby .actions{margin:0}.lobby .actions button{min-height:44px;font-size:12px;padding:12px}.lobby .notice{font-size:8px;line-height:1.4;margin:0}
 .arena-screen{height:100%;min-height:0;display:flex;flex-direction:column;gap:9px}.arena-orbit{height:65px;min-height:44px;margin:0;flex:1}.arena-orbit>svg{height:42px;width:42px}.arena-orbit i{height:75px;width:75px}.arena-orbit i:nth-of-type(2){height:90px;width:90px}.arena-orbit span{bottom:-3px;font-size:7px;padding:6px 9px;border:3px solid var(--bg)}.arena-screen>.eyebrow{font-size:7px;margin:0}.arena-screen h1{font-size:27px;line-height:1.08;margin:0}.arena-screen>p{font-size:10px;line-height:1.4;margin:0}.arena-screen .match-identity{margin:0;padding:12px;flex-shrink:0}.match-identity .player-avatar{width:35px;height:35px;min-height:35px;font-size:15px}.match-identity strong{font-size:12px}.match-identity>b{font-size:17px}.matchmaking-panel{padding:18px;flex:1.5;min-height:180px;display:flex;align-items:center;justify-content:center;margin:0}.matchmaking-panel #queue-content{width:100%}.matchmaking-panel h2{font-size:23px;margin:9px 0;line-height:1.1}.matchmaking-panel p{font-size:10px;line-height:1.4;margin:7px 0}.matchmaking-panel .pill{font-size:8px}.matchmaking-panel button{min-height:42px;padding:10px;font-size:12px;margin-top:9px}.search-pulse{width:39px;height:39px;margin:0 auto 10px}.search-pulse svg{width:23px;height:23px}.matchmaking-panel .eyebrow{font-size:7px}.queue-time{font-size:20px;margin-top:8px}.arena-rules{padding:0 4px;gap:8px;flex-shrink:0}.arena-rules span{font-size:9px;gap:8px}.arena-rules svg{height:13px;width:13px}
 .results,.rankings{display:flex;flex-direction:column;height:100%;min-height:0;gap:12px}.result-summary{flex:1;min-height:0;display:flex;flex-direction:column;align-items:center;gap:8px;position:relative}.result-summary>.back{position:absolute;left:0;top:0;width:32px;height:32px;min-height:32px}.result-summary .result-medal{height:64px;width:86px;min-height:48px;margin:0;flex:.7}.result-medal .medal-body{width:54px;height:54px;border-radius:17px;box-shadow:0 4px 0 #857033}.result-medal .medal-body svg{width:27px;height:27px}.result-medal .medal-halo{height:75px;width:75px}.result-medal .medal-spark{font-size:14px}.result-summary>.eyebrow{font-size:7px;margin:0}.result-summary>h1{font-size:26px;line-height:1.05;margin:0;max-width:320px}.result-summary>.result-subtitle{font-size:10px;line-height:1.4;margin:0;max-width:300px}.result-summary .score-orbit{width:115px;height:115px;margin:0;flex-shrink:0}.score-orbit .percent{font-size:41px}.score-orbit small{font-size:6px;letter-spacing:1px}.result-summary .xp-award{padding:10px 12px;margin:0;width:100%;gap:9px;flex-shrink:0}.xp-award>span{width:29px;height:29px}.xp-award>span svg{width:17px;height:17px}.xp-award strong{font-size:13px}.xp-award p{font-size:8px;line-height:1.3;margin-top:3px}.result-summary .result-metrics{padding:0;width:100%;margin:0;gap:15px;flex-shrink:0}.result-metrics strong{font-size:22px}.result-metrics small{font-size:6px;margin-top:4px}.result-summary .duel-result{margin:0;width:100%;padding:0;min-height:38px}.duel-result .player-avatar{display:none}.duel-result>div{gap:3px}.duel-result strong{font-size:10px}.duel-result span{font-size:15px}.result-summary .result-replay{width:100%;min-height:43px;font-size:12px;padding:11px;margin:0}.result-summary .share-actions{margin:0;width:100%;gap:7px;flex-shrink:0}.share-actions button{padding:9px 6px;min-height:39px;font-size:10px}.result-summary .review-button{margin:0;padding:10px 12px;min-height:39px;font-size:11px;width:100%}.results .breakdown{margin:0;flex:1;min-height:0;border-radius:20px;padding:14px}.breakdown .section-head{margin:0 0 15px}.breakdown .section-head h2{font-size:21px}.category-result{padding:9px 0;gap:10px}.category-result strong{font-size:11px}.category-result>b{font-size:12px}.category-result .bar{margin-top:6px;height:4px}.category-result>span svg{width:17px;height:17px}.rank-summary{flex:1;min-height:0;display:flex;flex-direction:column;gap:12px;justify-content:center}.rank-summary h1{font-size:29px;margin:0}.rank-summary>.eyebrow{font-size:7px}.rank-summary>p{font-size:11px;margin:0;line-height:1.45}.rank-summary .podium{margin:15px 0 0}.rankings>.rank-list{flex:1;min-height:0;display:flex;flex-direction:column}.rankings .rank-row{min-height:53px;flex:1;padding:12px;gap:10px}.rankings .rank-row strong{font-size:10px}.rankings .rank-row small{font-size:8px}.rankings .list-pager{flex-shrink:0}.shop{display:flex;flex-direction:column;gap:12px;min-height:0;flex:1}.shop>img{max-height:130px;height:130px;width:auto;object-fit:contain;margin:auto}.shop h1{font-size:27px;margin:8px 0}.shop p{font-size:11px;line-height:1.45}.shop .eyebrow{font-size:7px}.shop .notice{font-size:9px}.shop .actions>a{font-size:12px;padding:12px 16px!important}
 dialog.setup-sheet,dialog.review-sheet,dialog.category-sheet{position:fixed;inset:12px 12px auto;margin:auto;width:calc(100% - 24px);height:auto;max-height:calc(100dvh - 24px);padding:20px;border-radius:24px;overflow:hidden}dialog:before{display:none}.sheet-top{margin-bottom:12px}.sheet-top .eyebrow{font-size:7px}.sheet-top .icon-button{height:31px;min-height:31px;width:31px}.setup-sheet h2,.review-sheet h2,.category-sheet h2{font-size:24px;margin:0 0 10px}.setup-intro{font-size:11px;line-height:1.45;margin:0 0 15px}.setup-label{font-size:8px;letter-spacing:1px;margin:13px 0 8px}.topic-options{gap:6px}.topic-option>span{padding:9px;min-height:40px}.topic-option strong{font-size:10px}.topic-option svg{height:15px;width:15px}.round-facts{font-size:10px;margin:15px 0;gap:18px}.setup-play{min-height:44px;font-size:12px;padding:11px}.setup-note{font-size:9px;margin-top:10px}.category-picker{margin:16px 0 0;gap:8px}.category-picker button{min-height:72px;gap:6px;padding:10px}.category-picker strong{font-size:11px}.category-picker svg{width:19px;height:19px}.review-sheet .review-list{display:block}.review-sheet .review-item{margin:0;padding:18px}.review-sheet .review-item h3{font-size:17px;margin:18px 0}.review-sheet .review-meta{font-size:8px}.review-sheet .setup-play{margin-top:15px}.review-tabs{margin-bottom:14px}.review-tabs button{font-size:11px;min-height:38px}.review-sheet .review-answer{font-size:13px;line-height:1.4}.review-sheet .review-item[hidden]{display:none}.level-road{gap:8px;margin:15px 0}.level-road>div{padding:13px;gap:6px}.level-road strong{font-size:19px}.level-road span{font-size:10px}.review-sheet>p{font-size:11px;line-height:1.4}.review-sheet .content-note{font-size:10px;line-height:1.4}
 dialog.lesson-modal{position:fixed;inset:10px;margin:auto;width:calc(100% - 20px);max-width:450px;height:calc(100dvh - 20px);max-height:750px;padding:20px;display:none;flex-direction:column;border-radius:25px;gap:0;overflow:hidden}dialog.lesson-modal[open]{display:flex}.lesson-modal h2{font-size:27px;margin:10px 0 15px;flex-shrink:0}.lesson-top,.lesson-page-dots{flex-shrink:0}.lesson-page-dots{margin:13px 0 0}.lesson-visual{flex:1;min-height:125px;max-height:245px}.lesson-picture,.lesson-visual>img{max-height:245px}.lesson-body{flex:1;min-height:0;display:flex;flex-direction:column;justify-content:center;margin-top:15px}.lesson-answer{font-size:16px;flex-shrink:0;line-height:1.3}.lesson-text{flex:1;min-height:35px;max-height:160px;overflow:hidden;font-size:14px;line-height:1.5;display:flex;align-items:center;margin:12px 0 8px}.lesson-language,.lesson-sources{flex-shrink:0}.lesson-practice{flex:1;min-height:0}.lesson-practice>p{font-size:12px}.lesson-actions{margin-top:15px;flex-shrink:0}.lesson-match-note{margin-top:10px;flex-shrink:0}body.keyboard-open:not(.studio) main{padding-bottom:8px}.keyboard-open .auth-art,.keyboard-open .onboarding>.setup-intro,.keyboard-open .onboarding-steps,.keyboard-open .compact-identity,.keyboard-open .journey-card{display:none}.keyboard-open .auth-screen>p,.keyboard-open .auth-screen>.eyebrow{display:none}.keyboard-open .onboarding h1{font-size:20px}.keyboard-open .auth-screen h1{font-size:22px}.keyboard-open .mobile-account{gap:8px}
}
@media(max-width:800px) and (max-height:700px){.mobile-home{gap:8px}.home-native-top h1{font-size:22px}.level-mini{width:46px;min-width:46px;height:50px;min-height:50px;font-size:20px}.native-hero{min-height:125px;padding:15px}.native-hero h2{font-size:27px;margin:8px 0 10px}.native-hero .eyebrow{font-size:6px}.mini-medallion{height:86px;width:86px;font-size:25px}.native-arena{min-height:70px;padding:12px;gap:10px}.native-arena strong{font-size:15px}.native-arena p{font-size:8px}.native-modes button{min-height:47px;padding:10px 6px;font-size:9px}.native-topic{min-height:42px;padding:10px}.mobile-home .resume-card{min-height:49px;padding:8px 11px}.auth-art{display:none}.auth-screen{gap:8px;justify-content:center}.auth-screen h1{font-size:28px}.auth-screen>p{font-size:9px}.auth-screen .form{padding:14px;gap:8px}.onboarding .panel{padding:14px;gap:7px}.onboarding h1{font-size:25px}.onboarding>.setup-intro{font-size:10px}.onboarding{gap:7px}.onboarding .interest-grid span{min-height:33px;padding:6px;font-size:9px}.onboarding .form input,.onboarding .form select{height:36px;min-height:36px}.onboarding .form label{font-size:10px}.mobile-account{gap:8px}.mobile-account .journey-card{padding:9px}.mobile-account .form{padding:13px;gap:8px}.mobile-account .compact-identity h1{font-size:22px}.mobile-account .level-token{height:43px;width:36px;font-size:20px}.friends-screen,.lobby{gap:7px}.friends-screen h1,.lobby h1{font-size:26px}.versus-art{height:43px;min-height:43px;flex:.4}.versus-art .player-avatar{height:36px;min-height:36px;width:36px;font-size:17px}.friends-screen .invite-panel{padding:13px}.invite-panel h2{font-size:21px;margin:7px 0}.friends-screen #join{padding:12px}.arena-orbit{display:none}.arena-screen>p{display:none}.arena-screen h1{font-size:24px}.matchmaking-panel{padding:14px;min-height:173px}.matchmaking-panel h2{font-size:20px}.matchmaking-panel p{font-size:9px}.search-pulse{margin-bottom:8px}.arena-rules span{font-size:8px}.question-card{padding:10px;gap:6px}.game-screen{gap:5px}.answers{gap:5px;min-height:191px;flex:1.5}.feedback-zone .feedback{padding:7px 9px;min-height:35px}.feedback strong{font-size:11px}.feedback p{font-size:8px}.feedback-zone .learn-button,.feedback-zone .next-button{font-size:10px;min-height:42px}.result-summary{gap:5px}.result-summary>.result-subtitle{display:none}.result-summary>.h1{font-size:24px}.result-summary .score-orbit{width:96px;height:96px}.score-orbit .percent{font-size:33px}.result-summary .result-medal{height:43px;min-height:43px;flex:.2}.result-medal .medal-body{width:42px;height:42px;border-radius:13px}.result-medal .medal-body svg{height:22px;width:22px}.result-medal .medal-halo{height:55px;width:55px}.result-summary .xp-award{padding:7px 10px}.result-summary .result-metrics strong{font-size:18px}.result-summary .result-replay{min-height:40px;font-size:11px;padding:10px}.result-summary .share-actions button,.result-summary .review-button{min-height:36px;padding:8px;font-size:9px}.result-summary .duel-result{min-height:28px}.results .breakdown{padding:12px}.category-result{padding:7px 0}.category-result strong{font-size:10px}.lesson-modal .lesson-visual{min-height:100px;max-height:180px}.lesson-modal h2{font-size:23px;margin:8px 0 10px}.lesson-modal .lesson-text{font-size:12px;line-height:1.4;max-height:125px}.lesson-modal .lesson-answer{font-size:14px}.lesson-modal .lesson-body{margin-top:10px}.lesson-modal .lesson-top .icon-button{height:31px;min-height:31px;width:31px}.lesson-modal .lesson-page-dots{margin:9px 0 0}.lesson-modal .lesson-actions{margin-top:10px}.lesson-modal .lesson-actions button{font-size:10px;padding:10px 7px}.lesson-practice>p{font-size:11px;margin:8px 0}.practice-options{gap:6px}.practice-options button{min-height:38px;font-size:10px;padding:9px}.lesson-practice #practice-response{font-size:9px;margin:8px 0}.setup-sheet h2,.review-sheet h2{font-size:22px}.setup-intro{font-size:10px;margin-bottom:10px}.setup-label{margin:10px 0 7px}.topic-option>span{min-height:35px;padding:7px}.topic-option strong{font-size:9px}.round-facts{margin:12px 0}.setup-note{font-size:8px;margin-top:8px}.review-sheet .review-item h3{font-size:16px}.level-road>div{padding:10px}.level-road strong{font-size:17px}.level-road span{font-size:9px}}
@media(prefers-reduced-motion:reduce){.screen,.success-glow,.check-draw svg path,.earned-points,.answer.answer-shake,.feedback-enter,.medal-body,.result-medal.victory-glow .medal-halo,dialog{animation:none!important}.check-draw svg path{stroke-dashoffset:0}.earned-points{display:none}button,.answer{transition:none}}

.review-item[hidden]{display:none!important}.review-learn{margin-top:12px;width:100%}@media(max-width:800px){.review-item{padding:12px}.review-item h3{font-size:17px}.review-sheet .setup-intro{display:none}.review-sheet h2{font-size:22px;margin:7px 0}.review-sheet .review-list{flex:1;min-height:0}.review-sheet .setup-play{margin-top:8px}.review-sheet .list-pager{margin:8px 0}.review-learn{min-height:44px;padding:8px}}
@media(max-width:800px){.rankings{display:flex;flex-direction:column;height:100%;min-height:0;gap:10px}.rankings>h1{font-size:28px;margin:8px 0}.rankings>p{font-size:11px;margin:0}.rankings>.empty{flex:1;min-height:0;display:flex;flex-direction:column;justify-content:center;padding:16px;gap:10px}.rankings>.empty h2{margin:0;font-size:21px}.rankings>.empty p{margin:0;font-size:12px}.rankings>.empty .empty-trophy{height:70px;margin:0}.rankings>.empty button{margin:0}}@media(max-width:800px) and (max-height:700px){.mobile-account{gap:6px}.mobile-account .form{gap:6px;padding:11px}.result-summary>h1{font-size:24px}}
@media(max-width:800px){.answers{grid-template-rows:repeat(4,minmax(44px,auto));flex:1}.answer>span:not(.earned-points){height:auto;min-height:0;display:block;overflow:visible;flex:1;min-width:0}.question{flex:1}.answer{padding:6px 10px}}
@media(max-width:800px) and (max-height:700px){.game-screen:has(.feedback) .answer.dimmed{display:none}.game-screen:has(.feedback) .answers{grid-template-rows:none;grid-auto-rows:minmax(44px,1fr);min-height:44px;flex:.7}.game-screen:has(.feedback) .question{min-height:45px}}

@media(max-width:800px) and (max-height:700px){.game-screen:has(.feedback) .answers{flex:0;grid-auto-rows:minmax(44px,auto)}.game-screen:has(.feedback) .answer{min-height:52px}}
/* V6: keyboard-friendly controls, mascot avatars, invitations and Lakou Nights. */
.mascot{display:block;width:100%;height:100%;min-width:0;border-radius:50%;background-image:url('/static/assets/haiti-mascots.png');background-size:300% 200%;background-repeat:no-repeat}.mascot-parrot{background-position:0 0}.mascot-palmchat{background-position:50% 0}.mascot-taptap{background-position:100% 0}.mascot-citadelle{background-position:0 100%}.mascot-mango{background-position:50% 100%}.mascot-drum{background-position:100% 100%}.avatar-photo{display:block;width:100%;height:100%;object-fit:cover;border-radius:50%}.avatar,.avatar-edit,.player-avatar:has(.mascot),.rank-avatar:has(.mascot){padding:0;overflow:hidden}.avatar-edit{position:relative;border:2px solid var(--gold);flex-shrink:0}.avatar-edit:after{content:'+';position:absolute;bottom:-1px;right:0;background:var(--gold);color:#1c2515;border-radius:50%;font-size:12px;width:18px;height:18px;display:grid;place-items:center}.avatar-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin:20px 0}.avatar-choice{position:relative;display:flex;flex-direction:column;padding:8px;background:#263020;color:var(--ink);border:1px solid #47573a;min-width:0;gap:9px}.avatar-choice .mascot{width:76px;height:76px;max-width:100%;flex-shrink:0}.avatar-choice>span:last-of-type{font-size:10px;line-height:1.3}.avatar-choice.chosen{border-color:var(--gold);background:#3c4226}.avatar-choice.chosen>.ui-icon{position:absolute;top:7px;right:7px;width:17px;color:var(--gold)}.avatar-choice:hover .mascot{animation:mascot-hop .45s ease}.avatar-upload{display:flex;align-items:center;justify-content:center;gap:10px;padding:13px;border-radius:14px;cursor:pointer;font-weight:700;font-size:13px;min-height:44px}.avatar-note{display:block;font-size:10px;color:var(--muted);line-height:1.5;margin-top:13px}.city-options{position:fixed;z-index:100;overflow:hidden;background:#283421;border:1px solid #82975d;border-radius:14px;padding:5px;box-shadow:0 12px 32px #0007}.city-options>button{display:flex;justify-content:flex-start;background:none;color:var(--ink);text-align:left;width:100%;font-size:13px;font-weight:500;min-height:44px;padding:8px;gap:8px;border-radius:9px}.city-options>button:focus,.city-options>button:hover{background:#485834}.city-options>button svg{width:17px}.city-options>button span{line-height:1.25}.city-options>p{font-size:11px;margin:8px}.city-pages{display:flex;align-items:center;justify-content:space-between;border-top:1px solid #506241;margin:3px 4px 0}.city-pages button{padding:0;min-height:33px;width:33px;background:none;color:var(--gold)}.city-pages small{font-size:8px;color:#b6c29f}#field-controls{display:none}.invite-options{display:grid;gap:9px;margin:17px 0}.invite-options button{justify-content:space-between;font-size:13px;min-height:46px;padding:12px 16px}.invite-room{font-size:12px;margin:12px 0}.invite-room strong{font-family:monospace;letter-spacing:3px;color:var(--gold);margin-left:12px;font-size:20px}.invite-note{font-size:10px;line-height:1.5;margin:12px 0 0}.native-party{width:100%;background:linear-gradient(120deg,#4b385e,#302637);border:1px solid #83609c;color:#eee2f7;justify-content:space-between;gap:10px;margin:18px 0 0;padding:17px;border-radius:18px}.native-party>span{color:#dec1f0}.native-party>div{flex:1;text-align:left}.native-party small{font-size:7px;letter-spacing:1px;color:#cba5dc}.native-party strong{display:block;font-size:13px;margin-top:6px}.party-landing,.party-game,.party-finale{max-width:600px;margin:auto}.party-landing .back{margin-bottom:14px}.party-landing h1{font-size:40px}.party-hero{background:radial-gradient(ellipse at 20% 80%,#6b477e,#30243d 75%);border:1px solid #856294;border-radius:25px;padding:28px;display:flex;align-items:center;gap:24px;position:relative;overflow:hidden;min-height:185px}.party-hero>.mascot{width:135px;height:135px;flex-shrink:0;filter:drop-shadow(0 8px 12px #1a0d2c)}.party-hero small{font-size:8px;letter-spacing:1px;color:#d5b8e3}.party-hero strong{font-size:25px;line-height:1.15;display:block;margin-top:12px}.party-features{display:grid;grid-template-columns:repeat(2,1fr);gap:10px;margin:18px 0}.party-features>div{background:#25252b;border:1px solid #51465b;display:flex;align-items:center;gap:10px;padding:14px;border-radius:14px;font-size:12px;color:#dec8ea}.party-features svg{width:18px}.party-landing>p{font-size:13px;line-height:1.6}.party-landing>button{width:100%;margin:9px 0}.party-disclosure,.party-footnote,.party-finale>small{font-size:10px;line-height:1.5;color:#a59aaf;display:block;text-align:center;margin-top:12px}.party-toggle{display:flex!important;align-items:center;gap:9px;font-size:11px!important;font-weight:500!important;line-height:1.4}.party-toggle input{width:18px!important;height:18px!important;min-height:18px!important;flex-shrink:0;accent-color:var(--gold)}.party-toggle[hidden]{display:none!important}#party-team-fields{display:grid;grid-template-columns:repeat(2,1fr);gap:8px}.party-toolbar{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:13px}.party-toolbar>span{font-size:9px;letter-spacing:1.5px;color:#d2b6e0}.party-toolbar small{font-size:9px;color:var(--muted)}.party-scoreboard{display:grid;grid-template-columns:repeat(4,1fr);gap:6px;margin-bottom:13px}.party-scoreboard>div{display:grid;grid-template-columns:28px 1fr;gap:4px;align-items:center;padding:8px;border:1px solid #4a4052;border-radius:12px;background:#25212c;min-width:0}.party-scoreboard>div.active{border-color:var(--gold);background:#3e372a}.party-scoreboard .mascot{width:28px;height:28px;grid-row:1/3}.party-scoreboard span:not(.mascot){font-size:9px;line-height:1.1;white-space:nowrap;text-overflow:ellipsis;overflow:hidden}.party-scoreboard b{font-size:12px;color:var(--gold)}.party-card{background:radial-gradient(ellipse at 50% 20%,#483453,#292130);border:1px solid #80658d;border-radius:25px;padding:25px;text-align:center;display:flex;flex-direction:column;gap:15px;min-height:390px}.party-card-meta{display:flex;justify-content:space-between;align-items:center;color:#d8bfe4;font-size:10px;letter-spacing:.6px}.party-card-meta b{font-size:12px;background:#8c66a82b;padding:7px 9px;border-radius:10px}.party-pass-art{width:120px;height:120px;margin:12px auto 0;filter:drop-shadow(0 8px 15px #0005)}.party-card h1{font-size:30px;line-height:1.25;letter-spacing:-.7px;margin:0}.party-card em{font-style:normal;color:var(--gold)}.party-card p{font-size:12px;line-height:1.5;margin:0}.party-question{font-size:25px;line-height:1.25;margin:8px 0 0;color:#f4e8fb}.party-answers{display:grid;gap:8px;margin-top:auto}.party-answers button{justify-content:flex-start;text-align:left;padding:11px 14px;font-size:14px;line-height:1.25;min-height:49px}.party-answers b{font-size:10px;border:1px solid #746a81;border-radius:8px;padding:7px}.party-answers span{flex:1;min-width:0}.party-answers .correct{background:#3d5630;border-color:#a6c187;color:#eaf5d7}.party-answers .wrong{background:#53372d;border-color:#c99b83}.party-answers .dimmed{opacity:.38}.party-perform-art{position:relative;width:140px;height:140px;margin:8px auto;flex-shrink:0}.party-perform-art>span:last-child{position:absolute;bottom:-5px;right:-3px;width:50px;height:50px;border-radius:50%;background:var(--gold);color:#2b2113;display:grid;place-items:center;box-shadow:0 4px 0 #82612b}.party-verdict{color:var(--gold);font-size:14px;display:flex;justify-content:center;gap:8px;align-items:center}.party-card>.secondary{min-height:40px;padding:9px;font-size:12px}.party-toast{font-size:10px!important;color:#e5d2c0}.party-controls{display:grid;gap:9px;margin-top:13px}.party-controls button{min-height:46px;font-size:13px}.party-finale{text-align:center}.party-winner-art{width:130px;height:130px;margin:24px auto;position:relative}.party-winner-art>.ui-icon{position:absolute;bottom:0;right:0;color:var(--gold);width:40px;height:40px;filter:drop-shadow(0 3px 5px #0008)}.party-finale>h1{font-size:35px;overflow-wrap:anywhere}.party-finale>button{width:100%;margin:7px 0}.party-finale .party-scoreboard{grid-template-columns:repeat(2,1fr);margin:20px 0}.party-finale .party-scoreboard>div{text-align:left;padding:12px;grid-template-columns:36px 1fr}.party-finale .party-scoreboard .mascot{width:36px;height:36px}.party-finale .party-scoreboard span:not(.mascot){font-size:12px}.party-finale .party-scoreboard b{font-size:17px}@keyframes mascot-hop{0%,100%{transform:translateY(0)}45%{transform:translateY(-5px) rotate(-4deg)}75%{transform:translateY(-2px) rotate(3deg)}}
@media(max-width:800px){input,select,textarea,.form input,.form select,.quiz-toolbar select{font-size:16px!important}.mobile-home .native-party{margin:0;min-height:52px;padding:10px 13px;flex-shrink:0}.native-party strong{font-size:12px;margin-top:4px}.mobile-home .native-hero{min-height:140px}.mobile-home{gap:9px}.native-party small{font-size:6px}.avatar-grid{margin:12px 0;gap:7px}.avatar-choice{padding:7px;min-height:106px;gap:6px}.avatar-choice .mascot{width:65px;height:65px}.avatar-choice>span:last-of-type{font-size:9px}.avatar-sheet h2{font-size:24px;margin:9px 0}.avatar-note{font-size:9px}.compact-identity>.avatar-edit{width:45px;height:45px;min-height:45px}.invite-options{gap:7px;margin:13px 0}.invite-options button{min-height:44px;font-size:12px}.invite-sheet h2{font-size:25px;margin:8px 0}.city-options{z-index:1000}.field-focused #app .screen{animation:none}.field-focused .app-header{opacity:.5}.field-focused #app .form>.active-field{position:fixed;z-index:60;top:calc(72px + env(safe-area-inset-top));left:18px;width:calc(100% - 36px);padding:18px;background:#26321f;border:1px solid #6c8151;border-radius:18px;font-size:12px;box-shadow:0 12px 40px #000b;display:flex;flex-direction:column;gap:10px}.field-focused #app .form>.active-field input,.field-focused #app .form>.active-field select{height:46px;min-height:46px;padding:11px}.field-focused #app .form>label:not(.active-field),.field-focused #app .form>fieldset,.field-focused #app .form>.actions,.field-focused #app .form>button,.field-focused #app .form>.onboard-promise,.field-focused .page-tabs,.field-focused .mobile-nav{visibility:hidden}.field-focused #field-controls{position:fixed;z-index:70;top:calc(var(--visible-height,100dvh) - 64px);left:18px;right:18px;display:grid;grid-template-columns:44px 1fr 72px;gap:7px;background:#1d2618;padding:7px;border:1px solid #526640;border-radius:15px}.field-focused #field-controls button{font-size:11px;min-height:42px;padding:8px}.field-focused .city-options{z-index:80}.party-landing,.party-game,.party-finale{height:100%;min-height:0;display:flex;flex-direction:column;gap:9px}.party-landing .back{margin:0;font-size:11px;min-height:20px}.party-landing h1{font-size:30px;line-height:1.05;margin:4px 0}.party-hero{padding:18px;min-height:125px;flex:1;gap:17px}.party-hero>.mascot{width:96px;height:96px}.party-hero strong{font-size:22px;margin-top:10px}.party-hero small{font-size:6px}.party-features{gap:7px;margin:0}.party-features>div{padding:11px 9px;font-size:10px;min-height:44px;gap:8px}.party-features svg{width:16px}.party-landing>p{font-size:11px;line-height:1.5;margin:0}.party-landing>button{min-height:44px;margin:0;font-size:12px;flex-shrink:0}.party-disclosure{font-size:8px;line-height:1.4;margin:0}.party-setup-sheet{max-height:calc(100dvh - 20px);padding:16px}.party-setup-sheet h2{font-size:23px;margin:8px 0}.party-setup-sheet .form{gap:8px}.party-setup-sheet .form label{font-size:10px;gap:5px}.party-setup-sheet .form input,.party-setup-sheet .form select{height:38px;min-height:38px;padding:8px 10px}.party-setup-sheet #party-team-fields{gap:7px}.party-setup-sheet .gold{min-height:44px;font-size:12px;padding:10px}.party-toolbar{margin:0;min-height:34px}.party-toolbar .icon-button{width:33px;height:33px;min-height:33px}.party-toolbar>span{font-size:8px}.party-toolbar small{font-size:8px}.party-scoreboard{margin:0;gap:4px}.party-scoreboard>div{grid-template-columns:22px 1fr;padding:6px;border-radius:9px;gap:3px}.party-scoreboard .mascot{width:22px;height:22px}.party-scoreboard span:not(.mascot){font-size:7px}.party-scoreboard b{font-size:10px}.party-card{flex:1;min-height:0;gap:12px;padding:16px;border-radius:22px}.party-card-meta{font-size:9px;flex-shrink:0}.party-card-meta b{font-size:10px;padding:5px 7px}.party-pass-art{width:100px;height:100px;flex:0 1 120px;min-height:60px;align-self:center;margin:auto auto 0}.party-card h1{font-size:25px;margin:3px 0}.party-card>p{font-size:11px}.party-card>.party-question{font-size:22px;margin:0;flex:1;min-height:40px;display:flex;align-items:center;justify-content:center;overflow:hidden}.party-answers{gap:6px;margin:0}.party-answers button{min-height:44px;padding:7px 10px;gap:9px;font-size:15px}.party-answers button b{padding:6px;border-radius:8px}.party-perform-art{width:105px;height:105px;margin:auto;flex-shrink:1;min-height:55px}.party-perform-art>span:last-child{width:35px;height:35px}.party-perform-art>span:last-child svg{width:18px}.party-group-rule{font-size:10px!important}.party-controls{margin:0;gap:7px;flex-shrink:0}.party-controls button{min-height:44px;font-size:12px;padding:10px}.party-footnote{font-size:7px;margin:0}.party-verdict{font-size:12px;flex-shrink:0}.party-card>.secondary{font-size:10px;min-height:36px;padding:7px}.party-toast{font-size:8px!important}.party-finale{gap:8px;justify-content:center}.party-winner-art{width:85px;height:85px;flex-shrink:0;margin:0 auto}.party-finale>h1{font-size:29px;margin:5px 0}.party-finale>p{margin:0;font-size:11px}.party-finale .party-scoreboard{margin:8px 0;gap:5px}.party-finale .party-scoreboard>div{padding:8px;grid-template-columns:28px 1fr}.party-finale .party-scoreboard .mascot{width:28px;height:28px}.party-finale .party-scoreboard span:not(.mascot){font-size:10px}.party-finale .party-scoreboard b{font-size:13px}.party-finale>button{min-height:42px;margin:0;font-size:12px}.party-finale>small{font-size:8px;margin:0}.stage-verdict .party-card.kind-trivia .party-answers .dimmed{display:none}.stage-verdict .party-card.kind-trivia .party-answers{grid-template-rows:none}.field-focused dialog .active-field{background:#26321f}}
@media(max-width:800px) and (max-height:700px){.mobile-home{gap:6px}.native-hero{min-height:110px!important;padding:12px}.native-hero h2{font-size:25px;margin:6px 0 8px}.native-hero .hero-play{min-height:40px;padding:9px 15px}.native-arena{min-height:62px;padding:9px 12px}.native-modes button{min-height:43px;padding:8px}.native-topic{min-height:40px;padding:8px}.mobile-home .native-party{min-height:44px;padding:8px 12px}.party-landing{gap:7px}.party-landing h1{font-size:26px}.party-hero{min-height:100px;padding:14px}.party-hero>.mascot{width:78px;height:78px}.party-hero strong{font-size:20px}.party-features>div{padding:8px;min-height:38px;font-size:9px}.party-landing>p{font-size:9px}.party-disclosure{font-size:7px}.party-game{gap:6px}.party-card{padding:12px;gap:7px}.party-card h1{font-size:22px}.party-pass-art{width:80px;height:80px}.party-card>p{font-size:10px}.party-answers button{padding:6px 8px}.party-perform-art{width:80px;height:80px}.party-verdict{font-size:11px}.party-controls button{min-height:42px;font-size:10px}.party-winner-art{width:65px;height:65px}.party-finale>h1{font-size:24px}}
@media(prefers-reduced-motion:reduce){.avatar-choice:hover .mascot{animation:none}}
#party-people,#party-settings{display:flex;flex-direction:column;gap:12px}#party-people[hidden],#party-settings[hidden]{display:none!important}@media(max-width:800px){#party-people,#party-settings{gap:8px}}
@media(max-width:800px){.field-focused dialog{animation:none!important}.field-focused .form .active-field{position:fixed;z-index:60;top:calc(72px + env(safe-area-inset-top));left:18px;width:calc(100% - 36px);padding:18px;background:#26321f;border:1px solid #6c8151;border-radius:18px;font-size:12px;box-shadow:0 12px 40px #000b;display:flex;flex-direction:column;gap:10px;visibility:visible!important}.field-focused .form label:not(.active-field){visibility:hidden}.field-focused .form .active-field input,.field-focused .form .active-field select{height:46px;min-height:46px;padding:11px}.field-focused #field-controls{visibility:visible!important}.avatar-choice:active .mascot{animation:mascot-hop .45s ease}}
.stage-handoff .party-pass-art>.mascot{animation:mascot-breathe 3s ease-in-out infinite}@keyframes mascot-breathe{50%{transform:translateY(-3px) rotate(2deg)}}@media(prefers-reduced-motion:reduce){.stage-handoff .party-pass-art>.mascot{animation:none}}
.party-scoreboard.compact-board{grid-template-columns:1fr 1fr 44px}.compact-board>button{padding:5px;min-height:35px;display:flex;flex-direction:column;gap:0;font-size:8px}.compact-board>button svg{width:16px;height:16px}.party-score-sheet .party-scoreboard{grid-template-columns:repeat(2,1fr);margin-top:20px}.party-score-sheet .party-scoreboard>div{padding:12px;grid-template-columns:36px 1fr}.party-score-sheet .mascot{height:36px;width:36px}.party-score-sheet .party-scoreboard span:not(.mascot){font-size:12px}.party-score-sheet .party-scoreboard b{font-size:16px}@media(max-width:800px){.form input:not([type=checkbox]):not([type=radio]):not([type=file]),.form select,.form textarea{font-size:16px!important;line-height:1.2;min-height:40px;height:40px;padding:8px 11px}.form input[readonly]{height:34px;min-height:34px;padding:6px 11px}.field-focused .form .active-field input,.field-focused .form .active-field select{min-height:46px;height:46px;padding:11px}.field-focused .form section button{visibility:hidden}.field-focused #field-controls button{visibility:visible}.party-score-sheet .party-scoreboard>div{padding:9px}.party-score-sheet .mascot{height:30px;width:30px}}
@media(max-width:800px) and (max-height:700px){.mobile-home{gap:6px}.home-native-top h1{font-size:18px;line-height:1.1;margin-top:5px}.home-native-top small{font-size:7px}.native-hero{min-height:90px!important;max-height:95px;flex:1;padding:10px 12px}.native-hero>div:first-child{display:flex;align-items:center;justify-content:space-between;gap:8px}.native-hero .eyebrow{display:none}.native-hero h2{font-size:20px;line-height:1.05;margin:0;flex:1}.native-hero .hero-play{min-height:40px;min-width:107px;padding:9px 10px;font-size:10px}.native-hero .mini-medallion{display:none}.native-arena{min-height:55px;max-height:67px;flex:.4;padding:9px 12px}.native-arena p{display:none}.native-arena strong{font-size:14px;margin-top:4px}.native-arena small{font-size:6px}.native-arena>span{width:28px;height:28px}.mobile-home:has(.resume-card) .native-hero{min-height:70px!important;max-height:76px}.mobile-home:has(.resume-card) .native-xp>div:first-child{display:none}.mobile-home:has(.resume-card) .native-xp .xp-track{margin:0}.mobile-home .resume-card{min-height:40px;padding:6px 10px}.mobile-home .resume-card .resume-icon{height:24px;width:24px}.party-finale>h1{font-size:22px;line-height:1.12}}
/* V7: native keyboard viewport, connection recovery, calmer controls. */
.connection-screen{height:100%;display:flex;flex-direction:column;justify-content:center;align-items:center;text-align:center;gap:16px;max-width:430px;margin:auto}.connection-mascot{width:130px;height:130px}.connection-screen h1{margin:0;font-size:34px}.connection-screen p{font-size:14px;margin:0}.connection-screen small{font-size:10px;line-height:1.5;color:var(--muted);max-width:300px}.connection-screen .gold{min-width:190px}.avatar-photo{background:#26351d}.native-party{transition:transform .18s ease,background .2s}.lesson-page-dots button{min-height:20px;position:relative;background:none}.lesson-page-dots button:after{content:'';position:absolute;left:0;right:0;top:8px;height:4px;border-radius:6px;background:#4b5b3b}.lesson-page-dots button.active{background:none}.lesson-page-dots button.active:after{background:var(--gold)}
@media(max-width:800px){body:not(.studio){height:var(--app-height,100dvh)}body.typing .mobile-nav{display:none}body.typing:not(.studio) main{padding-bottom:12px;overflow-y:auto;overscroll-behavior:contain}body.typing .app-header{min-height:46px!important;height:46px!important}body.typing .auth-art,body.typing .onboarding>.setup-intro,body.typing .onboarding-steps,body.typing .onboarding>.eyebrow,body.typing .compact-identity,body.typing .journey-card,body.typing .mobile-account>.page-tabs{display:none}body.typing .onboarding h1,body.typing .auth-screen h1{font-size:22px;margin:5px 0}body.typing .auth-screen>p,body.typing .auth-screen>.eyebrow{display:none}body.typing #app>.screen,body.typing .mobile-account,body.typing .onboarding{height:auto;min-height:min-content}body.typing dialog{max-height:calc(var(--app-height,100dvh) - 16px);overflow-y:auto}body.typing .form{flex-shrink:0}.form input:not([type=checkbox]):not([type=radio]):not([type=file]),.form select{font-size:16px!important}.competitor>b{overflow:hidden;display:block;flex-shrink:0}.connection-screen{gap:12px}.connection-screen h1{font-size:29px}.connection-screen p{font-size:12px}.connection-mascot{height:110px;width:110px}}
:root{--safe-top:env(safe-area-inset-top,0px);--safe-bottom:env(safe-area-inset-bottom,0px)}.boot-state{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:18px;height:100%;min-height:250px}.boot-state p{font-size:13px}.boot-spinner{height:30px;width:30px;border:2px solid #66714d;border-top-color:var(--gold);border-radius:50%;animation:rotate .8s linear infinite}@media(prefers-reduced-motion:reduce){.boot-spinner{animation:none;border-color:var(--gold)}}
@media(max-width:800px){body:not(.studio) .app-header{height:calc(58px + var(--safe-top));min-height:calc(58px + var(--safe-top));padding-top:calc(8px + var(--safe-top))}.mobile-nav{bottom:calc(8px + var(--safe-bottom))}body:not(.studio):not(.playing):not(.account-gate) main{padding-bottom:calc(80px + var(--safe-bottom))}.mobile-home{gap:8px}.lesson-modal{height:calc(100dvh - var(--safe-top) - var(--safe-bottom) - 20px);max-height:min(750px,calc(100dvh - var(--safe-top) - var(--safe-bottom) - 20px))}body.typing .app-header{height:calc(46px + var(--safe-top))!important;min-height:calc(46px + var(--safe-top))!important}body.typing .app-header img{max-height:28px}.compact-ui .mobile-home{gap:6px}.compact-ui .home-native-top h1{font-size:20px;line-height:1.1;margin-top:5px}.compact-ui .home-native-top small{font-size:7px}.compact-ui .native-hero{min-height:90px!important;max-height:100px;flex:1;padding:10px 12px}.compact-ui .native-hero>div:first-child{display:flex;align-items:center;justify-content:space-between;gap:8px}.compact-ui .native-hero .eyebrow{display:none}.compact-ui .native-hero h2{font-size:20px;line-height:1.05;margin:0;flex:1}.compact-ui .native-hero .hero-play{min-height:40px;min-width:107px;padding:9px 10px;font-size:10px}.compact-ui .native-hero .mini-medallion{display:none}.compact-ui .native-arena{min-height:55px;max-height:70px;flex:.4;padding:9px 12px}.compact-ui .native-arena p{display:none}.compact-ui .native-arena strong{font-size:14px;margin-top:4px}.compact-ui .native-arena small{font-size:6px}.compact-ui .native-arena>span{width:28px;height:28px}.compact-ui .native-modes button{min-height:43px;padding:8px}.compact-ui .native-topic{min-height:40px;padding:8px}.compact-ui .mobile-home .native-party{min-height:44px;padding:8px 12px}.compact-ui .mobile-home:has(.resume-card) .native-hero{min-height:70px!important;max-height:76px}.compact-ui .mobile-home:has(.resume-card) .native-xp>div:first-child{display:none}.compact-ui .mobile-home:has(.resume-card) .native-xp .xp-track{margin:0}.compact-ui .mobile-home .resume-card{min-height:40px;padding:6px 10px}}
@media(max-width:800px){.compact-ui .mobile-account:has(#mobile-profile)>.journey-card{display:none}.compact-ui .mobile-account .form label{gap:4px}.compact-ui .mobile-account .form{padding:10px 12px;gap:6px}}
@media(max-width:800px){.compact-ui .friends-screen>.versus-art,.compact-ui .friends-screen>p:not(.content-note){display:none}.compact-ui .friends-screen>h1{font-size:26px;margin:5px 0}.compact-ui .party-landing{gap:5px}.compact-ui .party-landing h1{font-size:25px}.compact-ui .party-hero{min-height:78px;padding:8px 14px}.compact-ui .party-hero>.mascot{width:62px;height:62px}.compact-ui .party-hero strong{font-size:19px}.compact-ui .party-landing>p{font-size:9px}.compact-ui .party-disclosure{font-size:7px}}
.party-answers button.correct:disabled,.party-answers button.wrong:disabled{opacity:1}.party-answers button.correct:disabled{background:#3d5630;border-color:#b3d693;color:#f1f7e3}
