/* Every game override is scoped to coarse-pointer phones. Desktop styling stays in style.css. */
#touch-controls,#touch-ink{display:none}
body.touch-game{--safe-top:env(safe-area-inset-top,0px);--safe-right:env(safe-area-inset-right,0px);--safe-bottom:env(safe-area-inset-bottom,0px);--safe-left:env(safe-area-inset-left,0px);overscroll-behavior:none;-webkit-tap-highlight-color:transparent}
body.touch-game #world,body.touch-game #world>canvas{touch-action:none;user-select:none;-webkit-user-select:none;-webkit-touch-callout:none;height:100dvh}
body.touch-game #touch-controls{display:block;position:fixed;inset:0;z-index:10;pointer-events:none;user-select:none;-webkit-user-select:none;font-family:Arial,sans-serif}
body.touch-game #touch-controls[hidden],body.touch-game #touch-controls [hidden]{display:none!important}
body.touch-game #touch-controls button,body.touch-game #touch-controls input,body.touch-game #touch-stick{pointer-events:auto;touch-action:none;-webkit-touch-callout:none}
body.touch-game #touch-controls button{color:#edf5e6;border:1px solid #c8edd65c;box-shadow:0 5px 20px #0005,inset 0 1px #effff418;background:linear-gradient(145deg,#263f35e8,#0b211de8);padding:0;position:relative}
body.touch-game #touch-controls button:focus-visible{outline:2px solid #b3fff0;outline-offset:4px}
body.touch-game #touch-controls svg{fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;pointer-events:none}
body.touch-game .location-panel,body.touch-game .bottom-bar,body.touch-game .scene-credit,body.touch-game .weapon-strip{display:none}
body.touch-game .objective-strip{position:fixed;top:calc(10px + var(--safe-top));left:calc(66px + var(--safe-left));right:calc(66px + var(--safe-right));width:auto;transform:none;padding:10px 12px;border-radius:12px;background:#10281fea;box-shadow:0 4px 20px #0004}
body.touch-game .objective-title{font-size:12px;gap:5px;letter-spacing:.7px}body.touch-game .objective-title b{display:none}body.touch-game #unit-wallet{font-size:12px}
body.touch-game .objective-meta{font-size:12px;gap:5px;flex-wrap:nowrap;letter-spacing:0}body.touch-game .objective-meta>span:nth-child(2){display:none}
body.touch-game .objective-health{margin:7px 0}body.touch-game #target-world-label{font-size:12px;letter-spacing:.7px;max-width:180px}body.touch-game #target-world-label span{font-size:12px}
body.touch-game #weapon-reticle{width:112px;height:112px}body.touch-game #weapon-reticle>svg{width:112px;height:112px}body.touch-game #reticle-range{top:112px;font-size:12px}
body.touch-game #hit-caption{left:114px;top:44px;font-size:12px}body.touch-game .rescue-bearing>span{font-size:12px;padding:4px 6px}
body.touch-game .sensor-top{top:calc(77px + var(--safe-top));font-size:12px;letter-spacing:1px}body.touch-game .sensor-scale{display:none}
body.touch-game .controls-panel,body.touch-game .controls-panel.player-optics{display:none;position:fixed;top:calc(70px + var(--safe-top));right:calc(12px + var(--safe-right));width:min(320px,calc(100vw - 24px - var(--safe-left) - var(--safe-right)));max-height:calc(100dvh - 180px - var(--safe-top) - var(--safe-bottom));padding:20px;overflow:auto;z-index:10;background:#10291ff5;backdrop-filter:blur(14px);border-radius:16px}
body.touch-game .controls-panel label{font-size:14px}body.touch-game .controls-panel output{font-size:24px}
body.touch-game input[type=range]{height:6px;margin:22px 0;touch-action:pan-x}body.touch-game input[type=range]::-webkit-slider-thumb{width:24px;height:24px;border-width:3px}body.touch-game input[type=range]::-moz-range-thumb{width:22px;height:22px}
body.touch-game .player-audio-controls summary{min-height:44px;align-items:center;font-size:14px}body.touch-game .player-audio-controls label{font-size:13px;min-height:44px}
body.touch-game #touch-controls .touch-tool{width:44px;height:44px;display:grid;place-items:center;border-radius:13px;flex:0 0 44px}
body.touch-game .touch-tool svg{width:25px;height:25px}body.touch-game .touch-tool[aria-pressed=true]{color:#a0ffdf!important;background:#215447f2!important;border-color:#a0ffdf!important}
body.touch-game .touch-tool:disabled{opacity:.35}
body.touch-game .touch-utilities{position:fixed;right:calc(12px + var(--safe-right));top:calc(83px + var(--safe-top));display:flex;flex-direction:column;gap:8px}
body.touch-game #touch-stick{position:fixed;left:calc(18px + var(--safe-left));bottom:calc(30px + var(--safe-bottom));width:126px;height:126px;border:1px solid #d6eee548;border-radius:50%;background:radial-gradient(circle,#1e3d3350 0 28%,#0c211b85 29% 68%,#b7ead21a 70%);box-shadow:0 7px 25px #0003,inset 0 0 20px #abdec314}
body.touch-game .stick-ring{position:absolute;inset:14px;border:1px dashed #c4ecd443;border-radius:50%;pointer-events:none}
body.touch-game .stick-thumb{position:absolute;left:50%;top:50%;width:49px;height:49px;border:1px solid #c4efce8c;border-radius:50%;background:radial-gradient(circle at 35% 25%,#b7dcc479,#32634cc4 70%);box-shadow:0 3px 15px #0005,inset 0 1px #e7fff859;transform:translate(-50%,-50%);pointer-events:none;will-change:transform}
body.touch-game .stick-axis{position:absolute;left:20%;right:20%;top:50%;height:1px;background:#c5e9cd26;pointer-events:none}body.touch-game .stick-axis.vertical{transform:rotate(90deg)}
body.touch-game #touch-stick>b{position:absolute;bottom:10px;width:100%;text-align:center;font:12px monospace;letter-spacing:2px;color:#d7ebd0;pointer-events:none}body.touch-game #touch-stick.engaged{border-color:#a7ffdaaa;background-color:#224e3538}
body.touch-game .touch-attacks{position:fixed;right:calc(16px + var(--safe-right));bottom:calc(24px + var(--safe-bottom));width:182px;height:176px;pointer-events:none}
body.touch-game #touch-controls .touch-attack{position:absolute;display:flex;flex-direction:column;align-items:center;justify-content:center;border-radius:50%;gap:2px;overflow:hidden;isolation:isolate}
body.touch-game .touch-attack svg{width:31px;height:31px;position:relative;z-index:1}body.touch-game .touch-attack.primary{width:84px;height:84px;right:0;bottom:0;color:#edffd9!important;border:2px solid #d2efa485!important;background:radial-gradient(circle at 35% 25%,#647f42ee,#203c27f5 75%)!important}
body.touch-game .touch-attack.secondary{width:66px;height:66px;right:6px;bottom:104px;color:#ffdc9d!important;border-color:#e8be7d99!important}
body.touch-game .touch-attack.support{width:60px;height:60px;right:108px;bottom:6px;color:#a5eade!important;border-color:#9ce6d67a!important}
body.touch-game .touch-attack.secondary svg,body.touch-game .touch-attack.support svg{width:23px;height:23px}
body.touch-game .attack-label{font:700 12px/1 Arial;letter-spacing:.8px;position:relative;z-index:1}body.touch-game .attack-readout{font:12px/1.2 monospace;position:relative;z-index:1;color:#f3f6df}
body.touch-game .touch-attack .touch-charge{position:absolute;inset:0;border-radius:50%;background:conic-gradient(from -90deg,currentColor var(--charge,360deg),#d6dcd61a 0);mask:radial-gradient(circle,transparent 64%,#000 65% 72%,transparent 73%);opacity:.55}
body.touch-game .touch-attack.recharging svg{opacity:.45}body.touch-game .touch-attack.empty{opacity:.5}body.touch-game .touch-attack.pressed{transform:scale(.94);box-shadow:0 0 24px #d2ef7866!important;border-color:#f3ffdd!important}
body.touch-game #touch-zoom{position:fixed;left:50%;bottom:calc(205px + var(--safe-bottom));transform:translateX(-50%);width:min(230px,60vw);padding:8px 15px 7px;border:1px solid #b3e1bc4a;border-radius:13px;background:#11291fe3;pointer-events:auto;box-shadow:0 4px 16px #0003}
body.touch-game #touch-zoom>span{display:flex;justify-content:space-between;font:12px monospace;letter-spacing:1px;color:#c8dec0}body.touch-game #touch-zoom b{font-size:12px;color:#e7f4c7}
body.touch-game #touch-zoom input{height:4px;margin:14px 0 8px;background:#628369;touch-action:none}body.touch-game #touch-zoom input::-webkit-slider-thumb{width:22px;height:22px}
body.touch-game #touch-hint{position:fixed;bottom:calc(6px + var(--safe-bottom));left:50%;width:max-content;max-width:90vw;transform:translateX(-50%);color:#d6e8cc;font:12px/1.4 monospace;letter-spacing:1px;text-align:center;text-shadow:0 1px 4px #000}
body.touch-game #touch-controls #touch-clear{position:fixed;left:50%;bottom:calc(264px + var(--safe-bottom));transform:translateX(-50%);border-radius:20px;padding:6px 12px;font:12px monospace;display:flex;align-items:center;gap:6px}
body.touch-game #touch-clear svg{width:18px;height:18px}
body.touch-game #touch-ink{display:block;position:fixed;inset:0;width:100%;height:100%;z-index:5;pointer-events:none}body.touch-game #touch-ink[hidden]{display:none}
body.touch-game #mission-pause-control.running{display:block;left:calc(10px + var(--safe-left));top:calc(10px + var(--safe-top));bottom:auto;right:auto;width:44px;padding:0;opacity:1}
body.touch-game #mission-pause-control.running .pause-card{padding:0;border:0;border-radius:13px;width:44px;background:none;box-shadow:none;pointer-events:auto}
body.touch-game #mission-pause-control.running #pause-kicker,body.touch-game #mission-pause-control.running #mission-pause-label,body.touch-game #mission-pause-control.running #mission-pause-hint{display:none}
body.touch-game #mission-pause-control.running #mission-pause{min-height:44px;width:44px;padding:0;border-radius:13px;background:#19392beb;color:#edffd8;font-size:27px;border-color:#b6e0c45c;box-shadow:0 4px 20px #0004}
body.touch-game #mission-pause-control.paused{padding:16px;padding-top:calc(16px + var(--safe-top));padding-bottom:calc(16px + var(--safe-bottom));overflow:auto}
body.touch-game #mission-pause-control.paused .pause-card{max-width:440px;width:100%;padding:24px 20px}body.touch-game #mission-pause-control.paused #mission-pause{font-size:38px;min-height:90px}
body.touch-game #mission-pause-hint{font-size:12px;letter-spacing:1px}body.touch-game #mission-abort{min-height:48px;font-size:12px}
body.touch-game .tactical-radar.map-panel{display:block;position:fixed;left:calc(12px + var(--safe-left));right:auto;top:calc(83px + var(--safe-top));bottom:auto;width:112px;padding:8px;background:#0c241edb;border-radius:15px;border-color:#c6e8c14d;backdrop-filter:none}
body.touch-game .tactical-radar .map-heading{margin-bottom:4px}body.touch-game .tactical-radar .eyebrow{font-size:0}body.touch-game .tactical-radar .eyebrow::after{content:'RADAR';font-size:12px;letter-spacing:1px}
body.touch-game .tactical-radar .north{font-size:12px}body.touch-game .radar-readout{margin-top:5px;justify-content:center}body.touch-game .radar-readout b{font-size:12px;white-space:nowrap}body.touch-game #radar-nearest,body.touch-game .radar-hint{display:none}
body.touch-game #radar-offline{inset:25px 5px 23px;font-size:12px;letter-spacing:0}body.touch-game #radar-offline small{display:none}
body.touch-game #radio-transmission{left:50%;right:auto;bottom:calc(266px + var(--safe-bottom));transform:translateX(-50%);width:min(320px,calc(100vw - 32px));padding:9px 12px;backdrop-filter:none;border-radius:11px}
body.touch-game .radio-top{font-size:12px}body.touch-game #radio-caption{font-size:12px;line-height:1.45;margin-top:5px}body.touch-game #combat-toast{width:calc(100vw - 32px);max-width:360px;bottom:calc(180px + var(--safe-bottom));font-size:12px;line-height:1.5;text-align:center}
body.touch-game #mission-overlay{padding:14px;overflow:auto;overscroll-behavior:contain}body.touch-game #mission-overlay .result-card{max-height:calc(100dvh - 28px - var(--safe-top) - var(--safe-bottom));overflow:auto;padding:24px}
body.touch-game .result-stats{grid-template-columns:repeat(2,1fr);gap:17px}body.touch-game .result-stats span{font-size:12px}body.touch-game .result-header h2{font-size:34px}
body.touch-game .result-actions{grid-template-columns:1fr}body.touch-game .result-actions button{min-height:52px}body.touch-game .score-breakdown{font-size:12px}
body.touch-game #mission-overlay.briefing{padding:0;background:none;overflow:visible}
body.touch-game #mission-overlay.briefing .briefing-card,body.touch-game #mission-overlay.briefing .briefing-card.campaign-briefing{position:fixed;left:12px;right:12px;bottom:calc(98px + var(--safe-bottom));top:auto;transform:none;width:auto;max-width:none;max-height:calc(100dvh - 300px - var(--safe-top) - var(--safe-bottom));padding:22px;border-radius:22px;background:linear-gradient(150deg,#294435f7,#0d241ffb);box-shadow:0 -10px 40px #0003;overscroll-behavior:contain;touch-action:pan-y;-webkit-overflow-scrolling:touch}
body.touch-game .campaign-briefing h2{font-size:36px;margin:15px 0;letter-spacing:-1px}body.touch-game .campaign-briefing .mission-kicker{font-size:12px;letter-spacing:1px}
body.touch-game .campaign-briefing>p,body.touch-game .briefing-card>p{font-size:14px;line-height:1.6;display:block}body.touch-game .campaign-briefing .funding-story{font-size:12px;display:block}
body.touch-game .campaign-briefing .briefing-tags{gap:5px;margin-bottom:12px}body.touch-game .campaign-briefing .briefing-tags span{font-size:12px;padding:5px 6px}
body.touch-game .briefing-controls,body.touch-game .campaign-briefing .briefing-controls{display:grid;grid-template-columns:1fr 1fr;gap:12px;font-size:12px;line-height:1.4;margin:18px 0}body.touch-game .briefing-controls b{font-size:12px;line-height:1.4}
body.touch-game .campaign-briefing .briefing-loadout{grid-template-columns:repeat(3,minmax(0,1fr));font-size:12px;gap:5px;margin:14px 0}body.touch-game .briefing-loadout>span{padding:9px 7px;overflow-wrap:anywhere}body.touch-game .briefing-loadout small{font-size:12px;letter-spacing:.5px}
body.touch-game .briefing-links{flex-wrap:wrap;justify-content:start;gap:6px 14px!important}body.touch-game .briefing-links a{display:flex;align-items:center;min-height:44px;font-size:12px}
body.touch-game #mission-start{display:none}body.touch-game .briefing-audio{gap:7px}body.touch-game .briefing-audio button{font-size:12px;padding:10px;min-height:44px}body.touch-game #briefing-audio-status{font-size:12px;min-width:100%}
body.touch-game #touch-briefing-footer{position:fixed;left:16px;right:16px;bottom:calc(13px + var(--safe-bottom));pointer-events:auto}
body.touch-game #touch-controls #touch-begin{display:block;min-height:56px;width:100%;padding:15px 20px;border:1px solid #e4f3c288;border-radius:15px;background:linear-gradient(130deg,#dfefb9,#bfd994);color:#1c3625;font:800 13px/1.3 Arial;letter-spacing:1.5px;box-shadow:0 5px 30px #071c1b88}
body.touch-game #touch-begin:disabled{opacity:.5}body.touch-game #touch-briefing-footer>small{display:block;text-align:center;font:12px monospace;letter-spacing:1px;color:#b5cdb7;margin-top:7px}
body.touch-game #deployment-map.overview{left:0;right:0;background:radial-gradient(ellipse at top,#18403b,#071b21)}
body.touch-game #deployment-map.overview .deployment-atlas{width:280px;height:336px;aspect-ratio:5/6;left:50%;right:auto;top:calc(-80px + var(--safe-top));transform:translateX(-50%)}
body.touch-game #deployment-map.overview .deployment-bottom{display:none}body.touch-game #deployment-map.overview .deployment-pin>span{top:auto;bottom:26px;left:50%;right:auto;transform:translateX(-50%);font-size:16px;max-width:220px;text-align:center}
body.touch-game #deployment-map.overview .deployment-place.city{font-size:12px}body.touch-game #deployment-map.overview .deployment-place.city.major{font-size:14px}body.touch-game #deployment-map.overview .deployment-legend{top:8px;bottom:auto;left:12px;font-size:12px;max-width:130px}
body.touch-game #deployment-map .deployment-top{left:16px;right:16px;top:calc(18px + var(--safe-top));font-size:12px;letter-spacing:.8px}body.touch-game #deployment-map .deployment-title{left:18px;bottom:70px;width:calc(100% - 36px)}
body.touch-game #deployment-map .deployment-title h2{font-size:34px}body.touch-game #deployment-map .deployment-title p{font-size:15px}body.touch-game #deployment-map .deployment-bottom{left:18px;right:18px;bottom:calc(22px + var(--safe-bottom))}
body.touch-game dialog{max-width:calc(100vw - 28px);max-height:calc(100dvh - 40px);overflow:auto;padding:26px}body.touch-game dialog p{font-size:14px}
@media (orientation:landscape){
 body.touch-game .objective-strip{left:calc(70px + var(--safe-left));right:calc(70px + var(--safe-right));max-width:480px;margin:auto;padding:8px 14px}
 body.touch-game .objective-title{font-size:12px}body.touch-game .objective-title b{display:inline;font-size:12px}body.touch-game .objective-meta{font-size:12px}
 body.touch-game .touch-utilities{left:50%;right:auto;top:calc(74px + var(--safe-top));transform:translateX(-50%);flex-direction:row;gap:8px}
 body.touch-game #touch-controls .touch-tool{width:40px;height:40px;flex-basis:40px;border-radius:12px}

 body.touch-game #touch-stick{width:112px;height:112px;bottom:calc(24px + var(--safe-bottom))}
 body.touch-game .touch-attacks{bottom:calc(18px + var(--safe-bottom));height:166px}body.touch-game .touch-attack.primary{width:78px;height:78px}
 body.touch-game .touch-attack.secondary{width:60px;height:60px;bottom:96px}body.touch-game .touch-attack.support{width:56px;height:56px;right:99px}
 body.touch-game #touch-zoom{bottom:calc(23px + var(--safe-bottom));width:190px;padding:6px 13px 3px}body.touch-game #touch-zoom input{margin:10px 0 7px}
 body.touch-game #touch-hint{bottom:calc(4px + var(--safe-bottom));font-size:12px}
 body.touch-game #radio-transmission{bottom:calc(91px + var(--safe-bottom));width: min(320px,calc(100vw - 340px));padding:7px 10px}body.touch-game .radio-top{font-size:12px}body.touch-game #radio-caption{font-size:12px}
 body.touch-game #touch-controls #touch-clear{bottom:calc(85px + var(--safe-bottom))}
 body.touch-game #combat-toast{bottom:calc(140px + var(--safe-bottom));max-width:300px}
 body.touch-game .controls-panel,body.touch-game .controls-panel.player-optics{top:calc(65px + var(--safe-top));max-height:calc(100dvh - 85px - var(--safe-top) - var(--safe-bottom))}
 body.touch-game #mission-overlay.briefing .briefing-card,body.touch-game #mission-overlay.briefing .briefing-card.campaign-briefing{left:calc(12px + var(--safe-left));right:auto;top:calc(12px + var(--safe-top));bottom:calc(91px + var(--safe-bottom));width:calc(55vw - 24px - var(--safe-left));max-height:none;padding:20px;border-radius:18px}
 body.touch-game #touch-briefing-footer{left:calc(12px + var(--safe-left));right:auto;width:calc(55vw - 24px - var(--safe-left));bottom:calc(10px + var(--safe-bottom))}
 body.touch-game #touch-controls #touch-begin{min-height:49px;font-size:12px}body.touch-game #touch-briefing-footer>small{font-size:12px}
 body.touch-game #deployment-map.overview{left:var(--briefing-map-left,55vw)}body.touch-game #deployment-map.overview .deployment-atlas{top:50%;transform:translate(-50%,-50%);width:100%;height:auto}
 body.touch-game #mission-pause-control.paused .pause-card{padding:18px 22px;max-height:calc(100dvh - 28px);overflow:auto}body.touch-game #pause-kicker{margin-bottom:14px}body.touch-game #mission-pause-control.paused #mission-pause{min-height:66px;font-size:34px}
 body.touch-game #mission-pause-hint{margin-top:14px}body.touch-game #mission-hangar-options{margin-top:14px;padding-top:14px}
}
@media (max-width:360px) and (orientation:portrait){body.touch-game #touch-stick{width:110px;height:110px;left:12px}body.touch-game .touch-attacks{right:12px;width:164px}body.touch-game .touch-attack.primary{width:76px;height:76px}body.touch-game .touch-attack.support{right:95px;width:56px;height:56px}body.touch-game .objective-strip{left:61px;right:61px;padding:9px}body.touch-game #unit-wallet{font-size:12px}body.touch-game .objective-meta{font-size:12px}}

/* The menus share phone-sized targets without changing mouse/desktop layouts. */
@media (pointer:coarse) and (hover:none) and (max-width:1200px){
 .shell-header{height:76px;padding:10px max(14px,env(safe-area-inset-right)) 10px max(14px,env(safe-area-inset-left));gap:12px}.brand{font-size:12px;letter-spacing:1.5px;gap:10px}.brand small{font-size:12px;letter-spacing:.7px}.shell-nav{gap:10px}.shell-nav>a{display:flex;align-items:center;min-height:44px;font-size:12px;letter-spacing:.5px}.shell-nav>a[href="editor.html"]{display:none}.wallet{font-size:18px}.wallet small{font-size:12px}
 .board{padding:24px 16px 40px}.board-heading{display:block}.board h1{font-size:43px}.board-heading p{font-size:14px}.board .primary{display:flex;align-items:center;justify-content:center;min-height:52px}.operation-grid{grid-template-columns:repeat(auto-fit,minmax(245px,1fr))}.operation-card p{font-size:13px}.operation-card footer{font-size:12px}
 .hangar-body{overflow:auto;overscroll-behavior-y:contain}.hangar-stage{position:relative;inset:auto;height:300px}.hangar-wordmark{top:18px;left:20px}.hangar-wordmark h1{font-size:42px}.hangar-wordmark p{display:none}.preview-caption{bottom:16px;left:20px}.preview-caption h2{font-size:25px}.preview-caption span{font-size:12px;letter-spacing:1px}
 .equipment-panel{position:relative;inset:auto;width:calc(100% - 24px);max-width:none;margin:12px;height:auto;min-height:650px;padding:16px;border-radius:16px}.equipment-list{height:280px;max-height:45dvh;flex:none;min-height:150px}.equipment-row{min-height:60px}.equipment-row strong{font-size:14px}.equipment-row small{font-size:12px}.equipment-row>span{font-size:12px}.equipment-tabs{gap:6px}.equipment-tabs button{min-height:48px;font-size:12px}.catalog-search{font-size:16px;min-height:46px}.equipment-detail p{font-size:13px;line-height:1.6}.requisition-actions button{min-height:50px;font-size:12px}
 .loadout-bar{position:sticky;inset:auto;bottom:0;min-height:120px;height:auto;flex-wrap:wrap;padding:12px max(14px,env(safe-area-inset-right)) calc(12px + env(safe-area-inset-bottom)) max(14px,env(safe-area-inset-left));gap:12px;background:#0b211df7}.loadout-slot{flex-basis:25%;padding:0 7px}.loadout-slot b{font-size:12px}.loadout-slot small,.loadout-slot span{font-size:12px}.loadout-bar .primary{width:100%;min-height:50px}.licenses-link{position:static;display:block;margin:16px;font-size:12px}
 .editor-layout{display:block}.editor-list{position:relative;max-height:150px;white-space:nowrap;overflow:auto;padding:10px}.editor-list button{display:inline-block;width:170px;min-height:60px;white-space:normal;font-size:12px}.editor-list button small{font-size:12px}.editor-main{padding:20px 16px 50px}.editor-fields{grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.editor-fields input,.editor-fields select,.editor-fields textarea{font-size:16px;min-height:46px}.editor-fields label{font-size:12px}.editor-fields input[type=checkbox]{width:26px;height:26px;min-height:26px}.editor-actions button{min-height:46px;font-size:12px}.editor-note{font-size:13px}#event-script{font-size:13px}
}

body.touch-game .briefing-controls span:last-child b{display:block}

body.touch-game .rescue-bearing{pointer-events:none}

body.touch-game #deployment-map.overview .deployment-pin>span{font-size:14px;padding:7px 10px}body.touch-game #deployment-map.overview .deployment-pin small{display:none}
@media (orientation:landscape) and (max-height:380px){
 body.touch-game .tactical-radar.map-panel{width:94px;padding:6px;top:calc(76px + var(--safe-top))}
 body.touch-game .tactical-radar .radar-readout{display:none}
 body.touch-game #touch-stick{width:96px;height:96px;bottom:calc(20px + var(--safe-bottom))}body.touch-game .stick-thumb{width:43px;height:43px}
 body.touch-game #touch-zoom{width:168px;bottom:calc(20px + var(--safe-bottom))}
 body.touch-game .touch-utilities{top:calc(70px + var(--safe-top));gap:6px}
 body.touch-game #radio-transmission{bottom:calc(80px + var(--safe-bottom));width:min(270px,calc(100vw - 280px))}body.touch-game #radio-caption{font-size:12px}
}

/* Radio subtitles sit outside the central aiming area on small screens. */
@media (orientation:portrait){
 body.touch-game #radio-transmission{left:calc(160px + var(--safe-left));right:calc(68px + var(--safe-right));top:calc(84px + var(--safe-top));bottom:auto;transform:none;width:auto;max-height:145px;padding:8px;overflow:hidden}
 body.touch-game #radio-transmission .radio-top{font-size:12px;gap:5px}body.touch-game #radio-transmission .radio-top b{min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}body.touch-game #radio-transmission .radio-wave{display:none}
 body.touch-game #radio-caption{font-size:12px;line-height:1.45;display:-webkit-box;-webkit-line-clamp:6;-webkit-box-orient:vertical;overflow:hidden}
}
@media (orientation:landscape){
 body.touch-game #radio-transmission{width:min(340px,calc(100vw - 360px));bottom:calc(88px + var(--safe-bottom));padding:6px 10px}
 body.touch-game #radio-transmission .radio-top{display:none}body.touch-game #radio-caption{font-size:12px;line-height:1.4;display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;margin:0}
}
@media (orientation:landscape) and (max-height:380px){body.touch-game #radio-transmission{bottom:calc(68px + var(--safe-bottom));font-size:12px}}

/* Larger status text uses the space vacated by the camera toggle. */
body.touch-game .objective-strip{right:calc(12px + var(--safe-right))}
body.touch-game .tactical-radar.map-panel{width:136px}
body.touch-game .tactical-radar .radar-readout{white-space:normal;text-align:center}
body.touch-game .radar-readout b{white-space:normal;line-height:1.4}
@media(orientation:landscape) and (max-height:380px){body.touch-game .tactical-radar.map-panel{width:100px}body.touch-game .tactical-radar .radar-readout{display:none}}

body.touch-game .touch-attack.support{width:68px;height:68px}
body.touch-game .tactical-radar .map-heading{gap:4px}
body.touch-game .tactical-radar .north{white-space:nowrap;flex-shrink:0;letter-spacing:0}

/* Phone HUD stays focused on the view, aim and mounted weapons. */
body.touch-game .tactical-radar.map-panel{display:none!important}
