/* On-foot holograms only: static outlines, no blur, no extra render passes. */
#ofIdentity,#ofAttack{--cut:12px;--shape:polygon(var(--cut) 0,100% 0,100% calc(100% - var(--cut)),calc(100% - var(--cut)) 100%,0 100%,0 var(--cut));display:none;position:fixed;z-index:12;color:#effcff;font:700 12px/1.3 var(--f-head,system-ui);letter-spacing:.04em;box-sizing:border-box;isolation:isolate}
body.lp-on.lp-foot #ofIdentity:not([hidden]){display:flex}
#ofIdentity::before{content:'';position:absolute;inset:0;z-index:-2;background:linear-gradient(125deg,#4fd8ff 0 34%,#ff4fb8 64% 100%);clip-path:var(--shape)}
#ofIdentity::after{content:'';position:absolute;inset:3px;z-index:-1;background:linear-gradient(120deg,#071628f5,#160e2bf5);clip-path:var(--shape);border:1px solid #a8efff88}
#ofIdentity{right:calc(env(safe-area-inset-right,0px) + 14px);top:calc(env(safe-area-inset-top,0px) + 24px);width:350px;min-height:156px;gap:14px;padding:14px;align-items:center}
.of-avatar-frame{--oct:polygon(26% 0,74% 0,100% 26%,100% 74%,74% 100%,26% 100%,0 74%,0 26%);position:relative;flex:none;width:100px;height:108px;padding:7px;clip-path:var(--oct);background:linear-gradient(135deg,#ff4fb8 0 47%,#4fd8ff 53%);isolation:isolate}
.of-avatar-frame::before{content:'';position:absolute;inset:2px;clip-path:var(--oct);background:#061224;z-index:-1}
.of-avatar-frame::after{content:'';position:absolute;inset:4px;clip-path:var(--oct);background:linear-gradient(135deg,#4fd8ff,#ff4fb8);z-index:0}
.of-avatar{position:relative;z-index:1;width:100%;height:100%;clip-path:var(--oct);border:1px solid #4fd8ff;display:grid;place-items:center;font-size:40px;text-shadow:1px 2px #071221}
.of-info{min-width:0;flex:1}.of-name{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:16px;line-height:20px;color:#fff}.of-level{display:block;color:#ffdc65;font-size:12px;line-height:18px}
.of-info label{display:block;font-size:9px;line-height:12px;height:12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;margin-top:4px}.of-balance{display:block;color:#bdfbff;font-size:11px;line-height:16px;height:16px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;margin-top:5px}
#ofIdentity progress{appearance:none;-webkit-appearance:none;display:block;width:100%;height:8px;border:1px solid #4fd8ff77;background:#15273c;border-radius:0}
#ofIdentity progress::-webkit-progress-bar{background:#15273c}#ofIdentity progress::-webkit-progress-value{background:#7dff9a}#ofIdentity progress::-moz-progress-bar{background:#7dff9a}#ofIdentity .of-xp::-webkit-progress-value{background:#ffdc65}#ofIdentity .of-xp::-moz-progress-bar{background:#ffdc65}#ofIdentity .of-super::-webkit-progress-value{background:linear-gradient(90deg,#4fd8ff,#ff4fb8)}#ofIdentity .of-super::-moz-progress-bar{background:linear-gradient(90deg,#4fd8ff,#ff4fb8)}
body.lp-on.lp-foot #hud #minimap{border:2px solid #4fd8ff;box-shadow:0 0 0 3px #12334bcc,0 0 12px #4fd8ff66}
body.lp-on.lp-foot #lpEmote{left:calc(env(safe-area-inset-left,0px) + 14px);bottom:calc(env(safe-area-inset-bottom,0px) + 14px);backdrop-filter:none;-webkit-backdrop-filter:none}
body.lp-on.lp-foot #lpWheel{bottom:calc(env(safe-area-inset-bottom,0px) + 66px)}
/* Portrait: stacked attacks above a separate full-width jump. Left thumb stays free. */
body.lp-touch.lp-on.lp-foot #lpJump{right:calc(env(safe-area-inset-right,0px) + 122px)!important;bottom:calc(env(safe-area-inset-bottom,0px) + 14px)!important;width:92px!important;height:60px!important;clip-path:polygon(12px 0,100% 0,100% calc(100% - 12px),calc(100% - 12px) 100%,0 100%,0 12px)!important;border:2px solid #4fd8ff!important;background:linear-gradient(115deg,#192b48,#42204a)!important;color:#fff!important;font-size:13px!important;box-shadow:inset 0 0 0 3px #ff4fb8!important}
/* Touch ATTACK: one neon octagon in the thumb corner, JUMP beside it. The ring fills with the SUPER meter; full = pink pulse. */
#ofAttack{display:none;right:calc(env(safe-area-inset-right,0px) + 14px);bottom:calc(env(safe-area-inset-bottom,0px) + 14px);width:98px;height:98px;padding:0;border:0;cursor:pointer;touch-action:none;-webkit-user-select:none;user-select:none;-webkit-tap-highlight-color:transparent;--oct:polygon(29% 0,71% 0,100% 29%,100% 71%,71% 100%,29% 100%,0 71%,0 29%);clip-path:var(--oct);background:conic-gradient(#ff4fb8 calc(var(--charge,0) * 360deg),#2a3c5a 0);flex-direction:column;align-items:center;justify-content:center;gap:2px}
body.lp-touch.lp-on.lp-foot #ofAttack:not([hidden]){display:flex}
#ofAttack .of-ring{position:absolute;inset:4px;z-index:-1;clip-path:var(--oct);background:linear-gradient(135deg,#4fd8ff,#ff4fb8)}#ofAttack::before{content:'';position:absolute;inset:7px;z-index:-1;clip-path:var(--oct);background:radial-gradient(circle at 50% 40%,#1c2f55,#11132d 70%)}
#ofAttack b{font-size:15px;font-style:italic;letter-spacing:.08em;text-shadow:0 0 6px #4fd8ff}#ofAttack small{font-size:8px;color:#adefff;letter-spacing:.06em}
#ofAttack.on::before{background:radial-gradient(circle at 50% 40%,#552249,#2a0f2e 70%)}#ofAttack.on{transform:scale(.95)}
#ofAttack.super b{color:#ffd6f0;text-shadow:0 0 8px #ff4fb8}#ofAttack.super small{color:#ffdc65}#ofAttack.super .of-ring{animation:ofSuper 1s ease-in-out infinite alternate}
@keyframes ofSuper{from{filter:brightness(1)}to{filter:brightness(1.5)}}
/* Narrowest phones (< 360 px): shrink the right cluster so it never overlaps the 112 px stick. */
@media (max-width:359px){#ofAttack{width:84px;height:84px}body.lp-touch.lp-on.lp-foot #lpJump{right:calc(env(safe-area-inset-right,0px) + 104px)!important;width:76px!important;height:56px!important}}
body.lp-touch.lp-on.lp-foot #lpEmote{bottom:calc(env(safe-area-inset-bottom,0px) + 136px);height:44px;padding:0 8px;min-width:100px;font-size:10px}
body.lp-touch.lp-on.lp-foot #lpWheel{bottom:calc(env(safe-area-inset-bottom,0px) + 186px);max-height:calc(100dvh - 200px);overflow:auto}
body.lp-touch.lp-on.lp-foot #lpDrive{left:50%!important;right:auto!important;bottom:calc(env(safe-area-inset-bottom,0px) + 420px)!important;transform:translateX(-50%)!important}
@media (max-width:600px) and (orientation:portrait){#ofIdentity{width:202px;min-height:126px;padding:10px;gap:8px}.of-avatar-frame{width:58px;height:68px;padding:7px}.of-avatar{font-size:29px}.of-name{font-size:12px;line-height:16px}.of-level{font-size:10px;line-height:15px}.of-info label{font-size:7px;margin-top:3px}.of-balance{font-size:9px}body.lp-on.lp-foot #topbtns{left:calc(env(safe-area-inset-left,0px) + 12px)!important;top:calc(env(safe-area-inset-top,0px) + var(--bt) + var(--mm) + 22px)!important}}
/* Short landscape: train/hint/jump use the centre lane; right remains three stacked strikes. */
@media (max-height:500px) and (orientation:landscape){
  #ofIdentity{width:280px;min-height:100px;top:calc(env(safe-area-inset-top,0px) + 14px);padding:8px;gap:10px}.of-avatar-frame{width:72px;height:80px}.of-avatar{font-size:32px}.of-name{font-size:14px;line-height:17px}.of-level{font-size:10px;line-height:14px}.of-info label{font-size:8px;line-height:10px;height:10px;margin-top:2px}.of-balance{font-size:10px;line-height:14px;height:14px;margin-top:3px}#ofIdentity progress{height:6px}
  body.lp-touch.lp-on.lp-foot #lpDrive{bottom:calc(env(safe-area-inset-bottom,0px) + 214px)!important;font-size:9px!important;padding:4px 7px!important}body.lp-touch.lp-on.lp-foot #lpDrive b{font-size:11px!important}
  body.lp-touch.lp-on.lp-foot #topbtns{left:calc(env(safe-area-inset-left,0px) + 12px)!important;top:calc(env(safe-area-inset-top,0px) + var(--bt) + var(--mm) + 22px)!important}
}
@media (prefers-reduced-motion:reduce){#ofIdentity,#ofAttack,#ofAttack .of-ring{animation:none;transition:none}}

/* p63 mobile: keep the on-foot identity card from covering the drive view or top buttons on phones */
@media (max-height:500px) and (orientation:landscape){
  #ofIdentity{width:220px;min-height:84px;padding:6px;gap:8px;top:calc(env(safe-area-inset-top,0px) + 8px)}
  .of-avatar-frame{width:52px;height:58px}
  .of-name{font-size:12px;line-height:15px}
}
@media (orientation:portrait) and (max-width:600px){
  body.lp-touch.lp-on.lp-foot #topbtns{max-width:calc(100vw - 24px)!important}
}
/* p77 iOS: cheaper walking HUD on phones / tablets, same layout. No backdrop blur under the hologram chips (the panel is ~65% opaque,
   so the 2 px blur is invisible but costs a full-size offscreen layer per chip on WebKit), static scanlines instead of a forever
   background-position animation, and every looping HUD animation is paused while the in-game menu covers the screen. */
body.tier-mobile .lpHolo,body.ui-touch .lpHolo,body.tier-mobile #lpEmote,body.ui-touch #lpEmote{-webkit-backdrop-filter:none!important;backdrop-filter:none!important}
body.tier-mobile .lpHolo::after,body.ui-touch .lpHolo::after{animation:none}
body.holo-open.ui-touch .lpHolo,body.holo-open.ui-touch .lpHolo::after,body.holo-open.ui-touch #ofAttack .of-ring,body.holo-open.ui-touch #wpnHud *,
body.holo-open.tier-mobile .lpHolo,body.holo-open.tier-mobile .lpHolo::after,body.holo-open.tier-mobile #ofAttack .of-ring,body.holo-open.tier-mobile #wpnHud *{animation-play-state:paused!important}
/* p77: the hologram menu unfolds in 0.24 s on touch screens (was 0.42 s), same animation */
@media (prefers-reduced-motion:no-preference){body.ui-touch #holo.opening .holo-frame,body.tier-mobile #holo.opening .holo-frame{animation-duration:.24s!important}}
/* p80: the HUD notification bell also drops its live backdrop blur on phones / tablets (same look: its fill is 70% opaque) */
body.tier-mobile .sx-bell,body.ui-touch .sx-bell{-webkit-backdrop-filter:none!important;backdrop-filter:none!important}
