:root{--navy:#182f47;--ink:#263a48;--cream:#fffaf0;--gold:#e7b54e;--teal:#276d74;--line:#d9ded8;--muted:#65757c}*{box-sizing:border-box}html,body{margin:0;height:100%;background:#e8eef0;color:var(--ink);font-family:system-ui,-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif}button,input,select{font:inherit}button{cursor:pointer;touch-action:manipulation;-webkit-tap-highlight-color:transparent}button:disabled{cursor:default;opacity:.58}button:focus-visible,a:focus-visible{outline:3px solid #db9a2f;outline-offset:3px}button{border:1px solid var(--line);border-radius:10px;padding:10px 14px;background:#fffaf0;color:var(--ink);font-size:14px;font-weight:650;min-height:42px}button.primary{background:var(--teal);color:white;border-color:var(--teal)}button.gold{background:var(--gold);color:#27384a;border-color:#d4a137}button.small{padding:6px 10px;min-height:34px;font-size:12px}button.text{border:0;background:transparent;padding:5px 8px;min-height:34px;color:var(--teal)}h1,h2,h3,p{margin:0}h1,h2{font-family:Georgia,serif}h1{font-size:35px}h2{font-size:28px;line-height:1.17}h3{font-size:18px}p{line-height:1.55}button img{pointer-events:none}.topbar{height:61px;background:var(--navy);color:#fff8e7;display:flex;align-items:center;justify-content:space-between;gap:10px;padding:8px 20px;flex-shrink:0}.brand{display:flex;gap:10px;align-items:center;cursor:pointer;font:700 17px Georgia;letter-spacing:.04em}.brand>span{color:#efd08b;font-size:27px}.brand small{display:block;font:9px system-ui;letter-spacing:.19em;margin-top:4px;color:#b8d3de}.toptools{display:flex;gap:6px}.toptools button{background:#ffffff0b;color:inherit;border-color:#647585;padding:8px 10px;font-size:12px;min-height:39px}.toptools .help{background:#e9b959;color:#233953;border-color:#e9b959}.shell{height:100dvh;display:flex;flex-direction:column}#game{flex:1;min-height:0;position:relative;overflow:auto}.eyebrow{font-size:10px;font-weight:800;letter-spacing:.15em;text-transform:uppercase;color:#73858d}.row{display:flex;align-items:center;gap:10px}.spread{justify-content:space-between}.stack{display:grid;gap:12px}.muted{color:var(--muted)}.buttons{display:flex;gap:9px;flex-wrap:wrap;margin-top:16px}.card{background:var(--cream);border:1px solid var(--line);border-radius:15px;overflow:hidden}.home{min-height:100%;display:grid;grid-template-columns:1.3fr 1fr;background:var(--navy)}.homeart{min-height:450px;position:relative;background:var(--world) center/cover}.homeart:after{content:'';position:absolute;inset:0;background:linear-gradient(0deg,#172e49ef,transparent 75%)}.homeartcopy{position:absolute;bottom:32px;left:34px;right:24px;z-index:1;color:white}.homeartcopy h1{font-size:60px;line-height:1}.homeartcopy .eyebrow{color:#f5d58c;display:block;margin-bottom:12px}.homeartcopy p{margin-top:16px;max-width:440px}.homecopy{padding:30px;align-self:center;color:#fffaed}.homecopy .eyebrow{color:#e7bd69}.homecopy h2{margin:8px 0 18px}.homecopy p{color:#d4e2e8}.homecopy ol{padding-left:20px;line-height:1.55;font-size:14px;color:#d4e2e8}.homecopy li{margin:9px 0}.homecopy .resume{display:flex;align-items:center;gap:12px;margin:16px 0;border:1px solid #637b8c;border-radius:12px;padding:10px}.resume img{width:65px;height:65px;object-fit:contain}.selectscreen{padding:24px;max-width:1120px;margin:auto}.selectscreen p{margin-top:8px}.heroes{display:grid;grid-template-columns:repeat(3,1fr);gap:14px;margin-top:18px}.hero-choice{background:var(--cream);display:flex;align-items:center;text-align:left;gap:12px;min-height:150px;border-radius:16px}.hero-choice img{width:100px;height:110px;object-fit:contain}.hero-choice small{display:block;margin:6px 0;color:#617880;font-weight:400}.map-screen{height:100%;display:flex;flex-direction:column}.goalbar{display:flex;align-items:center;justify-content:space-between;gap:15px;padding:10px 20px;background:#fffaf0;border-bottom:1px solid #d7e1e5;font-size:13px}.goalbar b{display:block;font:20px Georgia}.goalbar p{font-size:12px;color:#5c737d}.goalbar button{white-space:nowrap}.map-wrap{position:relative;flex:1;min-height:310px;background:#9ec8ee;overflow:hidden}.map-art{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;filter:saturate(1.07)}.map-shade{position:absolute;inset:0;background:linear-gradient(0deg,#17364750,transparent 40%,#17364710)}.map-cloud{position:absolute;width:35%;height:70px;border-radius:100%;background:#fff;filter:blur(24px);opacity:.25;animation:cloud 27s linear infinite;pointer-events:none}.map-cloud.second{top:40%;animation-delay:-13s;opacity:.16}.map-svg{position:absolute;inset:0;width:100%;height:100%;pointer-events:none}.route-line{stroke:#fff5cd;stroke-width:.32;stroke-dasharray:.65 .7;fill:none;filter:drop-shadow(0 1px 1px #163542)}.map-point{position:absolute;transform:translate(-50%,-50%);padding:7px 10px;background:#fffaf0f7;box-shadow:0 3px 12px #173a4450;border:2px solid #d8bf81;font-size:12px;min-height:43px;z-index:3;max-width:170px}.map-point small{display:block;font-size:10px;color:#55737a}.map-point.done{border-color:#52a789}.map-point.locked{border-color:#708997;color:#557079}.map-point.recommended{box-shadow:0 0 0 5px #f7d46b66,0 4px 14px #122a4b60}.avatar{position:absolute;width:67px;height:75px;object-fit:contain;transform:translate(-50%,-86%);z-index:4;filter:drop-shadow(0 5px 4px #153b6450);pointer-events:none}.avatar.glow{filter:drop-shadow(0 0 9px #ffef70)}.map-hint{position:absolute;bottom:12px;left:20px;border-radius:12px;background:#183850ed;color:white;padding:8px 12px;font-size:12px;z-index:5}.mapfooter{height:76px;padding:7px 18px;background:var(--navy);display:flex;gap:14px;align-items:center;color:white}.partner{display:flex;align-items:center;gap:10px;border:0;color:inherit;background:transparent;text-align:left;padding:0;min-width:220px}.partner img{height:54px;width:54px;object-fit:contain}.partner small{display:block;font-size:11px;color:#c6dbe4;margin:3px 0}.xp{width:165px;height:7px;background:#52707c;border-radius:9px;overflow:hidden}.xp i{height:100%;display:block;background:linear-gradient(90deg,#92dfc1,#f2d06e);transition:width 1s}.badge-strip{display:flex;gap:8px;flex:1;justify-content:center}.badge-button{width:49px;height:49px;min-height:0;border:1px solid #647d8b;border-radius:50%;background:#2d495e;color:#91a7b0;font-size:22px;padding:0;position:relative}.badge-button.earned{color:#644314;background:linear-gradient(140deg,#ffe6a0,#d49e36);border-color:#fff1bb}.badge-button .count{position:absolute;bottom:-3px;right:-6px;font:9px system-ui;background:#edf3ea;color:#264746;border-radius:5px;padding:2px 4px}.mapfooter .cash{font-size:13px;color:#ffdc88;white-space:nowrap}.sentry{position:absolute;transform:translate(-50%,-50%);width:90px;height:90px;padding:0;background:none;border:0;z-index:3}.sentry img{width:100%;height:100%;object-fit:contain}.sentry small{position:absolute;left:50%;bottom:-7px;transform:translateX(-50%);background:#143851;color:#fff7e3;border-radius:7px;padding:3px 7px;font-size:10px;white-space:nowrap}.sight{position:absolute;transform:translate(-100%,-50%);clip-path:polygon(100% 50%,0 0,0 100%);background:linear-gradient(90deg,#ffd65109,#ffd651aa);width:20%;height:33%;pointer-events:none;z-index:1}.trail-note{position:absolute;left:22px;top:15px;max-width:300px;padding:12px;background:#fffaf0ed;border-radius:13px;font-size:13px;z-index:2}.trial-screen{height:100%;padding:14px 20px;display:flex;flex-direction:column;gap:12px;max-width:1350px;margin:auto}.trial-heading{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-shrink:0}.trial-heading h2{font-size:26px}.trial-heading .eyebrow{margin:4px 0}.pips{display:flex;gap:6px}.pips i{width:22px;height:7px;border-radius:9px;background:#c5d4d6}.pips i.done{background:#5a9c86}.reading-grid{display:grid;grid-template-columns:1.15fr 1fr;gap:17px;min-height:0;flex:1}.passage-card{display:flex;flex-direction:column;min-height:0;background:#fffdf5;border:1px solid #d9e0dc;border-radius:15px;overflow:hidden}.reading-art{height:108px;flex-shrink:0;position:relative;background:var(--world) 40% 55%/cover;overflow:hidden}.reading-art:after{content:'';position:absolute;inset:0;background:linear-gradient(90deg,#1c486488,transparent)}.reading-art img{position:absolute;height:100px;width:112px;right:8%;bottom:0;object-fit:contain;z-index:1}.reading-art b{position:absolute;left:18px;top:18px;max-width:65%;color:#fff9e3;font:22px Georgia;z-index:2;text-shadow:0 2px 4px #143c66}.paper{padding:16px 22px;overflow:auto;overscroll-behavior:contain;flex:1}.paper h3{font:23px Georgia;margin-bottom:10px}.paper p{font:18px/1.65 Georgia;margin-bottom:15px;white-space:pre-line;color:#293b49}.paper .sentence{border:0;background:none;font:18px/1.65 Georgia;padding:2px 3px;display:inline;min-height:0;color:#293b49;border-radius:4px;cursor:text;text-align:left;font-weight:400}.paper .sentence:disabled{opacity:1}.paper .sentence.selectable{cursor:pointer;background:#f2f0dd;box-shadow:inset 0 -1px #d5d8ba}.paper .sentence[aria-pressed=true]{background:#f9dfa4;box-shadow:inset 0 0 0 2px #bd8e38}.paperfoot{padding:7px 14px;border-top:1px solid #e0e6dc;background:#f8f8ed;flex-shrink:0;display:flex;justify-content:space-between;align-items:center;font-size:12px}.quest{background:var(--cream);border-radius:15px;border:1px solid #d7e1dd;overflow:auto;min-height:0;padding:18px}.quest .prompt{font:650 20px/1.35 system-ui;margin:12px 0}.step{font:750 11px system-ui;letter-spacing:.07em;text-transform:uppercase;color:#8c692d;padding:6px 10px;background:#f5e7bd;border-radius:20px;display:inline-block}.choices{display:grid;gap:8px}.choice{display:flex;gap:10px;align-items:center;text-align:left;background:#fffdf5;line-height:1.4;font-size:15px;font-weight:500;padding:10px 12px;min-height:47px}.choice span.letter{font:750 12px system-ui;color:#67818b}.choice[aria-pressed=true]{background:#fae6b9;border-color:#bf9143;box-shadow:inset 0 0 0 1px #bf9143}.choice.correct{background:#e1f1d9;border-color:#6ea96a}.choice.wrong{background:#fae2d5;border-color:#c47950}.feedback{padding:12px;border-radius:11px;background:#e8f0e4;color:#345844;margin-top:12px;font-size:14px;line-height:1.5}.feedback.error{background:#fff0e6;color:#8f4838;border:1px solid #e0ad90}.invalid{outline:2px solid #c35442;animation:shake .65s}.trial-success{padding:25px;background:var(--cream);text-align:center}.reward-emblem{font-size:65px;color:#ce9b38}.trial-success h2{margin:10px}.battle-screen{height:100%;display:flex;flex-direction:column;padding:12px 18px;gap:10px}.battle-top{display:flex;justify-content:space-between;align-items:center;gap:8px;flex-shrink:0}.battle-top h2{font-size:25px}.battle-layout{flex:1;min-height:0;display:grid;grid-template-columns:42% 58%;gap:0}.battle-left{display:flex;flex-direction:column;min-height:0;margin-right:14px}.arena{position:relative;height:290px;min-height:225px;flex:1;overflow:hidden;border-radius:15px;background:var(--world) 25% 62%/cover;border:1px solid #9ab9c6}.arena:before{content:'';position:absolute;inset:0;background:linear-gradient(0deg,#27486488,transparent 50%,#84c8f233)}.platform{position:absolute;border-radius:50%;background:#d6ddb4;box-shadow:0 6px #8ba583;transform:rotate(-5deg)}.platform.player{width:47%;height:13%;left:3%;bottom:10%}.platform.foe{width:38%;height:10%;right:2%;top:44%}.fighter{position:absolute}.fighter-art,.fighter img{width:100%;height:100%;object-fit:contain}.hero-sprite{width:49%;height:57%;left:2%;bottom:11%;z-index:3}.enemy-sprite{width:41%;height:48%;right:1%;top:9%;z-index:2}.enemy-sprite.boss{width:61%;height:68%;right:-2%;top:0}.enemy-sprite.wild img{transform:scaleX(-1)}.enemy-hud{position:absolute;left:10px;right:20%;top:9px;z-index:6;background:#fffbefed;padding:7px 10px;border-radius:10px;font-size:12px}.hpbar{height:7px;background:#cbd8d5;border-radius:12px;overflow:hidden;margin-top:5px}.hpbar i{display:block;height:100%;background:#6bb791;transition:width .4s}.hero-hud{padding:11px 13px;background:var(--navy);color:#fff7df;border-radius:0 0 12px 12px;font-size:13px}.hero-hud .hpbar{background:#587780;margin:5px 0}.hero-hud .xp{width:100%;margin:4px 0}.hud-small{display:flex;justify-content:space-between;color:#c1d8e4;font-size:11px;margin-top:6px}.intent{background:#fffaf0;padding:10px 13px;border-radius:12px;font-size:12px;margin-top:10px;border:1px solid #d0dad9}.intent b{display:block;margin:2px 0;font-size:14px}.battle-right{min-height:0;overflow:auto;display:flex;flex-direction:column}.moves-panel{background:var(--cream);border-radius:15px;padding:20px;flex:1;overflow:auto}.moves-panel p{font-size:14px;margin:10px 0}.move-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:14px}.move-button{min-height:93px;text-align:left;background:#fffcf3}.move-button b{display:block;font-size:17px;margin:3px 0}.move-button small{display:block;font-size:11px;color:#61727c;font-weight:400}.move-role{font-size:10px;letter-spacing:.1em;text-transform:uppercase;color:#8b6a36}.battle-reading{min-height:0;display:flex;flex-direction:column;flex:1;gap:9px}.battle-reading .passage-card{height:43%;min-height:145px;flex-shrink:0}.battle-reading .paper{padding:12px 17px}.battle-reading .paper p{font-size:17px;line-height:1.55;margin-bottom:11px}.battle-reading .paper h3{font-size:20px;margin-bottom:8px}.battle-reading .quest{padding:11px 14px;flex:1}.battle-reading .prompt{font-size:18px;margin:6px 0 10px}.battle-reading .choices{gap:6px}.battle-reading .choice{font-size:14px;padding:7px 10px;min-height:41px}.battle-reading .buttons{margin-top:8px}.battle-feedback{background:var(--cream);padding:22px;border-radius:15px;overflow:auto;flex:1}.battle-feedback h2{margin:12px 0}.battle-feedback p{margin:12px 0;font-size:16px}.attention{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);z-index:50;background:#15384fec;color:#fff1c5;border:1px solid #e4c276;border-radius:13px;padding:12px 16px;text-align:center;font-weight:800;font-size:19px;min-width:200px}.battle-float{position:absolute;z-index:51;top:30%;left:55%;font:bold 28px system-ui;color:white;text-shadow:0 2px 3px #142e51;background:#16384fa0;border-radius:9px;padding:5px 8px;animation:float 1s both;pointer-events:none}.map-alert{position:absolute;top:16px;left:50%;transform:translateX(-50%);padding:10px 15px;background:#fff2b9;border-radius:12px;z-index:10}.modal{border:1px solid #c0ccd1;border-radius:20px;max-width:760px;width:calc(100vw - 30px);max-height:calc(100dvh - 30px);padding:24px;background:#fffaf0;color:var(--ink);overflow:auto;box-shadow:0 18px 70px #092f4655}.modal::backdrop{background:#102d48aa}.modal-head{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-bottom:16px}.modal p{margin:10px 0}.modal h3{margin:14px 0 7px}.modal .close{border-radius:50%;width:38px;min-height:38px;padding:0;font-size:20px;flex-shrink:0}.modal .tiles{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:14px 0}.modal .tile{text-align:left;padding:14px;border:1px solid #d3ddda;border-radius:12px;background:#f5f6e9}.modal .tile b{display:block;margin:5px 0}.modal .tile p{font-size:13px}.modal .tile small{font-weight:400;display:block;color:#667a81}.modal input[type=text]{width:100%;border:1px solid #98adb3;padding:11px;border-radius:9px;background:white}.modal label{display:block;font-size:14px;margin:12px 0}.modal .preview{display:flex;align-items:center;gap:20px;padding:12px;background:#edf0e7;border-radius:12px}.modal .preview img{width:110px;height:110px;object-fit:contain}.modal .preview p{margin:4px 0;font-size:14px}.modal ul,.modal ol{line-height:1.6;padding-left:22px}.modal .badge-display{display:flex;align-items:center;gap:14px}.medal{display:grid;place-items:center;border-radius:50%;width:64px;height:64px;background:linear-gradient(140deg,#ffecac,#d19b39);font-size:34px;color:#765027;border:2px solid #edc772}.toast{position:fixed;bottom:20px;left:50%;transform:translateX(-50%);background:#17364eef;color:#fff8e5;padding:12px 18px;border-radius:12px;z-index:100;max-width:90vw;pointer-events:none;font-size:14px}.toast:empty{display:none}.save-status{font-size:12px;color:#bddfcf}.save-status.error{color:#ffbfb0}details{margin-top:14px}summary{cursor:pointer;font-weight:650;font-size:14px}.help-steps{counter-reset:help}.help-steps li{margin:12px 0}.motion-toggle{display:flex;align-items:center;gap:9px}.motion-toggle input{width:20px;height:20px}.stage-note{font-size:12px;color:#637b80;margin:8px 0}.source-links a{color:#286871}.progress-note{padding:8px 12px;background:#f4e6bf;border-radius:10px;font-size:13px;margin-top:10px}.learn-count{font-size:12px;color:#647e86;margin:8px 0}@keyframes cloud{from{left:-40%}to{left:115%}}@keyframes float{from{opacity:1;transform:translateY(0)}to{opacity:0;transform:translateY(-35px)}}@keyframes shake{20%,60%{transform:translateX(-5px)}40%,80%{transform:translateX(5px)}}
@media(min-width:800px) and (max-height:720px){.topbar{height:54px;padding:6px 16px}.homecopy{padding:22px}.homeartcopy h1{font-size:48px}.homecopy h2{font-size:25px}.homecopy ol{font-size:13px}.trial-screen{padding:10px 16px;gap:8px}.trial-heading h2{font-size:23px}.reading-art{height:85px}.reading-art img{height:85px}.paper{padding:12px 17px}.paper .sentence{font-size:17px;line-height:1.6}.quest{padding:14px}.quest .prompt{font-size:18px;margin:9px 0}.choice{padding:8px 10px;font-size:14px;min-height:43px}.battle-screen{padding:9px 13px;gap:8px}.battle-top h2{font-size:22px}.arena{min-height:220px}.hero-hud{padding:8px 10px}.intent{padding:8px 10px}.battle-reading .passage-card{height:42%;min-height:135px}.battle-reading .quest{padding:10px}.battle-reading .prompt{font-size:17px;margin:4px 0 8px}.battle-reading .choice{min-height:39px;font-size:13px;padding:7px 9px}.battle-reading .paper p{font-size:16px}.battle-reading .paperfoot{padding:3px 10px}.mapfooter{height:67px}.goalbar{padding:8px 16px}.map-point{font-size:11px;padding:6px 8px}.map-point small{font-size:9px}}
@media(max-width:799px){.topbar{height:auto;min-height:60px;flex-wrap:wrap;padding:8px 12px}.brand{font-size:14px}.brand small{display:none}.toptools{gap:4px;flex-wrap:wrap}.toptools button{font-size:11px;padding:7px;min-height:35px}.home{grid-template-columns:1fr}.homeart{min-height:270px}.homeartcopy{bottom:20px;left:22px}.homeartcopy h1{font-size:45px}.homeartcopy p{font-size:13px}.homecopy{padding:23px}.heroes{grid-template-columns:1fr 1fr}.hero-choice{flex-direction:column;gap:5px;padding:12px;min-height:190px;text-align:center}.hero-choice img{height:90px}.selectscreen{padding:18px}.selectscreen h1{font-size:28px}.map-screen{min-height:560px}.goalbar{padding:9px 12px}.goalbar b{font-size:17px}.goalbar p{font-size:11px}.map-point{max-width:130px;font-size:10px;padding:6px;min-height:37px}.map-point small{font-size:8px}.mapfooter{height:auto;min-height:85px;gap:6px;flex-wrap:wrap;padding:7px 10px}.partner{min-width:170px}.partner img{width:40px;height:45px}.partner b{font-size:12px}.partner .xp{width:115px}.badge-strip{gap:6px}.badge-button{width:35px;height:35px;font-size:18px}.mapfooter .cash{font-size:11px}.map-hint{left:10px;bottom:10px;font-size:10px;max-width:80%}.trail-note{max-width:190px;left:10px;font-size:11px}.trial-screen,.battle-screen{height:auto;min-height:100%;padding:12px}.reading-grid{grid-template-columns:1fr}.trial-heading h2{font-size:22px}.passage-card{max-height:400px}.quest{overflow:visible}.battle-layout{grid-template-columns:1fr}.battle-left{margin:0 0 12px;min-height:390px}.arena{height:280px;flex:none}.battle-right{overflow:visible}.battle-reading .passage-card{height:280px;max-height:280px}.battle-reading .quest{overflow:visible}.battle-top h2{font-size:22px}.paper .sentence{font-size:18px}.modal{padding:18px}.modal .tiles{grid-template-columns:1fr}.modal h2{font-size:25px}.homecopy .buttons button{flex:1}.battle-reading .choice{min-height:48px}.sentry{width:72px;height:72px}.avatar{width:53px;height:60px}}

.avatar{transform:translate(-50%,-125%)}.arena{background-position:center;background-size:cover}.enemy-sprite{right:1%;top:16%;height:43%}.hero-sprite{height:54%;bottom:2%;left:0}.enemy-sprite.boss{right:-2%;top:6%;height:66%}.map-wrap:has(.trail-note) .map-art{object-fit:fill}

.sight{background:rgba(255,205,64,.32);filter:drop-shadow(0 0 2px #ffcc52)}.sentry[data-enemy] img{transform:scaleX(-1)}.beacon-light{position:absolute;left:52%;top:32%;width:30px;height:30px;border-radius:50%;background:#fff3b4;box-shadow:0 0 20px 15px #ffe79fbd,0 0 55px 30px #ffdd6488;z-index:1;animation:beaconPulse 3s ease-in-out infinite alternate;pointer-events:none}@keyframes beaconPulse{to{box-shadow:0 0 30px 23px #fff1b7bd,0 0 80px 35px #ffdd6488}}
@media(min-width:800px) and (max-height:720px){.battle-reading .passage-card{height:38%}}

.evolution-fx{position:absolute;inset:0;width:100%;height:100%;pointer-events:none;z-index:24}.move-button .move-role{display:block;font:700 12px/1.25 system-ui;letter-spacing:.08em;text-transform:uppercase;opacity:.8}.move-button b{overflow-wrap:anywhere;line-height:1.18}.move-button small{line-height:1.25}.evolution-reveal img{object-fit:contain}.evolution-reveal p{line-height:1.5}.final-form-note{color:#ffe7a6}body.reduce-motion *,body.reduce-motion *::before,body.reduce-motion *::after{animation-duration:.001ms!important;animation-iteration-count:1!important;transition-duration:.001ms!important;scroll-behavior:auto!important}

.sky-stage{position:relative;flex:1;min-height:280px;overflow:hidden;background:#a4cfe7}.sky-stage canvas{display:block;width:100%;height:100%;touch-action:none;outline:none}.sky-stage canvas:focus-visible{outline:3px solid #f8d274;outline-offset:-3px}.sky-walk .goalbar{padding:9px 18px;flex-shrink:0}.sky-walk .goalbar p{max-width:660px}.sky-touch{position:absolute;bottom:12px;left:16px;right:16px;display:flex;align-items:flex-end;justify-content:space-between;pointer-events:none}.sky-touch button{pointer-events:auto;box-shadow:0 3px 9px #182f4740;border:1px solid #c5c9b0}.sky-dpad{display:grid;grid-template-columns:43px 43px 43px;grid-template-rows:40px 40px;gap:3px;opacity:.93}.sky-dpad button{padding:0;font-size:22px;min-height:40px;background:#fffaf0ef}.sky-dpad button[data-direction=up]{grid-column:2}.sky-dpad button[data-direction=left]{grid-column:1;grid-row:2}.sky-dpad button[data-direction=down]{grid-column:2;grid-row:2}.sky-dpad button[data-direction=right]{grid-column:3;grid-row:2}.sky-touch #exploreAction{min-width:120px}.field-hint{position:absolute;bottom:14px;left:50%;transform:translateX(-50%);padding:6px 12px;max-width:calc(100% - 330px);text-align:center;border-radius:10px;background:#183c52e8;color:#fff8dc;font-size:11px;pointer-events:none}.sky-compass{position:absolute;right:17px;top:12px;border:1px solid #fff7d7;background:#193b53b3;border-radius:50%;width:37px;height:37px;text-align:center;color:#fff1c3;font:bold 10px Georgia;padding:3px;pointer-events:none}.sky-compass span{display:block;font-size:18px;line-height:20px}.explore-nearby{position:absolute;bottom:64px;right:16px;border-radius:9px;padding:8px 12px;background:#183d53ed;color:#fff5db;font-size:13px;max-width:270px;pointer-events:none}.encounter-notice,.area-arrival{position:absolute;left:50%;top:20px;transform:translateX(-50%);background:#fff6ddee;color:#263d4b;border:2px solid #deaa40;border-radius:14px;padding:13px 22px;font-weight:750;box-shadow:0 5px 18px #233d6350;text-align:center;pointer-events:none}.area-arrival{top:65px;font:22px Georgia;border-color:#a8c4c4}.sky-map-layout{display:grid;grid-template-columns:1fr 1fr;gap:20px;margin-top:12px}.sky-map-layout canvas{width:100%;max-height:460px;object-fit:contain;border-radius:13px;border:1px solid #b9c7c9}.sky-destinations{display:grid;gap:6px;margin-top:10px}.sky-destinations button{text-align:left;font-size:13px;padding:7px 10px}.sky-connections{font-size:12px;margin:15px 0;color:#5e7a87;text-align:center}.map-key{text-align:center;font-size:12px}.story-heading{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:10px 14px;flex-shrink:0;background:#f6efdb;border-bottom:1px solid #e0d7c0}.story-heading h3{font:21px Georgia}.story-heading .text{font-size:11px;white-space:nowrap;padding:2px;min-height:30px}.story-picture{display:block;position:relative;width:100%;height:230px;min-height:0;padding:0;border:0;border-radius:0;background:#e3edf1;overflow:hidden;flex-shrink:0}.story-picture img{display:block;width:100%;height:100%;object-fit:contain}.story-enlarged{display:block;width:100%;height:auto;max-height:65vh;object-fit:contain;border-radius:12px;margin-top:12px}.trial-screen .paper{padding:11px 17px}.trial-screen .paper .sentence{font-size:17px;line-height:1.52}.trial-screen .paperfoot{font-size:11px}.trial-screen .paperfoot .text{font-size:12px}.sky-walk .mapfooter{flex-shrink:0}.sky-walk .save-status{display:block;max-width:145px;font-size:10px}
@media (max-height:700px) and (min-width:761px){.story-picture{height:216px}.story-heading{padding:7px 13px}.story-heading h3{font-size:20px}.trial-screen .paper{padding:9px 15px}.trial-screen .paper .sentence{font-size:17px;line-height:1.46}.sky-walk .goalbar{padding-top:7px;padding-bottom:7px}.sky-walk .mapfooter{height:67px}}
@media(max-width:760px){.sky-walk .goalbar{align-items:flex-start;padding:8px 10px;gap:8px}.sky-walk .goalbar .row{flex-direction:column;gap:4px}.sky-walk .goalbar b{font-size:19px}.sky-walk .goalbar p{font-size:11px}.sky-walk .goalbar button{min-height:34px;font-size:11px}.sky-walk .mapfooter{height:auto;min-height:89px;padding:8px;gap:5px;flex-wrap:wrap}.sky-walk .partner{min-width:170px;gap:5px}.sky-walk .partner img{width:42px;height:42px}.sky-walk .partner b{font-size:12px}.sky-walk .xp{width:130px}.sky-walk .badge-strip{gap:6px}.sky-walk .badge-button{width:35px;height:35px;font-size:17px}.sky-walk .mapfooter>div:last-child{display:flex;width:100%;justify-content:space-between;align-items:center}.sky-walk .save-status{max-width:240px}.field-hint{top:9px;bottom:auto;max-width:calc(100% - 90px);width:290px;padding:5px 8px;font-size:10px}.sky-dpad{grid-template-columns:40px 40px 40px;grid-template-rows:40px 40px}.sky-touch{left:10px;right:10px}.sky-touch #exploreAction{min-width:100px;padding:8px 10px}.explore-nearby{max-width:180px;font-size:11px;right:10px}.sky-map-layout{grid-template-columns:1fr}.sky-map-layout canvas{max-height:270px}.sky-destinations{grid-template-columns:1fr 1fr}.story-picture{height:180px}.story-heading h3{font-size:20px}}

/* Enlarged reading: one bounded scroll area, with the title and return action outside it. */
.modal.passage-modal{height:calc(100vh - 30px);height:calc(100dvh - 30px);max-height:calc(100vh - 30px);max-height:calc(100dvh - 30px);overflow:hidden}
.modal.passage-modal[open]{display:flex;flex-direction:column}
.passage-modal .modal-head{flex:0 0 auto;margin-bottom:12px}
.passage-modal .enlarged-passage{flex:1 1 0;min-height:0;min-width:0;overflow-x:hidden;overflow-y:auto;overscroll-behavior-y:contain;-webkit-overflow-scrolling:touch;touch-action:pan-y;padding:8px 12px 20px;scrollbar-gutter:stable}
.passage-modal .enlarged-passage p{font:20px/1.65 Georgia;margin:0 0 18px;white-space:pre-line;color:#293b49}
.passage-modal .enlarged-passage p:last-child{margin-bottom:0}
.passage-modal-footer{flex:0 0 auto;border-top:1px solid #d9ded8;padding-top:10px}
.passage-modal-footer p{font-size:14px;line-height:1.4}
.passage-modal-footer .passage-scroll-hint{font-size:12px;color:#65757c;margin:0 0 6px}
@media(max-width:600px){.modal.passage-modal{padding:14px}.passage-modal .modal-head h2{font-size:22px}.passage-modal .enlarged-passage{padding:6px 6px 18px}.passage-modal .enlarged-passage p{font-size:18px;line-height:1.6}.passage-modal-footer p{font-size:13px}}

/* Keep artwork and fighter anchors in one 1536 x 1024 coordinate system. */
.battle-left .arena{width:100%;height:auto;min-height:0;flex:0 0 auto;background:none}
.arena .arena-backdrop{display:block;width:100%;height:auto;aspect-ratio:3/2;pointer-events:none;user-select:none}
.arena::before{z-index:1;pointer-events:none}
.battle-left>.enemy-hud{position:static;flex:0 0 auto;margin:0 0 7px;border:1px solid #d0dad9;background:#fffaf0}
.arena .fighter{right:auto;bottom:auto;transform:translate(-50%,-100%);transform-origin:50% 100%;pointer-events:none}
.arena .hero-sprite{left:31%;top:72%;width:34%;height:44%;z-index:3}
.arena .enemy-sprite{left:72.5%;top:52.5%;width:34%;height:40%;z-index:2}
.arena .fighter-art{width:100%;height:100%;transform-origin:50% 100%}
.arena .fighter img{display:block;width:100%;height:100%;object-fit:contain;object-position:center bottom}
.arena.boss-arena .hero-sprite{left:32%;top:81%}
.arena.boss-arena .enemy-sprite.boss{left:80%;top:53%;right:auto;bottom:auto;width:39%;height:49%}
.badge-art{display:block;width:42px;height:42px;flex:0 0 auto}.badge-button .badge-art{width:30px;height:30px;margin:auto}.medal{flex:0 0 64px}.paper p{white-space:pre-line}.homeartcopy .eyebrow{letter-spacing:.12em}.pnum{display:inline-block;min-width:1.7em;margin-right:7px;padding:2px 5px;border-radius:6px;background:#efe6cc;color:#7a5a2c;font:700 12px/1.3 system-ui,-apple-system,'Segoe UI',sans-serif;text-align:center;vertical-align:2px;user-select:none}@media(min-width:800px) and (orientation:portrait){.battle-reading .passage-card{height:auto;flex:1 1 auto;min-height:320px;max-height:none}.battle-reading .quest{flex:0 0 auto}}