/* Thumb controls use the same maritime palette; only touch play enables them. */
#touch-controls{position:fixed;inset:0;z-index:7;pointer-events:none;user-select:none;-webkit-user-select:none;touch-action:none;font-family:var(--ui-face);--touch-left:max(14px,env(safe-area-inset-left));--touch-right:max(14px,env(safe-area-inset-right));--touch-bottom:max(12px,env(safe-area-inset-bottom))}
.touch-stick{position:absolute;left:var(--touch-left);bottom:var(--touch-bottom);width:136px;height:136px;border-radius:50%;pointer-events:auto;touch-action:none;display:grid;place-items:center}
.touch-stick-track{position:relative;width:116px;height:116px;border-radius:50%;border:1px solid #decda068;background:#0b1b2480;box-shadow:inset 0 0 0 7px #d4d2bd0b,0 3px 20px #0005;display:grid;place-items:center;pointer-events:none}
.touch-stick-track i{display:block;position:absolute;width:46px;height:46px;border-radius:50%;background:radial-gradient(circle at 45% 35%,#d6c59fa6,#b9a67b55);border:1px solid #f1e0bb9c;box-shadow:0 3px 12px #0008;will-change:transform}
.touch-stick-track>span{position:absolute;top:1px;font:23px/1 Arial,sans-serif;color:#d5c59c88}
.touch-stick.engaged .touch-stick-track{border-color:#eddfbcbb;background:#122a34b5}.touch-stick.sprinting .touch-stick-track>span{color:#fff0b8}
.touch-actions{position:absolute;right:var(--touch-right);bottom:var(--touch-bottom);width:194px;height:150px}
.touch-button{position:absolute;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:1px;width:54px;height:54px;border-radius:50%;padding:5px;border:1px solid #e1d4b86e;background:#0b1c27be;box-shadow:inset 0 1px #ffffff12,0 3px 15px #0004;color:#eee6d3;pointer-events:auto;touch-action:none;text-shadow:0 1px 3px #000;transition:background .1s,border-color .1s}
.touch-button svg{width:25px;height:25px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round;pointer-events:none}
.touch-button span{font:500 9px/1.2 var(--ui-face);letter-spacing:.1px;pointer-events:none}.touch-button img{width:43px;height:37px;object-fit:contain;pointer-events:none}
.touch-button.pressed,.touch-button[aria-pressed=true]{background:#77684bd9;border-color:#fff0c6;box-shadow:inset 0 0 0 3px #f6e9bc1a,0 2px 12px #0005}
.touch-button:disabled{opacity:.6;cursor:default;background:#10212dc9}.touch-button:focus-visible{outline:2px solid #f3ddb0;outline-offset:3px}
.touch-aim{left:3px;bottom:78px}.touch-crouch{left:67px;bottom:78px}.touch-jump{right:0;bottom:83px}
.touch-shove{left:0;bottom:4px}.touch-use{left:59px;bottom:0;width:62px;height:62px;background:#3a463ed9;border-color:#ead3a788}.touch-fire{right:0;bottom:0;width:68px;height:68px;background:#3e2b2ac9;border-color:#e2a68b99}
.touch-light{right:var(--touch-right);top:calc(max(10px,env(safe-area-inset-top)) + 51px);width:44px;height:44px;border-radius:5px}
.touch-mode{overscroll-behavior:none}
.touch-mode #hud{--hud-edge:max(14px,env(safe-area-inset-left))}
.touch-mode .hud-top{height:70px}.touch-mode .survivors{top:max(14px,env(safe-area-inset-top));left:var(--hud-edge);gap:5px}.touch-mode .survivors b{font-size:18px}
.touch-mode .hud-top .role-seal{top:max(12px,env(safe-area-inset-top));left:calc(var(--hud-edge) + 50px);max-width:150px;padding:5px 7px;gap:5px}.touch-mode .role-seal strong{font-size:11px}
.touch-mode .clock-block{top:max(8px,env(safe-area-inset-top));grid-template-columns:70px minmax(0,148px);column-gap:8px;padding:5px 8px 6px;max-width:290px}
.touch-mode .clock-block #clock{grid-row:1;font-size:26px;margin:0 0 5px}.touch-mode .clock-block .phase-track{grid-row:2;width:52px}
.touch-mode .clock-block .clock-location{grid-column:2;grid-row:1/3;font-size:9px;text-align:left;padding:0 0 0 8px;border-left:1px solid #b3c0c046}
.touch-mode .hud-actions{top:max(8px,env(safe-area-inset-top));right:max(14px,env(safe-area-inset-right));gap:7px}.touch-mode .hud-actions button{width:44px;height:44px;padding:10px}.touch-mode .hud-actions kbd{display:none}
.touch-mode #traitor-hud{left:var(--hud-edge);top:58px;width:180px;max-width:180px;padding:0;pointer-events:none;background:linear-gradient(90deg,#051019aa,transparent)}
.touch-mode #traitor-hud .rescue-counts{gap:8px;margin-top:5px}.touch-mode #traitor-hud .rescue-counts b{font-size:10px}.touch-mode #traitor-hud .rescue-counts .hud-icon{width:17px;height:18px}
.touch-mode #traitor-hud .rescue-heading{margin-bottom:4px;font-size:9px}.touch-mode #traitor-hud .rescue-percent{font-size:14px}
.touch-mode #traitor-hud .traitor-strike,.touch-mode #traitor-hud .carry-note{display:none!important}
.touch-mode #traitor-hud .report-body{position:fixed;left:50%;bottom:calc(max(12px,env(safe-area-inset-bottom)) + 68px);transform:translateX(-50%);max-width:230px;min-height:46px;margin:0;padding:10px 14px;justify-content:center;font-size:13px}
.touch-mode #traitor-hud .report-body kbd,.touch-mode #traitor-hud .drop-carry kbd{display:none}
.touch-mode #traitor-hud .carry-actions{margin:0}.touch-mode #traitor-hud .drop-carry{position:fixed;left:50%;bottom:max(14px,env(safe-area-inset-bottom));transform:translateX(-50%);min-width:100px;min-height:46px;padding:10px 16px;pointer-events:auto;font-size:13px;background:#142b32ed;border-color:#cbb585}
.touch-mode #traitor-hud .theft-progress{position:fixed;left:50%;bottom:calc(max(12px,env(safe-area-inset-bottom)) + 61px);width:130px;transform:translateX(-50%)}
.touch-mode .hud-bottom{inset:0;display:block}.touch-mode .vitals{position:absolute;left:var(--hud-edge);bottom:calc(max(12px,env(safe-area-inset-bottom)) + 148px);width:158px;padding:4px 6px 0 0;filter:none}
.touch-mode .vital{grid-template-columns:15px 1fr 30px;gap:5px;margin:4px 0}.touch-mode .vital .hud-icon{width:14px;height:15px}.touch-mode .vital>div,.touch-mode .vital.gear>div{height:7px}.touch-mode .vital.health>div{height:10px}.touch-mode .vital b,.touch-mode .vital.stamina b,.touch-mode .vital.cold b{font-size:10px}.touch-mode .vital.health b{font-size:13px}
.touch-mode .equipment-icons{position:fixed;left:calc(50% - 146px);bottom:max(14px,env(safe-area-inset-bottom));margin:0}.touch-mode #drink-item{width:44px;height:44px}.touch-mode #drink-item img{height:29px}.touch-mode #drink-item kbd{display:none}
.touch-mode .hotbar{position:fixed;left:50%;bottom:max(14px,env(safe-area-inset-bottom));transform:translateX(-50%)!important;gap:6px;align-items:center}
.touch-mode .hotbar button,.touch-mode .hotbar button[data-slot="0"]{width:44px;height:47px;padding:2px;border:1px solid #c6ba9d55;border-radius:4px;background:#10232cb0}.touch-mode .hotbar button.active{border-color:#edce8f;background:#514d3ec9}.touch-mode .hotbar img{height:35px}.touch-mode .hotbar kbd{display:none}.touch-mode .hotbar b{font:11px var(--ui-face);bottom:0;right:2px}
.touch-mode .navigation{display:block;position:fixed;left:auto;right:max(70px,calc(env(safe-area-inset-right) + 56px));top:60px;bottom:auto;width:100px}.touch-mode .navigation canvas{width:100px;height:80px}.touch-mode .navigation span{top:61px;font-size:7px;letter-spacing:.6px}
.touch-mode .survival-kit{top:64px;left:var(--hud-edge)}.touch-mode .kit-items{gap:10px}.touch-mode .kit-items .hud-icon{width:25px;height:25px}
.touch-mode .interact-prompt{top:56%;bottom:auto;max-width:min(340px,calc(100vw - 40px));padding:6px 10px;font-size:12px;gap:6px;text-align:center}.touch-mode .interact-prompt kbd{display:none}.touch-mode .interact-prompt .hud-icon{width:21px;height:22px}
.touch-mode .escape-task,.touch-mode.traitor-mode .escape-task{top:64px;max-width:50vw;left:50%;transform:translateX(-50%);font-size:11px;margin:0;padding:6px 10px;white-space:normal;text-align:center}
.touch-mode .phase-banner{top:31%;width:60%}.touch-mode .phase-banner strong{font-size:16px}.touch-mode .look-hint{display:none}.touch-mode .kill-feed{top:138px;right:max(14px,env(safe-area-inset-right));font-size:9px;max-width:190px}
.touch-mode .door-cue{top:91px;padding:5px 10px;font-size:12px}.touch-mode #pickup-notice{bottom:43%;padding:8px 16px}.touch-mode #pickup-notice strong{font-size:12px}.touch-mode #pickup-notice span{font-size:11px}
.touch-mode .role-announcement{width:min(490px,calc(100vw - 36px));padding:18px 20px}.touch-mode .role-announcement h2{font-size:clamp(36px,7vw,52px)}.touch-mode .role-announcement .role-announcement-task{margin-top:14px}.touch-mode .role-announcement-mark{margin-bottom:9px}.touch-mode .role-announcement-mark svg{width:28px;height:28px}
.touch-mode .spectator-controls{bottom:max(20px,env(safe-area-inset-bottom));max-width:calc(100vw - 32px)}.touch-mode .spectator-controls button{min-width:46px;min-height:46px}
.touch-mode #skip-intro,.touch-mode .lobby-footer button,.touch-mode .lobby-mode button{min-height:44px}.touch-mode .lobby-mode button{padding-inline:24px}
.touch-mode input{font-size:16px!important}.touch-mode .game-lobby{overflow:auto;overscroll-behavior:contain;touch-action:pan-y;padding:max(12px,env(safe-area-inset-top)) max(18px,env(safe-area-inset-right)) max(8px,env(safe-area-inset-bottom)) max(18px,env(safe-area-inset-left));gap:8px}
.touch-mode .game-lobby .lobby-footer{flex-wrap:wrap;gap:2px}.touch-mode .game-lobby .lobby-footer>div{gap:15px;flex-wrap:wrap;justify-content:center}.touch-mode .game-lobby .lobby-footer a{display:none}.touch-mode .game-lobby .character-lineup{min-height:115px}.touch-mode .game-lobby .choice-name{height:33px;line-height:1.15}
.touch-mode #meeting{top:calc(var(--visual-top,0px) + var(--visual-height,100dvh)/2);height:min(650px,calc(var(--visual-height,100dvh) - 20px));width:min(980px,calc(100vw - 24px));max-height:none}
.touch-mode #meeting .vote-person{min-height:46px}.touch-mode #meeting .vote-skip,.touch-mode #meeting form button{min-height:44px}.touch-mode #meeting .discussion input{font-size:16px}
.touch-mode #meeting .meeting-chat{min-height:32px;overscroll-behavior:contain}.touch-mode #meeting .discussion{padding:10px 12px}.touch-mode #meeting .voting{padding:10px}.touch-mode #meeting .meeting-heading{padding:8px 14px}.touch-mode #meeting .meeting-status{font-size:18px;padding:10px 16px}
.touch-mode #meeting .meeting-evidence{font-size:11px;padding:3px 0;margin-bottom:4px}.touch-mode #meeting .meeting-channel{display:none}.touch-mode #meeting .meeting-insignia{width:26px;height:30px}
@media(orientation:portrait) and (max-width:700px){
 .touch-mode .game-lobby .character-lineup,.touch-mode .game-lobby.online .character-lineup{flex:1 0 252px;grid-template-columns:repeat(4,minmax(0,1fr));grid-template-rows:repeat(2,minmax(116px,1fr));gap:7px;max-height:380px}
 .touch-mode .game-title h1{font-size:29px}.touch-mode .game-lobby .lobby-footer{justify-content:center}.touch-mode #mode-description{font-size:11px;margin:6px auto}.touch-mode .game-lobby .game-rules button{min-height:48px}
 .touch-mode .hud-top .role-seal{top:58px;left:var(--hud-edge);max-width:155px}.touch-mode .clock-block{grid-template-columns:76px;max-width:115px}.touch-mode .clock-block .clock-location{grid-column:1;grid-row:3;font-size:8px;text-align:center;border:0;padding:4px 0 0}
 .touch-mode #traitor-hud{top:97px;width:180px}.touch-mode .navigation{right:max(14px,env(safe-area-inset-right));top:103px}
 .touch-mode .touch-light{top:57px}.touch-mode .survival-kit{top:67px}.touch-mode .vitals{top:190px;bottom:auto;width:158px}
 .touch-mode .hotbar{bottom:calc(max(12px,env(safe-area-inset-bottom)) + 161px)}.touch-mode .equipment-icons{bottom:calc(max(12px,env(safe-area-inset-bottom)) + 161px);left:max(14px,env(safe-area-inset-left))}
 .touch-mode #traitor-hud .report-body{bottom:calc(max(12px,env(safe-area-inset-bottom)) + 162px)}.touch-mode #traitor-hud .drop-carry{bottom:calc(max(12px,env(safe-area-inset-bottom)) + 216px)}.touch-mode #traitor-hud .theft-progress{bottom:calc(max(12px,env(safe-area-inset-bottom)) + 156px)}
 .touch-mode .escape-task,.touch-mode.traitor-mode .escape-task{top:150px;max-width:calc(100vw - 30px);width:max-content;font-size:11px}.touch-mode .phase-banner{width:88%;top:38%}.touch-mode .door-cue{top:135px}
 .touch-mode .interact-prompt{top:54%;max-width:calc(100vw - 36px)}.touch-mode .kill-feed{top:194px;max-width:160px}
}
@media(max-width:600px){
 .touch-mode #meeting .meeting-columns{grid-template-columns:1fr;grid-template-rows:minmax(200px,1fr) minmax(210px,.85fr);overflow:auto;overscroll-behavior:contain}
 .touch-mode #meeting .meeting-status{font-size:17px;padding:9px 13px}.touch-mode #meeting h2{font-size:15px}.touch-mode #meeting .vote-list{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(orientation:landscape) and (max-height:500px){
 .touch-mode .game-lobby .character-lineup{flex:1 0 115px;min-height:115px}.touch-mode .game-lobby .game-title h1{font-size:22px}.touch-mode .game-lobby .game-title h1 br{display:none}.touch-mode .game-lobby .game-title h1 span{font-size:1em;letter-spacing:2px;margin:0 0 0 8px}
 .touch-mode .game-lobby .lobby-controls{display:grid;grid-template-columns:1fr 1fr;gap:5px 18px;width:min(900px,100%)}.touch-mode .game-lobby .game-rules{grid-column:1;grid-row:1}.touch-mode #mode-description{grid-column:1;grid-row:2/4;margin:0}.touch-mode .game-lobby .lobby-mode{grid-column:2;grid-row:1;margin:0;align-self:center}.touch-mode .game-lobby .embark-row{grid-column:2;grid-row:2}.touch-mode #online-fields{grid-column:2;grid-row:3;margin:0}.touch-mode #menu-status{grid-column:1/-1}.touch-mode .game-lobby .game-rules button{min-height:44px}
 .touch-mode .game-lobby .lobby-footer{font-size:9px;justify-content:center}.touch-mode .game-lobby .lobby-footer button{min-height:28px}.touch-mode .game-lobby .lobby-mode button{min-height:34px}
 .touch-mode #meeting h2{font-size:17px}.touch-mode #meeting .meeting-clock{font-size:23px}.touch-mode #meeting .meeting-status{font-size:17px;padding:7px 16px}.touch-mode #meeting .meeting-heading{padding-block:7px}.touch-mode #meeting .meeting-title-group{gap:8px}.touch-mode #meeting .vote-footnote{display:none}.touch-mode #meeting .meeting-columns{grid-template-columns:minmax(0,1.2fr) minmax(235px,1fr)}
}
@media(max-width:360px){.touch-stick{width:118px;height:118px}.touch-stick-track{width:106px;height:106px}.touch-actions{transform:scale(.92);transform-origin:bottom right}.touch-mode .hud-actions{gap:3px}.touch-mode .hud-actions button{width:40px;min-width:40px}.touch-mode .equipment-icons{bottom:calc(max(12px,env(safe-area-inset-bottom)) + 213px)}}
.touch-mode .survival-kit{width:184px;padding:7px 8px}.touch-mode .survival-kit>p{font-size:10px;margin-bottom:7px}.touch-mode .kit-items{gap:5px}.touch-mode .kit-items>span{width:47px;min-width:0}.touch-mode .kit-items small{font-size:9px}
.touch-mode .hotbar{gap:4px}.touch-mode .hotbar button,.touch-mode .hotbar button[data-slot="0"]{width:38px;min-width:38px;height:44px}.touch-mode .equipment-icons{left:calc(50% - 174px)}
@media(orientation:portrait){.touch-mode .equipment-icons{left:var(--hud-edge);bottom:65px}}

.touch-mode .escape-task.urgent{font-size:14px}

/* Keep seven weapons within a phone viewport. */
.touch-mode .hotbar{max-width:calc(100vw - 24px);overflow-x:auto;overscroll-behavior:contain}
.touch-mode .hotbar button{flex:none}
