/* Local-only light atlas. Real whole-card artwork and engine state are untouched. */
body.world-game.edge-to-edge-map{--atlas-ink:#183b30;--atlas-muted:#60563e;--atlas-bronze:#92703c;--atlas-parchment:#183b30;--atlas-floor:#f6e7c7;--atlas-paper:url('./assets/light-atlas-v1/vellum.webp');--atlas-frame:url('./assets/light-atlas-v1/resource-plaque.webp');--hud-slot:clamp(94px,8.45vw,140px);--hud-inset:24px;--hud-gap:12px}
.world-game.edge-to-edge-map ::selection{background:#d8be7d;color:#153c30}
.world-game.edge-to-edge-map :is(dialog:not(.restart-dialog),.event-sheet:not(:has(.autobattle-scene))){--muted:#60563e;--ink:#183b30;--gold:#775a27;color:#183b30;caret-color:#183b30;scrollbar-color:#97743e #f2dfb9;text-underline-offset:4px}
.world-game.edge-to-edge-map :is(dialog:not(.restart-dialog),.event-sheet:not(:has(.autobattle-scene))) :is(button,a,summary,input,select):focus-visible{outline:3px solid #21634d;outline-offset:3px}
.world-game.edge-to-edge-map dialog:not(.restart-dialog){background:#f6e7c7 var(--atlas-paper) repeat;border:12px solid transparent;border-image:var(--atlas-frame) 120 180 fill / 18px / 0 stretch;border-radius:12px;outline:none;padding:24px;box-shadow:0 12px 36px #17221945;max-height:calc(100dvh - 40px)}
.world-game.edge-to-edge-map dialog:not(.restart-dialog)::backdrop{background:#14231d55;backdrop-filter:none}
.world-game.edge-to-edge-map dialog:not(.restart-dialog)>.dialog-header{background:#f6e7c7 var(--atlas-paper) repeat;color:#183b30;border-color:#b8a173;margin:0 0 20px;padding:8px 0 18px;gap:16px;top:-24px;z-index:3}
.world-game.edge-to-edge-map dialog:not(.restart-dialog)>.dialog-header h2{color:#183b30;font-family:AtlasDisplay,Georgia,serif;font-size:30px;font-weight:500;line-height:1.25;text-wrap:balance}
.world-game.edge-to-edge-map dialog:not(.restart-dialog) .icon-button{color:#553f22;background:#efdbaf;border:1px solid #92703c;border-radius:8px;min-width:44px;min-height:44px}
.world-game.edge-to-edge-map dialog:not(.restart-dialog) :is(.button,.equipment-equip,.shop-buy){color:#234b3a;background:#efddb7;border:1px solid #ae9060;border-radius:7px;font-weight:600;min-height:44px}
.world-game.edge-to-edge-map dialog:not(.restart-dialog) :is(.button.primary,.button.gold,.equipment-equip,.shop-buy){border:0;background:var(--atlas-frame) center/100% 100% no-repeat;color:#283923;min-height:50px;padding:12px 22px;font-weight:700}
.world-game.edge-to-edge-map dialog:not(.restart-dialog) :is(.button,.equipment-equip,.shop-buy):hover:not(:disabled){filter:brightness(1.05);color:#17392a}
.world-game.edge-to-edge-map dialog:not(.restart-dialog) :is(.button,.equipment-equip,.shop-buy):disabled{background:#e2d1b0;color:#6f644e;border:1px solid #b7a481;filter:none;opacity:1;cursor:default}
.world-game.edge-to-edge-map .map-hud-resources{background:none;border:0;gap:10px;padding:0;box-shadow:none}
.world-game.edge-to-edge-map .map-hud-resource{width:158px;height:68px;box-sizing:border-box;gap:8px;padding:12px 16px;background:var(--atlas-frame) center/100% 100% no-repeat;border:0;border-radius:0;color:#173c30;font-family:Georgia,serif;font-size:28px;font-weight:600}
.world-game.edge-to-edge-map .map-hud-resource small{font-size:19px;color:#315245;margin-left:-6px}
.world-game.edge-to-edge-map .map-hud-resource .icon{width:30px;height:30px;padding:0;border:0;background:none;border-radius:0;color:#775121;stroke-width:1.8}
.world-game.edge-to-edge-map .map-hud-resource[data-resource=victory] .icon{color:#326d48;fill:#63906755}
.world-game.edge-to-edge-map .map-hud-resource.is-finish{cursor:pointer;outline:3px solid #408855;outline-offset:1px}
.world-game.edge-to-edge-map .map-squad-dock{gap:10px}
.world-game.edge-to-edge-map .hud-squad-slot{border:6px solid transparent;border-image:var(--atlas-frame) 120 180 fill / 9px / 0 stretch;border-radius:9px;padding:1px 1px 9px;background:#f5e3bd var(--atlas-paper);color:#315645;overflow:visible}
.world-game.edge-to-edge-map .hud-squad-slot.is-filled{background:#f6e6c1;border-color:transparent}
.world-game.edge-to-edge-map .hud-fighter-art{border-radius:5px;overflow:hidden}
.world-game.edge-to-edge-map .hud-slot-plus{border:1px solid #ac905c;background:transparent;color:#49604a;width:40px;height:40px}
.world-game.edge-to-edge-map .hud-slot-plus .icon{color:#49604a}
.world-game.edge-to-edge-map .hud-slot-number{color:#4a6048;text-shadow:none;top:5px;left:7px;font-family:Georgia,serif}
.world-game.edge-to-edge-map .hud-fighter-health{bottom:2px;left:4px;right:4px;height:6px;background:#9d8b61;border:1px solid #76653e;border-radius:4px}
.world-game.edge-to-edge-map .hud-fighter-health i{background:#3c8d52}
.world-game.edge-to-edge-map .button:is(.hud-inventory,.hud-quests){border:0;background:none;box-shadow:none;padding:0;min-width:64px;width:100px;height:110px;position:relative;filter:drop-shadow(0 4px 4px #16281d66)}
.world-game.edge-to-edge-map .button.hud-quests{width:116px;height:122px}
.world-game.edge-to-edge-map .button.hud-inventory::before{content:none}
.world-game.edge-to-edge-map .button:is(.hud-inventory,.hud-quests)>img{display:block;width:100%;height:100%;object-fit:contain;pointer-events:none}
.world-game.edge-to-edge-map .button:is(.hud-inventory,.hud-quests):hover:not(:disabled){background:none;filter:drop-shadow(0 5px 5px #16281d66) brightness(1.12)}
.world-game.edge-to-edge-map .hud-quest-label{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.world-game.edge-to-edge-map .hud-quest-ready{top:2px;right:2px;background:#f5e2aa;color:#254830;border:1px solid #b08b3d;min-width:24px;height:24px}
.world-game.edge-to-edge-map dialog.quest-journal-dialog,.world-game.edge-to-edge-map dialog.quest-journal-dialog:has(.quest:only-child){inset:12.75dvh 22px auto auto;width:min(540px,38vw);max-width:none;height:min(630px,75dvh);max-height:calc(100dvh - 152px);margin:0;padding:40px 36px 30px;border:0;border-image:none;background:transparent url('./assets/light-atlas-v1/journal.webp') center/100% 100% no-repeat;border-radius:12px;overflow:hidden}
.world-game.edge-to-edge-map dialog.quest-journal-dialog[open]{display:flex;flex-direction:column;animation:atlas-page-reveal .24s cubic-bezier(.16,1,.3,1)}
.world-game.edge-to-edge-map dialog.quest-journal-dialog::backdrop{background:transparent;backdrop-filter:none}
.world-game.edge-to-edge-map dialog.quest-journal-dialog>.dialog-header{position:relative;top:auto;flex:none;min-height:58px;padding:0 0 16px;margin-bottom:18px;background:none;border-bottom:1px solid #b5a172}
.world-game.edge-to-edge-map dialog.quest-journal-dialog>.dialog-header h2{width:100%;text-align:center;font-size:40px;text-transform:uppercase;padding-inline:44px 60px;margin:0}
.world-game.edge-to-edge-map dialog.quest-journal-dialog>.dialog-header>.icon-button{position:absolute;left:0;right:auto;top:0;width:44px;height:44px;min-width:44px;min-height:44px;font-size:18px}
.world-game.edge-to-edge-map .quest-journal-dialog .collection{display:block;overflow:auto;min-height:0;padding:0 4px 0 0;overscroll-behavior:contain;scrollbar-width:thin;flex:1}
.world-game.edge-to-edge-map .quest-journal-dialog .quest-count{position:static;text-align:center;margin:0 0 10px;padding:0 0 6px;color:#60563e;font-size:12px}
.world-game.edge-to-edge-map .quest-journal-list{display:flex;flex-direction:column;gap:20px}
.world-game.edge-to-edge-map .quest-journal-list>.quest{display:grid;grid-template-columns:132px minmax(0,1fr);gap:18px;padding:0 0 18px;margin:0;border:0;border-bottom:1px solid #b8a173;background:none;min-width:0;align-items:center}
.world-game.edge-to-edge-map .quest-journal-list>.quest:last-child{border-bottom:0;padding-bottom:0}
.world-game.edge-to-edge-map .quest-journal-list .quest-illustration{display:block;width:100%;height:auto;max-height:205px;aspect-ratio:2/3;object-fit:contain;border-radius:8px;background:none}
.world-game.edge-to-edge-map .quest-journal-list .quest-card-footer{padding:0;gap:12px;min-width:0}
.world-game.edge-to-edge-map .quest-journal-objective{font-family:Georgia,serif;font-size:21px;line-height:1.24;font-weight:600;color:#183b30;margin:0;text-wrap:balance;overflow-wrap:anywhere}
.world-game.edge-to-edge-map .quest-journal-list .quest-status{color:#31523f;font-size:15px;line-height:1.4;flex-wrap:wrap}
.world-game.edge-to-edge-map .quest-journal-list .quest-map-hint{color:#365f62;font-size:11px}
.world-game.edge-to-edge-map .quest-journal-list .quest-reward{color:#705125;font-size:12px;line-height:1.5}
.world-game.edge-to-edge-map .quest-journal-list .button{padding:10px 12px;font-size:13px}
.world-game.edge-to-edge-map .journal-empty{display:flex;flex-direction:column;align-items:center;justify-content:center;min-height:240px;text-align:center;padding:16px 12px;color:#486048;gap:18px}
.world-game.edge-to-edge-map .journal-empty>img{width:88px;height:88px;object-fit:contain}
.world-game.edge-to-edge-map .journal-empty p{max-width:25ch;font-size:15px;line-height:1.6;margin:0}
.world-game.edge-to-edge-map .quest-journal-dialog:has(.journal-empty){height:400px}
.world-game.edge-to-edge-map :is(.equipment-workspace,.equipment-summary,.squad-picker-heading,.squad-synergies,.archetype-section,.potion-picker,.scouted-enemy,.auto-collection){color:#183b30}
.world-game.edge-to-edge-map :is(.formation-seat,.synergy-track,.synergy-track.is-active,.archetype-section,.equipment-board,.equipment-item,.equipment-slot-button,.equipment-personal-target,.equipment-promotion-target){background:#f0dfb9;color:#183b30;border-color:#b29965}
.world-game.edge-to-edge-map .formation-seat.is-editing{background:#e7d1a0;border-color:#886629}
.world-game.edge-to-edge-map .formation-editing{color:#425d3b}
.world-game.edge-to-edge-map :is(.archetype-heading,.equipment-detail,.equipment-bag,.equipment-supplies,.equipment-personal-board,.equipment-promotion,.equipment-personal-assignment,.potion-target){border-color:#b39b6a}
.world-game.edge-to-edge-map :is(.synergy-track,.archetype-section){background:transparent}
.world-game.edge-to-edge-map .synergy-track.is-active{background:#dbe4bc;border-color:#66733e}
.world-game.edge-to-edge-map .synergy-gems path:first-child{fill:#d7c69f;stroke:#917b4c}
.world-game.edge-to-edge-map .synergy-gems .is-lit path:first-child{fill:var(--gem-color);stroke:#5f6239}
.world-game.edge-to-edge-map :is(.equipment-workspace,.equipment-summary,.equipment-supplies,.squad-picker-dialog,.auto-collection,.potion-picker,.scouted-enemy) :is(h3,h4,strong,.equipment-slot-name,.archetype-heading h3,.synergy-name){color:#183b30}
.world-game.edge-to-edge-map :is(.equipment-workspace,.equipment-summary,.equipment-supplies,.squad-picker-dialog,.auto-collection,.potion-picker,.scouted-enemy) :is(small,figcaption,p,dt,dd,.equipment-identity>span,.equipment-activation,.equipment-personal-label>span,.equipment-promotion-label>span,.equipment-promotion-rarity>:is(strong,span),.equipment-slot>small,.equipment-personal-slot>span,.equipment-section-heading>span,.equipment-item-name,.archetype-heading>span,.formation-role,.synergy-hint){color:#60563e}
.world-game.edge-to-edge-map .equipment-workspace .equipment-activation.is-active{color:#28633d}
.world-game.edge-to-edge-map .equipment-workspace :is(.equipment-requirement,.equipment-requirement>span){color:#60563e}
.world-game.edge-to-edge-map .equipment-workspace .equipment-rules>summary{color:#38583d}
.world-game.edge-to-edge-map .equipment-board{background:#ead5a9 var(--atlas-paper);border:8px solid transparent;border-image:var(--atlas-frame) 120 180 fill / 12px / 0 stretch}
.world-game.edge-to-edge-map :is(.equipment-slot-button,.equipment-item,.equipment-personal-target,.equipment-promotion-target):hover:not(:disabled){background:#e2cda0;border-color:#816334}
.world-game.edge-to-edge-map :is(.equipment-item,.equipment-personal-target,.equipment-promotion-target).is-selected{outline:2px solid #3c7047;outline-offset:2px}
.world-game.edge-to-edge-map .equipment-workspace :is(.equipment-grid,.equipment-personal-targets,.equipment-promotion-targets){scrollbar-color:#9e7b46 #efddb8}
.world-game.edge-to-edge-map :is(.quest-unopened,.quest-reward-footer,.shop-card-info,.quest-card-front:has(.site-offer) .quest-card-footer,.quest-card-front:has(.site-offer)>.quest-later){background:#f2e0b8 var(--atlas-paper);color:#183b30;border-color:#a98b55}
.world-game.edge-to-edge-map :is(.quest-unopened,.quest-reward-footer,.shop-card-info,.quest-card-front:has(.site-offer) .quest-card-footer) :is(p,small,h3,.site-reward,.shop-card-name){color:#31513b}
.world-game.edge-to-edge-map .game-toast{background:#f3e2ba var(--atlas-paper);color:#294535;border-color:#9f804d;box-shadow:0 6px 18px #12231a33}
/* Recruitment is the complete card plus one action row, not nested paper panels. */
.world-game.edge-to-edge-map dialog.quest-reveal-dialog.recruit-reveal-dialog{width:min(352px,calc(100vw - 24px),calc(66.6667dvh - 54px));max-width:none;max-height:calc(100dvh - 24px);padding:10px;border-width:6px;border-image-width:10px;overflow:auto}
.world-game.edge-to-edge-map .recruit-reveal-dialog .quest-card-front{padding:0;border:0;border-radius:0;background:none;box-shadow:none;max-height:none;overflow:visible}
.world-game.edge-to-edge-map .recruit-reveal-dialog .quest-card-back{min-height:0}
.world-game.edge-to-edge-map .recruit-decision .fighter-discovery{max-width:320px;margin-inline:auto}
.world-game.edge-to-edge-map .recruit-decision .fighter-card-controls{padding:10px 0 0;gap:0}
.world-game.edge-to-edge-map .recruit-decision .fighter-card-action{display:flex;align-items:center;justify-content:center;gap:8px}
.world-game.edge-to-edge-map .recruit-decision .fighter-card-action .button.recruit-accept{flex:1;max-width:240px;width:auto;min-height:46px;padding:10px 18px;border:1px solid #92703c;border-radius:7px;background:#234b3a;color:#fff2d2;font:600 16px/1.35 Georgia,serif;box-shadow:inset 0 0 0 2px #e4c68d22}
.world-game.edge-to-edge-map .recruit-decision .fighter-card-action .button.recruit-accept:hover:not(:disabled){background:#2e6049;color:#fff8e8;filter:none}
.world-game.edge-to-edge-map .recruit-decision .fighter-card-action .button.recruit-accept:active:not(:disabled){background:#193c2c}
.world-game.edge-to-edge-map .recruit-decision .fighter-card-action .button.recruit-accept:disabled{background:#e2d1b0;color:#6f644e;border-color:#b7a481;box-shadow:none;opacity:1}
.world-game.edge-to-edge-map .recruit-decision .button.recruit-dismiss{flex:none;width:44px;height:46px;min-width:44px;min-height:44px;padding:10px;border:0;background:none;color:#60563e;box-shadow:none}
.world-game.edge-to-edge-map .recruit-decision .button.recruit-dismiss:hover:not(:disabled){background:#e7d1a0;color:#183b30;filter:none}
.world-game.edge-to-edge-map dialog:not(.restart-dialog) .empty-state{color:#526047;background:none}
.world-game.edge-to-edge-map .market-location,.world-game.edge-to-edge-map .market-balance{color:#5a512f}
/* City text must follow the light surface, not the inherited dark-market ink. */
.world-game.edge-to-edge-map .market-dialog :is(.city-services,.catalog-heading,.fighter-card--illustrated){color:var(--atlas-ink)}
.world-game.edge-to-edge-map .market-dialog :is(.city-service h4,.city-services>h3,.catalog-heading h3){color:var(--atlas-ink)}
.world-game.edge-to-edge-map .market-dialog :is(.city-services>p,.city-service p,.city-service small,.catalog-heading>span,.fighter-card-state,.fighter-card-reason){color:var(--atlas-muted)}
.world-game.edge-to-edge-map .market-dialog .city-service p{font-size:14px;line-height:1.6}
.world-game.edge-to-edge-map .market-dialog .fighter-card-details{border-color:#b29965}
.world-game.edge-to-edge-map .market-dialog .fighter-card-details :is(summary,strong){color:var(--atlas-ink)}
.world-game.edge-to-edge-map .market-dialog .fighter-card-details :is(p,span,small){color:var(--atlas-muted)}
.world-game.edge-to-edge-map .market-dialog .fighter-card-details summary:hover{color:#21634d}
.world-game.edge-to-edge-map .market-dialog .shop-card-info :is(.shop-card-caption,.shop-item-identity,.shop-item-details,.shop-card-reason,.shop-discount){color:var(--atlas-muted)}
.world-game.edge-to-edge-map .market-dialog .shop-item-details summary{text-decoration-color:currentColor}
/* This inset stays dark; an opaque ground keeps every label readable. */
.world-game.edge-to-edge-map .market-dialog .market-exchange{background:#26372a}
.world-game.edge-to-edge-map .market-dialog :is(.exchange-wallet span,.exchange-equation small,.exchange-state,.exchange-terms){color:#dce4cc}
.world-game.edge-to-edge-map .market-dialog .exchange-option.exchanged .exchange-equation{opacity:1}
.world-game.edge-to-edge-map dialog.market-dialog :is(.button,.shop-buy):disabled{color:var(--atlas-muted)}
.world-game.edge-to-edge-map .equipment-detail.has-whole-card .local-artifact-caption{color:#183b30}
/* Quest offer: one readable reward strip under the whole illustration. */
.world-game.edge-to-edge-map dialog.quest-reveal-dialog:has(.quest-offer-footer){overflow:auto}
.world-game.edge-to-edge-map .quest-card-front:has(.quest-offer-footer) .site-offer>.quest-illustration{display:block;width:auto;height:auto;max-width:100%;max-height:clamp(240px,calc(100dvh - 430px),520px);margin-inline:auto;object-fit:contain}
.world-game.edge-to-edge-map .quest-card-front:has(.site-offer) .quest-offer-footer{margin:16px 0 0;padding:0 2px 2px;gap:16px;border:0;border-radius:0;background:none;color:var(--atlas-ink)}
.world-game.edge-to-edge-map .quest-offer-footer .quest-reward-summary{display:grid;grid-template-columns:repeat(auto-fit,minmax(86px,1fr));gap:14px 0;margin:0;padding:16px 0;border-block:1px solid #b29965}
.world-game.edge-to-edge-map .quest-offer-footer .quest-reward-token{display:flex;flex-direction:column;align-items:center;gap:5px;padding:0 6px;min-width:0;text-align:center}
.world-game.edge-to-edge-map .quest-offer-footer .quest-reward-token+ .quest-reward-token{border-left:1px solid #cbb785}
.world-game.edge-to-edge-map .quest-offer-footer .quest-reward-summary:has(.is-wide){grid-template-columns:repeat(2,minmax(0,1fr))}
.world-game.edge-to-edge-map .quest-offer-footer .quest-reward-token.is-wide{grid-column:1/-1;border-left:0}
.world-game.edge-to-edge-map .quest-offer-footer .quest-reward-token dt{order:2;margin:0;font-size:12px;line-height:1.35;color:var(--atlas-muted);max-width:15ch;text-wrap:balance}
.world-game.edge-to-edge-map .quest-offer-footer .quest-reward-token dd{order:1;display:flex;align-items:center;justify-content:center;gap:5px;margin:0;color:var(--atlas-ink);max-width:100%;min-width:0}
.world-game.edge-to-edge-map .quest-offer-footer .quest-reward-token strong{font-family:Georgia,serif;font-weight:700;font-size:23px;line-height:1.15;font-variant-numeric:tabular-nums;white-space:nowrap;min-width:0}
.world-game.edge-to-edge-map .quest-offer-footer .quest-reward-token .icon{width:20px;height:20px;flex:none;color:#80602e}
.world-game.edge-to-edge-map .quest-offer-footer .quest-artifact-bonus{display:flex;align-items:center;justify-content:center;gap:10px;margin:0;padding:0 4px;background:none;border:0;text-align:left}
.world-game.edge-to-edge-map .quest-offer-footer .quest-bonus-mark{display:grid;place-items:center;width:34px;height:38px;flex:none;color:#38634c}
.world-game.edge-to-edge-map .quest-offer-footer .quest-bonus-mark .icon{width:29px;height:29px}
.world-game.edge-to-edge-map .quest-offer-footer .quest-artifact-bonus strong{display:block;font:600 15px/1.3 Georgia,serif;color:var(--atlas-ink)}
.world-game.edge-to-edge-map .quest-offer-footer .quest-artifact-bonus small{display:block;margin-top:3px;font-size:12px;line-height:1.4;color:var(--atlas-muted)}
.world-game.edge-to-edge-map dialog .quest-offer-footer .button.quest-accept{width:100%;min-height:48px;padding:12px 18px;border:1px solid #92703c;border-radius:8px;background:#234b3a;color:#fff2d2;font-size:15px;line-height:1.35;font-weight:650;box-shadow:inset 0 0 0 2px #e4c68d22}
.world-game.edge-to-edge-map dialog .quest-offer-footer .button.quest-accept:hover:not(:disabled){background:#2e6049;color:#fff8e8;filter:none}
.world-game.edge-to-edge-map dialog .quest-offer-footer .button.quest-accept:active:not(:disabled){background:#193c2c}
.world-game.edge-to-edge-map dialog .quest-offer-footer .button.quest-accept:disabled{background:#e2d1b0;color:#6f644e;border-color:#b7a481;box-shadow:none;opacity:1}
.world-game.edge-to-edge-map .quest-offer-footer .quest-capacity-note{text-align:center;color:var(--atlas-muted);font-size:12px;line-height:1.4}
@keyframes atlas-page-reveal{from{transform:translateX(10px);box-shadow:0 8px 20px #17221922}to{transform:none;box-shadow:0 12px 36px #17221945}}
@media(min-width:1500px){.world-game.edge-to-edge-map .map-hud-resource{width:174px;height:76px}}
@media(max-width:1000px){
 .world-game.edge-to-edge-map dialog.quest-journal-dialog,.world-game.edge-to-edge-map dialog.quest-journal-dialog:has(.quest:only-child){width:min(500px,48vw)}
 .world-game.edge-to-edge-map .quest-journal-list>.quest{grid-template-columns:105px minmax(0,1fr);gap:14px}
 .world-game.edge-to-edge-map .quest-journal-objective{font-size:19px}
 .world-game.edge-to-edge-map dialog.quest-journal-dialog>.dialog-header h2{font-size:32px}
}
@media(max-width:700px){
 body.world-game.edge-to-edge-map{--hud-inset:10px;--hud-slot:clamp(54px,15.6vw,85px);--hud-gap:6px}
 .world-game.edge-to-edge-map .map-hud-resources{gap:3px}
 .world-game.edge-to-edge-map .map-hud-resource{width:auto;min-width:77px;height:49px;padding:8px 10px;font-size:20px;gap:5px}
 .world-game.edge-to-edge-map .map-hud-resource small{font-size:12px;margin-left:-4px}
 .world-game.edge-to-edge-map .map-hud-resource .icon{width:20px;height:20px}
 .world-game.edge-to-edge-map .map-squad-dock{gap:5px}
 .world-game.edge-to-edge-map .button:is(.hud-inventory,.hud-quests){width:62px;height:70px;min-width:44px;min-height:44px}
 .world-game.edge-to-edge-map .hud-squad-slot{border-width:4px;padding-bottom:7px;border-image-width:6px}
 .world-game.edge-to-edge-map .hud-slot-plus{width:29px;height:29px}.world-game.edge-to-edge-map .hud-slot-plus .icon{width:20px;height:20px}
 .world-game.edge-to-edge-map .hud-fighter-health{height:4px;left:2px;right:2px}
 .world-game.edge-to-edge-map dialog:not(.restart-dialog){padding:18px 12px;border-width:9px;max-height:calc(100dvh - 20px)}
 .world-game.edge-to-edge-map dialog:not(.restart-dialog)>.dialog-header{top:-18px;padding-bottom:14px}
 .world-game.edge-to-edge-map dialog:not(.restart-dialog)>.dialog-header h2{font-size:24px}
 .world-game.edge-to-edge-map dialog.quest-journal-dialog,.world-game.edge-to-edge-map dialog.quest-journal-dialog:has(.quest:only-child){inset:80px 8px auto;width:calc(100vw - 16px);height:min(610px,calc(100dvh - 180px));max-height:calc(100dvh - 180px);padding:28px 23px 24px;border:0}
 .world-game.edge-to-edge-map dialog.quest-journal-dialog>.dialog-header{top:auto;min-height:50px;margin-bottom:12px}
 .world-game.edge-to-edge-map dialog.quest-journal-dialog>.dialog-header h2{font-size:27px;padding-inline:48px 54px}
 .world-game.edge-to-edge-map .quest-journal-list>.quest{grid-template-columns:100px minmax(0,1fr);gap:14px;padding-bottom:16px}
 .world-game.edge-to-edge-map .quest-journal-objective{font-size:18px}
 .world-game.edge-to-edge-map .quest-journal-list .quest-card-footer{gap:8px}
 .world-game.edge-to-edge-map .quest-journal-list .quest-reward{font-size:11px}
 .world-game.edge-to-edge-map .quest-journal-list .button{font-size:12px;padding:10px}
 .world-game.edge-to-edge-map .quest-journal-dialog:has(.journal-empty){height:370px}
 .world-game.edge-to-edge-map .journal-empty{min-height:180px}
 .world-game.edge-to-edge-map .equipment-dialog .equipment-loadout{grid-template-columns:minmax(0,1fr)}
}
@media(max-width:370px){
 .world-game.edge-to-edge-map .map-hud-resource{min-width:69px;font-size:18px;padding-inline:7px}
 .world-game.edge-to-edge-map .map-hud-resource .icon{width:18px;height:18px}
 .world-game.edge-to-edge-map .button:is(.hud-inventory,.hud-quests){width:52px;height:58px}
 .world-game.edge-to-edge-map .quest-journal-list>.quest{grid-template-columns:86px minmax(0,1fr);gap:12px}
}
@media(prefers-reduced-motion:reduce){.world-game.edge-to-edge-map dialog.quest-journal-dialog[open]{animation:none}}
