/* Lobby BATTLES home screen + Communicator drop-down (js/lobbyhome.js), after the owner's reference screenshot */

/* the battle mode cards */
.hm-scroll { overflow-y: auto; overflow-x: hidden; scrollbar-width: thin; scrollbar-color: #2fd21a #0a1c0a; }
.hm-scroll::-webkit-scrollbar { width: 4px; }
.hm-scroll::-webkit-scrollbar-track { background: #0a1c0a; }
.hm-scroll::-webkit-scrollbar-thumb { background: #2fd21a; border-radius: 2px; }
/* reference: the card has NO fill of its own (the green panel shows through), only a 2 px #59ff31 frame; title and
   text both in the Tanki green #59ff32 */
#stage .hm-card { border: 2px solid transparent; background: transparent; }
/* the frame itself is OGTanks' card frame (_h13bad87f0 = _h831009f75 9-slice): the 6 x 6 anti-aliased corner bitmap
   (emb h33991f94c, mirrored for the other three) and 2 px #59ff31 edges (emb h1db224f6a) -> img/ogtanks/lobby/card_frame.png */
#stage .hm-card::before { content: ''; position: absolute; left: -2px; top: -2px; right: -2px; bottom: -2px; pointer-events: none;
  border: 6px solid transparent; border-image: url(../img/ogtanks/lobby/card_frame.png) 6; }
#stage .hm-card > .hm-ico { left: 11px; top: 17px; width: 80px; height: 80px; }
#stage .hm-card > .hm-title { left: 108px; top: 13px; right: 190px; font: 17px/20px 'MyriadPro', Tahoma, sans-serif; color: #59ff32; white-space: nowrap; }
#stage .hm-card > .hm-text { left: 108px; top: 44px; right: 175px; font: 13px/17px 'MyriadPro', Tahoma, sans-serif; color: #59ff32; }

/* the page behind the lobby windows: the dark grey metal tile, like the reference (not the red loading artwork) */
body:not(.pre-login) { background: #1b1a19 url(../img/bg.png); }
#stage .hm-card > .hm-btn > .lbl { font-size: 14px !important; }

/* Communicator "General" channel button with its drop-down arrow (looks like the grey 3-slice button) */
#stage .hm-dd { height: 30px; cursor: pointer; }
#stage .hm-dd > .l, #stage .hm-dd > .c, #stage .hm-dd > .r { top: 0; bottom: 0; background-repeat: no-repeat; background-size: 100% 100%; }
/* (owner 2026-11-25 "look how clean the Play! button is - fix all 6 items, the pixels are bad, not the same") the chat
   row (News / General / Radio / EN / Again) and Group are drawn with the big Play! button art (img/big, 50 px tall,
   clean brushed metal), scaled to their 30 px: the small 30 px art looked muddy next to it */
#stage .hm-dd > .l { left: 0; width: 7px; background-image: url(../img/big/grey_up_left.png?v=20261125); }
#stage .hm-dd > .c { left: 7px; right: 7px; background-image: url(../img/big/grey_up_middle.png?v=20261125); }
#stage .hm-dd > .r { right: 0; width: 7px; background-image: url(../img/big/grey_up_right.png?v=20261125); }
#stage .hm-dd:hover > .l { background-image: url(../img/big/grey_over_left.png?v=20261125); }
#stage .hm-dd:hover > .c { background-image: url(../img/big/grey_over_middle.png?v=20261125); }
#stage .hm-dd:hover > .r { background-image: url(../img/big/grey_over_right.png?v=20261125); }
#stage .hm-dd.on > .l { background-image: url(../img/big/green_up_left.png?v=20261125); }
#stage .hm-dd.on > .c { background-image: url(../img/big/green_up_middle.png?v=20261125); }
#stage .hm-dd.on > .r { background-image: url(../img/big/green_up_right.png?v=20261125); }
#stage .b3.crisp.def > .l { background-image: url(../img/big/grey_up_left.png?v=20261125); }
#stage .b3.crisp.def > .c { background-image: url(../img/big/grey_up_middle.png?v=20261125); }
#stage .b3.crisp.def > .r { background-image: url(../img/big/grey_up_right.png?v=20261125); }
#stage .b3.crisp.def:hover > .l { background-image: url(../img/big/grey_over_left.png?v=20261125); }
#stage .b3.crisp.def:hover > .c { background-image: url(../img/big/grey_over_middle.png?v=20261125); }
#stage .b3.crisp.def:hover > .r { background-image: url(../img/big/grey_over_right.png?v=20261125); }
#stage .b3.crisp.def:active > .l { background-image: url(../img/big/grey_down_left.png?v=20261125); }
#stage .b3.crisp.def:active > .c { background-image: url(../img/big/grey_down_middle.png?v=20261125); }
#stage .b3.crisp.def:active > .r { background-image: url(../img/big/grey_down_right.png?v=20261125); }
#stage .b3.crisp.green > .l { background-image: url(../img/big/green_up_left.png?v=20261125); }
#stage .b3.crisp.green > .c { background-image: url(../img/big/green_up_middle.png?v=20261125); }
#stage .b3.crisp.green > .r { background-image: url(../img/big/green_up_right.png?v=20261125); }
#stage .b3.crisp.green:hover > .l { background-image: url(../img/big/green_over_left.png?v=20261125); }
#stage .b3.crisp.green:hover > .c { background-image: url(../img/big/green_over_middle.png?v=20261125); }
#stage .b3.crisp.green:hover > .r { background-image: url(../img/big/green_over_right.png?v=20261125); }
#stage .b3.crisp.green:active > .l { background-image: url(../img/big/green_down_left.png?v=20261125); }
#stage .b3.crisp.green:active > .c { background-image: url(../img/big/green_down_middle.png?v=20261125); }
#stage .b3.crisp.green:active > .r { background-image: url(../img/big/green_down_right.png?v=20261125); }
#stage .b3.crisp > .lbl, #stage .hm-dd > .lbl { color: #fff !important; text-shadow: 0 1px 1px #000; }
#stage .hm-dd > .lbl { text-shadow: 0 1px 1px #000; }
/* (owner 2026-11-25 "the pixels are still not fixed") the arrow is part of the button art: no extra shaded box pasted on
   it - a 1 px groove (dark + light line like the art's own bevel) and a white triangle centred in the 22 px slot */
#stage .hm-dd > .arrow { right: 6px; top: 6px; width: 22px; height: 18px; background: none;
  border-left: 1px solid rgba(0, 0, 0, .35); box-shadow: inset 1px 0 0 rgba(255, 255, 255, .12); }
#stage .hm-dd > .arrow::after { content: ''; position: absolute; left: 6px; top: 6px; border: 5px solid transparent; border-top: 6px solid #fff;
  border-bottom: 0; filter: drop-shadow(0 1px 0 rgba(0, 0, 0, .8)); }
#stage .hm-ddmenu { z-index: 20; background: #2c2c2c; border: 1px solid #7a7a7a; box-shadow: 0 3px 8px rgba(0, 0, 0, .6); }
#stage .hm-ddmenu > .it { position: relative; padding: 5px 8px; font: 12px 'MyriadPro', Tahoma, sans-serif; color: #fff; cursor: pointer; }
#stage .hm-ddmenu > .it:hover { background: #3f6b2e; }

/* ---------- OGTanks top bar art (2026-11-23, from their game script; see newclient/ogtanks-ui-map.md) ---------- */
/* small buttons (_h8fb97edcc / _h2268c91bb): one 28 x 29 SmallButtonBackground bitmap per state - up, over (the olive
   one; our old hover art was their pressed frame), down - instead of the 3-slice */
#stage .sbtn { background: url(../img/ogtanks/topbar/small_up.png) no-repeat; }
#stage .sbtn:hover { background-image: url(../img/ogtanks/topbar/small_over.png); }
#stage .sbtn:active { background-image: url(../img/ogtanks/topbar/small_down.png); }
#stage .sbtn > .l, #stage .sbtn > .c, #stage .sbtn > .r { display: none; }
/* Settings / Help / Sound: whole-button bitmaps with the icon drawn in (frames 2 up, 3 over, 4 down) */
#stage .sbtn.og-settings > img, #stage .sbtn.og-help > img, #stage .sbtn.og-sound > img { display: none; }
#stage .sbtn.og-settings { background-image: url(../img/ogtanks/topbar/settings_up.png); }
#stage .sbtn.og-settings:hover { background-image: url(../img/ogtanks/topbar/settings_over.png); }
#stage .sbtn.og-settings:active { background-image: url(../img/ogtanks/topbar/settings_down.png); }
#stage .sbtn.og-help { background-image: url(../img/ogtanks/topbar/help_up.png); }
#stage .sbtn.og-help:hover { background-image: url(../img/ogtanks/topbar/help_over.png); }
#stage .sbtn.og-help:active { background-image: url(../img/ogtanks/topbar/help_down.png); }
#stage .sbtn.og-sound, #stage .sbtn.og-sound:hover { background-image: url(../img/ogtanks/topbar/sound_on.png); }
#stage .sbtn.og-sound.off, #stage .sbtn.og-sound.off:hover { background-image: url(../img/ogtanks/topbar/sound_off.png); }
#stage .sbtn.og-sound:active { background-image: url(../img/ogtanks/topbar/sound_down.png); }
/* XP bar + crystal box (+ Battle Pass stars): OGTanks PlayerInfo cuts them from swf_Indicators.png (232 x 29, with its
   drop shadow): 6 px cap, one stretched column, 6 px cap - XP x 0 / 70 / 130, crystals x 142 / 180 / 226. The bitmap is
   1 px left of / above our box and 3 px wider (its frame starts at x 1 and ends 2 px before its right edge). */
#stage .bar3 > .l, #stage .bar3 > .c, #stage .bar3 > .r { top: -1px; height: 29px; background-repeat: no-repeat; }
#stage .bar3 > .l { left: -1px; width: 6px; }
#stage .bar3 > .c { left: 5px; right: 4px; background-repeat: repeat-x; }
#stage .bar3 > .r { right: -2px; width: 6px; }
#stage .xp > .l { background-image: url(../img/ogtanks/topbar/xp_l.png); }
#stage .xp > .c { background-image: url(../img/ogtanks/topbar/xp_c.png); }
#stage .xp > .r { background-image: url(../img/ogtanks/topbar/xp_r.png); }
#stage .cry > .l { background-image: url(../img/ogtanks/topbar/cry_l.png); }
#stage .cry > .c { background-image: url(../img/ogtanks/topbar/cry_c.png); }
#stage .cry > .r { background-image: url(../img/ogtanks/topbar/cry_r.png); }
/* score fill: their plain #12ff00 alpha 0.2 rect over the bar art */
#stage .xpfill { background: rgba(18, 255, 0, .2); border-radius: 0; }

/* ---------- create battle: NumStepper arrows = the OGTanks StepperButton bitmap (20 x 31) ---------- */
#stage .cbp-step > .cbp-stepbtn { left: 75px; top: 0; width: 20px; height: 31px; cursor: pointer;
  background: url(../img/ogtanks/lobby/stepper_up.png) no-repeat; }
#stage .cbp-step > .cbp-stepbtn.pu { background-image: url(../img/ogtanks/lobby/stepper_up_pressed.png); }
#stage .cbp-step > .cbp-stepbtn.pd { background-image: url(../img/ogtanks/lobby/stepper_down_pressed.png); }
