/* One useful control for each action; keep the native game board and sprites. */
[hidden]{display:none!important}
.hero{display:block;padding:22px 0 20px}
.unionSnapshot{padding:12px 20px 15px}
.navFileActions{display:flex;align-items:center;gap:8px;flex:none}
body .navFileActions .nativeAction{--action-height:28px;--action-padding:14px;font-size:11px;white-space:nowrap}
@media(max-width:1120px){.navInner{gap:20px}.navUtility .localBadge,.brandWord>span{display:none}.navUtility{gap:12px}}
@media(max-width:900px){.navLinks{display:none}}
@media(max-width:600px){html{scroll-padding-top:130px}body .navInner{display:grid;grid-template-columns:minmax(0,1fr) auto;height:auto;min-height:0;gap:10px;padding-block:12px}body .navInner .brand{grid-column:1;grid-row:1;justify-content:flex-start}body .navUtility{display:contents}#nativeSoundOptions{grid-column:2;grid-row:1}.navFileActions{grid-column:1/-1;grid-row:2;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));width:100%;gap:8px}body .navFileActions .nativeAction{--action-height:40px;--action-padding:12px;width:100%;font-size:10px}}
.snapshotTop{min-height:24px}
.snapshotTop .textLink{font-size:10px;gap:5px}
.snapshotTop .textLink:before{width:26px;height:20px;background-size:26px 20px}
.snapshotBody{display:grid;grid-template-columns:minmax(275px,.95fr) minmax(315px,1.15fr) minmax(300px,1fr);gap:28px;align-items:center}
.snapshotIdentity{margin:0;gap:10px;min-height:86px}
.snapshotIdentity{position:relative;isolation:isolate}
.snapshotStat strong{position:relative;isolation:isolate}
.nativeSummaryView{display:flex;align-items:inherit;gap:inherit;width:100%;min-width:0;mix-blend-mode:plus-lighter}
.nativeSummaryPrevious{position:absolute;inset:0;align-items:center;pointer-events:none;user-select:none}
.nativeSummaryPrevious *{pointer-events:none!important}
.snapshotStat .nativeNumberValue{min-width:34px;justify-content:flex-end}
#siteOpenCells .nativeNumberValue{min-width:51px}
.rankInventoryNotice{margin:6px 0 0;font-size:10px;line-height:1.5;text-align:center;color:#d6c49d}
.rankInventoryNotice:empty{display:none}
.quickCapacity{font-size:10px;color:#d6c49d;padding:8px 0 2px;line-height:1.6}
#siteRankEmblem{width:65px;height:67px}
#siteRankArt{width:calc(100% - 75px);max-width:275px;height:72px}
.unionSnapshot .unionLevelControl{margin:0;padding:0;border:0;scroll-margin-top:100px}
.unionSnapshot .unionLevelHeading{margin-bottom:8px}
.unionSnapshot .unionLevelHeading>span{display:none}
.unionSnapshot .snapshotStats{margin:0;padding:0;gap:13px}
.snapshotStat>span{font-size:10px;margin-bottom:4px}
.plannerTop{padding-top:14px;margin-bottom:12px}
.plannerTitle p{font-size:10px}
#settings .settingsFooter{display:block;padding:0;border:0;background:none}
#settings .settingsFooter:has(#setupNotice:not(:empty)),#settings .settingsFooter:has(#relaxAndRun:not(.hide)),#settings .settingsFooter.hasAutoControl{padding:10px 15px 12px;border-top:1px solid #8b9caa33;background:#24323a80}
#settings #setupNotice{margin:0;line-height:1.7}
#settings #relaxAndRun{margin-top:6px}
.fileTools:has(#undoEdit:disabled){display:none}
@media(max-width:600px){.boardToolbar{flex-wrap:wrap;gap:8px}.boardToolbarActions{flex-wrap:wrap;margin-left:auto;justify-content:flex-end;max-width:100%}.boardToolbarActions button{white-space:nowrap}}
#nativeFilterEmpty.nativeInventoryGuide{top:240px;padding:16px 18px 18px;text-align:left;border:3px solid transparent;border-image:var(--site-native-muted) 7 stretch;border-radius:0;background:#1d2c32;color:#bccbd3}
.nativeGuideTitle{display:block;margin-bottom:15px;font-size:14px;color:#f2dfb8;line-height:1.5}
.nativeGuideSteps{display:grid;gap:16px;list-style:none;padding:0;margin:0}
.nativeGuideSteps>li{display:grid;grid-template-columns:22px minmax(0,1fr);gap:10px;align-items:start}
.nativeGuideNumber{display:grid;place-items:center;width:22px;height:22px;border:1px solid #a7926b66;background:#445050;color:#f4dbab;font-size:11px;font-weight:700;line-height:1}
.nativeGuideSteps strong{display:block;font-size:12px;font-weight:600;line-height:22px;color:#e7d9bb}
.nativeGuideSteps p{margin:4px 0 0;font-size:11px;line-height:1.8;word-break:keep-all;overflow-wrap:break-word}
.nativeGuideSteps p+p{margin-top:9px}
.nativeGuideSteps b{font-weight:600;color:#d4e4eb}
body #run.nativeAuto{--action-height:28px;--action-padding:0;position:absolute;left:337px;top:483px;width:120px;gap:4px;min-width:0;font-size:12px;font-weight:700;letter-spacing:0;line-height:14px;color:#fff!important;text-shadow:0 1px 1px #35460c,0 0 2px #35460c!important;z-index:4}
.nativeAutoIcon{display:block;flex:none;width:14px;height:14px;background:var(--site-native-auto-check-normal) center/14px 14px no-repeat}
#run:hover:not(:disabled) .nativeAutoIcon{background-image:var(--site-native-auto-check-mouseOver)}
#run:active:not(:disabled) .nativeAutoIcon{background-image:var(--site-native-auto-check-pressed)}
#run[data-running=true] .nativeAutoIcon,#run[data-running=true]:hover .nativeAutoIcon,#run[data-running=true]:active .nativeAutoIcon{background:var(--site-native-close-normal) center/11px 11px no-repeat}
#run[data-running=true]{letter-spacing:.4px}
#run:focus-visible{outline:2px solid #f6d5af;outline-offset:2px}
@media(max-width:1120px){
 .snapshotBody{grid-template-columns:minmax(220px,.8fr) minmax(280px,1fr);gap:12px 22px}
 .unionSnapshot .snapshotStats{grid-column:1/-1;border-top:1px solid #82969d30;padding-top:11px}
 .snapshotStat strong{min-height:24px}
 .snapshotStat .nativeDigits img{height:21px}
 body #settings #run.nativeAuto{--action-height:40px;--action-padding:16px;position:static;width:100%!important;font-size:13px;margin-top:6px;gap:6px}
}
@media(max-width:760px){
 .hero{padding:16px 0}
 .unionSnapshot{padding:10px 15px 14px}
 .snapshotBody{grid-template-columns:1fr;gap:9px}
 .snapshotIdentity{min-height:68px;gap:8px}
 #siteRankEmblem{width:57px;height:58px}
 #siteRankArt{max-width:245px;height:67px}
 .unionSnapshot .unionLevelHeading{flex-direction:row;margin-bottom:7px}
 .unionSnapshot .unionLevelHeading label{font-size:11px!important}
 .unionSnapshot .snapshotStats{grid-column:auto;padding-top:10px;gap:8px}
 .snapshotStat>span{font-size:9px}
 .snapshotStat .nativeDigits img{height:23px}
 .plannerTop{padding-top:12px;margin-bottom:10px}
 .plannerTitle p{display:none}
 body #settings #run.nativeAuto{--action-height:44px;margin-top:6px}
}

/* Auto uses the original game's bitmap letterforms and the Apply shadow. */
#run[data-running=false] .nativeAutoCaption{font-size:0;line-height:0}
#run[data-running=false] .nativeAutoCaption:before{content:'';display:block;width:32px;height:15px;background:var(--site-native-auto-label-normal) center/32px 15px no-repeat;filter:drop-shadow(0 1px 1px #35460c) drop-shadow(0 0 1px #35460c)}
#run[data-running=false]:hover .nativeAutoCaption:before{background-image:var(--site-native-auto-label-mouseOver)}
#run[data-running=false]:active .nativeAutoCaption:before{background-image:var(--site-native-auto-label-pressed)}
#run:disabled .nativeAutoCaption:before{background-image:var(--site-native-auto-label-disabled)}
@media(max-width:1120px){#run[data-running=false] .nativeAutoCaption:before{width:38px;height:18px;background-size:38px 18px}}

@media(max-width:760px){
 .resultsHeader{flex-wrap:wrap}
 .resultsTitle{flex-basis:100%;min-width:0}
 .resultActions{width:100%;flex-wrap:wrap}
}

/* The resource supplies the complete locked-area shading and boundary. */
#gameBoardLock,.progressNativeLock{position:absolute;inset:0;z-index:1;pointer-events:none}
#gameBoardLock img,.progressNativeLock img{position:absolute;max-width:none;pointer-events:none}
#board button.locked{background:transparent!important}
.progressNativeStage .progressCell.locked{background:transparent}
.progressNativeStage .progressBoard{z-index:2}
.progressNativeLabels{z-index:4}
