#touch-ui{position:fixed;inset:0;z-index:3;pointer-events:none;user-select:none;-webkit-user-select:none;-webkit-touch-callout:none;font-family:Segoe UI,Arial,sans-serif;color:#eef3f1}
#touch-ui button{pointer-events:auto;touch-action:none;min-height:44px;padding:8px;font-size:12px;font-weight:650;border:1px solid #6f888f99;background:#122835d9;color:#eef3f1;box-shadow:0 2px 6px #0004}
#touch-ui button:active,#touch-ui button.held,#touch-ui button[aria-pressed=true]{background:#eab16b;color:#10212c;border-color:#ffc77f}
#touch-playing{position:absolute;inset:0;padding:env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left)}
#touch-look{position:absolute;inset:52px 0 0 37%;pointer-events:auto;touch-action:none}
.touch-top{position:absolute;top:max(8px,env(safe-area-inset-top));left:max(12px,env(safe-area-inset-left));right:max(12px,env(safe-area-inset-right));display:flex;align-items:center;gap:18px;font-size:14px;font-weight:700;text-shadow:0 1px 3px #000;pointer-events:none}
.touch-top>span{padding:8px 10px;background:#0b1c28a8;border-radius:4px}.touch-top button{margin-left:auto;width:44px;font-size:20px!important}.touch-top .low{color:#ff887a}#touch-ammo{margin-left:auto}
#touch-notice{position:absolute;top:66px;left:25%;right:25%;text-align:center;font-size:12px;text-shadow:0 1px 4px #000;color:#ffe1b3}
#touch-stick{position:absolute;left:max(18px,env(safe-area-inset-left));bottom:max(25px,env(safe-area-inset-bottom));width:120px;height:120px;border:2px solid #a2c2cb66;border-radius:50%;background:#10232d66;pointer-events:auto;touch-action:none;display:grid;place-items:center}
#touch-knob{width:50px;height:50px;border-radius:50%;border:2px solid #cce0d4c9;background:#91b9b566;pointer-events:none}#touch-stick small{position:absolute;bottom:-17px;font-size:9px;letter-spacing:1px;color:#c4d6db;pointer-events:none}
#touch-ui .touch-round{position:absolute;width:58px;height:58px;border-radius:50%;font-size:10px;padding:3px}
#touch-ui .touch-fire{right:max(20px,env(safe-area-inset-right));bottom:max(23px,env(safe-area-inset-bottom));width:80px;height:80px;font-size:13px;border:2px solid #eab16b;background:#68462dda}
.touch-aim{right:max(30px,env(safe-area-inset-right));bottom:calc(120px + env(safe-area-inset-bottom))}.touch-jump{right:calc(116px + env(safe-area-inset-right));bottom:calc(25px + env(safe-area-inset-bottom))}.touch-reload{right:calc(116px + env(safe-area-inset-right));bottom:calc(98px + env(safe-area-inset-bottom))}.touch-sprint{left:calc(153px + env(safe-area-inset-left));bottom:calc(98px + env(safe-area-inset-bottom))}.touch-crouch{left:calc(153px + env(safe-area-inset-left));bottom:calc(25px + env(safe-area-inset-bottom))}
.touch-weapons{position:absolute;left:50%;bottom:max(10px,env(safe-area-inset-bottom));transform:translateX(-50%);display:flex;align-items:center;width:220px;gap:5px;background:#0b1c28b8;border-radius:6px;pointer-events:auto}.touch-weapons button{width:44px;flex-shrink:0;font-size:26px!important}.touch-weapons span{flex:1;text-align:center;font-size:10px;font-weight:700;line-height:1.3}
.touch-utilities{position:absolute;left:50%;bottom:calc(72px + env(safe-area-inset-bottom));transform:translateX(-50%);display:flex;gap:5px;pointer-events:auto}.touch-utilities button{width:57px;font-size:9px!important}
#touch-extras{position:absolute;left:50%;bottom:calc(123px + env(safe-area-inset-bottom));transform:translateX(-50%);display:flex;gap:6px;pointer-events:auto}#touch-extras button{min-width:76px}
#touch-menu,#touch-rotate{position:absolute;inset:0;display:grid;place-items:center;background:#08141ce8;pointer-events:auto;padding:16px max(16px,env(safe-area-inset-right)) 16px max(16px,env(safe-area-inset-left));overflow:auto;touch-action:pan-y}
.touch-menu-card{width:min(560px,100%);margin:auto}.touch-eyebrow{font-size:11px;color:#97c9c7;letter-spacing:.1em}.touch-menu-card h2{font-size:28px;line-height:1.1;margin:10px 0}.touch-menu-card p{font-size:14px;line-height:1.4;color:#adbec4;margin:8px 0 15px}.touch-menu-actions{display:grid;grid-template-columns:1fr 1fr;gap:8px}#touch-ui #touch-primary{grid-column:1/-1;background:#eab16b;color:#10212c;font-size:16px;min-height:49px}.touch-menu-card details{font-size:13px;margin-top:12px}.touch-menu-card summary{padding:8px 0;color:#a8cdce;cursor:pointer}.touch-menu-card details p{font-size:12px}
#touch-rotate{z-index:6;align-content:center;text-align:center;gap:10px}#touch-rotate>span{font-size:52px;color:#eab16b}#touch-rotate h2{font-size:26px;margin:0}#touch-rotate p{color:#a8c0c6;font-size:15px;line-height:1.5}
body[data-touch=true] #capture{display:none!important}body[data-touch=true] #fullscreen{right:16px;top:12px;font-size:12px;padding:8px;z-index:7}body[data-touch=true][data-state=playing] #fullscreen{display:none}
.input-option{display:flex;align-items:center;gap:10px;min-height:44px;font-size:15px;color:#b9d1d2;cursor:pointer}.input-option input{width:21px;height:21px;accent-color:#eab16b}#touch-intro{display:none}body[data-touch=true] #desktop-intro{display:none}body[data-touch=true] #touch-intro{display:block}
@media(max-height:500px){body[data-touch=true] #boot{padding:16px;overflow:auto;display:block}body[data-touch=true] .card{margin:auto;padding:0 0 0 22px;max-width:660px}body[data-touch=true] h1{font-size:42px;margin:12px 0}body[data-touch=true] .lead{font-size:15px;margin:8px 0}body[data-touch=true] .detail{display:none}body[data-touch=true] .row{margin-top:8px}body[data-touch=true] .controls{font-size:12px;line-height:1.5;margin:12px 0 0;padding-top:10px}body[data-touch=true] #status{font-size:13px;margin-top:5px;min-height:18px}body[data-touch=true] .links{margin-top:9px}body[data-touch=true] .links a{font-size:11px}body[data-touch=true] .eyebrow{font-size:11px}}
@media(max-width:700px){#touch-stick{width:104px;height:104px;left:max(12px,env(safe-area-inset-left));bottom:calc(27px + env(safe-area-inset-bottom))}#touch-ui .touch-round{width:47px;height:47px;font-size:8px}#touch-ui .touch-fire{width:68px;height:68px;font-size:11px;right:max(12px,env(safe-area-inset-right));bottom:calc(25px + env(safe-area-inset-bottom))}.touch-aim{right:calc(22px + env(safe-area-inset-right));bottom:calc(109px + env(safe-area-inset-bottom))}.touch-jump{right:calc(91px + env(safe-area-inset-right));bottom:calc(25px + env(safe-area-inset-bottom))}.touch-reload{right:calc(91px + env(safe-area-inset-right));bottom:calc(91px + env(safe-area-inset-bottom))}.touch-sprint{left:calc(124px + env(safe-area-inset-left));bottom:calc(91px + env(safe-area-inset-bottom))}.touch-crouch{left:calc(124px + env(safe-area-inset-left));bottom:calc(25px + env(safe-area-inset-bottom))}.touch-weapons{width:190px}.touch-utilities{gap:3px;bottom:calc(66px + env(safe-area-inset-bottom))}.touch-utilities button{width:48px;font-size:8px!important}.touch-top{gap:6px;font-size:11px}.touch-top>span{padding:7px}.touch-menu-card h2{font-size:24px}.touch-menu-card p{font-size:12px}.touch-menu-card details{margin-top:7px}#touch-ui .touch-menu-actions button{min-height:44px;font-size:12px}#touch-extras{bottom:calc(116px + env(safe-area-inset-bottom))}}
