
@font-face{font-family:GameUI;src:url(assets/font0.ttf) format('truetype');font-display:swap}
@font-face{font-family:GamePixel;src:url(assets/font1.ttf) format('truetype');font-display:swap}
:root{color-scheme:dark;--navy:#122b45;--cream:#fff3ce;--gold:#ffd47c;--muted:#a7bbcd}
*{box-sizing:border-box}body{margin:0;background:#091723;color:var(--cream);font-family:system-ui,sans-serif;overflow:hidden}button{font:inherit;cursor:pointer;color:inherit;border:0}button:focus-visible{outline:3px solid #fff;outline-offset:4px}button:disabled{cursor:default;opacity:.5}#shell{height:100dvh;display:flex;align-items:center;justify-content:center;background:radial-gradient(ellipse at 50% 70%,#244553,transparent 70%)}#game{position:relative;width:min(100vw,177.7778dvh);aspect-ratio:16/9;background:#80bde1;overflow:hidden;box-shadow:0 12px 100px #0008;isolation:isolate}#world{width:100%;height:100%;display:block;image-rendering:pixelated;touch-action:none}.overlay{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;padding:4%;z-index:3;background:#10273bdc;backdrop-filter:blur(2px)}.overlay:empty{display:none}.title-screen{position:absolute;inset:0;padding:6%;display:flex;flex-direction:column;justify-content:center;align-items:flex-start;background:linear-gradient(90deg,#10263bf5 0%,#10263be6 28%,#10263ba8 53%,transparent 86%)}.eyebrow{font-family:GameUI,monospace;text-transform:uppercase;letter-spacing:.18em;font-size:clamp(8px,1vw,13px);color:#abc8d9;line-height:1.7}.brandmark{display:inline-grid;place-items:center;background:#ffdb85;color:#19324a;width:25px;height:25px;margin-right:10px;font-size:18px;vertical-align:middle}.title-screen h1{font-family:GameUI,monospace;font-size:clamp(25px,4.6vw,63px);line-height:1.07;letter-spacing:-.07em;text-transform:uppercase;margin:22px 0 12px;text-shadow:3px 4px #0a1b2d}.title-screen h1 span{color:var(--gold)}.title-screen p{max-width:340px;font-size:clamp(10px,1.15vw,16px);line-height:1.6;color:#d3e2e9;margin:0 0 22px}.primary,.secondary{padding:12px 22px;border-radius:4px;font-size:clamp(10px,1.1vw,15px);font-weight:750;transition:transform .15s,background .15s}.primary{background:var(--gold);color:#20334a;box-shadow:0 4px #b78349}.primary:hover{background:#ffe6a8;transform:translateY(-2px)}.secondary{background:#29465c;box-shadow:inset 0 0 0 1px #a7c6d12a}.secondary:hover{background:#3a5b70}.actions{display:flex;gap:10px;flex-wrap:wrap}.title-meta{position:absolute;bottom:6%;left:6%;font:clamp(7px,.8vw,11px) GameUI,monospace;letter-spacing:.08em;color:#b9d2df}.title-tag{position:absolute;right:5%;bottom:10%;text-align:right;font-family:GameUI,monospace;font-size:clamp(9px,1.15vw,16px);line-height:1.7;text-shadow:2px 2px #173449}.title-tag strong{color:#ffe7ad}.panel{width:min(900px,100%);max-height:100%;overflow:auto}.panel h2{font-size:clamp(20px,2.8vw,36px);letter-spacing:-.035em;margin:4px 0 8px}.sub{font-size:clamp(10px,1.1vw,15px);color:#b9cdd7;margin:0 0 20px;line-height:1.5}.topline{display:flex;align-items:center;justify-content:space-between;gap:10px}.link{background:transparent;color:#adc8d5;padding:8px;font-size:clamp(10px,1vw,13px)}.select-layout{display:grid;grid-template-columns:1fr 30%;gap:24px;align-items:stretch}.cards{display:grid;grid-template-columns:repeat(3,1fr);gap:10px}.saint{position:relative;background:#1b354c;border:1px solid #50667570;border-radius:5px;text-align:left;padding:10px 10px 12px;transition:background .2s,transform .15s}.saint:hover{background:#29465a;transform:translateY(-2px)}.saint.selected{border:2px solid var(--gold);padding:9px 9px 11px;background:#344956}.saint.selected:after{content:'✓';position:absolute;right:8px;top:6px;color:#ffda82}.saint canvas{display:block;image-rendering:pixelated;width:64px;max-width:60%;height:auto;margin:0 auto 6px}.saint b{display:block;text-align:center;font:clamp(8px,.95vw,13px) GameUI,monospace;color:#f7eacf}.detail{border-radius:5px;background:#e5f0da0c;border:1px solid #adcbcd2b;padding:18px;display:flex;flex-direction:column;justify-content:center}.detail .badge{font:clamp(8px,.8vw,11px) GameUI,monospace;color:var(--gold);margin-bottom:8px}.detail h3{font-size:clamp(15px,1.5vw,22px);margin:0 0 8px;line-height:1.2}.detail p{font-size:clamp(10px,1vw,14px);line-height:1.6;color:#c8d9e0}.detail .power{font-size:clamp(9px,.9vw,12px);color:#f7ddaa;border-top:1px solid #9ec4ca22;padding-top:12px}.panel-bottom{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:18px}.hint{font-size:clamp(8px,.85vw,12px);color:#8daebf;line-height:1.6}.route{position:relative;display:grid;grid-template-columns:repeat(5,1fr);gap:10px;margin:30px 0}.route:before{content:'';position:absolute;height:3px;background:#677b80;left:8%;right:8%;top:28px;z-index:-1}.stage{background:transparent;padding:0;text-align:center}.stage .node{width:58px;height:58px;border-radius:50%;margin:auto auto 12px;background:#29495c;border:3px solid #698194;display:grid;place-items:center;font:20px GameUI,monospace;box-shadow:0 5px #0b2032}.stage.done .node{border-color:#b5d9a0;color:#b5d9a0}.stage.active .node{background:#ffda82;border-color:#fff0c2;color:#253c4c;box-shadow:0 5px #bb8e50}.stage b{font-size:clamp(9px,1vw,14px);display:block;line-height:1.4}.stage small{font-size:10px;color:#a8c2cf;display:block;margin-top:7px;letter-spacing:1px}.storybox{width:min(600px,85%);background:#153147;border:1px solid #6b8b98;border-radius:5px;box-shadow:0 12px 50px #0004;padding:26px}.storybox h2{font:clamp(18px,2vw,27px) GameUI,monospace;line-height:1.25;color:#ffdd91;margin:10px 0 15px}.storybox p{font-size:clamp(12px,1.35vw,18px);line-height:1.8;color:#e1e9e8;min-height:5.4em;margin:10px 0 22px}.storybox .page{font:11px GameUI,monospace;color:#87b2bf}.result{text-align:center}.result .big{font:clamp(26px,4vw,54px) GameUI,monospace;color:#ffe5a3;line-height:1.2;margin:18px 0}.stats{display:flex;gap:30px;justify-content:center;margin:25px 0}.stat b{display:block;font:clamp(20px,2.5vw,32px) GameUI,monospace;color:#ffe2a2}.stat span{font-size:clamp(9px,1vw,13px);color:#a6c2d0;display:block;margin-top:7px}.center{justify-content:center}.settings{width:min(460px,90%);padding:25px;background:#153147;border:1px solid #537383;border-radius:5px}.settings h2{margin:0 0 15px}.setting{width:100%;display:flex;justify-content:space-between;padding:15px 4px;background:transparent;border-bottom:1px solid #a1bec02a;font-size:14px}.setting b{color:#ffe1a1}.settings p{font-size:12px;color:#9dbdca;line-height:1.6}.pause-actions{display:flex;flex-direction:column;gap:10px;margin-top:18px}#pause{position:absolute;right:2%;top:3%;width:34px;height:32px;border-radius:4px;background:#102c45d9;border:1px solid #809eab6b;z-index:2;font-size:16px;display:none}#touch{position:absolute;inset:auto 0 0;height:26%;pointer-events:none;z-index:2;display:none;padding:0 3% 2%;justify-content:space-between;align-items:flex-end}#touch .group{display:flex;gap:10px;align-items:flex-end}#touch button{pointer-events:auto;touch-action:none;width:55px;height:52px;border-radius:12px;background:#102d4b8c;border:1px solid #effbd16b;font-size:20px;color:#fff8d9;user-select:none;-webkit-user-select:none}#touch button.down{background:#f4d080aa;color:#132d45}#touch button[data-key=jump]{width:66px;height:66px;background:#e5ba6b99}#touch button[data-key=ability]{width:48px;height:48px;font-size:17px}#rotate{display:none;position:fixed;bottom:8px;left:0;right:0;text-align:center;font-size:11px;color:#aac8d7;pointer-events:none}#toast{position:absolute;left:50%;top:23%;transform:translateX(-50%);padding:8px 14px;background:#153147e8;border:1px solid #e8d3a66b;border-radius:3px;font:clamp(9px,1vw,14px) GameUI,monospace;color:#fff0c7;opacity:0;transition:opacity .25s;pointer-events:none;z-index:5;white-space:nowrap}
@media(pointer:coarse){#touch.playing{display:flex}#game #pause{width:38px;height:34px}.title-screen p{max-width:280px}}@media(max-width:650px){.overlay{padding:3%}.select-layout{gap:10px;grid-template-columns:1fr 28%}.cards{gap:6px}.saint{padding:5px}.saint.selected{padding:4px}.saint canvas{width:43px;margin-bottom:1px}.detail{padding:10px}.detail p{margin:3px 0 10px}.detail .power{padding-top:5px}.sub{margin-bottom:10px}.panel-bottom{margin-top:10px}.primary,.secondary{padding:8px 13px}.title-screen h1{margin:12px 0}.title-screen p{margin-bottom:15px;max-width:230px}.brandmark{width:18px;height:18px;font-size:13px}.storybox{padding:17px}.storybox p{min-height:4em}.stage .node{width:42px;height:42px;font-size:16px}.route{margin:20px 0}.route:before{top:20px}.stage small{font-size:8px}.stats{gap:18px;margin:16px 0}.title-meta{bottom:5%}.settings{padding:15px}.setting{padding:10px 3px;font-size:12px}.settings h2{font-size:20px}.settings p{font-size:10px}.hint{max-width:60%}}
@media(orientation:portrait) and (pointer:coarse){#rotate{display:block}#shell{align-items:center}#touch button{width:42px;height:40px}#touch button[data-key=jump]{width:48px;height:48px}#touch button[data-key=ability]{width:36px;height:36px}.detail p{font-size:8px}.detail h3{font-size:12px}.saint canvas{width:35px}.select-layout{grid-template-columns:1fr 28%}.title-screen p{font-size:9px;max-width:190px}.title-screen h1{font-size:24px}.title-meta{font-size:6px}.storybox p{font-size:10px}.storybox h2{font-size:15px}.storybox .page{font-size:8px}.storybox{width:90%}.hint{font-size:6px}.detail .badge{font-size:6px}.detail .power{font-size:7px}.panel h2{font-size:16px}.panel .sub{font-size:8px;margin-bottom:8px}.panel-bottom{margin-top:8px}.title-tag{font-size:8px}.primary,.secondary{font-size:9px;padding:6px 11px}.eyebrow{font-size:6px}.cards{gap:4px}.saint b{font-size:7px}.saint{padding:3px}.saint.selected{padding:2px}}
@media(max-height:500px){.overlay{padding:3%}.panel h2{font-size:22px;margin:3px 0 5px}.sub{font-size:11px;margin-bottom:10px}.select-layout{gap:12px}.cards{gap:7px}.saint{padding:5px 7px}.saint.selected{padding:4px 6px}.saint canvas{width:42px;margin:0 auto 3px}.saint b{font-size:9px}.detail{padding:12px}.detail h3{font-size:16px}.detail p{font-size:10px;line-height:1.5;margin:5px 0 10px}.detail .power{font-size:9px;padding-top:8px}.detail .badge{font-size:8px}.panel-bottom{margin-top:12px}.primary,.secondary{padding:8px 13px;font-size:11px}.hint{font-size:8px}.eyebrow{font-size:8px}.route{margin:18px 0}.stage .node{width:42px;height:42px;font-size:16px}.route:before{top:20px}.stage b{font-size:10px}.stage small{font-size:8px}.storybox{padding:18px}.storybox h2{font-size:20px}.storybox p{font-size:13px;min-height:4em}.stats{margin:14px 0}.result .big{font-size:32px;margin:12px 0}}

#hubButtons{position:absolute;right:11%;top:3%;display:none;gap:6px;z-index:2}#hubButtons button{background:#153147e8;border:1px solid #809eab6b;border-radius:3px;padding:8px 12px;font-size:clamp(10px,1vw,14px)}#hubTouch{display:none;position:absolute;bottom:3%;left:3%;right:28%;z-index:2;pointer-events:none;align-items:flex-end;justify-content:space-between}#hubTouch button{pointer-events:auto;touch-action:none;background:#153147c9;border:1px solid #d7e8d9aa;border-radius:9px;width:38px;height:36px;color:#fff2cb;user-select:none}.hub-dpad{display:grid;grid-template-columns:repeat(3,38px);gap:3px}.hub-dpad [data-hubkey=up]{grid-column:2}.hub-dpad [data-hubkey=left]{grid-column:1;grid-row:2}.hub-dpad [data-hubkey=down]{grid-column:2;grid-row:2}.hub-dpad [data-hubkey=right]{grid-column:3;grid-row:2}#hubTouch #hubEnter{width:76px;height:45px;background:#d5a75dda;color:#10273b;font-weight:bold}.mission-list{display:flex;flex-direction:column;gap:9px}.mission-choice{display:flex;align-items:center;gap:15px;padding:13px 17px;background:#203c53;border:1px solid #7795a64d;border-radius:4px;text-align:left}.mission-choice:hover,.mission-choice.focused{border-color:#ffdc8c;background:#344d5c}.mission-choice b,.mission-choice small{display:block}.mission-choice b{font-size:clamp(12px,1.4vw,18px);margin-bottom:4px}.mission-choice small{font-size:clamp(10px,1vw,14px);color:#c3d7df}.mission-choice em{font-style:normal;margin-left:auto;font-size:clamp(10px,1vw,13px);color:#ffdd91;white-space:nowrap}.mission-star{font-size:30px;color:#849baa}.mission-star.earned{color:#ffda82}
@media(pointer:coarse){#hubTouch.playing{display:flex}}@media(max-height:500px){.mission-choice{padding:7px 12px;gap:10px}.mission-choice b{font-size:12px;margin-bottom:2px}.mission-choice small,.mission-choice em{font-size:10px}.mission-star{font-size:24px}.mission-list{gap:6px}.mission-panel .panel-bottom{margin-top:10px}.storybox p{min-height:0;line-height:1.55;margin-bottom:12px}.storybox h2{font-size:19px;margin:8px 0}.storybox{padding:16px}.storybox .page{font-size:9px}}

.hero-panel .cards{grid-template-columns:repeat(5,1fr);gap:8px}.hero-panel .saint canvas{width:56px;max-width:85%}.saint small{display:block;text-align:center;font-size:9px;color:#b8d0db;margin-top:4px}.saint.locked{background:#172e42}.saint.locked b{color:#8da9ba}.unlock-banner{margin:10px auto;padding:12px;border:1px solid #ffda82;background:#315949;color:#ffecad;font-weight:bold;max-width:600px}.unlock-banner small{font-weight:normal;color:#cfdfd5}#hubTouch{bottom:12%;right:3%}#hubTouch #hubEnter{height:38px;width:72px}#hubTouch .hub-dpad{opacity:.8}
@media(max-height:500px){.hero-panel .saint{padding:4px}.hero-panel .saint.selected{padding:3px}.hero-panel .saint canvas{width:35px;margin-bottom:1px}.hero-panel .saint b{font-size:8px}.hero-panel .saint small{font-size:7px;margin-top:2px}.hero-panel .sub{font-size:10px}.hero-panel .select-layout{grid-template-columns:1fr 28%;gap:10px}.hero-panel .detail p{font-size:9px}.unlock-banner{padding:7px;font-size:11px;margin:6px auto}.result .big{font-size:27px}.stats{margin:10px 0}}

/* Larger, brighter reading text, with independent spacing for story scenes. */
.sub{font-size:clamp(12px,1.22vw,17px);color:#deebef}.hint{font-size:clamp(10px,1vw,14px);color:#c4dce6}.eyebrow{font-size:clamp(10px,1.05vw,14px);color:#cbe1eb}.link{color:#d9e9ee}.detail p{font-size:clamp(12px,1.08vw,15px);color:#e2edf0}.detail .power{font-size:clamp(11px,1vw,14px);color:#ffdf9b}.settings{max-height:100%;overflow:auto}.settings p{font-size:14px;color:#d1e5eb}.title-screen p{font-size:clamp(12px,1.25vw,18px)}.storybox p{font-size:clamp(14px,1.5vw,20px);color:#f4f7ec}.storybox .page{color:#c6dfe8}#toast{font-family:system-ui,sans-serif;font-size:clamp(12px,1.2vw,17px);font-weight:650;max-width:94%;white-space:normal;text-align:center;background:#102b43f5;top:28%}.scene-dialog{width:min(860px,96%);max-height:100%;overflow:auto;padding:28px;background:#102b43;border:2px solid #b8cdbd;border-radius:6px;box-shadow:0 15px 80px #0007}.scene-dialog h2{font-size:clamp(23px,2.5vw,34px);color:#ffdf9b;margin:8px 0 22px;line-height:1.15}.scene-body{display:grid;grid-template-columns:100px 1fr;gap:24px;align-items:center;min-height:160px}.scene-body canvas{width:96px;height:96px;image-rendering:pixelated;background:#29465a;border:1px solid #8aabb0;border-radius:4px}.scene-body h3{font-size:18px;color:#ffdf9b;margin:0 0 10px}.scene-body p{font-size:clamp(16px,1.5vw,21px);line-height:1.65;color:#f4f6eb;margin:0}.scene-footer{display:flex;align-items:center;justify-content:space-between;gap:15px;margin-top:24px}.scene-footer>span{font-size:13px;color:#c4dde7}.journal h2{color:#ffdf9b}.journal-entry{margin:14px 0;padding:16px;background:#17374e;border-left:3px solid #e9c47e}.journal-entry b{font-size:18px;color:#ffe1a1}.journal-entry p,.journal-entry blockquote{font-size:16px;line-height:1.6;color:#e4edf0;margin:8px 0}.journal-entry blockquote{padding-left:14px;border-left:1px solid #759d9d}.clear-continue{position:absolute;right:3%;bottom:4%;font-size:15px}.overlay:has(.clear-continue){backdrop-filter:none;background:transparent}.result .sub{max-width:740px;margin-left:auto;margin-right:auto}.result .big{font-size:clamp(25px,3.5vw,46px)}
@media(max-height:500px){.hero-panel .saint b{font-size:10px}.hero-panel .saint small{font-size:9px}.hero-panel .sub{font-size:12px}.hero-panel .detail p{font-size:11px}.hero-panel .detail .power{font-size:10px}.sub,.hint{font-size:11px}.eyebrow{font-size:10px}.scene-dialog{padding:17px}.scene-dialog h2{font-size:23px;margin:6px 0 13px}.scene-body{grid-template-columns:72px 1fr;gap:16px;min-height:105px}.scene-body canvas{width:72px;height:72px}.scene-body h3{font-size:15px;margin-bottom:7px}.scene-body p{font-size:14px;line-height:1.55}.scene-footer{margin-top:15px;gap:8px}.scene-footer>span{font-size:11px}.scene-footer .primary,.scene-footer .secondary{font-size:12px;padding:9px 12px}.settings p{font-size:12px}.pause-actions{gap:7px;margin-top:12px}.result .big{font-size:26px}.journal-entry{padding:12px}.journal-entry p,.journal-entry blockquote{font-size:14px}}
@media(max-width:550px){.scene-body{grid-template-columns:48px 1fr;gap:10px}.scene-body canvas{width:48px;height:48px}.scene-dialog{padding:12px}.scene-dialog h2{font-size:19px}.scene-body p{font-size:12px}.scene-footer{flex-wrap:wrap}.scene-footer>span{font-size:10px}.scene-body{min-height:0}.scene-footer .primary,.scene-footer .secondary{font-size:11px;padding:7px 9px}}

.speaker-role{font-size:11px;letter-spacing:.08em;color:#c2d9e3;margin-bottom:6px}.map-clear{position:absolute;left:50%;top:15%;transform:translateX(-50%);width:min(520px,82%);padding:16px 20px;background:#102b43f5;border:1px solid #dfc17c;border-radius:5px;box-shadow:0 8px 25px #00152266;pointer-events:auto}.map-clear>b{display:block;color:#ffe1a0;font-size:20px;margin:3px 0}.map-clear p{font-size:14px;line-height:1.5;margin:6px 0 10px;color:#e5f0ec}.map-clear .primary,.map-clear .secondary{font-size:12px;padding:8px 11px}.overlay:has(.map-clear){background:transparent;backdrop-filter:none;pointer-events:none}
@media(max-height:500px){.map-clear{top:15%;padding:10px 15px;width:440px;max-width:80%}.map-clear>b{font-size:16px}.map-clear p{font-size:12px;margin:4px 0 7px}.map-clear .eyebrow{font-size:9px}.map-clear .primary,.map-clear .secondary{font-size:11px;padding:7px 9px}.speaker-role{font-size:9px}}

#hubExtras{position:absolute;right:3%;bottom:14%;display:none;gap:8px;z-index:5}#hubExtras button{background:#17364beF;border:1px solid #d6b777;color:#ffe4a1;padding:9px 13px;font-weight:700;border-radius:4px;font-size:13px}.menu-status{font:12px GameUI,monospace;color:#e7d6a7;line-height:1.8;margin:0 0 20px}.start-menu .actions{max-width:590px}.start-menu .title-meta{line-height:1.8}.profiles-panel{max-width:1060px}.profile-list{display:grid;grid-template-columns:repeat(3,1fr);gap:14px;margin-top:22px}.profile-card{padding:18px;background:#18374c;border:1px solid #739398;border-radius:5px}.profile-card.active{border-color:#f1d38d}.profile-card h3{color:#ffe1a0;font-size:19px;min-height:46px}.profile-card p{font-size:14px;line-height:1.7;min-height:98px}.profile-card .actions{gap:8px}.profile-card button{font-size:12px;padding:10px 12px}.shop-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px;margin-top:20px}.shop-card{display:grid;grid-template-columns:32px 1fr;gap:12px;background:#17374c;border:1px solid #698d97;padding:20px;border-radius:5px}.shop-card h3{margin:0 0 8px;color:#ffe1a1;font-size:18px}.shop-card p{font-size:14px;line-height:1.6;color:#dceaf0;margin:0 0 8px}.shop-card button{grid-column:2;justify-self:start}.shop-icon{font-size:29px;color:#ffe1a0}.shop-card small{font-size:12px;color:#d6e5c1}.finale-caption{position:absolute;left:4%;right:auto;top:4%;bottom:auto;width:min(760px,92%);max-height:57%;overflow:auto;padding:14px 20px;background:#102b43ed;border:1px solid #dcce9a;border-radius:4px;pointer-events:auto}.finale-caption h2{font-size:24px;margin:0 0 6px;color:#ffe1a1}.finale-caption p{font-size:16px;line-height:1.6;margin:0 0 10px;color:#f1f5e9;max-width:850px}.finale-caption .actions{justify-content:space-between;align-items:center}.overlay:has(.finale-caption){pointer-events:none;background:transparent;backdrop-filter:none}.finale-end{background:#102b43eF;border:1px solid #b4cfbc;padding:25px;border-radius:5px}.finale-end .big{margin:12px 0}.finale-end .stats{margin:16px 0}.finale-end .hint{max-width:none}
@media(max-height:500px){.start-menu{padding-top:4%;padding-bottom:12%}.start-menu h1{font-size:30px;margin:10px 0}.start-menu p{font-size:12px;line-height:1.5;margin-bottom:8px}.menu-status{font-size:10px;line-height:1.6;margin-bottom:9px}.start-menu .actions{max-width:420px;gap:6px}.start-menu .actions button{font-size:10px;padding:7px 10px}.start-menu .title-meta{font-size:8px}.profile-list{gap:9px;margin-top:10px}.profile-card{padding:12px}.profile-card h3{font-size:14px;min-height:35px;margin:10px 0}.profile-card p{font-size:11px;line-height:1.5;min-height:75px}.profile-card button{font-size:10px;padding:7px 9px}.shop-grid{gap:10px;margin-top:10px}.shop-card{padding:12px;gap:8px;grid-template-columns:22px 1fr}.shop-card h3{font-size:15px;margin-bottom:5px}.shop-card p{font-size:11px}.shop-card button{font-size:11px;padding:7px 10px}.shop-icon{font-size:22px}#hubExtras{gap:5px}#hubExtras button{font-size:11px;padding:7px 9px}.finale-caption{padding:10px 15px}.finale-caption h2{font-size:19px}.finale-caption p{font-size:12px;line-height:1.5}.finale-caption button{font-size:11px;padding:7px 10px}.finale-end{padding:16px}.finale-end .stats{margin:12px 0}}
@media(max-width:550px){.profile-list,.shop-grid{grid-template-columns:1fr}.profile-card h3,.profile-card p{min-height:0}.menu-status{font-size:9px}}

@media(max-height:500px){.profile-card{position:relative}.profile-card .actions{display:grid;grid-template-columns:1fr 1fr;gap:6px}.profile-card [data-profile]{grid-column:1/-1}.profile-card [data-delete]{position:absolute;top:7px;right:7px;font-size:9px;padding:3px}.profile-card h3{min-height:30px;margin:8px 0}.profile-card p{margin:8px 0;min-height:85px}.profile-card .actions button{font-size:10px;padding:7px 6px}}
#touch #secretAction{display:none;width:78px;height:44px;font-size:13px;background:#32566de8;border-color:#f4d28d}

.current-goal{display:grid;gap:5px;border-left:3px solid #e6c785;background:#18384a;padding:12px 16px;margin:16px 0;color:#fff1ce;text-align:left}
.loading-screen{width:min(480px,94%);padding:28px;text-align:center;background:#122d43;border:1px solid #8e9d97;border-radius:6px}.loading-screen h1{font-size:clamp(22px,3vw,34px);color:#ffe3a3;line-height:1.25}.loading-screen p{font-size:14px;color:#c9dde5;line-height:1.6}.loading-screen progress{width:100%;height:10px;accent-color:#f3cf8c}.loading-screen button{margin-top:10px}
.current-goal small{font-size:10px;letter-spacing:.12em;color:#b7d2df}.current-goal strong{font-size:clamp(14px,1.5vw,20px);line-height:1.4}.current-goal span{font-size:14px;line-height:1.6;color:#dfebed}
.story-dialog{max-width:790px;width:94%;background:linear-gradient(135deg,#17364b,#10283c);border-color:#859b99;box-shadow:0 18px 70px #06121dc2}
.story-dialog .scene-body{align-items:start}.story-dialog .scene-body p{font-size:clamp(16px,1.65vw,23px);line-height:1.65;max-width:60ch}.story-dialog h2{color:#f6dfaa}.story-dialog .scene-body canvas{border:1px solid #c7b28144;border-radius:5px;background:#244758;image-rendering:pixelated}
.story-journal{max-width:860px!important;text-align:left}.story-journal>h2{color:#ffe6b0}.story-journal .sub{font-size:16px;line-height:1.7}.story-journal details{font-size:14px;line-height:1.65}.story-journal summary{color:#f5daa1;cursor:pointer;padding:9px 0}.story-journal details p{font-size:15px;line-height:1.7}.story-journal .journal-entry{margin:18px 0;border-color:#67808b66}.story-journal .journal-entry h3{font-size:20px;margin:8px 0}.story-journal .journal-entry p,.story-journal blockquote{font-size:15px;line-height:1.7}.story-journal blockquote{margin:12px 0;background:#18384a;padding:12px 16px;color:#e0edf0;border-left:2px solid #e0bb72}.story-journal .unread{opacity:.62}.story-impact{color:#e6d29d!important}.story-origin{padding:7px 14px;border:1px solid #67808b66}
#storyQuick{display:none;position:absolute;right:3%;bottom:10%;z-index:9;padding:7px 11px;font-size:12px;background:#132f44ef;border:1px solid #71969f;color:#f9e4b6;border-radius:4px}
#travelNote{position:absolute;right:3%;top:19%;width:min(380px,44%);z-index:8;padding:12px 15px;background:#112c42f5;border-left:3px solid #dec288;color:#e6eef0;pointer-events:none;opacity:0;transform:translateY(-5px);transition:opacity .25s,transform .25s;font:14px/1.6 GameUI,system-ui,sans-serif}#travelNote.visible{opacity:1;transform:translateY(0)}#travelNote b,#travelNote span,#travelNote small{display:block}#travelNote b{font-size:12px;color:#ffe2a4;margin-bottom:5px}#travelNote small{font-size:10px;color:#b5d0db;margin-top:5px}
#toast.game-toast{left:auto;right:3%;top:18%;transform:none;max-width:46%;text-align:left}
.story-receipt{top:15%;width:min(620px,86%);max-height:75%;overflow-y:auto;text-align:left}.story-receipt h3{font-size:24px;margin:10px 0;color:#ffe6b6}.story-receipt p{font-size:16px;line-height:1.65}.receipt-stats{font-size:12px;line-height:1.7;color:#b9d5df}.story-receipt .current-goal{margin:12px 0}.story-receipt .current-goal strong{font-size:15px}
.recap-box{max-height:90%;overflow:auto}.recap-box p{min-height:0!important;font-size:17px;line-height:1.65}.start-menu p{max-width:420px!important}.start-menu .actions{max-width:550px}
@media(max-height:600px){.story-dialog{padding:15px 20px}.story-dialog h2{font-size:23px;margin:6px 0 12px}.story-dialog .scene-body p{font-size:15px;line-height:1.55}.story-dialog .scene-body canvas{width:64px;height:64px}.story-dialog .scene-body{grid-template-columns:64px 1fr;gap:16px}.story-dialog .current-goal{padding:7px 12px;margin:9px 0}.scene-footer{margin-top:12px}.story-dialog .scene-body h3{font-size:17px}.story-receipt h3{font-size:20px}.story-receipt p{font-size:14px}.story-receipt .current-goal strong{font-size:13px}.story-journal .sub,.story-journal .journal-entry p,.story-journal blockquote{font-size:14px}#travelNote{padding:7px 10px;font-size:11px}#travelNote b{font-size:10px}#travelNote small{display:none}#storyQuick{font-size:10px;padding:5px 8px;bottom:10%}.recap-box p{font-size:14px}}
@media(pointer:coarse){#storyQuick{bottom:auto;right:1%;top:32%;padding:5px 7px;font-size:10px}#travelNote{top:18%;font-size:11px}.story-dialog .scene-footer .secondary{display:none}}
@media(max-width:550px){.story-dialog .scene-body{grid-template-columns:48px 1fr;gap:10px}.story-dialog .scene-body canvas{width:48px;height:48px}.story-dialog .scene-body p{font-size:14px}.story-dialog{padding:12px}.story-dialog h2{font-size:20px}.story-dialog .current-goal strong{font-size:13px}.story-journal .sub{font-size:14px}.story-journal .journal-entry h3{font-size:18px}.story-receipt p{font-size:13px}}

.pilgrim-shop{width:min(1040px,96%);max-width:1040px!important;max-height:94%;padding:22px 26px;text-align:left;background:linear-gradient(135deg,#203c4a,#122b3e);border:1px solid #ac9d78;overflow:auto}
.shop-header{display:flex;justify-content:space-between;gap:20px;align-items:start}.shop-header h2{font-size:clamp(20px,2.1vw,29px);margin:7px 0;color:#ffe7b4}.shop-header p{font-size:14px;color:#c8dde3;margin:0 0 16px}.shop-header button{white-space:nowrap;font-size:12px}
.shop-wallet{display:flex;align-items:center;justify-content:space-between;gap:20px;background:#0d2534;border:1px solid #617c83;border-radius:6px;padding:12px 18px}.shop-wallet small{font-size:10px;letter-spacing:.12em;color:#abc9d4}.shop-wallet strong{display:block;font-size:28px;color:#f7d58f;margin-top:3px}.shop-wallet strong span{font-size:13px;color:#e9e5d4}.shop-wallet p{font-size:12px;line-height:1.5;color:#b9d1d9;margin:0}
.shop-filters{display:flex;gap:7px;margin:14px 0 0;flex-wrap:wrap}.shop-tab{padding:8px 14px;border-radius:4px;background:#284b5c;border:1px solid #52717b;color:#dcecef;font-size:12px;font-weight:700}.shop-tab.active{background:#f2ce8c;border-color:#f2ce8c;color:#173248}.shop-notice{min-height:19px;font-size:12px;color:#d9deb9;line-height:1.5;margin:9px 0 13px}
.shop-content{display:grid;grid-template-columns:1fr 210px;gap:20px;align-items:start}.shop-catalog{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.market-card{padding:14px;background:#18394a;border:1px solid #67838a;border-radius:6px;display:flex;flex-direction:column;box-shadow:0 4px 10px #071b2522}.market-item-top{display:flex;gap:10px;align-items:center}.market-item-top canvas{width:48px;height:48px;image-rendering:pixelated;border-radius:6px;background:#0e2838;border:1px solid #566e73;flex-shrink:0}.market-item-top small{font-size:9px;color:#afcbd4;letter-spacing:.025em}.market-card h3{font-size:16px;line-height:1.3;color:#ffe7b6;margin:4px 0}.item-state{font-size:11px;color:#b9dcca}.market-card>p{font-size:13px;line-height:1.55;margin:12px 0 8px;color:#e8eff0;min-height:39px}.item-usage{font-size:11px;line-height:1.5;color:#aac9d4;margin-bottom:14px}.market-buy{margin-top:auto;display:flex;justify-content:space-between;align-items:center;gap:6px;border-top:1px solid #4c6c7855;padding-top:10px}.item-price{font-size:15px;color:#f1d296;font-weight:700}.market-buy button{padding:9px 12px;min-width:118px;font-size:12px;box-shadow:0 3px 0 #9e7746}.market-buy button:disabled{opacity:1;color:#b0c5cc;background:#2c4a59;box-shadow:none;cursor:default}.market-card.owned{border-color:#71998b}.market-card.owned .market-buy button{color:#c4e1c9}
.shop-bag{background:#0d2839b8;padding:17px;border-radius:6px;border:1px solid #4b6a77;position:sticky;top:0}.shop-bag h3{font-size:20px;margin:9px 0;color:#f7dfaa}.shop-bag>p{font-size:14px;line-height:1.85;color:#d8e6e8}.shop-bag h4{font-size:12px;color:#a8c6d2;margin:15px 0 8px}.bag-divider{height:1px;background:#4d6d77}.shop-bag .bag-line{font-size:11px;line-height:1.6;display:flex;gap:7px;color:#819fae;margin:7px 0}.shop-bag .bag-line.has-item{color:#d7e8ce}.shop-how{margin-top:22px;font-size:12px;color:#ead39e}.shop-how p{font-size:11px;line-height:1.8;color:#afcbd6}
.audio-settings{text-align:left}.audio-settings label{display:flex;justify-content:space-between;font-size:14px;margin-top:18px;color:#f4e5c4}.audio-settings input[type=range]{width:100%;accent-color:#e9c585;margin:12px 0}.audio-credit{font-size:12px;line-height:1.6;color:#afcbd5}.hub-shop-beacon{color:#ffe3a1!important;border-color:#f2ce83!important;box-shadow:0 0 0 2px #d5b56a20}
@media(max-height:600px){.pilgrim-shop{padding:14px 18px;max-height:96%}.shop-header h2{font-size:21px}.shop-header p{font-size:12px;margin-bottom:10px}.shop-wallet{padding:8px 12px}.shop-wallet strong{font-size:24px}.shop-filters{margin-top:10px}.shop-tab{padding:6px 10px}.market-card{padding:11px}.market-card h3{font-size:14px}.market-item-top canvas{width:39px;height:39px}.market-card>p{font-size:12px}.shop-content{grid-template-columns:1fr 180px;gap:13px}.shop-bag{padding:13px}.shop-notice{margin:7px 0 10px}.market-buy button{font-size:11px;min-width:104px;padding:8px}.item-price{font-size:13px}}
@media(max-width:750px){.shop-content{grid-template-columns:1fr}.shop-bag{position:static}.shop-bag .bag-line,.shop-bag h4,.shop-how,.bag-divider{display:none}.shop-bag{padding:10px 14px;display:flex;align-items:center;gap:20px;order:-1}.shop-bag .eyebrow{display:none}.shop-bag h3{font-size:16px;margin:0}.shop-bag>p{font-size:12px;margin:0}.shop-header button{font-size:10px;padding:8px}.shop-wallet p{display:none}.shop-header h2{font-size:20px}}
@media(max-width:480px){.shop-catalog{grid-template-columns:1fr}.pilgrim-shop{padding:12px}.shop-tab{padding:7px 10px;font-size:11px}.shop-wallet strong{font-size:23px}.market-card>p{min-height:0}.shop-header{gap:8px}.shop-header p{font-size:12px}}
