/* Simpler touch controls with a right-hand LOOK stick (Adventure first person + Drip Ops). Loaded last. */
.look-stick{display:none!important}
html.wack-ui body .action-pad .special:not(.ready),.action-pad .special:not(.ready){visibility:hidden}
@media (pointer:coarse){
 html[data-adventure=true][data-adv-view=fp] body.playing .look-stick{display:block!important;left:auto!important;right:max(16px,env(safe-area-inset-right))!important;
  bottom:max(16px,env(safe-area-inset-bottom));width:clamp(84px,calc(96px * var(--control-scale,1)),112px);height:clamp(84px,calc(96px * var(--control-scale,1)),112px);touch-action:none}
 html[data-adventure=true][data-adv-view=fp] body.playing .look-stick.live{border-color:#3bb7ec!important}
 html[data-adventure=true][data-adv-view=fp] body.playing .action-pad{--action-size:46px!important;right:calc(max(16px,env(safe-area-inset-right)) + clamp(84px,calc(96px * var(--control-scale,1)),112px) + 12px)!important}
 html[data-adventure=true][data-adv-view=fp] body.playing .action-pad button{width:46px!important;height:46px!important;min-height:44px!important;font-size:9.5px!important}
}
/* ---- Drip Ops: move stick (left), LOOK stick (right), FIRE beside it, three small buttons above it ---- */
.ops-rstick{position:absolute;right:max(18px,env(safe-area-inset-right));bottom:max(22px,env(safe-area-inset-bottom));width:128px;height:128px;border-radius:50%;
 background:#ffffff14;border:2px solid #ffffff55;pointer-events:auto;touch-action:none}
.ops-rstick i{position:absolute;left:calc(50% - 26px);top:calc(50% - 26px);width:52px;height:52px;border-radius:50%;background:#3bb7ecc0;border:2px solid #fff9;pointer-events:none}
.ops-rstick span{position:absolute;left:0;right:0;bottom:-18px;text-align:center;font:800 10px/1 system-ui,sans-serif;letter-spacing:.16em;color:#fffc;text-shadow:0 1px 3px #000;pointer-events:none}
.ops-rstick.live{background:#3bb7ec22;border-color:#3bb7ec}
html.wack-ui body .ops-rstick{background:radial-gradient(circle,#2a2338 0 58%,#1d1828 59%)!important;border:4px solid var(--wk-ink,#121017)!important;box-shadow:3px 4px 0 var(--wk-ink,#121017)}
html.wack-ui body .ops-rstick i{background:var(--wk-c,#3bb7ec)!important;border:3px solid var(--wk-ink,#121017)!important}
.ops-move{width:50%!important}
.ops-btns{position:absolute!important;inset:auto 0 0 auto!important;width:0!important;height:0!important;display:block!important;pointer-events:none}
html body .ops-btns button{position:absolute;pointer-events:auto;width:52px!important;height:52px!important;border-radius:50%!important;font-size:12px!important;padding:0}
html body .ops-btns button.fire{width:92px!important;height:92px!important;border-radius:50%!important;font-size:18px!important;right:calc(max(18px,env(safe-area-inset-right)) + 142px);bottom:max(30px,env(safe-area-inset-bottom))}
html body .ops-btns button[data-k=jump]{right:calc(max(18px,env(safe-area-inset-right)) + 0px);bottom:calc(max(22px,env(safe-area-inset-bottom)) + 150px)}
html body .ops-btns button[data-k=swap]{right:calc(max(18px,env(safe-area-inset-right)) + 60px);bottom:calc(max(22px,env(safe-area-inset-bottom)) + 150px)}
html body .ops-btns button[data-k=reload]{right:calc(max(18px,env(safe-area-inset-right)) + 120px);bottom:calc(max(22px,env(safe-area-inset-bottom)) + 150px);font-size:10px!important}
html body .ops-btns button[data-k=zoom]{right:calc(max(18px,env(safe-area-inset-right)) + 160px);bottom:calc(max(30px,env(safe-area-inset-bottom)) + 102px);width:46px!important;height:46px!important;font-size:10px!important}
html body .ops-btns button[hidden]{display:none!important}
@media (max-height:430px){.ops-rstick{width:112px;height:112px}
 html body .ops-btns button.fire{width:80px!important;height:80px!important;right:calc(max(18px,env(safe-area-inset-right)) + 126px)}
 html body .ops-btns button[data-k=jump],html body .ops-btns button[data-k=swap]{bottom:calc(max(22px,env(safe-area-inset-bottom)) + 130px)}
 html body .ops-btns button[data-k=reload]{bottom:calc(max(22px,env(safe-area-inset-bottom)) + 130px)}}

/* ---- Keep the play area clear on touch screens: only what you need mid-fight stays on screen ---- */
@media (pointer:coarse){
 /* account + controls live in MENU; the touch buttons already show what's ready */
 body.playing #accountButton,body.playing #alwaysControls{display:none!important}
 body.playing #combatRecovery,body.playing #combatState,body.playing #matchSaveStatus{display:none!important}
 /* Adventure: objective as one small pill, no paragraph */
 body.playing .adventure-notice{padding:4px 12px!important;min-height:0!important;max-width:min(320px,60vw)!important;background:#0b0e16b3!important}
 body.playing .adventure-notice #adventureHint{display:none!important}
 body.playing .adventure-notice #adventureObjective{font-size:12px!important;line-height:1.25!important}
 /* map: small, no help text; view + invert as tiny pills */
 body.playing .adventure-navigation{width:auto!important;padding:4px!important;background:#0b0e1699!important}
 body.playing .adventure-navigation .adv-map-wrap{width:76px!important}
 body.playing .adventure-navigation>span,body.playing .adv-view-hint{display:none!important}
 body.playing .adv-view-toggle{font-size:9px!important;padding:4px 6px!important;margin-top:4px!important;max-width:76px;line-height:1.15;border-width:1.5px!important}
}
@media (pointer:coarse) and (max-height:500px){
 /* landscape phones: tuck the map into the top-right corner, above the look stick */
 body.playing .adventure-navigation{top:calc(max(8px,env(safe-area-inset-top)) + 40px)!important;bottom:auto!important}
 body.playing .adventure-navigation .adv-map-wrap{width:64px!important}
 body.playing .adv-view-toggle{max-width:64px}
}
/* Drip Ops: the first-time hint is small, sits low, and fades on its own */
.ops-thint{top:auto!important;bottom:calc(max(22px,env(safe-area-inset-bottom)) + 150px)!important;font-size:11px!important;padding:6px 10px!important;max-width:min(360px,60vw)!important;animation:opsHintFade 6s forwards}
@keyframes opsHintFade{0%,75%{opacity:1}100%{opacity:0;visibility:hidden}}
/* while playing on a touch screen, the top bar becomes two small corner buttons instead of a full-width strip */
@media (pointer:coarse){
 html body.playing .topline{background:transparent!important;border-bottom:0!important;box-shadow:none!important;backdrop-filter:none!important;left:auto!important;width:auto!important;pointer-events:none}
 html body.playing .topline .brand,html body.playing .topline .edition{display:none!important}
 html body.playing .topline .utilities button{min-height:30px!important;padding:5px 9px!important;font-size:10px!important}
}
@media (pointer:coarse) and (max-height:500px){html body.playing .hud{transform:scale(.8);transform-origin:top left}}

/* ---- Adventure HUD: health panel and the floor/timer pill never overlap (narrow screens) ---- */
@media (max-width:1000px){
 html[data-adventure=true] body.playing .hud{display:flex!important;align-items:flex-start;gap:10px!important}
 html[data-adventure=true] body.playing .hud .fighter-hud.player{flex:0 1 300px;min-width:0}
 html[data-adventure=true] body.playing .hud .round-hud{flex:0 0 auto;min-width:0!important}
 html[data-adventure=true] body.playing .hud .fighter-hud.enemy{flex:0 1 260px;min-width:0;margin-left:auto}
}
/* first person: the area-name banner sits above the crosshair, smaller, so it never hides what you aim at */
html[data-adventure=true][data-adv-view=fp] body.playing .callout{top:24%!important;font-size:clamp(26px,4.4vw,54px)!important}
/* portrait phones: keep the objective on one line */
@media (max-width:520px){html[data-adventure=true] body.playing #adventureDrip{display:none!important}
 html[data-adventure=true] body.playing .adventure-notice #adventureObjective{white-space:nowrap}}
/* one-tap fullscreen (touch screens) */
.quick-fullscreen{min-width:34px;font-size:16px!important;line-height:1;padding:5px 8px!important}
.quick-fullscreen[aria-pressed=true]{opacity:.7}
/* sign-in gate: PLAY NOW first, account options below */
.acct-gate .acct-playnow{width:100%;min-height:52px;font-size:20px!important;letter-spacing:.06em;margin:6px 0 4px}
.acct-gate .acct-playnote{margin:2px 0 10px!important;text-align:center}
.acct-gate .acct-divider{margin:10px 0 6px;text-align:center;font-size:11px;letter-spacing:.18em;opacity:.75;display:flex;align-items:center;gap:10px}
.acct-gate .acct-divider::before,.acct-gate .acct-divider::after{content:'';flex:1;height:1px;background:currentColor;opacity:.4}
