/* Oddfoil fit & finish. Shared control geometry, bounded overlays, and the deck editor. */
:root{--space-1:4px;--space-2:8px;--space-3:12px;--space-4:16px;--space-5:24px;--control-height:44px;--control-radius:9px;--content-width:1440px;--dialog-height:calc(100vh - 24px)}
@supports(height:100dvh){:root{--dialog-height:calc(100dvh - 24px)}}
.button{min-height:var(--control-height);border-radius:var(--control-radius);line-height:1.35;white-space:normal;text-align:center;max-width:100%;overflow-wrap:anywhere}
.button.small{min-height:var(--control-height)}
.button:active:not(:disabled){transform:translateY(1px)}
.button:disabled{box-shadow:none}
input:not([type=checkbox]),select{min-height:var(--control-height);max-width:100%}
.actions{gap:var(--space-3)}
.panel,.page-heading,.inspect-layout>div,.setup-controls,.deck-browser,.run-top>div,.result-stage,.workshop-top>*,.settings-grid>*,.guide-grid>*{min-width:0}
.page-heading h1,.guide h2,.panel h3{overflow-wrap:anywhere}
/* A real header reserves room for close, regardless of content scroll position. */
#dialog{padding:0;max-width:calc(100vw - 24px);max-height:var(--dialog-height);overflow:auto;overscroll-behavior:contain;scrollbar-gutter:stable;scroll-padding-top:72px}
#dialog>.dialog-header{display:flex;align-items:center;justify-content:space-between;gap:12px;position:sticky;top:0;z-index:40;padding:8px 12px;background:#281c36;border-bottom:1px solid #86629c}
.dialog-heading{font-size:14px;letter-spacing:.03em}
#dialog .dialog-close{position:static;float:none;margin:0;display:grid;place-items:center;flex:0 0 44px;width:44px;height:44px;padding:0;border:1px solid #a87ac7;background:#412b53;color:#fff;border-radius:50%;font-size:26px;line-height:1;cursor:pointer}
#dialog-body{padding:var(--space-5);min-width:0}
#dialog .dialog-action-notice{position:static;margin:0 0 12px;overflow-wrap:anywhere}
#dialog .inspection-card{max-width:100%}
#dialog .inspection-card .card-art{height:auto;aspect-ratio:1}
#dialog .guide table{width:100%;table-layout:fixed;overflow-wrap:anywhere}
/* Pack flow retains a single card scroller and fixed, deliberately ordered actions. */
#dialog.pack-flow[open]{display:flex;flex-direction:column;padding:0;width:min(1080px,calc(100vw - 24px));height:min(900px,var(--dialog-height));max-height:var(--dialog-height);overflow:hidden}
#dialog.pack-flow>.dialog-header{position:static;flex:none}
#dialog.pack-flow #dialog-body{padding:0;display:flex;flex:1;min-height:0;overflow:hidden}
#dialog.pack-flow .pack-status{height:auto;min-height:36px}
/* One responsive editor. Artwork opens details; the adjacent button edits membership. */
#dialog.deck-flow[open]{width:min(1220px,calc(100vw - 24px));height:min(1000px,var(--dialog-height));max-height:var(--dialog-height);display:flex;flex-direction:column;overflow:hidden}
#dialog.deck-flow>.dialog-header{position:static;flex:none}
#dialog.deck-flow #dialog-body{padding:0;display:flex;flex:1;min-height:0;overflow:hidden}
.visual-deck-builder.guide{display:flex;flex-direction:column;width:100%;height:100%;max-width:none;min-height:0;margin:0;padding:0}
.deck-editor-scroll{flex:1;min-height:0;overflow:auto;overscroll-behavior:contain;padding:20px;scroll-padding:20px;overflow-anchor:none}
.deck-editor-scroll>.eyebrow{margin-bottom:8px}.deck-editor-scroll>h2{margin-bottom:12px}
.deck-editor-layout{display:grid;grid-template-columns:minmax(240px,300px) minmax(0,1fr);gap:20px;align-items:start}
.deck-current{min-width:0;padding:14px;background:#38244566;border:1px solid #9871b866;border-radius:14px}
.deck-current:focus-visible{outline:2px solid #f4d6ff;outline-offset:2px}
.deck-current>label{margin-top:12px;margin-bottom:12px}.deck-current>details{margin-block:12px;padding-top:10px}
.deck-current details{overflow:visible;max-height:none}
.deck-current-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:6px}
.deck-current-card{background:#241a31;border:1px solid #89729966;color:inherit;border-radius:7px;padding:4px;min-width:0;min-height:44px}
.deck-current-card img{display:block;width:100%;aspect-ratio:1;object-fit:cover;border-radius:5px}
.deck-current-card span,.deck-current-card small{display:block;font-size:10px;line-height:1.4;overflow-wrap:anywhere}
.deck-current-card small{color:#d0b9e2}
#deck-edit-state{font-size:12px;line-height:1.6;padding:10px;background:#47315377;border-radius:8px;overflow-wrap:anywhere}
.deck-save-actions{display:grid;grid-template-columns:minmax(0,1fr);gap:8px}
.deck-save-actions>.button{width:100%;margin:0}
.deck-filter-panel{margin-block:12px;padding-top:10px}
.deck-filter-panel>summary{min-height:44px;display:list-item;padding:10px 0}
.deck-filters{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin-top:8px}
.deck-filters label{min-width:0;margin-bottom:8px;gap:5px}.deck-filters select{width:100%;min-width:0;padding:8px}
.deck-filters label:has([type=checkbox]){grid-column:1/-1;flex-direction:row;align-items:center;min-height:44px}
.deck-filters input[type=checkbox]{width:24px;height:24px;margin:0 8px 0 0}
.saved-deck-controls{display:grid;grid-template-columns:minmax(0,1fr);gap:8px;margin-bottom:16px}
.saved-deck-controls label{margin:0}.saved-deck-actions{display:grid;grid-template-columns:2fr 1fr 1fr;gap:8px}.saved-deck-actions .button{padding:8px}
.visual-deck-picks{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.deck-tile{min-width:0;border:2px solid transparent;border-radius:12px;padding:8px;background:#21172d;display:flex;flex-direction:column;gap:8px}
.deck-tile.selected{border-color:#d0a2fa;background:#342044}
.deck-tile .card{width:100%;margin:0;max-width:none;min-width:0;transform:none;animation:none;transition:none;flex:none}
.deck-tile .card-rule,.deck-tile .card-joke,.deck-tile .card-glare,.deck-tile .foil-light{display:none}
.deck-tile .card-art{aspect-ratio:1;height:auto}.deck-tile .card-art img{object-fit:cover;width:100%;height:100%}
.deck-tile .card-title{font-size:14px;line-height:1.3;min-height:36px;white-space:normal;overflow-wrap:anywhere}
.deck-tile .card-top,.deck-tile .card-bottom{font-size:10px;letter-spacing:0}
.deck-tile .card-top>span:nth-child(2){display:none}
.deck-tile-role{font-size:12px;line-height:1.4;margin:0;overflow-wrap:break-word}
.deck-empty{grid-column:1/-1;padding:16px;border:1px dashed var(--line);border-radius:12px}
.deck-empty p{margin:0 0 12px}
.deck-filter-panel>.button{margin-top:8px}
.deck-tile label{font-size:12px;margin:0;gap:4px;margin-top:auto}
.deck-tile select{width:100%;min-width:0;font-size:13px;padding:8px}
.deck-tile .deck-add{width:100%;margin:0;min-height:44px;padding:8px;font-size:12px}
.deck-tile .card-stats-label{display:none}.deck-tile .card-stats{margin:5px 0 0}
.deck-editor-footer{display:grid;grid-template-columns:minmax(0,1fr) minmax(160px,220px) minmax(160px,220px);gap:8px;align-items:center;flex:none;margin:0;padding:12px 20px calc(12px + env(safe-area-inset-bottom));background:#2c1c3b;border-top:1px solid #9974b4;letter-spacing:0;text-align:left;font-size:12px;box-shadow:0 -5px 20px #0b071633}
.deck-editor-footer>.button{width:100%;margin:0;font-size:13px;padding:10px}
#deck-footer-status{color:#ead8ff;line-height:1.4}
.selected-deck-art{display:flex;gap:6px;margin:10px 0}.selected-deck-art img{width:44px;height:44px;object-fit:cover;border-radius:6px}
@media(max-width:900px){.deck-editor-layout{grid-template-columns:minmax(210px,260px) minmax(0,1fr)}.visual-deck-picks{grid-template-columns:repeat(2,minmax(0,1fr))}.deck-filters{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:700px){
 .deck-editor-layout{grid-template-columns:minmax(0,1fr);gap:16px}
 .deck-current-grid{grid-template-columns:repeat(4,minmax(0,1fr))}
 .deck-current-card span{display:none}
 .deck-save-actions{grid-template-columns:repeat(2,minmax(0,1fr))}
 .deck-editor-footer{grid-template-columns:minmax(0,1fr);gap:6px;padding:8px 12px calc(8px + env(safe-area-inset-bottom))}
 #deck-footer-status{font-size:11px}.deck-editor-footer>.primary{min-height:48px}.deck-editor-footer>.subtle{min-height:44px}
 .deck-editor-scroll{padding:14px;scroll-padding:14px}
}
@media(max-width:560px){
 :root{--dialog-height:100vh}@supports(height:100dvh){:root{--dialog-height:100dvh}}
 #dialog{width:100%;max-width:100%;max-height:var(--dialog-height);border-radius:0;margin:auto}
 #dialog-body{padding:16px 12px calc(16px + env(safe-area-inset-bottom))}
 #dialog>.dialog-header{padding-top:calc(8px + env(safe-area-inset-top))}
 #dialog.deck-flow[open],#dialog.pack-flow[open]{width:100%;height:var(--dialog-height);max-width:100%;max-height:var(--dialog-height);border-radius:0}
 input:not([type=checkbox]),select{font-size:16px}
 .nav-item,.mode-buttons .button,.edition-buttons button,.segmented button,summary{min-height:44px}
 .actions>.button{flex:1 1 130px}
 .actions>.primary{flex-basis:100%}
 .visual-deck-picks{grid-template-columns:minmax(0,1fr);gap:10px}
 .deck-tile{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);align-items:start;gap:8px 12px}
 .deck-tile .card{grid-column:1;grid-row:1/4;align-self:start;padding:7px}
 .deck-tile .card-title{font-size:13px;min-height:0;margin:6px 0}
 .deck-tile .card-bottom{font-size:9px}
 .deck-tile-role{grid-column:2;font-size:12px;align-self:end}
 .deck-tile label{grid-column:2;margin:0;font-size:12px;align-self:end}
 .deck-tile select{font-size:16px;padding:8px 3px}
 .deck-tile .deck-add{grid-column:2;font-size:12px;padding:8px 5px;align-self:end}
 .deck-tile .card-stat{font-size:10px;padding:2px 4px}
 .deck-filters{grid-template-columns:repeat(2,minmax(0,1fr))}
 .combat-toolbar .actions{flex-direction:row;align-items:stretch;width:100%}
 .combat-toolbar .actions>.button{min-height:44px;flex:1 1 100px}
 .combat-toolbar .actions>.primary{flex-basis:100%}
 .draft-grid{grid-template-columns:minmax(0,1fr)}
 .draft-grid .card{max-width:280px;margin-inline:auto}.draft-grid .button{min-height:44px;font-size:14px;width:100%}
 .draft-grid>div{padding:12px;border:1px solid var(--line);border-radius:12px}
 .run-top,.run-counters{flex-wrap:wrap;min-width:0}
 .route-options{display:grid;grid-template-columns:minmax(0,1fr)}.route-option,.route-option:only-child{width:100%;max-width:none;min-height:200px}
 .research-grid{grid-template-columns:minmax(0,1fr)}
 .quick-continue{display:grid;grid-template-columns:minmax(0,1fr)}
 .pack-actions .pack-more>.actions{display:grid;grid-template-columns:minmax(0,1fr)}
 #toast{bottom:calc(82px + env(safe-area-inset-bottom));max-width:calc(100vw - 24px);overflow-wrap:anywhere}
}
@media(max-width:350px){.deck-filters{grid-template-columns:minmax(0,1fr)}.saved-deck-actions{grid-template-columns:repeat(2,minmax(0,1fr))}.saved-deck-actions>.button:first-child{grid-column:1/-1}.deck-tile{gap:6px}.deck-tile .card-top .cost{min-width:22px;width:22px;height:22px;font-size:12px}.deck-save-actions{grid-template-columns:minmax(0,1fr)}}
@media(max-height:500px){#dialog.deck-flow[open],#dialog.pack-flow[open]{height:var(--dialog-height)}.deck-editor-footer{grid-template-columns:repeat(2,minmax(0,1fr));padding:6px 12px}.deck-editor-footer>span{grid-column:1/-1}.combat-toolbar{position:static}}
@media(prefers-reduced-motion:reduce){.button,.deck-tile *{animation:none;transition:none}}
@media(min-width:901px) and (min-height:850px){.deck-current{position:sticky;top:0}}
.card-art:has(.art-error-note){position:relative}.card-art .art-error-note{position:absolute;inset:0;display:grid;place-items:center;padding:10px;text-align:center;color:#e2ccec;background:#2c2038;font-size:12px;line-height:1.4;pointer-events:none}
.deck-analysis>.deck-summary{margin-top:12px}.deck-settings>label:first-of-type{margin-top:12px}.deck-current>details>summary{min-height:44px;padding-block:10px}
.selected-deck-banner.active-run-deck{padding:12px 16px;gap:12px;align-items:center}.active-run-deck .eyebrow{margin-bottom:4px;font-size:10px;letter-spacing:1px}.active-run-deck p{margin:0;font-size:13px}.active-run-deck>div{min-width:0}
@media(max-width:600px){.selected-deck-banner.active-run-deck{flex-direction:row;align-items:center;padding:10px 12px}.active-run-deck>.button{width:auto;flex:0 0 90px;font-size:12px;padding:8px}.active-run-deck p{font-size:12px}.active-run-deck .eyebrow{font-size:9px}}
/* Text belongs to a padded inner layer; illustrated clipping stays on the outer panel. */
.page-heading.world-heading,.expedition-setup>.page-heading.world-heading{padding:0;min-height:0}
.page-heading.world-heading>.world-heading-content{min-width:0;padding:clamp(16px,3vw,24px);overflow-wrap:break-word}
.world-heading-content>.eyebrow{line-height:1.5;margin-bottom:12px}
.world-heading-content>.world-interaction{margin-top:14px;min-width:0}
.world-heading-content>.world-souvenirs{margin:12px 0 0;max-width:100%}
.world-heading-content>.actions{display:flex;flex-wrap:wrap;gap:12px}
#deck-picks:focus,#signature-picks:focus,.collection-grid:focus{outline:2px solid #ccb0ed;outline-offset:4px}
.deck-tile,.deck-browser,.deck-current,.page-heading.world-heading>.world-heading-content{min-width:0}
.art-missing-note{display:block;font-size:12px;line-height:1.4;padding:8px;overflow-wrap:anywhere}
@media(hover:none),(pointer:coarse){.button:hover:not(:disabled){transform:none}.deck-tile .card:hover{transform:none}}
.deck-plan{border-top:1px solid #795491;padding-top:16px;margin-top:16px;min-width:0}.deck-plan h3{font-size:16px;margin-bottom:12px}.deck-plan h4{margin-bottom:8px}.deck-plan p{font-size:12px;line-height:1.5;margin:8px 0}.deck-play-idea{padding:10px;border:1px solid #8c68a255;border-radius:9px;margin-bottom:10px;background:#261a35}.deck-play-idea small{display:block;overflow-wrap:anywhere}
.enemy-portrait:has(.art-missing-note){display:flex;align-items:center;justify-content:center;padding:4px}.enemy-portrait .art-missing-note{padding:0;font-size:10px;line-height:1.3;text-align:center;max-width:100%}
/* Author image display rules must not override the explicit failed-image state. */
.enemy-portrait img[data-art-unavailable=true]{display:none}
/* Strange Discoveries: pool choice, readable action history and deliberate repeat play. */
.pack-select{max-width:880px}.pack-select>p,.pack-select>h2,.pack-select>.eyebrow{max-width:620px;margin-inline:auto}.pack-select>.pack-object{max-width:250px;margin-inline:auto}.pack-pools{text-align:left;margin:24px 0;padding:16px;border:1px solid #856c9e;border-radius:14px;background:#21162b}.pack-pool-heading{display:flex;justify-content:space-between;gap:12px;flex-wrap:wrap;margin-bottom:12px}.pack-pool-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin-top:12px}.pack-pool{display:flex;gap:12px;align-items:flex-start;padding:12px;background:#2c2137;border:1px solid #675477;border-radius:12px;min-width:0}.pack-pool.selected{border-color:var(--pool-color,#d7b9f5);box-shadow:inset 0 0 0 1px var(--pool-color,#d7b9f5)}.pack-select .pack-pool>img{width:76px;height:76px;aspect-ratio:1;object-fit:cover;border-radius:10px;flex:none;margin:0}.pack-pool>div{min-width:0;flex:1}.pack-pool h3{font-size:16px;overflow-wrap:break-word;margin-bottom:7px}.pack-pool p{font-size:12px;margin-bottom:9px}.pack-pool progress{display:block;width:100%;height:6px;accent-color:var(--pool-color,#b894e8)}.pack-pool small{display:block;font-size:11px}.pack-pool .actions{gap:6px;margin-top:10px}.pack-pool .button{width:auto;flex:1 1 90px;min-height:44px;margin:0;padding:8px;font-size:12px}.pool-preview-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px 12px;margin-top:24px}.pool-preview-grid .card{height:100%}.pack-theme-name{color:var(--lavender)}
.battle-resource-guide{margin:12px 0;border:1px solid #69537d;background:#251b31;border-radius:10px;padding:9px 12px}.battle-resource-guide>summary{min-height:44px;display:flex;align-items:center;font-size:13px}.resource-rule-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.resource-rule-grid p{margin:7px 0;font-size:12px;line-height:1.6}.intent-outcome{display:block;font-size:12px;line-height:1.5;color:#e4d4fa;margin-top:8px}.play-preview{display:block;color:#e3cde8;line-height:1.5;font-size:11px;padding:8px 3px;min-height:30px;overflow-wrap:break-word}.battle-effects>details{min-width:0;margin:0;padding:0;border:1px solid #bc9cc866;border-radius:8px;background:#21162e;flex:0 1 auto;max-width:100%}.battle-effects>details>summary{padding:10px;min-height:44px;font-size:12px;line-height:1.5}.battle-effects>details>p{padding:0 10px 10px;font-size:12px;max-width:260px;white-space:normal;margin:0}.combat-log{padding:12px;border:1px solid #705183;border-radius:12px;background:#25192f;margin:18px 0}.combat-log>summary{font-size:13px;line-height:1.6;overflow-wrap:break-word;min-height:44px;max-width:100%}.combat-log ol{max-height:330px;overflow-y:auto;padding-left:28px;padding-right:10px;overscroll-behavior:contain;scrollbar-gutter:stable}.combat-log li{padding:10px 5px;border-bottom:1px solid var(--line);font-size:13px;line-height:1.6;color:#e0d1e8}.combat-log p{font-size:12px;margin-bottom:0}.relic-bar{align-items:flex-start;gap:8px}.relic-explanation{border:1px solid #775b8b;border-radius:8px;margin:0;padding:6px 10px;background:#281b35;max-width:100%}.relic-explanation summary{min-height:44px;display:flex;align-items:center;font-size:12px}.relic-explanation p{max-width:260px;font-size:12px;margin:0 0 8px}.relic-explanation small{display:block}.energy-module strong>small{display:inline;font-size:13px;letter-spacing:0}.deck-list>div>img{width:44px;height:44px;object-fit:cover;border-radius:6px}.rest-upgrades{text-align:left}.rest-upgrades>summary{min-height:44px;padding:10px}.rest-upgrade-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.rest-upgrade-list .button{font-size:12px;text-align:left;justify-content:flex-start;overflow-wrap:break-word}.selected-deck-banner.active-run-deck .selected-deck-art{margin-top:8px}.selected-deck-art img{flex:none;object-fit:cover}
.quick-flow-controls{text-align:left;padding:16px;border:1px solid #896c9c;border-radius:12px;background:#291d35;margin:18px 0}.quick-flow-controls h3{font-size:16px}.quick-flow-controls label{display:flex;flex-direction:row;align-items:center;gap:12px;margin-bottom:8px;min-height:44px;font-size:13px;color:#e2d3e9}.quick-flow-controls input[type=checkbox]{flex:0 0 22px;width:22px;height:22px;accent-color:#cba7f1;margin:0}.quick-flow-controls p{font-size:12px;margin:10px 0}.quick-flow-countdown{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;border-top:1px solid #79598e;padding-top:12px}.quick-flow-countdown>b{font-size:14px}.quick-flow-countdown .button{min-height:44px}.deck-suggestions{padding:12px;border:1px solid #77538f;border-radius:10px;margin-top:14px;background:#24192f}.deck-suggestions h4{font-size:14px}.deck-suggestion{border-top:1px solid var(--line);padding:10px 0}.deck-suggestion:first-of-type{border-top:0}.deck-suggestion p{margin:6px 0;font-size:12px}.deck-suggestion .actions{gap:6px}.deck-suggestion .button{font-size:11px;padding:8px;min-height:44px}.deck-current .deck-suggestion .button{width:100%}
@media(max-width:900px){.pack-pool-grid{grid-template-columns:minmax(0,1fr)}.pack-pool .actions{justify-content:flex-start}.pack-pool .button{flex-grow:0}.pool-preview-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:700px){.resource-rule-grid{grid-template-columns:minmax(0,1fr);gap:0}.battle-stage .player-status{grid-template-columns:repeat(4,minmax(0,1fr));gap:5px}.battle-stage .energy-module,.battle-stage .stat-health,.battle-stage .stat-block,.battle-stage .stat-charge{grid-column:auto;grid-row:auto;min-width:0;padding:8px 5px}.battle-stage .energy-count.energy-module{min-height:88px}.battle-stat strong{font-size:20px}.battle-stat strong small{font-size:10px}.battle-stat>small,.energy-module>span{font-size:10px;line-height:1.5;overflow-wrap:break-word}.battle-stage .energy-module strong{font-size:23px}.battle-stage .energy-module strong>small{font-size:10px}.battle-stage .energy-module>small{font-size:8px}.battle-stage .stat-label{font-size:10px}.battle-stage .energy-pips{gap:2px}.battle-stage .energy-pips i{width:5px;height:5px}.intention{flex-wrap:wrap}.intention small{flex:1 1 160px}.intention .intent-outcome{flex-basis:100%;margin:0;font-size:11px}.combat-toolbar .actions>.button{min-height:44px}.battle-effects>details{flex:1 1 110px}.battle-effects>details>p{max-width:none}.quick-flow-controls{padding:13px}.quick-flow-controls label{align-items:flex-start;padding-block:5px}.quick-flow-controls input{margin-top:3px}.quick-flow-countdown>.button{width:100%}.rest-upgrade-list{grid-template-columns:minmax(0,1fr)}.deck-editor-footer{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.deck-editor-footer>#deck-footer-status{grid-column:1/-1}.deck-editor-footer>.button{min-height:48px;white-space:normal;line-height:1.4}.pool-preview-grid .card-title{font-size:13px}}
@media(max-width:430px){.pack-pools{padding:10px}.pack-pool{gap:9px;padding:10px}.pack-select .pack-pool>img{width:56px;height:56px}.pack-pool .actions{display:grid;grid-template-columns:minmax(0,1fr)}.pack-pool .button{width:100%}.pool-preview-grid{gap:12px 8px}.battle-stage .combat-toolbar{padding:8px;gap:8px}.combat-log li{font-size:12px}.selected-deck-banner.active-run-deck .selected-deck-art img{width:30px;height:30px}.active-run-deck small{font-size:10px}}
@media(max-height:600px){.battle-stage .combat-toolbar{position:static}}
/* A battle's target remains readable beside the sticky player resources. */
.combat-enemy-summary{display:flex;flex:1 0 100%;align-items:center;gap:4px 12px;flex-wrap:wrap;min-width:0;padding:0 2px 7px;border-bottom:1px solid #9c78ae66;font-size:12px;line-height:1.5}.combat-enemy-summary>b{flex:1 1 160px;min-width:0;font-size:12px;overflow-wrap:break-word}.combat-enemy-summary>span,.combat-enemy-summary>strong{white-space:nowrap;font-size:12px}.combat-enemy-summary>strong{color:#f5d6af}.battle-stage{scroll-margin-top:8px}.battle-stage:focus{outline:none}.legacy-combat-note{padding:8px 12px;border:1px solid #83699b;border-radius:8px;background:#2d2040}.rest-upgrade-list .button img{width:44px;height:44px;flex:0 0 44px;object-fit:cover;border-radius:6px;margin:0}.rest-upgrade-list .button>span{min-width:0;overflow-wrap:break-word}.rest-upgrade-list .button{gap:12px}
@media(max-width:700px){.combat-context-hint{display:flex;align-items:center;flex-wrap:nowrap;gap:10px;padding:8px 12px;margin-bottom:12px;min-height:60px}.combat-context-hint>details{flex:1;min-width:0;margin:0;padding:0;border:0}.combat-context-hint>details>summary{padding:8px 0;min-height:44px;line-height:1.4;font-size:12px}.combat-context-hint>details>p{font-size:12px;margin:8px 0}.combat-context-hint>.button{flex:0 0 auto;width:auto;min-height:44px;margin:0;padding:8px 12px}.combat-enemy-summary{gap:3px 9px;padding-bottom:6px}.combat-enemy-summary>b{flex-basis:140px;font-size:11px}.combat-enemy-summary>span,.combat-enemy-summary>strong{font-size:11px}.battle-stage .combat-toolbar{gap:7px}.battle-stage .combat-toolbar .actions{gap:6px}.battle-stage .combat-toolbar .actions>.button{padding-inline:9px}}
@media(max-height:600px){.battle-stage .combat-toolbar{position:static}}
/* Clip scene decoration without creating a scroll container that traps sticky resources. */
.battle-stage{overflow:clip}
/* Wrap the full-width intent row before laying out resources and actions at tablet widths. */
.battle-stage .combat-toolbar{flex-wrap:wrap}
.battle-stage .combat-toolbar>.actions{min-width:0;max-width:100%}
.ownership>button{min-width:44px;min-height:44px}
.discovery-feed button{min-height:44px;display:inline-block;text-align:left;padding-block:8px}
