/* Overworld presentation. Battle rendering and motion are intentionally independent. */
.exp-page-host{height:100%;width:100%;position:relative}
.exp-modal{animation:none!important}
.exp-overlay{backdrop-filter:none;background:#060a10b8;padding:max(80px,calc(env(safe-area-inset-top) + 76px)) max(12px,env(safe-area-inset-right)) max(14px,env(safe-area-inset-bottom)) max(12px,env(safe-area-inset-left))}
.exp-overlay:has(.modal-story){backdrop-filter:none;background:#060a10b8}
.world-exiting,.world-exiting *{pointer-events:none!important;animation-play-state:paused!important}
.exp-modal:not(.exp-illustrated){box-shadow:0 20px 65px #0007}
.exp-dialog-wallet{position:absolute;top:max(12px,env(safe-area-inset-top));left:50%;translate:-50% 0;display:flex;align-items:center;gap:20px;width:min(620px,calc(100% - 28px));height:54px;padding:8px 14px;border:1px solid #ffffff24;border-radius:17px;background:#101418;box-shadow:0 8px 24px #0003;text-align:left;z-index:4}
.exp-wallet-label{margin-right:auto;font-size:8px;line-height:1.6;letter-spacing:1.7px;color:#a5b5bb;max-width:90px}
.exp-dialog-wallet>div{display:flex;flex-direction:column;gap:2px;min-width:58px}
.exp-dialog-wallet small{font-size:7px;color:#a6b4be;letter-spacing:1.3px}
.exp-dialog-wallet .exp-money{font-size:20px;line-height:1.15;gap:7px}
.exp-dialog-wallet .exp-money .exp-icon{width:19px;height:19px}
.exp-dialog-wallet .exp-icon-button{height:34px;min-height:34px;width:34px;flex-basis:34px;padding:8px}
.exp-audio-toggle[aria-pressed=false]{color:#82929f;background:#151b22}
.exp-hud-amount{display:flex;flex-direction:column;gap:1px}.exp-hud-amount small{font-size:6px!important;letter-spacing:1px!important;color:#b5bec8!important}
.exp-map-heading .exp-money{font-size:17px}.exp-map-heading .exp-money .exp-icon{width:17px;height:17px}
.exp-modal.exp-illustrated{padding:0;gap:0;display:grid;grid-template-columns:minmax(0,1fr);grid-template-rows:minmax(100px,.85fr) minmax(0,1.15fr);height:min(700px,100%);width:min(620px,100%);max-width:900px;border-radius:23px;overflow:hidden;background:#101418;border:1px solid #9fb6c240;box-shadow:0 26px 80px #0008;text-align:center}
.exp-illustrated>.exp-icon-button:first-child{right:12px;top:12px;background:#090e14bd;box-shadow:0 3px 10px #0005;backdrop-filter:blur(8px);border:1px solid #ffffff36;width:36px;height:36px;min-height:36px}
.exp-location-art{margin:0;position:relative;min-width:0;min-height:0;overflow:hidden;isolation:isolate;background:#1b3044}
.exp-location-art>img{display:block;width:100%;height:100%;object-fit:cover;object-position:40% 51%;transform:scale(1.035);animation:worldSceneBreathe 24s ease-in-out infinite alternate}
.exp-location-art:after{content:'';position:absolute;inset:0;background:linear-gradient(0deg,#10141888,transparent 45%);pointer-events:none}
.exp-location-art figcaption{position:absolute;bottom:15px;left:19px;z-index:2;display:flex;align-items:center;gap:8px;font-size:7px;letter-spacing:3px;color:#f0f4f7b5;text-shadow:0 1px 8px #000}
.exp-location-art figcaption span{height:5px;width:5px;rotate:45deg;background:#d3d6bd}
.exp-scene-light{position:absolute;inset:0;pointer-events:none;background:radial-gradient(ellipse at 44% 69%,#ffbd6735,transparent 40%);mix-blend-mode:screen;animation:worldFireGlow 4s ease-in-out infinite alternate}
.scene-shrine .exp-scene-light{background:radial-gradient(ellipse at 50% 50%,#84ecff33,transparent 38%)}
.exp-scene-motes{position:absolute;inset:0;pointer-events:none;z-index:1}
.exp-scene-motes i{position:absolute;left:calc(12% + var(--i)*9%);top:100%;width:2px;height:2px;background:#ffe1a6;border-radius:50%;box-shadow:0 0 7px #ffd594;animation:worldEmbers calc(5s + var(--i)*.3s) linear infinite;animation-delay:calc(var(--i)*-.7s)}
.scene-shrine .exp-scene-motes i{background:#b5f2fa;box-shadow:0 0 7px #b5f2fa}
.exp-dialog-body{min-width:0;min-height:0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:12px;padding:22px 25px;background:linear-gradient(145deg,#141b22,#101418 60%);overflow:hidden}
.exp-dialog-body>*{flex-shrink:0}.exp-dialog-body h2{font-size:clamp(22px,3vw,32px);letter-spacing:-.8px}.exp-dialog-body>p{font-size:13px;line-height:1.6}.exp-dialog-body>.exp-button{min-width:180px}
.exp-dialog-body>.exp-space-icon,.exp-dialog-body>.exp-story-symbol{display:none}
.exp-dialog-body .exp-dialog-actions{margin-top:4px}
.exp-dialog-body .exp-screen-footer{position:static;margin-top:auto;gap:10px}
.exp-dialog-body .exp-relic-options{flex-shrink:1}.exp-dialog-body .exp-relic-choice{min-height:0}
.exp-dialog-body .exp-event-choices{gap:8px}.exp-dialog-body .exp-choice{padding:11px 13px;background:#1c2730;border-color:#758b9636;transition:background .18s,border-color .18s,transform .18s}
.exp-dialog-body .exp-choice:hover{border-color:#a3e1d080;background:#25363e}.exp-dialog-body .exp-choice small{font-size:10px;line-height:1.5}.exp-dialog-body .exp-dialogue{font-size:13px!important;line-height:1.6!important}
.exp-modal.exp-illustrated.modal-event{grid-template-rows:minmax(90px,.7fr) minmax(0,1.3fr)}
.exp-modal.exp-illustrated.modal-shop{grid-template-rows:minmax(80px,.65fr) minmax(0,1.35fr)}
.exp-dialog-body .exp-shop-heading{gap:5px;flex-direction:column;flex:0 0 auto}.exp-shop-heading h2{font-size:26px}.exp-shop-heading small{font-size:9px}
.exp-dialog-body .exp-shop-grid{flex:1;flex-shrink:1;min-height:0;gap:9px;height:auto;grid-column:auto;grid-row:auto}
.exp-dialog-body .exp-shop-item{padding:12px 10px;gap:8px;border:1px solid #ffffff14;background:#1a232c}.exp-shop-item.sold{opacity:.48;transition:opacity .25s}
.exp-dialog-body .exp-shop-item>span{height:27px;flex-shrink:0}.exp-dialog-body .exp-shop-item h3{font-size:13px}.exp-dialog-body .exp-shop-item p{font-size:10px;line-height:1.4}.exp-dialog-body .exp-shop-item select{height:32px;font-size:10px;padding:5px}
.exp-dialog-body .exp-shop-item .exp-button{min-height:36px;padding:8px;gap:6px;font-size:11px;background:#273c3c;border-color:#98e1d930}.exp-dialog-body .exp-shop-item .exp-money{font-size:12px}.exp-dialog-body .exp-screen-footer>.exp-button{position:static;min-height:38px;min-width:0;left:auto;bottom:auto;font-size:11px;padding:9px 13px}
.exp-modal.exp-illustrated.modal-reward,.exp-modal.exp-illustrated.modal-shopPack{grid-template-rows:minmax(65px,.42fr) minmax(0,1.58fr)}
.exp-dialog-body .exp-reward-heading{gap:4px}.exp-dialog-body .exp-reward-heading h2{font-size:23px}.exp-dialog-body .exp-reward-heading .exp-money{font-size:14px}
.exp-dialog-body .exp-reward-cards{flex:1;flex-shrink:1;min-height:0;gap:9px;height:auto}.exp-dialog-body .exp-reward-card{height:100%;min-height:0}.exp-dialog-body .exp-reward-card>img{flex:1;min-height:0}.exp-dialog-body .exp-card-info{padding:7px 4px}.exp-dialog-body .exp-card-info h3{font-size:10px}.exp-dialog-body .exp-card-info small{font-size:8px}.exp-dialog-body .exp-reward-note{font-size:9px!important}
.exp-modal.exp-illustrated.modal-story{grid-template-rows:minmax(110px,1fr) minmax(0,1fr);box-shadow:0 20px 70px #0007}
.exp-dialog-body .exp-dialogue-box{border:0;box-shadow:none;background:none;padding:0;border-radius:0;flex:1;display:flex;flex-direction:column;justify-content:center;width:100%}
.exp-dialog-body .exp-dialogue-box p{font-size:clamp(16px,2.4vw,22px);line-height:1.6;margin:16px 0 24px}.exp-dialog-body .exp-dialogue-box footer{margin-top:auto}
.exp-modal.exp-illustrated.modal-pause,.exp-modal.exp-illustrated.modal-settings{grid-template-rows:minmax(60px,.45fr) minmax(0,1.55fr)}
.exp-dialog-body .exp-pause-menu{display:grid;grid-template-columns:1fr 1fr;gap:7px;min-height:0}.exp-dialog-body .exp-pause-menu .exp-button{min-height:39px;padding:9px 11px;font-size:11px}.exp-dialog-body .exp-pause-menu .exp-link{font-size:10px;min-height:25px}.exp-volume{grid-column:1/-1;display:flex;align-items:center;gap:15px;color:#b2c3cd;font-size:10px;padding:6px 2px}.exp-volume input{height:24px;padding:0;border:0;accent-color:var(--mint);flex:1}.exp-volume span{white-space:nowrap}
.exp-receipt{position:absolute;z-index:80;bottom:max(17px,env(safe-area-inset-bottom));left:50%;translate:-50% 0;white-space:nowrap;max-width:calc(100% - 28px);display:flex;align-items:center;gap:8px;background:#0a1718f5;border:1px solid #94dbbd60;border-radius:14px;padding:11px 17px;box-shadow:0 8px 25px #0005;color:#c1f7de;font-size:12px;pointer-events:none;animation:worldReceipt .28s ease-out both}
.exp-receipt .exp-icon{width:17px;height:17px}
/* Snow is in persistent foreground and background layers, independent of map redraws. */
.exp-map-atmosphere{z-index:3;overflow:hidden;background:linear-gradient(90deg,#b0b7d333,transparent 18%,transparent 82%,#b0b7d333)}
.exp-map-atmosphere:before{display:none}.exp-snow-drift{position:absolute;inset:0;pointer-events:none;overflow:hidden}.exp-snow-drift i{position:absolute;left:var(--x);top:-20px;width:var(--s);height:var(--s);opacity:0;border-radius:50%;background:#fff;box-shadow:0 0 2px #fff8;animation:worldSnowfall var(--t) linear infinite;animation-delay:var(--d)}
.exp-snow-drift.near{filter:blur(.5px)}.exp-snow-drift.far{opacity:.72}
.exp-wind-veil{position:absolute;inset:-20%;background:radial-gradient(ellipse at 18% 70%,#eaf1ff40,transparent 43%),radial-gradient(ellipse at 90% 10%,#fff3,transparent 28%);animation:worldMist 19s ease-in-out infinite alternate;opacity:.5}
.exp-tree-crown{animation-name:worldTreeSway;animation-duration:var(--sway-time,6s);transform-origin:50% 100%;transform-box:fill-box}
.exp-chimney-smoke{animation:worldSmoke 4.8s ease-out infinite;transform-box:fill-box;transform-origin:50% 100%}.exp-chimney-smoke.late{animation-delay:-2.4s}
.exp-cabin-light{animation:worldWindow 4s ease-in-out infinite alternate}
@keyframes worldTreeSway{0%{transform:rotate(-2.4deg) skewX(-.6deg)}55%{transform:rotate(.7deg)}100%{transform:rotate(3.2deg) skewX(.7deg)}}
@keyframes worldSnowfall{0%{transform:translate3d(-25px,0,0);opacity:0}8%{opacity:var(--o)}90%{opacity:var(--o)}100%{transform:translate3d(80px,calc(100dvh + 45px),0);opacity:0}}
@keyframes worldMist{from{transform:translateX(-4%) translateY(1%)}to{transform:translateX(5%) translateY(-3%)}}
@keyframes worldSceneBreathe{from{transform:scale(1.035) translateX(-.4%)}to{transform:scale(1.075) translateX(.4%)}}
@keyframes worldFireGlow{0%,100%{opacity:.45}30%{opacity:.7}65%{opacity:.4}80%{opacity:.8}}
@keyframes worldEmbers{0%{transform:translateY(0) translateX(0);opacity:0}15%{opacity:.65}100%{transform:translateY(-190px) translateX(35px);opacity:0}}
@keyframes worldSmoke{0%{opacity:0;transform:translate(0,0) scale(.6)}20%{opacity:.35}100%{opacity:0;transform:translate(12px,-42px) scale(1.7)}}
@keyframes worldWindow{from{opacity:.65}to{opacity:1}}
@keyframes worldReceipt{from{opacity:0;transform:translateY(7px)}to{opacity:1;transform:translateY(0)}}
@media(max-width:520px){.exp-dialog-wallet{gap:14px;padding:8px 11px}.exp-wallet-label{font-size:7px;max-width:65px}.exp-dialog-wallet .exp-money{font-size:18px}.exp-map-heading{gap:5px}.exp-map-heading h2{font-size:16px}.exp-resources{gap:9px}.exp-resources .exp-icon-button{width:29px;height:31px;min-height:31px;flex-basis:29px;padding:6px}.exp-map-heading .exp-money{font-size:15px}.exp-dialog-body{padding:18px 17px;gap:11px}.exp-dialog-body .exp-dialogue-box p{font-size:17px}.exp-modal.exp-illustrated{border-radius:21px}.exp-dialog-body .exp-reward-heading h2{font-size:21px}.exp-dialog-body .exp-choice strong{font-size:12px}.exp-dialog-body .exp-event-choices{flex-direction:column}.exp-dialog-body .exp-relic-choice{padding:10px}.exp-receipt{font-size:11px;padding:10px 12px}.exp-dialog-body .exp-space-icon{display:none}}
@media(max-height:650px) and (max-aspect-ratio:4/3){.exp-overlay{padding-top:72px;padding-bottom:10px}.exp-dialog-wallet{height:49px;top:10px}.exp-dialog-body{padding:12px 15px;gap:8px}.exp-dialog-body h2{font-size:21px}.exp-dialog-body>p,.exp-dialog-body .exp-dialogue{font-size:11px!important;line-height:1.45!important}.exp-dialog-body .exp-button{min-height:35px;padding:8px 10px;font-size:11px}.exp-dialog-body .exp-choice{padding:8px 10px;gap:3px}.exp-dialog-body .exp-choice small{font-size:9px}.exp-dialog-body .exp-pause-menu .exp-button{min-height:32px;padding:7px;font-size:10px}.exp-modal.exp-illustrated.modal-event{grid-template-rows:minmax(65px,.58fr) minmax(0,1.42fr)}.exp-dialog-body .exp-dialogue-box p{font-size:15px;margin:10px 0 16px}.exp-dialog-body .exp-shop-item{gap:5px;padding:8px}.exp-dialog-body .exp-shop-item p{font-size:9px}.exp-dialog-body .exp-shop-item h3{font-size:11px}.exp-location-art figcaption{bottom:10px}}
@media(min-aspect-ratio:4/3){.exp-overlay{padding-top:max(68px,calc(env(safe-area-inset-top) + 64px));padding-bottom:max(12px,env(safe-area-inset-bottom))}.exp-dialog-wallet{height:46px;top:max(9px,env(safe-area-inset-top));width:min(780px,calc(100% - 40px))}.exp-dialog-wallet>div{flex-direction:row;align-items:center;gap:8px}.exp-dialog-wallet small{font-size:7px}.exp-wallet-label{max-width:none}.exp-modal.exp-illustrated{grid-template-columns:minmax(0,.85fr) minmax(0,1.15fr);grid-template-rows:minmax(0,1fr)!important;width:min(860px,100%);height:min(540px,100%);gap:0;padding:0}.exp-illustrated>.exp-location-art{grid-column:1;grid-row:1}.exp-illustrated>.exp-dialog-body{grid-column:2;grid-row:1;gap:12px;padding:22px}.exp-location-art>img{object-position:35% 50%}.exp-illustrated>.exp-icon-button:first-child{left:12px;right:auto}.exp-dialog-body .exp-event-choices{flex-direction:column}.exp-dialog-body .exp-relic-options{flex-direction:column}.exp-dialog-body .exp-relic-choice{display:grid;grid-template-columns:30px 1fr;text-align:left;gap:3px 9px;padding:10px}.exp-modal.modal-shop.exp-illustrated{grid-template-columns:minmax(0,.65fr) minmax(0,1.35fr)}.exp-modal.modal-reward.exp-illustrated,.exp-modal.modal-shopPack.exp-illustrated{grid-template-columns:minmax(0,.5fr) minmax(0,1.5fr)}.exp-dialog-body .exp-shop-heading{align-self:center}.exp-dialog-body .exp-screen-footer{grid-column:auto;grid-row:auto;flex-wrap:nowrap;align-self:stretch}.exp-modal.modal-story.exp-illustrated{grid-template-columns:1fr 1fr}.exp-dialog-body .exp-dialogue-box p{font-size:19px}.exp-dialog-body .exp-pause-menu{grid-column:auto;grid-row:auto}.exp-dialog-body .exp-reward-heading,.exp-dialog-body .exp-reward-cards,.exp-dialog-body .exp-reward-note,.exp-dialog-body>.exp-button,.exp-dialog-body>.exp-dialog-actions{grid-column:auto;grid-row:auto}.exp-dialog-body .exp-pause-menu .exp-button{font-size:10px;min-height:36px}}
@media(min-aspect-ratio:4/3) and (max-height:500px){.exp-overlay{padding-top:61px;padding-bottom:9px}.exp-dialog-wallet{height:43px;top:8px}.exp-illustrated>.exp-dialog-body{padding:13px 17px;gap:7px}.exp-dialog-body h2{font-size:21px}.exp-dialog-body>p{font-size:11px}.exp-dialog-body .exp-dialogue{font-size:11px!important;line-height:1.5!important}.exp-dialog-body .exp-choice{padding:8px 11px}.exp-dialog-body .exp-choice small{font-size:9px}.exp-dialog-body .exp-pause-menu{gap:5px}.exp-dialog-body .exp-pause-menu .exp-button{min-height:29px;padding:7px}.exp-volume{padding:0}.exp-dialog-body .exp-dialogue-box p{font-size:16px;margin:12px 0 18px}.exp-dialog-body .exp-shop-item{padding:9px;gap:5px}.exp-dialog-body .exp-shop-item h3{font-size:12px}.exp-dialog-body .exp-shop-item p{font-size:9px}.exp-dialog-body .exp-shop-item>span{height:20px}.exp-dialog-body .exp-reward-heading h2{font-size:20px}.exp-dialog-body .exp-reward-heading .exp-money{font-size:12px}.exp-dialog-body .exp-button{min-height:33px;padding:7px 12px}}
.calm-motion .exp-app *,.calm-motion .exp-app *:before,.calm-motion .exp-app *:after{animation:none!important;transition:none!important}.calm-motion .exp-snow-drift,.calm-motion .exp-scene-motes{display:none}
@media(prefers-reduced-motion:reduce){.exp-app *,.exp-app *:before,.exp-app *:after{animation:none!important;transition:none!important}.exp-snow-drift,.exp-scene-motes{display:none}}
@media(max-height:650px) and (max-aspect-ratio:4/3){.exp-modal.exp-illustrated.modal-shop{grid-template-rows:70px minmax(0,1fr)}.exp-dialog-body .exp-shop-item>span{display:none}}
@media(min-aspect-ratio:4/3) and (max-height:500px){.exp-dialog-body .exp-shop-heading>.exp-eyebrow,.exp-dialog-body .exp-shop-heading>small,.exp-dialog-body .exp-shop-item>span{display:none}}

/* Boss art and deck preview fit the same fixed screen shell. */
.exp-encounter-art .exp-boss-scene{width:100%;height:100%;object-fit:cover;object-position:50% 45%;border-radius:18px;display:block}
.exp-boss-deck-preview{display:grid;gap:10px;min-height:0;width:100%}.exp-boss-deck-preview article{display:grid;grid-template-columns:72px minmax(0,1fr);gap:12px;background:#161b24;border-radius:15px;padding:10px;text-align:left}.exp-boss-deck-preview article>div{height:88px;border-radius:9px;overflow:hidden}.exp-boss-deck-preview .generated-art{height:100%;width:100%;object-fit:cover}.exp-boss-deck-preview h3{font-size:14px;margin:4px 0}.exp-boss-deck-preview p{font-size:11px;line-height:1.4;margin:0}.exp-boss-deck-preview small{font-size:9px;color:#aab5c8}.modal-bossDeck{display:flex!important;flex-direction:column;justify-content:center;gap:12px}.modal-bossDeck h2{margin:0}.exp-encounter-copy .exp-dialog-actions{flex-wrap:wrap}.exp-tile.boss small{max-width:140px;white-space:normal;font-size:10px;line-height:1.1}
@media(max-height:500px){.exp-boss-deck-preview{grid-template-columns:1fr 1fr}.exp-boss-deck-preview article{grid-template-columns:48px minmax(0,1fr);padding:7px}.exp-boss-deck-preview article>div{height:72px}.modal-bossDeck{gap:6px}.exp-boss-deck-preview p{font-size:10px}.exp-encounter-copy .exp-dialog-actions .exp-button{min-height:28px;padding:6px 9px}}

/* Illustrated world: quiet route markers, generated scenery, crisp readable HUD. */
.exp-map-page{background:#162735}.exp-board{background:#aac2d1}
.exp-terrain{filter:saturate(.95)}
.exp-tile,.exp-tile.boss{width:36px;height:36px;padding:7px;border:1px solid #d4e5ed85;background:#132633ed;box-shadow:0 3px 9px #09233370;overflow:visible}
.exp-tile.future{opacity:.78;background:#192b39df;border-color:#b8cdd64d}
.exp-tile.cleared{width:24px;height:24px;padding:4px;background:#d6e6eac7;color:#3b6d70;opacity:.72;outline:none}
.exp-tile.cleared .exp-icon{width:14px;height:14px}
.exp-tile.reachable{width:42px;height:42px;background:#183c45;outline:2px solid #9dece0;outline-offset:3px;box-shadow:0 0 16px #b1fff470}
.exp-tile.boss{width:46px;height:46px;border-color:#e8ba8580;background:#342d2bed}
.exp-tile small{background:#102432eb;color:#edf4f5!important;box-shadow:0 2px 8px #10243344;font-size:9px!important;top:calc(100% + 8px)}
.world-stop-badge{position:relative;z-index:2;display:flex;align-items:center;justify-content:center}
.world-stop-sprite{position:absolute;left:50%;bottom:20px;translate:-50% 0;width:66px;height:58px;background-image:url('assets/world/sprites-flat.webp');background-repeat:no-repeat;background-size:400% 300%;pointer-events:none;filter:drop-shadow(0 3px 3px #112d3a66);z-index:1}
.exp-tile.cleared .world-stop-sprite{display:none}
.road-shadow path{stroke:#213e5060;stroke-width:8;stroke-opacity:1}
.road-track path{stroke:#fff1cc;stroke-width:3;stroke-dasharray:2 9;stroke-opacity:.85}
.road-track .travelled{stroke:#558d8c;stroke-width:2;stroke-opacity:.6}
.road-track .ahead{stroke:#faffeb;stroke-width:4;stroke-opacity:1;filter:drop-shadow(0 0 3px #8bece3)}
.exp-map-heading,.exp-map-dock{box-shadow:0 8px 32px #06131d4d;border:1px solid #a7c3d125;background:#0b1821ed}
.exp-pawn{box-shadow:0 3px 12px #04111dcc,0 0 15px #91f9e970}
@media(min-aspect-ratio:4/3){.world-stop-sprite{width:54px;height:48px;bottom:18px}.exp-tile small{font-size:8px!important}}
.sprite-0{background-position:0.0000% 0%}
.sprite-1{background-position:33.3333% 0%}
.sprite-2{background-position:66.6667% 0%}
.sprite-3{background-position:100.0000% 0%}
.sprite-4{background-position:0.0000% 50%}
.sprite-5{background-position:33.3333% 50%}
.sprite-6{background-position:66.6667% 50%}
.sprite-7{background-position:100.0000% 50%}
.sprite-8{background-position:0.0000% 100%}
.sprite-9{background-position:33.3333% 100%}
.sprite-10{background-position:66.6667% 100%}
.sprite-11{background-position:100.0000% 100%}
.exp-tile:not(.cleared) .sprite-2,.exp-tile:not(.cleared) .sprite-5,.exp-tile:not(.cleared) .sprite-9{animation:worldSpriteGlow 4s ease-in-out infinite}
@keyframes worldSpriteGlow{50%{filter:drop-shadow(0 0 5px #f2d6a870) brightness(1.09)}}
@media(prefers-reduced-motion:reduce){.world-stop-sprite{animation:none!important}}

/* Sparse vector world: flat shapes and low visual density. */
.exp-terrain{filter:none}.world-stop-sprite{width:44px;height:40px;bottom:22px;filter:none}
.exp-tile.distant{width:17px;height:17px;padding:3px;background:#243c5170;border:1px solid #d2dfec75;opacity:.55;box-shadow:none}
.exp-tile.distant .exp-icon{width:10px;height:10px}.exp-tile.distant .world-stop-sprite{display:none}
.exp-tile.future .world-stop-sprite{opacity:.8}
.road-shadow path{stroke:#536b8040;stroke-width:4}
.road-track path.unvisited{stroke:#516c88;stroke-opacity:.28;stroke-width:1.6;stroke-dasharray:2 9}
.road-track .travelled{stroke:#568b93;stroke-width:1.8;stroke-opacity:.4}
.road-track .ahead{stroke:#f4fff5;stroke-width:3;filter:none}
.exp-tile.future{background:#21394bbc;border-color:#c3d4e359}
.exp-tile.distant small{display:none}.exp-tile.distant:focus-visible small{display:block}

/* Final polish: restrained motion and compact journey feedback. */
.exp-journey-progress{display:flex;gap:3px;margin-top:8px;max-width:190px;height:3px}.exp-journey-progress i{position:relative;flex:1;border-radius:3px;background:#a8c4d525;overflow:hidden}.exp-journey-progress i:after{content:"";display:block;height:100%;width:var(--fill);background:#8adbd1;transition:width .45s ease}.exp-journey-progress .active{background:#aac9db60}
.exp-path-choice>span{display:flex;flex-direction:column;text-align:left;gap:2px}.exp-path-choice>span>small{font-size:8px;color:#b4c9d1;letter-spacing:1px;text-transform:uppercase}.exp-path-hint>small{color:#7d9dab;font-size:10px}
.exp-tile:after{content:"";position:absolute;inset:-8px;border-radius:50%;pointer-events:auto}.exp-tile.distant:after{inset:-14px}.exp-tile.cleared:after{inset:-10px}.exp-tile.reachable{width:44px;height:44px}
.exp-tile,.exp-icon-button,.exp-party-card,.exp-path-choice{transition:background-color .18s,border-color .18s,box-shadow .18s,opacity .18s}.exp-tile.reachable:hover{background:#265c61;border-color:#d6fff2}.exp-tile:focus-visible{outline:2px solid #efffff;outline-offset:5px}
.exp-party-card.injured .exp-party-health i{background:#e5aa8b}.exp-party-card.injured small b{color:#efbd9f}
.exp-pawn{will-change:translate}.exp-pawn:after{content:"";position:absolute;left:50%;bottom:-5px;translate:-50% 0;width:21px;height:5px;border-radius:50%;background:#12334335;pointer-events:none}
.exp-receipt{max-width:calc(100% - 32px);pointer-events:none;box-shadow:0 6px 24px #05141f35}
.exp-location-art img{backface-visibility:hidden}.exp-modal{overscroll-behavior:contain}.exp-dialog-body{scrollbar-width:thin;scrollbar-color:#506775 transparent;overscroll-behavior:contain}
.exp-encounter-copy h2{text-wrap:balance}.exp-dialogue,.exp-dialogue-box p{max-width:48ch;text-wrap:pretty}.exp-dialog-body .exp-button.primary{box-shadow:0 3px 0 #173f4540}
.exp-scene-motes{opacity:.55}.exp-wind-veil{opacity:.1}.exp-map-atmosphere .near{opacity:.5}
@media(max-width:420px){.exp-map-heading{padding:10px 12px;gap:6px}.exp-map-heading h2{font-size:16px}.exp-resources{gap:8px}.exp-resources .exp-money{font-size:15px}.exp-map-tools{gap:6px}.exp-path-choice{padding:8px 10px;font-size:11px}.exp-path-choice .exp-icon{width:17px;height:17px}.exp-journey-progress{max-width:145px}}
@media(min-aspect-ratio:4/3){.exp-journey-progress{margin-top:5px}.exp-path-choice>span>small{font-size:7px}}
@media(prefers-reduced-motion:reduce){.exp-journey-progress i:after{transition:none}.exp-pawn{will-change:auto}}

/* Preserve map positioning while giving a small press response. */
.exp-app button.exp-tile:not(:disabled):active{transform:translate(-50%,-50%) scale(.96)}

/* Booster rewards: the artwork introduces the loot without displacing it. */
.exp-modal.exp-illustrated:is(.modal-reward,.modal-shopPack){width:min(680px,100%);height:min(660px,100%);grid-template-columns:minmax(0,1fr);grid-template-rows:clamp(76px,16dvh,120px) minmax(0,1fr)}
.exp-modal:is(.modal-reward,.modal-shopPack)>.exp-location-art{grid-column:1;grid-row:1}
.exp-modal:is(.modal-reward,.modal-shopPack)>.exp-location-art>img{object-position:40% 58%;animation:none;transform:none}
.exp-modal:is(.modal-reward,.modal-shopPack)>.exp-location-art figcaption{display:none}
.exp-modal:is(.modal-reward,.modal-shopPack)>.exp-dialog-body{grid-column:1;grid-row:2;justify-content:flex-start;align-items:stretch;gap:12px;padding:18px;overflow-y:auto;overflow-x:hidden}
.exp-dialog-body .exp-reward-heading{width:100%;gap:6px;flex:0 0 auto}
.exp-dialog-body .exp-reward-heading h2{font-size:22px;line-height:1.15}
.exp-dialog-body .exp-reward-currencies{gap:12px}
.exp-reward-currencies .exp-money{padding:5px 12px;background:#ffffff06;border:1px solid #ffffff12;border-radius:8px}
.exp-dialog-body .exp-reward-cards{flex:1 0 190px;max-height:300px;gap:9px;width:100%;margin:0}
.exp-dialog-body .exp-reward-card{height:100%;min-height:0;text-align:left;border-radius:12px;background:#17212a;box-shadow:0 4px 14px #0004}
.exp-dialog-body .exp-card-art{flex:1 1 0;min-height:0}
.exp-dialog-body .exp-card-info{padding:10px 8px;gap:6px;min-height:86px;background:linear-gradient(145deg,#202c36,#131c24)}
.exp-dialog-body .exp-card-info h3{margin:0;min-height:29px;display:block;text-align:left;font-size:11px;line-height:1.3}
.exp-dialog-body .exp-card-info small{font-size:7px;line-height:1.3;color:#aac3ca;letter-spacing:.3px}
.exp-dialog-body .exp-card-info b{font-size:8px;color:var(--mint)}
.exp-reward-rarity{position:absolute;top:7px;left:7px;z-index:2;padding:4px 6px;border:1px solid var(--rarity);background:#101820e8;color:var(--rarity);border-radius:5px;font-size:8px;font-weight:700}
.exp-reward-cost{position:absolute;right:7px;top:7px;z-index:2;display:grid;place-items:center;width:24px;height:24px;border-radius:7px;background:#08131aeb;color:var(--mint);font-size:12px;font-weight:800}
.exp-card-art em{top:auto;bottom:7px}
.exp-dialog-body .exp-reward-note{margin:0;line-height:1.4;font-size:10px!important}
.exp-modal:is(.modal-reward,.modal-shopPack) .exp-dialog-actions{justify-content:center;margin-top:auto;gap:10px;width:100%}
.exp-modal:is(.modal-reward,.modal-shopPack) .exp-dialog-actions>.exp-button.primary{flex:1;max-width:270px;min-height:42px}
@media(min-aspect-ratio:4/3){
 .exp-modal.exp-illustrated:is(.modal-reward,.modal-shopPack){grid-template-columns:minmax(90px,.3fr) minmax(0,1.7fr);grid-template-rows:minmax(0,1fr)!important}
 .exp-modal:is(.modal-reward,.modal-shopPack)>.exp-dialog-body{grid-column:2;grid-row:1;padding:14px;gap:9px}
 .exp-dialog-body .exp-reward-cards{flex-basis:170px;max-height:280px}
 .exp-dialog-body .exp-card-info{min-height:75px;padding:8px}
}
@media(max-width:380px){.exp-dialog-body .exp-reward-cards{gap:6px}.exp-dialog-body .exp-card-info{padding:8px 6px}.exp-dialog-body .exp-card-info h3{font-size:10px}.exp-reward-rarity{left:4px;font-size:7px;padding:3px 4px}.exp-reward-cost{right:4px;width:20px;height:20px;font-size:10px}}

/* Let terrain continue behind the floating header, without a page-colour strip. */
.exp-map-page .exp-board-viewport{top:0}
/* Overworld: quiet scenery, readable choices and physical travel. */
.exp-map-page:after{content:'';position:absolute;inset:70px 0 105px;pointer-events:none;z-index:1;background:linear-gradient(#16273525,transparent 15%,transparent 80%,#16273540)}.exp-map-heading{background:linear-gradient(135deg,#132735f5,#0a1721f5);border-color:#c9e8f02b}.exp-map-title h2{letter-spacing:-.035em;text-wrap:balance;line-height:1.12}.exp-map-tools .exp-icon-button{background:#112736e8;border:1px solid #c4e5ec25;box-shadow:0 3px 8px #09182525;backdrop-filter:blur(8px)}.exp-map-dock{background:linear-gradient(135deg,#142b37f5,#0b1821f5);box-shadow:0 -4px 25px #102a3733,0 8px 30px #07152055;border-color:#bcdbe82b}.exp-party-card{background:#122833b3;border-color:#9dbece22;border-radius:13px}.exp-party-image{box-shadow:inset 0 0 0 1px #ffffff15}.exp-party-health{height:4px;background:#08151fb0}.exp-path-choice{background:linear-gradient(145deg,#213a47,#142a36);border:1px solid #c5e0e029;box-shadow:0 2px 0 #06172580;min-height:44px}.exp-path-choice .exp-icon{color:var(--tile);flex-shrink:0}.exp-path-choice>span>small{font-size:7px;letter-spacing:.6px}.exp-path-choice:hover,.exp-path-choice:focus-visible{background:#284b56;border-color:var(--tile);box-shadow:0 0 0 2px #aeeade20}.exp-path-choice:disabled{opacity:.55}.exp-tile.reachable{animation:none;outline:2px solid #d4fff080;outline-offset:5px;border-color:#e4fff4;box-shadow:0 3px 0 #456778,0 5px 15px #16384655}.exp-tile.reachable:before{inset:-9px;border:1px solid #d5fff0a0;border-radius:50%;pointer-events:none;animation:mawRouteRing 2.8s ease-out infinite}.exp-tile.reachable small{padding:3px 6px;border-radius:6px;background:#102d3ddc;color:#f2fcff;font-size:8px;letter-spacing:.1px;white-space:nowrap;box-shadow:0 2px 5px #12273322}.exp-tile.current{outline-color:#f4f9e780}.exp-tile.route-preview{background:#2b6267;outline-color:#effff7}.road-track .ahead{stroke:#f5fff2;stroke-width:3;stroke-dasharray:3 8;animation:mawRouteFlow 2.5s linear infinite}.road-track .route-preview{stroke:#fff5c9;stroke-width:5;stroke-opacity:1}.exp-pawn{border-color:#e4fff1;box-shadow:0 3px 0 #33515c,0 6px 12px #14374570}.exp-pawn-aura{position:absolute;inset:-4px;z-index:-1;border-radius:14px;background:#b2fff018;box-shadow:0 0 16px #bbfff026;pointer-events:none}.exp-pawn img{transform-origin:50% 95%}.exp-pawn:after{width:29px;height:7px;bottom:-8px;background:#15364245}.exp-map-atmosphere .near{opacity:.6}.exp-wind-veil{opacity:.16}
@keyframes mawRouteRing{from{opacity:.6;scale:.9}to{opacity:0;scale:1.35}}@keyframes mawRouteFlow{to{stroke-dashoffset:-22}}
@media(min-aspect-ratio:4/3){.exp-map-page:after{inset:70px 0 78px}.exp-path-choice{min-height:36px}}
@media(max-width:360px){.exp-map-heading h2{font-size:14px}.exp-resources{gap:5px}.exp-map-heading{padding:9px}.exp-path-choice{padding:7px;font-size:10px}.exp-path-choice>span>small{font-size:6px}.exp-party-copy strong{font-size:10px}}
/* The map is the hero: compact the persistent HUD into two quiet bands and
   reserve generous clearance above it for the final route stop. */
@media(max-width:520px){
 .exp-map-page{padding-inline:8px;padding-bottom:max(8px,env(safe-area-inset-bottom))}
 .exp-map-heading{width:100%;min-height:0;padding:8px 10px;align-items:center;border-radius:16px}
 .exp-map-title{min-width:0;flex:1}
 .exp-map-title>small{font-size:6px;letter-spacing:1.4px}
 .exp-map-title h2{font-size:16px;margin-top:2px;max-width:14ch}
 .exp-journey-progress{max-width:132px;margin-top:5px}
 .exp-resources{display:grid;grid-template-columns:repeat(2,max-content);gap:4px 7px;justify-items:end}
 .exp-hud-amount{display:flex;flex-direction:row-reverse;align-items:center;gap:3px;padding:3px 6px;border-radius:9px;background:#ffffff0d}
 .exp-hud-amount small{display:none}
 .exp-map-heading .exp-money{font-size:14px}.exp-map-heading .exp-money .exp-icon{width:14px;height:14px}
 .exp-resources details{grid-column:1/2}.exp-resources>.exp-icon-button{grid-column:2/3;grid-row:2;width:31px;min-height:31px;flex-basis:31px}
 .exp-board-viewport{padding:18px 8px 22px}
 .exp-map-dock{width:100%;padding:7px 8px;border-radius:16px}
 .exp-party-strip{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:5px;padding-bottom:6px}
 .exp-party-card{display:grid;grid-template-columns:27px minmax(0,1fr);gap:5px;padding:4px;min-height:39px;border-radius:10px}
 .exp-party-image{width:27px;height:31px;border-radius:7px}
 .exp-party-copy{gap:2px}.exp-party-copy strong{font-size:9px}.exp-party-copy small{font-size:8px;line-height:1;white-space:nowrap}.exp-party-health{height:2px}
 .exp-party-temp{color:#aeeef0}
 .exp-path-heading{gap:6px}.exp-path-hint{font-size:8px}.route-compare-button{font-size:9px;padding-inline:8px;min-height:32px}
 .exp-path-options{gap:5px}.exp-path-choice{min-height:38px;padding:6px 8px;font-size:9px}
}
@media(max-width:360px){.exp-map-title h2{font-size:14px}.exp-map-heading{padding:7px}.exp-resources{gap:3px 5px}.exp-map-dock{padding:6px}.exp-party-card{grid-template-columns:24px minmax(0,1fr)}.exp-party-image{width:24px;height:28px}.exp-party-copy small{font-size:7px}.exp-party-temp{display:none}}
@media(prefers-reduced-motion:reduce){.exp-world-lantern,.exp-world-glow,.exp-world-shimmer,.exp-chimney-smoke,.exp-tile.reachable:before,.road-track .ahead{animation:none!important}.exp-chimney-smoke{display:none}.exp-tile.reachable:before{opacity:.4}}.calm-motion .exp-tile.reachable:before{animation:none!important}.calm-motion .exp-chimney-smoke{display:none}
