/* The Pale Maw: one viewport, one task. Every large collection is paginated. */
:root{--ink:#090b0e;--panel:#111418;--line:#ffffff20;--muted:#a3acb8;--mint:#98e1d9;--gold:#e4c184;--display:system-ui,-apple-system,sans-serif;--screen:100dvh;color-scheme:dark}
html,body{width:100%;height:100%;min-height:0;overflow:hidden;overscroll-behavior:none;background:#080b10;color:#fff}
body{position:fixed;inset:0;touch-action:manipulation}
#app{height:100%;height:100dvh;width:100%;overflow:hidden}
.shell{max-width:none;width:100%;height:100%;margin:0;padding:max(8px,env(safe-area-inset-top)) max(8px,env(safe-area-inset-right)) max(8px,env(safe-area-inset-bottom)) max(8px,env(safe-area-inset-left));display:flex;flex-direction:column;overflow:hidden;gap:6px}
.game-expedition .shell{padding:0;gap:0}.game-expedition .top{display:none}
.top{flex:0 0 32px;height:32px;margin:0;padding:0 5px}.wordmark{font:800 15px system-ui;letter-spacing:1px}.wordmark small{display:none}.wordmark span{color:#fff}.top-controls{gap:5px}.icon-button{background:#111418;border-radius:12px;color:#fff;width:32px;height:32px}
.exp-app{position:relative;isolation:isolate;width:100%;height:100%;overflow:hidden;background:#080c13 url('assets/expedition/pale-maw-ship.webp') center/cover no-repeat;font-size:14px;line-height:1.45;color:#f6f8fa}
.exp-app:before{content:'';position:absolute;inset:0;background:#070b12d6;z-index:-1;pointer-events:none}.exp-screen-hub:before{background:linear-gradient(90deg,#070b12df,#070b1260 60%,#070b1220)}
.exp-icon{width:21px;height:21px;flex-shrink:0;display:inline-block;vertical-align:middle}.exp-eyebrow{font-size:10px;letter-spacing:2.4px;font-weight:650;color:var(--mint);text-transform:uppercase}
.exp-button,.exp-icon-button,.exp-tab,.exp-link{display:inline-flex;align-items:center;justify-content:center;gap:9px;border-radius:14px;background:#191d22;color:#fff;border:1px solid #ffffff1c;min-height:44px;padding:10px 17px;font-weight:650;font-size:13px;line-height:1.25;text-decoration:none}
.exp-icon-button{width:44px;padding:10px;flex:0 0 44px}.exp-button.primary{background:var(--mint);border-color:transparent;color:#0b2224}.exp-button.secondary{background:#20252c}.exp-button.danger{color:#ffb1b3;background:#371f26}.exp-link{background:none;border:0;color:#c1c9d2;padding:7px;font-size:12px}.danger{color:#ef9ba5}.exp-tab{min-height:36px;padding:8px 12px;font-size:12px}.exp-tab.active{color:#fff;background:#354446;border-color:#89d4cc80}
.exp-app button:disabled{opacity:.35}.exp-app button:focus-visible{outline:2px solid #c7ffff;outline-offset:3px}.exp-app button:not(:disabled):active{transform:scale(.97)}
.exp-money{display:inline-flex;align-items:center;gap:6px;white-space:nowrap;color:var(--gold);font-size:15px}.exp-money.gem{color:#c6b4ed}.exp-money .exp-icon{width:17px;height:17px}.exp-money b{font-variant-numeric:tabular-nums}.exp-money em{font-style:normal}
.exp-app h1{font-size:clamp(26px,4vw,48px);line-height:1.1;letter-spacing:-1.3px}.exp-app h2{font-size:clamp(20px,3vw,30px);line-height:1.12;letter-spacing:-.7px}.exp-app h3{font-size:15px;line-height:1.3}.exp-app p{color:#b5c0cb;font-size:13px;line-height:1.6}.exp-app small{font-size:11px;color:#a6b0bc}.exp-app strong{color:#fff}.exp-app em{font-style:normal}
.exp-hub{height:100%;padding:clamp(20px,4vw,55px);padding-top:max(22px,env(safe-area-inset-top));padding-bottom:max(18px,env(safe-area-inset-bottom));display:grid;grid-template-rows:44px 1fr auto auto 18px;gap:15px;max-width:1600px;margin:auto}
.exp-hub-top{display:flex;align-items:center;gap:20px}.exp-wordmark{font-size:12px;font-weight:750;letter-spacing:3px;margin-right:auto}.exp-hub-top .exp-icon-button{background:#0a0e14b0}
.exp-title-scene{display:flex;flex-direction:column;justify-content:center;align-items:flex-start;gap:22px}.exp-title-scene h1{font-size:clamp(55px,8.8vw,124px);font-weight:850;letter-spacing:-4px;line-height:.9;text-shadow:0 7px 60px #05091080}.exp-title-scene h1 span{color:var(--mint)}.exp-title-scene p{font-size:clamp(13px,1.5vw,17px);color:#d3dce7}
.exp-title-actions{display:flex;align-items:center;gap:18px}.exp-title-actions .exp-button{min-width:225px;min-height:53px}.exp-title-actions>small{max-width:170px}
.exp-main-nav{display:flex;gap:8px}.exp-menu-item{display:flex;align-items:center;gap:9px;min-height:48px;border:1px solid #ffffff20;padding:12px 17px;border-radius:14px;background:#080d15b0;color:#fff;font-size:12px}.exp-cycle{color:#a9b9c9;font-size:9px;letter-spacing:2px;align-self:end}
.exp-snow{position:absolute;inset:-30% 0 0;pointer-events:none;z-index:1;opacity:.28;background-image:radial-gradient(circle at 12px 14px,#fff 1px,transparent 2px),radial-gradient(circle at 87px 82px,#fff 1.5px,transparent 2.5px);background-size:170px 190px,270px 310px;animation:mawSnow 20s linear infinite}.exp-screen-hub .exp-snow{opacity:.5}
.exp-page{height:100%;max-width:920px;margin:auto;padding:max(14px,env(safe-area-inset-top)) 20px max(14px,env(safe-area-inset-bottom));display:flex;flex-direction:column;gap:12px;position:relative;z-index:2;min-height:0}.exp-screen-heading{display:flex;align-items:center;gap:12px;flex:0 0 auto;min-height:48px}.exp-screen-heading>div{flex:1}.exp-screen-heading h2{font-size:22px}.exp-screen-heading small{display:block;margin-top:4px}.exp-screen-footer{display:flex;justify-content:space-between;align-items:center;gap:10px;flex:0 0 auto;margin-top:auto;min-height:44px}.exp-screen-footer.centered{justify-content:center}.exp-pager{display:flex;align-items:center;gap:12px;flex-shrink:0}.exp-pager>span{font-size:12px;min-width:38px;text-align:center;color:#fff;font-variant-numeric:tabular-nums}.exp-pager em{color:#7e8b99}.exp-pager .exp-icon-button{background:#171d24;width:38px;min-height:38px;flex-basis:38px;padding:9px}.exp-pager .exp-icon{width:17px;height:17px}
.exp-selected-party{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;flex:0 0 56px}.exp-selected-hero,.exp-empty-party{min-width:0;display:flex;gap:8px;align-items:center;background:#11171df0;border:1px solid #ffffff25;border-radius:14px;padding:7px;color:#fff;font-size:12px}.exp-selected-hero img{width:35px;height:40px;object-fit:cover;border-radius:9px}.exp-selected-hero span{overflow:hidden;text-overflow:ellipsis;flex:1;white-space:nowrap}.exp-selected-hero i{font-style:normal;color:#8997a5;font-size:18px}.exp-empty-party{border-style:dashed;justify-content:center;color:#718595}
.exp-hero-stage{flex:1;min-height:0;display:grid;grid-template-columns:1fr 1fr;gap:30px;align-items:center;border-radius:23px;overflow:hidden;background:#0a101877}.exp-hero-large{height:100%;min-height:0;position:relative;overflow:hidden}.exp-hero-large :is(.art,.foil-art){width:100%;height:100%;object-fit:cover;object-position:50% 24%}.exp-hero-large:after{content:'';position:absolute;inset:0;background:linear-gradient(90deg,transparent 65%,#0a1018)}.exp-hero-details{padding:20px 25px 20px 0;display:flex;flex-direction:column;gap:14px;align-items:flex-start}.exp-hero-details p{max-width:290px}.exp-hero-vital{display:flex;align-items:center;gap:7px;color:#f5a1b5;font-size:13px}
.exp-roster{display:grid;grid-template-columns:repeat(4,1fr);gap:8px;height:98px;flex:0 0 auto}.exp-hero-option{min-width:0;position:relative;background:#10171e;border:1px solid #ffffff25;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;border-radius:13px;padding:6px;color:#aab8c6}.exp-hero-option img{height:58px;width:58px;object-fit:cover;object-position:center 22%;border-radius:11px}.exp-hero-option span{font-size:11px}.exp-hero-option.selected{border-color:var(--mint);background:#173334;color:#fff}.exp-hero-option i{position:absolute;right:8px;top:5px;color:var(--mint);font-size:12px;font-style:normal}
.exp-upgrade-stage{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;gap:22px;min-height:0}.exp-upgrade-stage p{max-width:320px}.exp-upgrade-stage>.exp-button{min-width:190px}.exp-upgrade-icon{color:#c9b5ec;background:#221d2d;border:1px solid #c9b5ec40;border-radius:26px;width:95px;height:95px;display:grid;place-items:center;box-shadow:0 0 80px #ad83dc15}.exp-upgrade-icon .exp-icon{width:40px;height:40px}.exp-ranks{display:flex;gap:9px}.exp-ranks i{height:6px;width:32px;background:#29333e;border-radius:5px}.exp-ranks .earned{background:var(--mint)}
/* Map: the board fits between a small HUD and its control dock, never a scroll container. */
.exp-map-page{position:relative;height:100%;width:100%;display:flex;flex-direction:column;background:#bbcddc;overflow:hidden;padding:max(10px,env(safe-area-inset-top)) max(10px,env(safe-area-inset-right)) max(10px,env(safe-area-inset-bottom)) max(10px,env(safe-area-inset-left))}.exp-map-heading{display:flex;justify-content:space-between;align-items:center;gap:8px;position:relative;z-index:4;margin:0 auto;width:min(100%,1040px);padding:10px 13px;border-radius:18px;background:#0c1016f5;box-shadow:0 4px 20px #142e3a25;flex-shrink:0;min-height:65px}.exp-map-heading h2{font-size:19px;margin-top:3px}.exp-map-heading small{font-size:8px;letter-spacing:2px;color:#8ba1b4}.exp-resources{display:flex;gap:15px;align-items:center}.exp-resources .exp-icon-button{border:0;background:#222a32;min-height:36px;width:36px;flex-basis:36px;padding:8px}.exp-board-viewport{position:relative;flex:1;min-height:0;max-width:780px;width:100%;margin:0 auto;padding:15px 12px 14px}.exp-board{position:relative;width:100%;height:100%;max-width:540px;margin:auto;isolation:isolate}.exp-terrain{position:absolute;inset:-80px -8%;width:116%;height:calc(100% + 180px);z-index:-2;pointer-events:none}.exp-roads{position:absolute;inset:0;width:100%;height:100%;pointer-events:none}.exp-roads.landscape{display:none}.road-shadow path{fill:none;stroke:#718ba275;stroke-width:26;stroke-linecap:round;stroke-linejoin:round}.road-track path{fill:none;stroke:#f7fcff;stroke-width:15;stroke-linecap:round;stroke-linejoin:round}.road-track .travelled{stroke:#588d9a}
.exp-tile{position:absolute;left:var(--x);top:var(--y);transform:translate(-50%,-50%);width:clamp(30px,4.2vh,44px);height:clamp(30px,4.2vh,44px);background:#141d27;display:grid;place-items:center;border:2px solid #e0ebf1;border-radius:13px;color:var(--tile);padding:6px;box-shadow:0 3px 0 #6c889c,0 4px 10px #36536930;z-index:2}.exp-tile:before{content:'';position:absolute;inset:-5px}.exp-tile .exp-icon{height:19px;width:19px}.exp-tile.cleared{background:#68898f;color:#d9eff0;border-color:#d5e5e8;box-shadow:0 2px 0 #63818a}.exp-tile.current{outline:3px solid #66bdba;outline-offset:3px}.exp-tile.reachable{z-index:5;outline:3px solid #3daba7;outline-offset:4px;animation:mawTilePulse 1.2s infinite}.exp-tile.boss{border-color:#344b5c;background:#0b121c;width:42px;height:42px;border-radius:15px;box-shadow:0 0 0 5px #91a9bd33}.exp-tile small{position:absolute;top:calc(100% + 5px);font-size:7px;font-weight:850;letter-spacing:1px;color:#203c50;pointer-events:none}.exp-app .exp-tile:active{transform:translate(-50%,-50%) scale(.96)}.exp-pawn{position:absolute;left:var(--x);top:var(--y);transform:translate(-50%,-115%);width:37px;height:44px;padding:3px;border-radius:15px;background:#0a111b;border:2px solid #9cfff1;box-shadow:0 4px 15px #142b4690;z-index:6;pointer-events:none}.exp-pawn img{width:100%;height:100%;object-fit:cover;border-radius:9px}.exp-map-atmosphere{position:absolute;inset:0;pointer-events:none;background:linear-gradient(90deg,#c6d6e750,transparent 15%,transparent 85%,#c6d6e750)}
.exp-map-tools{position:absolute;left:max(12px,env(safe-area-inset-left));top:92px;z-index:4;display:flex;flex-direction:column;gap:7px}.exp-map-tools .exp-icon-button{width:35px;min-height:35px;flex-basis:35px;padding:8px;border:0;border-radius:12px;background:#0d1620df}.exp-map-tools .exp-icon{height:17px;width:17px}.exp-map-dock{position:relative;z-index:7;background:#0d1117f5;padding:10px 12px;border-radius:20px;width:min(100%,680px);margin:0 auto;box-shadow:0 4px 30px #34495c30;flex-shrink:0}.exp-party-strip{display:flex;gap:8px;justify-content:center;padding-bottom:9px;border-bottom:1px solid #ffffff12}.exp-party-card{display:flex;align-items:center;gap:8px;border:1px solid transparent;background:#192129;border-radius:12px;padding:6px;flex:1;min-width:0;max-width:210px;color:#fff;text-align:left}.exp-party-image{width:36px;height:40px;border-radius:8px;overflow:hidden;position:relative;flex-shrink:0}.exp-party-image :is(.art,.foil-art){width:100%;height:100%;object-fit:cover;object-position:center 25%}.exp-party-image i{position:absolute;inset:0;display:grid;place-items:center;font-size:30px;color:#fff;background:#0008;font-style:normal}.exp-party-copy{display:flex;flex-direction:column;gap:3px;flex:1;min-width:0}.exp-party-copy strong{font-size:11px;text-overflow:ellipsis;overflow:hidden;white-space:nowrap}.exp-party-health{height:3px;border-radius:3px;background:#3d4a54;overflow:hidden;display:block}.exp-party-health i{height:100%;display:block;background:var(--mint)}.exp-party-copy small{font-size:9px;line-height:1}.exp-party-copy em{color:#71818f}.exp-party-card.selected{border-color:var(--mint);background:#223b3e}.exp-party-card.fallen{filter:grayscale(1);opacity:.45}
.exp-travel-controls{display:flex;gap:9px;align-items:center;padding-top:9px;position:relative}.exp-travel-controls>.exp-button.primary{margin-left:auto;min-width:150px}.exp-die{height:42px;width:42px;border-radius:13px;background:#edf5f6;color:#19323c;display:flex;align-items:center;justify-content:center;gap:4px;flex-shrink:0}.exp-die i{width:6px;height:6px;border-radius:50%;background:#19323c}.exp-die.rolling{animation:mawRoll .14s linear infinite}.exp-travel-hint{font-size:10px!important;color:#8c9caa!important;order:0;margin-right:auto;white-space:nowrap}.exp-travel-controls .exp-button{order:2}.exp-travel-controls .exp-route-choices{order:2;display:flex;gap:6px;margin-left:auto}.exp-route-choices .exp-button{font-size:11px;min-height:42px;padding:8px 12px}.exp-travel-controls>.exp-icon-button{order:1;width:40px;flex-basis:40px;min-height:40px}
/* All overlays are self-contained stages. No growing lists or nested scrolling. */
.exp-overlay{position:absolute;inset:0;z-index:30;background:#060a10a0;backdrop-filter:blur(8px);display:flex;align-items:center;justify-content:center;padding:max(14px,env(safe-area-inset-top)) 14px max(14px,env(safe-area-inset-bottom));overflow:hidden}.exp-modal{position:relative;width:min(560px,100%);max-height:100%;min-height:0;border:1px solid #ffffff20;background:#101419f7;border-radius:24px;box-shadow:0 30px 80px #0006;padding:38px 25px 24px;display:flex;align-items:center;flex-direction:column;gap:17px;text-align:center;animation:mawEnter .22s ease both;overflow:hidden}.exp-modal>.exp-icon-button:first-child{position:absolute;right:10px;top:10px;width:33px;min-height:33px;flex-basis:33px;border:0;background:#222830;z-index:8;padding:7px}.exp-modal p{max-width:440px}.exp-modal .exp-screen-footer{width:100%}.exp-space-icon,.exp-story-symbol{width:60px;height:60px;display:grid;place-items:center;color:var(--tile,var(--mint));background:#27384366;border-radius:20px;flex-shrink:0}.exp-space-icon .exp-icon,.exp-story-symbol .exp-icon{width:29px;height:29px}.exp-dialog-actions{display:flex;justify-content:center;align-items:center;gap:10px;width:100%;flex-shrink:0}.exp-dialog-actions>.primary{min-width:180px}.exp-revive-options{display:flex;gap:6px;flex-wrap:wrap;justify-content:center}.exp-forge-heroes{display:flex;flex-direction:column;gap:8px;width:100%}.exp-forge-heroes .exp-button{justify-content:space-between}.exp-forge-heroes small{font-weight:400}
.exp-modal.encounter{display:grid;grid-template-columns:190px 1fr;width:min(760px,100%);padding:18px;gap:23px;text-align:left}.exp-encounter-art{height:100%;min-height:260px;border-radius:17px;overflow:hidden;background:#080c12;display:grid;place-items:center}.exp-encounter-art :is(.art,.foil-art){width:100%;height:100%;object-fit:cover}.maw-sigil{width:100%;height:100%;max-height:270px;filter:drop-shadow(0 0 18px #b7f7ff25)}.exp-encounter-copy{display:flex;flex-direction:column;align-items:flex-start;gap:14px;padding:18px 3px}.exp-enemy-preview{color:#ffa3b7;display:flex;gap:7px;align-items:center;font-size:14px}.exp-enemy-preview .exp-icon{width:17px}.exp-boss-power{font-size:12px!important;border-left:2px solid #9ad9db;padding-left:10px}.exp-fighter-list{display:flex;gap:6px;width:100%}.exp-fighter-list .exp-party-card{max-width:none;display:flex;flex-direction:column;text-align:center;padding:7px}.exp-fighter-list .exp-party-copy{width:100%}.exp-encounter-copy .exp-dialog-actions{justify-content:flex-start}
.exp-modal.modal-reward,.exp-modal.modal-shopPack{width:min(680px,100%);gap:14px}.exp-reward-heading{display:flex;flex-direction:column;align-items:center;gap:8px}.exp-reward-currencies{display:flex;gap:22px}.exp-reward-cards{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;width:100%;min-height:0}.exp-reward-card{position:relative;min-width:0;height:clamp(170px,38dvh,330px);border-radius:15px;border:1px solid var(--rarity,#9ad9db);background:#19212a;overflow:hidden;padding:0;display:flex;flex-direction:column;text-align:center}.exp-reward-card>img{width:100%;height:100%;object-fit:cover}.exp-reward-card.unrevealed>span{position:absolute;bottom:14px;left:0;right:0;font-size:10px;letter-spacing:1px;color:#c5e5df;background:#102125c0;padding:8px 0}.exp-card-art{position:relative;flex:1;min-height:0;overflow:hidden}.exp-card-art :is(.art,.foil-art){width:100%;height:100%;object-fit:cover;object-position:center 20%}.exp-card-art em{position:absolute;right:6px;top:6px;background:#070d17c0;border:1px solid #c0fbfc80;color:#a8fbf1;font-size:8px;padding:4px 6px;border-radius:6px}.exp-card-info{padding:9px 5px;flex:0 0 auto;display:flex;flex-direction:column;gap:4px}.exp-card-info small{color:var(--rarity);font-size:9px}.exp-card-info h3{font-size:12px}.exp-card-info b{color:var(--mint);font-size:8px}.exp-reward-note{font-size:10px!important}.exp-reward-card.fresh-reveal{animation:mawFlip .43s ease-out both}.exp-relic-options{display:flex;flex-direction:column;gap:9px;width:100%;min-height:0}.exp-relic-choice{display:grid;grid-template-columns:37px 1fr;gap:3px 12px;text-align:left;border:1px solid #ffffff20;padding:13px;border-radius:15px;background:#191e25;color:#fff;min-height:0}.exp-relic-choice>span{grid-row:1/4;color:#c2ade5;display:grid;place-items:center}.exp-relic-choice strong{font-size:13px}.exp-relic-choice small{font-size:11px;line-height:1.4}.exp-relic-choice b{font-size:10px;color:var(--mint)}.exp-relic-choice.selected{border-color:var(--mint)}
.exp-dialogue{font-size:16px!important;text-align:left;color:#e6ecf1!important;line-height:1.7!important}.exp-event-choices{display:flex;flex-direction:column;gap:9px;width:100%}.exp-choice{display:flex;flex-direction:column;gap:4px;background:#1b242d;color:#fff;border:1px solid #ffffff25;border-radius:15px;padding:13px 16px;text-align:left}.exp-choice strong{font-size:13px}.exp-choice small{font-size:11px;font-weight:400}
.exp-modal.modal-shop{width:min(640px,100%)}.exp-shop-heading{display:flex;align-items:center;gap:15px;flex-wrap:wrap;justify-content:center}.exp-shop-heading .exp-eyebrow{flex-basis:100%;font-size:9px}.exp-shop-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px;width:100%;min-height:0}.exp-shop-item{display:flex;flex-direction:column;align-items:center;gap:12px;padding:20px 14px;background:#1c232c;border-radius:17px;min-width:0;min-height:0}.exp-shop-item>span{color:var(--gold);height:40px;display:grid;place-items:center}.exp-shop-item>span .exp-icon{height:28px;width:28px}.exp-shop-item h3{font-size:15px}.exp-shop-item p{font-size:11px;flex:1}.exp-shop-item .exp-button{width:100%;font-size:12px}.exp-shop-item.sold{opacity:.5}.exp-app select,.exp-app input{min-width:0;width:100%;height:38px;border:1px solid #ffffff25;border-radius:11px;padding:8px 10px;background:#10151c;color:#eef4f8;font:12px system-ui}
.exp-modal.modal-decks{height:min(650px,100%);width:min(580px,100%);gap:10px;padding:30px 18px 18px}.exp-deck-tabs{display:flex;gap:5px;justify-content:center}.exp-deck-tabs .exp-tab{font-size:11px;min-height:32px}.exp-segment{display:flex;background:#090d12;border-radius:12px;padding:4px;gap:4px;width:100%}.exp-segment .exp-tab{flex:1;border:0}.exp-pool-controls,.exp-journal-controls{display:flex;gap:8px;width:100%;flex:0 0 38px}.exp-pool-controls select,.exp-journal-controls select{max-width:115px}.exp-deck-columns{flex:1;display:grid;grid-template-rows:repeat(5,minmax(0,1fr));gap:6px;width:100%;min-height:0}.exp-deck-row{display:flex;align-items:center;gap:9px;padding:4px 8px 4px 4px;background:#1a222b;border-radius:11px;min-height:0;text-align:left}.exp-deck-thumb{height:100%;width:44px;min-height:0;border:0;background:#223141;padding:0;border-radius:8px;overflow:hidden;flex:0 0 44px}.exp-deck-thumb :is(.art,.foil-art){width:100%;height:100%;object-fit:cover}.exp-deck-row>span{flex:1;min-width:0;display:flex;flex-direction:column;gap:3px}.exp-deck-row b{font-size:12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.exp-deck-row small{font-size:10px}.exp-deck-row em{font-size:10px;color:#a3b3c2}.exp-deck-row .exp-icon-button{height:32px;min-height:32px;width:32px;flex-basis:32px;padding:4px;font-size:19px;background:#2d3c49}.exp-deck-status{font-size:10px;color:#b1c0cd;flex-shrink:0}.exp-modal.modal-decks>.exp-eyebrow{font-size:9px}.exp-modal.modal-decks>h2{font-size:22px}
.exp-journal-grid{flex:1;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));grid-template-rows:repeat(2,minmax(0,1fr));gap:12px;min-height:0;padding-top:6px}.exp-journal-card{display:flex;flex-direction:column;min-height:0;min-width:0;background:#131c24;border:1px solid color-mix(in srgb,var(--rarity),transparent 45%);border-radius:14px;overflow:hidden;padding:0}.exp-journal-card>div{flex:1;min-height:0;width:100%;overflow:hidden}.exp-journal-card :is(.art,.foil-art){width:100%;height:100%;object-fit:cover;object-position:center 25%}.exp-journal-card strong{font-size:12px;margin:7px 5px 0;min-height:15px}.exp-journal-card small{font-size:9px;color:var(--rarity);margin:3px 5px 9px}.exp-empty-journal{grid-column:1/-1;grid-row:1/-1;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:14px}.exp-empty-journal>.exp-icon{width:50px;height:50px;color:#a6bccb}
.exp-modal.inspect{height:min(600px,100%);width:min(460px,100%);padding-top:30px;gap:17px}.exp-inspect-art{flex:1;min-height:0;width:min(100%,280px);border-radius:17px;overflow:hidden;background:#25313f}.exp-inspect-art :is(.art,.foil-art){width:100%;height:100%;object-fit:cover;object-position:center 25%}.exp-inspect-copy{display:flex;flex-direction:column;align-items:center;gap:10px;flex-shrink:0}.exp-inspect-copy>.exp-eyebrow{font-size:9px}.exp-inspect-copy p{font-size:12px;max-width:330px}.exp-inspect-stats{display:flex;gap:22px;font-size:14px;color:#d9c597}.exp-inspect-stats>span+span{color:#f5a2b6}
.exp-summary{height:100%;max-width:600px;margin:auto;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;gap:19px;padding:25px 18px;position:relative;z-index:2}.exp-summary-emblem{color:var(--mint)}.exp-summary-emblem>.exp-icon{width:50px;height:50px}.exp-summary-party{display:flex;gap:10px}.exp-summary-party img{width:55px;height:68px;object-fit:cover;border-radius:13px;border:1px solid #ffffff30}.exp-summary-gems{display:flex;align-items:center;gap:12px}.exp-summary-gems .exp-money{font-size:31px}.exp-summary-gems .exp-icon{width:27px;height:27px}.exp-summary-gems>small{font-size:9px;letter-spacing:2px;max-width:60px;text-align:left}.exp-summary-stats{display:flex;gap:30px}.exp-summary-stats span{display:flex;flex-direction:column;color:#91a4b5;font-size:10px;gap:3px}.exp-summary-stats b{color:#fff;font-size:20px}
.exp-legend-grid{display:flex;flex-direction:column;gap:16px;text-align:left;width:100%}.exp-legend-grid article{display:flex;align-items:center;gap:16px;min-height:60px}.exp-legend-grid article>span{color:var(--tile);background:#222a32;padding:12px;border-radius:13px}.exp-legend-grid h3{font-size:13px}.exp-legend-grid p{font-size:11px}.exp-guide-copy{min-height:110px;font-size:15px!important;display:flex;align-items:center}.exp-pause-menu{display:flex;flex-direction:column;gap:8px;width:100%}.exp-pause-menu .exp-button{justify-content:flex-start;min-height:44px}.exp-pause-menu .exp-link{min-height:32px}
.exp-modal.modal-story{width:min(850px,100%);height:min(560px,100%);padding:0;background:transparent;border:0;box-shadow:none;justify-content:flex-end;overflow:visible;gap:25px}.exp-overlay:has(.modal-story){background:#050b1170;backdrop-filter:blur(2px)}.exp-story-scene{flex:1;display:flex;align-items:center;justify-content:center;min-height:0}.exp-story-scene>.exp-icon{width:85px;height:85px;color:#bed6e4;opacity:.75}.exp-story-scene .maw-sigil{max-width:210px}.exp-dialogue-box{background:#0b1017f5;border:1px solid #62798866;border-radius:21px;padding:26px;text-align:left;width:100%;box-shadow:0 18px 55px #0006}.exp-dialogue-box p{font-size:clamp(17px,2.3vw,23px);line-height:1.5;color:#edf4f8;max-width:none;margin:15px 0 24px}.exp-dialogue-box footer{display:flex;align-items:center;justify-content:space-between}.exp-dialogue-box footer>span{font-size:11px;color:#627d90}
.exp-save-warning{position:absolute;z-index:60;top:5px;left:5px;right:5px;padding:10px;background:#3e2525;color:#ffe4df;border-radius:12px;font-size:11px}.exp-save-warning .exp-link{min-height:25px}
/* Existing card battles now occupy a bounded game stage. */
.battle-layout{flex:1;display:flex;min-height:0;width:100%;max-width:900px;margin:0 auto;gap:0}.battle-sidebar,.exp-battle-return{display:none}.battle-main{display:grid;grid-template-rows:minmax(0,1fr) clamp(140px,24dvh,195px);gap:5px;min-height:0;min-width:0;flex:1}.arena{border-radius:18px;border-color:#516e8240;min-height:0;box-shadow:none;background:#0b141e}.arena-content{padding:10px 14px;height:100%;display:grid;grid-template-rows:42px 28px minmax(0,1fr) var(--phase-row,38px) minmax(0,1fr) 28px 42px 40px;gap:6px;min-height:0}.hero-hud,.friendly{margin:0;gap:9px;min-height:0}.hero-seal{height:38px;width:37px;flex-basis:37px;border-radius:11px}.hero-heading strong{font-size:16px}.hero-heading small{font-size:7px}.hero-heading .hp{font-size:12px}.health{height:4px;margin-top:5px}.hud-energy{width:56px;gap:3px}.flame{height:19px;width:15px}.unit-row{gap:8px;min-height:0}.unit-slot{height:100%;min-height:0;border-radius:11px;background:#0b111bcc;backdrop-filter:none}.unit-caption{padding:14px 5px 6px;background:linear-gradient(0deg,#090e17,#090e17de 63%,transparent)}.unit-caption strong{font:700 clamp(10px,1.5vw,14px) system-ui}.unit-stats{font-size:11px;margin-top:2px;gap:12px}.unit-trait{font-size:7px;margin-top:2px}.support-row,.enemy-support{margin:0;gap:8px;min-height:0}.support-slot{padding:3px;min-height:0;border-radius:8px;background:#151b25b8}.support-slot small{font-size:8px}.support-slot.reflex{padding-bottom:6px}.support-slot>span{font-size:12px}.empty-title{display:none}.empty-rune{font-size:19px}.battle-divider{min-height:0;gap:9px}.battle-divider strong{font-size:11px;letter-spacing:1.5px}.battle-divider small{font-size:8px;max-height:21px;overflow:hidden}.turn-controls{margin:0;min-height:0}.stamina-caption b{font-size:19px}.stamina-caption span{font-size:7px}.end-turn{background:#9fe0d7;border:0;box-shadow:none;border-radius:12px;min-height:37px;padding:9px 17px;font-size:10px;color:#152a29}.hand-section{padding:0;min-height:0;display:grid;grid-template-rows:22px minmax(0,1fr) 17px;container-type:inline-size;overflow:visible}.hand-heading{margin:0;min-height:0}.hand-heading>span{font-size:8px;letter-spacing:1px}.hand-heading small{font-size:7px;letter-spacing:.3px}.hand{min-height:0;height:100%;padding:8px 6px 0;align-items:flex-start}.hand .battle-card{height:calc(100% - 5px);width:110px;flex-basis:110px;margin-left:calc(-1 * max(4px,(var(--count) * 110px - (100cqw - 12px)) / max(1,var(--count) - 1)));border-radius:11px;background:#131c26}.hand .battle-card:first-child{margin-left:0}.hand .card-portrait{height:54%}.hand .card-copy{height:46%;min-height:0;padding:5px 6px;background:#121921}.hand .card-copy strong{font:650 10px system-ui}.hand .card-stats{font-size:9px;margin-top:2px}.hand .card-keyword{font-size:7px;margin-top:3px;letter-spacing:.5px}.hand .card-copy p{display:none}.hand .cost{width:23px;height:26px;font-size:12px}.selection-help{height:17px;padding:0;font-size:8px;overflow:hidden}.selection-help>span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.selection-help b{font-size:8px}.selection-help button{font-size:14px}.hero-seal>.maw-sigil{height:100%;width:100%}.battle-card :is(.art,.foil-art),.hero-seal :is(.art,.foil-art),.unit-portrait :is(.art,.foil-art){width:100%;height:100%;object-fit:cover}.phase-banner strong{font:800 23px system-ui}.phase-banner small{font-size:9px}.toast{background:#0c121bf5;color:#eef6fa;border-radius:15px;font-size:12px;bottom:max(17px,env(safe-area-inset-bottom));max-width:90%;padding:11px 16px}
@keyframes mawSnow{to{background-position:70px 190px,-35px 310px}}@keyframes mawRoll{to{transform:rotate(90deg)}}@keyframes mawEnter{from{opacity:0;transform:translateY(12px) scale(.98)}to{opacity:1;transform:none}}@keyframes mawTilePulse{50%{outline-offset:7px;outline-color:#42beb777}}@keyframes mawFlip{0%{transform:perspective(700px) rotateY(90deg) scale(.95)}75%{transform:perspective(700px) rotateY(-6deg) scale(1.035)}100%{transform:perspective(700px) rotateY(0deg)}}
@media(max-width:700px){
 .exp-hub{padding-inline:24px;gap:13px}.exp-title-actions{flex-direction:column;align-items:flex-start;gap:9px}.exp-title-actions>.exp-button{width:100%;max-width:330px;min-height:52px}.exp-main-nav{gap:7px}.exp-menu-item{flex:1;max-width:108px;flex-direction:column;gap:6px;padding:12px 8px;font-size:10px}.exp-title-scene{gap:22px}.exp-title-scene h1{font-size:clamp(56px,13vw,88px)}.exp-title-scene>.exp-eyebrow{font-size:9px;letter-spacing:2px}.exp-wordmark{font-size:10px;letter-spacing:2px}.exp-hub-top{gap:12px}.exp-page{padding-inline:13px;gap:10px}.exp-screen-heading{gap:8px}.exp-screen-heading h2{font-size:18px}.exp-screen-heading small{font-size:9px}.exp-screen-heading .exp-money{font-size:13px}.exp-screen-heading .exp-icon-button{width:38px;min-height:38px;flex-basis:38px}.exp-selected-party{gap:5px;flex-basis:51px}.exp-selected-hero{padding:5px;gap:5px;font-size:10px}.exp-selected-hero img{width:28px;height:35px}.exp-selected-hero i{font-size:15px}.exp-hero-stage{gap:12px;grid-template-columns:47% 1fr;border-radius:17px}.exp-hero-details{padding:12px 12px 12px 0;gap:10px}.exp-hero-details .exp-eyebrow{font-size:8px;letter-spacing:1.1px}.exp-hero-details h1{font-size:30px}.exp-hero-details p{font-size:11px;line-height:1.5}.exp-hero-details .exp-button{padding:9px 12px;font-size:11px;min-height:39px}.exp-roster{height:82px;gap:6px}.exp-hero-option img{width:45px;height:47px}.exp-hero-option span{font-size:10px}.exp-screen-footer>.exp-button{font-size:12px;padding-inline:13px}.exp-pager{gap:7px}.exp-upgrade-stage{gap:18px}.exp-upgrade-stage h1{font-size:30px}.exp-map-heading{padding:9px 10px;min-height:60px}.exp-map-heading h2{font-size:17px}.exp-map-title>small{font-size:7px}.exp-resources{gap:10px}.exp-resources .exp-money{font-size:12px;gap:4px}.exp-resources .exp-icon{width:15px}.exp-board-viewport{padding:22px 14px 16px}.exp-party-card{gap:5px;padding:5px}.exp-party-image{width:30px;height:34px}.exp-party-copy strong{font-size:10px}.exp-party-copy small{font-size:8px}.exp-map-tools{top:82px;gap:5px}.exp-map-tools .exp-icon-button{width:31px;min-height:31px;flex-basis:31px;padding:7px}.exp-map-dock{padding:9px}.exp-travel-controls{gap:7px}.exp-travel-hint{font-size:8px!important}.exp-travel-controls>.exp-button.primary{min-width:135px;min-height:42px}.exp-route-choices .exp-button{font-size:10px;padding:8px;gap:5px}.exp-route-choices .exp-icon{height:15px;width:15px}.exp-tile{width:32px;height:32px;border-radius:10px;border-width:1.5px;padding:5px}.exp-tile .exp-icon{width:18px;height:18px}.exp-tile.boss{height:36px;width:36px;border-radius:12px}.exp-pawn{width:31px;height:37px;border-radius:11px;transform:translate(-50%,-118%)}.exp-pawn img{border-radius:6px}.exp-modal{padding:40px 18px 20px;gap:15px;border-radius:21px}.exp-modal.encounter{display:flex;padding:34px 18px 18px;gap:12px;width:min(440px,100%)}.exp-encounter-art{height:115px;width:100%;min-height:0;border-radius:14px;flex-shrink:1}.exp-encounter-art :is(.art,.foil-art){object-position:center 22%}.exp-encounter-art .maw-sigil{width:100px}.exp-encounter-copy{align-items:center;text-align:center;gap:11px;width:100%;padding:0}.exp-encounter-copy h2{font-size:23px}.exp-encounter-copy .exp-eyebrow{font-size:9px}.exp-encounter-copy .exp-boss-power{text-align:left;font-size:11px!important}.exp-encounter-copy .exp-dialog-actions{justify-content:center}.exp-fighter-list .exp-party-card{flex-direction:row}.exp-fighter-list .exp-party-copy{text-align:left}.exp-reward-cards{gap:7px}.exp-reward-card{height:clamp(180px,38dvh,295px);border-radius:12px}.exp-card-info h3{font-size:11px;line-height:1.35;min-height:29px;display:flex;align-items:center;justify-content:center}.exp-card-info small{font-size:8px}.exp-card-info b{font-size:7px}.exp-shop-grid{gap:8px}.exp-shop-item{padding:14px 9px;gap:10px}.exp-shop-item h3{font-size:13px}.exp-shop-item p{font-size:10px}.exp-shop-item .exp-button{padding:10px 9px}.exp-shop-item select{padding:8px 4px;font-size:10px}.exp-dialogue{font-size:14px!important}.exp-journal-grid{gap:8px}.exp-journal-card strong{font-size:10px;line-height:1.35;min-height:27px;display:flex;align-items:center;justify-content:center}.exp-journal-card small{font-size:8px;margin-bottom:7px}.exp-journal-controls .exp-tab{font-size:10px;padding:8px}.exp-journal-controls select{max-width:94px}.exp-journal-controls input{font-size:11px}.exp-modal.inspect{gap:13px}.exp-inspect-art{max-width:240px}.exp-summary{gap:16px}.exp-summary h1{font-size:33px}.exp-summary>small{font-size:10px}.exp-dialogue-box{padding:20px}.exp-dialogue-box p{font-size:17px}.exp-dialogue-box .exp-eyebrow{font-size:9px}.arena-content{padding:8px;grid-template-rows:37px 24px minmax(0,1fr) var(--phase-row,34px) minmax(0,1fr) 24px 37px 36px;gap:5px}.hero-heading strong{font-size:13px}.hero-heading .hp{font-size:11px}.hero-heading .hp small{font-size:9px}.hero-seal{height:34px;width:33px;flex-basis:33px}.hero-hud{gap:7px}.unit-caption strong{font-size:11px}.unit-trait{font-size:6px}.unit-stats{font-size:10px}.support-slot small{font-size:7px}.support-slot>span{font-size:11px}.unit-row,.support-row{gap:6px}.hand .battle-card{width:100px;flex-basis:100px;margin-left:calc(-1 * max(4px,(var(--count) * 100px - (100cqw - 12px)) / max(1,var(--count) - 1)))}
}
@media(max-height:660px) and (max-aspect-ratio:1/1){
 .exp-hub{gap:10px;padding-top:15px;padding-bottom:12px}.exp-title-scene{gap:13px}.exp-title-scene h1{font-size:54px}.exp-title-scene p{font-size:12px}.exp-title-actions>.exp-button{min-height:44px}.exp-menu-item{min-height:44px;flex-direction:row;font-size:9px;padding:10px 8px}.exp-cycle{font-size:7px}.exp-title-actions>small{display:none}.exp-hero-details{gap:7px}.exp-hero-details h1{font-size:23px}.exp-hero-details p{font-size:10px}.exp-selected-party{flex-basis:43px}.exp-selected-hero img{height:30px}.exp-roster{height:66px}.exp-hero-option img{height:35px;width:35px}.exp-page{gap:8px;padding-block:10px}.exp-upgrade-stage{gap:12px}.exp-upgrade-icon{width:65px;height:65px;border-radius:20px}.exp-upgrade-stage h1{font-size:26px}.exp-upgrade-stage p{font-size:12px}.exp-map-heading{min-height:53px;padding:6px 9px}.exp-map-heading h2{font-size:15px}.exp-map-dock{padding:7px}.exp-party-strip{padding-bottom:6px}.exp-travel-controls{padding-top:6px}.exp-party-image{width:26px;height:29px}.exp-party-copy small{font-size:7px}.exp-map-tools{top:70px}.exp-board-viewport{padding-top:18px}.exp-tile{height:28px;width:28px}.exp-tile .exp-icon{width:16px;height:16px}.exp-pawn{height:31px;width:27px}.exp-tile.boss{width:31px;height:31px}.exp-modal{gap:12px;padding:34px 15px 17px}.exp-space-icon{width:45px;height:45px;border-radius:15px}.exp-encounter-art{height:82px}.exp-encounter-copy{gap:9px}.exp-encounter-copy h2{font-size:20px}.exp-fighter-list .exp-party-card{padding:6px}.exp-reward-card{height:210px}.exp-dialogue{font-size:13px!important}.exp-relic-choice{padding:10px;gap:2px 8px}.exp-relic-choice small{font-size:10px}.exp-modal.modal-decks{gap:7px;padding:29px 13px 12px}.exp-modal.modal-decks h2{font-size:19px}.exp-deck-tabs .exp-tab{min-height:29px;padding:6px 11px}.exp-segment{padding:3px}.exp-segment .exp-tab{min-height:30px}.exp-deck-row b{font-size:11px}.exp-deck-row small{font-size:9px}.exp-inspect-copy p{font-size:11px}.exp-summary{gap:12px}.exp-summary-emblem>.exp-icon{width:34px;height:34px}.exp-summary h1{font-size:28px}.exp-summary-party img{width:40px;height:49px}.exp-summary-stats b{font-size:17px}.exp-summary p{font-size:12px}.exp-modal.modal-story{gap:13px}.exp-dialogue-box p{font-size:16px;margin:11px 0 17px}.exp-guide-copy{min-height:100px;font-size:13px!important}.exp-pause-menu{gap:5px}.exp-pause-menu .exp-button{min-height:39px}.exp-legend-grid{gap:10px}.exp-legend-grid article{min-height:51px}.exp-legend-grid article>span{padding:10px}.exp-legend-grid p{font-size:10px}.battle-main{grid-template-rows:minmax(0,1fr) 132px}.arena-content{grid-template-rows:31px 20px minmax(0,1fr) var(--phase-row,25px) minmax(0,1fr) 20px 31px 32px;gap:3px;padding:6px}.hero-seal{height:29px;width:29px;flex-basis:29px}.hero-heading strong{font-size:11px}.hero-heading small{font-size:6px}.hud-energy{width:44px}.flame{width:12px;height:16px}.unit-caption{padding:13px 4px 4px}.unit-caption strong{font-size:9px}.unit-trait{display:none}.unit-stats{font-size:9px;gap:9px}.battle-divider small{font-size:6px;max-height:14px;margin-top:2px}.battle-divider strong{font-size:9px}.turn-controls .end-turn{min-height:29px;padding:7px 13px}.hand-section{grid-template-rows:19px minmax(0,1fr) 14px}.hand .card-portrait{height:52%}.hand .card-copy{height:48%;padding:4px}.hand .card-copy strong{font-size:9px}.hand .card-keyword{font-size:6px;margin-top:1px}.hand .card-stats{font-size:8px}.hand .battle-card{width:90px;flex-basis:90px;margin-left:calc(-1 * max(4px,(var(--count) * 90px - (100cqw - 12px)) / max(1,var(--count) - 1)))}.selection-help{font-size:7px;height:14px}
}
@media(min-aspect-ratio:4/3){.exp-map-page{padding-inline:18px}.exp-map-heading{max-width:1100px}.exp-board-viewport{max-width:1150px;padding:18px 30px 22px}.exp-board{max-width:none}.exp-roads.portrait{display:none}.exp-roads.landscape{display:block}.exp-tile,.exp-pawn{left:var(--lx);top:var(--ly)}.exp-terrain{inset:-80px 0;width:100%;height:calc(100% + 170px)}.exp-map-dock{max-width:950px;display:flex;align-items:center;gap:17px;padding:10px 15px}.exp-party-strip{flex:1;max-width:420px;border:0;padding:0}.exp-travel-controls{flex:1;padding:0}.exp-map-tools{top:95px}.exp-journal{max-width:1050px}}
@media(max-height:540px) and (min-aspect-ratio:4/3){
 .exp-hub{grid-template-rows:32px 1fr auto 15px;gap:8px;padding:17px 30px}.exp-title-scene{gap:12px}.exp-title-scene h1{font-size:64px;letter-spacing:-3px}.exp-title-scene p{font-size:12px}.exp-title-scene>.exp-eyebrow{font-size:8px}.exp-title-actions{position:absolute;bottom:52px;right:35px;flex-direction:column;align-items:stretch;gap:5px}.exp-title-actions .exp-button{min-height:44px}.exp-main-nav{height:43px}.exp-menu-item{min-height:0;padding:9px 12px;font-size:10px}.exp-cycle{font-size:8px}.exp-page{max-width:900px;padding:10px 18px;gap:7px}.exp-party-screen{display:grid;grid-template-columns:1fr 1.7fr;grid-template-rows:44px 48px 1fr 44px;gap:8px 18px}.exp-party-screen>.exp-screen-heading{grid-column:1/-1;min-height:0}.exp-party-screen .exp-selected-party{grid-column:2;grid-row:2;min-height:0}.exp-party-screen .exp-hero-stage{grid-column:1;grid-row:2/5;display:flex;position:relative}.exp-party-screen .exp-hero-large{position:absolute;inset:0;width:100%;opacity:.6}.exp-party-screen .exp-hero-large:after{background:linear-gradient(0deg,#0a1018,transparent)}.exp-party-screen .exp-hero-details{z-index:2;align-self:end;padding:14px;gap:7px}.exp-party-screen .exp-hero-details p,.exp-party-screen .exp-hero-vital{display:none}.exp-party-screen .exp-hero-details h1{font-size:26px}.exp-party-screen .exp-roster{grid-column:2;grid-row:3;height:100%;min-height:0}.exp-party-screen .exp-roster img{width:50px;height:60px}.exp-party-screen .exp-screen-footer{grid-column:2;grid-row:4}.exp-party-screen .exp-hero-details .exp-button{min-height:34px;padding:8px 12px;font-size:11px}.exp-upgrade-stage{gap:10px;display:grid;grid-template-columns:100px minmax(0,1fr) 180px;grid-template-rows:30px 1fr 24px;align-content:center;text-align:left;width:100%;max-width:760px;margin:10px auto}.exp-upgrade-stage>.exp-upgrade-icon{grid-column:1;grid-row:1/4;align-self:center}.exp-upgrade-stage>.exp-eyebrow{grid-column:2;grid-row:1}.exp-upgrade-stage h1{grid-column:2;grid-row:2;font-size:28px;align-self:start}.exp-upgrade-stage p{grid-column:2;grid-row:2;align-self:end;font-size:12px;margin-top:50px}.exp-upgrade-stage .exp-ranks{grid-column:3;grid-row:1}.exp-upgrade-stage>.exp-button{grid-column:3;grid-row:2;min-width:0}.exp-upgrade-stage>small{grid-column:2/4;grid-row:3;font-size:10px}.exp-map-heading{min-height:46px;padding:6px 12px}.exp-map-heading h2{font-size:15px}.exp-map-heading small{font-size:6px}.exp-map-dock{padding:7px 10px;gap:12px}.exp-map-dock .exp-party-image{width:28px;height:30px}.exp-map-dock .exp-party-card{padding:4px}.exp-travel-controls>.exp-button.primary{min-height:36px}.exp-die{width:35px;height:35px}.exp-travel-hint{display:none}.exp-map-tools{top:67px;left:10px}.exp-map-tools .exp-icon-button{width:29px;min-height:29px;flex-basis:29px;padding:6px}.exp-tile{width:28px;height:28px;border-radius:9px}.exp-tile.boss{width:31px;height:31px}.exp-tile .exp-icon{width:15px;height:15px}.exp-pawn{width:26px;height:29px;border-radius:9px}.exp-pawn img{border-radius:5px}.exp-board-viewport{padding-block:13px 18px}.exp-modal{max-width:700px;padding:27px 25px 16px;gap:11px}.exp-modal.modal-encounter{display:grid;grid-template-columns:160px 1fr;width:680px;padding:15px;gap:20px}.exp-encounter-art{height:100%;min-height:200px}.exp-encounter-copy{gap:10px;padding:9px 0}.exp-encounter-copy h2{font-size:22px}.exp-encounter-copy>small{font-size:10px}.exp-fighter-list .exp-party-card{flex-direction:row}.exp-fighter-list .exp-party-image{width:28px;height:34px}.exp-modal.modal-reward,.exp-modal.modal-shopPack{display:grid;grid-template-columns:1fr 1.6fr;width:720px;grid-template-rows:1fr 22px 44px;gap:8px 15px}.exp-reward-heading{grid-column:1;grid-row:1;align-self:center}.exp-reward-heading h2{font-size:25px}.exp-reward-cards{grid-column:2;grid-row:1/4;height:100%}.exp-reward-card{height:100%;min-height:230px}.exp-reward-note{grid-column:1;grid-row:2}.exp-modal.modal-reward>.exp-button,.exp-modal.modal-shopPack>.exp-button,.exp-modal.modal-reward>.exp-dialog-actions,.exp-modal.modal-shopPack>.exp-dialog-actions{grid-column:1;grid-row:3}.exp-modal.modal-reward>.exp-relic-options{grid-column:2;grid-row:1/4}.exp-relic-choice{padding:9px;gap:2px 8px}.exp-relic-choice small{font-size:10px}.exp-modal.modal-shop{width:740px;display:grid;grid-template-columns:170px 1fr;grid-template-rows:1fr 40px;gap:12px}.exp-shop-heading{grid-column:1;grid-row:1;flex-direction:column;align-self:center}.exp-shop-heading .exp-eyebrow{flex-basis:auto}.exp-shop-grid{grid-column:2;grid-row:1/3;height:100%}.exp-shop-item{padding:13px 10px;gap:10px}.exp-shop-item>span{height:30px}.exp-shop-item p{font-size:10px}.exp-modal.modal-shop>.exp-screen-footer{grid-column:1;grid-row:2;flex-wrap:wrap;justify-content:center;align-self:end;gap:5px}.exp-modal.modal-shop .exp-screen-footer>.exp-button{position:absolute;left:30px;bottom:68px;min-width:135px}.exp-modal.modal-decks{width:800px;display:grid;grid-template-columns:220px 1fr;grid-template-rows:22px 30px 36px 42px 1fr 42px;gap:6px 16px;padding:22px 18px 13px}.modal-decks>.exp-eyebrow{grid-column:1;grid-row:1;font-size:8px!important}.modal-decks>h2{grid-column:1;grid-row:2;font-size:19px!important}.modal-decks>.exp-deck-tabs{grid-column:1;grid-row:3}.modal-decks>.exp-segment{grid-column:1;grid-row:4}.modal-decks>.exp-pool-controls{grid-column:1;grid-row:5;flex-wrap:wrap;align-self:start}.modal-decks>.exp-deck-status{grid-column:1;grid-row:5;align-self:end;font-size:9px}.modal-decks:has(.exp-pool-controls)>.exp-deck-status{display:none}.modal-decks>.exp-deck-columns{grid-column:2;grid-row:1/6;height:100%}.modal-decks>.exp-screen-footer{grid-column:1/3;grid-row:6}.exp-deck-row b{font-size:11px}.exp-deck-row small{font-size:9px}.exp-deck-thumb{width:35px;flex-basis:35px}.exp-modal.inspect{display:grid;grid-template-columns:200px 1fr;width:660px;height:min(330px,100%);gap:24px;padding:20px}.exp-inspect-art{height:100%;width:100%}.exp-inspect-copy{align-items:flex-start;text-align:left}.exp-inspect-copy h2{font-size:24px}.exp-inspect-copy p{font-size:12px}.exp-journal-grid{grid-template-columns:repeat(6,minmax(0,1fr));grid-template-rows:minmax(0,1fr)}.exp-summary{max-width:760px;display:grid;grid-template-columns:1fr 1fr;grid-template-rows:22px 52px 38px 62px 25px 44px;gap:6px 30px;padding:20px}.exp-summary-emblem{display:none}.exp-summary>.exp-eyebrow{grid-column:1;grid-row:1;font-size:8px}.exp-summary h1{grid-column:1;grid-row:2;font-size:31px}.exp-summary>p{grid-column:1;grid-row:3;font-size:12px}.exp-summary-party{grid-column:1;grid-row:4;justify-content:center}.exp-summary-party img{width:40px;height:52px}.exp-summary-gems{grid-column:2;grid-row:2;justify-content:center}.exp-summary-stats{grid-column:2;grid-row:4;justify-content:center}.exp-summary>small{grid-column:1/3;grid-row:5;font-size:10px}.exp-summary>.exp-dialog-actions{grid-column:1/3;grid-row:6}.exp-modal.modal-story{height:100%;flex-direction:row;align-items:center;gap:25px;max-width:800px}.exp-story-scene{flex:0 0 23%;height:100%}.exp-dialogue-box{padding:22px;flex:1}.exp-dialogue-box p{font-size:18px}.exp-modal.modal-legend{width:650px;gap:14px}.exp-legend-grid{display:grid;grid-template-columns:1fr 1fr;gap:15px}.exp-legend-grid p{font-size:10px}.exp-legend-grid article>span{padding:8px}.exp-modal.modal-pause,.exp-modal.modal-settings{width:600px;display:grid;grid-template-columns:150px 1fr;grid-template-rows:70px 1fr;gap:12px 20px;max-height:100%}.modal-pause>.exp-space-icon,.modal-settings>.exp-space-icon{grid-column:1;grid-row:1;justify-self:center}.modal-pause>h2,.modal-settings>h2{grid-column:1;grid-row:2;font-size:25px}.exp-pause-menu{grid-column:2;grid-row:1/3;display:grid;grid-template-columns:1fr 1fr;gap:7px}.exp-pause-menu .exp-button{font-size:11px;min-height:52px}.exp-modal.modal-event>.exp-story-symbol{display:none}.exp-dialogue{font-size:13px!important}.exp-event-choices{flex-direction:row}.exp-choice{flex:1}.exp-space-icon{width:42px;height:42px}.exp-modal.modal-forge>.exp-space-icon,.exp-modal.modal-relic>.exp-space-icon,.exp-modal.modal-shrine>.exp-space-icon{display:none}.exp-modal.modal-forge .exp-forge-heroes{flex-direction:row}.exp-forge-heroes .exp-button{flex-direction:column;flex:1}.exp-modal.modal-relic .exp-relic-options,.exp-modal.modal-shrine .exp-relic-options{flex-direction:row}.exp-modal.modal-relic .exp-relic-choice,.exp-modal.modal-shrine .exp-relic-choice{flex:1;display:flex;flex-direction:column;gap:7px;text-align:center;align-items:center}.battle-layout{max-width:1100px}.battle-main{grid-template-columns:minmax(0,1fr) 31%;grid-template-rows:minmax(0,1fr);gap:10px}.arena-content{grid-template-rows:29px 19px minmax(0,1fr) var(--phase-row,24px) minmax(0,1fr) 19px 29px 31px;gap:3px;padding:6px 9px}.hero-seal{height:27px;width:27px;flex-basis:27px}.hero-heading strong{font-size:11px}.hero-heading small{display:none}.hero-heading .hp{font-size:10px}.health{height:3px;margin-top:4px}.hud-energy{width:50px}.flame{height:15px;width:13px}.unit-caption{padding:10px 4px 4px}.unit-caption strong{font-size:10px}.unit-trait{display:none}.unit-stats{font-size:9px}.battle-divider strong{font-size:9px}.battle-divider small{font-size:6px;margin-top:1px;max-height:10px}.hand-section{grid-template-rows:23px 1fr 21px}.hand-heading small{display:none}.hand{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));grid-template-rows:repeat(3,minmax(0,1fr));gap:6px;padding:3px}.hand .battle-card{height:100%;width:100%;margin:0!important;transform:none;min-height:0}.hand .battle-card.selected{transform:translateY(-4px);box-shadow:0 0 9px var(--mint)}.hand .card-copy{padding:3px}.hand .card-copy strong{font-size:8px}.hand .card-stats{font-size:7px;margin-top:1px}.hand .card-keyword,.hand .card-type{display:none}.hand .cost{width:18px;height:19px;font-size:9px}.hand .card-portrait{height:56%}.hand .card-copy{height:44%}.selection-help{font-size:7px}.turn-controls .end-turn{min-height:29px;padding:7px 13px}.stamina-caption b{font-size:16px}.stamina-caption span{font-size:6px}}
@media(prefers-reduced-motion:reduce){.exp-app *, .exp-app *:before,.exp-app *:after{animation:none!important;transition:none!important}.exp-snow{display:none}}.calm-motion .exp-app *{animation:none!important}
/* Practice uses the same visual language and paged, bounded overlays. */
.game-practice .shell{background:linear-gradient(#080e17d9,#080d15e8),url('assets/expedition/pale-maw-ship.webp') center/cover}.practice-screen{min-height:0;flex:1;width:min(100%,800px);margin:auto;display:flex;flex-direction:column;gap:12px;padding:8px 10px}.practice-heading{display:flex;gap:12px;align-items:center}.practice-heading>div{flex:1}.practice-heading h2{font-size:20px;letter-spacing:-.5px}.practice-heading small{font-size:8px;letter-spacing:2px;color:#91acbd}.practice-hero{display:grid;grid-template-columns:1fr 1fr;gap:25px;min-height:0;flex:1;background:#0b121c;border-radius:20px;overflow:hidden}.practice-portrait{position:relative;min-height:0}.practice-portrait .art{width:100%;height:100%;object-fit:cover;object-position:center 22%}.practice-portrait:after{content:'';position:absolute;inset:0;background:linear-gradient(90deg,transparent 50%,#0b121c)}.practice-copy{display:flex;flex-direction:column;gap:15px;justify-content:center;padding:20px 20px 20px 0}.practice-copy h1{font-size:36px;letter-spacing:-1px}.practice-copy>.eyebrow{font-size:9px;letter-spacing:1.5px}.practice-copy p{font-size:12px;line-height:1.7;color:#a7b9cb}.practice-copy .ghost{display:flex;justify-content:center;align-items:center;gap:8px}.practice-copy .exp-icon{width:17px}.practice-selection{display:flex;justify-content:center;align-items:center;gap:18px;font-size:11px;color:#c0cdd9;flex-shrink:0}.practice-selection .icon-button{padding:7px}.opponent-picker{margin:0!important;min-height:42px;display:flex;gap:13px;justify-content:center;align-items:center;flex-shrink:0}.opponent-picker>span.eyebrow{font-size:8px;letter-spacing:1px}.opponent-picker strong{font-size:12px}.opponent-picker button{height:31px;width:31px;font-size:21px;border-radius:10px;background:#1e2c37}.practice-footer{display:flex;justify-content:center;gap:9px;flex-shrink:0}.practice-footer .end-turn{min-width:170px}.practice-footer .ghost{padding:9px 12px}
.overlay{overflow:hidden;padding:max(14px,env(safe-area-inset-top)) 14px max(14px,env(safe-area-inset-bottom));background:#03080fb5;backdrop-filter:blur(7px)}.modal{max-height:100%;overflow:hidden;background:#11161df7;border:1px solid #ffffff20;border-radius:22px;box-shadow:0 20px 80px #0008;padding:32px 22px 22px;color:#fff}.modal h2{font:700 25px system-ui;letter-spacing:-.6px}.modal h1{font:850 clamp(30px,7vw,65px) system-ui;letter-spacing:-1px}.modal p{font-size:12px;line-height:1.6;margin:14px auto;max-width:440px;color:#b7c4d3}.modal-close{top:8px;right:9px;width:34px;height:34px;line-height:28px;padding:0;background:#242a32;border-radius:11px;font-size:24px;z-index:5}.legacy-pager{display:flex;justify-content:center;gap:14px;align-items:center;min-height:36px}.legacy-pager button{border:1px solid #ffffff20;display:grid;place-items:center;width:36px;height:36px;background:#1c2732;border-radius:11px;padding:8px;color:#fff}.legacy-pager .exp-icon{width:18px;height:18px}.legacy-pager>span{font-size:11px;white-space:nowrap;color:#b1c5d8}.legacy-pager button:disabled{opacity:.25}
.collection-modal{display:flex;flex-direction:column;width:min(880px,100%);height:min(760px,100%);max-height:100%;padding:28px 18px 18px;gap:10px}.collection-modal h2{font-size:23px;margin:0}.collection-modal>.eyebrow{font-size:9px;letter-spacing:2px}.binder-controls{display:flex;gap:10px;width:100%;flex:0 0 36px}.binder-controls select{width:50%;background:#1b2631;color:#fff;padding:8px;border:1px solid #ffffff25;border-radius:10px;font:11px system-ui;min-width:0}.collection-modal .binder-grid{flex:1;min-height:0;overflow:hidden;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));grid-template-rows:repeat(2,minmax(0,1fr));grid-auto-rows:unset;align-content:stretch;gap:10px;margin:0;padding:0}.collection-modal .binder-card{height:100%;min-height:0;width:100%;display:flex;flex-direction:column;overflow:hidden;border-radius:13px;background:#14202c;padding:0}.collection-modal .binder-card>div{height:auto;min-height:0;flex:1;width:100%}.collection-modal .binder-card strong{height:auto;min-height:15px;margin:7px 5px 0;font:650 12px system-ui;text-align:center;display:block;white-space:normal}.collection-modal .binder-card small{font-size:9px;line-height:12px;text-align:center;margin:3px 5px}.collection-modal .binder-card>span{font-size:8px;line-height:12px;text-align:center;margin:0 5px 8px}.collection-modal .collection-bottom{margin:0;padding:0;display:flex;justify-content:space-between;align-items:center;flex:0 0 38px;background:none}.collection-modal .collection-bottom .ghost{font-size:11px;padding:10px}.binder-card.unowned{filter:grayscale(.7);opacity:.55}
.deck-modal{width:min(550px,100%);height:min(630px,100%);max-height:100%;display:flex;flex-direction:column;gap:10px;padding:28px 18px 16px}.deck-modal>.eyebrow{font-size:9px}.deck-modal h2{font-size:23px}.practice-deck-tabs{display:flex;gap:6px;width:100%}.practice-deck-tabs .ghost{flex:1;padding:8px;min-height:34px}.practice-deck-tabs .active{background:#2a4849;color:#cbfff7;border-color:#7be6d866}.practice-deck-list{flex:1;min-height:0;display:grid;grid-template-rows:repeat(5,minmax(0,1fr));gap:6px}.practice-deck-row{display:flex;align-items:center;gap:10px;min-height:0;background:#1d2a35;padding:4px;border-radius:10px;text-align:left}.practice-deck-row .deck-thumb{height:100%;width:42px;padding:0;flex:0 0 42px;border-radius:7px;background:#24374a;overflow:hidden}.practice-deck-row>span{flex:1;min-width:0}.practice-deck-row b{display:block;font-size:12px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.practice-deck-row small{display:block;font-size:10px;color:#a6bacb;margin-top:3px}.practice-deck-row>button:last-child{width:32px;height:32px;background:#314758;color:#dff8fb;border-radius:10px;font-size:20px;flex-shrink:0}.practice-deck-error{font-size:10px;color:#a9b9c8}.deck-save-bar{display:flex;gap:8px;justify-content:space-between;align-items:center;margin:0;padding:0;flex-shrink:0;flex-wrap:nowrap}.deck-save-bar>.ghost{padding:9px 12px}.deck-save-bar .end-turn{min-width:80px}
.help-modal{width:min(470px,100%);display:flex;flex-direction:column;align-items:center;gap:19px}.help-modal h2{font-size:25px;margin:0}.help-modal p{font-size:15px;line-height:1.8;min-height:130px;margin:5px auto}.help-modal>.eyebrow{font-size:9px}
.inspection{display:flex;flex-direction:column;align-items:center;gap:9px;width:min(410px,100%);height:min(620px,100%);padding:30px 20px 18px}.inspection>.eyebrow{flex-shrink:0;font-size:9px}.inspection .inspect-art{width:min(240px,100%);height:auto;flex:1;min-height:0;margin:0;border-radius:15px}.inspection h2{font-size:25px}.inspection .card-set-label{font-size:9px}.inspection .inspect-stats{margin:0;font-size:12px}.inspection p{font-size:12px;margin:0;line-height:1.5;flex-shrink:0}.inspection p.reflex-note{font-size:10px;margin:0}.inspection>.end-turn{flex-shrink:0;min-height:35px}
.booster-modal{display:flex;flex-direction:column;align-items:center;gap:12px;width:min(720px,100%);height:min(700px,100%);padding:29px 18px 18px}.booster-modal>.eyebrow{font-size:9px;letter-spacing:1px}.booster-modal h2{font-size:24px;margin:0}.booster-modal>p{font-size:11px;margin:0;flex-shrink:0}.booster-modal>.sealed-booster{flex:1;min-height:0;width:190px;height:auto;max-height:390px;margin:4px auto}.booster-modal>.sealed-booster strong{padding:15px 10px;font-size:20px}.booster-modal>.reward-card{height:auto;min-height:0;width:min(250px,85%);flex:1;margin:0;display:flex;flex-direction:column}.booster-modal .reward-art{flex:1;min-height:0;height:auto}.booster-modal .reward-copy{flex-shrink:0;padding:10px}.booster-modal .reward-copy>b{font-size:16px}.booster-modal .reward-copy>span{font-size:9px}.booster-modal .reward-copy>p{font-size:10px;line-height:1.45;margin:8px 0 0}.booster-modal .reward-copy .card-set-label{font-size:8px}.booster-modal .reward-rarity{flex-shrink:0;font-size:9px;padding:8px}.booster-modal .reveal-progress{flex-shrink:0;margin:0}.booster-modal>.end-turn{min-height:39px;flex-shrink:0}.booster-modal .pack-summary{flex:1;min-height:0;width:100%;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin:0;align-items:stretch}.booster-modal .pack-summary>.reward-card{height:100%;min-height:0;width:100%;margin:0;display:flex;flex-direction:column;overflow:hidden}.booster-modal .pack-summary .reward-art{flex:1;height:auto;min-height:0}.booster-modal .pack-summary .reward-copy>b{font-size:12px}.booster-modal .pack-summary .reward-copy>p{font-size:9px}.booster-modal .pack-summary .reward-copy>span{font-size:8px}.booster-modal .pack-summary .reward-copy{padding:8px}.booster-modal .pack-summary .reward-rarity{font-size:8px}.new-badge,.holo-badge{font-size:8px;padding:4px 6px}
.expansion-modal{height:min(710px,100%);max-height:100%;display:flex;flex-direction:column;gap:11px;padding:28px 20px 17px;width:min(650px,100%)}.expansion-modal>.eyebrow{font-size:9px}.expansion-modal h2{font-size:23px}.expansion-intro,.set-detail,.expansion-launch p,.expansion-product .browse-set{display:none}.expansion-gallery{display:flex;flex:1;min-height:0;margin:0;gap:0}.expansion-product{position:relative;width:100%;padding:0;background:none;border:0;display:flex;flex-direction:column;gap:8px;min-height:0}.booster-box-stage{flex:1;min-height:0;height:auto;overflow:hidden;padding:6px 20px}.booster-box{height:100%;width:180px;max-height:340px;max-width:100%;margin:0 auto;transform:rotate(-4deg);border-radius:12px}.box-title b{font-size:21px}.box-title small{font-size:7px}.box-title em{font-size:8px}.expansion-product>.eyebrow{display:none}.expansion-product>h3{font-size:17px;margin:0}.expansion-product>p{font-size:11px;margin:0;line-height:1.5}.set-progress{display:none}.expansion-product .reward-choice{min-height:36px;font-size:10px;flex-shrink:0;margin:0}.expansion-launch{padding:10px;background:#1b2935;border-radius:12px;display:flex;gap:10px;align-items:center;justify-content:space-between;flex-shrink:0;margin:0}.expansion-launch b{font-size:10px}.expansion-launch .end-turn{font-size:9px;padding:9px 11px;min-height:36px}.core-reward{font-size:10px;padding:5px;background:none;border:0;color:#b5c7d7;flex-shrink:0}.modal.result{max-height:100%;padding:25px 20px}.result>.eyebrow{font-size:9px}.result h1{font-size:clamp(34px,10vw,65px);margin:8px 0}.result>p{margin:8px auto 16px}.booster-reward{padding:13px;margin:10px 0 18px;gap:10px}.booster-reward img{width:34px;height:48px}.booster-reward b{font-size:10px}.booster-reward span{font-size:9px}.result-actions{gap:8px}.result-actions .ghost,.result-actions .end-turn{font-size:10px;padding:10px 14px}
@media(max-width:700px){.practice-screen{gap:9px;padding:5px}.practice-heading h2{font-size:17px}.practice-hero{gap:12px;grid-template-columns:46% 1fr}.practice-copy{padding:15px 12px 15px 0;gap:11px}.practice-copy h1{font-size:29px}.practice-copy p{font-size:11px;line-height:1.5}.practice-copy>.eyebrow{font-size:8px;letter-spacing:1px}.practice-copy .ghost{font-size:10px;padding:10px 8px}.practice-footer .end-turn{min-width:150px}.practice-footer .ghost{font-size:10px}.opponent-picker{gap:8px}.opponent-picker strong{font-size:11px}.collection-modal{padding:28px 12px 12px;gap:8px;height:100%;max-height:100%}.collection-modal .binder-grid{padding:0;gap:7px;grid-template-columns:repeat(3,minmax(0,1fr))}.collection-modal .binder-card strong{font-size:10px;min-height:27px;line-height:1.3;display:flex;justify-content:center;align-items:center}.collection-modal .binder-card small{font-size:7px;margin:2px 4px;line-height:10px}.collection-modal .binder-card>span{font-size:7px;margin:0 4px 6px;line-height:10px}.deck-modal{padding:27px 12px 12px}.deck-modal h2{font-size:21px}.deck-save-bar .ghost{font-size:10px;padding:8px}.deck-save-bar .legacy-pager{gap:7px}.practice-deck-row b{font-size:11px}.practice-deck-row small{font-size:9px}.help-modal{padding:36px 21px 22px;gap:15px}.help-modal p{font-size:14px}.booster-modal{padding:28px 13px 16px;gap:9px}.booster-modal h2{font-size:20px}.booster-modal>.eyebrow{font-size:8px}.booster-modal .pack-summary .reward-copy>p{font-size:8px}.booster-modal .pack-summary .reward-copy>b{font-size:10px}.booster-modal .pack-summary .reward-copy>span{font-size:7px}.booster-modal .pack-summary .reward-copy .card-set-label{display:none}.booster-modal .pack-summary .reward-copy{padding:6px}.booster-modal .pack-summary .reward-rarity{font-size:6px}.booster-modal .pack-summary .new-badge,.booster-modal .pack-summary .holo-badge{font-size:6px}.expansion-modal{padding:28px 14px 14px;gap:9px}.expansion-launch{padding:8px}.expansion-launch b{font-size:9px}.expansion-launch .end-turn{font-size:8px}.expansion-product>p{font-size:10px}.booster-box-stage{padding:4px 20px}.booster-box{width:155px}.box-title b{font-size:18px}}
@media(max-height:660px) and (max-aspect-ratio:1/1){.practice-screen{gap:7px}.practice-copy p{font-size:10px;line-height:1.4}.practice-copy h1{font-size:25px}.practice-heading h2{font-size:16px}.practice-copy{gap:8px}.practice-copy .ghost{min-height:33px;padding:7px}.practice-selection{gap:16px}.opponent-picker{min-height:34px}.booster-modal h2{font-size:18px}.booster-modal>.sealed-booster{width:150px}.booster-modal>.reward-card{width:190px}.booster-modal .reward-copy>b{font-size:13px}.booster-modal .reward-copy>p{font-size:9px;margin-top:5px}.booster-modal .reward-rarity{padding:5px;font-size:8px}.booster-modal .reward-copy{padding:7px}.inspection h2{font-size:21px}.inspection p{font-size:11px}.inspection .card-set-label{font-size:8px}.inspection p.reflex-note{font-size:9px}.expansion-product>h3{font-size:15px}.expansion-product>p{font-size:9px}.expansion-product .reward-choice{min-height:33px;font-size:9px}.expansion-launch b{font-size:8px}.expansion-launch .end-turn{font-size:7px;min-height:32px}.booster-box{width:130px}.box-title b{font-size:15px}.box-title small{font-size:6px}.box-title em{font-size:6px}.expansion-modal{gap:7px}.expansion-modal>.eyebrow{font-size:8px}.expansion-modal h2{font-size:20px}.expansion-modal>.legacy-pager{min-height:31px}.expansion-modal>.legacy-pager button{width:31px;height:31px}}
@media(max-height:540px) and (min-aspect-ratio:4/3){.practice-screen{display:grid;grid-template-columns:1fr 1fr;grid-template-rows:38px minmax(0,1fr) 40px 42px;gap:8px 20px;max-width:900px}.practice-heading{grid-column:1/3}.practice-hero{grid-column:1/3;grid-row:2;display:flex;position:relative}.practice-portrait{width:34%;flex-shrink:0}.practice-copy{padding:10px 15px;gap:8px;flex:1}.practice-copy h1{font-size:25px}.practice-copy>.eyebrow{font-size:8px}.practice-copy p{font-size:10px;line-height:1.4}.practice-copy .ghost{position:absolute;left:8px;bottom:8px;padding:8px;background:#0b1828e6;font-size:9px}.practice-selection{grid-column:1;grid-row:3}.opponent-picker{grid-column:2;grid-row:3;gap:8px}.practice-footer{grid-column:1/3;grid-row:4}.practice-heading h2{font-size:18px}.collection-modal{height:100%;padding:22px 14px 12px;gap:6px}.collection-modal>.eyebrow{display:none}.collection-modal h2{font-size:19px}.binder-controls{flex-basis:31px}.binder-controls select{padding:5px;font-size:10px}.collection-modal .binder-grid{grid-template-columns:repeat(6,minmax(0,1fr));grid-template-rows:minmax(0,1fr)}.collection-modal .binder-card strong{font-size:10px;line-height:1.2;min-height:25px}.collection-modal .binder-card small{font-size:7px;line-height:8px;margin:2px 4px}.collection-modal .binder-card>span{font-size:7px;line-height:8px;margin:0 4px 5px}.collection-modal .collection-bottom{flex-basis:32px}.collection-modal .collection-bottom .ghost{padding:8px;font-size:10px}.legacy-pager button{width:32px;height:32px}.deck-modal{width:min(760px,100%);display:grid;grid-template-columns:210px 1fr;grid-template-rows:23px 40px 45px 1fr 36px;gap:7px 18px;padding:23px 17px 14px}.deck-modal>.eyebrow{grid-column:1;grid-row:1;font-size:8px}.deck-modal>h2{grid-column:1;grid-row:2;font-size:24px}.practice-deck-tabs{grid-column:1;grid-row:3}.practice-deck-list{grid-column:2;grid-row:1/5;height:100%}.practice-deck-error{grid-column:1;grid-row:4;font-size:10px}.deck-save-bar{grid-column:1/3;grid-row:5}.practice-deck-row{gap:7px}.practice-deck-row .deck-thumb{width:32px;flex-basis:32px}.practice-deck-row b{font-size:10px}.practice-deck-row small{font-size:8px}.practice-deck-row>button:last-child{width:26px;height:26px;font-size:17px}.inspection{width:650px;display:grid;grid-template-columns:185px 1fr;grid-template-rows:18px 40px 18px 24px 1fr 36px;gap:5px 23px;padding:20px}.inspection .inspect-art{grid-column:1;grid-row:1/7;width:100%;height:100%}.inspection>.eyebrow{grid-column:2;grid-row:1;font-size:8px}.inspection>h2{grid-column:2;grid-row:2;font-size:24px;align-self:center}.inspection>.card-set-label{grid-column:2;grid-row:3}.inspection>.inspect-stats{grid-column:2;grid-row:4;justify-content:center}.inspection>p:not(.reflex-note){grid-column:2;grid-row:5;font-size:11px;align-self:start;margin-top:8px}.inspection>p.reflex-note{grid-column:2;grid-row:5;align-self:end;font-size:8px}.inspection>.end-turn{grid-column:2;grid-row:6}.help-modal{width:600px;gap:11px}.help-modal>p{min-height:70px;font-size:14px}.help-modal h2{font-size:24px}.help-modal>.ghost{position:absolute;right:20px;bottom:22px;min-height:32px;padding:7px;font-size:10px}.booster-modal{width:730px;display:grid;grid-template-columns:1fr 1fr;grid-template-rows:27px 1fr 35px 40px;gap:9px 20px;padding:22px 20px 16px}.booster-modal>.eyebrow{grid-column:1;grid-row:1;font-size:8px;align-self:center}.booster-modal>h2{grid-column:1;grid-row:2;font-size:26px;align-self:center}.booster-modal>p{grid-column:1;grid-row:3;font-size:10px}.booster-modal>.end-turn{grid-column:1;grid-row:4}.booster-modal>.sealed-booster,.booster-modal>.reward-card{grid-column:2;grid-row:1/5;width:180px;height:100%;margin:0 auto}.booster-modal>.reveal-progress{grid-column:1;grid-row:3}.booster-modal .reward-copy{padding:7px}.booster-modal .reward-copy>b{font-size:13px}.booster-modal .reward-copy>p{font-size:9px;margin-top:5px}.booster-modal .reward-copy>span{font-size:8px}.booster-modal .reward-copy .card-set-label{display:none}.booster-modal .reward-rarity{font-size:7px;padding:6px}.booster-modal:has(.pack-summary){grid-template-columns:1fr 3fr}.booster-modal .pack-summary{grid-column:2;grid-row:1/5;height:100%}.booster-modal:has(.pack-summary)>h2{font-size:23px}.booster-modal .pack-summary .reward-copy>p{display:none}.booster-modal .pack-summary .reward-copy>b{font-size:10px}.booster-modal .pack-summary .reward-copy>span{font-size:7px}.booster-modal .pack-summary .reward-rarity{font-size:6px}.expansion-modal{width:750px;display:grid;grid-template-columns:205px 1fr;grid-template-rows:25px 45px 40px 1fr 28px;gap:7px 18px;padding:23px 18px 12px}.expansion-modal>.eyebrow{grid-column:1;grid-row:1;font-size:8px}.expansion-modal>h2{grid-column:1;grid-row:2;font-size:25px}.expansion-modal>.legacy-pager{grid-column:1;grid-row:3}.expansion-gallery{grid-column:2;grid-row:1/6;height:100%}.expansion-product{display:grid;grid-template-columns:140px 1fr;grid-template-rows:1fr 45px 40px;gap:8px 12px}.booster-box-stage{grid-column:1;grid-row:1/4;height:100%;padding:5px 6px}.booster-box{width:100%;height:100%}.expansion-product>h3{grid-column:2;grid-row:1;font-size:24px;align-self:center}.expansion-product>p{grid-column:2;grid-row:2;font-size:10px;align-self:center}.expansion-product>.reward-choice{grid-column:2;grid-row:3;font-size:8px;padding:8px}.expansion-launch{grid-column:1;grid-row:4;flex-direction:column;align-self:center;padding:7px;gap:6px}.expansion-launch b{font-size:9px}.expansion-launch .end-turn{min-height:33px;padding:8px;font-size:8px}.core-reward{grid-column:1;grid-row:5;font-size:8px;line-height:1.3}.box-title b{font-size:17px}.box-title small,.box-title em{font-size:6px}.result h1{font-size:42px}.result p{font-size:10px;margin:7px auto}.result .booster-reward{margin:6px auto 10px;padding:9px}.result .result-actions button{min-height:33px}.result>.eyebrow{font-size:8px}.modal.result{padding:20px;width:min(600px,100%)}}
/* Short viewports keep pause controls in two columns. */
@media(max-height:700px){.exp-pause-menu{display:grid;grid-template-columns:1fr 1fr;gap:7px}.exp-pause-menu .exp-button{min-height:43px;font-size:11px;padding:10px}.exp-pause-menu .exp-link{grid-column:1/-1}.exp-pause-menu>.primary{grid-column:1/-1;justify-content:center}.exp-pause-menu>.exp-button .exp-icon{height:17px;width:17px}}
/* Branching paths: the camera follows the party through a continuous snow scene. */
.exp-map-page{background:#d5d3e5;padding:0}
.exp-map-heading{position:absolute;top:max(10px,env(safe-area-inset-top));left:max(10px,env(safe-area-inset-left));right:max(10px,env(safe-area-inset-right));width:auto;max-width:none;padding:8px 12px;min-height:58px}
.exp-map-heading h2{font-size:17px}.exp-map-heading small{font-size:7px}.exp-resources{gap:10px}.exp-money{font-size:13px}
.exp-board-viewport{position:absolute;inset:0;max-width:none;padding:0;margin:0;width:100%;height:100%;overflow:hidden}
.exp-board{width:100%;height:100%;max-width:none}
.exp-terrain,.exp-roads{inset:0;width:100%;height:100%;z-index:0}.exp-terrain.landscape{display:none}
.exp-roads{z-index:1}.road-shadow path{stroke:#a5adc0;stroke-opacity:.18;stroke-width:13}.road-track path{stroke:#f3edda;stroke-width:7;stroke-opacity:.68;stroke-dasharray:3 10}
.road-track .travelled{stroke:#669c98;stroke-opacity:.7;stroke-dasharray:none;stroke-width:5}.road-track .ahead{stroke:#fdf8e4;stroke-dasharray:none;stroke-width:10;stroke-opacity:1}
.exp-tile{width:42px;height:42px;border-radius:50%;padding:10px;border:1px solid #eeeaf5;background:#15171df5;box-shadow:0 3px 0 #8891a580,0 4px 13px #716f8d30;z-index:2}
.exp-tile[hidden]{display:none}.exp-tile .exp-icon{width:20px;height:20px}.exp-tile.future{opacity:.5;box-shadow:none}.exp-tile.cleared{background:#a2b4bbd0;color:#e8f5f4;border-color:#ffffff70;box-shadow:none;opacity:.65}
.exp-tile.current{outline:2px solid #70c2b8;outline-offset:5px}.exp-tile.reachable{width:48px;height:48px;outline:2px solid #76b4a7;outline-offset:5px;background:#131a20;animation:mawTilePulse 2s infinite}
.exp-tile small{font:650 9px system-ui!important;letter-spacing:.1px!important;color:#414654!important;text-transform:none;white-space:nowrap;background:#e9e7f1e8;padding:3px 7px;border-radius:8px;top:calc(100% + 10px)}
.exp-tile.boss{width:51px;height:51px;border-radius:50%}.exp-pawn{width:32px;height:39px;border-radius:12px;transform:translate(-50%,-140%);box-shadow:0 3px 9px #24314540}
.exp-map-dock{position:absolute;bottom:max(10px,env(safe-area-inset-bottom));left:max(10px,env(safe-area-inset-left));right:max(10px,env(safe-area-inset-right));width:auto;max-width:650px;padding:8px 10px;margin:auto;border-radius:18px;background:#101218f2}
.journey-banter{display:flex;gap:10px;align-items:flex-start;margin:0 0 8px;padding:8px 10px;border-radius:14px;background:#1a2430;border:1px solid #9ec7d633;text-align:left}
.journey-banter-portrait{flex:0 0 36px;width:36px;height:44px;border-radius:8px;overflow:hidden;background:#0d1620}
.journey-banter-portrait :is(.art,.foil-art,img){width:100%;height:100%;object-fit:cover;display:block}
.journey-banter-copy{min-width:0;flex:1}.journey-banter-copy strong{display:block;font-size:10px;letter-spacing:.08em;color:#b7d7e0;margin:0 0 3px}
.journey-banter-copy p{margin:0;font-size:12px;line-height:1.35;color:#e8eef3}
.exp-party-strip{padding:0;border:0;gap:6px}.exp-party-card{padding:5px;background:#1c2229}.exp-party-image{height:32px;width:28px}.exp-party-copy strong{font-size:10px}.exp-party-copy small{font-size:8px}
.exp-path-controls{display:flex;flex-direction:column;gap:6px;padding-top:7px;align-items:stretch}.exp-path-hint{color:#a5afbc;font-size:9px;text-align:center;letter-spacing:.5px}.exp-path-options{display:flex;gap:6px;justify-content:center}.exp-path-choice{min-width:0;flex:1;max-width:180px;padding:9px 10px;min-height:40px;gap:7px;font-size:11px;background:#20252c;border-color:#ffffff16;border-radius:12px}.exp-path-choice .exp-icon{color:var(--tile);height:18px;width:18px}.exp-path-controls>.exp-button{min-height:36px}
.exp-map-tools{top:82px;left:10px;gap:6px}.exp-map-tools .exp-icon-button{width:32px;min-height:32px;flex-basis:32px;background:#14171ded}
.exp-map-atmosphere{background:linear-gradient(0deg,#c4c5d71c,transparent 40%,#c2c0d826);z-index:3}.exp-map-atmosphere:after{content:'';position:absolute;inset:0;background:radial-gradient(ellipse at 45% 40%,transparent 50%,#aaa9c22b);pointer-events:none}
/* The hand owns its space. Every card face keeps its artwork, stats and rules. */
.game-battle .battle-layout{max-width:1100px}.game-battle .battle-main{grid-template-columns:minmax(0,1fr);grid-template-rows:minmax(0,1fr) clamp(265px,43dvh,380px);gap:6px}
.game-battle .arena-content{padding:7px 9px;grid-template-rows:30px 20px minmax(0,1fr) var(--phase-row,25px) minmax(0,1fr) 20px 30px 32px;gap:3px}
.game-battle .hero-seal{width:28px;height:28px;flex-basis:28px}.game-battle .hero-heading strong{font-size:12px}.game-battle .hero-heading small{display:none}.game-battle .hud-energy{width:45px}.game-battle .flame{height:16px;width:12px}.game-battle .hero-heading .hp{font-size:10px}
.game-battle .support-slot small{font-size:6px}.game-battle .support-slot>span{font-size:10px}.game-battle .unit-caption{padding:12px 4px 4px}.game-battle .unit-caption strong{font-size:10px}.game-battle .unit-stats{font-size:9px}.game-battle .unit-trait{font-size:6px;display:block}.game-battle .battle-divider strong{font-size:9px}.game-battle .battle-divider small{font-size:6px;max-height:9px}.game-battle .turn-controls .end-turn{min-height:29px;padding:7px 13px}.game-battle .stamina-caption b{font-size:16px}
.game-battle .hand-section{display:grid;grid-template-rows:20px minmax(0,1fr) 14px;gap:3px;min-height:0;padding:0;overflow:visible}
.game-battle .hand{display:grid;grid-template-columns:repeat(var(--hand-cols),minmax(0,1fr));grid-template-rows:repeat(var(--hand-rows),minmax(0,1fr));gap:7px 6px;align-items:center;justify-items:center;justify-content:center;height:100%;min-height:0;padding:3px 6px 6px;overflow:visible}
.game-battle .hand .battle-card{width:100%;max-width:150px;height:100%;max-height:235px;aspect-ratio:2/3;min-height:0;min-width:0;margin:0!important;flex-basis:auto;display:flex;flex-direction:column;position:relative;border-radius:10px;transform:perspective(800px) rotateX(var(--hover-x,0deg)) rotateY(var(--hover-y,0deg));background:#1d2530;box-shadow:0 3px 0 #ffffff15;container-type:inline-size;overflow:hidden}
.game-battle .hand .battle-card.selected{transform:translateY(-5px);z-index:8;box-shadow:0 0 0 2px #98e1d9,0 5px 20px #0008}
.game-battle .hand .card-portrait{height:53%;flex:0 0 53%;min-height:0;overflow:hidden;background:#263543}
.game-battle .hand .card-portrait :is(.art,.foil-art){width:100%;height:100%;object-fit:contain;object-position:center;transform:none}
.game-battle .hand .card-copy{height:47%;flex:1;min-height:0;padding:4px 5px;display:flex;flex-direction:column;gap:2px;background:#11171e;overflow:visible}
.game-battle .hand .card-copy strong{display:block;font:700 clamp(7px,8cqw,13px)/1.12 system-ui;white-space:normal;letter-spacing:-.15px}
.game-battle .hand .card-copy p{display:block;font:400 clamp(6.5px,6.8cqw,10px)/1.2 system-ui;color:#d0d8df;margin:0;overflow:visible;white-space:normal;text-overflow:clip;max-height:none;-webkit-line-clamp:unset}
.game-battle .hand .card-stats{display:flex;gap:8px;font-size:clamp(7px,8cqw,11px);margin:0;line-height:1.1}
.game-battle .hand .card-keyword{display:block;font-size:clamp(6px,6.5cqw,9px);line-height:1.15;letter-spacing:0;margin:0;color:#9cddd2}
.game-battle .hand .card-type{display:block;top:4px;right:4px;font-size:clamp(5px,5.5cqw,8px);letter-spacing:0;padding:2px 3px;max-width:67%;border-radius:4px;background:#0a111ac9}
.game-battle .hand .cost{display:grid;place-items:center;width:21px;height:23px;font-size:11px;border-radius:8px 0 9px 0;z-index:3}
.game-battle .selection-help{font-size:7px;height:14px}.game-battle .hand-heading small{font-size:6px;display:block}.game-battle .hand-heading>span{font-size:8px}.game-battle .inspect-button{font-size:16px}
@media(min-width:700px) and (min-height:650px){
 .game-battle .battle-main{grid-template-rows:minmax(0,1fr) clamp(215px,29dvh,295px)}
 .game-battle .hand{grid-template-columns:repeat(7,minmax(0,1fr));grid-template-rows:minmax(0,1fr)}
 .game-battle .hand .battle-card{max-width:165px;max-height:265px}
 .game-battle .arena-content{grid-template-rows:38px 26px minmax(0,1fr) var(--phase-row,32px) minmax(0,1fr) 26px 38px 37px;gap:5px}
 .game-battle .unit-caption strong{font-size:13px}.game-battle .unit-stats{font-size:11px}
}
@media(max-height:660px) and (max-aspect-ratio:4/3){
 .game-battle .shell{padding:5px;gap:3px}.game-battle .top{height:27px;flex-basis:27px}
 .game-battle .battle-main{grid-template-rows:minmax(0,1fr) clamp(220px,43dvh,290px);gap:4px}
 .game-battle .arena-content{grid-template-rows:25px 16px minmax(0,1fr) var(--phase-row,19px) minmax(0,1fr) 16px 25px 27px;gap:2px;padding:4px}
 .game-battle .hero-seal{width:24px;height:24px;flex-basis:24px}.game-battle .unit-trait{display:none}.game-battle .unit-caption strong{font-size:8px}.game-battle .unit-stats{font-size:8px}
 .game-battle .hand{gap:5px 5px}.game-battle .hand-section{grid-template-rows:17px minmax(0,1fr) 11px}.game-battle .selection-help{font-size:6px;height:11px}
 .game-battle .hand .card-copy{padding:3px;gap:1px}.game-battle .hand .card-copy p{font-size:6px;line-height:1.15}.game-battle .hand .card-copy strong{font-size:7px}
}
@media(min-aspect-ratio:4/3) and (max-height:649px){
 .game-battle .battle-main{grid-template-columns:minmax(0,1fr) 44%;grid-template-rows:minmax(0,1fr);gap:10px}
 .game-battle .hand-section{grid-template-rows:20px minmax(0,1fr) 16px}.game-battle .hand{grid-template-columns:repeat(var(--hand-cols),minmax(0,1fr));grid-template-rows:repeat(var(--hand-rows),minmax(0,1fr));gap:7px;padding:4px}
 .game-battle .hand-heading small{display:none}.game-battle .hand .battle-card{max-width:140px;max-height:215px}.game-battle .hand .card-copy{padding:4px;gap:2px}
 .exp-map-dock{max-width:630px;padding:7px 10px;display:flex;gap:12px;align-items:center}.exp-party-strip{flex:1}.exp-party-copy small{display:none}.exp-path-controls{padding:0;flex:1}.exp-path-hint{font-size:8px}.exp-path-choice{font-size:9px;padding:7px;min-height:34px}.exp-path-choice .exp-icon{width:15px;height:15px}.exp-map-tools{top:77px}
 .exp-tile{width:35px;height:35px}.exp-tile.reachable{width:42px;height:42px}.exp-tile .exp-icon{width:18px;height:18px}.exp-tile.boss{width:43px;height:43px}.exp-tile small{font-size:8px!important}
 .exp-terrain.portrait{display:none}.exp-terrain.landscape{display:block}
}
:fullscreen{background:#080b10;width:100%;height:100%}html:fullscreen #app{height:100dvh}
@media(prefers-reduced-motion:reduce){.exp-tile.reachable{animation:none}}

.exp-board-viewport{inset:calc(74px + env(safe-area-inset-top)) 0 calc(126px + env(safe-area-inset-bottom));height:auto;width:100%;overflow:hidden}
.game-battle .hand[data-count="5"] .card-portrait,.game-battle .hand[data-count="6"] .card-portrait,.game-battle .hand[data-count="7"] .card-portrait{height:42%;flex-basis:42%}
.game-battle .hand[data-count="5"] .card-copy,.game-battle .hand[data-count="6"] .card-copy,.game-battle .hand[data-count="7"] .card-copy{height:58%}
@media(min-width:700px) and (min-height:650px){.game-battle .hand .card-portrait{height:53%;flex-basis:53%}.game-battle .hand .card-copy{height:47%}}
@media(min-aspect-ratio:4/3){.exp-terrain.portrait{display:none}.exp-terrain.landscape{display:block}}
@media(min-aspect-ratio:4/3) and (max-height:649px){.exp-board-viewport{inset:72px 0 calc(83px + env(safe-area-inset-bottom))}}
/* The hand is always one shallow fan, using the dragged card's intrinsic face. */
.game-battle .battle-main{grid-template-columns:minmax(0,1fr)!important;grid-template-rows:minmax(0,1fr) clamp(160px,29dvh,240px)!important;gap:7px}
.game-battle .hand-section{grid-template-rows:20px minmax(0,1fr) 14px;gap:3px;overflow:visible}
.game-battle .hand{--fan-width:94px;--fan-height:141.75px;--fan-step:53px;--face-scale:.746;display:flex!important;flex-wrap:nowrap!important;grid-template-columns:none!important;grid-template-rows:none!important;align-items:center;justify-content:center;gap:0!important;padding:18px 8px 12px!important;overflow:visible;isolation:isolate}
.game-battle .hand .battle-card{flex:0 0 var(--fan-width);width:var(--fan-width);height:var(--fan-height);max-width:none;max-height:none;min-width:0;margin:0 0 0 calc(var(--fan-step) - var(--fan-width))!important;border-radius:8px;display:block;container-type:normal;position:relative;overflow:hidden;transform:perspective(800px) translateY(calc(var(--lift,0px) + var(--hover-lift,0px))) rotate(var(--tilt,0deg)) rotateX(var(--hover-x,0deg)) rotateY(var(--hover-y,0deg));transform-origin:50% 85%;z-index:calc(1 + var(--index));box-shadow:0 4px 9px #0007,0 1px 0 #ffffff25;transition:transform .18s cubic-bezier(.2,.8,.2,1),box-shadow .18s,border-color .18s}
.game-battle .hand .battle-card:first-child{margin-left:0!important}.game-battle .hand .battle-card.selected{transform:perspective(800px) translateY(-14px) rotate(0deg) scale(1.07);z-index:20;box-shadow:0 0 0 1px var(--mint),0 12px 22px #0008}
.card-face{position:absolute;left:0;top:0;width:126px;height:190px;transform:scale(var(--face-scale,1));transform-origin:0 0;text-align:left;overflow:hidden;background:#15232f;border-radius:9px}
.game-battle .hand .card-face .card-portrait,.drag-ghost .card-face .card-portrait{position:relative;height:109px;min-height:0;width:126px;display:block;overflow:hidden;background:#203443}
.game-battle .hand .card-face .card-portrait :is(.art,.foil-art),.drag-ghost .card-face .card-portrait :is(.art,.foil-art){width:100%;height:100%;object-fit:cover;object-position:50% 26%;transform:none}
.game-battle .hand .card-face .card-copy,.drag-ghost .card-face .card-copy{height:81px;min-height:81px;display:block;padding:6px 8px 7px;background:linear-gradient(150deg,#1e303c,#101d2b);overflow:hidden}
.game-battle .hand .card-face .card-copy strong,.drag-ghost .card-face .card-copy strong{font:700 14px/1.1 system-ui;letter-spacing:-.3px;display:block;white-space:normal}
.game-battle .hand .card-face .card-copy p,.drag-ghost .card-face .card-copy p{font:400 8px/1.4 system-ui;margin:3px 0 0;color:#d1dbe3;display:block;white-space:normal}
.game-battle .hand .card-face .card-stats,.drag-ghost .card-face .card-stats{display:flex;font-size:10px;gap:12px;margin-top:3px;line-height:1.1}
.game-battle .hand .card-face .card-keyword,.drag-ghost .card-face .card-keyword{display:block;font-size:8px;letter-spacing:.5px;line-height:1.2;color:#a7d7ce;margin-top:3px}
.game-battle .hand .card-face .cost,.drag-ghost .card-face .cost{position:absolute;top:0;left:0;width:28px;height:30px;border-radius:8px 0 10px 0;font-size:14px;display:grid;place-items:center;z-index:3}
.game-battle .hand .card-face .card-type,.drag-ghost .card-face .card-type{position:absolute;top:6px;right:5px;padding:2px 4px;font-size:6px;letter-spacing:.2px;border-radius:4px;background:#0a1227dc;z-index:2;display:block}
.drag-ghost .card-face{transform:none!important;--face-scale:1}.drag-ghost .battle-card{width:126px;height:190px;border-radius:10px;position:relative}
.game-battle .hand .battle-card.dealing:after{z-index:25}
@media(hover:hover){.game-battle .hand .battle-card:hover{transform:perspective(800px) translateY(-13px) rotate(0deg) rotateX(var(--hover-x,0deg)) rotateY(var(--hover-y,0deg)) scale(1.04);z-index:21;box-shadow:0 12px 24px #0009}}
@media(min-aspect-ratio:4/3) and (max-height:649px){.game-battle .battle-main{grid-template-rows:minmax(0,1fr) clamp(120px,37dvh,175px)!important;gap:3px}.game-battle .hand-section{grid-template-rows:16px minmax(0,1fr) 10px;gap:0}.game-battle .arena-content{grid-template-rows:23px 15px minmax(0,1fr) var(--phase-row,18px) minmax(0,1fr) 15px 23px 26px;gap:2px;padding:4px 7px}.game-battle .hero-seal{height:22px;width:22px;flex-basis:22px}.game-battle .unit-caption strong{font-size:8px}.game-battle .unit-trait{display:none}.game-battle .selection-help{height:10px;font-size:6px}}
/* The map camera moves the world, leaving controls anchored to the screen. */
.exp-board-viewport{touch-action:none;cursor:grab;user-select:none}.exp-board-viewport.panning{cursor:grabbing}.exp-board{overflow:hidden;contain:layout paint}.exp-map-tools [data-exp-action="center-board"]{opacity:.45;transition:opacity .2s,box-shadow .2s}.exp-map-tools [data-exp-action="center-board"].away{opacity:1;box-shadow:0 0 0 1px #98e1d980;background:#254240}
.exp-tree-crown{transform-box:fill-box;transform-origin:50% 100%;animation:mawTreeSway var(--sway-time,6s) ease-in-out infinite alternate;animation-delay:var(--sway-delay,0s)}
@keyframes mawTreeSway{from{transform:rotate(-1.6deg)}to{transform:rotate(1.7deg)}}
.exp-map-atmosphere:before{content:'';position:absolute;inset:-30% 0 0;background-image:radial-gradient(circle at 8px 16px,#fff 1.5px,transparent 2px),radial-gradient(circle at 87px 98px,#fff 1px,transparent 2px);background-size:180px 210px,280px 320px;opacity:.25;animation:mawSnow 24s linear infinite}
.exp-party-copy small b{font-weight:400;font-variant-numeric:tabular-nums}.exp-path-choice{transition:transform .18s cubic-bezier(.2,.8,.2,1),background .18s,border-color .18s,box-shadow .18s}.exp-path-choice:hover{border-color:var(--tile);box-shadow:0 0 15px #98e1d912}.exp-map-tools .exp-icon-button,.exp-menu-item,.exp-tab{transition:transform .18s,background .18s,box-shadow .18s}
.exp-pawn{transition:box-shadow .2s;box-shadow:0 3px 12px #24314555,0 0 13px #9cfff133}.exp-party-card:hover{border-color:#98e1d94d}.exp-button.primary:hover{background:#b1eee6;box-shadow:0 3px 18px #98e1d91a}.exp-app button:not(:disabled):active{transform:scale(.95)}.exp-app .exp-tile:active{transform:translate(-50%,-50%) scale(.92)}
.calm-motion .exp-tree-crown,.calm-motion .exp-map-atmosphere:before{animation:none!important}
@media(prefers-reduced-motion:reduce){.exp-tree-crown,.exp-map-atmosphere:before{animation:none}.game-battle .hand .battle-card{transition:none}}

@media(prefers-reduced-motion:reduce){.game-battle .hand .battle-card{transform:translateY(var(--lift,0px)) rotate(var(--tilt,0deg))!important}.game-battle .hand .battle-card.selected{transform:translateY(-14px) rotate(0deg)!important}}

/* Keep the full phase and combo readout in its own grid row. */
.arena-content{--phase-row:46px}
.game-battle .battle-divider{position:relative;z-index:6;align-self:stretch;overflow:visible}
.game-battle .battle-divider>div{display:flex;flex-direction:column;justify-content:center;gap:3px;min-width:0}
.game-battle .battle-divider small{max-height:none;overflow:visible;margin:0;line-height:1.3}
.game-battle .clash-tally{display:block;white-space:nowrap;font-size:8px;line-height:17px}
.game-battle .clash-tally b{font-size:13px;line-height:17px}
@media(max-height:500px) and (min-aspect-ratio:4/3){.arena-content{--phase-row:36px}.game-battle .battle-divider>div{gap:1px}.game-battle .clash-tally{font-size:7px}.game-battle .clash-tally b{font-size:11px}}
/* Outcome cinematics: saved first, dismissed explicitly. */
.exp-result-overlay{padding:0!important;background:#080d14!important;z-index:90}.exp-result{--glow:#8fe8c2;position:relative;isolation:isolate;width:100%;height:100dvh;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;padding:clamp(16px,4vh,40px);gap:12px;overflow:hidden;background:radial-gradient(ellipse at 50% 38%,#203d3b99,transparent 65%),#080d14}.exp-result:before{content:'';position:absolute;inset:0;z-index:-2;background:linear-gradient(#080d1480,#080d14ed),var(--result-scene) center/cover;animation:result-scene 5s ease-out both}.result-forge{--glow:#ffb36b}.result-relic{--glow:#d6b7ff}.result-camp{--glow:#ffc885}.exp-result h1{font-size:clamp(26px,5vw,46px);margin:0;letter-spacing:-.04em}.exp-result h2{margin:0;color:var(--glow);font-size:24px}.exp-result p{max-width:420px;margin:0;line-height:1.6;color:#d7e0e6}.exp-result-symbol{width:clamp(72px,14vh,120px);height:clamp(72px,14vh,120px);display:grid;place-items:center;border-radius:50%;color:var(--glow);background:radial-gradient(circle,#ffffff16,transparent);filter:drop-shadow(0 0 24px var(--glow));animation:result-emblem 850ms cubic-bezier(.2,.8,.2,1) both}.exp-result-symbol svg{width:65%;height:65%}.exp-result-rays{position:absolute;z-index:-1;width:95vmin;height:95vmin;border-radius:50%;background:repeating-conic-gradient(from 0deg,#ffffff06 0deg 8deg,transparent 8deg 24deg);mask-image:radial-gradient(circle,black,transparent 70%);animation:result-rays 18s linear infinite}.exp-result-party{width:min(100%,460px);display:grid;gap:8px}.exp-result-party article{display:flex;align-items:center;gap:12px;text-align:left;padding:10px 14px;border:1px solid #ffffff18;border-radius:16px;background:#0d1723d9;animation:result-row 600ms 180ms both}.exp-result-portrait{width:50px;height:58px;flex-shrink:0;border-radius:10px;overflow:hidden;background:var(--hero)}.exp-result-portrait img{width:100%;height:100%;object-fit:cover}.exp-result-party article>div{flex:1;display:grid;gap:3px}.exp-result-party strong{font-size:15px}.exp-result-party span,.exp-result-party small{font-size:13px;color:#c6d1dc}.exp-result-party b{color:var(--glow);font-size:18px}.exp-result-health{height:5px;background:#ffffff18;border-radius:8px;overflow:hidden;margin-top:4px}.exp-result-health i{display:block;height:100%;width:var(--after);background:var(--glow);animation:result-health 1.1s 250ms both}.exp-result-deltas{display:flex;gap:20px;color:#edd09a;font-weight:700}.exp-result>.exp-button{min-width:190px;min-height:48px;margin-top:8px}.exp-result-saved{color:#98a9b7;font-size:11px}.exp-result-sparks{position:absolute;inset:0;z-index:-1;pointer-events:none}.exp-result-sparks i{position:absolute;left:var(--x);top:65%;width:3px;height:3px;border-radius:50%;background:var(--glow);box-shadow:0 0 12px var(--glow);animation:result-spark 3s calc(var(--i)*-170ms) infinite ease-out}@keyframes result-emblem{from{opacity:0;transform:scale(.5) rotate(-20deg)}60%{opacity:1;transform:scale(1.08) rotate(3deg)}to{transform:scale(1)}}@keyframes result-scene{from{transform:scale(1.08);opacity:.2}to{transform:scale(1);opacity:1}}@keyframes result-rays{to{transform:rotate(360deg)}}@keyframes result-row{from{opacity:0;transform:translateY(14px)}to{opacity:1;transform:none}}@keyframes result-health{from{width:var(--before)}to{width:var(--after)}}@keyframes result-spark{from{opacity:0;transform:translateY(40px)}30%{opacity:.8}to{opacity:0;transform:translateY(-240px)}}@media(max-height:560px) and (min-aspect-ratio:4/3){.exp-result{gap:5px;padding:12px}.exp-result-symbol{width:56px;height:56px}.exp-result h1{font-size:25px}.exp-result-party{display:flex;width:min(95%,850px)}.exp-result-party article{flex:1;padding:8px}.exp-result p{font-size:13px}.exp-result>.exp-button{margin-top:2px}}@media(prefers-reduced-motion:reduce){.exp-result *,.exp-result:before{animation:none!important}.exp-result-sparks,.exp-result-rays{display:none}}.calm-motion .exp-result:before{animation:none!important}.calm-motion .exp-result-sparks,.calm-motion .exp-result-rays{display:none}

/* A pre-current save must be redeemed in-game before ordinary navigation can
   resume. This has one contained reader so the page underneath never grows or
   scrolls, including in short landscape. */
.reset-compensation-modal{width:min(650px,100%);padding:0;align-items:stretch;text-align:left;background:linear-gradient(145deg,#101827,#111722 54%,#152c2b)}
.reset-compensation-body{width:100%;min-height:0;flex:1 1 auto;overflow:auto;overscroll-behavior:contain;padding:clamp(18px,4vw,32px);display:grid;align-content:start;gap:16px;scrollbar-gutter:stable}
.reset-compensation-heading{display:grid;gap:7px}.reset-compensation-heading h1{margin:0;font-size:clamp(30px,6vw,46px);letter-spacing:-.04em}.reset-compensation-heading p{margin:0;max-width:570px;color:#d0dce5}.reset-compensation-mark{width:54px;height:54px;display:grid;place-items:center;border-radius:18px;background:#bca4eb1c;border:1px solid #c9b8ef56;color:#d4c6ff;box-shadow:0 0 36px #bca4eb1b}.reset-compensation-mark .exp-icon{width:28px;height:28px}
.reset-compensation-grant{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:13px 15px;border:1px solid #c4b3ee61;border-radius:15px;background:linear-gradient(100deg,#29213dbe,#192a35be)}.reset-compensation-grant strong{display:flex;align-items:center;gap:8px;color:#f4edff;font-size:17px}.reset-compensation-grant strong .exp-money{font-size:21px;color:#d5c5ff}.reset-compensation-grant span{font-size:12px;color:#c5d4dc;text-align:right}
.reset-compensation-choice{display:grid;gap:10px}.reset-compensation-choice h2{margin:2px 0 0;font-size:clamp(21px,4vw,29px)}.reset-compensation-choice p{margin:0}.reset-compensation-progress{display:flex;align-items:baseline;gap:5px;color:#b9d1ce!important;font-size:12px!important}.reset-compensation-progress b{color:#aaf2d9;font-size:18px}.reset-compensation-heroes{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}.reset-compensation-hero{min-width:0;min-height:78px;padding:8px 10px;display:flex;align-items:center;gap:10px;text-align:left;border:1px solid #91e6d14d;border-radius:14px;background:#0b1520d9;color:#effff9}.reset-compensation-hero:hover{border-color:#9eeed5;background:#153237}.reset-compensation-hero img{width:58px;height:62px;flex:0 0 58px;object-fit:cover;object-position:50% 22%;border-radius:9px;background:#172435}.reset-compensation-hero>span{min-width:0;display:grid;gap:2px}.reset-compensation-hero strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:14px}.reset-compensation-hero small{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#b8cbd3}.reset-compensation-hero em{font-size:11px;font-weight:750;font-style:normal;color:#a5efd4}.reset-compensation-empty{padding:13px;border:1px dashed #ffffff38;border-radius:12px;color:#c8d7de}.reset-compensation-note{margin:0!important;padding-top:2px;color:#aebec8!important;font-size:11px!important}
@media(min-width:700px) and (min-height:650px){.reset-compensation-heroes{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:420px){.reset-compensation-body{padding:18px}.reset-compensation-grant{align-items:flex-start;flex-direction:column}.reset-compensation-grant span{text-align:left}.reset-compensation-hero{min-height:74px;padding:8px}.reset-compensation-hero img{width:48px;height:58px;flex-basis:48px}.reset-compensation-hero strong{font-size:13px}.reset-compensation-hero small{font-size:10px}.reset-compensation-hero em{font-size:10px}}
@media(min-aspect-ratio:4/3) and (max-height:650px){.reset-compensation-modal{width:min(920px,100%)}.reset-compensation-body{padding:16px 22px;gap:11px}.reset-compensation-heading{gap:3px}.reset-compensation-heading h1{font-size:29px}.reset-compensation-heading p,.reset-compensation-choice p{font-size:12px;line-height:1.42}.reset-compensation-mark{display:none}.reset-compensation-grant{padding:9px 12px}.reset-compensation-heroes{grid-template-columns:repeat(3,minmax(0,1fr));gap:7px}.reset-compensation-hero{min-height:62px;padding:6px 8px;gap:8px}.reset-compensation-hero img{width:42px;height:50px;flex-basis:42px}.reset-compensation-hero small{font-size:9px}.reset-compensation-hero em{font-size:9px}.reset-compensation-note{font-size:10px!important}}


/* Each campaign keeps a separate party and journey. */
.campaign-journeys{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;width:100%;margin:8px 0}
.campaign-journeys .exp-button{min-height:52px;min-width:0;white-space:normal;display:flex;flex-direction:column;justify-content:center;gap:3px;padding:9px}
.campaign-journeys small{font-size:11px;line-height:1.3;opacity:.8;overflow-wrap:anywhere}
@media(max-width:380px){.campaign-journeys{grid-template-columns:1fr}}

.exp-money.ticket{color:#f4797b}.exp-money.ticket .currency-icon{width:42px;height:30px;object-fit:contain}
