/* latin-ext */
@font-face {
  font-family: 'Noto Sans SC';
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url(fonts/noto-sans-sc-latin-ext-v41.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Noto Sans SC';
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url(fonts/noto-sans-sc-latin-v41.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
:root{--ink:#203643;--paper:#fffdf6;--blue:#1979a6;--yellow:#ffe36a;--line:#d8ded8}*{box-sizing:border-box}body{margin:0;background:#f4f5ef;color:var(--ink);font-family:'Noto Sans SC',sans-serif;font-size:14px}button,a{-webkit-tap-highlight-color:transparent}button{font:inherit;color:inherit;cursor:pointer}button:focus-visible,a:focus-visible{outline:3px solid #eb943e;outline-offset:3px}header{height:93px;display:flex;align-items:center;justify-content:space-between;padding:0 32px;background:var(--paper);border-bottom:2px solid var(--ink)}.brand{color:var(--ink);text-decoration:none;display:flex;align-items:center;gap:12px}.brand-icon{display:grid;place-items:center;width:43px;height:48px;background:var(--yellow);border:3px solid var(--ink);border-radius:9px 9px 21px 21px;font-size:28px;transform:rotate(-9deg)}.brand b{font-size:28px;letter-spacing:-1px;font-weight:900;line-height:1}.brand b span{display:block;font-size:12px;letter-spacing:4px;margin-top:9px}.chapter{display:flex;gap:16px;align-items:center}.chapter>span{border:1px solid #c9d2cf;border-radius:4px;font-size:12px;padding:5px 9px;color:#6d7f81}.chapter b{font-weight:600}.top-actions{display:flex;gap:9px}.top-actions button{border:1px solid #dde1da;background:transparent;border-radius:7px;padding:9px 11px;font-weight:600}.top-actions button span{font-size:12px;margin-left:4px}main{display:grid;grid-template-columns:250px minmax(420px,1fr) 215px;gap:23px;padding:25px 28px 20px;max-width:1900px;margin:auto}.section-label{display:flex;justify-content:space-between;align-items:center;font-size:14px;font-weight:800;margin:0 0 13px}.section-label span{font-size:10px;letter-spacing:1px;color:#8c9899;font-weight:500}.hero-card{background:var(--paper);border:2px solid var(--ink);border-radius:12px;overflow:hidden;box-shadow:3px 4px 0 #d4dcd6}.hero-art{position:relative;height:183px;background:#dcecf0;background-image:radial-gradient(#adcbd0 1px,transparent 1px);background-size:8px 8px;overflow:hidden}.hero-art svg{width:100%;height:200px}.level{position:absolute;left:12px;top:13px;background:var(--paper);border:2px solid var(--ink);border-radius:7px;padding:3px 7px;font-size:11px}.level b{font-size:17px;margin-left:2px}.hero-scribble{position:absolute;right:9px;bottom:11px;font-size:11px;transform:rotate(-7deg);background:var(--yellow);padding:3px 7px;border:1px solid var(--ink)}.hero-info{padding:17px}.hero-info h1{font-size:20px;margin:0}.hero-info h1 small{display:block;font-size:10px;letter-spacing:2px;color:#739197;margin-top:3px}.hero-info p{font-size:11px;color:#7d8b8b;margin:11px 0 16px}.stat-label{display:flex;justify-content:space-between;font-size:11px;margin:12px 0 6px}.stat-label span{color:#6a8083}.bar{height:9px;background:#e7ebe2;border-radius:10px;overflow:hidden}.bar i{display:block;background:#e78370;height:100%;width:100%;transition:width .3s}.bar.xp{height:6px}.xp i{background:#70adba;width:0}.quest-card{margin-top:20px;background:#fff9dd;border:1px solid #dfd7ad;border-radius:10px;padding:17px}.eyebrow{color:#a88426;font-size:11px;font-weight:800;letter-spacing:1px}.quest-card h2{font-size:17px;margin:12px 0 8px}.quest-card p{font-size:12px;color:#788074;line-height:1.9;margin:0}.objective{font-size:12px;margin-top:14px;display:flex;gap:9px}.objective i{height:15px;width:15px;border:1.5px solid #bbac70;border-radius:4px;display:block}.objective.done{color:#819077}.objective.done i{background:#8aa88b}.reward{border-top:1px dashed #ddd1a1;margin-top:17px;padding-top:12px;font-size:10px;color:#928667}.reward b{display:block;margin-top:5px;color:#6b744e;font-size:11px}.journal-button{display:flex;justify-content:space-between;width:100%;background:#fffdf6;border:1px solid var(--line);border-radius:8px;padding:13px;margin-top:14px;font-weight:600;font-size:13px}.journal-button span{color:#98a09b;font-size:10px}.mini-note{text-align:center;color:#8c9891;font-size:12px;line-height:2;margin-top:20px}.mini-note span{font-size:10px}.world{border:2px solid var(--ink);border-radius:12px;overflow:hidden;background:#fffdf6;align-self:start;box-shadow:4px 5px 0 #d5dbd4}.world-toolbar{height:56px;display:flex;align-items:center;justify-content:space-between;padding:0 17px;border-bottom:2px solid var(--ink);gap:8px}.world-toolbar>div{display:flex;align-items:center;gap:8px}.location-dot{width:8px;height:8px;border-radius:50%;background:#6d9a70}.world-toolbar b{font-size:12px}.weather{font-size:10px;color:#89958c;margin-left:8px}.difficulty-chip{white-space:nowrap;font-size:10px;padding:4px 8px;border-radius:5px;background:#e6eee2;color:#687e60}.canvas-wrap{position:relative;aspect-ratio:1100/790;background:#b5d39c;overflow:hidden}canvas{display:block;width:100%;height:100%;outline:none;touch-action:none}.map-caption{position:absolute;left:19px;top:18px;pointer-events:none}.map-caption span{background:#fffdf2;border:1px solid #283d3b;padding:4px 10px;border-radius:4px;font-size:10px}.map-caption b{display:block;font-size:12px;margin-top:13px;color:#40593c;text-shadow:0 1px #fff5}.map-tools{position:absolute;right:17px;top:17px}.map-tools button{background:#fffdf2;border:1px solid var(--ink);border-radius:6px;width:33px;height:33px;font-size:24px}.interaction{position:absolute;bottom:17px;left:50%;transform:translateX(-50%);white-space:nowrap;border:1px solid #66746d;background:#fffdf3ed;border-radius:6px;padding:8px 14px;font-size:11px;box-shadow:2px 2px #0001}.world-footer{padding:17px 13px;display:flex;gap:16px;align-items:center;font-size:10px;color:#87918d}.world-footer b{margin-left:auto;font-size:9px;font-weight:500}kbd{display:inline-block;border:1px solid #c7cec4;border-bottom-width:2px;border-radius:3px;padding:1px 4px;font-family:inherit;background:#fffdf6;font-size:10px;margin-right:2px;color:#617368}.team-card{display:flex;align-items:center;gap:11px;border:1px solid var(--line);border-radius:9px;padding:12px;background:var(--paper);margin-bottom:10px}.avatar{width:43px;height:46px;flex-shrink:0;border-radius:9px;background:#f9e5be;overflow:hidden}.avatar svg{width:100%;height:100%}.robot{background:#e1ebdd}.team-card h3{font-size:13px;margin:0 0 4px}.team-card p{margin:0;color:#a3aaa1;font-size:10px}.team-card>span{margin-left:auto;color:#acb7a9}.team-tip{font-size:10px;text-align:center;color:#919b90;margin:15px 0 30px}.bag-label{margin-bottom:11px}.bag{background:var(--paper);border:1px solid var(--line);border-radius:10px;padding:0 13px}.bag>button,.bag>div{position:relative;display:grid;grid-template-columns:39px 1fr;gap:4px 10px;align-items:center;padding:17px 0;width:100%;border:0;background:none;text-align:left}.bag>div,.bag>button{border-bottom:1px dashed #ddd}.bag>div:last-child{border:0}.bag b{font-size:12px}.bag small{grid-column:2;font-size:10px;color:#929d91}.bag em{position:absolute;right:0;top:23px;font-size:10px;font-style:normal;color:#718273}.item{grid-row:1 / 3;display:grid;place-items:center;width:35px;height:37px;border-radius:7px;font-size:25px;background:#f3eee1}.cookie{color:#b77f3e;text-shadow:2px 2px #70452c}.bolt{color:#679791;background:#eaf0e5}.heart{color:#da826f;background:#f9e9df}.tip-card{margin-top:23px;border:1px solid #cbdcd6;background:#e8f0e9;border-radius:10px;padding:15px}.tip-card span{font-size:12px;font-weight:600}.tip-card p{font-size:11px;line-height:2;color:#839285;margin-bottom:0}.edition{display:flex;flex-direction:column;gap:6px;margin-top:35px;color:#a3ada2;font-size:9px}.edition b{font-size:9px;letter-spacing:1px;font-weight:500}body>footer{max-width:1900px;margin:0 auto;display:flex;justify-content:space-between;padding:0 29px 16px;color:#98a096;font-size:10px}.toast{position:absolute;top:80px;left:50%;transform:translateX(-50%);padding:10px 20px;background:#203643ed;color:white;border-radius:8px;font-size:13px;opacity:0;transition:opacity .2s;pointer-events:none;text-align:center;min-width:220px}.toast.show{opacity:1}.dpad{display:none;position:absolute;bottom:65px;left:12px;text-align:center}.dpad button{width:35px;height:33px;background:#fffbdde0;border:1px solid #596f5b;border-radius:5px}.modal-backdrop{position:fixed;inset:0;background:#172d3b88;backdrop-filter:blur(5px);z-index:10;display:grid;place-items:center;padding:22px}.modal-backdrop[hidden]{display:none}.modal{width:min(560px,100%);max-height:90vh;overflow:auto;background:#fffdf4;border:3px solid var(--ink);box-shadow:8px 8px 0 #20364380;border-radius:17px;padding:30px;position:relative}.modal h2{font-size:27px;margin:12px 0}.modal p{font-size:14px;line-height:1.9;color:#738179}.modal .eyebrow{color:#2f869a}.modal .primary{background:var(--yellow);font-weight:800;border:2px solid var(--ink);border-radius:7px;padding:13px 20px;box-shadow:3px 3px var(--ink)}.modal .secondary{border:1px solid #bcc9be;background:#eaf0e5;border-radius:6px;padding:11px 14px}.choices{display:grid;gap:9px;margin:23px 0}.choice{text-align:left;background:#f4f4e9;border:2px solid #d3dccf;border-radius:8px;padding:13px 16px;display:flex;justify-content:space-between;align-items:center}.choice.selected{background:#fff2aa;border-color:var(--ink)}.choice span{font-size:11px;color:#7b8975}.dialog-art{height:85px;width:100px;float:right}.dialog-art svg{height:100%;width:100%}.modal .actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:24px}.battle-enemy{text-align:center;border-radius:10px;background:#e3ecd8;margin:16px 0;padding:10px}.battle-enemy svg{height:120px;width:130px}.battle-enemy b{display:block}.battle-enemy .bar{margin:10px auto;max-width:240px}.battle-log{background:#f1eee1;border-radius:8px;padding:13px;min-height:68px}.modal .close{position:absolute;right:14px;top:12px;background:none;border:0;font-size:22px}.start-mark{font-weight:900;letter-spacing:-3px;font-size:52px;line-height:1.05;color:#207ea4;transform:rotate(-3deg);text-shadow:2px 2px #f7d660;margin:17px 0}.chapter-grid{display:grid;gap:14px}.chapter-grid div{border-left:3px solid #e2c453;padding-left:15px}.chapter-grid b{font-size:14px}.chapter-grid p{font-size:12px;margin:5px 0}.source{font-size:11px;color:#73968d}.source a{color:inherit}@media(min-width:1600px){main{grid-template-columns:275px minmax(500px,1fr) 240px;gap:28px}.hero-art{height:210px}.hero-art svg{height:230px}.hero-info p,.quest-card p,.team-card p,.tip-card p{font-size:13px}.world-toolbar{height:62px}}@media(max-width:1150px){main{grid-template-columns:220px minmax(380px,1fr);padding:20px;gap:18px}.right{display:none}.chapter{display:none}.weather{display:none}.world-footer{gap:9px;flex-wrap:wrap}.dpad{display:block}.hero-art{height:166px}}@media(max-width:700px){header{height:72px;padding:0 15px}.brand b{font-size:23px}.brand-icon{width:34px;height:40px;font-size:22px}.brand b span{font-size:9px;letter-spacing:2px}.top-actions{gap:4px}.top-actions button{padding:7px}.top-actions span{display:none}main{display:flex;flex-direction:column;padding:13px;gap:15px}.world{order:-1;width:100%}.canvas-wrap{aspect-ratio:1/1.15}.world-footer{font-size:9px}.world-footer>b{display:none}.left{display:grid;grid-template-columns:1fr 1fr;gap:12px}.left>.section-label,.mini-note{display:none}.hero-art{height:125px}.hero-art svg{height:150px}.hero-info{padding:12px}.hero-info h1{font-size:16px}.hero-info p{display:none}.hero-scribble{display:none}.quest-card{margin:0;padding:13px}.quest-card h2{font-size:15px}.quest-card p{font-size:11px}.journal-button{grid-column:1/3;margin:0}.right{display:block}.right>.section-label,.team-card,.team-tip,.tip-card,.edition{display:none}.bag{display:flex;gap:14px}.bag>button,.bag>div{border:0}.bag b{font-size:10px}.bag small{display:none}.bag em{top:44px}.bag .item{width:25px;font-size:20px}.bag>button,.bag>div{grid-template-columns:25px 1fr;gap:4px}body>footer{padding:0 15px 15px}body>footer span:last-child{display:none}.modal{padding:24px}.start-mark{font-size:44px}.world-toolbar{padding:0 10px}.map-caption b{font-size:10px}}
.english .brand b span{letter-spacing:1px;font-size:10px}.english .chapter{gap:9px;font-size:12px}.english .hero-info h1{font-size:22px}.english .hero-scribble{font-size:10px}.english .world-toolbar b{font-size:11px}.english .weather{display:none}.english .section-label{font-size:12px}.english .quest-card p{line-height:1.7}.english .bag{padding:0 9px}.english .bag b{font-size:11px}.english .bag small{font-size:9px}.english .bag em{top:auto;bottom:8px}.english .team-card{gap:7px}.english .team-card p{font-size:9px}.english .world-footer{flex-wrap:wrap;gap:8px}.english .choice span{font-size:10px}.english .choice{gap:10px}.english .edition b{font-size:8px}.english .top-actions button{font-size:12px}.english .top-actions button span{font-size:10px}@media(max-width:700px){.english .quest-card h2{font-size:14px}.english .hero-info h1{font-size:18px}.english .choice{padding:13px 10px}.english .bag b{font-size:10px}}
.modal .modal-language{position:absolute;right:18px;top:12px;font-size:11px;padding:4px 7px}.modal>.eyebrow{padding-right:90px}@media(max-width:700px){.canvas-wrap{aspect-ratio:1100/900}.map-caption b{display:none}.dpad{bottom:49px}.interaction{font-size:9px;bottom:10px;padding:5px 8px}.map-caption{top:12px;left:12px}}
/* Comic edition: bold ink, print dots, vivid paper panels. */
:root{--ink:#20354b;--paper:#fffef6;--blue:#168dc3;--yellow:#ffe25d;--line:#c6d9dd}body{background:#e9f3f6;background-image:radial-gradient(#bad3dd 1px,transparent 1px);background-size:11px 11px}header{border-bottom:3px solid var(--ink);background:#fffef8;box-shadow:0 4px 0 #b5d4dc70}.brand b{font-weight:900;color:#177eae;text-shadow:1px 1px #ffd74d;transform:rotate(-2deg)}.brand-icon{background:#ffda49;box-shadow:2px 2px var(--ink)}.top-actions button{background:#fffef8;border:1.5px solid #c2d3da}.top-actions button:hover{background:#fff0a8;transform:translateY(-1px)}.section-label{color:#31546a;letter-spacing:1px}.hero-card{box-shadow:4px 5px 0 #20354b;border-radius:10px;transform:rotate(-.5deg)}.hero-art{height:230px;background-color:#65c9e3;background-image:radial-gradient(#198fba55 1.5px,transparent 1.5px),conic-gradient(from 0deg at 50% 100%,#fff0 0deg 15deg,#ffffff45 15deg 30deg,#fff0 30deg 45deg,#ffffff45 45deg 60deg,#fff0 60deg 75deg,#ffffff45 75deg 90deg,#fff0 90deg 105deg,#ffffff45 105deg 120deg,#fff0 120deg 135deg,#ffffff45 135deg 150deg,#fff0 150deg 165deg,#ffffff45 165deg 180deg,#fff0 180deg 360deg);background-size:7px 7px,100% 100%;border-bottom:2px solid var(--ink)}.hero-art svg{height:250px;width:100%;margin-top:-8px;filter:drop-shadow(3px 4px 0 #ffffffa0)}.hero-scribble{bottom:12px;right:10px;font-weight:800;border:2px solid var(--ink);box-shadow:2px 2px var(--ink);font-size:12px}.level{z-index:1;background:#fff9c8;box-shadow:2px 2px #20354b}.hero-info{background:#fffef6}.hero-info p{font-size:12px;color:#65818a}.bar{height:10px;border:1px solid #a4b7b9;background:#e1e9e6}.bar i{background:#ef7764}.xp i{background:#32a3cc}.quest-card{background:#fff3b5;border:2px solid #b19a56;box-shadow:3px 3px #dbc887;border-radius:8px}.quest-card h2{font-weight:900}.quest-card p{color:#6c6e51;font-size:13px}.eyebrow{color:#937129}.objective{font-size:12px;font-weight:600}.journal-button{border:2px solid #acc5ce;box-shadow:2px 2px #c4dce4}.world{border:3px solid var(--ink);box-shadow:5px 6px 0 #20354b;border-radius:10px}.world-toolbar{background:#fffef6;border-bottom:3px solid var(--ink)}.world-toolbar b{font-size:13px}.canvas-wrap{aspect-ratio:1100/790}.world-footer{background:#fffef6;border-top:2px solid var(--ink);padding:14px 12px}.world-footer b{color:#438e69}.map-caption span{background:#ffec75;border:2px solid var(--ink);box-shadow:2px 2px var(--ink);font-weight:800;letter-spacing:1px}.map-caption b{color:#34533a}.interaction{border:2px solid var(--ink);box-shadow:3px 3px #20354b44;background:#fffdf1f2;font-weight:600}.map-tools button{border:2px solid var(--ink);box-shadow:2px 2px #20354b}.team-card{border:2px solid #b6cbd3;box-shadow:3px 3px #d4e3e6;background:#fffef8}.avatar{height:56px;width:56px;border:1px solid #d7b775;background:#ffe9a8}.avatar svg{width:120%;height:120%;margin:-10%}.robot{background:#d4edf5;border-color:#98c4d1}.team-card p{color:#71918b}.bag{border:2px solid #b6cbd3;background:#fffef8}.tip-card{background:#dff2f6;border:2px solid #a4cdd8}.tip-card p{color:#567e88;font-size:12px}.edition{color:#7795a2}.mini-note{color:#628996}.modal-backdrop{background:#142b49b5;backdrop-filter:blur(6px)}.modal{border:3px solid var(--ink);border-radius:7px;box-shadow:9px 10px 0 #142b49;background:#fffef4;background-image:radial-gradient(#b2c8d322 .8px,transparent .8px);background-size:6px 6px}.modal h2{font-weight:900;letter-spacing:-.6px;line-height:1.25}.modal p{color:#546b78}.modal .primary{background:#ffdc53;box-shadow:3px 4px var(--ink);transition:transform .12s}.modal .primary:hover{transform:translateY(-2px);background:#ffe97e}.modal .primary:active{transform:translate(2px,2px);box-shadow:1px 2px var(--ink)}.modal .secondary{border:2px solid #aec4cd;background:#e5f2f5}.modal .secondary:hover{background:#d0e9ef}.modal .modal-language{z-index:2;background:#fffdf0}.dialog-art{height:160px;width:150px;float:right;background:radial-gradient(circle,#ffdc53 0 55%,transparent 56%);margin:8px -5px 10px 15px;transform:rotate(4deg)}.dialog-art svg{width:100%;height:100%;filter:drop-shadow(2px 3px 0 #fff9)}.modal .actions{clear:both}.start-modal{width:min(640px,100%);padding-top:26px}.start-cover{display:block;width:calc(100% + 60px);height:240px;object-fit:cover;object-position:center;margin:18px -30px 0;border-top:3px solid var(--ink);border-bottom:3px solid var(--ink)}.start-mark{color:#168ac2;-webkit-text-stroke:1px #20354b;text-shadow:3px 3px #ffde59;margin:17px 0 13px;font-size:50px}.start-mark>span{-webkit-text-stroke:0;text-shadow:none;color:#20354b}.start-modal .choices{grid-template-columns:repeat(3,1fr);gap:9px;margin:17px 0}.start-modal .choice{display:block;padding:12px 10px;background:#edf6f5}.start-modal .choice span{display:block;line-height:1.6;margin-top:6px;font-size:11px}.start-modal .choice.selected{background:#ffe785;box-shadow:2px 2px var(--ink)}.start-modal .actions{margin-top:16px}.victory-cover{width:calc(100% + 60px);margin:25px -30px 20px;border-top:3px solid var(--ink);border-bottom:3px solid var(--ink);max-height:230px;object-fit:cover}.gallery-modal{width:min(880px,100%)}.cast-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:15px;margin-top:23px}.cast-card{border:2px solid var(--ink);background:#daf3f5;box-shadow:3px 3px #20354b;border-radius:4px;overflow:hidden;text-align:center;transform:rotate(-.7deg)}.cast-card:nth-child(even){transform:rotate(.7deg)}.cast-card .character-art{width:100%;height:175px;background-image:radial-gradient(#20354b22 1px,transparent 1px);background-size:6px 6px;display:block}.cast-card h3{margin:0;background:#fffdf4;padding:10px 5px 3px;font-size:17px;border-top:2px solid var(--ink)}.cast-card p{background:#fffdf4;font-size:11px;line-height:1.5;margin:0;padding:3px 8px 11px;min-height:42px}.cast-cat{background:#ffe38a}.cast-robot{background:#a7dfed}.cast-petey{background:#f4c0cb}.cast-chief{background:#b8daa1}.cast-fish{background:#ceb4e9}.battle-modal{width:min(660px,100%)}.battle-scene{height:240px;position:relative;display:flex;align-items:end;justify-content:space-around;background:radial-gradient(ellipse at 50% 100%,#fff4ab 0 20%,transparent 65%),repeating-conic-gradient(from 0deg at 50% 55%,#6ed0e5 0deg 10deg,#9be0eb 10deg 20deg);border:3px solid var(--ink);border-radius:4px;margin:22px 0 0;overflow:hidden;box-shadow:3px 3px #20354b}.battle-scene::after{content:'';position:absolute;bottom:0;left:0;right:0;height:32px;background:#f8d48a;border-top:2px solid var(--ink);z-index:0}.flippy-scene{background:repeating-conic-gradient(from 0deg at 76% 50%,#c5a4e7 0deg 12deg,#e2c9f3 12deg 24deg)}.battle-hero,.battle-foe{width:43%;height:230px;z-index:1;position:relative;filter:drop-shadow(3px 3px 0 #ffffffaa)}.battle-hero svg{width:100%;height:100%;transform:scaleX(-1)}.battle-foe svg{width:100%;height:100%}.battle-foe{animation:foe-float 2.5s ease-in-out infinite}.battle-vs{position:absolute;left:50%;top:40%;transform:translate(-50%,-50%) rotate(-12deg);font-size:37px;font-weight:900;color:#fff;border:3px solid var(--ink);background:#f17958;padding:4px 10px;box-shadow:4px 4px var(--ink);z-index:2}.battle-enemy{border:2px solid #c5d7dc;border-top:none;border-radius:0 0 7px 7px;background:#eff6f5;margin:0 0 15px;padding:13px}.battle-enemy b{font-size:15px}.battle-enemy .bar{height:11px}.battle-enemy small{color:#5c7483}.battle-log{border:1px solid #d2dbe0;border-left:4px solid #219bc3;background:#e8f4f6;font-size:14px!important;line-height:1.7!important}.comic-impact{position:absolute;left:50%;top:15%;transform:translateX(-50%) rotate(-12deg);background:#ffe259;color:#20354b;border:3px solid #20354b;font-size:35px;font-weight:900;padding:7px 15px;box-shadow:4px 4px #20354b;z-index:3;animation:impact-pop .35s ease-out}.comic-impact.kind{color:#df5b74;background:#fff0f4}.comic-impact.guard{background:#8bddf0;font-size:27px}.comic-impact.heal{background:#bde493}.toast{background:#20354b;border:2px solid #fff7c9;box-shadow:3px 3px #20354b55}.dpad button{border:2px solid var(--ink);background:#fff9d9e8;box-shadow:1px 2px #20354b66;font-weight:800}@keyframes foe-float{50%{transform:translateY(-6px) rotate(2deg)}}@keyframes impact-pop{0%{opacity:.1;scale:.3}70%{scale:1.15}100%{opacity:1;scale:1}}@media(prefers-reduced-motion:reduce){.battle-foe,.comic-impact{animation:none}}
@media(min-width:1600px){.hero-art{height:270px}.hero-art svg{height:285px}}@media(max-width:1150px){.hero-art{height:205px}.hero-art svg{height:230px}.chapter{display:none}.top-actions{gap:5px}.top-actions button{padding:8px}}@media(max-width:700px){.canvas-wrap{aspect-ratio:1100/790}header{padding:0 11px}.brand b{font-size:20px}.brand-icon{width:31px;height:35px;font-size:20px}.brand{gap:8px}.top-actions{gap:4px}.top-actions button{padding:6px;min-width:28px}.hero-art{height:157px}.hero-art svg{height:177px;margin-top:-10px}.hero-info p{display:none}.hero-info h1{font-size:18px}.quest-card p{font-size:12px}.hero-card{transform:none}.hero-scribble{display:none}.world-toolbar b{font-size:11px}.world-footer{padding:10px}.map-caption{top:9px;left:9px}.map-caption span{font-size:8px;padding:3px 6px}.map-tools{right:10px;top:9px}.map-tools button{width:29px;height:29px;font-size:20px}.dpad{bottom:40px;left:9px}.dpad button{width:29px;height:27px;font-size:11px}.interaction{font-size:9px;bottom:8px;padding:4px 7px;max-width:90%;overflow:hidden;text-overflow:ellipsis}.modal{padding:23px 19px;max-height:92vh}.modal h2{font-size:24px}.dialog-art{width:120px;height:140px;margin-left:8px}.start-cover,.victory-cover{width:calc(100% + 38px);margin-left:-19px;margin-right:-19px;height:185px}.start-mark{font-size:42px}.start-modal .choices{gap:7px}.start-modal .choice{padding:10px 7px}.start-modal .choice b{font-size:12px}.start-modal .choice span{font-size:9px}.start-modal p{font-size:12px}.gallery-modal{padding:24px 17px}.cast-grid{grid-template-columns:repeat(2,1fr);gap:12px}.cast-card .character-art{height:155px}.cast-card h3{font-size:15px}.cast-card p{font-size:10px}.battle-scene{height:195px}.battle-hero,.battle-foe{height:185px}.battle-vs{font-size:25px}.battle-modal .actions{gap:8px}.battle-modal .actions button{font-size:12px;padding:10px}.battle-log{font-size:12px!important}.comic-impact{font-size:26px}.comic-impact.guard{font-size:20px}}
/* Real-time action edition */
main{grid-template-columns:225px minmax(420px,1fr) 200px;gap:19px;max-width:1780px}.world{position:relative}.canvas-wrap{aspect-ratio:1100/790;isolation:isolate}.map-caption{top:auto;bottom:17px;left:16px}.map-caption b{display:none}.map-caption span{font-size:9px}.map-tools{z-index:3}.player-hud{position:absolute;top:13px;left:13px;width:152px;background:#fff9e9ee;border:2px solid var(--ink);border-radius:6px;padding:7px 9px;box-shadow:3px 3px #20354b55;pointer-events:none;z-index:2}.hud-health{position:relative;display:grid;grid-template-columns:20px 1fr;align-items:center}.hud-health>b{color:#de695c;font-size:18px}.hud-health>span{font-size:11px;font-weight:800;text-align:right}.hud-bar{height:8px;background:#d5dfd7;border:1px solid #4e6575;border-radius:8px;overflow:hidden}.hud-health>.hud-bar{grid-column:1/3;margin:3px 0 6px}.hud-bar i{display:block;height:100%;width:100%;background:#ee7863;transition:width .1s linear}.hud-energy>span{display:block;font-size:8px;letter-spacing:1px;margin-bottom:3px;font-weight:700}.hud-energy .hud-bar{height:5px}.hud-energy .hud-bar i{background:#54b4ce}.encounter-hud{position:absolute;top:13px;left:50%;transform:translateX(-50%);width:min(45%,330px);background:#fff7e9f2;border:2px solid var(--ink);border-radius:6px;box-shadow:3px 3px #20354b55;padding:8px 11px;pointer-events:none;z-index:2}.encounter-hud[hidden]{display:none}.encounter-hud b{display:block;font-size:11px;font-weight:900;margin-bottom:4px}.encounter-hud>span{float:right;font-size:9px;margin-top:-18px}.encounter-hud .hud-bar{height:10px}.encounter-hud .hud-bar i{background:#aa6dca}.action-bar{display:flex;align-items:stretch;gap:10px;border-top:3px solid var(--ink);padding:12px 15px;background:#fff9e8}.action{border:2px solid var(--ink);border-radius:7px;box-shadow:2px 3px var(--ink);background:#ffe378;min-width:74px;height:67px;display:grid;grid-template-columns:1fr 1fr;gap:1px;align-content:center;padding:5px 9px;touch-action:none;user-select:none;-webkit-user-select:none}.action kbd{font-size:9px;padding:1px 3px;width:fit-content;align-self:start}.action strong{font-size:22px;line-height:1;text-align:right}.action span{grid-column:1/3;font-size:11px;font-weight:800;text-align:left;white-space:nowrap;margin-top:4px}.action.dodge{background:#cae5f1}.action.bark{background:#d7c4ee}.action.heal{background:#d5e9ae}.action:hover{filter:brightness(1.04)}.action:active{transform:translate(2px,2px);box-shadow:0 1px var(--ink)}.action:disabled{opacity:.55;filter:saturate(.6);cursor:default}.action-hint{display:flex;flex-direction:column;justify-content:center;margin-left:auto;gap:6px;font-size:10px;color:#6e8993}.action-hint b{font-size:11px;color:#486678}.world-footer{border-top:1px dashed #d1cfb3;padding:9px 14px;justify-content:space-between;font-size:10px}.dialogue-dock{display:flex;align-items:center;gap:13px;position:relative;background:#fffbed;border-top:3px solid var(--ink);padding:10px 18px 10px 7px;min-height:100px}.dialogue-dock[hidden]{display:none}.speaker-art{width:83px;height:83px;flex-shrink:0;background:#f8df87;border:2px solid var(--ink);border-radius:50%;overflow:hidden}.speaker-art svg{width:100%;height:100%}.speech{flex:1}.speech>b{font-size:12px;color:#2583a8;display:block;margin-bottom:5px}.speech p{font-size:13px;line-height:1.7;margin:0;color:#354f60}.dialogue-dock>button{flex-shrink:0;background:#ffe47a;border:2px solid var(--ink);border-radius:5px;padding:7px 9px;font-size:11px;font-weight:800}.dialogue-dock>button.speech-close{position:absolute;top:4px;right:4px;background:none;border:none;padding:0 4px;color:#8b9b99;font-size:17px}.dialogue-dock #speechNext{align-self:flex-end;margin-bottom:4px}.dpad{display:block;bottom:57px}.dpad button{width:34px;height:33px;touch-action:none;user-select:none;-webkit-user-select:none}.interaction{bottom:15px;font-size:10px;max-width:70%;overflow:hidden;text-overflow:ellipsis}.region-cards{display:grid;grid-template-columns:repeat(3,1fr);gap:13px;margin:23px 0}.region-card{border:2px solid #c3d4d9;border-radius:8px;background:#edf4ef;padding:16px 12px;text-align:center}.region-card.current{border-color:var(--ink);background:#ffe795;box-shadow:3px 3px var(--ink)}.region-card>span{font-size:30px}.region-card h3{font-size:14px;line-height:1.6}.region-card p{font-size:11px;line-height:1.7}.help-grid{display:grid;grid-template-columns:1fr 1fr;gap:0 20px}.help-grid p{font-size:12px}.help-grid b{color:#2787a7}.controls-note{font-size:11px!important;line-height:1.8!important}.hero-art{height:191px}.hero-art svg{height:215px}.hero-info p{font-size:11px}.quest-card p{font-size:12px;line-height:1.85}.mini-note{margin-top:15px}.action-hint span{white-space:nowrap}.english .encounter-hud>span{float:none;display:block;margin:0 0 4px}.english .encounter-hud b{font-size:10px}.english .dialogue-dock .speech p{font-size:12px}.english .action-bar{gap:8px}.english .action{min-width:68px}.english .action span{font-size:10px}.map-caption{pointer-events:none}.toast{z-index:5}
@media(min-width:1600px){.hero-art{height:230px}.hero-art svg{height:252px}.action{height:72px;min-width:88px}.action span{font-size:13px}.speech p{font-size:15px}}
@media(max-width:1250px){.action-hint{display:none}.action-bar{justify-content:center}.world-toolbar .weather{display:none}.top-actions button span{display:none}main{grid-template-columns:210px minmax(380px,1fr);gap:18px}.right{display:none}}
@media(max-width:700px){main{display:flex;padding:11px;gap:14px}.right{display:block}.world-toolbar{height:44px;padding:0 9px}.canvas-wrap{aspect-ratio:1100/790}.player-hud{top:8px;left:8px;width:107px;padding:5px 7px;box-shadow:2px 2px #20354b55}.hud-health>b{font-size:13px}.hud-health>span{font-size:9px}.hud-energy>span{font-size:7px}.hud-health>.hud-bar{height:6px;margin-bottom:4px}.encounter-hud{top:8px;left:auto;right:43px;transform:none;width:46%;padding:5px 7px}.encounter-hud b{font-size:9px;margin-bottom:3px}.encounter-hud>span{float:none;display:block;font-size:8px;margin:0 0 3px}.encounter-hud .hud-bar{height:7px}.map-tools{top:8px;right:7px}.map-tools button{height:28px;width:28px}.map-caption{display:none}.action-bar{padding:9px 10px;gap:9px}.action{height:57px;min-width:0;flex:1;padding:4px 7px}.action strong{font-size:20px}.action span{font-size:10px;margin-top:2px}.action kbd{font-size:8px}.english .action{min-width:0}.english .action-bar{gap:7px}.action-hint{display:none}.world-footer{padding:8px 9px;gap:8px;font-size:8px}.world-footer b{display:none}.dpad{bottom:38px;left:8px;opacity:.94}.dpad button{width:27px;height:27px;font-size:10px}.interaction{font-size:8px;bottom:8px;max-width:82%;padding:4px 6px;line-height:1.3}.dialogue-dock{padding:8px 8px 8px 4px;gap:8px;flex-wrap:wrap;min-height:95px}.speaker-art{width:58px;height:58px}.speech{min-width:190px}.speech>b{font-size:10px;margin-bottom:3px}.speech p{font-size:11px;line-height:1.65;padding-right:12px}.dialogue-dock #speechNext{margin:0 1px 0 auto;font-size:10px;padding:4px 8px}.english .dialogue-dock .speech p{font-size:11px}.hero-art{height:142px}.hero-art svg{height:160px}.hero-info p{display:none}.quest-card p{font-size:11px}.region-cards{gap:7px}.region-card{padding:11px 6px}.region-card h3{font-size:11px}.region-card p{font-size:10px}.help-grid{gap:0 13px}.help-grid p{font-size:11px}.toast{top:83px;font-size:11px;min-width:200px;max-width:85%;padding:8px 11px}.chapter-grid p{line-height:1.9}.english .world-toolbar b{font-size:10px}.english .encounter-hud b{font-size:9px}.top-actions button{min-width:27px;padding:5px}.brand b{font-size:18px}.brand b span{font-size:8px}.brand-icon{width:29px;height:33px}.left{grid-template-columns:1fr 1fr}}

.mini-map{position:absolute;right:12px;top:64px;width:220px;max-width:46%;padding:10px;background:#fff9e8;border:3px solid var(--ink);border-radius:13px;box-shadow:4px 4px #24384a55;z-index:6;touch-action:manipulation;color:var(--ink)}
.mini-map[hidden]{display:none}.mini-head{display:flex;align-items:center;justify-content:space-between;gap:8px}.mini-head b{font-size:13px}.mini-map button{border:2px solid var(--ink);border-radius:8px;background:#fff1b5;color:var(--ink);font:inherit;cursor:pointer;min-height:44px;min-width:44px;touch-action:manipulation}.mini-map button:disabled{opacity:.4;cursor:default}.mini-map button:focus-visible{outline:3px solid #2787a7;outline-offset:2px}#miniZone{font-size:12px;margin:5px 0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}#miniCanvas{display:block;width:100%;height:auto;border:2px solid var(--ink);border-radius:5px}#miniLegend{font-size:10px;text-align:center;margin:7px 0;white-space:nowrap}.mini-controls{display:flex;align-items:center;justify-content:space-between;gap:8px}.mini-controls output{font-size:12px;font-weight:bold}#miniOverview{width:100%;margin-top:7px;font-size:11px}.map-tools button{min-width:44px;min-height:44px;touch-action:manipulation}
@media(max-width:700px){.mini-map{right:7px;top:57px;width:180px;padding:6px;max-width:48%}.mini-head b{font-size:11px}#miniZone{font-size:10px}#miniLegend{font-size:8px;margin:4px 0}#miniOverview{margin-top:4px}.mini-map button{min-height:36px;min-width:40px}#miniCanvas{max-height:105px;object-fit:contain;background:#d8e8ce}}
@media(pointer:coarse) and (min-width:701px){.dpad button{width:44px;height:44px}.action{min-height:64px}}

/* Touch controls retain independent pointers; normal page content can still scroll/zoom. */
#game,.dpad,.action-bar{touch-action:none;-webkit-user-select:none;user-select:none;-webkit-touch-callout:none}
.dpad button.is-held{background:#ffe276;transform:translateY(2px);box-shadow:none}.action.is-held{transform:translate(2px,2px);box-shadow:none;filter:brightness(.95)}
#touchPause{min-width:44px;min-height:44px;border:2px solid var(--ink);border-radius:8px;background:#fff2bc;font-weight:900;touch-action:manipulation;flex-shrink:0}
@media(min-width:701px) and (max-width:1366px){
 header{height:64px;padding:0 max(16px,env(safe-area-inset-right)) 0 max(16px,env(safe-area-inset-left))}.chapter{display:none}.top-actions button{min-width:44px;min-height:44px}.brand b{font-size:23px}.brand-icon{height:38px;width:35px}
 main{display:flex;flex-direction:column;padding:12px max(14px,env(safe-area-inset-right)) 20px max(14px,env(safe-area-inset-left));gap:18px;max-width:1180px}.world{order:-1;width:100%;align-self:center;max-width:1100px}.left{display:grid;grid-template-columns:220px minmax(0,1fr);gap:16px;width:100%;order:1}.left>.section-label,.mini-note{display:none}.left .hero-card{grid-row:1/3}.left .quest-card{margin:0}.left .journal-button{margin:0}.right{display:none}
 .world-toolbar{height:52px;justify-content:flex-start}.world-toolbar .difficulty-chip{margin-left:auto}.world-toolbar b{font-size:14px}.action-bar{padding:12px 16px;gap:16px}.action{flex:1;min-width:0;height:70px}.action span,.english .action span{font-size:14px}.action kbd{display:none}.action strong{font-size:26px}.action-hint{display:none}.dpad{left:18px;bottom:55px}.dpad button{width:52px;height:50px;font-size:20px;margin:2px}.interaction{font-size:12px;bottom:12px}.map-caption{display:none}
 .dialogue-dock .speech p,.english .dialogue-dock .speech p{font-size:14px}.dialogue-dock #speechNext{min-height:44px;min-width:80px}.dialogue-dock>button.speech-close{min-height:44px;min-width:44px;top:0;right:0}.speech{padding-right:24px}.mini-map{width:244px}.mini-map button{min-width:44px;min-height:44px}#miniLegend{font-size:11px}.world-footer{font-size:11px}.modal{max-height:calc(100dvh - 32px);overflow-y:auto}.modal button{min-height:44px}
}
@media(min-width:701px) and (max-width:1366px) and (orientation:landscape){
 .world{width:min(100%,calc((100dvh - 240px)*1.3924));min-width:560px}.dpad{left:10px;bottom:43px}.dpad button{width:46px;height:44px;margin:1px}.world-toolbar{height:48px;padding:0 10px}.action-bar{padding:9px 12px;gap:12px}.action{height:60px}.world-footer{padding:5px 10px}.mini-map{width:220px;top:62px}
}
@media(pointer:coarse){button{touch-action:manipulation}.dpad button,.action{touch-action:none}.top-actions button,.dialogue-dock #speechNext,.mini-map button{min-width:44px;min-height:44px}.action span{white-space:normal}.canvas-wrap{overscroll-behavior:contain}}
@media(max-width:700px){#touchPause{min-width:38px;min-height:38px}.world-toolbar{gap:5px}.world-toolbar>div{min-width:0}.world-toolbar b{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.difficulty-chip{font-size:9px}.dpad button{width:40px;height:40px;font-size:15px}.dpad{bottom:38px}.action{min-height:60px}.mini-map{max-width:52%}.mini-map button{min-height:44px}.dialogue-dock #speechNext{min-height:44px}.dialogue-dock>button.speech-close{min-width:40px;min-height:40px}.speech p{padding-right:25px}}
body{padding-bottom:env(safe-area-inset-bottom)}

.account-modal{max-width:620px}.account-modal label{display:flex;flex-direction:column;gap:7px;margin:12px 0;font-size:14px}.account-modal input:not([type=file]){width:100%;min-height:48px;border:2px solid #7c929a;border-radius:8px;padding:10px;font:inherit;font-size:16px;background:#fff}.account-modal .actions{display:flex;flex-wrap:wrap;gap:10px}.account-modal button,.account-modal .import-save{min-height:44px}.account-modal .account-small{font-size:12px;line-height:1.7}.account-modal .account-notice{padding:12px;background:#fff0bc;border:2px solid #e4c36a;border-radius:8px}.account-modal #accountStatus{color:#285a76;font-size:13px;min-height:22px}.account-modal .save-summary{background:#e8f2eb;padding:12px;border:1px solid #b2c8bd;border-radius:8px}.account-modal .import-save{display:flex;justify-content:center;cursor:pointer;border:2px solid var(--ink);border-radius:6px;padding:10px 14px;margin:0;background:#fff9e8;font-weight:700}.import-save input{max-width:210px;margin-top:5px;font-size:12px}.account-modal #closeAccount{margin-top:20px;width:100%}.account-modal hr{border:0;border-top:1px dashed #b4c3bc;margin:18px 0}.account-modal button:disabled{opacity:.45;cursor:default}
@media(max-width:700px){header{height:auto;min-height:72px;flex-wrap:wrap;gap:8px;padding-top:8px;padding-bottom:8px}.top-actions{flex-wrap:wrap}.top-actions button{min-height:40px;min-width:36px}.account-modal .actions>button{flex:1;min-width:120px}}
/* Share cards keep export controls next to a readable, long-pressable image. */
.share-modal{width:min(930px,94vw)}.share-layout{display:grid;grid-template-columns:minmax(0,1fr) minmax(220px,.7fr);gap:24px;align-items:start}.share-preview{background:#d9edf2;border:2px solid var(--ink);border-radius:14px;padding:10px;min-height:200px}.share-preview img{display:block;width:100%;height:auto;border-radius:9px;-webkit-touch-callout:default;user-select:auto}.share-preview img[hidden]{display:none}.share-controls{display:flex;flex-direction:column;gap:12px}.share-controls p{margin:0}.share-controls button,.share-save{min-height:46px;text-align:center}.share-save{display:flex;align-items:center;justify-content:center;text-decoration:none;cursor:pointer;border:2px solid var(--ink);border-radius:9px;font-weight:800;padding:10px}.share-save[aria-disabled=true]{opacity:.45;pointer-events:none}.share-controls input{width:100%;min-width:0;padding:10px;border:2px solid #869aa5;border-radius:8px;font-size:14px;background:#fffdf3;user-select:text}.share-help,#shareStatus{font-size:14px!important;line-height:1.5!important}#shareStatus{color:#33665d;min-height:24px}.share-controls label{font-size:14px;font-weight:800}@media(max-width:650px){.share-layout{grid-template-columns:1fr;gap:16px}.share-preview{max-width:360px;margin:auto}.share-controls{gap:10px}.share-modal h2{font-size:24px}#share{padding:6px 9px}}
.share-preview img{width:auto;max-width:100%;max-height:calc(90dvh - 160px);margin:auto;object-fit:contain}.share-save{color:var(--ink)}@media(max-width:650px){.share-preview img{width:100%;max-height:none}}

/* Keep the expanded world map inside the playfield as the region list grows. */
.mini-map{max-height:calc(100% - 76px);overflow-y:auto;overscroll-behavior:contain}
/* Prevent long-press selection throughout the game, including dialogue and HUD. */
body,body *{-webkit-user-select:none;user-select:none;-webkit-touch-callout:none}
body input,body textarea,body [contenteditable="true"]{-webkit-user-select:text;user-select:text;-webkit-touch-callout:default}
body .share-preview img{-webkit-touch-callout:default}
/* Page gestures do not zoom; scrolling and independent game pointers still work. */
html,body{touch-action:pan-x pan-y}
header .top-actions,#touchPause{display:none}
.display-actions{display:flex;gap:10px;margin-left:auto}
.display-actions button{min-height:44px;padding:8px 16px;border:2px solid var(--ink);border-radius:9px;background:#fff7cf;font:inherit;font-weight:800;touch-action:pan-x pan-y}
.game-menu-actions{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:20px 0}
.game-immersive{overflow:hidden;background:#203643}
.game-immersive header{height:56px;min-height:56px;padding:4px max(12px,env(safe-area-inset-right)) 4px max(12px,env(safe-area-inset-left))}
.game-immersive header .chapter,.game-immersive main>aside,.game-immersive body>footer,.game-immersive>footer,.game-immersive .world-footer{display:none}
.game-immersive main{display:flex;justify-content:center;align-items:center;padding:4px;margin:0;max-width:none;height:calc(100dvh - 56px - env(safe-area-inset-bottom))}
.game-immersive .world{order:0;min-width:0;width:min(100%,calc((100dvh - 180px)*1.3924));max-width:1100px;margin:0;align-self:center}
.game-immersive .canvas-wrap{aspect-ratio:1100/790}
.game-immersive .world-toolbar{height:40px;min-height:40px}
.game-immersive .action-bar{padding:6px;gap:8px}
.game-immersive .action{height:56px;min-height:56px;flex:1;min-width:0}
.game-immersive .action-hint,.game-immersive .action kbd{display:none}
.game-immersive .dialogue-dock{position:absolute;bottom:74px;left:0;right:0;z-index:6}
.share-controls input{font-size:16px}
/* Leave room for map controls when the world grows to eleven rows. */
#miniCanvas{max-height:min(32dvh,300px);object-fit:contain}

.world-footer .save-failed{color:#a12626;background:#fff1c1;padding:4px 8px;border-radius:4px}

.buddy-button{position:absolute;right:18px;bottom:58px;z-index:3;background:#d8c6ed;border:3px solid var(--ink);border-radius:10px;min-height:46px;padding:8px 14px;font:800 14px inherit;touch-action:none;box-shadow:3px 3px var(--ink)}
.buddy-skill-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:16px 0}.buddy-skill{display:grid;grid-template-columns:70px 1fr;text-align:left;align-items:center;gap:6px 10px;background:#fff5db;border:2px solid var(--ink);border-radius:12px;padding:12px}.buddy-skill .character-art{grid-row:span 2;width:70px;height:70px}.buddy-skill b{font-size:16px}.buddy-skill span{font-size:14px;line-height:1.5}.buddy-skill:disabled{opacity:.55}.buddy-modal{max-width:640px}
@media(max-width:600px){.buddy-button{right:10px;bottom:54px;padding:6px 10px;font-size:12px}.buddy-skill-grid{grid-template-columns:1fr}.buddy-skill{padding:8px}}
/* Readable comic scenes retain the same dialogue completion contract. */
.dialogue-dock.comic-dialogue{display:block;padding:16px;background:#fff6da;max-height:60dvh;overflow:auto}.comic-heading{display:flex;justify-content:space-between;margin-bottom:10px}.comic-strip{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.comic-panel{position:relative;border:3px solid #22384b;border-radius:7px;background:#fffdf2;overflow:hidden;min-width:0}.comic-panel.is-current{border-color:#be7c24;box-shadow:0 0 0 2px #f1cf68}.comic-number{position:absolute;top:5px;left:6px;z-index:1;background:#ffe384;border:2px solid #22384b;padding:1px 7px;border-radius:5px}.comic-stage{height:112px;background:linear-gradient(#cde8ee 70%,#e5d3a4 70%);display:flex;align-items:flex-end;justify-content:center;overflow:hidden}.comic-stage>svg{width:48%;height:105px;max-width:128px;animation:comic-breathe 2.6s ease-in-out infinite alternate}.comic-stage>svg:nth-child(2){animation-delay:-1.3s}.comic-panel p{margin:0;padding:12px;font-size:14px;line-height:1.65;color:#20364a}.comic-actions{display:flex;gap:8px;flex-wrap:wrap;margin-top:12px}.comic-actions button{min-height:44px;padding:8px 12px}.comic-dialogue #speechNext{margin:0}.comic-library{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin:16px 0}.comic-library button{text-align:left;padding:12px;min-height:70px}.comic-library span{display:block;font-size:12px;margin-top:6px}.comic-library-modal,.comic-memory-modal{width:min(1000px,94vw)}.comic-memory .comic-stage{height:160px}.comic-memory .comic-stage>svg{height:145px;max-width:160px}.comic-dialogue .comic-strip{grid-template-columns:repeat(auto-fit,minmax(180px,1fr))}@keyframes comic-breathe{from{transform:translateY(0) rotate(-1deg)}to{transform:translateY(-3px) rotate(1deg)}}@media(max-width:700px){.comic-dialogue .comic-strip{display:block}.comic-dialogue .comic-panel:not(.is-current){display:none}.comic-memory{grid-template-columns:1fr}.comic-library{grid-template-columns:1fr}.comic-panel p{font-size:14px}.comic-actions button{flex:1}.comic-memory .comic-stage{height:130px}.comic-memory .comic-stage>svg{height:120px}}@media(prefers-reduced-motion:reduce){.comic-stage>svg{animation:none}}
/* Device controls never alter the page zoom or adventure data. */
body[data-control-size] .dpad button{width:48px;height:48px;font-size:20px}body[data-control-size="large"] .dpad button{width:64px;height:64px;font-size:25px}body[data-control-size="large"] .action{min-height:72px}body[data-control-size="large"] .buddy-button{min-height:56px;font-size:16px}body[data-control-hand="left"] .dpad{left:auto;right:12px}body[data-control-hand="left"] .buddy-button{right:auto;left:12px}body[data-control-hand="left"] #healBtn{order:1}body[data-control-hand="left"] #barkBtn{order:2}body[data-control-hand="left"] #dodgeBtn{order:3}body[data-control-hand="left"] #attackBtn{order:4}body[data-control-hand="left"] .action-hint{order:5}
body[data-motion="reduced"] .character-art *,body[data-motion="reduced"] .comic-stage>svg{animation:none!important;transition:none!important}.tablet-preference-groups{display:grid;grid-template-columns:1fr 1fr;gap:14px;margin:18px 0}.tablet-preference-groups section{padding:12px;border:2px solid #b4c6c7;border-radius:10px}.tablet-preference-groups h3{font-size:16px;margin:0 0 10px}.tablet-preference-groups section>div{display:flex;gap:8px;flex-wrap:wrap}.tablet-preference-groups button{flex:1;min-height:50px;padding:10px;font:inherit;font-weight:700;appearance:none;-webkit-appearance:none;border:3px solid var(--ink);border-radius:12px;background:#fff9e7;box-shadow:2px 3px 0 var(--ink)}.tablet-preference-groups button:active{box-shadow:1px 1px 0 var(--ink);transform:translate(1px,2px)}.tablet-preference-groups button.selected{background:#ffe18b;border-color:var(--ink)}.tablet-layout-preview{display:flex;justify-content:space-between;align-items:center;padding:16px;border:3px solid #23384c;border-radius:9px;background:#c4dfb4;gap:20px;margin-bottom:20px}.tablet-layout-preview.is-left{flex-direction:row-reverse}.tablet-layout-preview>span{padding:10px;background:#fff4cd;border:2px solid #24384b;border-radius:8px;text-align:center}.tablet-settings-modal{max-width:820px}@media(max-width:600px){.tablet-preference-groups{grid-template-columns:1fr}.tablet-layout-preview{gap:8px;padding:10px}.tablet-layout-preview b{font-size:12px}body[data-control-size="large"] .dpad button{width:56px;height:56px}body[data-control-size="large"] .buddy-button{font-size:13px}}@media(max-height:600px){body[data-control-size="large"] .dpad button{width:48px;height:48px}.game-immersive .action{min-height:52px}}
body.game-immersive[data-control-size="large"] .world{width:min(100%,calc((100dvh - 204px - env(safe-area-inset-bottom))*1.3924))}
.guide-actions{display:flex;flex-wrap:wrap;gap:10px;margin-top:20px}.guide-actions button{min-height:48px;border-radius:12px}.guide-route{border:3px solid var(--ink);border-radius:12px;padding:16px;background:#e2efcd}.guide-route p{line-height:1.8;overflow-wrap:anywhere}.guide-detail{padding:14px;background:#fff0be;border-radius:10px}.task-guide-modal{max-width:760px}#miniGuide{width:100%;min-height:44px;border:2px solid var(--ink);border-radius:9px;background:#ffe8a6;font:inherit;font-weight:700;margin:8px 0}
.collections-modal{width:min(900px,94vw)}.collection-total{display:inline-block;border:3px solid var(--ink);border-radius:10px;background:#ffe38c;padding:12px 18px;font-size:20px;font-weight:800}.collection-perks{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:16px 0}.collection-perks button{border:3px solid var(--ink);border-radius:12px;background:#fff9e6;box-shadow:2px 3px var(--ink);padding:14px;text-align:left}.collection-perks button[aria-pressed="true"]{background:#d7eab8}.collection-perks button:disabled{opacity:.6}.collection-perks span,.collection-perks small{display:block;margin-top:10px;line-height:1.6}.postcard-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:18px 0}.postcard-tile{border:2px solid #a5b4b9;border-radius:10px;padding:14px;background:#f2f0e7;display:grid;gap:8px}.postcard-tile.found{border-color:var(--ink);background:#fff2bd;box-shadow:2px 3px #20364344}.postcard-tile strong{font-size:26px}.postcard-tile span{font-size:12px}@media(max-width:700px){.collection-perks{grid-template-columns:1fr}.postcard-grid{grid-template-columns:1fr 1fr}}
/* Comic menu cards match the game controls and paper panels. */
.game-menu-actions{gap:14px;padding-right:4px}.game-menu-actions .secondary{appearance:none;-webkit-appearance:none;border:3px solid var(--ink);border-radius:14px;min-height:58px;padding:13px 16px;background:#e0eff3;color:var(--ink);font-weight:800;box-shadow:3px 4px 0 var(--ink)}.game-menu-actions .secondary:nth-child(4n+2){background:#e6dbf2}.game-menu-actions .secondary:nth-child(4n+3){background:#e1edc5}.game-menu-actions .secondary:nth-child(4n){background:#fff0bb}.game-menu-actions .secondary:active{transform:translate(2px,2px);box-shadow:1px 2px 0 var(--ink)}.game-menu-actions .secondary:focus-visible{outline:3px solid #df8739;outline-offset:4px}@media(hover:hover){.game-menu-actions .secondary:hover{filter:brightness(1.035)}}@media(max-width:480px){.game-menu-actions{gap:12px}.game-menu-actions .secondary{padding:10px 8px;font-size:13px;min-height:54px}}
.game-menu-actions .secondary:last-child:nth-child(odd){grid-column:1/-1}

/* Keep the adventure return action consistent with its comic menu cards. */
#resumeAdventure{border-radius:14px;min-height:54px;border:3px solid var(--ink);box-shadow:3px 4px 0 var(--ink);font-weight:800}
#resumeAdventure:active{transform:translate(2px,2px);box-shadow:1px 2px 0 var(--ink)}

#replayReturn{border:2px solid var(--ink);border-radius:10px;background:#ffe36a;padding:8px 10px;font-weight:800;box-shadow:2px 2px 0 var(--ink)}

.display-actions{position:relative;z-index:4}.modal-backdrop{z-index:100;padding-top:24px;pointer-events:auto;overscroll-behavior:contain}.modal{max-height:calc(100dvh - 48px)}
body.modal-open{overflow:hidden}body.modal-open > [inert]{pointer-events:none;user-select:none}
.menu-difficulty h3{margin:12px 0}.menu-difficulty .choices{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin:0 0 18px}.menu-difficulty .choice{min-height:48px;padding:10px 8px;border:3px solid var(--ink);border-radius:12px;background:#e0eff3;font-weight:800;box-shadow:2px 3px 0 var(--ink);text-align:center}.menu-difficulty .choice.selected{background:#ffe36a}.menu-difficulty .choice:active{transform:translate(1px,2px);box-shadow:1px 1px 0 var(--ink)}

.display-actions #sound{width:44px;min-width:44px;padding:8px;display:grid;place-items:center}.display-actions #sound[aria-pressed="true"]{background:#ffe36a}

.display-actions #gameFullscreen,.display-actions #gameBack{width:44px;min-width:44px;padding:8px;display:grid;place-items:center}.display-actions #gameFullscreen[aria-pressed="true"]{background:#ffe36a}

/* Shared comic button treatment for every menu, submenu and confirmation. */
#modal .modal :is(button,.import-save){
 appearance:none;-webkit-appearance:none;
 min-height:48px;max-width:100%;padding:12px 16px;
 border:3px solid var(--ink);border-radius:14px;
 background:#e0eff3;color:var(--ink);box-shadow:3px 4px 0 var(--ink);
 font:inherit;font-weight:800;line-height:1.5;white-space:normal;overflow-wrap:anywhere;
 cursor:pointer;touch-action:manipulation;
 transition:transform .12s,box-shadow .12s,filter .12s;
}
#modal .modal button.primary{background:var(--yellow)}
#modal .game-menu-actions button:nth-child(4n+2){background:#e6dbf2}
#modal .game-menu-actions button:nth-child(4n+3){background:#e1edc5}
#modal .game-menu-actions button:nth-child(4n){background:#fff0bb}
#modal .modal button:is(.selected,[aria-pressed="true"]){background:var(--yellow);box-shadow:inset 0 0 0 2px #fff6cf,3px 4px 0 var(--ink)}
#modal .modal :is(button,.import-save):is(:focus-visible,:focus-within){outline:3px solid #df8739;outline-offset:4px}
#modal .modal :is(button,.import-save):active{transform:translate(2px,2px);box-shadow:1px 2px 0 var(--ink)}
#modal .modal button:disabled{background:#e1e4df;color:#53616c;opacity:.65;box-shadow:1px 2px 0 #82918f;cursor:not-allowed;transform:none;filter:none}
#modal .modal :is(.actions,.guide-actions,.game-menu-actions,.comic-library,.collection-perks){gap:14px}
#modal .modal .choices{gap:14px}
#modal .modal .import-save{display:inline-flex;align-items:center;justify-content:center}
@media(hover:hover){#modal .modal :is(button:not(:disabled),.import-save):hover{filter:brightness(1.035);transform:translateY(-1px)}#modal .modal :is(button:not(:disabled),.import-save):active{transform:translate(2px,2px)}}
@media(max-width:480px){#modal .modal :is(button,.import-save){padding:10px 12px}.menu-difficulty .choices{grid-template-columns:1fr}}
@media(prefers-reduced-motion:reduce){#modal .modal :is(button,.import-save){transition:none}}

.display-actions #saveGame{width:44px;min-width:44px;padding:8px;display:grid;place-items:center;background:#e1edc5}

/* Player card and compact adventure progress in the account menu. */
.account-player{display:flex;align-items:center;gap:14px;padding:18px;border:3px solid var(--ink);border-radius:18px;background:#e0eff3;box-shadow:3px 4px var(--ink);margin:20px 0 24px}
.account-player-avatar{display:grid;place-items:center;flex:none;width:62px;height:62px;border:3px solid var(--ink);border-radius:18px;background:#ffe36a;font-size:34px;transform:rotate(-5deg)}
.account-player-name{display:flex;flex-direction:column;gap:5px;min-width:0;flex:1}.account-player-label{font-size:11px;font-weight:800;letter-spacing:1px;color:#536c79}.account-player-name strong{font-size:23px;line-height:1.25;overflow-wrap:anywhere}.account-online{display:flex;align-items:center;gap:6px;font-size:12px;color:#35614c;font-weight:700}.account-online i{width:8px;height:8px;border-radius:50%;background:#4f9c63}
#modal .account-player #signOut{min-height:44px;padding:8px 12px;background:#fff9e7;font-size:12px;flex:none}
.account-progress{border:3px solid var(--ink);border-radius:18px;background:#fff3c6;padding:20px;box-shadow:3px 4px var(--ink);margin-top:22px}.account-progress-heading{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap}.account-progress-heading h3{margin:0;font-size:16px}.account-progress-heading>span{padding:5px 9px;background:#e6dbf2;border:2px solid var(--ink);border-radius:9px;font-size:12px;font-weight:800}.account-progress h4{font-size:22px;line-height:1.5;margin:18px 0 12px}.account-modal .account-progress-place{display:flex;align-items:center;gap:10px;flex-wrap:wrap;font-size:13px;margin:0 0 20px;color:#526977}.account-progress-place b{background:#fffdf6;border:2px solid var(--ink);border-radius:7px;padding:3px 7px;color:var(--ink)}.account-progress-caption{display:flex;justify-content:space-between;font-size:12px;font-weight:700;margin-bottom:8px}.account-progress-caption strong{font-size:15px}.account-progress-track{height:16px;border:2px solid var(--ink);border-radius:9px;background:#fffdf6;overflow:hidden}.account-progress-track i{display:block;height:100%;background:#75bc98;border-right:2px solid var(--ink);border-radius:5px}
.account-modal #accountStatus{margin:16px 0 0;min-height:0}.account-modal #accountStatus:empty{display:none}
@media(max-width:480px){.account-player{gap:10px;padding:14px;flex-wrap:wrap}.account-player-avatar{width:48px;height:48px;font-size:26px}.account-player-name strong{font-size:20px}.account-progress{padding:16px}.account-progress h4{font-size:19px}}

/* Dialogue navigation shares the comic menu buttons, outside the modal. */
.dialogue-dock .comic-actions{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;align-items:stretch;margin-top:16px;padding:0 4px 5px 0}
.dialogue-dock .comic-actions button{appearance:none;-webkit-appearance:none;min-width:0;min-height:52px;margin:0;padding:12px 14px;border:3px solid var(--ink);border-radius:14px;background:#e0eff3;color:var(--ink);box-shadow:3px 4px 0 var(--ink);font:inherit;font-size:14px;font-weight:800;line-height:1.5;text-align:center;white-space:normal;overflow-wrap:anywhere;touch-action:manipulation;transition:transform .12s,box-shadow .12s,filter .12s}
.dialogue-dock .comic-actions #speechNext{align-self:stretch;min-width:0;margin:0;background:var(--yellow);font-size:14px}
.dialogue-dock .comic-actions #comicSkip{background:#e6dbf2}
.dialogue-dock .comic-actions #speechClose{background:#fff9e7}
.dialogue-dock .comic-actions button:focus-visible{outline:3px solid #df8739;outline-offset:4px}
.dialogue-dock .comic-actions button:active{transform:translate(2px,2px);box-shadow:1px 2px 0 var(--ink)}
.dialogue-dock .comic-actions button:disabled{background:#e1e4df;color:#53616c;opacity:.65;box-shadow:1px 2px 0 #82918f;transform:none;filter:none;cursor:not-allowed}
@media(hover:hover){.dialogue-dock .comic-actions button:not(:disabled):hover{filter:brightness(1.035)}}
@media(max-width:700px){.dialogue-dock .comic-actions{grid-template-columns:repeat(2,minmax(0,1fr))}.dialogue-dock .comic-actions button{padding:10px 12px}}
@media(prefers-reduced-motion:reduce){.dialogue-dock .comic-actions button{transition:none}}
/* World topology: an isolated, pannable map, never a live scene thumbnail. */
#modal .world-map-modal{width:min(1240px,96vw);max-width:none;padding:22px}.world-map-heading{display:flex;align-items:center;justify-content:space-between;gap:12px}.world-map-heading h2{margin:4px 0 12px}.world-map-legend{font-size:12px;color:#536873;margin-bottom:12px}#worldMapViewport{height:54dvh;min-height:280px;overflow:hidden;touch-action:none;border:3px solid var(--ink);border-radius:16px;background:#f4edd7;cursor:grab}#worldMapSvg{display:block;width:100%;height:100%;user-select:none;touch-action:none}#worldMapViewport:active{cursor:grabbing}.world-link{fill:none;stroke-width:5;stroke-linejoin:round;stroke:#a6ada4}.world-link.locked{stroke-dasharray:9 7}.world-link.open{stroke:#769789}.world-link.route{stroke:#d98e20;stroke-width:9}.world-node{cursor:pointer}.world-node rect{fill:#e4eff1;stroke:#20354b;stroke-width:3}.world-node.locked rect{fill:#deded5;stroke:#939b96;stroke-dasharray:5 4}.world-node.here rect{fill:#ffe36a;stroke:#166d96;stroke-width:6}.world-node.selected rect{stroke:#166d96;stroke-width:5}.world-node:focus-visible{outline:none}.world-node:focus-visible rect{stroke:#d98e20;stroke-width:7}.world-name{font:700 17px sans-serif;fill:#20354b}.world-badge{font:700 11px sans-serif;fill:#4b626b}.world-symbol{font:800 24px sans-serif;fill:#276d87}.world-you{fill:#166d96}.world-map-controls{display:flex;align-items:center;flex-wrap:wrap;gap:10px;margin:14px 0}.world-map-controls output{min-width:46px;text-align:center;font-weight:800}#modal .world-map-controls button{padding:8px 12px;font-size:13px}.world-map-detail{display:grid;gap:7px;padding:14px;border:2px solid var(--ink);border-radius:12px;background:#e0eff3;font-size:12px;line-height:1.6}.world-map-detail strong{font-size:15px}.world-next{color:#72501e;font-weight:700}@media(max-width:700px){#modal .world-map-modal{padding:14px}#worldMapViewport{height:48dvh;min-height:240px}.world-map-heading h2{font-size:24px}.world-map-controls{gap:8px}.world-map-detail{font-size:11px}}@media(max-height:600px){#worldMapViewport{height:48dvh;min-height:200px}}
#modal .world-map-controls #miniOverview,#modal .world-map-controls #miniGuide{width:auto;margin:0;flex:none}
#modal .world-map-controls{gap:10px}#modal .world-map-controls #miniGuide{margin-left:auto}
#modal .world-map-heading #miniClose{min-width:48px;padding:8px}
@media(min-width:701px) and (min-height:601px){#worldMapViewport{height:44dvh}}

/* Compact comic atlas with quiet labels and colourful scene stickers. */
#modal .world-map-modal{width:min(1000px,94vw);padding:20px;border-radius:24px;background-color:#fffbed;box-shadow:8px 9px 0 #172e49}.world-map-heading>div{display:flex;align-items:center;gap:12px}.world-map-heading h2{font-size:26px;margin:0}.world-map-heading{margin-bottom:16px}.world-map-sticker{display:grid;place-items:center;width:42px;height:42px;background:#ffe36a;border:3px solid var(--ink);border-radius:13px;font-size:26px;transform:rotate(-9deg);box-shadow:2px 3px var(--ink)}
#worldMapViewport{height:clamp(240px,40dvh,350px);min-height:0;border-radius:20px;background-color:#edf3d8;background-image:radial-gradient(#c8d9b5 1px,transparent 1px);background-size:16px 16px;box-shadow:inset 0 -5px #d6e6c1}.world-link{stroke-linecap:round;stroke-linejoin:round;stroke-width:7}.world-link.open{stroke:#82a88c}.world-link.route{stroke:#e6a42a;stroke-width:10}.world-node rect{stroke-width:4;filter:drop-shadow(3px 5px 0 #20354b44);fill:#d9ebf4}.world-node.available:nth-of-type(4n+1) rect{fill:#eadcf3}.world-node.available:nth-of-type(4n+2) rect{fill:#ffdfc2}.world-node.available:nth-of-type(4n+3) rect{fill:#d5eac7}.world-node.here rect,.world-node.here:nth-of-type(n) rect{fill:#ffe36a;stroke:#1c7190;stroke-width:6}.world-node.locked rect{fill:#e4e5d9;filter:none}.world-node.locked .world-name{fill:#7a857c}.world-name{font-size:19px}.world-symbol{font-size:19px}.world-map-detail{display:flex;align-items:center;flex-wrap:wrap;gap:10px 16px;padding:12px 14px;border-radius:17px;background:#fff4ce;border:2px solid var(--ink);box-shadow:2px 3px #20354b33}.world-place-card{display:flex;align-items:center;gap:9px}.world-place-icon{display:grid;place-items:center;width:30px;height:30px;border:2px solid var(--ink);border-radius:10px;background:#cbe8ee;color:#1c7190}.world-place-card strong{font-size:14px}.world-exit-chips{display:flex;align-items:center;flex-wrap:wrap;gap:6px;flex:1}.world-exit-chip{padding:4px 9px;border:1.5px solid #81978f;border-radius:9px;background:#fffdf4;font-size:11px;font-weight:700}.world-exit-chip.is-locked{color:#788478;border-style:dashed}.world-next{font-size:12px;background:#ffe297;border-radius:9px;padding:5px 9px}.world-map-controls{margin:12px 0}#modal .world-map-controls button{font-size:12px;padding:8px 10px;min-height:44px}
@media(max-width:600px){#modal .world-map-modal{padding:14px}.world-map-heading h2{font-size:22px}.world-map-sticker{width:34px;height:34px;font-size:21px}#worldMapViewport{height:36dvh;min-height:220px}.world-map-detail{gap:8px}.world-exit-chips{flex-basis:100%}}

/* A rounded island atlas and winding roads instead of an organisation chart. */
#worldMapViewport{background-color:#dceff0;background-image:radial-gradient(#b9dce2 1px,transparent 1px);box-shadow:inset 0 -5px #c5e1e5}.world-landscape{pointer-events:none}.world-landscape>ellipse{fill:#e4edc9;stroke:#bed3a6;stroke-width:12;stroke-dasharray:2 16}.world-landscape .world-inland{fill:#edf2d8;stroke:#d4e1b7;stroke-width:5;stroke-dasharray:12 18}.world-compass{stroke:#789eaa;stroke-width:7;fill:#789eaa;stroke-linejoin:round}.world-link.open{stroke:#95ad7b;stroke-width:8}.world-link.route{stroke:#dca13c;stroke-width:11}.world-link.locked{stroke:#b9c2ae;stroke-dasharray:8 12;stroke-width:5}.world-node.locked rect{fill:#e1e3d9;stroke:#97a395;stroke-dasharray:6 5;filter:none}

.world-map-heading-actions{display:flex;align-items:center;justify-content:flex-end;gap:10px;flex-wrap:wrap}#modal .world-map-heading-actions button{min-height:44px;padding:8px 12px;font-size:12px}#modal .world-map-heading-actions #miniGuide{width:auto;margin:0}#modal .world-map-heading-actions #miniClose{min-width:44px}.world-map-heading>div:first-child{flex-shrink:0}@media(max-width:600px){.world-map-heading{flex-wrap:wrap}.world-map-heading-actions{margin-left:auto;gap:8px}#modal .world-map-heading-actions button{padding:8px;font-size:11px}}

.world-place-icon{width:42px;height:42px;flex:none;border-radius:14px;background:#cce8ef;box-shadow:2px 2px #20354b33}.world-place-svg{display:block;width:30px;height:30px}.world-place-card{gap:11px}.world-place-card strong{font-size:15px}

.world-map-bottom{display:flex;align-items:center;gap:14px;margin-top:14px}.world-map-bottom .world-map-controls{flex:none;margin:0;flex-wrap:nowrap}.world-map-bottom .world-map-detail{flex:1;min-width:0;min-height:52px;justify-content:space-between;padding:8px 12px;gap:8px}.world-map-bottom .world-place-card{min-width:0}.world-map-bottom .world-place-card strong{font-size:13px;overflow-wrap:anywhere}.world-map-bottom .world-place-icon{width:34px;height:34px;border-radius:11px}.world-map-bottom .world-place-svg{width:25px;height:25px}.world-map-bottom .world-next{font-size:11px}@media(max-width:700px){.world-map-bottom{gap:8px}.world-map-bottom .world-map-controls{gap:5px}.world-map-bottom .world-map-controls output{min-width:34px;font-size:11px}#modal .world-map-bottom .world-map-controls button{padding:7px;min-width:40px;font-size:11px}.world-map-bottom .world-map-detail{padding:6px 8px}.world-map-bottom .world-next{display:none}.world-map-bottom .world-place-card{gap:7px}}@media(max-width:480px){.world-map-bottom .world-place-icon{display:none}.world-map-bottom .world-place-card strong{font-size:11px}}

#modal .task-guide-modal{width:min(680px,94vw);max-width:680px;border-radius:24px;padding:24px}.guide-heading{display:flex;align-items:center;gap:12px;margin-bottom:20px}.guide-heading>span{display:grid;place-items:center;width:42px;height:42px;background:#ffe36a;border:3px solid var(--ink);border-radius:13px;transform:rotate(-7deg);font-size:26px;box-shadow:2px 3px var(--ink)}.guide-heading h2{font-size:25px;margin:0}.guide-mission{padding:18px;border:3px solid var(--ink);border-radius:18px;background:#fff0bf;box-shadow:3px 4px #20354b33}.guide-destination{display:inline-block;background:#fffdf3;border:2px solid #b8a76f;border-radius:9px;padding:4px 9px;font-size:12px;font-weight:700}.guide-mission h3{font-size:21px;line-height:1.4;margin:14px 0 0}.task-guide-modal .guide-detail{padding:0;margin:12px 0 0;background:none;font-size:14px;line-height:1.7;color:#465f6a}.task-guide-modal .guide-route{margin-top:16px;background:#e2efd5;border-radius:18px;padding:16px;border:2px solid var(--ink)}.guide-route-heading{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap;font-size:13px}.guide-route-heading>span{font-size:11px;padding:4px 8px;border-radius:8px;background:#fff9dc;color:#556944}.guide-stops{display:flex;align-items:center;flex-wrap:wrap;gap:10px;list-style:none;margin:16px 0;padding:0;max-height:150px;overflow:auto}.guide-stops li{display:flex;align-items:center;gap:6px;background:#fffef5;border:2px solid #8caa88;border-radius:11px;padding:7px 9px;font-size:12px;font-weight:700}.guide-stops li>span{display:grid;place-items:center;background:#d7e8ed;border-radius:50%;width:20px;height:20px;font-size:10px}.guide-stops li:last-child{background:#fff0b2;border-color:#bba453}.task-guide-modal .guide-route-note{font-size:11px;margin:0;color:#5e735c}.task-guide-modal .guide-actions{margin-top:20px;align-items:stretch}#modal .task-guide-modal .guide-actions button{font-size:13px;padding:10px 14px}.guide-toggle{display:flex;align-items:center;justify-content:center;gap:10px;flex:1}.guide-switch{display:block;position:relative;width:32px;height:19px;border:2px solid var(--ink);border-radius:12px;background:#fffdf0;flex:none}.guide-switch i{position:absolute;left:2px;top:2px;width:11px;height:11px;border-radius:50%;background:var(--ink)}[aria-pressed="true"]>.guide-switch{background:#9bcab0}[aria-pressed="true"]>.guide-switch i{left:15px}@media(max-width:480px){#modal .task-guide-modal{padding:18px}.guide-heading h2{font-size:21px}.guide-mission{padding:14px}.guide-mission h3{font-size:18px}.guide-route-heading{align-items:flex-start}.guide-toggle{flex-basis:100%}}

.world-map-bottom .world-next{display:block;margin-left:auto;max-width:55%;overflow-wrap:anywhere;line-height:1.4}.world-map-bottom .world-map-detail{flex-wrap:nowrap}.world-map-bottom .world-place-card{flex:1}@media(max-width:700px){.world-map-bottom .world-next{display:block;font-size:10px;padding:5px 7px;max-width:52%}.world-map-bottom .world-place-card strong{font-size:11px}.world-map-bottom .world-place-icon{display:none}}

#modal .world-map-modal{width:min(840px,94vw)}

/* Compact illustrated routes and heading controls. */
.task-guide-modal .guide-heading{gap:10px;flex-wrap:nowrap}.guide-heading h2{flex:1;min-width:0;font-size:22px}.task-guide-modal .guide-heading .guide-actions{margin:0;flex:none;align-items:center;flex-wrap:nowrap;gap:10px}#modal .task-guide-modal .guide-heading button{font-size:12px;padding:8px 10px;min-height:42px}.task-guide-modal .guide-toggle{flex:0 0 auto;white-space:nowrap;gap:7px}#modal .task-guide-modal .guide-close{display:grid;place-items:center;width:42px;padding:0;flex:none}.guide-destination{display:inline-flex;align-items:center;gap:6px}.guide-destination .world-place-svg{width:22px;height:22px}.guide-stops{gap:12px 22px;margin:16px 0 0;padding:3px 4px 6px;max-height:210px}.guide-stops li{position:relative;padding:8px 10px;gap:8px;max-width:100%;border-radius:14px;box-shadow:2px 3px #20354b20}.guide-stops li+li:before{content:'›';position:absolute;left:-17px;color:#658872;font-size:24px}.guide-stops li>.guide-stop-icon{width:32px;height:32px;flex:none;border-radius:10px;background:#d3eaf0;color:#26728c}.guide-stop-icon .world-place-svg{width:25px;height:25px}.guide-stops li b{overflow-wrap:anywhere}.guide-stops li.is-current{border-color:#45879b;background:#edf8fa}.guide-stops li.is-next{border-color:#b59c42;background:#fff4c5}.guide-stops li:last-child{border-color:#bc9441;background:#ffe8a3}.world-map-bottom .world-place-icon{display:grid!important}.world-map-bottom .world-place-card{flex:1;min-width:0}
@media(max-width:700px){.world-map-bottom{flex-wrap:wrap}.world-map-bottom .world-map-detail{flex-basis:100%}.world-map-bottom .world-place-card strong{font-size:13px}}
@media(max-width:480px){.task-guide-modal .guide-heading>span{display:none}.task-guide-modal .guide-heading h2{font-size:17px}.task-guide-modal .guide-heading .guide-actions{gap:7px}#modal .task-guide-modal .guide-heading button{font-size:11px;padding:7px}.task-guide-modal .guide-toggle{flex-basis:auto}.task-guide-modal .guide-switch{width:28px}.task-guide-modal [aria-pressed="true"]>.guide-switch i{left:11px}}
/* Keep map controls square and prevent flex sizing from distorting them. */
#modal .world-map-bottom .world-map-controls button{box-sizing:border-box;flex:0 0 auto;height:44px;min-height:44px;max-height:44px;line-height:1;padding:0 12px;border-radius:14px;display:inline-flex;align-items:center;justify-content:center;white-space:nowrap}#modal .world-map-bottom .world-map-controls :is(#miniMinus,#miniPlus){width:44px;min-width:44px;max-width:44px;padding:0;font-size:20px}.world-map-bottom .world-map-controls{align-items:center;flex-shrink:0}.world-map-bottom .world-map-controls output{flex:none}

/* Keep the next stop directly beside the player's location. */
.task-guide-modal .guide-route{container-type:inline-size}.guide-route-heading{justify-content:flex-start;gap:10px}.guide-route-title{white-space:nowrap}.guide-position{display:flex;align-items:center;gap:8px;flex-wrap:wrap;min-width:0}.guide-current-position{display:inline-flex;align-items:center;gap:6px;padding:5px 9px;border:2px solid #26728c;border-radius:11px;background:#d4edf3;color:#20354b;font-size:12px;font-weight:800}.guide-current-position .world-place-svg{width:23px;height:23px;flex:none;color:#26728c}.guide-next-position{font-size:11px;font-weight:700;padding:6px 9px;border-radius:10px;background:#ffe8a3;color:#72501e}.guide-stops li.is-current{border:3px solid #26728c;background:#d4edf3;box-shadow:2px 3px #26728c44}.guide-you-label{display:block;font-size:9px;line-height:1.4;color:#26728c;margin-bottom:2px}.guide-stops li.is-current:last-child{border-color:#26728c;background:#d4edf3}@container(max-width:550px){.guide-route-title{display:none}}



/* Animate only the step from the player to the next scene. */
.guide-stops li.is-next:before{color:#bb7d12;font-weight:900;animation:guide-next-arrow 1.3s ease-in-out infinite}
@keyframes guide-next-arrow{0%,100%{transform:translateX(-2px);opacity:.5}55%{transform:translateX(3px);opacity:1}}
@media(prefers-reduced-motion:reduce){.guide-stops li.is-next:before{animation:none;opacity:1}}
body[data-motion="reduced"] .guide-stops li.is-next:before{animation:none;opacity:1}

/* Routes follow a continuous snake, including the turn between rows. */
.guide-stops{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:30px 24px;align-items:stretch;max-height:none;overflow:visible;padding:3px 4px 6px}.guide-stops li{min-width:0;min-height:54px;box-sizing:border-box}.guide-stops li+li:before{position:absolute;display:block;left:auto;right:auto;top:auto;bottom:auto;font-size:22px;line-height:24px;text-align:center;width:24px;height:24px;animation:none}.guide-stops li[data-direction="right"]:before{content:'→';left:-26px;top:calc(50% - 12px)}.guide-stops li[data-direction="left"]:before{content:'←';right:-26px;top:calc(50% - 12px)}.guide-stops li[data-direction="down"]:before{content:'↓';left:calc(50% - 12px);top:-30px}.guide-stops li.is-next[data-direction="right"]:before{animation:guide-next-arrow 1.3s ease-in-out infinite}.guide-stops li.is-next[data-direction="down"]:before{animation:guide-next-down 1.3s ease-in-out infinite}@keyframes guide-next-down{0%,100%{transform:translateY(-2px);opacity:.5}55%{transform:translateY(3px);opacity:1}}body[data-motion="reduced"] .guide-stops li.is-next:before{animation:none}@media(prefers-reduced-motion:reduce){.guide-stops li.is-next:before{animation:none!important}}

/* Allow scrolling, but never browser double-tap or pinch zoom. */
html,body{touch-action:pan-x pan-y}
