/* Santajaay Tactical Gaming | Project maintainer: Santajaay | Third-party rights remain with their owners. */
/* Santajaay mobile command interface */
@media(max-width:760px){
html{scroll-padding-top:74px}button,select,input[type=button],input[type=number]{min-height:44px}button{touch-action:manipulation}
#sjWorkbench .toolbar{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}#sjWorkbench .toolbar label{min-width:0;width:auto}#sjWorkbench .toolbar select{width:100%;max-width:100%}
#sjWorkbench .actions{display:flex;flex-wrap:wrap;gap:8px}#sjWorkbench .actions button{min-height:44px;flex:1 1 125px}
#sjFullscreenStage .sj-fire-hud{position:sticky;top:0;z-index:20;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:5px;padding:6px;background:#17271eeF;border-radius:8px;backdrop-filter:blur(8px)}
#sjFullscreenStage .sj-hud-item{min-width:0;padding:6px 8px}#sjFullscreenStage .sj-hud-item strong{font-size:clamp(15px,4.5vw,23px);white-space:nowrap}#sjFullscreenStage .sj-hud-item small{font-size:10px}
#sjFullscreenStage .map-shell{height:min(64dvh,690px);min-height:300px}#sjFullscreenStage .zoom button{min-width:46px;min-height:46px}
#bpEditor .bp-workspace{padding-inline:8px}#bpEditor button,#bpEditor select{min-height:44px}#bpEditor .bp-editor-top{gap:8px;flex-wrap:wrap}
.sj-mobile-jump{position:fixed;right:12px;bottom:calc(12px + env(safe-area-inset-bottom));z-index:90;display:flex;gap:6px;max-width:calc(100vw - 24px)}.sj-mobile-jump button{border:1px solid #d3b979;border-radius:999px;background:#17291e;color:#f7e6bc;padding:10px 13px;font-weight:750;box-shadow:0 4px 15px #0008;min-height:44px}
}
@media(max-width:760px) and (orientation:landscape){#sjFullscreenStage .map-shell{height:70dvh;min-height:230px}#sjFullscreenStage .sj-fire-hud{grid-template-columns:repeat(4,minmax(0,1fr))}#sjFullscreenStage .sj-hud-item strong{font-size:17px}.sj-mobile-jump{bottom:6px}}
@media(min-width:761px){.sj-mobile-jump{display:none}}
@media(prefers-reduced-motion:reduce){.sj-mobile-jump *{transition:none!important}}

/* Scoped shortcut fix: never inherit the site's mobile nav overlay rules */
@media(max-width:760px){
.sj-mobile-jump:not([hidden]){position:fixed!important;top:auto!important;left:auto!important;right:10px!important;bottom:calc(10px + env(safe-area-inset-bottom))!important;width:auto!important;height:auto!important;max-width:calc(100vw - 20px)!important;padding:5px!important;display:flex!important;flex-direction:row!important;align-items:center!important;gap:5px!important;background:#142219f2!important;border:1px solid #586c51!important;border-radius:999px!important;box-shadow:0 5px 22px #0009!important;z-index:75!important}
.sj-mobile-jump[hidden]{display:none!important}
.sj-mobile-jump>button{width:auto!important;min-width:0!important;min-height:42px!important;flex:0 0 auto!important;font-size:12px!important;line-height:1.2!important;padding:9px 12px!important;border-radius:999px!important;box-shadow:none!important}
}

/* Compact mobile planner: show battlefield instead of a wall of buttons */
@media(max-width:760px){
#bpEditor .bp-editor-top{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:8px 12px!important}#bpEditor .bp-editor-top>span:not(.bp-save-status){display:none!important}#bpEditor .bp-save-status{font-size:11px;white-space:nowrap}#bpEditor #bpChangeMap{padding:9px 11px!important;font-size:12px!important;min-height:42px!important}
#bpEditor .bp-workspace{padding-inline:10px!important;gap:8px!important}#bpEditor .bp-map-column{min-width:0!important;width:100%!important}
#bpEditor .sj-route-strip--planner{display:none!important}
#bpEditor .bp-map-head{display:flex!important;align-items:center!important;justify-content:space-between!important;gap:8px!important;margin:5px 0 8px!important;padding:0!important;flex-wrap:nowrap!important}
#bpEditor .bp-map-head .kicker{display:none!important}#bpEditor #bpCurrentMap{font-size:clamp(22px,6vw,29px)!important;line-height:1.1!important;margin:0!important}
#bpEditor .bp-map-controls{display:flex!important;gap:5px!important;flex-wrap:nowrap!important;width:auto!important;align-items:center!important}#bpEditor .bp-map-controls button{min-width:40px!important;min-height:42px!important;padding:7px!important;font-size:12px!important}#bpEditor #bpToggleNames{display:none!important}#bpEditor #bpFullscreen{font-size:11px!important;padding:7px 9px!important}
#bpEditor .bp-command-strip{display:grid!important;grid-template-columns:1fr 1fr!important;gap:7px!important;margin:5px 0 9px!important;padding:0!important}#bpEditor .bp-command-strip>*{min-width:0!important;width:100%!important;min-height:42px!important;margin:0!important;padding:8px!important;font-size:12px!important}#bpEditor .bp-command-strip #bpBriefToggle{grid-column:1/-1!important;order:1!important}#bpEditor .bp-command-strip #bpRosterLink,#bpEditor .bp-command-strip #bpFreehand{order:2!important}#bpEditor .bp-command-strip .bp-custom-line,#bpEditor .bp-command-strip .bp-history-quick,#bpEditor .bp-command-strip .bp-clear-all{display:none!important}
#bpEditor .sj-manual-drawing{margin:4px 0 8px!important}#bpEditor .sj-manual-drawing>summary{padding:10px 12px!important;font-size:13px!important;min-height:42px!important}#bpEditor .sj-manual-drawing>summary span{font-size:11px!important}
#bpEditor .bp-map-stage{margin-top:4px!important}#bpEditor .bp-fullscreen-tools{gap:4px!important}#bpEditor .bp-fullscreen-tools button{font-size:11px!important;padding:7px 9px!important;min-height:40px!important}
#bpEditor .bp-match-panel,#bpEditor .sj-point-controls{margin-top:8px!important}
}
@media(max-width:380px){#bpEditor .bp-map-controls button{min-width:36px!important;padding:5px!important}#bpEditor #bpFullscreen{font-size:10px!important}#bpEditor .bp-command-strip{gap:5px!important}}

.sj-library-fallback{padding:14px 16px;border:1px solid #bda46e;border-radius:8px;background:#273425;color:#f5e6be;line-height:1.6}.sj-library-fallback a{color:#f4d18c;font-weight:800}

/* Artillery mobile shortcut bar lives in the page layout, not over the aiming controls. */
@media(max-width:760px){#sjWorkbench>.sj-mobile-jump:not([hidden]){position:relative!important;grid-column:1/-1!important;top:auto!important;left:auto!important;right:auto!important;bottom:auto!important;width:100%!important;max-width:100%!important;min-width:0!important;justify-content:space-evenly!important;align-self:start!important;margin:0 0 8px!important;padding:5px!important;z-index:35!important;border-radius:12px!important}#sjWorkbench>.sj-mobile-jump>button{flex:1 1 0!important;min-width:0!important;max-width:none!important}#sjWorkbench{scroll-margin-top:55px!important}#sjFireHUD,#shell{scroll-margin-top:78px!important}}

/* Santajaay artillery: keep mobile readings unobstructed and position range help below the map */
@media(max-width:760px){#sjWorkbench #sjFullscreenStage:not(:fullscreen) #sjFireHUD{position:sticky!important;top:0!important;z-index:45!important}#sjFullscreenStage:fullscreen #sjFireHUD{position:relative!important;top:auto!important;z-index:3!important}#sjWorkbench>.sj-mobile-jump:not([hidden]){z-index:3!important;margin-bottom:10px!important}#sjWorkbench .toolbar,#sjFireHUD,#shell,#sjWorkbench .sj-aim-panel{scroll-margin-top:12px!important}}
#sjWorkbench #sjHQRangeLegend{position:relative!important;left:auto!important;right:auto!important;top:auto!important;bottom:auto!important;z-index:auto!important;width:100%!important;max-width:100%!important;margin:10px 0 14px!important;padding:12px 14px!important;display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px 14px!important;box-shadow:none!important;background:#1c3023!important;border:1px solid #70896f!important;border-radius:10px!important;color:#f5f0e4!important}#sjWorkbench #sjHQRangeLegend[hidden]{display:none!important}#sjWorkbench #sjHQRangeLegend>strong,#sjWorkbench #sjHQRangeLegend>button,#sjWorkbench #sjHQRangeLegend>small,#sjWorkbench #sjHQRangeLegend>.sj-range-explain{grid-column:1/-1}#sjWorkbench #sjHQRangeLegend>strong{font-size:13px!important}#sjWorkbench #sjHQRangeLegend .sj-hq-range-mark{min-width:0;gap:8px}#sjWorkbench #sjHQRangeLegend>button{justify-self:start;width:min(100%,300px);min-height:42px}#sjWorkbench #sjHQRangeLegend>small{display:block!important;font-size:11px!important;line-height:1.5!important;white-space:normal}#sjWorkbench #sjHQRangeLegend>.sj-range-explain{font-size:12px;line-height:1.7;color:#d5e5d1;margin:2px 0 0;padding-top:8px;border-top:1px solid #67816c66}@media(max-width:400px){#sjWorkbench #sjHQRangeLegend{padding:11px!important;gap:8px!important}#sjWorkbench #sjHQRangeLegend .sj-hq-range-mark{font-size:10px!important}}
