.pw-touch{position:absolute;inset:0;touch-action:none;user-select:none;pointer-events:none}
.pw-touch[hidden]{display:none}
.pw-look{position:absolute;inset:0;pointer-events:auto}
.pw-root .pw-touch button{pointer-events:auto;touch-action:none;min-height:44px;min-width:44px;display:grid;place-content:center;justify-items:center;gap:2px;padding:0;color:#fffdf5;background:linear-gradient(150deg,#263644ec,#101923dc);border:1.5px solid #ffffff84;border-radius:50%;box-shadow:inset 0 1px 0 #ffffff24,0 2px 4px #050d1470;font:900 9px/1 system-ui;letter-spacing:.13em}
.pw-touch svg{width:22px;height:22px;pointer-events:none}
.pw-root .pw-touch button.pressed{background:#e0ff69;color:#131a1d;transform:scale(.94)}
.pw-root .pw-touch [data-action=move]{position:absolute;left:max(14px,env(safe-area-inset-left));bottom:max(12px,env(safe-area-inset-bottom));width:90px;height:90px;background:radial-gradient(circle,transparent 46%,#fff4 47%,transparent 50%),#12202b80}
.pw-touch [data-action=move] i{display:block;width:34px;height:34px;border-radius:50%;background:linear-gradient(145deg,#fffef4,#b9c9c0);box-shadow:0 2px 7px #10192188;pointer-events:none}
/* The right thumb cluster (2026-11-27): FIRE big in the corner, Swap above it, the six others in a 2x3 block beside it.
   The ammo readout sits above the whole cluster (see .pw-ammo in the coarse block). */
.pw-actions{position:absolute;right:max(12px,env(safe-area-inset-right));bottom:max(12px,env(safe-area-inset-bottom));display:grid;grid-template-columns:44px 44px 64px;grid-template-rows:44px 44px 44px;gap:5px;align-items:center;justify-items:center}
.pw-actions [data-action=Zoom]{grid-area:1/1}
.pw-actions [data-action=Grenade]{grid-area:1/2}
.pw-actions [data-action=Reload]{grid-area:2/1}
.pw-actions [data-action=Jump]{grid-area:2/2}
.pw-actions [data-action=Power]{grid-area:3/1}
.pw-actions [data-action=Crouch]{grid-area:3/2}
.pw-root .pw-actions [data-action=Fire]{grid-area:2/3/4/4;width:64px;height:64px;background:#d3ff45;color:#192218;border:3px solid #192218;outline:1px solid #e8ff91;box-shadow:0 3px 0 #37451a}
.pw-touch [data-action=Fire] svg{width:25px;height:25px;fill:currentColor}
.pw-actions [data-action=Swap]{grid-area:1/3}
/* Pick up (a gun on the floor in reach): beside the cluster, lime like FIRE so it is seen. */
.pw-root .pw-actions [data-action=Use]{position:absolute;right:calc(100% + 12px);bottom:54px;width:52px;height:52px;background:#d3ff45;color:#192218;border:2px solid #192218}
.pw-root .pw-actions [data-action=Use][hidden]{display:none}
/* No E key on a phone: the prompt is just the gun's name (the lime button picks it up). */
@media(pointer:coarse){.pw-use kbd{display:none}.pw-use{padding:5px 10px}}
.pw-touch [data-action=Pause],.pw-touch [data-action=Scores]{position:absolute;top:max(4px,env(safe-area-inset-top));left:calc(max(8px,env(safe-area-inset-left)) + 48px)}
.pw-touch [data-action=Scores]{left:calc(max(8px,env(safe-area-inset-left)) + 96px)}
@media(pointer:coarse){
.pw-root *{box-sizing:border-box}
.pw-root{height:100dvh}
.pw-rail{top:48px;bottom:6px;left:env(safe-area-inset-left);width:70px;padding:4px 0;gap:2px;border-radius:13px;overflow:auto}
.pw-rail button{min-height:44px;width:62px;padding:4px!important;font-size:10px}.pw-rail button i{font-size:17px}.pw-rail hr{margin:0}
.pw-logo{left:calc(76px + env(safe-area-inset-left));font-size:26px;top:10px}
.pw-wallet{right:max(12px,env(safe-area-inset-right));top:52px;font-size:14px}
.pw-panel{overscroll-behavior:contain;touch-action:pan-y}
.pw-side,.pw-side.slim{left:calc(76px + env(safe-area-inset-left));top:48px;width:min(470px,calc(100% - 92px - env(safe-area-inset-left) - env(safe-area-inset-right)));max-height:calc(100% - 58px - env(safe-area-inset-bottom))!important}
.pw-menu:has(.pw-go) .pw-side{width:min(300px,calc(100% - 92px - env(safe-area-inset-left)));max-height:calc(100% - 142px)!important}
.pw-go{bottom:max(12px,env(safe-area-inset-bottom));right:max(14px,env(safe-area-inset-right));padding:6px 14px!important}.pw-go i{width:38px;height:38px}
.pw-root .pw-box{max-height:100%;width:min(490px,100%)}
.pw-hud{inset:max(4px,env(safe-area-inset-top)) max(8px,env(safe-area-inset-right)) max(4px,env(safe-area-inset-bottom)) max(8px,env(safe-area-inset-left))}
.pw-hud{font:750 12px/1.15 system-ui,sans-serif;font-variant-numeric:tabular-nums}
.pw-hud .pw-pill{background:#14202dec;color:#fffdf6;border:1px solid #ffffff52;border-radius:9px;box-shadow:0 2px 4px #0e17284d}
.pw-top{top:0;gap:7px;padding:4px 9px}.pw-top b,.pw-clock{font-size:16px}.pw-clock{min-width:40px}.pw-top .t0{color:#87b5ff}.pw-top .t1{color:#ff979b}.pw-pips i{width:6px;height:6px;border:0}
.pw-hud .pw-role{top:31px;padding:3px 8px;font-size:10px;color:#ffda75}.pw-hud .pw-role.def{color:#d3ff45}.pw-zones{top:53px;gap:4px}.pw-zone{width:28px;font-size:11px;padding:2px 0}
.pw-vitals{position:absolute;left:4px;bottom:106px;display:flex;flex-direction:column;align-items:flex-start;gap:3px}
.pw-hud .pw-hp,.pw-hud .pw-pts{position:static;min-width:0;margin:0}
.pw-hud .pw-hp{width:108px;padding:4px 7px;border-left:3px solid #c7f567}.pw-hud .pw-hp b{color:#fffdf6;font-size:17px}.pw-hud .pw-hp b.low{color:#ff8585}
.pw-hp span,.pw-ammo span{font:750 9px/1.2 system-ui;opacity:.88;letter-spacing:.03em}
.pw-bar,.pw-arm{border:0;height:3px;margin:3px 0;background:#ffffff38}
.pw-hud .pw-pts{order:-1;font-size:10px;padding:2px 6px;color:#ffe079}.pw-pts small{font-size:8px}
.pw-hud .pw-ammo{min-width:0;right:max(12px,env(safe-area-inset-right));bottom:calc(max(12px,env(safe-area-inset-bottom)) + 150px);padding:4px 7px;text-align:right}.pw-ammo b{font-size:20px}.pw-ammo em{font-size:12px}
.pw-feed{top:50px;right:2px;max-width:24%}.pw-feed div{font:700 10px/1.1 system-ui}.pw-feed div:nth-child(n+3){display:none}
.pw-banner{top:24%;max-width:70%;white-space:normal}.pw-banner b{font:italic 950 22px/1 system-ui;-webkit-text-stroke:0;text-shadow:0 1px 4px #111}.pw-banner span,.pw-hint{font:650 10px/1.25 system-ui;background:#14202dcc}
.pw-hint{bottom:3px;width:min(34%,250px);white-space:normal}
.pw-shop{bottom:42px;z-index:2}.pw-shop.on{pointer-events:auto}.pw-shop .pw-item{min-height:44px;min-width:92px;display:grid;place-content:center;padding:4px 10px;border-color:#e6ff75}.pw-item b{font-size:11px}.pw-item span,.pw-shoptitle,.pw-shop kbd{display:none}.pw-hud .pw-item em{color:#d3ff45}.pw-hud .pw-item.no em{color:#ffa798}
.pw-hud .pw-board div.me{color:#14202d}
.pw-board{min-width:0;width:min(370px,95%);z-index:3}
}
@media(pointer:coarse) and (max-height:500px){
.pw-hp span{display:none}
}
/* Tablets: the same layout at thumb size for a big screen. */
@media(pointer:coarse) and (min-height:700px) and (min-width:700px){
.pw-root .pw-touch button{min-width:58px;min-height:58px}.pw-touch svg{width:28px;height:28px}
.pw-actions{grid-template-columns:58px 58px 84px;grid-template-rows:58px 58px 58px;gap:8px}
.pw-root .pw-actions [data-action=Fire]{width:84px;height:84px}.pw-touch [data-action=Fire] svg{width:32px;height:32px}
.pw-root .pw-touch [data-action=move]{width:124px;height:124px}.pw-touch [data-action=move] i{width:46px;height:46px}
.pw-touch [data-action=Pause]{left:calc(max(8px,env(safe-area-inset-left)) + 56px)}.pw-touch [data-action=Scores]{left:calc(max(8px,env(safe-area-inset-left)) + 120px)}
.pw-hud{font-size:15px}.pw-top b,.pw-clock{font-size:21px}.pw-hud .pw-role{top:38px;font-size:13px}.pw-zones{top:64px}.pw-zone{width:36px;font-size:14px}
.pw-vitals{bottom:150px}.pw-hud .pw-hp{width:150px}.pw-hud .pw-hp b{font-size:24px}.pw-hp span,.pw-ammo span{font-size:12px}
.pw-hud .pw-ammo{bottom:calc(max(12px,env(safe-area-inset-bottom)) + 206px)}.pw-ammo b{font-size:28px}.pw-ammo em{font-size:16px}
.pw-feed div{font-size:13px}.pw-banner b{font-size:30px}.pw-banner span,.pw-hint{font-size:13px}
}
@media(pointer:coarse) and (orientation:portrait){
.pw-side,.pw-side.slim{top:86px;max-height:calc(100% - 100px)!important}
.pw-modes,.pw-cards{grid-template-columns:repeat(2,minmax(0,1fr))}
.pw-menu:has(.pw-go) .pw-side{max-height:calc(100% - 180px)!important}
.pw-hint{bottom:118px;width:44%}.pw-board div{grid-template-columns:1fr 48px 24px 24px 39px}
}
/* ---- Phone pass (2026-12-05) ---- */
/* A hidden touch button (Power without a power, Grenade without a grenade) really goes. */
.pw-root .pw-touch button[hidden]{display:none}
/* The site's "Full screen" chip: top right under the coins, never over PLAY (only while Bang Paws is on screen). */
html body .game-fullscreen-prompt.is-chip:not([data-safari-lift]){top:calc(max(8px,env(safe-area-inset-top,0px)) + 50px);bottom:auto}
@media(pointer:coarse){
/* Thumb-size hit areas (44 px) where the drawing stays smaller: a transparent pad around it. */
.pw-root .ph-me-edit{position:relative}
.pw-root .ph-me-edit::after{content:"";position:absolute;inset:-11px -9px}
.pw-root .ph-change::before{content:"";position:absolute;inset:-7px -4px -5px}
.pw-root .ph-hero-chip::before{content:"";position:absolute;inset:-8px -4px -3px}
.pw-root button.ph-gift{min-height:44px}
.pw-root .ph-up button{min-height:44px;box-sizing:border-box;justify-content:center}
.pw-root .ph-sheet-top .ph-tabs button{min-height:44px}
.pw-root .pw-sub button,.pw-root .pw-row button{min-height:44px}
/* The scoreboard (hold Scores): one line per player, long names cut with … instead of running into ANIMAL. */
.pw-board{width:min(470px,96%)}
.pw-board div{grid-template-columns:minmax(0,1fr) 84px 22px 22px 38px;gap:6px}
.pw-board div span{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
}
/* Phones on their side (iPhone SE 667x375 and up): the shop's three tabs and the coins fit on one row (the site's own
   corner buttons are not shown on touch screens, so the sheet needs no room for them), and the lobby's challenge and
   PLAY's mode line wrap to a second line instead of being cut. */
@media(pointer:coarse) and (max-height:520px){
.pw-root .ph-sheet-top{padding-right:8px}
.pw-root .ph-goal-txt b{white-space:normal;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;line-height:1.15}
.pw-root .ph-play-txt small{white-space:normal;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;line-height:1.15}
/* PLAY may now be a line taller: the animal's LOADOUT chip stands a little higher, clear of CHANGE. */
.pw-root .ph-hero{bottom:124px}
}
/* ?touch=v2 (pawsNext.ts): the move stick floats under the left thumb (resting faintly in the corner as a hint) and the
   right thumb cluster is bigger with real gaps: FIRE 88 px, the others 54 px, Jump clear of FIRE. */
.pw-root .pw-touch.v2 [data-action=move]{width:96px;height:96px;opacity:.4;transition:opacity .15s}
.pw-root .pw-touch.v2 [data-action=move].live{opacity:1;transition:none}
.pw-touch.v2 [data-action=move] i{width:40px;height:40px}
.pw-touch.v2 .pw-actions{grid-template-columns:54px 54px 88px;grid-template-rows:54px 54px 54px;gap:10px 14px}
.pw-root .pw-touch.v2 .pw-actions button{min-width:54px;min-height:54px}
.pw-root .pw-touch.v2 .pw-actions [data-action=Fire]{width:88px;height:88px}
.pw-touch.v2 .pw-actions svg{width:24px;height:24px}
.pw-touch.v2 [data-action=Fire] svg{width:31px;height:31px}
.pw-root .pw-touch.v2 .pw-actions [data-action=Use]{bottom:64px;width:58px;height:58px}
@media(pointer:coarse){
.pw-t2 .pw-vitals{bottom:116px}
.pw-t2 .pw-hud .pw-ammo{bottom:calc(max(12px,env(safe-area-inset-bottom)) + 192px)}
}
@media(pointer:coarse) and (min-height:700px) and (min-width:700px){
.pw-root .pw-touch.v2 [data-action=move]{width:130px;height:130px}.pw-touch.v2 [data-action=move] i{width:50px;height:50px}
.pw-touch.v2 .pw-actions{grid-template-columns:66px 66px 108px;grid-template-rows:66px 66px 66px;gap:12px 16px}
.pw-root .pw-touch.v2 .pw-actions button{min-width:66px;min-height:66px}
.pw-root .pw-touch.v2 .pw-actions [data-action=Fire]{width:108px;height:108px}
.pw-touch.v2 .pw-actions svg{width:30px;height:30px}.pw-touch.v2 [data-action=Fire] svg{width:38px;height:38px}
.pw-t2 .pw-vitals{bottom:156px}
.pw-t2 .pw-hud .pw-ammo{bottom:calc(max(12px,env(safe-area-inset-bottom)) + 240px)}
}
