/* Flash client look: every skin below is a bitmap extracted from assets/web/library.swf
   (or, for the few vector shapes, sliced from a native capture of the real client). */
@font-face { font-family: 'MyriadPro'; src: url(../fonts/MyriadPro.ttf) format('truetype'); font-weight: 400; }
@font-face { font-family: 'MyriadPro'; src: url(../fonts/MyriadProB.ttf) format('truetype'); font-weight: 700; }

html, body { margin: 0; height: 100%; overflow: hidden; }
body { background: #1a1a1a url(../img/bg.png); font: 12px/1.131 'MyriadPro', Tahoma, sans-serif; color: #fff; user-select: none; }
#stage, #entr { position: absolute; left: 0; top: 0; overflow: hidden; }
#stage[hidden], #entr[hidden] { display: none; }
#stage div, #stage img, #stage input, #stage button,
#entr div, #entr img, #entr input { position: absolute; box-sizing: border-box; }
#stage img, #entr img { pointer-events: none; image-rendering: auto; }

/* ---------- battle ---------- */
#battle { position: fixed; inset: 0; background: #000; }
/* in battle the lobby top bar stays above the 3D view (Flash MainPanel is never removed) */
body.in-battle #stage { z-index: 2; pointer-events: none; }
body.in-battle #stage .mainpanel { pointer-events: auto; }
/* dialogs opened from the battle (Settings, Friends, Shop, ...) must take clicks: without this every click went
   straight through Settings to the battle view, so nothing in Settings could be changed in a battle */
body.in-battle #stage .dialoglayer { pointer-events: auto; }
/* garage opened from a battle: the garage windows must take clicks again (cards, buttons, chat) */
body.in-battle.in-garage #stage { pointer-events: auto; }
#battle[hidden] { display: none; }
.battle-canvas { display: block; }
.battle-loading { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 360px; text-align: center; color: #b9c2b0; font: 700 14px 'MyriadPro', Tahoma, sans-serif; }
.battle-loading .bl-text { margin-bottom: 10px; }
/* Battle HUD: positions from the decompiled GUI, see js/battle/hud.js. A Label is a TextField:
   2 px gutter on every side, Myriad Pro 12. --glow approximates GlowFilter(0, .8, 4, 4, 3). */
.battle-hud { --glow: drop-shadow(0 0 1px rgba(0,0,0,.8)) drop-shadow(0 0 1px rgba(0,0,0,.8)) drop-shadow(0 0 1px rgba(0,0,0,.8));
  position: absolute; inset: 0; overflow: hidden; pointer-events: none; color: #fff; font: 12px/1.131 'MyriadPro', Tahoma, sans-serif; white-space: pre; }
.battle-hud .lb, .battle-hud .h-fps span, .battle-hud .pct, .battle-hud .key { padding: 2px; }
.battle-hud .lb { position: relative; }           /* paint above the absolutely positioned WhiteFrame */
.battle-hud [hidden] { display: none !important; }
/* WhiteFrame: items_mini LEFT 20 / CENTER tiled / RIGHT 20, 40 px tall */
.wf { position: absolute; inset: 0; }
.wf i { position: absolute; top: 0; height: 40px; }
.wf .l { left: 0; width: 20px; background: url(../img/hud/frame_l.png); }
.wf .c { left: 20px; right: 20px; background: url(../img/hud/frame_c.png) repeat-x; }
.wf .r { right: 0; width: 20px; background: url(../img/hud/frame_r.png); }
/* Beg: x = stageW - 58, y = stageH - 93; values right-aligned at x 48; PING at (-7, 19) */
.h-fps { position: absolute; left: calc(100% - 58px); top: calc(100% - 93px); width: 48px; height: 38px; filter: var(--glow); }
.h-fps span { position: absolute; top: 0; }
.h-fps .k { left: 0; }
.h-fps .k.p { left: -7px; top: 19px; }
.h-fps .v { right: 0; color: #0f0; }
.h-fps .v.p { top: 19px; }
/* Tuzeqoj (Gegyjerur): bottom-right, 10 px margins; Valos frame then the kills frame 10 px right of it */
.h-stats { position: absolute; right: 10px; bottom: 10px; height: 40px; display: flex; gap: 10px; }
.h-info, .h-kills { position: relative; height: 40px; display: flex; align-items: flex-start; box-sizing: border-box; }
.h-info { padding: 11px 12px 0 14px; }            /* fields at y 11 from x 14; frame width = 12 + last right edge */
.h-info .fld { position: relative; display: flex; align-items: flex-start; }
.h-info .fld.score { margin-left: 6px; }
.h-info .fld.time { margin-left: 10px; }
.h-info .lb { margin-left: 3px; }                 /* Zigi: label.x = icon.width + 3 */
.h-info .dia { margin: 4px 0 0 2px; }             /* Wasygac: diamond at label right + 2, y 4 */
.ic { display: block; position: relative; }
.ic svg { display: block; }
/* BattleInfoIcons bitmap (OGTanks _hdad8f4e1c): a 25 x 25 frame drawn at (-4, -3) inside the icon, icon width 25 */
.bi { display: block; position: relative; width: 25px; height: 25px; }
.bi img { position: absolute; left: -4px; top: -3px; width: 25px; height: 25px; }
.h-kills { padding: 0 10px 0 9px; }               /* Fagibo: icon (9, 10); label x icon + 9, y 6, 18 bold */
.h-kills .ic { margin-top: 10px; }
.h-kills .lb { margin: 6px 0 0 9px; font-weight: 700; font-size: 18px; }
/* UltimateIndicator: x 10, y stageH - 90, 78 px; "N %" centred at y -19; "Shift" at (78 - w - 6, 58) */
.h-ult { position: absolute; left: 10px; top: calc(100% - 90px); width: 78px; height: 78px; }
.h-ult img { position: absolute; left: 0; top: 0; }
.h-ult .pct { position: absolute; left: 0; width: 78px; top: -19px; text-align: center; box-sizing: border-box; filter: var(--glow); }
.h-ult .key { position: absolute; right: 6px; top: 58px; }
/* Codywo / Nofir: right edge at stageW - 10, from y 50, 6 px between lines, 1 s fade after 30 s */
.h-msgs { position: absolute; right: 10px; top: 50px; display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.h-msgs .ln { display: flex; align-items: flex-start; filter: var(--glow); transition: opacity 1s linear; }
.h-msgs .ln.fade { opacity: 0; }
.h-msgs .ln > :first-child { margin-left: 4px; }
.h-msgs .ul { display: flex; align-items: flex-start; color: #0f0; }
.h-msgs .ul img { margin: 3px 0 0 0; }
.h-msgs .ul span { padding: 2px; }
.h-msgs .ln.kill > :first-child { margin-left: 0; }
.h-msgs .ln.kill .kw { margin: 0 6px; }           /* KillMessageOutputLine: 6 px either side of the icon */
.h-msgs .ln.kill { margin-right: -4px; }          /* OGTanks _h08de7f322: kill lines end 6 px from the edge, others 10 */
/* OGTanks ActionOutputLine: [player label at (4, 5)] + 6 px + 26 x 26 event icon at y 0 (no sentence) */
.h-msgs .ln.act > .ul, .h-msgs .ln.act > .lb { margin-top: 5px; }
.h-msgs .ln.act .ai { display: block; width: 26px; height: 26px; margin-left: 6px; }
.h-msgs .ln.act > .ai:first-child { margin-left: 0; }
/* Tab statistics table (gicuke/Perez) */
.tabstats { position: absolute; inset: 0; pointer-events: none; }
.tabstats > div { position: absolute; pointer-events: auto; }
.ts-title { text-align: center; font-size: 18px; color: #fff; padding-top: 0; }
.ts-title span { position: relative; top: -1px; }
.ts-table .ts-row, .ts-list { position: absolute; }
.ts-list { overflow: hidden; }
.ts-cell { position: absolute; top: -2px; height: 20px; line-height: 20px; white-space: nowrap; }
.ts-cell img { vertical-align: -1px; }
/* (owner 2026-11-27) rank icon + nick on one centre line, 4 px apart, long nicks cut with "..." inside the column */
.ts-cell .ts-nick { display: flex; align-items: center; gap: 4px; height: 20px; overflow: hidden; }
.ts-cell .ts-nick img { flex: none; vertical-align: 0; }
.ts-cell .ts-nick > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rbtn { position: absolute; cursor: pointer; }
.rbtn > i { position: absolute; top: 0; height: 30px; }
.rbtn > .l { left: 0; width: 7px; background: url(../img/btn/red_up_left.png?v=20261125); }
.rbtn > .c { left: 7px; right: 7px; background: url(../img/btn/red_up_center.png?v=20261125) 0 0 / 100% 30px; }
.rbtn > .r { right: 0; width: 7px; background: url(../img/btn/red_up_right.png?v=20261125); }
.rbtn:hover > .l { background-image: url(../img/btn/red_over_left.png?v=20261125); }
.rbtn:hover > .c { background-image: url(../img/btn/red_over_center.png?v=20261125); }
.rbtn:hover > .r { background-image: url(../img/btn/red_over_right.png?v=20261125); }
.rbtn > span { position: absolute; left: 0; right: 0; top: 7px; text-align: center; color: #fff; }
/* UserTitle textures, centred on the projected anchor. Local: HEALTH|WEAPON|EFFECTS = 106 x 43, bars at
   (3, 3) and (3, 10), the 104 px bar canvas clipped at the texture edge. Remote: LABEL|EFFECTS = text + 54 x 41. */
.h-titles { position: absolute; inset: 0; }
.ut { position: absolute; left: 0; top: 0; overflow: hidden; box-sizing: border-box; will-change: transform; }
.ut.local { width: 106px; height: 43px; padding: 3px; }
.ut .pb { position: relative; width: 104px; height: 8px; }
.ut .pb + .pb { margin-top: -1px; }               /* WEAPON_BAR_SPACING_Y = -1 */
.ut .pb b, .ut .pb i { position: absolute; display: block; }
.ut .pb b { top: 0; height: 8px; }
.ut .pb i { top: 2px; height: 4px; }
.ut:not(.local) { height: 41px; padding: 3px 16px 0 19px; filter: var(--glow); }
.ut .name { display: flex; align-items: flex-start; color: #4bbf1d; }
/* a team mate's title: name (13) + HEALTH_BAR_SPACING_Y 2 + the health bar, centred under the name */
.ut.hp { height: auto; overflow: visible; }
.ut.hp .bars { margin-top: 2px; display: flex; justify-content: center; }
.ut .name img { width: 12px; height: 12px; margin: 3px 1px 0 0; }   /* 13 px rank slot, 3 px lower than the label */
.ut .name span { margin-left: 2px; padding: 2px; font-weight: 400; }
/* active supply effect icons (EffectIndicator, 18 px, 2 apart) above the bars / the name; the title grows for them */
.ut .fx { position: relative; display: flex; justify-content: center; gap: 4px; height: 18px; margin-bottom: 2px; }
/* UserTitle: my supply icons from y 22, 4 px apart, centred on x 56 (3 px right of the middle) */
.ut.local .fx { margin: 4px 0 0 6px; }
.ut .fx img, .ut .fx i { position: relative; display: block; width: 18px; height: 18px; }
/* my own title stays 106 x 43 (the icons hang below inside the overflow): a growing box moved it half a pixel */
.ut:not(.local):has(.fx) { height: auto !important; overflow: visible; }
.ut.local:has(.fx) { overflow: visible; }
/* self-destruct icon over a tank (owner 2026-11-27): seconds left beside it, pulsing red in the last 2 s */
.ut .fx .sd { display: flex; align-items: center; gap: 2px; height: 18px; color: #fff; font: bold 12px/18px Arial, sans-serif; }
.ut .fx .sd img { width: 18px; height: 18px; }
.ut .fx .sd.hot { color: #ff3b2f; animation: sdPulse 0.35s ease-in-out infinite alternate; }
@keyframes sdPulse { from { transform: scale(1); filter: drop-shadow(0 0 0 #f00); } to { transform: scale(1.35); filter: drop-shadow(0 0 4px #f00); } }
/* T held (owner 2026-11-27): the tank's protections over its name, one line */
.ut .prot { white-space: nowrap; text-align: center; color: #ffd24a; font-size: 11px; margin-bottom: 2px; }
.ut:not(.local):has(.prot) { height: auto !important; overflow: visible; }

/* ---------- entrance (login / registration) ---------- */
.entbg { background: #111 url(../img/ent/bg.jpg) center / cover no-repeat; }
.link, .lbl.link { text-decoration: underline; cursor: pointer; pointer-events: auto; } /* .lbl (below) sets pointer-events: none */
/* TankCheckBox: the normal state is cb_c (matched against Flash captures: err 2.6 vs 27-29 for the others) */
.cbx { cursor: pointer; background: url(../img/ent/cb_c.png); }
.cbx:hover { background-image: url(../img/ent/cb_a.png); }
.cbx:active { background-image: url(../img/ent/cb_b.png); }
.cbx > img { display: none; }
.cbx.on > img { display: block; }
.vkbtn { width: 70px; height: 30px; cursor: pointer; background: url(../img/ent/vk.png); }
.vkbtn:hover { background-image: url(../img/ent/vk_over.png); }
.vkbtn:active { background-image: url(../img/ent/vk_down.png); }
.capbox { overflow: hidden; background: #5b4d68; }
.capref { cursor: pointer; background: url(../img/ent/capref.png); }
.capref:active { transform: translateY(1px); }
.terms { color: #fff; line-height: 1.131; white-space: normal; }
.terms .lnk { color: #59ff32; text-decoration: underline; cursor: pointer; }
.tinput.wrong > .l { background-image: url(../img/input/left_wrong.png); }
.tinput.wrong > .c { background-image: url(../img/input/center_wrong.png); }
.tinput.wrong > .r { background-image: url(../img/input/right_wrong.png); }

/* Flash TextField: 2px gutter, MyriadPro 12, no wrapping unless asked */
.lbl { white-space: pre; overflow: hidden; line-height: 1.131; pointer-events: none; }
.lbl.al-c { text-align: center; }
.lbl.al-r { text-align: right; }
.shadow { text-shadow: 1px 1px 1px rgba(0, 0, 0, .7); }

/* ---------- TankWindow: 11px frame on the stone tile ---------- */
.tw > .bg { left: 7px; top: 7px; right: 7px; bottom: 7px; background: url(../img/win/tile.png) -7px -7px; }
.tw > .t { left: 11px; right: 11px; top: 0; height: 11px; background: url(../img/win/top.png) repeat-x; }
.tw > .b { left: 11px; right: 11px; bottom: 0; height: 11px; background: url(../img/win/bottom.png) repeat-x; }
.tw > .l { left: 0; top: 11px; bottom: 11px; width: 11px; background: url(../img/win/left.png) repeat-y; }
.tw > .r { right: 0; top: 11px; bottom: 11px; width: 11px; background: url(../img/win/right.png) repeat-y; }
.tw > .tl { left: 0; top: 0; width: 11px; height: 11px; background: url(../img/win/tl.png); }
.tw > .tr { right: 0; top: 0; width: 11px; height: 11px; background: url(../img/win/tr.png); }
.tw > .bl { left: 0; bottom: 0; width: 11px; height: 11px; background: url(../img/win/bl.png); }
.tw > .br { right: 0; bottom: 0; width: 11px; height: 11px; background: url(../img/win/br.png); }
.tw > .hbg, .tw > .htx { pointer-events: none; }

/* ---------- TankWindowInner: 6px frame, solid colour + "blink" glow ---------- */
.ti > .fill { left: 1px; top: 1px; right: 1px; bottom: 1px; overflow: hidden; }
.ti.green > .fill { background: #0c220d; }
.ti.green > .fill > .blink { left: 0; top: 0; width: 100%; background: url(../img/inner/blink-green.png) 0 0 / 100% 100% no-repeat; }
/* TankWindowInner.RED / .BLUE: 0xFF621700 / 0xFF002C59 fill + the blink frame of that colour */
.ti.red > .fill { background: #621700 !important; }
.ti.blue > .fill { background: #002c59 !important; }
.ti.blue > .fill > .blink { left: 0; top: 0; width: 100%; background: url(../img/inner/blink-blue.png) 0 0 / 100% 100% no-repeat; }
.ti.red > .fill > .blink { left: 0; top: 0; width: 100%; background: url(../img/inner/blink-blue.png) 0 0 / 100% 100% no-repeat; filter: hue-rotate(170deg) saturate(1.4); }
.row3.cell.cellred > .l { background: url(../img/cell/red_l.png); }
.row3.cell.cellred > .c { background-image: url(../img/cell/red_c.png); }
.row3.cell.cellred > .r { background: url(../img/cell/red_r.png); }
.row3.cell.cellblue > .l { background: url(../img/cell/blue_l.png); }
.row3.cell.cellblue > .c { background-image: url(../img/cell/blue_c.png); }
.row3.cell.cellblue > .r { background: url(../img/cell/blue_r.png); }
/* BattleInfoTeamView score: red label right-aligned in 70 px at x -74, ":" at (-4, -2), blue at x 5; 22 px */
.tscore { position: absolute; width: 0; height: 30px; font: 22px/26px MyriadPro, Tahoma, sans-serif;
  /* GlowFilter(0xCCFFCC, 0.5): default blur 6, strength 2 */
  text-shadow: 0 0 3px rgba(204,255,204,.5), 0 0 3px rgba(204,255,204,.5), 0 0 6px rgba(204,255,204,.5), 0 0 6px rgba(204,255,204,.5); }
.tscore span { position: absolute; top: 0; white-space: nowrap; }
.tscore .r { left: -74px; width: 70px; text-align: right; color: #621700; }
.tscore .c { left: -4px; top: -2px; color: #fff; }
.tscore .b { left: 5px; width: 70px; color: #002c59; }
.ti > .t { left: 6px; right: 6px; top: 0; height: 6px; background: url(../img/inner/top.png) repeat-x; }
.ti > .b { left: 6px; right: 6px; bottom: 0; height: 6px; background: url(../img/inner/bottom.png) repeat-x; }
.ti > .l { left: 0; top: 6px; bottom: 6px; width: 6px; background: url(../img/inner/left.png) repeat-y; }
.ti > .r { right: 0; top: 6px; bottom: 6px; width: 6px; background: url(../img/inner/right.png) repeat-y; }
.ti > .tl { left: 0; top: 0; width: 6px; height: 6px; background: url(../img/inner/tl.png); }
.ti > .tr { right: 0; top: 0; width: 6px; height: 6px; background: url(../img/inner/tr.png); }
.ti > .bl { left: 0; bottom: 0; width: 6px; height: 6px; background: url(../img/inner/bl.png); }
.ti > .br { right: 0; bottom: 0; width: 6px; height: 6px; background: url(../img/inner/br.png); }

/* ---------- 3-slice buttons (left 7 / stretched centre / right 7) ---------- */
.b3 { cursor: pointer; }
.b3 > .l, .b3 > .c, .b3 > .r { top: 0; bottom: 0; background-repeat: no-repeat; background-size: 100% 100%; }
.b3 > .l { left: 0; width: 7px; }
.b3 > .r { right: 0; width: 7px; }
.b3 > .c { left: 7px; right: 7px; }
.b3:active > .lbl, .b3:active > img { transform: translateY(1px); }
.b3.off { cursor: default; pointer-events: none; }
/* disabled DefaultButton: assets.button.button_OFF_* (outline only over the window texture) */
.b3.def.off > .l { background-image: url(../img/btn/def_off_left.png?v=20261125) !important; }
.b3.def.off > .c { background-image: url(../img/btn/def_off_center.png?v=20261125) !important; }
.b3.def.off > .r { background-image: url(../img/btn/def_off_right.png?v=20261125) !important; }

.b3.def > .l { background-image: url(../img/btn/def_up_left.png?v=20261125); }
.b3.def > .c { background-image: url(../img/btn/def_up_center.png?v=20261125); }
.b3.def > .r { background-image: url(../img/btn/def_up_right.png?v=20261125); }
.b3.def:hover > .l { background-image: url(../img/btn/def_over_left.png?v=20261125); }
.b3.def:hover > .c { background-image: url(../img/btn/def_over_center.png?v=20261125); }
.b3.def:hover > .r { background-image: url(../img/btn/def_over_right.png?v=20261125); }
.b3.def:active > .l { background-image: url(../img/btn/def_down_left.png?v=20261125); }
.b3.def:active > .c { background-image: url(../img/btn/def_down_center.png?v=20261125); }
.b3.def:active > .r { background-image: url(../img/btn/def_down_right.png?v=20261125); }

.b3.green > .l { background-image: url(../img/btn/green_up_left.png?v=20261125); }
.b3.green > .c { background-image: url(../img/btn/green_up_middle.png?v=20261125); }
.b3.green > .r { background-image: url(../img/btn/green_up_right.png?v=20261125); }
.b3.green:hover > .l { background-image: url(../img/btn/green_over_left.png?v=20261125); }
.b3.green:hover > .c { background-image: url(../img/btn/green_over_middle.png?v=20261125); }
.b3.green:hover > .r { background-image: url(../img/btn/green_over_right.png?v=20261125); }
.b3.green:active > .l { background-image: url(../img/btn/green_down_left.png?v=20261125); }
.b3.green:active > .c { background-image: url(../img/btn/green_down_middle.png?v=20261125); }
.b3.green:active > .r { background-image: url(../img/btn/green_down_right.png?v=20261125); }

.b3.biggrey > .l { background-image: url(../img/big/grey_up_left.png?v=20261125); }
.b3.biggrey > .c { background-image: url(../img/big/grey_up_middle.png?v=20261125); }
.b3.biggrey > .r { background-image: url(../img/big/grey_up_right.png?v=20261125); }
.b3.biggrey:hover > .l { background-image: url(../img/big/grey_over_left.png?v=20261125); }
.b3.biggrey:hover > .c { background-image: url(../img/big/grey_over_middle.png?v=20261125); }
.b3.biggrey:hover > .r { background-image: url(../img/big/grey_over_right.png?v=20261125); }
.b3.biggrey:active > .l { background-image: url(../img/big/grey_down_left.png?v=20261125); }
.b3.biggrey:active > .c { background-image: url(../img/big/grey_down_middle.png?v=20261125); }
.b3.biggrey:active > .r { background-image: url(../img/big/grey_down_right.png?v=20261125); }
/* the battle info fight buttons when they cannot be used (full battle / side, rank): Flash H50ButtonSkin, an empty
   engraved outline over the window; the label 1 px lower (ButtonBase), the icon stays */
.b3.biggrey.bbb.off > .l { background-image: url(../img/big/off_left.png?v=20261125) !important; }
.b3.biggrey.bbb.off > .c { background-image: url(../img/big/off_middle.png?v=20261125) !important; }
.b3.biggrey.bbb.off > .r { background-image: url(../img/big/off_right.png?v=20261125) !important; }
.b3.bbb.off > .lbl { transform: translateY(1px); }

.b3.biggreen > .l { background-image: url(../img/big/green_up_left.png?v=20261125); }
.b3.biggreen > .c { background-image: url(../img/big/green_up_middle.png?v=20261125); }
.b3.biggreen > .r { background-image: url(../img/big/green_up_right.png?v=20261125); }
.b3.biggreen:hover > .l { background-image: url(../img/big/green_over_left.png?v=20261125); }
.b3.biggreen:hover > .c { background-image: url(../img/big/green_over_middle.png?v=20261125); }
.b3.biggreen:hover > .r { background-image: url(../img/big/green_over_right.png?v=20261125); }
.b3.biggreen:active > .l { background-image: url(../img/big/green_down_left.png?v=20261125); }
.b3.biggreen:active > .c { background-image: url(../img/big/green_down_middle.png?v=20261125); }
.b3.biggreen:active > .r { background-image: url(../img/big/green_down_right.png?v=20261125); }

/* ---------- top bar ---------- */
.pbtn { width: 90px; height: 29px; cursor: pointer; background: url(../img/panel/base.png); }
.pbtn:hover { background-image: url(../img/panel/base_over.png); }
.pbtn:active { background-image: url(../img/panel/base_down.png); }
.pbtn.sel, .pbtn.sel:hover, .pbtn.sel:active { background-image: url(../img/panel/base_sel.png); cursor: default; }
.pbtn.orange { background-image: url(../img/panel/orange.png); }
.pbtn.orange:hover { background-image: url(../img/panel/orange_over.png); }
.pbtn:active:not(.sel) { transform: translateY(1px); }
.sbtn { width: 28px; height: 29px; cursor: pointer; }
.sbtn > .l { left: 0; top: 0; width: 4px; height: 29px; background: url(../img/panel/small_l.png); }
.sbtn > .c { left: 4px; top: 0; width: 18px; height: 29px; background: url(../img/panel/small_c.png); }
.sbtn > .r { left: 22px; top: 0; width: 6px; height: 29px; background: url(../img/panel/small_r.png); }
.sbtn:hover > .l { background-image: url(../img/panel/small_over_l.png); }
.sbtn:hover > .c { background-image: url(../img/panel/small_over_c.png); }
.sbtn:hover > .r { background-image: url(../img/panel/small_over_r.png); }
.sbtn:active > img { transform: translateY(1px); }
.closebtn { width: 24px; height: 23px; cursor: pointer; background: url(../img/panel/close.png); }
.bar3 > .l, .bar3 > .c, .bar3 > .r { top: 0; height: 25px; }
.xp > .l { left: 0; width: 6px; background: url(../img/vec/xp_l.png); }
.xp > .c { left: 6px; right: 8px; background: url(../img/vec/xp_c.png) repeat-x; }
.xp > .r { right: 0; width: 8px; background: url(../img/vec/xp_r.png); }
.cry > .l { left: 0; width: 6px; background: url(../img/vec/cry_l.png); }
.cry > .c { left: 6px; right: 9px; background: url(../img/vec/cry_c.png) repeat-x; }
.cry > .r { right: 0; width: 9px; background: url(../img/vec/cry_r.png); }
/* owner's reference screenshot (2026-11-22, measured pixel by pixel): the score part of the bar is a darker green
   fill, #228400 at the top fading to #115300, no glow; the text on it is bright #12ff00 with no outline */
.xpfill { position: absolute; border-radius: 2px; pointer-events: none;
  background: linear-gradient(180deg, #228400 0%, #1e7900 20%, #1c7400 35%, #186a00 50%, #145e00 70%, #115300 100%); }
.topbar-txt { text-shadow: none; }
.cry-txt { text-shadow: 0 0 2px #0b2a05, 0 1px 1px #0b2a05; }
/* owner 2026-11-25: the counters were flat and hard to read - crisp numbers with a dark outline, a gold star count,
   a soft glow on the crystal gem and the star */
.cry-txt.cnt-cry, .cry-txt.cnt-stars { font-weight: 700; letter-spacing: .2px; color: #ffffff !important;
  text-shadow: 0 1px 1px #000, 0 0 3px rgba(0, 0, 0, .9); }
.cry-txt.cnt-stars { color: #ffe35c !important; }
.cnt-gem { filter: drop-shadow(0 0 3px rgba(90, 170, 255, .75)); }
.cnt-star { filter: drop-shadow(0 0 3px rgba(255, 200, 40, .8)); }

/* ---------- inputs ---------- */
.tinput > .l { left: 0; top: 0; width: 5px; height: 100%; background: url(../img/input/left.png) 0 0 / 100% 100%; }
.tinput > .c { left: 5px; right: 5px; top: 0; height: 100%; background: url(../img/input/center.png) 0 0 / 100% 100%; }
.tinput > .r { right: 0; top: 0; width: 5px; height: 100%; background: url(../img/input/right.png) 0 0 / 100% 100%; }
.tinput > input { left: 3px; top: 5px; border: 0; outline: 0; background: transparent; color: #fff; padding: 0 2px;
  font: 12px/1.131 'MyriadPro', Tahoma, sans-serif; user-select: text; }

/* ---------- lists ---------- */
.list { overflow-y: auto; overflow-x: hidden; scrollbar-width: none; }
.list::-webkit-scrollbar { display: none; }
.list > div { position: relative !important; height: 20px; cursor: pointer; }
.row3 > .l, .row3 > .c, .row3 > .r { top: 0; height: 20px; }
.row3 > .l { left: 0; width: 5px; }
.row3 > .r { right: 0; width: 5px; }
.row3 > .c { left: 5px; right: 5px; background-size: 100% 100%; }
.row3.sel > .l { background: url(../img/list/nsel_left.png); }
.row3.sel > .c { background-image: url(../img/list/nsel_center.png); }
.row3.sel > .r { background: url(../img/list/nsel_right.png); }
.row3.up > .l { background: url(../img/list/nup_left.png); }
.row3.up > .c { background-image: url(../img/list/nup_center.png); }
.row3.up > .r { background: url(../img/list/nup_right.png); }
/* (owner 2026-11-26) a battle not for my rank: a black row, like legacy Tanki (the selected row keeps its highlight) */
.row3.na.up > .l, .row3.na.up > .c, .row3.na.up > .r { filter: brightness(0.22); }
.row3.cell > .l { background: url(../img/cell/normal_l.png); }
.row3.cell > .c { background-image: url(../img/cell/normal_c.png); }
.row3.cell > .r { background: url(../img/cell/normal_r.png); }
.abris { height: 14px; }
.abris > .l { left: 0; top: 0; width: 4px; height: 14px; background: url(../img/vec/abris_l.png); }
.abris > .c { left: 4px; right: 4px; top: 0; height: 14px; background: url(../img/vec/abris_c.png) repeat-x; }
.abris > .r { right: 0; top: 0; width: 4px; height: 14px; background: url(../img/vec/abris_r.png); }

.modecb { width: 30px; height: 30px; cursor: pointer; background: url(../img/list/cb_pressed.png); }
.modecb:hover { background-image: url(../img/list/cb_over.png); }
.modecb.off { background-image: url(../img/list/cb_normal.png); }
.modecb:active > img { transform: translateY(1px); }

/* ---------- news ---------- */
.newsbox { border: 2px solid #59ff32; border-radius: 3px; }
.newsbox.plain { border-color: transparent; }
/* selected category tab = disabled IconButton = GreenMediumButtonSkin "down" art */
.b3.green.sel { cursor: default; }
.b3.green.sel > img, .b3.green.sel > .lbl { transform: translateY(1px); } /* "down" state content offset */
.b3.green.sel > .l { background-image: url(../img/btn/green_down_left.png?v=20261125) !important; }
.b3.green.sel > .c { background-image: url(../img/btn/green_down_middle.png?v=20261125) !important; }
.b3.green.sel > .r { background-image: url(../img/btn/green_down_right.png?v=20261125) !important; }
/* settings panels; TankWindowInner TRANSPARENT = the inner frame without the green fill */
.ti:not(.green) > .fill { background: none; }
.fslider > .track, .fslider > .thumb { top: 0; height: 30px; }
.fslider > .track { left: 0; right: 0; }
.fslider > .track > .l { left: 0; top: 0; width: 5px; height: 30px; background: url(../img/slider/track_left.png); }
.fslider > .track > .c { left: 5px; right: 6px; top: 0; height: 30px; background: url(../img/slider/track_center.png) repeat-x; }
.fslider > .track > .r { right: 0; top: 0; width: 6px; height: 30px; background: url(../img/slider/track_right.png); }
.fslider > .thumb { cursor: pointer; }
.fslider > .thumb > .l { left: 0; top: 0; width: 10px; height: 30px; background: url(../img/slider/thumb_left.png); }
.fslider > .thumb > .c { left: 10px; top: 0; width: 10px; height: 30px; background: url(../img/slider/thumb_center.png) 0 0 / 10px 30px; }
.fslider > .thumb > .r { left: 20px; top: 0; width: 10px; height: 30px; background: url(../img/slider/thumb_right.png); }
/* (Friends window styles: css/friends.css) */
.clandesc { color: #fff; text-align: center; white-space: pre-wrap; line-height: 1.131; }
.reflbl { color: #00cc0e; white-space: nowrap; line-height: 1.131; }
.refinfo { color: #05d118; white-space: normal; line-height: 1.131; }
.refinfo a { color: inherit; }
/* DialogsService -> BlurService.blurGameContent: black overlay, alpha 0.5, over everything behind a dialog */
.dialoglayer { position: absolute; z-index: 20; background: rgba(0, 0, 0, 0.5); }
.newstext { white-space: pre-wrap; color: #59ff32; line-height: 1.131; pointer-events: auto; user-select: text; }
.scroll { overflow-y: auto; scrollbar-width: none; }
.scroll::-webkit-scrollbar { display: none; }

/* Rank up notice (Flash controls/panel/UpdateRankNotice): big rank icon, bold 18 px yellow text with a black glow,
   centred on the screen, above the battle and the lobby; never takes the mouse */
.rank-notice { position: fixed; left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: 9000; pointer-events: none;
  display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center;
  font: bold 18px Tahoma, Arial, sans-serif; color: #ffff00;
  text-shadow: 0 0 3px #000, 0 0 3px #000, 0 0 6px #000; }
.rank-notice .rn-icon { margin-bottom: 4px; filter: drop-shadow(0 0 3px #000); }
.rank-notice .rn-gift { margin-top: 18px; display: flex; align-items: center; gap: 4px; }
.rank-notice .rn-gift img { filter: drop-shadow(0 0 2px #000); }

/* Admin menu (js/admin.js): red tab on the left edge, panel next to it - staff accounts only */
.admin-tab { position: fixed; left: 0; top: 42%; z-index: 9500; writing-mode: vertical-rl; transform: rotate(180deg);
  background: linear-gradient(90deg, #8c0d0d, #d42020); color: #fff; font: bold 13px Tahoma, Arial, sans-serif; letter-spacing: 2px;
  padding: 12px 6px; border-radius: 0 0 0 0; cursor: pointer; box-shadow: 0 0 8px rgba(0,0,0,.6); border: 1px solid #ff6b6b; border-left: 0; }
.admin-tab:hover { background: linear-gradient(90deg, #a51111, #ff2d2d); }
.admin-panel { position: fixed; left: 34px; top: 12%; z-index: 9501; width: 430px; max-height: 76vh; overflow: auto;
  background: rgba(18, 20, 18, .96); border: 2px solid #c21b1b; border-radius: 4px; color: #e8e8e8;
  font: 12px Tahoma, Arial, sans-serif; box-shadow: 0 0 16px rgba(0,0,0,.7); padding: 0 10px 10px; }
.admin-panel[hidden] { display: none; }
.adm-head { margin: 0 -10px 8px; padding: 7px 10px; background: linear-gradient(90deg, #8c0d0d, #d42020); color: #fff; font-weight: bold; letter-spacing: 2px; }
.adm-x { float: right; cursor: pointer; font-size: 16px; line-height: 14px; }
.adm-sec { margin: 10px 0 4px; color: #ff6b6b; font-weight: bold; border-bottom: 1px solid #5a1c1c; padding-bottom: 2px; }
.adm-row { display: flex; align-items: center; gap: 6px; margin: 4px 0; }
.adm-row label { width: 110px; color: #bbb; flex: none; }
.admin-panel input, .admin-panel select { flex: 1; min-width: 0; background: #0e0f0e; color: #fff; border: 1px solid #4a4a4a; border-radius: 2px; padding: 3px 5px; font: 12px Tahoma, Arial, sans-serif; }
.admin-panel button { background: #2e3a2e; color: #fff; border: 1px solid #5f7a5f; border-radius: 2px; padding: 4px 9px; cursor: pointer; font: 12px Tahoma, Arial, sans-serif; flex: none; }
.admin-panel button:hover { background: #3f513f; }
.admin-panel button.red { background: #6e1414; border-color: #c23a3a; }
.admin-panel button.red:hover { background: #8e1b1b; }
.adm-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 5px; margin-top: 6px; }
.adm-oncount { color: #fff; }
.adm-refresh { margin-left: 6px; padding: 0 6px; cursor: pointer; }
.adm-online { max-height: 120px; overflow: auto; background: #0b0c0b; border: 1px solid #333; padding: 2px 4px; font-size: 12px; }
.adm-on { display: flex; justify-content: space-between; gap: 8px; padding: 2px 0; cursor: pointer; border-bottom: 1px solid #1c1c1c; }
.adm-on:hover b { color: #ffd34d; }
.adm-on b { color: #9fe870; font-weight: 600; }
.adm-on span { color: #aaa; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.adm-out { height: 110px; overflow: auto; background: #0b0c0b; border: 1px solid #333; padding: 4px; font: 11px Consolas, monospace; }
.adm-mine { color: #7fd0ff; } .adm-reply { color: #d8ffb8; }

/* lobby chat (lobby.js renderChat / chatNickMenu) - owner 2026-11-22: click a nick = Send message / Send private message */
.chatnick { color: #12ff00; cursor: pointer; }
.chatnick:hover { text-decoration: underline; }
.chatline.chatme { background: rgba(18, 255, 0, .10); }
.chatline.chatpm { color: #ffb3f0; }
.chatline.chatpm .chatnick { color: #ff7ce3; }
.chatpmtag { color: #ff7ce3; font-weight: bold; }
.chat-nickmenu { position: fixed; z-index: 1000; min-width: 160px; padding: 3px 0; background: #2b2b2b; border: 1px solid #8d8d8d;
  border-radius: 2px; box-shadow: 0 3px 10px rgba(0,0,0,.6); font: 12px Tahoma, Verdana, sans-serif; color: #fff; }
.chat-nickmenu > div { padding: 5px 12px; cursor: pointer; white-space: nowrap; }
.chat-nickmenu > div:hover { background: #3f7f26; }.chat-nickmenu .nm-title { cursor: default; color: #12ff00; font-weight: bold; border-bottom: 1px solid #555; }
.chat-nickmenu .nm-title:hover { background: none; }

/* chat translator (js/translate.js) - owner 2026-11-23: "Translate" next to other players' messages -> RU / BR / EN.
   Spans only (#stage div is absolute); the translation sits under the message, the original stays. */
.tr-btn { display: inline-block; margin-left: 6px; padding: 0 4px; font: 10px/13px Tahoma, Verdana, sans-serif; color: #8fd96f; font-style: normal;
  border: 1px solid rgba(143, 217, 111, .45); border-radius: 2px; cursor: pointer; opacity: .45; vertical-align: 1px; white-space: nowrap; user-select: none; }
.tr-btn.foreign, .chatline:hover .tr-btn { opacity: .85; }
.tr-btn:hover { opacity: 1; color: #d6ffc2; border-color: #d6ffc2; background: rgba(63, 127, 38, .5); }
.tr-out { display: block; margin: 1px 0 1px 10px; padding-left: 6px; border-left: 2px solid rgba(143, 217, 111, .5); color: #d9f2cf;
  font-style: italic; word-wrap: break-word; white-space: normal; }
.tr-out.tr-note, .tr-out.tr-wait { color: #a9bfa3; }
.tr-tag { font: normal 9px/12px Tahoma, Verdana, sans-serif; color: #8fd96f; margin-right: 5px; vertical-align: 1px; letter-spacing: .3px; }
.tr-x { font-style: normal; margin-left: 6px; padding: 0 2px; color: #8a9a86; cursor: pointer; user-select: none; }
.tr-x:hover { color: #fff; }
/* battle HUD chat ignores the mouse: only the button and the x take clicks */
.bchat .tr-btn { pointer-events: auto; color: #e2ffd6; border-color: rgba(255, 255, 255, .4); background: rgba(0, 0, 0, .35); text-shadow: none; vertical-align: 2px; }
.bchat .tr-out { margin-left: 14px; font: italic 600 13px/17px MyriadPro, Tahoma, sans-serif; color: #cfeaff; border-left-color: rgba(207, 234, 255, .55); }
.bchat .tr-out.tr-note, .bchat .tr-out.tr-wait { color: #c8c8c8; }
.bchat .tr-tag { color: #9fd8ff; text-shadow: none; }
.bchat .tr-x { pointer-events: auto; color: #ddd; }
/* the language picker, opened next to the clicked "Translate" */
.tr-pick { position: fixed; z-index: 1001; padding: 6px 8px 7px; background: #2b2b2b; border: 1px solid #8d8d8d; border-radius: 2px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, .6); font: 12px Tahoma, Verdana, sans-serif; color: #fff; user-select: none; }
.tr-pick .tp-title { color: #12ff00; font-weight: bold; margin: 0 0 5px; }
.tr-pick .tp-langs { display: flex; gap: 5px; }
.tr-pick .tp-lang { width: 40px; padding: 4px 0; text-align: center; font-weight: bold; cursor: pointer; border: 1px solid #5f7a5f; border-radius: 2px;
  background: linear-gradient(#3b4a3b, #252f25); }
.tr-pick .tp-lang:hover { background: #3f7f26; }
.tr-pick .tp-lang.cur { border-color: #12ff00; box-shadow: inset 0 0 0 1px rgba(18, 255, 0, .35); }
.tr-pick .tp-auto { display: flex; align-items: center; gap: 6px; margin-top: 7px; font-size: 11px; color: #c8c8c8; cursor: pointer; white-space: nowrap; }
.tr-pick .tp-auto:hover { color: #fff; }
.tr-pick .tp-auto i { width: 11px; height: 11px; box-sizing: border-box; border: 1px solid #8d8d8d; border-radius: 2px; background: #161616; flex: none; }
.tr-pick .tp-auto.on i { background: #12ff00; border-color: #12ff00; box-shadow: inset 0 0 0 2px #161616; }

/* create battle window (createbattle.js) */
.cb-body { position: absolute; display: flex; gap: 12px; font: 12px MyriadPro, Tahoma, sans-serif; color: #fff; }
.cb-body * { position: static !important; box-sizing: border-box; }
.cb-left { width: 210px; display: flex; flex-direction: column; gap: 6px; min-height: 0; }
.cb-search, .cb-name, .cb-body select, .cb-body input[type=number] { background: #0f1f0c; color: #fff; border: 1px solid #3f7f26; border-radius: 3px;
  padding: 4px 6px; font: 12px MyriadPro, Tahoma, sans-serif; outline: none; }
.cb-search:focus, .cb-name:focus, .cb-body select:focus, .cb-body input[type=number]:focus { border-color: #59ff32; }
.cb-maps { flex: 1; overflow-y: auto; border: 1px solid #2c5a1b; border-radius: 3px; background: rgba(0,0,0,.25); }
.cb-map { padding: 4px 6px; cursor: pointer; display: flex; justify-content: space-between; gap: 6px; border-bottom: 1px solid rgba(89,255,50,.08); }
.cb-map span { color: #8fae86; font-size: 11px; white-space: nowrap; }
.cb-map:hover { background: rgba(89,255,50,.12); }
.cb-map.sel { background: rgba(89,255,50,.30); color: #fff; }
.cb-map.sel span { color: #d8ffcc; }
.cb-map.locked { color: #6c7d68; cursor: not-allowed; }
.cb-empty { padding: 8px; color: #8b9b8a; text-align: center; }
.cb-right { flex: 1; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.cb-body .cb-prev { height: 150px; flex: 0 0 150px; border: 1px solid #2c5a1b; border-radius: 3px; overflow: hidden; position: relative !important; background: #000; }
.cb-prev img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cb-body .cb-prevname { position: absolute !important; left: 0; right: 0; bottom: 0; padding: 3px 6px; background: rgba(0,0,0,.6); color: #59ff32; font-weight: bold; }
.cb-row { display: flex; align-items: center; gap: 8px; }
.cb-row > input, .cb-row > select { flex: 1; }
.cb-row2 { display: flex; gap: 10px; }
.cb-row2 label { display: flex; flex-direction: column; gap: 2px; flex: 1; color: #bcd6b4; font-size: 11px; }
.cb-checks { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 10px; color: #dfe; }
.cb-checks label { display: flex; align-items: center; gap: 5px; cursor: pointer; }
.cb-checks input { accent-color: #59ff32; }
/* create battle window, Flash style (createbattle.js .cw) */
#stage .cw, #stage .cw * { position: static; box-sizing: border-box; }
#stage .cw { position: absolute; display: flex; flex-direction: column; gap: 7px; padding: 10px 12px; overflow-y: auto;
  font: 12px MyriadPro, Tahoma, sans-serif; color: #e8e8e8; text-shadow: 0 1px 1px #000;
  border: 1px solid #8a8a8a; border-radius: 3px; box-shadow: inset 0 0 0 1px #2a2a2a, 0 4px 18px rgba(0,0,0,.7);
  background-color: #4b4b4b;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 .4 0'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E"),
    linear-gradient(180deg, #5c5c5c, #424242); }
#stage .cw-line { display: flex; align-items: center; gap: 8px; flex: 0 0 auto; }
#stage .cw-lbl { width: 44px; text-align: right; color: #fff; }
#stage .cw-lbl2 { width: auto; margin-left: 6px; }
#stage .cw-in, #stage .cw-dd select { height: 28px; background: linear-gradient(180deg, #151515, #262626); color: #fff; border: 1px solid #0c0c0c;
  border-radius: 5px; box-shadow: inset 0 1px 3px rgba(0,0,0,.8), 0 1px 0 rgba(255,255,255,.15); padding: 0 8px;
  font: 12px MyriadPro, Tahoma, sans-serif; outline: none; }
#stage .cw-name { flex: 1; }
#stage .cw-dd { flex: 1; position: relative; }
#stage .cw-dd select { width: 100%; appearance: none; -webkit-appearance: none; cursor: pointer;
  background: linear-gradient(180deg, #555, #2c2c2c); border: 1px solid #9a9a9a; box-shadow: inset 0 1px 0 rgba(255,255,255,.2); }
#stage .cw-dd::after { content: '▾'; position: absolute; right: 0; top: 0; width: 28px; height: 28px; line-height: 27px; text-align: center;
  border-left: 1px solid #999; border-radius: 0 5px 5px 0; background: linear-gradient(180deg, #6a6a6a, #333); color: #ddd; pointer-events: none; }
#stage .cw-dd select option { background: #2b2b2b; color: #fff; }
#stage .cw-prev { position: relative; flex: 0 0 230px; border: 1px solid #1d1d1d; box-shadow: 0 0 0 1px #777; background: #000; overflow: hidden; }
#stage .cw-prev img { width: 100%; height: 100%; object-fit: cover; display: block; }
#stage .cw-lock { position: absolute; left: 0; right: 0; bottom: 0; padding: 5px; text-align: center; background: rgba(120,0,0,.75); color: #fff; font-weight: bold; }
#stage .cw-range { display: flex; align-items: center; gap: 6px; height: 24px; padding: 0 6px; flex: 0 0 auto;
  background: linear-gradient(180deg, #2a2a2a, #3c3c3c); border: 1px solid #111; border-radius: 4px; box-shadow: inset 0 1px 3px rgba(0,0,0,.8); }
#stage .cw-range img { height: 16px; width: auto; flex: 0 0 auto; }
#stage .cw-track { position: relative; flex: 1; height: 16px; }
#stage .cw-track .cw-fill { position: absolute; top: 6px; height: 4px; background: #e8b800; border-radius: 2px; box-shadow: 0 0 4px #e8b800; }
#stage .cw-track input[type=range] { position: absolute; left: 0; top: 0; width: 100%; height: 16px; margin: 0; background: none;
  pointer-events: none; -webkit-appearance: none; appearance: none; }
#stage .cw-track input[type=range]::-webkit-slider-runnable-track { height: 4px; background: rgba(255,255,255,.12); border-radius: 2px; }
#stage .cw-track input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; pointer-events: auto; width: 12px; height: 14px; margin-top: -5px;
  border-radius: 3px; background: linear-gradient(180deg, #ddd, #888); border: 1px solid #222; cursor: pointer; }
#stage .cw-track input[type=range]::-moz-range-thumb { pointer-events: auto; width: 12px; height: 14px; border-radius: 3px; background: #bbb; border: 1px solid #222; }
#stage .cw-ranktext { text-align: center; color: #e8b800; font-size: 11px; margin-top: -4px; flex: 0 0 auto; }
#stage .cw-modes { display: flex; gap: 8px; flex: 0 0 auto; }
#stage .cw-btn { cursor: pointer; user-select: none; text-align: center; color: #fff; border: 1px solid #a8a8a8; border-radius: 4px;
  background: linear-gradient(180deg, #727272 0%, #4a4a4a 50%, #333 51%, #262626 100%); box-shadow: inset 0 1px 0 rgba(255,255,255,.25), 0 1px 2px rgba(0,0,0,.6); }
#stage .cw-btn:hover { filter: brightness(1.15); }
#stage .cw-mode { flex: 1; height: 44px; display: flex; align-items: center; justify-content: center; font-size: 13px; line-height: 15px; }
#stage .cw-mode.sel { background: linear-gradient(180deg, #2a2a2a, #3e3e3e); box-shadow: inset 0 2px 5px rgba(0,0,0,.85); border-color: #cfcfcf; }
#stage .cw-mode.off { opacity: .35; cursor: default; filter: none; }
#stage .cw-nums { display: flex; justify-content: space-around; flex: 0 0 auto; }
#stage .cw-num { display: flex; flex-direction: column; align-items: center; gap: 3px; }
#stage .cw-numt { color: #fff; }
#stage .cw-step { display: flex; align-items: center; gap: 4px; }
#stage .cw-ico { width: 22px; height: 22px; color: #ddd; display: inline-block; }
#stage .cw-ico svg, #stage .cw-icon svg { width: 100%; height: 100%; fill: currentColor; }
#stage .cw-step .cw-in { width: 58px; text-align: center; padding: 0 4px; }
#stage .cw-arrows { display: flex; flex-direction: column; gap: 1px; }
#stage .cw-arrows b { width: 14px; height: 13px; font-size: 8px; line-height: 12px; text-align: center; cursor: pointer; color: #ddd;
  border: 1px solid #999; border-radius: 2px; background: linear-gradient(180deg, #666, #2c2c2c); }
#stage .cw-arrows b:hover { filter: brightness(1.3); }
#stage .cw-optbox { display: flex; gap: 10px; padding: 8px 10px; flex: 1 1 auto; min-height: 110px;
  background: rgba(0,0,0,.18); border: 1px solid #2a2a2a; border-radius: 4px; box-shadow: inset 0 1px 3px rgba(0,0,0,.6); }
#stage .cw-col { flex: 1; display: flex; flex-direction: column; gap: 8px; }
#stage .cw-opt { display: flex; align-items: center; gap: 8px; }
#stage .cw-opt span { cursor: pointer; }
#stage .cw-tog { width: 24px; height: 24px; flex: 0 0 24px; cursor: pointer; border: 1px solid #a5a5a5; border-radius: 4px; position: relative;
  background: linear-gradient(180deg, #5e5e5e, #2a2a2a); box-shadow: inset 0 1px 0 rgba(255,255,255,.2); }
#stage .cw-tog.on::after { content: '✔'; position: absolute; inset: 0; text-align: center; line-height: 22px; color: #6dff3a; font-size: 14px; text-shadow: 0 0 3px #000; }
#stage .cw-foot { display: flex; justify-content: flex-end; gap: 8px; flex: 0 0 auto; }
#stage .cw-cancel { width: 96px; height: 30px; line-height: 28px; }
#stage .cw-start { width: 96px; height: 30px; line-height: 28px; text-align: center; cursor: pointer; color: #fff; font-weight: bold; user-select: none;
  border: 1px solid #e07a6c; border-radius: 4px; background: linear-gradient(180deg, #b3382b 0%, #8a1f15 50%, #6e140c 51%, #5a0f08 100%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.3), 0 1px 2px rgba(0,0,0,.6); }
#stage .cw-start:hover { filter: brightness(1.15); }
/* red 3-slice button (RedButtonBase: create-battle Start) */
.b3.red > .l { background-image: url(../img/btn/red_up_left.png?v=20261125); }
.b3.red > .c { background-image: url(../img/btn/red_up_center.png?v=20261125); }
.b3.red > .r { background-image: url(../img/btn/red_up_right.png?v=20261125); }
.b3.red:hover > .l { background-image: url(../img/btn/red_over_left.png?v=20261125); }
.b3.red:hover > .c { background-image: url(../img/btn/red_over_center.png?v=20261125); }
.b3.red:hover > .r { background-image: url(../img/btn/red_over_right.png?v=20261125); }
.b3.red:active > .l { background-image: url(../img/btn/red_down_left.png?v=20261125); }
.b3.red:active > .c { background-image: url(../img/btn/red_down_center.png?v=20261125); }
.b3.red:active > .r { background-image: url(../img/btn/red_down_right.png?v=20261125); }

/* create battle panel (createbattle.js CreateBattlePanel) - OGTanks' create-battle window (2026-11-23): the Flash
   combo / slider / input / big-button art (pixel-identical in their script) + their own checkbox frames, white option
   icons and red button centre, decoded from OGTanks.js into img/ogtanks/create/ */
.cbp .cbp-combo { cursor: pointer; }
.cbp-combo > .l, .cbp-combo > .c, .cbp-combo > .r { top: 0; height: 30px; background-repeat: no-repeat; background-size: 100% 100%; }
.cbp-combo > .l { left: 0; width: 7px; background-image: url(../img/create/combo_up_left.png); }
.cbp-combo > .c { left: 7px; right: 33px; background-image: url(../img/create/combo_up_center.png); }
.cbp-combo > .r { right: 0; width: 33px; background-image: url(../img/create/combo_up_right.png); }
.cbp-combo:hover > .l { background-image: url(../img/create/combo_over_left.png); }
.cbp-combo:hover > .c { background-image: url(../img/create/combo_over_center.png); }
.cbp-combo:hover > .r { background-image: url(../img/create/combo_over_right.png); }
.cbp-combo:active > .l { background-image: url(../img/create/combo_down_left.png); }
.cbp-combo:active > .c { background-image: url(../img/create/combo_down_center.png); }
.cbp-combo:active > .r { background-image: url(../img/create/combo_down_right.png); }
/* their combo text: x 5, y 6, white with a 1 px black drop shadow */
.cbp-combo > .txt { left: 7px; right: 36px; top: 8px; height: 16px; font: 12px MyriadPro, Tahoma, sans-serif; color: #fff;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; pointer-events: none; text-shadow: 1px 1px 1px rgba(0,0,0,.7); }
#stage .cbp-combo > select { left: 0; top: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; font: 12px Tahoma, sans-serif; }
.cbp-combo > select option { background: #2b2b2b; color: #fff; }
/* map preview: the 750 x 500 picture 1:1, centred, from the top (their scrollRect x = 375 - width / 2) */
.cbp-prev { overflow: hidden; }
.cbp-previmg { overflow: hidden; background: #000; }
/* owner 2026-11-24 ("barely can see the map"): the 750 x 500 picture scaled to the frame's width and centred, not
   unscaled from its top (that showed only sky in the short frame) */
#stage .cbp-previmg > img { position: static; width: 100%; height: 100%; object-fit: cover; object-position: 50% 55%; display: block; }
.cbp-lock { left: 1px; right: 1px; bottom: 1px; padding: 4px 0; text-align: center; background: rgba(0,0,0,.7); color: #ff5a4a;
  font: bold 12px MyriadPro, Tahoma, sans-serif; }
/* rank slider: track 5 | stretched | 6, thumb 10 | stretched | 10, rank icons at y 9, arrows 4 x 7 at (5, 12) and
   (width - 9, 12) turned round */
.cbp-slider > .tl, .cbp-slider > .tc, .cbp-slider > .tr { top: 0; height: 30px; background-size: 100% 100%; }
.cbp-slider > .tl { left: 0; width: 5px; background-image: url(../img/slider/track_left.png); }
.cbp-slider > .tc { left: 5px; right: 6px; background-image: url(../img/slider/track_center.png); }
.cbp-slider > .tr { right: 0; width: 6px; background-image: url(../img/slider/track_right.png); }
.cbp-thumb { cursor: pointer; }
.cbp-thumb > .l, .cbp-thumb > .c, .cbp-thumb > .r { top: 0; height: 30px; background-size: 100% 100%; }
.cbp-thumb > .l { left: 0; width: 10px; background-image: url(../img/slider/thumb_left.png); }
.cbp-thumb > .c { left: 10px; right: 10px; background-image: url(../img/slider/thumb_center.png); }
.cbp-thumb > .r { right: 0; width: 10px; background-image: url(../img/slider/thumb_right.png); }
#stage .cbp-thumb > img.cbp-ri { top: 9px; width: auto; height: auto; pointer-events: none; }
.cbp-thumb > .cbp-arr { width: 4px; height: 7px; background: url(../img/create/rank_arrow.png); pointer-events: none; }
.cbp-thumb > .cbp-arr.rt { transform: rotate(180deg); }
/* mode buttons: big grey (50 px), label 12 px centred on y 25; the chosen one stays pressed */
.cbp-mode > .lbl { font-size: 12px !important; line-height: 14px; text-align: center; white-space: pre-line; }
.cbp-mode.sel { pointer-events: none; }
.cbp-mode.sel > .l { background-image: url(../img/big/grey_down_left.png?v=20261125) !important; }
.cbp-mode.sel > .c { background-image: url(../img/big/grey_down_middle.png?v=20261125) !important; }
.cbp-mode.sel > .r { background-image: url(../img/big/grey_down_right.png?v=20261125) !important; }
.cbp-mode.sel > .lbl { transform: translateY(1px); }
/* NumStepper: 25 x 25 battle-info icon frame at (-4, 5), 55 px input at x 19 (arrow button: lobbyhome.css) */
#stage .cbp-step > img.ic { left: -4px; top: 5px; width: 25px; height: 25px; }
.cbp-step > .tinput { left: 19px; top: 0; width: 55px; height: 30px; }
#stage .cbp-step > .tinput > input { text-align: center; width: 45px; }
/* TankCheckBox (_h9bc26feb5): 27 x 27 frame (up / over / down), the option icon over it while checked (2 px lower
   while pressed), label at (29, 7) */
.cbp-cb { cursor: pointer; background: url(../img/ogtanks/create/cb_up.png) no-repeat 0 0; }
.cbp-cb:hover { background-image: url(../img/ogtanks/create/cb_over.png); }
.cbp-cb:active { background-image: url(../img/ogtanks/create/cb_down.png); }
#stage .cbp-cb > img.ic { left: 0; top: 0; width: auto; height: auto; display: none; pointer-events: none; }
#stage .cbp-cb.on > img.ic { display: block; }
#stage .cbp-cb.on:active > img.ic { top: 2px; }
.cbp-cb.dis { opacity: .45; cursor: default; }
.cbp-cb.dis:hover, .cbp-cb.dis:active { background-image: url(../img/ogtanks/create/cb_up.png); }
#stage .cbp-cb > .lbl { color: #fff; font: 12px MyriadPro, Tahoma, sans-serif; }
/* their red Start button (centre art differs from the 2016 one) */
.b3.red.og > .l { background-image: url(../img/ogtanks/create/red_up_l.png); }
.b3.red.og > .c { background-image: url(../img/ogtanks/create/red_up_c.png); }
.b3.red.og > .r { background-image: url(../img/ogtanks/create/red_up_r.png); }
.b3.red.og:hover > .l { background-image: url(../img/ogtanks/create/red_over_l.png); }
.b3.red.og:hover > .c { background-image: url(../img/ogtanks/create/red_over_c.png); }
.b3.red.og:hover > .r { background-image: url(../img/ogtanks/create/red_over_r.png); }
.b3.red.og:active > .l { background-image: url(../img/ogtanks/create/red_down_l.png); }
.b3.red.og:active > .c { background-image: url(../img/ogtanks/create/red_down_c.png); }
.b3.red.og:active > .r { background-image: url(../img/ogtanks/create/red_down_r.png); }
.b3.red.og.off { opacity: .5; }
/* team score box (hud.js setTeamScores) - Flash statistics/field/score/ctf/Wagy, 40 px like the other boxes:
   x 10 red flag (30x30, y 5) | +5 red score | +10 blue score | +5 blue flag | +10 ; scores 18 bold at y 6 */
.h-team { position: relative; height: 40px; display: flex; align-items: flex-start; box-sizing: border-box; padding: 0 10px; }
.h-team[hidden] { display: none; }
.h-team .tg { position: absolute; left: 2px; right: 2px; top: 2px; bottom: 2px; z-index: 1;
  background: linear-gradient(90deg, #8d2100 calc(50% - 8px), #003f80 calc(50% + 8px)); }
.h-team .tf, .h-team .tl { position: relative; z-index: 2; }
.h-team .tf { width: 30px; height: 30px; margin-top: 5px; }
.h-team .tf img { position: absolute; left: 0; top: 0; width: 30px; height: 30px; }
.h-team .tf .o, .h-team .tf .w { opacity: 0; }
.h-team .tf.dropped .s { opacity: 0; } .h-team .tf.dropped .o { opacity: 1; }
.h-team .tf.carried .w { animation: ctf-blink .8s steps(1) infinite; }
.h-team .tf.scored .w { animation: ctf-flash .6s ease-out 1; }
@keyframes ctf-blink { 0% { opacity: 1; } 25% { opacity: 0; } 100% { opacity: 0; } }
@keyframes ctf-flash { 0% { opacity: 1; } 100% { opacity: 0; } }
.h-team .tl { margin-top: 6px; font: 700 18px/22px MyriadPro, Tahoma, sans-serif; text-align: center; text-shadow: 0 0 2px rgba(0,0,0,.6); }
.h-team .tl.r { color: #ff774d; margin-left: 5px; }
.h-team .tl.b { color: #48a2ff; margin-left: 10px; margin-right: 5px; }
.h-team .tic { position: relative; z-index: 2; display: none; }
.h-team.noflags .tf { display: none; }
/* Qohec (TDM / CP): 10 | red | +5 icon | +5 blue | 10 */
.h-team.noflags .tl.r { margin-left: 0; } .h-team.noflags .tl.b { margin: 6px 0 0 5px; }
.h-team.noflags .tic { display: block; margin-left: 5px; }
.h-team .tic.tdm { margin-top: 10px; } .h-team .tic.tdm svg { display: block; }
.h-team .tic.cp { margin-top: 9px; } .h-team .tic.cp img { display: block; width: 21px; height: 21px; }
/* CP strip (Pyqirowad / Bekohuha): 36x36 cells at x 2 + i*37, y 2; hairline #fff at cell.x + 36 from y 2 to 38 */
.h-cp { position: relative; height: 40px; box-sizing: border-box; }
.h-cp[hidden] { display: none; }
/* (2026-11-25) many points: the strip at the top centre instead of over the supply bar (hud.js placeCp) */
.h-cp.top { position: absolute; left: 50%; top: 8px; transform: translateX(-50%); z-index: 3; }
.h-cp .cc { position: absolute; top: 2px; width: 36px; height: 36px; z-index: 2; }
.h-cp .hl { position: absolute; top: 2px; width: 1px; height: 36px; background: #fff; z-index: 2; }
.h-cp .pf { position: absolute; inset: 0; transform: scaleX(-1); opacity: 0;
  -webkit-mask-size: 100% 100%; mask-size: 100% 100%; }
.h-cp .pf .bl { position: absolute; inset: 0; background: #fff; opacity: 0; }
.h-cp .pf .bl.on { animation: cp-blink .4s linear 1; }
@keyframes cp-blink { 0% { opacity: 0; } 25% { opacity: 1; } 100% { opacity: 0; } }
.h-cp .lt { position: absolute; left: 0; right: 0; top: 8px; text-align: center; font: 700 18px/20px MyriadPro, Tahoma, sans-serif;
  color: #fff; filter: var(--glow); }
/* CP point markers over the 3D view (jiw/Quwuhyby): 26x26, neutral base + team sector + letter */
.cp-marks { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.cp-mk { position: absolute; width: 26px; height: 26px; left: 0; top: 0; }
.cp-mk i { position: absolute; inset: 0; background-size: 26px 26px; }
.cp-mk .n { background-image: url(../img/hud/cp_mk_neutral.png); }
.cp-mk .t { -webkit-mask-size: 100% 100%; mask-size: 100% 100%; transform: scaleX(-1); }
.cp-mk .t.red { background-image: url(../img/hud/cp_mk_red.png); }
.cp-mk .t.blue { background-image: url(../img/hud/cp_mk_blue.png); }
.cp-mk .l { background: url(../img/hud/cp_mk_letters.png) no-repeat; background-size: 182px 26px; }
/* clan window (clan.js) */
.clanbody { position: absolute; overflow: hidden; color: #fff; font-size: 13px; }
.clanbody .clanpic { display: block; margin: 4px auto 0; max-width: 470px; }
.clandesc2 { text-align: center; margin: 10px 40px 0; color: #c9f0c0; }
.clannote { text-align: center; margin-top: 8px; color: #ffd34d; }
.clanh { margin: 6px 0 6px; color: #59ff32; font-weight: 700; font-size: 14px; }
.clantitle { font-size: 22px; font-weight: 700; color: #fff; margin: 2px 0 6px; text-shadow: 0 0 4px #000; }
.clanform { max-width: 420px; margin: 20px auto 0; }
.clanform label { display: block; margin: 10px 0; color: #c9f0c0; }
.clanform input, .clansearchrow input { display: block; width: 100%; box-sizing: border-box; margin-top: 4px; padding: 6px 8px; font-size: 14px;
  background: #0b160b; color: #fff; border: 1px solid #3c6b33; border-radius: 3px; outline: none; }
.clanpay { margin-top: 14px; color: #ffd34d; }
.clansearchrow { margin-bottom: 8px; }
.clanlist { position: absolute; left: 0; right: 0; bottom: 0; top: 74px; overflow-y: auto; }
.clanlist.tall { top: 64px; }
.clanrow { display: flex; align-items: center; gap: 8px; height: 26px; padding: 0 6px; border-bottom: 1px solid rgba(89,255,50,.12); }
.clanrow.on .cn { color: #9fe870; }
.clanrow img { width: 13px; height: 13px; }
.clanrow .cn { flex: 0 0 240px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.clanrow .cm { flex: 1; color: #aaa; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.clanrow b { color: #ffd34d; flex: 0 0 64px; }
.clanrow .clead { color: #ffd34d; font-style: normal; font-size: 11px; }
.clanrow .fact { cursor: pointer; padding: 2px 8px; border-radius: 3px; margin-left: 4px; }
.clanrow .fact.ok { background: #2f7d1d; border: 1px solid #59ff32; } .clanrow .fact.no { background: #6e2a22; border: 1px solid #c4574a; }
.sbtn .fbadge { position: absolute; right: -4px; top: -4px; min-width: 14px; height: 14px; padding: 0 3px; box-sizing: border-box; border-radius: 7px; background: #e0201a; color: #fff; font: 700 10px/14px Tahoma, sans-serif; text-align: center; z-index: 3; pointer-events: none; }
.gar-canvas { background: #000 url(../img/loading-bg-nobar.jpg) center / cover no-repeat; }
/* the clan window's form / search / lists flow normally (global absolute positioning of labels / inputs leaked in) */
.clanbody label, .clanbody input, .clanbody .clanh, .clanbody .clanform, .clanbody .clanpay, .clanbody .clansearchrow,
.clanbody .clantitle, .clanbody .clandesc2, .clanbody .clannote, .clanbody .clanpic { position: relative !important; left: auto !important; top: auto !important; }
.clanbody .clanform label { display: block !important; width: 100% !important; height: auto !important; }
.clanbody input { display: block !important; width: 100% !important; height: 30px !important; }
.clanbody .clansearchrow input { width: 360px !important; }
.clanbody .clanlist { position: absolute !important; }
.clanbody .clanrow { position: relative !important; }

/* container opening window (LootBoxOpenDialog): canvas over the green inner window, LabelBase 40 px labels */
.lb-canvas { position: absolute; }
.lb-label { position: absolute; font-family: 'MyriadPro', sans-serif; font-size: 40px; color: #fff; white-space: nowrap; pointer-events: none; text-align: center; }
.lb-panel { position: absolute; }

/* daily missions window (obfuscation/coh Raqohybe / Virelasa / Favutedes / Betugom), art in ui/missions */
.ms-win { isolation: isolate; }
.ms-card, .ms-empty, .ms-week { position: absolute; }
.ms-pic, .ms-bar { position: absolute; pointer-events: none; }
.ms-bar { mix-blend-mode: overlay; }                      /* BlendMode.OVERLAY */
.ms-today { animation: ms-blink 1.8s linear infinite; }  /* BlinkEffect(0.3, 0.6): hold 0.3 s, fade 0.6 s, hold, fade back */
@keyframes ms-blink { 0%, 16.67% { opacity: 1; } 50%, 66.67% { opacity: 0; } 100% { opacity: 1; } }
.ms-goal { position: absolute; }
.ms-goal > .fill { left: 6px; top: 6px; right: 6px; bottom: 6px; background: #095300; }
.ms-goal > .t, .ms-goal > .b { left: 6px; right: 6px; height: 6px; background: url(../ui/missions/line_t.png) repeat-x; }
.ms-goal > .t { top: 0; }
.ms-goal > .b { bottom: 0; transform: scaleY(-1); }       /* FlipBitmapDataUtils.flipW */
.ms-goal > .l, .ms-goal > .r { top: 6px; bottom: 6px; width: 6px; background: url(../ui/missions/line_l.png) repeat-y; }
.ms-goal > .l { left: 0; }
.ms-goal > .r { right: 0; transform: scaleX(-1); }        /* flipH */
.ms-goal > .tl, .ms-goal > .tr { top: 0; width: 6px; height: 6px; background: url(../ui/missions/corner_tl.png); }
.ms-goal > .bl, .ms-goal > .br { bottom: 0; width: 6px; height: 6px; background: url(../ui/missions/corner_bl.png); }
.ms-goal > .tl, .ms-goal > .bl { left: 0; }
.ms-goal > .tr, .ms-goal > .br { right: 0; transform: scaleX(-1); }
.lbl.ms-wrap { white-space: pre-wrap; word-wrap: break-word; }
.ms-card .b3.off > .lbl, .ms-card .b3.off > img { opacity: .5; }
.ms-dia { pointer-events: none; }
.ms-mark { pointer-events: none; z-index: 3; }
.ms-info { position: absolute; color: #59ff32; text-decoration: underline; font: 12px/1.131 'MyriadPro', Tahoma, sans-serif; cursor: pointer; white-space: pre; }
/* Dizu: the green "Claim reward" big button (obfuscation/deb/Bezes skin) */
.b3.ms-prize > .l { background-image: url(../ui/missions/prize_up_left.png); }
.b3.ms-prize > .c { background-image: url(../ui/missions/prize_up_middle.png); }
.b3.ms-prize > .r { background-image: url(../ui/missions/prize_up_right.png); }
.b3.ms-prize:hover > .l { background-image: url(../ui/missions/prize_over_left.png); }
.b3.ms-prize:hover > .c { background-image: url(../ui/missions/prize_over_middle.png); }
.b3.ms-prize:hover > .r { background-image: url(../ui/missions/prize_over_right.png); }
.b3.ms-prize:active > .l { background-image: url(../ui/missions/prize_down_left.png); }
.b3.ms-prize:active > .c { background-image: url(../ui/missions/prize_down_middle.png); }
.b3.ms-prize:active > .r { background-image: url(../ui/missions/prize_down_right.png); }

/* ---------- Nickname change: Flash ChangeUidForm port (js/rename.js, art ui/rename/*.png) ---------- */
/* above the garage windows; the Alert opened from it stacks one more 0.5 black backdrop on top */
.cu-layer { z-index: 30; }
.dialoglayer.cu-alert { z-index: 31; }
/* DefaultButton OFF = the outline art only, label unchanged (garage-native.css fades every .b3.off) */
.cu-win .b3.off, .cu-alert .b3.off { opacity: 1; filter: none; }
.cu-pic { left: 0; top: 0; }
.cu-icon { overflow: visible; }
.cu-icon > img { width: 20px; height: 20px; }
/* Bubble: pre-rendered canvas + Tahoma bold 10 white label; a click hides it */
.cu-bubble { width: 0; height: 0; cursor: default; pointer-events: auto; z-index: 2; }
#stage .cu-bubble > canvas, .cu-bubble > canvas { position: absolute; display: block; }
/* registration screen (outside #stage): over the next inputs, and its divs are not absolute by default there */
.cu-bubble, .cu-btext { position: absolute; }
.cu-icon .cu-bubble { z-index: 30; }
.cu-btext { white-space: pre; font: bold 10px/12px Tahoma, Verdana, sans-serif; color: #fff; pointer-events: none; }
