/* Panda Arena 3D (arena3d.html, assets/js/pages/arena3d.js). The page also loads assets/css/arena.css:
   the lobby, HUD, button editor, scoreboard and podium use its pza- classes unchanged.
   Only what the 3D game adds is here. Prefix pz3- (no other class uses it). */

/* two canvases fill the stage: the WebGL picture, and over it the 2D one for name tags / minimap */
.pz3-stage { background: #1c2a22; }
.pz3-over { pointer-events: none; }

/* "Sneaking" / "Hidden in the bush": a small line at the bottom middle */
.pz3-status { position: absolute; left: 50%; bottom: calc(env(safe-area-inset-bottom, 0px) + 44px); transform: translateX(-50%); max-width: 70%; padding: 5px 12px; border-radius: 999px; background: rgba(10, 20, 14, .62); font-size: 13px; font-weight: 800; line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; pointer-events: none; }
.pz3-status[hidden] { display: none; }
.pza-touch .pz3-status { bottom: calc(env(safe-area-inset-bottom, 0px) + 12px); }
.pza-editmode .pz3-status { display: none; }

/* the joystick's inner ring: keep the knob inside it to sneak (no footsteps) */
/* the feed is small and light: only lines about me, 2 at a time */
.pz3-stage .pza-fl { font-size: 12px; padding: 3px 8px; margin: 0 0 3px; background: rgba(10, 20, 14, .4); }
.pz3-stage .pza-fl-me { background: rgba(255, 196, 0, .62); }
.pz3-stage .pza-fl-hurt { background: rgba(200, 40, 60, .6); }
/* the aim stick (second thumb) and the dot that shows the aim on FIRE */
.pz3-stage .pz3-aim { border-color: rgba(255, 120, 125, .8); background: rgba(230, 57, 70, .16); }
.pz3-stage .pz3-aim-knob { background: rgba(255, 120, 125, .9); }
.pz3-fire-dot { position: absolute; left: 50%; top: 50%; width: 26px; height: 26px; margin: -13px 0 0 -13px; border-radius: 50%; background: rgba(255, 255, 255, .9); opacity: 0; pointer-events: none; }
.pza-fire.pz3-aiming .pz3-fire-dot { opacity: 1; }
.pza-editmode .pz3-aim { display: none; }
/* the crosshair: where the paint will fly */
.pz3-xh { position: absolute; z-index: 3; width: 26px; height: 26px; margin: -13px 0 0 -13px; border: 2px solid rgba(255, 255, 255, .9); border-radius: 50%; box-shadow: 0 0 0 1px rgba(0, 0, 0, .45); pointer-events: none; }
.pz3-xh::after { content: ''; position: absolute; left: 50%; top: 50%; width: 4px; height: 4px; margin: -2px 0 0 -2px; border-radius: 50%; background: #ff4d5a; }
.pz3-xh[hidden] { display: none; }
/* (unused now) faint "Aim" ring */
.pz3-stage .pza-fire.pz3-aimhint { background: rgba(255, 255, 255, .08); border: 3px dashed rgba(255, 255, 255, .45); box-shadow: none; font-size: 13px; font-weight: 700; color: #fff; opacity: .85; }
.pz3-stage .pza-fire.pz3-aimhint.pza-on { transform: none; background: rgba(230, 57, 70, .22); border-color: rgba(255, 120, 125, .8); }
.pz3-stage .pza-joy::after { content: ''; position: absolute; left: 50%; top: 50%; width: 46%; height: 46%; transform: translate(-50%, -50%); border-radius: 50%; border: 2px dashed rgba(255, 255, 255, .5); box-sizing: border-box; }

/* ⚙ panel: Graphics (3D Low / 3D High) and Camera (Behind / Fixed / Top view) */
.pz3-set { display: flex; align-items: center; gap: 6px; margin: 0 0 8px; }
.pz3-set-l { flex: none; width: 66px; font-size: 13px; font-weight: 800; }
.pz3-set-b { flex: 1; min-width: 0; min-height: 40px; border: 2px solid rgba(255, 255, 255, .5); border-radius: 12px; padding: 4px 6px; background: transparent; color: #fff; font-size: 13px; font-weight: 800; white-space: nowrap; cursor: pointer; }
.pz3-set-b[aria-checked="true"] { background: #ffd23f; border-color: #ffd23f; color: #1d3b24; }
.pza-short .pz3-set { margin-bottom: 6px; }
.pza-short .pz3-set-l { width: 58px; font-size: 12px; }
.pza-short .pz3-set-b { min-height: 36px; font-size: 12px; padding: 2px 4px; }

/* podium: the pandas are drawn in 3D and dance by themselves */
.pz3-pod-3d { line-height: 0; }

/* lobby: no WebGL / link to the 2D game */
.pz3-nogl { padding-top: 22px; }
.pz3-go-a { box-sizing: border-box; text-align: center; text-decoration: none; }
.pz3-link { color: #fff; font-weight: 800; text-decoration: underline; }

/* build 14, the settings card: two tabs (Buttons / Sound) */
.pz3-tabs { display: flex; gap: 6px; margin: 6px 0 8px; }
.pz3-tab { flex: 1; min-height: 40px; border: 2px solid rgba(255, 255, 255, .5); border-radius: 12px; padding: 4px 6px; background: transparent; color: #fff; font-size: 14px; font-weight: 800; cursor: pointer; }
.pz3-tab[aria-selected="true"] { background: #ffd23f; border-color: #ffd23f; color: #1d3b24; }
.pz3-ed-body[hidden] { display: none; }
/* Sound: one slider a row (Master, Effects, Music, Voice chat) */
.pz3-vol { display: flex; align-items: center; gap: 8px; margin: 0 0 4px; font-size: 13px; font-weight: 800; }
.pz3-vol-l { flex: none; width: 76px; }
.pz3-vol-n { flex: none; width: 40px; text-align: right; font-variant-numeric: tabular-nums; }
.pz3-vol .pza-ed-range { height: 36px; }
.pz3-snd .pz3-set { margin-top: 4px; }
.pz3-snd .pz3-set-l { width: 84px; }
.pz3-snd-note { margin: 0 0 8px; }
.pz3-muteall[aria-pressed="true"] { background: #1f9d55; }
.pza-short .pz3-tabs { margin: 4px 0 6px; }
.pza-short .pz3-tab { min-height: 36px; font-size: 13px; }
.pza-short .pz3-vol { margin-bottom: 0; }
.pza-short .pz3-vol .pza-ed-range { height: 30px; }
.pza-short .pz3-snd-note { display: none; }

/* build 14, voice chat: the notice before the mic first goes on, and a player's menu (scoreboard) */
.pz3-vn { position: absolute; inset: 0; z-index: 9; display: flex; align-items: center; justify-content: center; background: rgba(0, 0, 0, .5); padding: 12px; box-sizing: border-box; touch-action: auto; }
.pz3-vn[hidden] { display: none; }
.pz3-vn-card { width: min(380px, 100%); text-align: center; }
.pz3-vn-t { margin: 0 0 8px; font-size: 16px; font-weight: 800; line-height: 1.35; }
.pz3-vn-s { margin: 0 0 12px; font-size: 13px; line-height: 1.4; opacity: .85; }
.pz3-vn-row { display: flex; gap: 8px; }
.pz3-pm-list { display: grid; gap: 8px; }
.pz3-vn-b { flex: 1; min-height: 46px; border: 0; border-radius: 12px; padding: 6px 12px; font-size: 15px; font-weight: 800; color: #fff; background: rgba(255, 255, 255, .16); cursor: pointer; }
.pz3-vn-ok { background: #ffd23f; color: #1d3b24; }
.pz3-vn-danger { background: #c62f3b; }
/* scoreboard: a real player's row can be tapped (Mute / Report / Block); Mute all voices */
.pz3-tap { cursor: pointer; }
.pz3-tap:active td { background: rgba(255, 255, 255, .12); }
.pz3-more { opacity: .6; font-weight: 900; }
.pz3-vline { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.pz3-ma { min-height: 36px; border: 0; border-radius: 999px; padding: 4px 12px; font-size: 13px; font-weight: 800; color: #fff; background: rgba(255, 255, 255, .16); cursor: pointer; }
.pz3-ma[aria-pressed="true"] { background: #1f9d55; }