#dialog.npc-dialog{background:radial-gradient(at 20% 70%,#566451 0,#183b38 48%,#102825 100%);border:1px solid #a88b55;width:min(1100px,96vw);max-width:1100px;padding:0;overflow:hidden}.npc-dialog #dialog-content{padding:0}.npc-scene{color:#fff4da;grid-template-columns:minmax(220px,38%) 1fr;min-height:560px;max-height:88dvh;display:grid;overflow:auto}.npc-portrait{background:radial-gradient(#cfb67238,#0000 65%);justify-content:center;align-items:flex-end;min-height:420px;display:flex;overflow:hidden}.npc-portrait img{object-fit:contain;object-position:bottom;width:100%;height:100%;max-height:730px}.npc-conversation{text-align:left;align-self:center;padding:45px 44px 45px 20px}.npc-conversation h2{color:#ffe1a0;margin:12px 0;font-size:clamp(30px,4vw,48px)}.npc-conversation .npc-words{color:#fff6df;margin:26px 0;font-size:clamp(19px,2vw,25px);line-height:1.9}.npc-conversation small{color:#bbd6c5}.npc-conversation .modal-actions{flex-wrap:wrap;justify-content:flex-start;margin-top:30px}.contract-grid{grid-template-columns:1fr 1fr;gap:12px;display:grid}.contract-card{text-align:left;color:#f9f0d7;cursor:pointer;background:#203e39;border:1px solid #658d7f;border-radius:16px;flex-direction:column;gap:12px;padding:22px;display:flex}.contract-card:hover,.contract-card:focus-visible{background:#30564c;outline:2px solid #f3cf83}.contract-card strong{color:#ffdb90;font-size:20px}.contract-card span{line-height:1.8}.contract-card small{color:#abd8c3}.bestiary-grid{grid-template-columns:repeat(4,1fr);gap:12px;display:grid}.bestiary-grid>div{text-align:center;border:1px solid #54796c;border-radius:12px;flex-direction:column;align-items:center;padding:10px;display:flex}.bestiary-grid img{object-fit:contain;width:90px;height:90px}.bestiary-grid small{opacity:.7;font-size:11px}.bestiary-grid .unknown img{filter:grayscale();opacity:.32}.npc-talk{z-index:4;position:absolute;bottom:24px;left:50%;transform:translate(-50%)}@media (width<=650px){.npc-scene{grid-template-columns:1fr;min-height:0;max-height:88dvh}.npc-portrait{height:210px;min-height:0}.npc-portrait img{object-fit:contain;object-position:top;align-self:flex-start;height:320px}.npc-conversation{padding:18px 24px 26px}.npc-conversation h2{margin:6px 0}.npc-conversation .npc-words{margin:12px 0;font-size:18px;line-height:1.8}.npc-conversation .modal-actions{margin-top:16px}.contract-grid{grid-template-columns:1fr}.bestiary-grid{grid-template-columns:repeat(2,1fr)}.npc-talk{bottom:100px}}.npc-conversation .secondary{color:#fff2d0;background:#173b34;border-color:#c4d5be}.npc-conversation .eyebrow{color:#e6c588}.contract-card{gap:8px;padding:16px}.contract-card span{font-size:15px;line-height:1.6}#contract-status{color:#f5d591;font-size:12px}.npc-talk{color:#fff0c5;background:#173c35;border-color:#d3bf80;box-shadow:0 3px 16px #0c282655}:root{color:#263f3d;font-synthesis:none;--ink:#193d40;--muted:#62796f;--gold:#ad8847;--paper:#faf8ee;--line:#d5ddc9;background:#f6f4ed;font-family:Segoe UI,Arial,sans-serif;font-size:14pt}*{box-sizing:border-box}body{margin:0}button,input,select,small,kbd{font:inherit}button,a,input,select{touch-action:manipulation}button{cursor:pointer;color:inherit;border:0}button:disabled{cursor:default;opacity:.45}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,canvas:focus-visible{outline-offset:4px;outline:3px solid #ce942f}input[type=radio]{accent-color:#315d50}.hidden{display:none!important}a{color:inherit}h1,h2,h3,p{margin:0}h1,h2,h3{font-family:Georgia,Times New Roman,serif;font-weight:400}p{line-height:1.65}b,strong{font-weight:600}.eyebrow{letter-spacing:.07em;font-size:1rem;font-weight:650;line-height:1.5}.app-header{z-index:4;border-bottom:1px solid var(--line);background:#faf9f3;align-items:center;gap:28px;min-height:100px;padding:18px 3.4%;display:flex;position:relative}.brand{flex-shrink:0;width:202px;display:block}.brand img{mix-blend-mode:multiply;width:100%;display:block}.header-divider{background:var(--line);width:1px;height:44px}.chapter-heading{gap:2px;display:grid}.chapter-heading .eyebrow{color:#947443}.chapter-heading>span:last-child{font-size:1.15rem}.app-header nav{align-items:center;gap:22px;margin-left:auto;display:flex}.tool{color:#4b6b61;white-space:nowrap;background:0 0;align-items:center;gap:8px;padding:12px 0;font-size:1rem;display:flex}.tool>span:first-child{color:#7b9688;font-size:1.45rem}.icon-button{border:1px solid var(--line);background:0 0;border-radius:50%;width:48px;height:48px;font-size:1.2rem}.text-button{color:#426757;text-align:left;background:0 0;padding:10px 0;font-size:1rem}.app-footer{color:#647b69;border-top:1px solid var(--line);background:#f8f6ef;flex-wrap:wrap;justify-content:space-between;align-items:center;gap:16px;min-height:78px;padding:17px 3.4%;font-size:1rem;display:flex}.app-footer>span:first-child{align-items:center;gap:8px;display:flex}.app-footer>span:first-child>i{background:#7a9f76;border-radius:50%;flex-shrink:0;width:6px;height:6px}.copyright{white-space:nowrap}.welcome-screen{isolation:isolate;background:#d0e2d3 url(/art/questemy-v1/battle-v1.png) 50%/cover;grid-template-columns:1.06fr 1fr;gap:20px 0;min-height:calc(100dvh - 178px);padding:52px 6% 30px;display:grid;position:relative;overflow:hidden}.welcome-wash{z-index:-1;background:linear-gradient(90deg,#f7f5eafc 0%,#f8f5eaf4 27%,#f8f5ea9e 53%,#17393506 85%),linear-gradient(#0000 70%,#f7f5eaf8);position:absolute;inset:0}.welcome-copy{z-index:2;max-width:690px;position:relative}.welcome-kicker{color:#8c723e;align-items:center;gap:12px;max-width:520px;display:flex}.welcome-kicker i{background:#b18f4b;flex-shrink:0;width:22px;height:1px}.welcome-copy h1{letter-spacing:-.035em;color:#204742;margin:20px 0;font-size:clamp(2.7rem,4.6vw,4.2rem);line-height:1.07}.welcome-copy h1 em{color:#98723b}.welcome-copy>p{color:#567263;margin-bottom:25px;font-family:Georgia,serif;font-size:1.3rem;line-height:1.45}#start-form{max-width:530px}#start-form label,.setup-row label{color:#536f60;font-weight:600;line-height:1.5;display:block}.name-field{background:#fffdf7b8;border:1px solid #b7c7b1;border-radius:8px;align-items:center;gap:14px;margin:8px 0 16px;padding:0 16px;display:flex}.name-field>span{color:#b69043}.name-field input{color:#324d45;background:0 0;border:0;outline:none;width:100%;min-width:0;height:54px;font-size:1.1rem}.name-field:focus-within{outline:2px solid #b49155}.setup-row{grid-template-columns:160px 1fr;align-items:center;gap:18px;margin-bottom:16px;display:grid}.setup-row select{color:#355849;background:#fffdf4;border:1px solid #bac9b3;border-radius:7px;width:100%;min-height:48px;margin-top:6px;padding:10px 12px;display:block}.grade-summary{color:#6e7f62;padding-top:23px;line-height:1.45}.avatar-choice{border:0;gap:12px;margin:0 0 18px;padding:0;display:flex}.avatar-choice legend{color:#536f60;margin-bottom:9px;font-weight:600}.avatar-choice label{cursor:pointer;background:#fffef4b5;border:1px solid #c7d1b9;border-radius:9px;flex:1;align-items:center;gap:10px;min-width:0;padding:10px 12px;display:flex!important}.avatar-choice label:has(input:checked){background:#eaf0dfe8;border-color:#547c60;box-shadow:inset 0 0 0 1px #547c60}.avatar-choice input{flex-shrink:0;width:18px;height:18px;margin:0}.avatar-choice span{gap:1px;display:grid}.avatar-choice b{font-family:Georgia,serif;font-size:1.25rem}.avatar-choice small{color:#6e826b;font-weight:400}.avatar-choice i{color:#b79751;opacity:0;margin-left:auto;font-style:normal}.avatar-choice input:checked~i{opacity:1}.primary{color:#fff9e8;background:#285449;border:1px solid #244e48;border-radius:7px;justify-content:center;align-items:center;gap:20px;min-height:54px;padding:15px 22px;font-size:1.1rem;font-weight:600;display:inline-flex;box-shadow:0 5px 12px #25413414}.primary:hover{background:#3a6b55}.primary>span{font-size:1.3rem}#start-button{justify-content:space-between;width:100%}.welcome-note{color:#6f7e68;max-width:530px;margin-top:10px;font-size:1rem;line-height:1.5;display:block}.welcome-character{justify-content:center;align-self:stretch;align-items:center;min-width:0;display:flex;position:relative}.welcome-character canvas{filter:drop-shadow(0 18px 12px #315a4026);z-index:1;width:114%;height:90%;position:absolute;inset:-25px -7% 8%}.hero-halo{aspect-ratio:1;border:1px solid #fff7c887;border-radius:50%;width:85%;position:absolute;top:16%;box-shadow:0 0 0 30px #fffbd91a,0 0 100px #fff8cd8c}.floating-shadow{filter:blur(12px);background:#244d373d;border-radius:50%;width:48%;height:35px;animation:3.7s ease-in-out infinite shadow-breathe;position:absolute;bottom:12%}.character-signature{color:#233d3f;text-align:right;text-shadow:0 2px 9px #fff9de;z-index:2;gap:5px;display:grid;position:absolute;bottom:0;right:0}.character-signature>span{letter-spacing:.08em}.character-signature strong{font-family:Georgia,serif;font-size:2.2rem;font-style:italic;font-weight:400;line-height:1.02}.character-signature small{margin-top:4px;font-size:1rem}.chapters-preview{z-index:2;grid-column:1/-1;margin-top:28px;position:relative}.chapters-preview>.eyebrow{color:#6d806c;margin-bottom:14px;display:block}.chapters-preview>div{gap:16px;display:flex}.chapters-preview article{-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);background:#faf9eee3;border:1px solid #bdc9b7;border-radius:8px;flex:1;align-items:center;gap:14px;min-width:0;padding:10px;display:flex}.chapters-preview article img{object-fit:cover;border-radius:5px;width:90px;height:74px}.chapters-preview article span{gap:7px;font-family:Georgia,serif;font-size:1.3rem;display:grid}.chapters-preview article small{color:#768568;font-family:Segoe UI,sans-serif;font-size:1rem}.status-strip{background:var(--paper);z-index:5;border-bottom:1px solid var(--line);align-items:center;gap:28px;min-height:116px;padding:15px 3.4%;display:flex;position:sticky;top:0}.hero-identity{align-items:center;gap:13px;min-width:245px;display:flex}.avatar{background:#e1e5cf;border:1px solid #b5bea4;border-radius:50%;flex-shrink:0;width:62px;height:62px;position:relative;overflow:hidden}.avatar img{width:108px;max-width:none;position:absolute;top:-5px;left:-23px}.hero-identity>div:last-child{gap:6px;min-width:0;display:grid}.hero-identity>div>b{text-overflow:ellipsis;max-width:220px;font-family:Georgia,serif;font-size:1.4rem;overflow:hidden}.hero-identity>div>span{color:#768466;font-size:1rem}.hero-identity i{margin:0 4px;font-style:normal}.vital{flex:1;min-width:120px;max-width:240px}.vital>div:first-child{justify-content:space-between;gap:12px;margin-bottom:9px;font-size:1rem;display:flex}.vital strong{color:#4e6f5f;white-space:nowrap;font-size:1rem;font-weight:500}.meter{background:#dce3ce;border-radius:10px;height:9px;overflow:hidden}.meter i{border-radius:10px;width:100%;height:100%;transition:width .3s;display:block}.health i{background:linear-gradient(90deg,#6e9c72,#a4bf85)}.mana i{background:linear-gradient(90deg,#639ca7,#a3cebf)}.experience i{background:linear-gradient(90deg,#b88a45,#dac27a)}.xp-vital{flex:1.35}.session-clock{text-align:right;white-space:nowrap;gap:7px;margin-left:auto;display:grid}.session-clock>span{color:#6e7f65}.session-clock>b{font-family:Georgia,serif;font-size:1.5rem;font-weight:400}#exploration-view{background:#142b33;height:calc(100dvh - 294px);min-height:620px;position:relative;overflow:hidden}#exploration-canvas{touch-action:none;outline-offset:-4px;width:100%;height:100%;display:block}.map-title{pointer-events:none;text-shadow:0 2px 12px #102827;color:#fffae7;position:absolute;top:26px;left:3.4%}.map-title .eyebrow{color:#e8d399}.map-title h2{margin:8px 0 5px;font-size:2.2rem}.map-title p{color:#d9e4cd;font-family:Georgia,serif;font-size:1.1rem}.map-objective{color:#f0ecd5;pointer-events:none;background:#112b32e8;border:1px solid #a9b99766;border-radius:10px;gap:15px;max-width:420px;padding:18px 20px;display:flex;position:absolute;top:26px;right:3.4%;box-shadow:0 10px 30px #0c262022}.objective-star{color:#e7c779;font-size:1.8rem}.map-objective .eyebrow{color:#dbc78a}.map-objective p{margin:8px 0;font-family:Georgia,serif;font-size:1.25rem;line-height:1.4}.map-objective #map-progress{color:#bbd4b8;line-height:1.5}.explored-count{color:#e1ebd2;background:#14313bef;border:1px solid #b6c7a955;border-radius:25px;padding:12px 16px;position:absolute;bottom:26px;right:3.4%}.map-controls{color:#d9e2c6;pointer-events:none;text-shadow:0 1px 4px #142e2a;gap:12px;display:grid;position:absolute;bottom:23px;left:3.4%}.map-controls>span:last-child{max-width:570px}kbd{color:#f1efd4;background:#173732e0;border:1px solid #8aa79777;border-radius:4px;padding:4px 7px}#touch-pad{touch-action:none;grid-template-rows:repeat(3,48px);grid-template-columns:repeat(3,54px);gap:4px;display:grid;position:absolute;bottom:115px;left:3.4%}#touch-pad button{color:#f8edc6;touch-action:none;-webkit-user-select:none;user-select:none;background:#183a3ce6;border:1px solid #f4f1c967;border-radius:9px;font-size:1.5rem}#touch-pad button:active{background:#6c8b63}#touch-pad [data-move=up]{grid-column:2}#touch-pad [data-move=left]{grid-area:2/1}#touch-pad span{text-align:center;color:#dfca8b;grid-area:2/2;align-self:center}#touch-pad [data-move=right]{grid-area:2/3}#touch-pad [data-move=down]{grid-area:3/2}.battle-stage{isolation:isolate;background:#bdd7c7 url(/art/questemy-v1/battle-v1.png) 50% 63%/cover;height:420px;min-height:380px;position:relative;overflow:hidden}.battle-vignette{z-index:-1;background:linear-gradient(#f8f7eae8,#0000 32% 75%,#18392c35);position:absolute;inset:0}.encounter-heading{text-align:center;pointer-events:none;color:#254744;position:absolute;top:16px;left:10px;right:10px}.encounter-heading .eyebrow{color:#586c51}.encounter-heading h2{margin-top:5px;font-size:1.5rem}.battle-hero{justify-content:center;align-items:flex-end;width:29%;height:77%;display:flex;position:absolute;bottom:18px;left:3.5%}.battle-hero img{object-fit:contain;filter:drop-shadow(0 10px 7px #20413335);transform-origin:50% 95%;max-width:100%;height:100%;animation:4s ease-in-out infinite hero-breathe;position:relative}.ground-ring{background:#344e3e22;border:1px solid #f8edabbb;border-radius:50%;width:65%;height:22px;position:absolute;bottom:0;left:20%;box-shadow:0 0 17px #f9dfa543}.hero-nameplate{color:#fff0c4;background:#193b3ef2;border:1px solid #c0ac71bb;border-radius:5px;padding:10px 16px;font-family:Georgia,serif;font-size:1.3rem;position:absolute;bottom:0;left:8%}.hero-nameplate>span{color:#d4b774;margin-right:8px}.hero-nameplate small{color:#c3d9bd;padding-top:4px;font-family:Segoe UI,sans-serif;font-size:1rem;display:block}.enemy-group{justify-content:center;align-items:flex-end;gap:12px;display:flex;position:absolute;inset:118px 3% 18px 39%}.enemy{background:0 0;border:1px solid #0000;border-radius:14px;flex-direction:column;flex:1;justify-content:flex-end;align-items:center;min-width:0;max-width:300px;height:100%;padding:8px 8px 10px;transition:background .25s,border-color .25s;display:flex;position:relative}.enemy.selected{background:linear-gradient(#fff8d000,#fbf4c740);border-color:#fff1bf;box-shadow:inset 0 0 25px #fff6bc35}.enemy img{object-fit:contain;filter:drop-shadow(0 10px 6px #193b3344);width:100%;height:calc(100% - 65px);animation:4s ease-in-out infinite creature-float}.enemy:nth-child(2) img{animation-delay:-1.3s}.enemy:nth-child(3) img{animation-delay:-2.4s}.enemy-name{background:#fffcedf2;border:1px solid #d3d7b8;border-radius:6px;justify-content:center;gap:2px;min-width:115px;max-width:100%;padding:6px 10px;display:grid;position:absolute;top:-16px;left:50%;transform:translate(-50%)}.enemy-name b{color:#253e3e;font-family:Georgia,serif;font-size:1.3rem}.enemy-name small{color:#566e59;font-size:1rem;line-height:1.15}.enemy-hp{background:#19343265;border-radius:4px;flex-shrink:0;width:80%;max-width:170px;height:7px;margin:5px auto 8px;overflow:hidden}.enemy-hp i{height:100%;transition:width .3s;display:block}.attack-pill{white-space:nowrap;color:#e2e7cf;font-variant-numeric:tabular-nums;background:#163235f0;border:1px solid #b4b79b99;border-radius:20px;align-items:center;gap:5px;padding:6px 9px;font-size:1rem;display:flex}.attack-pill b{color:#f3d796}.attack-pill.urgent{color:#fff5e4;background:#8b4337;border-color:#ffaf77}.enemy.defeated{opacity:.32;filter:grayscale(.8)}.enemy.defeated img{animation:none}.target-chip{color:#5a593d;white-space:nowrap;background:#fbefc7f5;border:1px solid #a8935c;border-radius:5px;padding:4px 8px;font-size:1rem;display:none;position:absolute;bottom:79px;left:50%;transform:translate(-50%)}.enemy.selected .target-chip{display:block}.battle-callout{text-align:center;pointer-events:none;color:#fff9d9;text-shadow:0 1px 4px #173b38;z-index:3;font-family:Georgia,serif;font-size:1.2rem;position:absolute;bottom:16px;left:34%;right:25%}.battle-callout:not(:empty){background:#183e3bf0;border:1px solid #d6c088aa;border-radius:7px;padding:10px 16px}#battle-effects{pointer-events:none;z-index:2;width:100%;height:100%;position:absolute;inset:0}.battle-stage.hurt{animation:.6s ease-out stage-impact}.battle-hero.hit{animation:.7s ease-out hero-hit}.battle-hero.cast{animation:.8s ease-in-out hero-cast}.enemy.struck img{animation:.8s ease-out enemy-hit}.enemy.attacking img{animation:.7s ease-out enemy-lunge}#spell-orb{display:none}.question-board{background:linear-gradient(120deg,#fbf9f0,#f1f2e5);border-top:3px double #cdbd8d;grid-template-columns:minmax(0,1fr) 330px;gap:32px;padding:28px 3.4%;display:grid}.question-topline{flex-wrap:wrap;justify-content:space-between;align-items:center;gap:14px;margin-bottom:16px;display:flex}.subject-label{color:#96723b;font-size:1rem;font-weight:650}.answer-time{color:#6f8169;font-variant-numeric:tabular-nums;gap:6px;font-size:1rem;display:flex}.answer-time b{color:#415d51}#question-content h3{color:#25483e;min-height:36px;margin-bottom:22px;font-size:1.65rem;line-height:1.35}.answers{grid-template-columns:repeat(2,minmax(0,1fr));gap:11px;display:grid}.answer{text-align:left;color:#324f40;background:#fffef8ed;border:1px solid #cbd5bd;border-radius:7px;align-items:center;gap:13px;min-height:59px;padding:13px 16px;font-size:1.15rem;line-height:1.4;display:flex}.answer>.letter{color:#718563;background:#eef0df;border:1px solid #d2dac0;border-radius:50%;flex-shrink:0;place-items:center;width:31px;height:31px;font-size:1rem;display:grid}.answer:hover:not(:disabled){background:#e5edda;border-color:#8fa77d}.answer.revealed{background:#e7edcb;border-color:#8a9d5d;box-shadow:inset 4px 0 #97a35d}.answer.eliminated{text-decoration:line-through}.answer-note{color:#6c8063;margin-top:13px;font-size:1rem;line-height:1.6}.magic-panel{border-left:1px solid #d2dabc;padding-left:28px}.magic-heading{justify-content:space-between;align-items:center;gap:12px;margin-bottom:12px;display:flex}.magic-heading .eyebrow{color:#6a7c5d}.magic-heading>span:last-child{color:#537e70;white-space:nowrap}.spell{text-align:left;background:0 0;border-bottom:1px solid #d5ddc2;align-items:center;gap:10px;width:100%;padding:15px 0;display:flex}.spell-icon{color:#4e837d;background:#e3eade;border-radius:50%;flex-shrink:0;place-items:center;width:37px;height:37px;font-size:1.65rem;display:grid}.spell>span:nth-child(2){gap:5px;display:grid}.spell b{color:#345e4e;font-size:1.12rem;font-weight:600}.spell small{color:#6b7f62;font-size:1rem;line-height:1.4}.spell em{white-space:nowrap;color:#537e70;margin-left:auto;font-size:1rem;font-style:normal}.magic-panel>p{color:#738361;margin-top:16px;font-size:1rem;line-height:1.6}.feedback{max-width:840px}.feedback-kicker{color:#5d7f45;margin-bottom:14px;font-size:1rem;font-weight:700}.feedback.incorrect .feedback-kicker{color:#a57743}.feedback p,.encounter-intro p{color:#5d765c;max-width:790px;font-size:1.1rem;line-height:1.65}.feedback .primary,.encounter-intro .primary{margin-top:22px}.encounter-intro .eyebrow{color:#95743e;margin-bottom:14px;display:block}dialog{color:#345046;background:#faf8ee;border:1px solid #d8c697;border-radius:13px;width:680px;max-width:calc(100% - 30px);max-height:calc(100dvh - 40px);padding:0;box-shadow:0 20px 100px #06262666}dialog::backdrop{-webkit-backdrop-filter:blur(7px);backdrop-filter:blur(7px);background:#0a252bc4}#dialog-content{padding:38px}dialog h2{color:#274f46;margin:15px 0 20px;font-size:2.3rem;line-height:1.15}dialog p{color:#62765c;margin:15px 0;font-size:1.1rem;line-height:1.75}dialog .eyebrow{color:#94723d;font-size:1rem}.modal-actions{flex-wrap:wrap;gap:12px;margin-top:27px;display:flex}.secondary{color:#4c6a5e;background:0 0;border:1px solid #b9c9aa;border-radius:7px;min-height:50px;padding:13px 18px;font-size:1rem}.modal-symbol{color:#b59a5c;font-size:2.5rem}.reward-grid{background:#eef0dc;border:1px solid #d0dabb;border-radius:7px;justify-content:space-around;gap:12px;margin-top:24px;padding:22px 12px;display:flex}.reward-grid>div{text-align:center;flex:1;gap:9px;min-width:0;display:grid}.reward-grid strong{color:#496c52;font-family:Georgia,serif;font-size:1.8rem;font-weight:400}.reward-grid span{color:#78825d;font-size:1rem;line-height:1.4}.journal-page{border-bottom:1px solid #d3debe;padding:18px 0}.journal-page h3{font-size:1.4rem}.journal-page p{margin:10px 0 0;font-size:1rem}.ranking-table{border-collapse:collapse;text-align:left;table-layout:fixed;width:100%;margin-top:20px;font-size:1rem}.ranking-table td,.ranking-table th{overflow-wrap:anywhere;border-bottom:1px solid #d3ddc0;padding:14px 6px}.ranking-table th{color:#778260;font-weight:600}.ranking-table th:first-child{width:10%}.ranking-table td small{color:#6f8363;margin-top:6px;font-size:1rem;display:block}.toast{z-index:40;color:#fff1c2;text-align:center;pointer-events:none;background:#173c3cf5;border:1px solid #b8b17b;border-radius:8px;max-width:90%;padding:16px 23px;font-size:1.1rem;position:fixed;bottom:28px;left:50%;transform:translate(-50%);box-shadow:0 10px 25px #173b3330}#battle-transition{z-index:30;color:#f9ecc3;pointer-events:all;text-align:center;background:radial-gradient(#387b78 0%,#142d40 70%);flex-direction:column;justify-content:center;align-items:center;gap:18px;padding:30px;animation:1.15s ease-in-out both battle-enter;display:flex;position:fixed;inset:0}#battle-transition>span:not(.transition-compass){letter-spacing:.15em;font-size:1.1rem}#battle-transition strong{font:italic 2.6rem Georgia,serif}.transition-compass{color:#ffe6a0;filter:drop-shadow(0 0 26px #ffd577);font-size:5rem;animation:1.15s ease-out compass-turn}.game-paused *{animation-play-state:paused!important}@keyframes hero-breathe{50%{transform:translateY(-5px)rotate(.6deg)}}@keyframes creature-float{50%{transform:translateY(-8px)rotate(2deg)}}@keyframes shadow-breathe{50%{opacity:.6;transform:scale(.86)}}@keyframes hero-hit{25%{filter:brightness(1.6)saturate(.5);transform:translate(-18px)rotate(-4deg)}65%{transform:translate(5px)}}@keyframes hero-cast{25%{transform:translate(-8px)rotate(-2deg)}55%{filter:brightness(1.28);transform:translate(26px)rotate(3deg)}}@keyframes enemy-hit{45%{filter:brightness(1.8);transform:translate(22px)rotate(7deg)}70%{transform:translate(-6px)}}@keyframes enemy-lunge{40%{transform:translate(-34px)scale(1.09)rotate(-7deg)}70%{transform:translate(8px)}}@keyframes stage-impact{25%{transform:translate(6px)}40%{transform:translate(-6px)}65%{transform:translate(3px)}}@keyframes battle-enter{0%{clip-path:polygon(0 0,0 0,0 100%,0 100%)}30%,65%{clip-path:polygon(0 0,100% 0,100% 100%,0 100%);opacity:1}to{clip-path:polygon(100% 0,100% 0,100% 100%,100% 100%);opacity:1}}@keyframes compass-turn{0%{transform:rotate(-140deg)scale(.3)}70%{transform:rotate(15deg)scale(1.15)}to{transform:rotate(0)scale(1)}}@media (width>=1700px){.welcome-screen{padding-left:10%;padding-right:10%}.welcome-copy h1{font-size:4.4rem}.welcome-character{min-height:750px}.battle-stage{height:480px}}@media (width<=1200px){.chapter-heading,.header-divider{display:none}.status-strip{flex-wrap:wrap;gap:20px}.session-clock{display:none}.hero-identity{min-width:235px}.xp-vital{max-width:none}.vital{min-width:115px}.question-board{grid-template-columns:minmax(0,1fr) 295px;gap:25px}.magic-panel{padding-left:22px}.spell-icon{display:none}.enemy-group{gap:6px;left:36%}.battle-hero{width:31%;left:2%}.attack-word{display:none}.welcome-screen{padding-left:4%;padding-right:4%}.chapters-preview article{gap:10px}.chapters-preview article img{width:68px;height:75px}.chapters-preview article span{font-size:1.15rem}.map-objective{max-width:370px}.map-title h2{font-size:1.8rem}.map-title p{max-width:290px}.character-signature strong{font-size:2rem}}@media (width<=900px){.brand{width:175px}.app-header{gap:18px;padding:14px 22px}.app-header nav{gap:18px}.tool-name{display:none}.welcome-screen{grid-template-columns:1.1fr .9fr}.welcome-copy h1{font-size:2.9rem}.welcome-character canvas{width:125%;height:68%;top:30px;left:-12%}.character-signature{bottom:11%;right:0}.character-signature strong{font-size:1.65rem}.avatar-choice label{gap:7px;padding:9px}.avatar-choice small,.avatar-choice i{display:none}.chapters-preview article{display:grid}.chapters-preview article img{width:100%;height:70px}.setup-row{grid-template-columns:142px 1fr;gap:12px}.question-board{padding:25px;display:block}.magic-panel{border-top:1px solid #d2dabc;border-left:0;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin-top:22px;padding:20px 0 0;display:grid}.magic-heading{grid-column:1/-1}.spell{background:#f7f9ea;border:1px solid #cbd6bc;border-radius:8px;align-content:start;padding:12px;display:grid}.spell em{margin:0}.magic-panel>p{grid-column:1/-1;margin:0}.status-strip{padding:16px 24px}.xp-vital{flex-basis:100%;align-items:center;gap:20px;display:flex}.xp-vital>div:first-child{min-width:280px;margin:0}.xp-vital .meter{flex:1}#exploration-view{height:calc(100dvh - 340px);min-height:660px}.map-objective{gap:10px;max-width:300px;padding:14px;top:150px}.map-objective p{font-size:1.1rem}.map-controls>span:last-child{display:none}#touch-pad{bottom:85px}.map-controls,.explored-count{bottom:25px}.hero-nameplate{padding:8px 12px;left:0}.hero-nameplate small{max-width:145px}.battle-stage{height:420px}.enemy-name{width:100%;min-width:0;padding:6px}.enemy-name b{font-size:1.2rem}.enemy-name small{font-size:1rem}.enemy-group{top:126px;left:34%;right:2%}.target-chip{padding:3px 6px;font-size:1rem}.app-footer>span:first-child{max-width:380px;line-height:1.4}}@media (width<=650px){.app-header{gap:12px;min-height:83px;padding:12px 16px}.brand{width:135px}.app-header nav{gap:13px}.tool{padding:8px 0}.tool>span:first-child{font-size:1.4rem}#music-button{white-space:normal;max-width:72px;line-height:1.2}.icon-button{width:42px;height:42px}.welcome-screen{flex-direction:column;padding:24px 20px;display:flex}.welcome-character{flex-shrink:0;order:0;align-self:auto;height:480px}.welcome-character canvas{width:100%;height:440px;inset:-20px 0 auto}.welcome-character .hero-halo{width:80%;top:10%}.floating-shadow{bottom:70px}.character-signature{bottom:0;right:0}.character-signature strong{font-size:1.9rem}.welcome-copy{order:1;margin-top:15px}.welcome-copy h1{font-size:2.8rem}.welcome-kicker{font-size:1rem}.welcome-copy>p{font-size:1.2rem}#start-form{max-width:none}.avatar-choice small{display:block}.avatar-choice label{padding:11px}.chapters-preview{order:2;margin-top:10px}.chapters-preview>div{flex-direction:column}.chapters-preview article{gap:18px;display:flex}.chapters-preview article img{width:108px;height:80px}.chapters-preview article span{font-size:1.25rem}.status-strip{gap:13px;padding:12px 16px;position:relative}.hero-identity{gap:12px;min-width:100%}.hero-identity>div>b{max-width:270px;font-size:1.25rem}.avatar{width:54px;height:54px}.vital{min-width:110px;max-width:none}.xp-vital{min-width:100%;display:block}.xp-vital>div:first-child{min-width:0;margin-bottom:8px}.xp-vital .meter{height:6px}.map-title{top:18px;left:18px}.map-title h2{font-size:1.65rem}.map-title p{max-width:320px;font-size:1rem}.map-objective{max-width:none;padding:12px 14px;top:142px;left:18px;right:18px}.map-objective p{margin:5px 0;font-size:1rem}.map-objective .eyebrow{font-size:1rem}#exploration-view{height:740px;min-height:740px}.map-controls{max-width:170px;line-height:1.8;bottom:22px;left:16px}.map-controls kbd{display:none}#touch-pad{bottom:103px;left:16px}.explored-count{padding:10px;font-size:1rem;bottom:23px;right:16px}.battle-stage{height:400px;min-height:400px}.encounter-heading{top:13px;left:16px;right:16px}.encounter-heading h2{font-size:1.2rem}.encounter-heading .eyebrow{font-size:1rem;line-height:1.25}.battle-hero{width:30%;height:62%;bottom:30px;left:0}.hero-nameplate{padding:8px;font-size:1.1rem;bottom:-16px;left:5%}.hero-nameplate>span,.hero-nameplate small{display:none}.enemy-group{gap:3px;inset:141px 1% 25px 31%}.enemy{padding:5px 2px 7px}.enemy-name{word-break:normal;max-width:100%;padding:4px 2px;top:-20px}.enemy-name b{font-size:1rem}.enemy-name small{display:none}.enemy img{height:calc(100% - 58px)}.enemy-hp{width:90%;height:6px}.attack-pill{max-width:100%;padding:5px;font-size:1rem}.target-chip{padding:3px 4px;bottom:76px}.battle-callout{font-size:1.1rem;bottom:10px;left:16%;right:10%}.battle-callout:not(:empty){padding:8px 10px}.question-board{padding:22px 18px}.question-topline{gap:8px}#question-content h3{font-size:1.5rem}.answers{grid-template-columns:1fr}.answer{min-height:58px;padding:12px;font-size:1.1rem}.answer:last-child:nth-child(odd){grid-column:auto}.answer-note{font-size:1rem}.magic-panel{display:block}.magic-heading{display:flex}.spell{margin-bottom:10px;padding:13px;display:flex}.spell>span:nth-child(2){flex:1}.spell em{margin-left:auto}.magic-panel>p{margin-top:15px}.feedback p,.encounter-intro p{font-size:1.05rem}.app-footer{gap:16px;padding:20px}.app-footer>span:first-child,.app-footer .copyright{width:100%}.app-footer .text-button{padding:0}#dialog-content{padding:25px}dialog h2{font-size:1.85rem}.reward-grid{flex-wrap:wrap;gap:20px}.reward-grid>div{min-width:115px}.ranking-table{font-size:1rem}.ranking-table th:nth-child(4),.ranking-table td:nth-child(4){display:none}.ranking-table th:nth-child(3){width:28%}#battle-transition strong{font-size:2rem}}@media (prefers-reduced-motion:reduce){*,:before,:after{scroll-behavior:auto!important;transition:none!important;animation:none!important}}.enemy.mimic img{z-index:1;height:65%;margin-bottom:22px}.mimic-shell{z-index:0;pointer-events:none;background:url(/art/questemy-v2/chest-open-v2.png) 100% 100%/400% 100% no-repeat;width:80%;height:48%;position:absolute;bottom:54px}.enemy.mimic .enemy-name,.enemy.mimic .enemy-hp,.enemy.mimic .attack-pill{z-index:2}.welcome-grain{pointer-events:none;z-index:-1;position:absolute;inset:0}@media (width>=901px) and (height<=850px){.app-header{min-height:84px;padding-top:10px;padding-bottom:10px}.status-strip{min-height:94px;padding-top:12px;padding-bottom:12px}.battle-stage{height:290px;min-height:290px}.encounter-heading{top:10px}.encounter-heading h2{font-size:1.25rem}.enemy-group{top:95px;bottom:12px}.enemy-name{padding:3px 8px}.enemy-name b{font-size:1.1rem}.battle-hero{height:78%;bottom:12px}.hero-nameplate{padding:6px 11px}.hero-nameplate small{display:none}.question-board{gap:25px;padding-top:18px;padding-bottom:18px}.question-topline{margin-bottom:10px}#question-content h3{margin-bottom:14px;font-size:1.5rem}.answer{min-height:54px;padding:10px 13px}.answer-note{margin-top:10px}.spell{padding:11px 0}.magic-heading{margin-bottom:8px}}#game.enemy-impact:after{content:"";z-index:14;pointer-events:none;opacity:0;background:#ec5f4e20;animation:.65s ease-out screen-impact;position:fixed;inset:0;box-shadow:inset 0 0 120px #ef5546b0}#hp-text.damage{animation:.8s ease-out hp-damage}@keyframes screen-impact{18%{opacity:.95}to{opacity:0}}@keyframes hp-damage{25%,55%{color:#cf4238;transform:scale(1.15)}}.app-header nav{gap:10px}.tool.icon-only{border:1px solid #d5ddc9;border-radius:50%;justify-content:center;width:48px;height:48px;padding:10px}.tool.icon-only:hover{background:#e9eee1}.tool svg,.icon-button svg{flex-shrink:0;width:26px;height:26px}.icon-button{justify-content:center;align-items:center;display:inline-flex}.map-objective{pointer-events:auto;align-items:flex-start;gap:12px;max-width:400px;padding:16px;transition:width .2s}.map-objective.collapsed{max-width:64px;padding:8px}.map-objective #objective-toggle{color:#305448;background:#f7f5e8;flex-shrink:0}.map-objective:not(.collapsed) #objective-toggle svg{transform:rotate(180deg)}#objective-body[hidden]{display:none}#objective-body .text-button{padding-bottom:0}#objective-body p{line-height:1.45}#touch-pad{bottom:28px}.map-title{max-width:min(44%,410px)}.map-title p{max-width:350px}#battle-puppet{z-index:1;width:100%;height:100%;display:block;position:relative}.battle-hero{width:31%;left:2%;overflow:visible}.hero-nameplate{z-index:2}.health-pose-label{z-index:3;color:#ffddbd;white-space:nowrap;background:#543a32ed;border-radius:20px;padding:5px 13px;position:absolute;top:-12px;left:50%;transform:translate(-50%)}.health-pose-label:empty{display:none}.enemy.boss{flex:0 360px;max-width:360px}.enemy.boss img{filter:drop-shadow(0 0 16px #e9a643aa);max-width:100%;height:90%}.enemy.boss .enemy-name{background:#493824e6;border:1px solid #e7b566}.enemy.boss .target-chip{color:#243534;background:#dca650}.question-heading{justify-content:space-between;align-items:flex-start;gap:18px;display:flex}.read-question{background:#e8eee1;border:1px solid #bccbb8;border-radius:12px;flex-shrink:0;align-items:center;gap:8px;padding:11px 14px;font-size:1rem;display:flex}.read-question svg,.read-page svg{flex-shrink:0;width:23px;height:23px}.read-question span{max-width:130px}.reading-status{color:#3a6952;font-weight:600;line-height:1.4}.reading-status:not(:empty){padding:0 0 14px}.read-page{align-items:center;gap:10px;display:flex}.battle-summary{border-top:1px solid #ced7c2;margin-top:22px;padding-top:22px}.battle-summary>h3{font-size:1.55rem}.review-item{border-bottom:1px solid #d9ddce;padding:22px 0}.review-item h3{margin:10px 0;font-size:1.25rem}.review-item p{font-size:1rem;line-height:1.6}.review-answer{color:#2f7051;font-weight:700;margin-bottom:7px!important}.review-mistakes{color:#875644;margin-top:9px!important}.battle-review{border:1px solid #d5ddc9;border-radius:14px;margin-top:16px;padding:16px}.battle-review summary,.journal-page summary{cursor:pointer;font-weight:650;line-height:1.5}.battle-review[open] summary{padding-bottom:12px}.key-reward{background:#f4ebd0;border:1px solid #c5a462;border-radius:14px;padding:18px}.key-reward strong{color:#775a24;font-size:1.25rem}.key-reward p{margin-top:10px!important}.copyright{white-space:normal;overflow-wrap:anywhere}.app-footer{font-size:1rem}@media (width<=900px){.map-title{max-width:43%}.map-objective{max-width:45%;top:20px}.question-heading{gap:10px}.read-question{padding:10px}.battle-hero{width:34%;left:0}.app-header nav{gap:7px}}@media (width<=650px){.app-header{gap:14px}.app-header nav{gap:6px}.tool.icon-only{width:44px;height:44px;padding:9px}.app-header .brand{width:155px}.app-header .chapter-heading{display:none}.map-title{max-width:85%;top:20px}.map-title p{display:none}.map-objective{max-width:calc(100% - 36px);top:120px;right:18px}.map-objective.collapsed{top:20px}.question-heading{flex-wrap:wrap}.question-heading h3{flex-basis:100%;margin-bottom:0!important}.read-question{margin:4px 0 14px}.read-question span{max-width:none}.battle-hero{width:43%;height:67%;bottom:26px;left:-2%}.health-pose-label{padding:5px 8px;top:0}.enemy.boss{max-width:100%}.enemy.boss img{height:85%}.enemy.boss .enemy-name b{font-size:1.2rem}.copyright{line-height:1.5}.review-item{padding:18px 0}}@media (prefers-reduced-motion:reduce){.map-objective{transition:none}}#objective-body .text-button{color:#f1d99d}.enemy:disabled{opacity:1}.enemy.defeated{opacity:.3}.enemy.boss .enemy-name{color:#fff2cb}.hero-nameplate{white-space:nowrap;justify-content:center;align-items:center;gap:8px;padding:7px 12px;display:flex;bottom:0;left:50%;transform:translate(-50%)}#battle-puppet{height:calc(100% - 34px)}.battle-hero .ground-ring{bottom:36px}@media (width<=430px){.app-header{gap:10px;padding:12px 14px}.app-header .brand{width:112px}}.enemy-group{top:148px}.enemy-name{z-index:1;top:-62px}.enemy-name b{line-height:1.1}.enemy.boss .enemy-name b,.enemy.boss .enemy-name small{color:#fff2cb}@media (width>=651px) and (height<=850px){.encounter-heading h2{display:none}.enemy-group{top:105px}.enemy-name{top:-56px}}@media (width<=650px){.enemy-group{top:145px}.enemy-name{top:-38px}.map-objective.collapsed{left:auto;right:18px}.map-title{max-width:calc(100% - 94px)}}.enemy .target-chip{border-radius:50%;padding:2px 7px;line-height:1.3;inset:8px 8px auto auto;transform:none}.narration-controls{justify-content:flex-end;margin-bottom:12px;display:flex}.narration-toggle{border-radius:24px;gap:10px;min-height:44px;margin:0;padding:8px 12px}.narration-toggle span{max-width:none}.narration-toggle i{background:#8a9890;border-radius:20px;flex-shrink:0;width:34px;height:20px;position:relative}.narration-toggle i:after{content:"";background:#fff;border-radius:50%;width:14px;height:14px;transition:transform .15s;position:absolute;top:3px;left:3px}.narration-toggle[aria-checked=true] i{background:#276d50}.narration-toggle[aria-checked=true] i:after{transform:translate(14px)}.avatar-choice{display:block}.avatar-options{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;display:grid}.avatar-choice label{min-height:80px;gap:8px!important;padding:8px!important}.avatar-choice label img{object-fit:cover;object-position:center 14%;background:#e3eadc;border-radius:7px;flex-shrink:0;width:50px;height:65px}.avatar-choice small{font-size:1rem;line-height:1.2;display:block}.avatar-choice input{accent-color:#35644e}.profession-choice{border:0;margin:0 0 16px;padding:0}.profession-choice legend{color:#536f60;margin-bottom:9px;font-weight:600}#profession-options{gap:7px;display:grid}#profession-options label{cursor:pointer;background:#fffdf2a8;border:1px solid #bccbb3;border-radius:7px;align-items:center;gap:10px;padding:9px 12px;display:flex}#profession-options label:has(input:checked){background:#e9eedc;border-color:#3b725b}#profession-options input{accent-color:#35644e;width:18px;height:18px}#class-description,.rank-sharing-note{color:#657861;margin:10px 0;font-size:1rem;line-height:1.5}.character-signature{max-width:85%}.character-signature strong{max-width:390px}.welcome-character{max-height:1000px;position:sticky;top:20px}.welcome-character canvas{height:80%;top:0}.rank-filters{flex-wrap:wrap;align-items:end;gap:15px;display:flex}.rank-tabs{gap:8px;display:flex}.rank-tabs [aria-pressed=true]{color:#fff9e8;background:#285449}.rank-filters label{gap:6px;display:grid}.rank-filters select{color:#355849;background:#fffdf4;border:1px solid #b9c9aa;border-radius:7px;min-height:48px;padding:8px 12px}.rank-note{font-size:1rem}.hero-identity>div>span{white-space:normal;max-width:380px}.hero-nameplate small{line-height:1.2}.ranking-table th:nth-child(2){width:47%}@media (width<=900px){.welcome-screen{grid-template-columns:1.3fr .7fr}.welcome-character canvas{width:135%;height:65%;left:-15%}.avatar-choice small{display:block}.avatar-choice label img{width:40px;height:60px}.avatar-options{gap:7px}.avatar-choice input{width:16px;height:16px}.character-signature{max-width:100%}.character-signature strong{font-size:1.8rem}}@media (width<=650px){.welcome-character{max-height:none;position:relative;top:0}.welcome-character canvas{width:100%;height:440px;top:-20px;left:0}.avatar-choice label{flex-wrap:wrap;align-content:start}.avatar-choice label span{flex:1;min-width:80px}.avatar-choice label img{width:42px;height:56px}.avatar-options{gap:8px}.avatar-choice small{font-size:1rem}.character-signature{max-width:80%}.rank-filters{display:grid}.rank-filters select{width:100%}}#profession-options small{color:#59745f;margin-top:3px;font-size:14pt;font-weight:400;line-height:1.4;display:block}.profession-choice,.avatar-choice{margin-top:20px}.enemy.science>img{filter:hue-rotate(315deg)saturate(1.15)}:is(body:has(#welcome:not(.hidden)),body:has(#battle-view:not(.hidden)):has(#game:not(.hidden))){grid-template-rows:72px minmax(0,1fr) 48px;height:100dvh;min-height:0;display:grid;overflow:hidden}:is(body:has(#welcome:not(.hidden)) #app,body:has(#battle-view:not(.hidden)) #app){min-height:0}:is(body:has(#welcome:not(.hidden)) .app-header,body:has(#battle-view:not(.hidden)) .app-header){gap:20px;min-height:0;padding:8px 3%}:is(body:has(#welcome:not(.hidden)) .app-header .brand,body:has(#battle-view:not(.hidden)) .app-header .brand){width:174px}:is(body:has(#welcome:not(.hidden)) .app-footer,body:has(#battle-view:not(.hidden)) .app-footer){flex-wrap:nowrap;gap:14px;min-height:0;padding:4px 3%}:is(body:has(#welcome:not(.hidden)) .app-footer>span:first-child,body:has(#battle-view:not(.hidden)) .app-footer>span:first-child){display:none}.app-footer .text-button{white-space:nowrap}.welcome-screen{grid-template-columns:minmax(540px,1.12fr) minmax(0,1fr);align-items:center;gap:30px;height:100%;min-height:0;padding:20px 5%}.welcome-copy{align-self:center;width:100%;max-width:720px;min-height:0}.welcome-copy h1{margin:6px 0 8px;font-size:clamp(2rem,3.1vw,2.8rem);line-height:1.05}.welcome-intro p{color:#58725f;font-size:1rem;line-height:1.3}.welcome-kicker{letter-spacing:.12em;font-size:1rem}.welcome-intro{margin-bottom:14px}#start-form{gap:12px;max-width:none;display:grid}.player-setup{grid-template-columns:minmax(0,1fr) 152px;align-items:start;gap:12px;display:grid}#start-form label{font-size:1rem;line-height:1.25}.name-field{gap:8px;height:46px;margin:5px 0 0;padding:0 12px}.name-field input{height:44px;font-size:1rem}.setup-row{margin:0;display:block}.setup-row select{height:46px;min-height:46px;margin-top:5px;padding:7px 10px;font-size:1rem}.grade-summary{display:none}.profession-choice,.avatar-choice{min-width:0;margin:0;padding:0}.profession-choice legend,.avatar-choice legend{letter-spacing:0;color:#486959;margin-bottom:7px;font-size:1rem;line-height:1.3}#profession-options{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}#profession-options label{border-radius:10px;gap:7px;min-height:66px;padding:9px 10px;transition:background .15s,box-shadow .15s}#profession-options label:has(input:checked){background:#e5edd8ee;box-shadow:inset 0 0 0 1px #427258}#profession-options input{flex-shrink:0;width:18px;height:18px;margin:0}#profession-options b{font-size:1rem;line-height:1.25;display:block}#profession-options small{margin-top:4px;font-size:1rem;line-height:1.2}#class-description{max-width:650px;min-height:2.7em;margin:9px 0 0;font-size:1rem;line-height:1.35}.avatar-options{gap:10px}.avatar-choice label{background:#fffdf3dd;flex-wrap:nowrap;min-height:66px;align-items:center!important;gap:12px!important;padding:6px 12px!important}.avatar-choice label img{object-fit:contain;object-position:center;background:0 0;flex-shrink:0;width:45px;height:52px}.avatar-choice label span{min-width:0}.avatar-choice small{display:none}.avatar-choice b{font-size:1.12rem}.rank-sharing-note{color:#687864;margin:0;font-size:1rem;line-height:1.3}#start-button{min-height:48px;padding:10px 18px;font-size:1.1rem}#resume-button{white-space:nowrap;text-overflow:ellipsis;max-width:100%;padding:7px 0 0;font-size:1rem;line-height:1.3;overflow:hidden}.welcome-character{align-self:stretch;height:100%;min-height:0;max-height:none;position:relative;top:auto}.welcome-character canvas{width:100%;height:calc(100% - 145px);max-height:none;inset:0 0 145px}.hero-halo{width:90%;top:10%}.floating-shadow{bottom:155px}.character-signature{text-align:center;gap:4px;max-width:none;bottom:58px;left:0;right:0}.character-signature>span{letter-spacing:.1em;font-size:1rem}.character-signature strong{max-width:none;font-size:clamp(1.5rem,2.5vw,2.1rem)}.character-signature small{margin:3px 0 0;font-size:1.2rem}.world-invitation{bottom:0;text-align:center;color:#4f695a;gap:4px;font-size:1rem;line-height:1.2;display:grid;position:absolute;inset-inline:0}.world-invitation>span:first-child{letter-spacing:.07em}body:has(#battle-view:not(.hidden)):has(#game:not(.hidden)) #game{grid-template-rows:86px minmax(0,1fr);height:100%;min-height:0;display:grid}body:has(#battle-view:not(.hidden)) .status-strip{flex-wrap:nowrap;gap:20px;min-height:0;padding:8px 3%;position:relative}body:has(#battle-view:not(.hidden)) .hero-identity{flex:1.25;min-width:0;max-width:35%}body:has(#battle-view:not(.hidden)) .hero-identity>div>b{white-space:nowrap;text-overflow:ellipsis;max-width:220px;font-size:1.15rem}body:has(#battle-view:not(.hidden)) .hero-identity>div>span{white-space:nowrap;text-overflow:ellipsis;font-size:1rem;overflow:hidden}body:has(#battle-view:not(.hidden)) .hero-identity>div:last-child{gap:3px}body:has(#battle-view:not(.hidden)) .avatar{width:48px;height:48px}body:has(#battle-view:not(.hidden)) .vital{min-width:100px;max-width:190px}body:has(#battle-view:not(.hidden)) .session-clock{display:none}#battle-view{grid-template-columns:minmax(0,1.05fr) minmax(490px,1fr);height:100%;min-height:0;display:grid;overflow:hidden}.battle-stage{background-position:45% 62%;height:100%;min-height:0}.encounter-heading{top:18px;left:14px;right:14px}.encounter-heading h2{font-size:1.25rem;line-height:1.3;display:block}.battle-hero{width:45%;height:70%;bottom:34px;left:0}.enemy-group{gap:5px;inset:31% 2% 34px 46%}.enemy{padding:4px 3px 8px}.enemy-name{width:max-content;min-width:0;max-width:100%;padding:5px 9px;top:-57px}.enemy-name b{font-size:1.1rem}.enemy-name small{font-size:1rem}.enemy img{height:calc(100% - 50px)}.enemy-hp{width:85%}.attack-pill{padding:5px 7px}.attack-word{display:none}.battle-stage[data-enemies="3"] .enemy-group{gap:3px;left:39%}.battle-stage[data-enemies="3"] .battle-hero{width:37%}.battle-stage[data-enemies="3"] .enemy-name{padding:5px 4px}.battle-callout{font-size:1.1rem;bottom:12px;left:3%;right:3%}.question-board{border:0;border-left:1px solid #cbbf96;grid-template-rows:minmax(0,1fr) auto;grid-template-columns:minmax(0,1fr);gap:0;height:100%;min-height:0;padding:0;overflow:hidden}#question-content{overscroll-behavior:contain;scrollbar-gutter:stable;min-height:0;padding:18px 22px;scroll-padding-block:18px;overflow-y:auto}.narration-controls{margin-bottom:10px}.narration-toggle{min-height:40px;padding:6px 10px}.question-topline{gap:5px 12px;margin-bottom:10px;font-size:1rem;line-height:1.3}.subject-label{font-size:1rem;line-height:1.3}.answer-time{font-size:1rem}.question-heading{flex-wrap:nowrap;align-items:flex-start;gap:10px}#question-content h3{min-height:0;margin-bottom:14px;font-size:1.45rem;line-height:1.3}.question-heading h3{flex-basis:auto}#read-question{border-radius:50%;min-width:42px;min-height:42px;margin:0;padding:8px}#read-question span{display:none}.reading-status{font-size:1rem;line-height:1.3}.reading-status:not(:empty){padding-bottom:10px}.answers{grid-template-columns:1fr;gap:8px}.answer>.letter{width:28px;height:28px}.answer-note{margin-top:12px;font-size:1rem;line-height:1.35}.magic-panel{background:#edf0e1;border:0;border-top:1px solid #cad7c0;grid-template-columns:repeat(3,minmax(0,1fr));align-items:stretch;gap:8px;padding:10px 12px 12px;display:grid}.magic-heading{grid-column:1/-1;margin:0;line-height:1.2}.magic-heading .eyebrow{letter-spacing:0;font-size:1rem}.spell{text-align:center;background:#fafbf0;border:1px solid #c7d2ba;border-radius:8px;flex-direction:column;justify-content:center;align-items:center;gap:3px;min-width:0;padding:8px 5px;line-height:1.2;display:flex}.spell-icon{display:none}.spell>span:nth-child(2){gap:3px;min-width:0;display:grid}.spell b,.spell small{font-size:1rem;line-height:1.25}.spell em{margin:0;font-size:1rem}.magic-panel>p{display:none}.feedback p,.encounter-intro p{font-size:1rem;line-height:1.5}.feedback .primary,.encounter-intro .primary{margin-top:16px;padding:12px 18px;font-size:1rem}@media (width>=1101px) and (height<=820px){.welcome-screen{grid-template-columns:minmax(570px,1.14fr) minmax(0,1fr);gap:24px;padding:12px 4%}.welcome-intro p,.welcome-kicker{display:none}.welcome-intro{margin-bottom:12px}.welcome-copy h1{margin:0;font-size:2rem}#start-form{gap:8px}#profession-options label{min-height:60px;padding:7px 9px}#class-description{min-height:2.7em;margin-top:6px}.profession-choice legend,.avatar-choice legend{margin-bottom:5px}.avatar-choice label{min-height:60px}.avatar-choice label img{height:46px}#question-content{padding:12px 18px}.narration-controls{margin-bottom:7px}#question-content h3{margin-bottom:10px;font-size:1.3rem}.magic-panel{gap:6px;padding:8px 10px}.spell{padding:6px 4px}}@media (width<=1100px){:is(body:has(#welcome:not(.hidden)),body:has(#battle-view:not(.hidden)):has(#game:not(.hidden))){grid-template-rows:68px minmax(0,1fr) 46px}.welcome-screen{grid-template-columns:minmax(480px,1.25fr) minmax(0,.75fr);gap:12px;padding:18px 3%}.welcome-copy h1{font-size:2.1rem}.welcome-kicker,.welcome-intro p{display:none}.welcome-intro{margin-bottom:12px}#start-form{gap:10px}#profession-options label{min-height:68px;padding:7px 8px}.character-signature strong{font-size:1.7rem}.world-invitation{display:none}.character-signature{bottom:16px}.welcome-character canvas{height:calc(100% - 120px);inset:0 0 120px}.floating-shadow{bottom:128px}#battle-view{grid-template-rows:minmax(220px,36%) minmax(0,1fr);grid-template-columns:minmax(0,1fr)}.battle-stage{height:100%;min-height:0}.encounter-heading{top:10px}.encounter-heading h2{display:none}.battle-hero{width:32%;height:89%;bottom:6px;left:2%}.enemy-group{gap:12px;inset:78px 3% 8px 39%}.battle-stage[data-enemies="3"] .enemy-group{left:38%}.battle-stage[data-enemies="3"] .battle-hero{width:33%;left:0}.enemy-name{align-items:center;gap:6px;display:flex;top:-39px}.enemy img{height:calc(100% - 44px)}.enemy-name small{display:block}.enemy.boss img{height:82%}.enemy-hp{margin:2px auto 4px}.attack-pill{padding:3px 7px}.question-board{border-top:1px solid #cbbf96;border-left:0}.answers{grid-template-columns:repeat(2,minmax(0,1fr))}.answer:last-child:nth-child(odd){grid-column:1/-1}#question-content{padding:12px 22px}.narration-controls{margin-bottom:6px}#question-content h3{font-size:1.4rem}.magic-panel{grid-template-columns:repeat(3,minmax(0,1fr));padding:8px 12px}.magic-heading{display:none}.spell{text-align:left;grid-template-columns:1fr auto;gap:7px;padding:7px 10px;display:grid}.spell>span:nth-child(2){gap:2px}.spell em{white-space:nowrap}.spell small{font-size:1rem}body:has(#battle-view:not(.hidden)) .xp-vital{display:none}}@media (width>=701px) and (width<=1100px) and (height<=820px){.welcome-screen{grid-template-columns:minmax(540px,1fr) minmax(0,.6fr);padding:10px 3%}.welcome-copy h1{font-size:1.85rem}.welcome-intro{margin-bottom:10px}#start-form{gap:7px}#profession-options label,.avatar-choice label{min-height:59px}.avatar-choice label img{height:44px}#class-description{margin-top:6px}.rank-sharing-note{line-height:1.2}#battle-view{grid-template-rows:230px minmax(0,1fr)}.magic-panel .spell small{display:none}#question-content h3{font-size:1.25rem}}@media (width>=701px) and (width<=900px) and (height>=821px){.welcome-screen{grid-template-columns:minmax(0,1fr) 230px;gap:12px;padding:22px}.welcome-character canvas{width:120%;left:-10%}#profession-options{grid-template-columns:1fr}.character-signature strong{font-size:1.5rem}}@media (width<=700px){:is(body:has(#welcome:not(.hidden)),body:has(#battle-view:not(.hidden)):has(#game:not(.hidden))){grid-template-rows:62px minmax(0,1fr) 62px}:is(body:has(#welcome:not(.hidden)) .app-header,body:has(#battle-view:not(.hidden)) .app-header){gap:10px;padding:6px 12px}:is(body:has(#welcome:not(.hidden)) .app-header .brand,body:has(#battle-view:not(.hidden)) .app-header .brand){width:125px}.header-divider,.chapter-heading{display:none}.app-header nav{gap:6px}:is(body:has(#welcome:not(.hidden)) .app-footer,body:has(#battle-view:not(.hidden)) .app-footer){gap:12px;padding:5px 12px}.copyright{max-width:270px;font-size:1rem;line-height:1.2}.welcome-screen{height:100%;padding:12px 18px;display:block;overflow-y:auto}.welcome-copy{max-width:none}.welcome-intro{margin-bottom:12px}.welcome-copy h1{font-size:1.7rem}.welcome-character{display:none}#start-form{gap:10px}.player-setup{grid-template-columns:minmax(0,1fr) 122px;gap:10px}.name-field{padding:0 9px}.name-field>span{display:none}#profession-options label{gap:6px;min-height:78px;padding:8px 7px}#profession-options small{margin-top:4px}#profession-options b{line-height:1.2}#profession-options input{width:16px;height:16px}.avatar-choice label{min-height:64px;gap:8px!important;padding:6px 9px!important}.avatar-choice label img{width:34px;height:50px}.avatar-choice label span{min-width:0}#class-description{min-height:4.05em;line-height:1.35}.rank-sharing-note{line-height:1.3}body:has(#battle-view:not(.hidden)):has(#game:not(.hidden)) #game{grid-template-rows:82px minmax(0,1fr)}body:has(#battle-view:not(.hidden)) .status-strip{grid-template-columns:1fr 1fr;gap:10px;padding:6px 12px;display:grid}body:has(#battle-view:not(.hidden)) .hero-identity{grid-column:1/-1;max-width:none}.hero-identity .avatar{display:none}body:has(#battle-view:not(.hidden)) .hero-identity>div:last-child{align-items:baseline;gap:10px;width:100%;display:flex}body:has(#battle-view:not(.hidden)) .hero-identity>div>b{max-width:130px}body:has(#battle-view:not(.hidden)) .vital{min-width:0;max-width:none}body:has(#battle-view:not(.hidden)) .vital>div:first-child{gap:8px;margin-bottom:4px}.meter{height:6px}#battle-view{grid-template-rows:210px minmax(0,1fr)}.encounter-heading{top:6px}.encounter-heading .eyebrow{font-size:1rem}.battle-hero{width:36%;height:81%;bottom:4px;left:0}.enemy-group{gap:4px;inset:73px 2% 4px 39%}.battle-stage[data-enemies="3"] .enemy-group{left:33%}.battle-stage[data-enemies="3"] .battle-hero{width:31%;left:0}.enemy-name{gap:0;padding:3px 4px;display:grid;top:-40px}.enemy-name b,.enemy-name small{font-size:1rem}.hero-nameplate{gap:3px;padding:4px 9px;font-size:1rem}.health-pose-label{white-space:normal;text-align:center;padding:3px 6px;font-size:1rem}.enemy .target-chip{display:none}.enemy{padding:2px}.enemy img{height:calc(100% - 34px)}.attack-pill{padding:2px 5px;font-size:1rem}.battle-callout{font-size:1rem;line-height:1.2;bottom:4px}#question-content{padding:10px 12px}.answers{grid-template-columns:1fr}.answer:last-child:nth-child(odd){grid-column:auto}.question-heading{flex-wrap:nowrap}.question-heading h3{flex-basis:auto}#question-content h3{font-size:1.25rem}.narration-toggle{min-height:38px;padding:5px 8px}#read-question{margin:0}.magic-panel{gap:5px;padding:6px}.spell{text-align:center;gap:3px;padding:6px 3px;display:flex}.spell small{display:none}.spell b{font-size:1rem;line-height:1.15}.spell em{font-size:1rem}}@media (width<=700px) and (height<=760px){.welcome-screen{padding:10px 14px}.welcome-intro{display:none}#start-form{gap:7px}#profession-options label{min-height:72px}#class-description{font-size:1rem}.avatar-choice label{min-height:58px}.avatar-choice label img{height:44px}}.question-board{display:grid}.magic-panel,.spell{margin:0}@media (width<=700px){.welcome-copy{margin-top:0}.hero-nameplate{bottom:0;left:50%}.battle-stage[data-enemies="3"] .battle-hero{width:29%;left:2%}}#battle-view{grid-template-rows:220px minmax(0,1fr);grid-template-columns:minmax(0,1fr);gap:0;height:100%;min-height:0;overflow:hidden}#battle-stage{background-position:50% 56%;border-bottom:1px solid #d2d4bb;border-right:0;height:auto;min-height:0;overflow:hidden}.encounter-heading{text-align:center;padding:0;top:8px;left:28%;right:28%}.encounter-heading h2{display:none}.encounter-heading .eyebrow{font-size:1rem;line-height:1.2}#battle-hero,#battle-stage[data-enemies="3"] #battle-hero{width:20%;height:178px;max-height:calc(100% - 28px);bottom:5px;left:8%}#enemy-group{align-items:stretch;gap:18px;inset:52px 7% 9px 61%}#battle-stage[data-enemies="2"] #enemy-group{left:56%;right:5%}#battle-stage[data-enemies="3"] #enemy-group{gap:12px;left:47%;right:4%}.enemy{border-radius:18px;min-width:0;padding:3px 9px}.enemy img{object-fit:contain;width:100%;height:calc(100% - 34px);max-height:125px;transform:none}.enemy.boss img{transform-origin:bottom;transform:scale(1.1)}.enemy-name{white-space:nowrap;justify-content:center;align-items:center;gap:8px;padding:3px 6px;line-height:1.12;display:flex;top:-40px;left:0;right:0}.enemy-name b,.enemy-name small{font-size:1rem}.enemy-name small{color:#446259}.enemy .target-chip{display:none}.attack-pill{white-space:nowrap;gap:7px;padding:3px 8px;font-size:1rem}.attack-pill b{font-size:1rem}.enemy-hp{height:7px;margin:1px 0 3px}.hero-nameplate{padding:4px 10px;font-size:1rem;bottom:0;left:50%}.hero-nameplate small{display:none}.health-pose-label{white-space:nowrap;padding:3px 7px;font-size:1rem;line-height:1.1;bottom:auto}.battle-callout{text-align:center;width:auto;font-size:1rem;line-height:1.3;bottom:45%;left:29%;right:36%;transform:none}.question-board{grid-template-rows:minmax(0,1fr) auto;grid-template-columns:minmax(0,1fr);min-height:0;display:grid;overflow:hidden}#question-content{overscroll-behavior:contain;scrollbar-gutter:stable;min-height:0;padding:8px 20px;overflow-y:auto}.question-topline{gap:8px;min-height:30px;margin:0 0 5px}.question-heading{gap:10px;margin:0 0 6px}.question-heading h3,#question-content h3{margin:0 0 5px;font-size:1.2rem;line-height:1.3}.question-heading h3{flex:1}.question-heading #read-question{flex:none;min-width:38px;min-height:36px;margin:0;padding:5px}.reading-status{margin:0 0 5px;font-size:1rem;line-height:1.15}.reading-status:empty{display:none}.answers{grid-template-columns:repeat(2,minmax(0,1fr));gap:7px;margin:6px 0}.answer{gap:10px;min-height:47px;padding:7px 12px;font-size:1rem;line-height:1.22}.answer:last-child:nth-child(odd){grid-column:1/-1}.answer .letter{flex-shrink:0}.answer-note{margin:6px 0 0;font-size:1rem;line-height:1.2}.thinking-hint{background:#e5edda;border-radius:8px;margin:5px 0;padding:6px 10px;font-size:1rem;line-height:1.25}.thinking-hint summary{cursor:pointer}.magic-panel{border-top:1px solid #d5d7bf;grid-template-columns:repeat(5,minmax(0,1fr));gap:8px;min-height:0;margin:0;padding:7px 20px;display:grid}.magic-heading,.magic-panel>p{display:none}.spell{justify-content:center;align-items:center;gap:9px;min-width:0;min-height:57px;margin:0;padding:6px 8px;display:flex}.spell b,.spell em{font-size:1rem;line-height:1.15}.spell em{white-space:nowrap}.spell .spell-icon,.spell small{display:none}.encounter-intro p,.feedback p{margin:7px 0;font-size:1rem}.encounter-intro .primary,.feedback .primary{min-height:44px;margin:6px 0;padding:8px 18px}.camp-button,.talent-button{z-index:5;padding:10px 15px;position:absolute;bottom:64px;left:18px;box-shadow:0 4px 20px #17342b38}.talent-button{bottom:115px}.supply-choices{gap:12px;margin:20px 0;display:grid}.supply-choices button{min-height:55px;font-size:1rem;line-height:1.4}.enemy.mending{animation:.9s ease-out enemy-mend}@keyframes enemy-mend{50%{filter:drop-shadow(0 0 18px #80f0b2);background:#c7f6d8}}@media (width>=1400px) and (height>=850px){#battle-view{grid-template-rows:250px minmax(0,1fr)}#battle-hero,#battle-stage[data-enemies="3"] #battle-hero{height:205px}.enemy img{max-height:150px}}@media (width<=1100px){#battle-view{grid-template-rows:205px minmax(0,1fr)}#battle-hero,#battle-stage[data-enemies="3"] #battle-hero{width:23%;height:164px;left:5%}#enemy-group{gap:9px;left:59%;right:4%}#battle-stage[data-enemies="3"] #enemy-group{gap:7px;left:44%;right:3%}.enemy-name{gap:0;display:grid;top:-40px}.enemy{padding:3px 6px}.magic-panel{padding:7px 12px}.spell{gap:6px;padding:6px}.battle-callout{bottom:40%;left:29%;right:48%}}@media (width<=700px){#battle-view{grid-template-rows:174px minmax(0,1fr)}.encounter-heading{top:5px;left:4%;right:4%}.encounter-heading .eyebrow{font-size:1rem}#battle-hero,#battle-stage[data-enemies="3"] #battle-hero{width:26%;height:128px;bottom:4px;left:1%}#enemy-group{gap:4px;inset:64px 3% 5px 62%}#battle-stage[data-enemies="2"] #enemy-group{left:49%;right:2%}#battle-stage[data-enemies="3"] #enemy-group{gap:3px;left:40%;right:2%}.enemy{border-radius:11px;padding:1px 3px}.enemy img{height:calc(100% - 32px);max-height:85px}.enemy-name{padding:0 2px;font-size:1rem;top:-37px}.enemy-name small{text-overflow:ellipsis;max-width:100%;overflow:hidden}.enemy-name b{font-size:1rem}.attack-pill{gap:1px;padding:2px;font-size:1rem}.attack-word{display:none}.attack-pill b{font-size:1rem}.hero-nameplate{padding:3px 6px;font-size:1rem}.hero-nameplate>span{display:none}.health-pose-label{white-space:normal;text-align:center;padding:2px 4px;bottom:auto}.battle-callout{z-index:8;background:#fcf9e8ed;border-radius:8px;padding:4px;font-size:1rem;bottom:6px;left:22%;right:2%}.battle-callout:empty{display:none}#question-content{padding:8px 10px}.question-topline{flex-wrap:wrap;gap:5px}.question-heading h3,#question-content h3{font-size:1.1rem}.answers{grid-template-columns:minmax(0,1fr);gap:6px}.answer{min-height:46px;padding:7px 9px}.answer:last-child:nth-child(odd){grid-column:auto}.magic-panel{gap:4px;padding:6px}.spell{flex-direction:column;gap:3px;min-height:55px;padding:5px 2px}.spell b,.spell em{font-size:1rem}.narration-toggle{min-height:32px;padding:3px 7px}.camp-button,.talent-button{padding:8px;bottom:60px;left:10px}.talent-button{bottom:110px}}@media (height<=700px) and (width>=701px){#battle-view{grid-template-rows:172px minmax(0,1fr)}#battle-hero,#battle-stage[data-enemies="3"] #battle-hero{height:135px}#enemy-group{top:48px}.enemy img{max-height:95px}}#battle-view{grid-template-rows:220px minmax(0,1fr)}#battle-hero,#battle-stage[data-enemies="3"] #battle-hero{height:163px}#enemy-group{top:64px}.enemy-name{top:-37px}.encounter-heading{pointer-events:none;top:4px;left:2%;right:2%}.question-topline>.narration-controls{flex:none;gap:0;margin:0;display:flex}.question-topline>.answer-time{margin-left:auto}.question-topline .narration-toggle{min-height:32px;margin:0;padding:3px 8px}@media (width>=1400px) and (height>=850px){#battle-view{grid-template-rows:247.5px minmax(0,1fr)}#battle-hero,#battle-stage[data-enemies="3"] #battle-hero{height:188px}}@media (width<=1100px){#battle-view{grid-template-rows:209px minmax(0,1fr)}#battle-hero,#battle-stage[data-enemies="3"] #battle-hero{height:151px}}@media (width<=700px){#battle-view{grid-template-rows:182.6px minmax(0,1fr)}#battle-hero,#battle-stage[data-enemies="3"] #battle-hero{height:121px}.encounter-heading{display:none}#enemy-group{top:47px}.enemy-name{top:-38px}.question-topline .narration-toggle span{display:none}.question-topline .narration-toggle{gap:3px;min-height:30px;padding:3px}.question-topline{flex-wrap:nowrap;font-size:1rem}.question-topline .subject-label,.question-topline .answer-time{font-size:1rem}.question-heading{z-index:3;background:#faf8ed;padding:5px 0;position:sticky;top:-8px}.enemy-name small{text-overflow:clip;overflow:visible}}@media (height<=700px) and (width>=701px){#battle-view{grid-template-rows:187px minmax(0,1fr)}#battle-hero,#battle-stage[data-enemies="3"] #battle-hero{height:132px}}html:lang(zh-TW) .eyebrow,html:lang(zh-CN) .eyebrow{letter-spacing:.08em}#language-select{font:inherit;color:#fff3ce;background:#23484a;border:1px solid #78968c;border-radius:8px;max-width:142px;min-height:44px;padding:9px 10px}#language-select option{color:#fff;background:#23484a}#preferences-button{min-width:44px;min-height:44px;font-size:1.45rem}.app-header nav{flex-shrink:0;gap:12px}.optional-setup{background:#f8f4df0a;border:1px solid #b8bda580;border-radius:10px;margin:12px 0;padding:10px 12px}.optional-setup summary{cursor:pointer;min-height:30px;font-size:1rem;line-height:1.4}.optional-setup p,.device-advice{margin:8px 0;font-size:1rem;line-height:1.5}.preference-grid{grid-template-columns:1fr 1fr;gap:12px;margin:12px 0;display:grid}.preference-grid label{flex-direction:column;gap:7px;font-size:1rem;display:flex}.preference-grid select,#settings-language{font:inherit;color:#1e4144;background:#faf7e8;border:1px solid #a8b5a0;border-radius:7px;width:100%;min-height:44px;padding:8px}.auto-read-setup{cursor:pointer;align-items:center;gap:10px;min-height:44px;margin:8px 0;font-size:1rem;display:flex}.auto-read-setup input{accent-color:#438b75;flex-shrink:0;width:22px;height:22px}.rank-sharing-note{line-height:1.5!important}.app-footer{flex-wrap:wrap;gap:12px;height:auto;min-height:80px;position:relative}.save-status{flex-direction:column;flex:1;gap:5px;min-width:240px;font-size:1rem;line-height:1.4;display:flex}.save-status span{display:block}.welcome-screen{min-height:calc(100dvh - 180px);height:auto!important;padding-bottom:30px!important}.welcome-copy{min-width:0}.welcome-copy h1{line-height:1.1}html:lang(zh-TW) .welcome-copy h1,html:lang(zh-CN) .welcome-copy h1{letter-spacing:.025em;font-size:clamp(2.2rem,4.2vw,4.6rem);line-height:1.25}.question-heading{flex-wrap:wrap;gap:8px}.question-heading h3{flex:70%;min-width:0}.translation-button{white-space:normal;min-height:44px}.translated-options{gap:10px;padding-left:0;list-style:none;display:grid}.translated-options li{background:#e6eadb;border-radius:8px;padding:10px 14px;font-size:1.1rem;line-height:1.5}#dialog-content h2[data-no-localize]{font-size:clamp(1.3rem,2.5vw,1.8rem);line-height:1.6}#dialog-content details{margin:14px 0;line-height:1.6}#dialog-content select{margin:8px 0 14px}.device-advice{display:none}body:has(#welcome:not(.hidden)){min-height:100dvh;grid-template-rows:72px auto auto!important;height:auto!important;overflow-y:auto!important}body:has(#welcome:not(.hidden)) #app{height:auto!important;min-height:0!important;overflow:visible!important}body:has(#welcome:not(.hidden)) .app-footer{padding-top:12px;padding-bottom:12px;height:auto!important;min-height:80px!important}body:has(#welcome:not(.hidden)) .welcome-screen{min-height:calc(100dvh - 152px)!important;overflow:visible!important}.app-footer .save-status{gap:3px;font-size:1rem;line-height:1.2}@media (width<=1050px){.chapter-heading{max-width:180px}.app-header nav{gap:7px}.header-divider{display:none}.brand{max-width:180px}.app-header{padding-left:20px;padding-right:20px}.welcome-character{min-width:0}.welcome-copy{padding-bottom:10px}.profession-choice #profession-options{gap:6px}.profession-choice b{white-space:normal!important}}@media (width<=760px),(orientation:portrait) and (width<=1100px){.device-advice{color:#ffd58e;display:block}.chapter-heading{display:none}.app-header{flex-wrap:wrap;gap:8px}.app-header nav{margin-left:auto}.brand{max-width:150px}#language-select{max-width:125px}.preference-grid{grid-template-columns:1fr}.app-footer{padding-bottom:20px}}#dialog:has(#translation-close) .modal-actions{z-index:2;background:#faf8ee;margin-top:16px;padding:12px 0;position:sticky;bottom:0}#dialog:has(#translation-close) #dialog-content{padding-bottom:12px}.language-picker{flex-shrink:0;justify-content:center;align-items:center;width:42px;height:38px;display:flex;position:relative}.language-picker>span{pointer-events:none;font-size:21px}#language-select{opacity:0;cursor:pointer;width:42px;max-width:42px;min-height:38px;padding:0;font-size:14px;position:absolute;inset:0}.language-picker:focus-within{border-radius:8px;outline:2px solid #376d60}#language-select option{color:#23484a;background:#faf8ee;font-size:14px}#header-narration:empty{display:none}body:has(#battle-view.hidden) #header-narration{display:none}body:has(#game.hidden) #header-narration{display:none}#header-narration .narration-controls{margin:0}#header-narration .narration-toggle{white-space:nowrap;gap:5px;min-height:34px;padding:4px 6px;font-size:13px}#header-narration .narration-toggle svg{width:18px;height:18px}.app-footer .save-status{white-space:nowrap;flex-direction:row;align-items:center;gap:10px;font-size:12px;line-height:1.3;display:flex}#score-footer-status:before{content:"·";margin-right:10px}.app-footer,.app-footer .copyright,.app-footer .text-button{line-height:1.3;font-size:12px!important}body:has(#welcome:not(.hidden)) .app-footer{min-height:36px!important;padding:7px 3%!important}@media (width>=701px){body:has(#game:not(.hidden)){grid-template-rows:54px minmax(0,1fr) 30px!important}body:has(#game:not(.hidden)) .app-header{gap:12px;height:54px;min-height:0;padding:4px 20px}body:has(#game:not(.hidden)) .brand{width:155px}body:has(#game:not(.hidden)) .chapter-heading{font-size:12px}:is(body:has(#game:not(.hidden)) .app-header .icon-button,body:has(#game:not(.hidden)) .app-header .tool){width:34px;min-width:34px;height:34px;min-height:34px;padding:5px}body:has(#battle-view:not(.hidden)):has(#game:not(.hidden)) #game{grid-template-rows:56px minmax(0,1fr)!important}body:has(#battle-view:not(.hidden)) .status-strip{gap:16px;padding:5px 20px}body:has(#battle-view:not(.hidden)) .status-strip .avatar{width:36px;height:36px}body:has(#battle-view:not(.hidden)) .hero-identity{flex:1;min-width:0}body:has(#battle-view:not(.hidden)) #hero-name{font-size:18px}body:has(#battle-view:not(.hidden)) .hero-identity span{font-size:13px}body:has(#battle-view:not(.hidden)) .vital{font-size:13px}body:has(#battle-view:not(.hidden)) .vital strong{font-size:14px}body:has(#battle-view:not(.hidden)) .meter{height:6px}#battle-view{grid-template-rows:364.65px minmax(0,1fr)!important}#battle-hero,#battle-stage[data-enemies="3"] #battle-hero{height:278px!important}#enemy-group{top:45px}.enemy img{max-height:195px}.enemy-name{font-size:14px;top:-30px}.enemy-name b,.enemy-name small,.attack-pill{font-size:14px}.encounter-heading .eyebrow{font-size:13px}.app-footer{flex-wrap:nowrap;height:30px;min-height:0!important;padding:4px 20px!important}.spell{text-align:left;align-items:center;grid-template-columns:24px minmax(0,1fr) auto!important;gap:6px!important;display:grid!important}.magic-panel .spell-icon{grid-area:1/1;width:24px;font-size:22px!important;display:block!important}.spell>span:nth-child(2){grid-column:2}.spell em{grid-column:3;font-size:13px}.spell b{font-size:15px}}#battle-view[data-subject=chinese]{grid-template-rows:clamp(150px,27vh,260px) minmax(0,1fr)!important}#battle-view[data-subject=chinese] #battle-hero{height:82%!important}#battle-view[data-subject=chinese] .enemy img{max-height:140px}@media (width>=701px){#battle-view[data-subject=chinese] .answers{grid-template-columns:repeat(5,minmax(0,1fr))}#battle-view[data-subject=chinese] .answer:last-child{grid-column:auto}}@media (width<=700px){body:has(#game:not(.hidden) #battle-view[data-subject=chinese]:not(.hidden)){grid-template-rows:102px minmax(0,1fr) 60px!important}body:has(#battle-view[data-subject=chinese]) .app-header nav{gap:3px;max-width:100%}body:has(#battle-view[data-subject=chinese]) .narration-toggle span{display:none}#battle-view[data-subject=chinese]{grid-template-rows:150px minmax(0,1fr)!important}#battle-view[data-subject=chinese] .answers{grid-template-columns:repeat(2,minmax(0,1fr))}}.language-picker{color:#4c6a5e;box-sizing:border-box;background:#faf8ee;border:1px solid #d3ddc7;border-radius:50%;width:34px;height:34px}.language-picker>span{justify-content:center;align-items:center;display:flex}.language-picker svg,#pause-button svg{width:22px;height:22px}#language-select{width:34px;max-width:34px;height:34px;min-height:34px}#pause-button{color:#315c51;background:#edf1e5;border:1px solid #a7bba1}.app-header nav>.tool.icon-only,.app-header nav>.icon-button,.app-header nav>.language-picker{justify-content:center;align-items:center;box-sizing:border-box!important;border-style:solid!important;border-width:1px!important;border-radius:50%!important;flex:0 0 34px!important;width:34px!important;min-width:34px!important;max-width:34px!important;height:34px!important;min-height:34px!important;max-height:34px!important;padding:5px!important}.app-header nav>.tool.icon-only svg,.app-header nav>.icon-button svg,.app-header nav>.language-picker svg{width:22px;height:22px}html:lang(zh-TW){--chinese-font:"Noto Sans TC",sans-serif}html:lang(zh-CN){--chinese-font:"Noto Sans SC",sans-serif}html:lang(zh-TW),html:lang(zh-CN),html:lang(zh-TW) :is(h1,h2,h3,.hero-nameplate,.character-signature,.reward-grid strong),html:lang(zh-CN) :is(h1,h2,h3,.hero-nameplate,.character-signature,.reward-grid strong){font-family:var(--chinese-font)}body:has(#welcome:not(.hidden)) .chapter-heading{min-width:0;max-width:480px;display:grid!important}body:has(#welcome:not(.hidden)) #header-title{font-size:13px;line-height:1.4}body:has(#welcome:not(.hidden)) .app-header{gap:16px}@media (width>=701px){#battle-stage .encounter-heading{top:8px}#enemy-group{top:58px}}#welcome-puppet{cursor:pointer;touch-action:manipulation;pointer-events:auto!important}.avatar-carousel{justify-content:center;align-items:center;gap:18px;margin:8px 0;display:flex}.avatar-carousel small{min-width:65px;font:600 20px var(--chinese-font,"Segoe UI"),sans-serif!important}.avatar-carousel button{background:#faf8eed9;width:38px;height:38px;min-height:38px;font-size:27px}.character-signature{z-index:3;pointer-events:auto!important}.pose-hint{font-size:12px;line-height:1.4}@media (width>=701px){.welcome-character{min-height:570px}.welcome-character canvas{width:100%!important;height:calc(100% - 155px)!important;inset:0 0 155px!important}.character-signature{text-align:center;left:0;right:0;bottom:25px!important}.world-invitation{display:none}}.status-strip .avatar img{image-rendering:auto;width:174%;height:auto;display:block;top:-8%;left:-37%}.hero-level-label{white-space:nowrap;color:#244b43;align-items:baseline;gap:5px;font-weight:700;line-height:1.1;font-size:20px!important;display:inline-flex!important}body:has(#battle-view:not(.hidden)) .hero-identity{align-items:center}body:has(#battle-view:not(.hidden)) .hero-level-label{font-size:20px!important}body:has(#battle-view:not(.hidden)) .chapter-heading :is(#header-kicker,#header-title){letter-spacing:0;line-height:1.35;font-size:13px!important}@media (width>=701px){body:has(#battle-view:not(.hidden)) .chapter-heading{flex-shrink:0;max-width:130px;display:grid!important}body:has(#battle-view:not(.hidden)) .status-strip .avatar{align-self:center;width:42px;height:42px}body:has(#battle-view:not(.hidden)) .hero-identity{gap:9px;max-width:42%}#battle-hero,#battle-stage[data-enemies="3"] #battle-hero{width:27%;left:4%}}#battle-puppet{image-rendering:auto}@media (width>=701px){body:has(#game:not(.hidden)) #game{grid-template-rows:56px minmax(0,1fr)!important}body:has(#game:not(.hidden)) .status-strip{box-sizing:border-box;flex-wrap:nowrap;align-items:center;gap:16px;height:56px;min-height:0;padding:5px 20px}body:has(#game:not(.hidden)) .status-strip .avatar{align-self:center;width:42px;height:42px}body:has(#game:not(.hidden)) .hero-identity{flex:1;align-items:center;gap:9px;min-width:0;max-width:42%}body:has(#game:not(.hidden)) #hero-name{font-size:18px}body:has(#game:not(.hidden)) .hero-identity span{font-size:13px}body:has(#game:not(.hidden)) .vital{font-size:13px}body:has(#game:not(.hidden)) .hero-level-label{font-size:20px!important}body:has(#game:not(.hidden)) .vital strong{font-size:14px}body:has(#game:not(.hidden)) .meter{height:6px}body:has(#game:not(.hidden)) .hero-identity>div:last-child{gap:3px}body:has(#game:not(.hidden)) .hero-identity>div>span{white-space:nowrap;text-overflow:ellipsis;overflow:hidden}body:has(#game:not(.hidden)) .session-clock{display:none}body:has(#game:not(.hidden)) .vital{min-width:100px;max-width:190px}body:has(#game:not(.hidden)) .xp-vital{flex-basis:auto;min-width:100px;display:block!important}body:has(#game:not(.hidden)) .xp-vital>div:first-child{min-width:0;margin-bottom:8px}}#welcome-preview{object-fit:contain;z-index:1;pointer-events:none;width:100%;height:calc(100% - 155px);position:absolute;inset:0 0 155px}
