:root {
  color-scheme: dark;
  --green: #5a820b;
  --green-bright: #8ebc18;
  --green-text: #75a916;
  --metal: #282a29;
  --metal-dark: #151716;
  --line: #646765;
  --inner: #0e1710;
  --text: #f1f1f1;
  font-family: Arial, Helvetica, sans-serif;
}

* { box-sizing: border-box; }
html, body { width: 100%; height: 100%; }
body {
  margin: 0;
  min-width: 1000px;
  overflow: hidden;
  color: var(--text);
  background: #171918 url("./assets/ui/metal-background.png") repeat;
  font-size: 13px;
}
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
.hidden { display: none !important; }

.boot {
  position: fixed;
  z-index: 1000;
  inset: 0;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: #171918 url("./assets/ui/metal-background.png") repeat;
}

.mtanks-loader-window {
  /* MTanksLoaderWindow(false): TankWindow(610, 305), then height -= 15. */
  position: relative;
  width: 610px;
  height: 290px;
  overflow: visible;
  contain: none;
}

.mtanks-loader-picture {
  /* image.x = 10; image.y = 11; embedded pictures are 589 x 225. */
  position: absolute;
  z-index: 1;
  left: 10px;
  top: 11px;
  width: 589px;
  height: 225px;
  display: block;
  object-fit: fill;
  image-rendering: auto;
  pointer-events: none;
}

.mtanks-loader-ammo {
  /* g.x = 10; g.y = 11 + 225 + 10 = 246. Exact 120-frame p MovieClip. */
  position: absolute;
  z-index: 2;
  left: 10px;
  top: 246px;
  width: 586px;
  height: 30px;
  overflow: hidden;
  background: url("./assets/ui/loader/bullet-animation.png") 0 0 / 586px 3600px no-repeat;
  animation: mtanks-loader-ammo-movie 2s steps(120, end) infinite;
  pointer-events: none;
  will-change: background-position;
}

@keyframes mtanks-loader-ammo-movie {
  from { background-position: 0 0; }
  to { background-position: 0 -3600px; }
}

.auth-screen {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  background: #171918 url("./assets/ui/metal-background.png") repeat;
}
.registration-art {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    display: none;
    transform: none;
    background: url(./assets/ui/login-background.png) center center / cover no-repeat;
    pointer-events: none;
}
.auth-screen.register-mode .registration-art {
  display: block;
}
.ui-window {
  isolation: isolate;
  position: relative;
  border: 2px solid #777a78;
  border-radius: 8px;
  background: #252726 url("./assets/ui/metal-background.png") repeat;
  box-shadow: inset 0 0 0 1px #101211, 0 2px 7px #000b;
}
.ui-header {
  position: absolute;
  z-index: 2;
  top: -28px;
  left: 50%;
  min-width: 150px;
  height: 29px;
  transform: translateX(-50%);
  padding: 6px 15px 0;
  border: 2px solid #777a78;
  border-bottom: 0;
  border-radius: 7px 7px 0 0;
  background: #303231 url("./assets/ui/metal-background.png") repeat;
  color: #c9c9c9;
  font-size: 12px;
  font-weight: bold;
  text-align: center;
  text-shadow: 0 1px 2px #000;
  white-space: nowrap;
}
.swc-horizontal-header {
  position: absolute;
  z-index: 4;
  top: -13px;
  left: 50%;
  width: 188px;
  height: 43px;
  transform: translateX(-50%);
  pointer-events: none;
}
.auth-card {
  position: absolute;
  z-index: 2;
  top: calc(50% - 50px);
  left: 50%;
  padding: 0;
  transform: translate(-50%, -50%);
  color: #eee;
  font-size: 12px;
}
.auth-header {
  top: -28px;
}
.auth-link {
  border: 0;
  padding: 0;
  background: transparent;
  color: #52ef43;
  cursor: pointer;
  font-size: 11px;
  text-decoration: underline;
  text-shadow: 0 1px #000;
}
.auth-login {
  width: 400px;
  height: 178px;
}
.auth-login .restore-link {
  position: absolute;
  top: 24px;
  left: 21px;
}
.registration-button {
  position: absolute;
  top: 15px;
  right: 18px;
  width: 96px;
}
.auth-label {
  position: absolute;
  color: #eee;
  font-size: 11px;
  text-align: right;
}
.auth-input {
  position: absolute;
  height: 30px;
}
.login-name-label { top: 69px; left: 39px; width: 66px; }
.login-name-input { top: 59px; left: 80px; width: 295px; }
.login-password-label { top: 101px; left: 39px; width: 66px; }
.login-password-input { top: 91px; left: 80px; width: 295px; }
.ui-checkbox {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 6px;
  color: #eee;
  font-size: 11px;
  cursor: pointer;
}
.ui-checkbox input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.ui-checkbox i {
  width: 27px;
  height: 27px;
  border: 1px solid #939694;
  border-radius: 5px;
  background: linear-gradient(#4d504e, #171918 52%, #303331);
  box-shadow: inset 0 0 0 2px #171918, 0 1px 2px #000;
}
.ui-checkbox input:checked + i::after {
  content: "✓";
  display: block;
  color: #fff;
  font-size: 23px;
  font-weight: bold;
  line-height: 23px;
  text-align: center;
  text-shadow: 0 1px #000;
}
.login-remember { top: 134px; left: 142px; }
.login-play { position: absolute; top: 134px; right: 18px; width: 96px; }

.auth-register {
  top: 50%;
  width: 380px;
  height: 407px;
}
.register-login-line {
  position: absolute;
  top: 15px;
  left: 20px;
  margin: 0;
  font-size: 11px;
}
.register-name-label { top: 68px; left: 20px; width: 61px; }
.register-name-input { top: 56px; left: 74px; width: 275px; }
.register-password-label { top: 108px; left: 20px; width: 61px; }
.register-password-input { top: 96px; left: 74px; width: 275px; }
.register-repeat-label { top: 148px; left: 20px; width: 61px; }
.register-repeat-input { top: 136px; left: 74px; width: 275px; }
.captcha-title {
  position: absolute;
  top: 176px;
  left: 75px;
  margin: 0;
  font-size: 11px;
}
.register-captcha {
  position: absolute;
  top: 201px;
  left: 74px;
  width: 275px;
  height: 56px;
  object-fit: fill;
  background: #fff;
}
.register-captcha-input { top: 264px; left: 74px; width: 275px; }
.register-remember { top: 311px; left: 74px; }
.register-play { position: absolute; top: 311px; right: 26px; width: 100px; }
.register-rules {
  position: absolute;
  top: 359px;
  left: 22px;
  margin: 0;
  color: #eee;
  font-size: 11px;
  line-height: 13px;
}
.register-rules u { color: #52ef43; }

.auth-recovery {
  width: 280px;
  height: 175px;
}
.auth-recovery p {
  position: absolute;
  top: 20px;
  left: 0;
  width: 100%;
  margin: 0;
  font-size: 11px;
  text-align: center;
}
.auth-recovery input { top: 64px; left: 24px; width: 230px; }
.recovery-submit { position: absolute; top: 110px; left: 24px; width: 96px; }
.recovery-cancel { position: absolute; top: 110px; right: 24px; width: 96px; }
.segmented button {
  color: #a9c758;
  background: transparent;
  font-size: 11px;
  text-decoration: underline;
}
.segmented button.active { color: #fff; text-decoration: none; }
.ui-field {
  display: grid;
  grid-template-columns: 67px 1fr;
  align-items: center;
  gap: 7px;
  margin: 8px 0;
  color: #d5d5d5;
  text-align: right;
}
input, select {
  min-width: 0;
  border: 1px solid #69716b;
  border-radius: 3px;
  outline: none;
  background: linear-gradient(#171b18, #080b09);
  color: #e6e6e6;
  box-shadow: inset 0 1px 3px #000;
}
input { height: 27px; padding: 4px 7px; }
select { height: 28px; padding: 3px 7px; }
input:focus, select:focus { border-color: #86a934; box-shadow: 0 0 4px #7ba01b, inset 0 1px 3px #000; }
.captcha-field { grid-template-columns: 67px 120px 1fr; }
#captcha { width: 120px; height: 43px; object-fit: contain; background: white; }
.remember {
  position: absolute;
  left: 145px;
  bottom: 22px;
  display: flex;
  align-items: center;
  gap: 7px;
  color: #bbb;
  font-size: 12px;
}
.remember input, .check input, .battle-team-chat input { width: auto; height: auto; }
.ui-button {
  box-sizing: border-box;
  min-width: 84px;
  height: 30px;
  border: 0;
  padding: 0 12px;
  background-color: transparent;
  background-image:
    url("./assets/ui/ui-components/button/506_assets.button.button_def_UP_LEFT.png"),
    url("./assets/ui/ui-components/button/505_assets.button.button_def_UP_RIGHT.png"),
    url("./assets/ui/ui-components/button/507_assets.button.button_def_UP_CENTER.png");
  background-origin: border-box, border-box, padding-box;
  background-clip: border-box, border-box, padding-box;
  background-position: left top, right top, 7px top;
  background-repeat: no-repeat, no-repeat, no-repeat;
  background-size: 7px 30px, 7px 30px, calc(100% - 14px) 30px;
  color: #efefef;
  font-size: 11px;
  font-weight: bold;
  text-shadow: 0 1px 2px #000;
}
.ui-button:hover {
  background-image:
    url("./assets/ui/ui-components/button/503_assets.button.button_def_OVER_LEFT.png"),
    url("./assets/ui/ui-components/button/502_assets.button.button_def_OVER_RIGHT.png"),
    url("./assets/ui/ui-components/button/504_assets.button.button_def_OVER_CENTER.png");
}
.ui-button:active {
  padding-top: 1px;
  background-image:
    url("./assets/ui/ui-components/button/500_assets.button.button_def_DOWN_LEFT.png"),
    url("./assets/ui/ui-components/button/499_assets.button.button_def_DOWN_RIGHT.png"),
    url("./assets/ui/ui-components/button/501_assets.button.button_def_DOWN_CENTER.png");
}
.play-button { position: absolute; right: 20px; bottom: 18px; }

.app { height: 100vh; padding-top: 60px; }
.topbar {
  position: fixed;
  z-index: 20;
  top: 3px;
  left: 0;
  right: 0;
  height: 29px;
  display: flex;
  align-items: center;
  padding: 0 4px 0 58px;
  border: 1px solid #696c6a;
  border-radius: 0;
  background: #252726 url("./assets/ui/metal-background.png") repeat;
  box-shadow: inset 0 0 0 1px #101211, 0 1px 4px #000;
}
.profile {
  position: relative;
  height: 25px;
  flex: 1;
  min-width: 300px;
}
#rank-icon { position: fixed; z-index: 3; top: 14px; left: 8px; width: 42px; height: 34px; object-fit: contain; image-rendering: auto; }
.player-name { position: absolute; z-index: 2; top: 4px; left: 8px; display: flex; gap: 7px; color: #37e93d; font-size: 11px; text-shadow: 0 1px #000; }
.player-name strong { color: #37e93d; }
.player-name span { color: #37e93d; font-size: 11px; }
.xp-track {
  position: absolute;
  inset: 2px 0 2px 0;
  overflow: hidden;
  border: 2px solid #5d625f;
  border-radius: 3px;
  background: #061006;
  box-shadow: inset 0 0 0 1px #111;
}
.xp-track i { display: block; width: 42%; height: 100%; background: linear-gradient(#15931b, #07520b); box-shadow: 0 0 3px #34d13b; }
.crystals {
  height: 27px;
  min-width: 94px;
  display: flex;
  align-items: center;
  gap: 5px;
  justify-content: flex-end;
  padding: 0 7px;
  border: 1px solid #59625a;
  border-radius: 3px;
  background: #102510;
  color: #20e42a;
  text-shadow: 0 1px #000;
}
.crystals img { width: 12px; height: 15px; object-fit: contain; }
.topbar nav { height: 28px; display: flex; align-items: center; gap: 2px; margin-left: 6px; }
.topbar nav button {
  height: 27px;
  min-width: 62px;
  border: 1px solid #626662;
  padding: 0 9px;
  background: linear-gradient(#494c49, #262927 50%, #171918 51%, #363936);
  color: #d4d4d4;
  font-size: 10px;
  font-weight: bold;
  text-shadow: 0 1px #000;
}
.topbar nav button:hover, .topbar nav button.active { color: white; filter: brightness(1.25); }
.topbar nav button[data-view="battles"],
.topbar nav button[data-view="garage"]:not(.buy-button),
.topbar nav button[data-view="settings"],
#sound-toggle,
.topbar nav button:last-child {
  border: 0;
  padding: 0;
  background-position: center;
  background-size: 100% 100%;
  background-repeat: no-repeat;
  color: transparent;
  font-size: 0;
}
.topbar nav button[data-view="battles"] { width: 93px; background-image: url("./assets/ui/tankgui4/panel/battles/1.png"); }
.topbar nav button[data-view="garage"]:not(.buy-button) { width: 93px; background-image: url("./assets/ui/tankgui4/panel/garage/1.png"); }
.topbar nav button[data-view="settings"] { width: 28px; min-width: 28px; background-image: url("./assets/ui/tankgui4/panel/settings/1.png"); }
#sound-toggle { width: 28px; min-width: 28px; background-image: url("./assets/ui/tankgui4/panel/sound/1.png"); }
.topbar nav button:last-child { width: 28px; min-width: 28px; background-image: url("./assets/ui/tankgui4/panel/help/1.png"); }
.topbar nav button[data-view="battles"]:hover { background-image: url("./assets/ui/tankgui4/panel/battles/2.png"); }
.topbar nav button[data-view="garage"]:not(.buy-button):hover { background-image: url("./assets/ui/tankgui4/panel/garage/2.png"); }
.topbar nav button[data-view="settings"]:hover { background-image: url("./assets/ui/tankgui4/panel/settings/2.png"); }
#sound-toggle:hover { background-image: url("./assets/ui/tankgui4/panel/sound/2.png"); }
.topbar nav button:last-child:hover { background-image: url("./assets/ui/tankgui4/panel/help/2.png"); }
.topbar nav .buy-button {
  min-width: 74px;
  margin-right: 6px;
  border-color: #9b701b;
  background: url("./assets/ui/panel/buy-normal.png") center / 100% 100%;
  color: #fff2b1;
}
.topbar nav .buy-button:hover { background-image: url("./assets/ui/panel/buy-over.png"); }

.lobby-shell {
  height: calc(100vh - 60px);
  display: grid;
  grid-template-columns: minmax(333px, 1fr) minmax(667px, 2fr);
  gap: 0;
  padding: 0;
}
.persistent-chat { min-width: 0; height: 100%; border-radius: 7px 7px 0 0; padding: 11px; }
.view-stack { min-width: 0; height: 100%; }
.view { display: none; height: 100%; }
.view.active { display: block; }
.ui-lobby.active {
  display: grid;
  grid-template-columns: repeat(2, minmax(300px, 1fr));
  gap: 0;
  padding: 0;
}
.lobby-column { min-width: 0; height: 100%; border-radius: 7px 7px 0 0; padding: 11px; }
.info-column.empty { visibility: hidden; }
.window-inner {
  height: calc(100% - 38px);
  padding: 3px;
  border: 1px solid #557a0c;
  border-radius: 4px;
  background: #081009;
  box-shadow: inset 0 0 8px #000;
}
.battle-list {
  height: 100%;
  overflow-y: auto;
  scrollbar-color: #527510 #0b100b;
  scrollbar-width: thin;
}
.battle-row {
  min-height: 20px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 54px minmax(90px, .62fr);
  align-items: center;
  gap: 6px;
  padding: 2px 14px;
  border-bottom: 1px solid #0b3106;
  background: #075600;
  color: #52e53f;
  font-size: 12px;
  cursor: pointer;
}
.battle-row:hover { background: #0b6804; color: #8cff76; }
.battle-row.selected { background: #62ff42; color: #164013; }
.battle-row .battle-map { overflow: hidden; color: inherit; text-align: right; text-overflow: ellipsis; white-space: nowrap; }
.battle-row .battle-count { height: 14px; border: 1px solid #a9b6a8; border-radius: 3px; background: #205d19; color: white; font-size: 11px; line-height: 12px; text-align: center; }
.battle-row.team .battle-count { background: linear-gradient(90deg, #73302d 0 49%, #245075 51%); }
.window-action { position: absolute; right: 11px; bottom: 9px; }

.selected-battle-info { height: 100%; padding: 0; color: #c7c7c7; }
.selected-battle-info h2 { margin: 2px 0 12px; color: #84ad2a; font-size: 17px; text-shadow: 0 1px #000; }
.selected-battle-info dl { display: grid; grid-template-columns: auto 1fr; gap: 7px 14px; margin: 0; }
.selected-battle-info dt { color: #8b8b8b; }
.selected-battle-info dd { margin: 0; color: white; }
.battle-preview {
  position: relative;
  height: 39%;
  min-height: 250px;
  overflow: hidden;
  border: 1px solid #111;
  border-radius: 3px;
  background: #0a100b;
  box-shadow: inset 0 0 7px #000;
}
.battle-preview > img { width: 100%; height: 100%; display: block; object-fit: cover; }
.battle-preview-caption {
  position: absolute;
  z-index: 2;
  top: 10px;
  left: 10px;
  display: grid;
  gap: 8px;
  color: white;
  font-size: 13px;
  text-shadow: 0 1px 3px #000, 0 0 5px #000;
}
.battle-preview-caption strong { font-size: 17px; }
.spectator-button { position: absolute; z-index: 2; top: 10px; right: 8px; width: 95px; }
.battle-link { height: 35px; display: flex; gap: 5px; align-items: center; }
.battle-link input { flex: 1; height: 30px; font-size: 11px; }
.battle-link button { min-width: 123px; padding: 0 7px; }
.battle-players {
  height: calc(61% - 74px);
  overflow: hidden;
  border: 1px solid #1d5a14;
  border-radius: 3px;
  background: #061a08;
}
.battle-players > div {
  height: 20px;
  display: flex;
  justify-content: space-between;
  padding: 2px 9px 2px 18px;
  border-bottom: 1px solid #052b04;
  background: #075600;
  color: #5eed49;
  font-size: 12px;
}
.battle-players .empty-player { color: #43843b; }
.selected-battle-actions { position: absolute; right: 11px; bottom: 9px; left: 11px; height: 36px; display: flex; justify-content: flex-end; align-items: center; gap: 7px; }
.selected-battle-actions .red { border-color: #884d48; background: linear-gradient(#74413c, #3f2421); }
.selected-battle-actions .blue { border-color: #456d91; background: linear-gradient(#3c6280, #20384e); }

.chat-messages {
  height: calc(100% - 42px);
  overflow-y: auto;
  padding: 6px;
  border: 1px solid #557a0c;
  border-radius: 4px;
  background: #081009;
  box-shadow: inset 0 0 8px #000;
}
.chat-message { padding: 2px 4px; color: #ddd; overflow-wrap: anywhere; }
.chat-message b { margin-right: 5px; color: #77a321; font-weight: normal; }
.chat-form { position: absolute; right: 11px; bottom: 9px; left: 11px; display: flex; gap: 6px; }
.chat-form input { flex: 1; }

.ui-page { padding: 0 4px 4px; }
.ui-page.active { display: block; }
.page-window { height: 100%; padding: 12px; }
.item-grid {
  height: 100%;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  align-content: start;
  gap: 4px;
  overflow-y: auto;
  padding: 4px;
  border: 1px solid #557a0c;
  border-radius: 4px;
  background: #081009;
}
.item-card {
  min-height: 105px;
  padding: 8px;
  border: 1px solid #354b1c;
  border-radius: 3px;
  background: linear-gradient(#263220, #111912);
  color: #c5c5c5;
}
.item-card:hover { border-color: #79a724; background: linear-gradient(#344627, #172319); }
.item-card h3 { margin: 0 0 6px; color: #85ad2c; font-size: 13px; }
.item-card code { color: #8b8b8b; font-size: 10px; word-break: break-word; }
.garage-page { padding: 0; }
.garage-page.active { display: block; }
.garage-window { height: 100%; display: grid; grid-template-rows: minmax(190px, 1fr) 169px 169px; gap: 0; }
.garage-upper { min-height: 0; display: grid; grid-template-columns: minmax(0, 1fr) 412px; gap: 3px; }
.garage-preview {
  position: relative;
  min-width: 0;
  overflow: hidden;
  display: grid;
  place-items: center;
  border-radius: 7px 7px 0 0;
  background: radial-gradient(circle, #4c554e, #1b1d1b 68%);
  color: #777;
  font-weight: bold;
  text-shadow: 0 1px #000;
}
.garage-preview::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(transparent 65%, #0009); }
.garage-preview > span { position: relative; z-index: 2; }
#garage-preview-canvas { position: absolute; z-index: 1; inset: 12px; cursor: grab; }
#garage-preview-canvas:active { cursor: grabbing; }
#garage-preview-canvas canvas { width: 100%; height: 100%; display: block; }
.garage-preview #garage-preview-image { position: relative; z-index: 1; max-width: 75%; max-height: 75%; object-fit: contain; image-rendering: auto; }
.garage-horizontal-header {
  position: absolute;
  z-index: 4;
  top: -13px;
  left: 50%;
  width: 188px;
  height: 43px;
  transform: translateX(-50%);
  pointer-events: none;
}
.garage-item-info {
  position: relative;
  padding: 32px 13px 13px;
  overflow: hidden;
  border-radius: 7px 7px 0 0;
  background: #081009 url("./assets/ui/tankgui4/window/33_assets.windowinner.bitmaps.WindowInnerBGTile.png") repeat;
  box-shadow: inset 0 0 8px #000;
  color: #bbb;
}
.garage-item-info h2 { margin: 0 0 10px; color: #83ad2b; font-size: 17px; }
.garage-item-info dl { display: grid; grid-template-columns: auto 1fr; gap: 6px 12px; }
.garage-item-info dt { color: #777; }
.garage-item-info dd { margin: 0; color: #ddd; }
.inline-diamond { width: 9px; height: 11px; vertical-align: -1px; }
.garage-actions { position: absolute; right: 10px; bottom: 10px; display: flex; gap: 6px; }
.garage-strip {
  position: relative;
  min-height: 0;
  width: calc(100% - 27px);
  margin-left: 27px;
  border-radius: 7px;
  background: #252726 url("./assets/ui/tankgui4/window/7_assets.window.bitmaps.WindowBGTile.png") repeat;
}
.garage-vertical-header {
  position: absolute;
  z-index: 5;
  top: 50%;
  left: -13px;
  width: 43px;
  height: 146px;
  transform: translateY(-50%);
  pointer-events: none;
}
.garage-strip .item-grid {
  position: absolute;
  inset: 15px 11px 6px 15px;
  height: auto;
  display: flex;
  gap: 0;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 0 0 14px;
  border: 1px solid #557a0c;
  border-radius: 5px;
  background: #081009;
  box-shadow: inset 0 0 8px #000;
}
.garage-strip .item-card {
  position: relative;
  flex: 0 0 200px;
  width: 200px;
  min-height: 130px;
  height: 130px;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 0;
  background-color: transparent;
  background-repeat: no-repeat;
  background-size: 200px 130px;
}
.garage-strip .item-card:hover { filter: brightness(1.08); }
.garage-strip .garage-item-preview { position: absolute; z-index: 1; top: 18px; left: 19px; width: 167px; height: 94px; object-fit: contain; }
.garage-strip .item-card h3 { position: absolute; z-index: 2; top: 2px; left: 3px; max-width: 130px; margin: 0; overflow: hidden; color: #59a032; font-size: 12px; font-weight: normal; text-overflow: ellipsis; text-shadow: 0 1px #000; white-space: nowrap; }
.garage-item-price { position: absolute; z-index: 2; top: 2px; right: 4px; color: #59a032; font-size: 12px; text-shadow: 0 1px #000; }
.garage-item-price img { width: 9px; height: 11px; margin-left: 3px; vertical-align: -1px; }
.garage-item-mod { position: absolute; z-index: 2; top: 7px; left: 159px; width: 36px; height: 7px; }
.garage-item-count { position: absolute; z-index: 2; right: 10px; bottom: 8px; color: #59a032; font-size: 16px; text-shadow: 0 1px #000; }
.garage-item-discount { position: absolute; z-index: 3; bottom: 10px; left: -4px; transform: rotate(45deg); color: #fff; font-size: 16px; font-weight: bold; text-shadow: 0 1px 2px #000; }
.settings-window { padding: 16px; }
.settings-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.check { display: flex; gap: 7px; align-items: center; }
.muted { color: #999; }

.battle-view { position: fixed; z-index: 30; inset: 0; background: #091312; }
#battle-canvas, #battle-canvas canvas { width: 100%; height: 100%; display: block; }
.hud { position: absolute; z-index: 3; pointer-events: none; }
.hud.glass, .battle-chat.glass {
  border: 1px solid #6a6d6b;
  border-radius: 5px;
  background: #202321dd url("./assets/ui/metal-background.png") repeat;
  box-shadow: inset 0 0 0 1px #111, 0 1px 5px #000;
}
.hud.glass { display: grid; gap: 4px; padding: 8px 11px; font-size: 12px; }
.top-left { top: 12px; left: 12px; }
.top-right { top: 12px; right: 12px; max-height: 42vh; overflow: hidden; }
.score-row { display: grid; grid-template-columns: 1fr auto; gap: 25px; min-width: 180px; padding: 3px; }
.score-row.local { color: #9bc934; }
.bottom-center { bottom: 15px; left: 50%; width: min(560px, 82vw); transform: translateX(-50%); text-align: center; }
.health { position: relative; height: 18px; overflow: hidden; border: 2px solid #777; background: #111; border-radius: 3px; }
.health span { position: absolute; inset: 0; width: 100%; background: linear-gradient(#9dc747, #527c13); transition: width .2s; }
.health b { position: relative; z-index: 1; color: white; text-shadow: 0 1px #000; }
.controls-hint { margin-top: 6px; color: #ddd; font-size: 11px; text-shadow: 0 1px 3px #000; }
.battle-chat { position: absolute; z-index: 4; left: 12px; bottom: 55px; width: min(510px, calc(100vw - 24px)); padding: 7px; }
.battle-chat-messages { max-height: 160px; overflow-y: auto; font-size: 12px; text-shadow: 0 1px 3px #000; }
.battle-chat-message { padding: 2px 4px; overflow-wrap: anywhere; }
.battle-chat-message b { color: #80aa28; margin-right: 5px; }
.battle-chat-message.team b { color: #65a7df; }
.battle-chat-message.system { color: #d3b75d; }
.battle-chat-form { display: flex; align-items: center; gap: 7px; margin-top: 5px; }
.battle-chat-form input { flex: 1; }
.battle-team-chat { display: flex; align-items: center; gap: 4px; white-space: nowrap; }
#crosshair { position: absolute; z-index: 3; width: 18px; height: 18px; left: 50%; top: 50%; transform: translate(-50%,-50%); border: 1px solid #fff; border-radius: 50%; pointer-events: none; }
#crosshair::before, #crosshair::after { content: ""; position: absolute; background: #fff; }
#crosshair::before { width: 28px; height: 1px; left: -6px; top: 8px; }
#crosshair::after { width: 1px; height: 28px; left: 8px; top: -6px; }
.leave { position: absolute; z-index: 4; left: 12px; bottom: 12px; }
#toast { position: fixed; z-index: 100; right: 12px; bottom: 12px; display: grid; gap: 5px; }
.toast { padding: 9px 12px; border: 1px solid #696c6a; border-radius: 4px; background: #252726 url("./assets/ui/metal-background.png") repeat; box-shadow: 0 2px 7px #000; }


.ui-window {
  border: 0;
  border-radius: 0;
  background-color: transparent;
  background-image:
    url("./assets/ui/ui-components/window/top-left.png"),
    url("./assets/ui/ui-components/window/top-right.png"),
    url("./assets/ui/ui-components/window/bottom-left.png"),
    url("./assets/ui/ui-components/window/bottom-right.png"),
    url("./assets/ui/ui-components/window/4_assets.window.bitmaps.WindowTop.png"),
    url("./assets/ui/ui-components/window/8_assets.window.bitmaps.WindowBottom.png"),
    url("./assets/ui/ui-components/window/6_assets.window.bitmaps.WindowLeft.png"),
    url("./assets/ui/ui-components/window/5_assets.window.bitmaps.WindowRight.png");
  background-position:
    left top, right top, left bottom, right bottom,
    11px top, 11px bottom, left 11px, right 11px;
  background-repeat:
    no-repeat, no-repeat, no-repeat, no-repeat,
    repeat-x, repeat-x, repeat-y, repeat-y;
  box-shadow: none;
}
.ui-window::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 7px;
  background: url("./assets/ui/ui-components/window/7_assets.window.bitmaps.WindowBGTile.png") repeat;
  pointer-events: none;
}

.auth-header {
  width: 229px;
  height: 43px;
}
.auth-login {
  width: 400px;
  height: 187px;
}
.auth-input {
  height: 30px;
  border: 0;
  border-radius: 0;
  padding: 3px 8px 4px;
  background-color: transparent;
  background-image:
    url("./assets/ui/ui-components/input/27_assets.input.InputLeft.png"),
    url("./assets/ui/ui-components/input/25_assets.input.InputRight.png"),
    url("./assets/ui/ui-components/input/29_assets.input.InputCenter.png");
  background-position: left top, right top, 5px top;
  background-repeat: no-repeat, no-repeat, repeat-x;
  box-shadow: none;
}
.auth-input:focus {
  border: 0;
  box-shadow: none;
}
.login-name-label,
.login-password-label {
  left: 5px;
  width: 70px;
}
.login-name-input { left: 85px; }
.login-password-input { left: 85px; }
.registration-button,
.login-play {
  right: auto;
  left: 280px;
  width: 100px;
}
.ui-button {
  height: 30px;
  border: 0;
  border-radius: 0;
  padding: 0 8px;
  background-color: transparent;
  background-image:
    url("./assets/ui/ui-components/button/506_assets.button.button_def_UP_LEFT.png"),
    url("./assets/ui/ui-components/button/505_assets.button.button_def_UP_RIGHT.png"),
    url("./assets/ui/ui-components/button/507_assets.button.button_def_UP_CENTER.png");
  background-position: left top, right top, 7px top;
  background-repeat: no-repeat, no-repeat, repeat-x;
  background-size: 7px 30px, 7px 30px, 201px 30px;
  color: #eee;
  font-size: 11px;
  font-weight: normal;
  text-shadow: 0 1px 1px #000;
}
.ui-button:hover {
  background-image:
    url("./assets/ui/ui-components/button/503_assets.button.button_def_OVER_LEFT.png"),
    url("./assets/ui/ui-components/button/502_assets.button.button_def_OVER_RIGHT.png"),
    url("./assets/ui/ui-components/button/504_assets.button.button_def_OVER_CENTER.png");
  background-size: 7px 30px, 7px 30px, 201px 30px;
}
.ui-button:active {
  padding: 1px 8px 0;
  background-image:
    url("./assets/ui/ui-components/button/500_assets.button.button_def_DOWN_LEFT.png"),
    url("./assets/ui/ui-components/button/499_assets.button.button_def_DOWN_RIGHT.png"),
    url("./assets/ui/ui-components/button/501_assets.button.button_def_DOWN_CENTER.png");
  background-size: 7px 30px, 7px 30px, 201px 30px;
}
.ui-checkbox i {
  width: 27px;
  height: 27px;
  border: 0;
  border-radius: 0;
  background: url("./assets/ui/ui-components/checkbox/up.svg") center / 27px 27px no-repeat;
  box-shadow: none;
}
.ui-checkbox:hover i {
  background-image: url("./assets/ui/ui-components/checkbox/over.svg");
}
.ui-checkbox:active i {
  background-image: url("./assets/ui/ui-components/checkbox/down.svg");
}
.ui-checkbox input:checked + i {
  background-image:
    url("./assets/ui/ui-components/checkbox/check-sign.svg"),
    url("./assets/ui/ui-components/checkbox/up.svg");
  background-position: center, center;
  background-size: 27px 27px, 27px 27px;
  background-repeat: no-repeat, no-repeat;
}
.ui-checkbox input:checked + i::after {
  content: none;
}
.login-remember { top: 140px; left: 147px; }
.login-play { top: 140px; }
.register-name-label,
.register-password-label,
.register-repeat-label {
  left: 5px;
  width: 65px;
}
.register-name-input,
.register-password-input,
.register-repeat-input,
.register-captcha,
.register-captcha-input {
  left: 80px;
  width: 275px;
}
.register-name-input { top: 60px; }
.register-password-input { top: 100px; }
.register-repeat-input { top: 140px; }
.register-name-label { top: 70px; }
.register-password-label { top: 110px; }
.register-repeat-label { top: 150px; }
.input-check {
  position: absolute;
  width: 21px;
  height: 21px;
  background: center / 21px 21px no-repeat;
}
.input-check.progress { background-image: url("./assets/ui/ui-components/input-state/1.png"); }
.input-check.valid { background-image: url("./assets/ui/ui-components/input-state/2.png"); }
.input-check.invalid { background-image: url("./assets/ui/ui-components/input-state/3.png"); }
.register-name-state { top: 67px; left: 330px; }
.register-password-state { top: 107px; left: 330px; }
.register-repeat-state { top: 147px; left: 330px; }
.auth-input.invalid {
  background-image:
    url("./assets/ui/ui-components/input/26_assets.input.InputLeftWrong.png"),
    url("./assets/ui/ui-components/input/24_assets.input.InputRightWrong.png"),
    url("./assets/ui/ui-components/input/28_assets.input.InputCenterWrong.png");
}
.register-remember { left: 80px; }
.register-play {
  right: auto;
  left: 255px;
  width: 100px;
}
.ui-button:disabled {
  cursor: default;
  opacity: .55;
  filter: grayscale(.65);
}
.auth-recovery input {
  left: 30px;
  width: 220px;
}
.recovery-submit {
  left: 30px;
  width: 100px;
}
.recovery-cancel {
  right: auto;
  left: 153px;
  width: 100px;
}

.window-inner,
.chat-messages,
.battle-players {
  isolation: isolate;
  position: relative;
  border: 0;
  border-radius: 0;
  background-color: transparent;
  background-image:
    url("./assets/ui/ui-components/inner/top-left.png"),
    url("./assets/ui/ui-components/inner/top-right.png"),
    url("./assets/ui/ui-components/inner/bottom-left.png"),
    url("./assets/ui/ui-components/inner/bottom-right.png"),
    url("./assets/ui/ui-components/inner/30_assets.windowinner.bitmaps.WindowInnerTop.png"),
    url("./assets/ui/ui-components/inner/34_assets.windowinner.bitmaps.WindowInnerBottom.png"),
    url("./assets/ui/ui-components/inner/32_assets.windowinner.bitmaps.WindowInnerLeft.png"),
    url("./assets/ui/ui-components/inner/31_assets.windowinner.bitmaps.WindowInnerRight.png");
  background-position:
    left top, right top, left bottom, right bottom,
    6px top, 6px bottom, left 6px, right 6px;
  background-repeat:
    no-repeat, no-repeat, no-repeat, no-repeat,
    repeat-x, repeat-x, repeat-y, repeat-y;
  box-shadow: none;
}
.window-inner::before,
.chat-messages::before,
.battle-players::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 1px;
  background: #0c220d;
  pointer-events: none;
}
.persistent-chat,
.lobby-column {
  padding: 11px;
}
.window-inner {
  height: calc(100% - 47px);
  padding: 4px;
}
.chat-messages {
  height: calc(100% - 47px);
  padding: 4px;
}
.chat-form,
.window-action {
  bottom: 11px;
}

/* Final source-accurate auth control geometry. */
.registration-art {
  top: 0;
}

.auth-card {
  top: calc(50% - 58px);
}

.auth-register {
  top: calc(50% - 9px);
  height: 418px;
}

.ui-window {
  isolation: isolate;
  position: absolute;
  border: 0;
  background: none;
}

.ui-window::before {
  z-index: -2;
  inset: 7px;
  background: url("./assets/ui/ui-components/window/7_assets.window.bitmaps.WindowBGTile.png") repeat;
}

.ui-window::after {
  content: "";
  position: absolute;
  z-index: 0;
  inset: 0;
  border: 11px solid transparent;
  border-image: url("./assets/ui/ui-components/window/frame.png") 11 repeat;
  pointer-events: none;
}

.auth-input {
  box-sizing: border-box;
  background-position: left top, right top, 5px top;
  background-repeat: no-repeat, no-repeat, repeat-x;
  background-size: 5px 30px, 5px 30px, 1px 30px;
}

.auth-input.invalid {
  background-position: left top, right top, 5px top;
  background-repeat: no-repeat, no-repeat, repeat-x;
  background-size: 5px 30px, 5px 30px, 1px 30px;
}

.login-remember,
.login-play {
  top: 134px;
}

#captcha.register-captcha {
  top: 208px;
  width: 275px;
  height: 56px;
  object-fit: fill;
}

.captcha-title {
  top: 179px;
}

.register-captcha-input {
  top: 268px;
}

.register-remember,
.register-play {
  top: 318px;
}

.register-rules {
  top: 363px;
}

/* ui-faithful MainPanel, lobby, garage and settings pass. */
.visually-hidden { position:absolute !important; width:1px !important; height:1px !important; padding:0 !important; margin:-1px !important; overflow:hidden !important; clip:rect(0,0,0,0) !important; white-space:nowrap !important; border:0 !important; }
.app { padding-top: 58px; }
.topbar {
  top: 3px;
  height: 29px;
  padding: 0 4px 0 58px;
  border: 0;
  background: url("./assets/ui/panel/main-panel-fill.png") repeat-x;
  box-shadow: 0 1px 3px #000;
}
#rank-icon {
  top: 8px;
  left: 5px;
  width: 43px;
  height: 49px;
  object-fit: contain;
  object-position: center top;
}
.profile { height: 29px; min-width: 260px; }
.xp-track {
  inset: 0;
  border: 0;
  border-radius: 0;
  background: #071107;
  box-shadow: inset 0 0 0 1px #222, inset 0 0 0 2px #606560;
}
.xp-track i {
  width: 42%;
  background: linear-gradient(#199a20 0%, #0c8012 47%, #07650c 53%, #063f08 100%);
  box-shadow: inset 0 0 0 1px #0fa218, 0 0 2px #28c22d;
}
.player-name {
  top: 4px;
  left: 5px;
  gap: 5px;
  color: #29df2e;
  font-size: 11px;
  line-height: 18px;
}
.player-name strong,
.player-name span { color: #29df2e; font-size: 11px; font-weight: normal; }
.rating-line {
  position: absolute;
  z-index: 3;
  top: 5px;
  right: 6px;
  color: #29df2e;
  font-size: 10px;
  line-height: 17px;
  text-shadow: 0 1px #000;
}
.rating-line b { font-weight: normal; }
.rating-line span { margin-left: 3px; color: #58ff64; }
.rank-up-button {
  width: 120px;
  min-width: 120px;
  height: 29px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  border: 0;
  padding: 0 5px;
  background-image: url("./assets/ui/panel/xp-gold.png"), url("./assets/ui/panel/main-panel-fill.png");
  background-position: left top, left top;
  background-size: 32px 29px, auto 29px;
  background-repeat: no-repeat, repeat-x;
  color: #fff0b1;
  font-size: 10px;
  font-weight: bold;
  text-shadow: 0 1px 1px #000;
}
.rank-up-button:hover { filter: brightness(1.14); }
.rank-up-icon { color: #ffe078; font-size: 12px; transform: rotate(45deg); }
.crystals {
  height: 29px;
  min-width: 82px;
  width: 82px;
  justify-content: flex-end;
  gap: 2px;
  padding: 0 3px 0 5px;
  border: 0;
  border-radius: 0;
  background: url("./assets/ui/panel/main-panel-fill.png") repeat-x;
  color: #1cff2c;
  font-size: 11px;
}
.crystals img { width: 20px; height: 22px; object-fit: contain; }
.topbar nav { height: 29px; gap: 2px; margin-left: 4px; }
.topbar nav button { height: 29px; }
.topbar nav .buy-button {
  width: 74px;
  min-width: 74px;
  height: 29px;
  margin-right: 0;
  border: 0;
  padding: 0 0 0 17px;
  background-image: url("./assets/ui/panel/buy-icon.png"), url("./assets/ui/panel/buy-normal.png");
  background-position: 5px center, center;
  background-size: 15px 15px, 74px 29px;
  background-repeat: no-repeat;
  color: #fff4b0;
  font-size: 10px;
  text-transform: none;
}
.topbar nav .buy-button:hover { background-image: url("./assets/ui/panel/buy-icon.png"), url("./assets/ui/panel/buy-over.png"); }
.topbar nav button[data-view="battles"] { width: 93px; min-width: 93px; background-image: url("./assets/ui/tankgui4/panel/battles/2.png"); }
.topbar nav button[data-view="garage"]:not(.buy-button) { width: 93px; min-width: 93px; background-image: url("./assets/ui/tankgui4/panel/garage/2.png"); }
.topbar nav button[data-view="battles"].active { background-image: url("./assets/ui/tankgui4/panel/battles/1.png"); filter: none; }
.topbar nav button[data-view="garage"].active { background-image: url("./assets/ui/tankgui4/panel/garage/1.png"); filter: none; }
.topbar nav button[data-view="battles"]:hover:not(.active) { background-image: url("./assets/ui/tankgui4/panel/battles/3.png"); }
.topbar nav button[data-view="garage"]:hover:not(.active) { background-image: url("./assets/ui/tankgui4/panel/garage/3.png"); }
.topbar nav .panel-small {
  width: 28px;
  min-width: 28px;
  height: 29px;
  border: 0;
  padding: 0;
  background-position: center;
  background-repeat: no-repeat;
  background-size: 28px 29px;
  color: transparent;
  font-size: 0;
}
.referral-button {
  position: relative;
  background: linear-gradient(#626763, #303432 52%, #181b19 53%, #3f4440);
  box-shadow: inset 0 0 0 1px #777, inset 0 0 0 2px #1b1d1c;
}
.referral-button::before { content: "+"; position: absolute; inset: 0; color: #e0a633; font-size: 22px; font-weight: bold; line-height: 28px; text-align: center; text-shadow: 0 1px #000; }
.topbar nav .settings-button { background-image: url("./assets/ui/tankgui4/panel/settings/2.png"); }
.topbar nav .settings-button:hover { background-image: url("./assets/ui/tankgui4/panel/settings/3.png"); }
#sound-toggle { width: 28px; min-width: 28px; background-image: url("./assets/ui/tankgui4/panel/sound/2.png"); }
#sound-toggle:not(.active):hover { background-image: url("./assets/ui/tankgui4/panel/sound/3.png"); }
#sound-toggle:not(.active):active { background-image: url("./assets/ui/tankgui4/panel/sound/4.png"); }
#sound-toggle.active { background-image: url("./assets/ui/tankgui4/panel/sound/on-normal.png"); filter: none; }
#sound-toggle.active:hover { background-image: url("./assets/ui/tankgui4/panel/sound/on-over.png"); }
#sound-toggle.active:active { background-image: url("./assets/ui/tankgui4/panel/sound/on-pressed.png"); }
.fullscreen-button {
  background-image: url("./assets/ui/tankgui4/panel/settings/2.png");
  position: relative;
}
.fullscreen-button::after {
  content: "";
  position: absolute;
  inset: 5px;
  background: url("./assets/ui/panel/fullscreen.png") center / 19px 18px no-repeat;
}
.topbar nav .help-button { background-image: url("./assets/ui/tankgui4/panel/help/2.png"); }
.topbar nav .help-button:hover { background-image: url("./assets/ui/tankgui4/panel/help/3.png"); }
.close-button {
  width: 20px !important;
  min-width: 20px !important;
  position: relative;
  background: linear-gradient(#c63e3e, #861818 52%, #4b0909 53%, #8f1e1e) !important;
  box-shadow: inset 0 0 0 1px #f06c6c, inset 0 0 0 2px #3e0808;
}
.close-button::before { content: "×"; position: absolute; inset: 0; color: #fff; font-size: 17px; font-weight: bold; line-height: 27px; text-align: center; text-shadow: 0 1px #000; }

.lobby-shell { height: calc(100vh - 58px); grid-template-columns: minmax(333px, 1fr) minmax(667px, 2fr); }
.persistent-chat,
.lobby-column { padding: 7px 6px 10px; border-radius: 0; }
.swc-horizontal-header,
.garage-horizontal-header { top: -25px; }
.ui-lobby.active { grid-template-columns: repeat(2, minmax(300px, 1fr)); }
.window-inner,
.chat-messages {
  border: 1px solid #4f7c05;
  border-radius: 3px;
  background: #061b09;
  box-shadow: inset 0 0 8px #000;
}
.window-inner { height: calc(100% - 35px); padding: 1px; }
.chat-messages { height: calc(100% - 34px); padding: 4px; color: #2cff30; font-size: 11px; }
.chat-message { padding: 1px 1px; color: #31ea36; font-size: 11px; line-height: 14px; }
.chat-message b { color: #58f35a; }
.chat-form { right: 6px; bottom: 7px; left: 6px; gap: 5px; }
.chat-form input { height: 28px; border-radius: 0; }
.chat-form .ui-button { min-width: 72px; width: 72px; height: 30px; padding: 0 5px; font-size: 10px; text-transform: none; }
.window-action { right: 6px; bottom: 7px; min-width: 84px; }
.battle-row {
  min-height: 20px;
  height: 20px;
  grid-template-columns: minmax(0, 1fr) 48px minmax(90px, .62fr);
  gap: 5px;
  padding: 1px 4px 1px 6px;
  border-bottom: 1px solid #064306;
  background: #075b03;
  color: #30ef2b;
  font-size: 11px;
}
.battle-row:hover { background: #087207; color: #7cff6f; }
.battle-row.selected { background: #60ff35; color: #154611; }
.battle-row .battle-count {
  height: 15px;
  border-color: #8e9b8a;
  background: #1d5918;
  color: #d8ffd7;
  font-size: 10px;
  line-height: 13px;
}
.selected-battle-info { height: 100%; }
.battle-preview { height: 310px; min-height: 230px; border-radius: 0; }
.battle-preview-caption { top: 10px; left: 10px; gap: 4px; font-size: 11px; }
.battle-preview-caption strong { font-size: 16px; }
.spectator-button { top: 10px; right: 8px; width: 86px; min-width: 86px; height: 28px; }
.battle-link { height: 34px; gap: 5px; }
.battle-link input { height: 28px; border-radius: 0; padding: 2px 5px; }
.battle-link button { height: 28px; min-width: 112px; font-size: 10px; }
.battle-players { height: calc(100% - 386px); min-height: 260px; border-radius: 0; }
.battle-players > div { height: 19px; padding: 2px 7px 1px 17px; font-size: 11px; line-height: 15px; }
.selected-battle-actions { right: 6px; bottom: 7px; }
.selected-battle-actions .ui-button { min-width: 108px; }

.garage-window { grid-template-rows: minmax(190px, 1fr) 169px 169px; }
.garage-upper { grid-template-columns: minmax(0, 1fr) 412px; gap: 0; }
.garage-preview { border-radius: 0; background: #111; }
.garage-preview::after { display: none; }
#garage-preview-canvas { inset: 7px; }
.garage-item-info {
  padding: 8px 12px 12px;
  border-radius: 0;
  background: #061b09;
  color: #17dd1e;
  font-size: 11px;
  line-height: 14px;
}
.garage-item-info::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 7px;
  background: #061b09;
}
.garage-item-info h2 { margin: 0 0 6px; color: #1bdf22; font-size: 16px; font-weight: normal; }
.garage-item-info p { margin: 0 0 7px; }
.garage-item-info dl { margin: 5px 0 0; grid-template-columns: 168px 1fr; gap: 2px 8px; }
.garage-item-info dt { color: #159b19; }
.garage-item-info dd { color: #25eb2d; }
.garage-item-info .item-info-preview { width: 118px; height: 84px; float: left; margin: 5px 14px 4px 2px; object-fit: contain; }
.garage-item-info .item-description { margin-top: 6px; color: #18d91f; line-height: 14px; }
.garage-item-info .mod-table { width: 100%; margin: 2px 0 5px; border-collapse: collapse; color: #24e52b; font-size: 10px; line-height: 14px; }
.garage-item-info .mod-table th,
.garage-item-info .mod-table td { padding: 0 3px; text-align: center; font-weight: normal; }
.garage-item-info .mod-table th:first-child,
.garage-item-info .mod-table td:first-child { text-align: left; }
.garage-item-info .mod-table tr.selected { background: #5fff37; color: #15530f; }
.garage-item-info .mod-table .mod-dots { color: #ffd744; letter-spacing: 1px; }
.garage-actions { right: 10px; bottom: 8px; }
.garage-actions .ui-button { min-width: 106px; }
.garage-strip { border-radius: 0; }
.garage-strip .item-grid { inset: 15px 6px 6px 15px; padding-bottom: 13px; border-radius: 3px; }
.garage-strip .item-card { flex-basis: 200px; }
.garage-strip .garage-item-preview { top: 18px; left: 17px; width: 169px; height: 96px; }
.garage-strip .item-card h3 { color: #24df2a; }
.garage-item-price,
.garage-item-count { color: #28e62e; }

.settings-overlay {
  position: fixed;
  z-index: 90;
  inset: 0;
  background: rgba(0,0,0,.48);
}
.settings-dialog {
  position: absolute;
  top: 156px;
  left: 50%;
  width: 388px;
  height: 542px;
  transform: translateX(-50%);
  padding: 25px 10px 10px;
  color: #ededed;
  font-size: 11px;
}
.settings-header {
  position: absolute;
  z-index: 5;
  top: -25px;
  left: 50%;
  width: 188px;
  height: 43px;
  transform: translateX(-50%);
}
.settings-volume-row { height: 43px; display: grid; grid-template-columns: 68px 178px 1fr; align-items: center; gap: 7px; padding: 0 7px; border-bottom: 1px solid #696969; }
.settings-volume-row > span { text-align: right; }
.settings-volume-row input[type="range"] { width: 178px; height: 22px; padding: 0; accent-color: #777; }
.settings-dialog fieldset { margin: 7px 0 0; border: 1px solid #6e6e6e; padding: 8px; }
.settings-dialog legend { padding: 0 3px; color: #ddd; font-weight: bold; }
.settings-display { height: 238px; }
.settings-options { display: grid; grid-template-columns: 1fr 1fr; grid-auto-rows: 32px; column-gap: 16px; }
.ui-checkbox.compact-check { position: relative; top: auto; left: auto; display: flex; gap: 5px; font-size: 10px; white-space: nowrap; }
.ui-checkbox.compact-check i { width: 25px; height: 25px; flex: 0 0 25px; background-size: 25px 25px; }
.settings-account { height: 101px; display: grid; grid-template-columns: 1fr 1fr; gap: 6px 12px; align-content: start; }
.settings-account label { display: grid; grid-template-columns: 86px 1fr; align-items: center; gap: 5px; }
.settings-account label span { text-align: right; }
.settings-account input { height: 28px; border-radius: 0; }
.settings-account .repeat-password { grid-column: 2; grid-row: 1; grid-template-columns: 48px 1fr; }
.settings-account .email-setting { grid-column: 1 / 3; grid-template-columns: 86px 1fr; }
.settings-controls { height: 78px; display: grid; grid-auto-rows: 28px; align-content: start; gap: 2px; }
.settings-actions { position: absolute; right: 11px; bottom: 10px; display: flex; gap: 8px; }
.settings-actions .ui-button { width: 86px; min-width: 86px; }

@media (max-width: 1200px) {
  .rank-up-button { display: none; }
  .rating-line { display: none; }
  .garage-upper { grid-template-columns: minmax(0, 1fr) 360px; }
}

/* App windows participate in the lobby/garage grids. The absolute rule above is auth-only. */
.app .ui-window { position: relative; }
#rank-icon { object-fit: contain; image-rendering: auto; }


.garage-strip .item-card {
  flex: 0 0 calc((100% - 2px) / 6);
  width: calc((100% - 2px) / 6);
  background-size: 100% 130px;
}
.garage-strip .garage-item-preview { left: 8%; width: 84%; }
.garage-strip .garage-item-mod { right: 5px; left: auto; }
#rank-icon { image-rendering: pixelated; }

/* 2026-06-14: MainPanel/lobby/garage accuracy pass. */
.topbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 116px 78px max-content;
  align-items: center;
  column-gap: 2px;
  padding-right: 3px;
  padding-left: 50px;
}
#rank-icon {
  top: 5px;
  left: 4px;
  width: 43px;
  height: 43px;
  object-fit: contain;
  object-position: center;
  image-rendering: auto;
}
.profile { width: auto; min-width: 0; }
.rank-up-button { width: 116px; min-width: 116px; }
.crystals { width: 78px; min-width: 78px; }
.topbar nav { margin-left: 0; }

.battle-players > div > span {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 4px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.battle-players > div > span > img {
  width: 11px;
  height: 11px;
  flex: 0 0 11px;
  object-fit: contain;
  image-rendering: auto;
}
.battle-players .empty-player b { display: none; }

.garage-window { grid-template-rows: minmax(260px, 1fr) 148px 148px; }
.garage-upper { grid-template-columns: minmax(0, 1fr) 360px; }
.garage-strip .item-grid { inset: 14px 6px 5px 15px; padding-bottom: 10px; }
.garage-strip .item-card {
  height: 116px;
  min-height: 116px;
  background-size: 100% 116px;
}
.garage-strip .garage-item-preview { top: 15px; height: 84px; }
.garage-item-count { bottom: 5px; }
.garage-item-info .item-info-preview { width: 112px; height: 76px; margin-right: 10px; }
.garage-item-info .item-description { line-height: 13px; }
.garage-item-info dl { grid-template-columns: 145px 1fr; }


.app { padding-top: 57px; }
.lobby-shell { height: calc(100vh - 57px); }
.topbar nav .buy-button {
  width: 64px;
  min-width: 64px;
  background-size: 15px 15px, 64px 29px;
}
.topbar nav button[data-view="battles"],
.topbar nav button[data-view="garage"]:not(.buy-button) {
  width: 84px;
  min-width: 84px;
}
.garage-upper { grid-template-columns: minmax(0, 1fr) 367px; }
.garage-strip .item-grid { left: 25px; }
.settings-dialog { top: 179px; }


.topbar nav button[data-view="battles"],
.topbar nav button[data-view="garage"]:not(.buy-button) {
  color: #ededed;
  font-size: 10px;
  font-weight: normal;
  line-height: 29px;
  text-align: center;
  text-indent: 17px;
  text-shadow: 0 1px 1px #000;
}
.rank-up-button {
  justify-content: flex-start;
  padding: 0 5px 0 25px;
  background-image:
    url("./assets/ui/panel/xp/icon.png"),
    url("./assets/ui/panel/xp/left.png"),
    url("./assets/ui/panel/xp/right.png"),
    url("./assets/ui/panel/xp/center.png");
  background-position: 3px 3px, left top, right top, 6px top;
  background-size: 20px 20px, 6px 29px, 6px 29px, calc(100% - 12px) 29px;
  background-repeat: no-repeat;
  color: #f2f2f2;
  font-weight: normal;
  text-align: left;
}
.rank-up-button:hover {
  filter: none;
  background-image:
    url("./assets/ui/panel/xp/icon.png"),
    url("./assets/ui/panel/xp/left-over.png"),
    url("./assets/ui/panel/xp/right-over.png"),
    url("./assets/ui/panel/xp/center-over.png");
}
.rank-up-icon { display: none; }


.chat-messages {
  padding: 4px 5px;
  font-size: 12px;
  line-height: 16px;
  scrollbar-color: #527510 #071008;
  scrollbar-width: thin;
}
.chat-message {
  min-height: 17px;
  padding: 1px 3px;
  color: #fff;
  line-height: 16px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.chat-message.system { color: #80ff80; }
.chat-message.system.yellow { color: #e9ff00; }
.chat-message.to-self {
  background: linear-gradient(90deg, rgba(60, 106, 35, .82), rgba(27, 62, 19, .42));
}
.chat-message.selected-user {
  background: linear-gradient(90deg, rgba(58, 104, 31, .92), rgba(14, 48, 12, .52));
}
.chat-rank {
  width: 14px;
  height: 14px;
  margin: 0 1px 0 0;
  vertical-align: -3px;
  object-fit: contain;
}
.chat-arrow {
  width: 10px;
  height: 5px;
  margin: 0 3px 0 4px;
  vertical-align: 1px;
  image-rendering: auto;
}
.chat-name,
.battle-chat-author {
  min-width: 0;
  height: auto;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: none;
  box-shadow: none;
  color: #12ff00;
  font: inherit;
  line-height: inherit;
  text-shadow: none;
  cursor: pointer;
}
.chat-name:hover,
.chat-name:focus-visible,
.battle-chat-author:hover,
.battle-chat-author:focus-visible {
  color: #9dff79;
  text-decoration: underline;
  outline: none;
}
.chat-message.to-self .chat-name,
.chat-message.to-self .chat-text,
.chat-message.selected-user .chat-name { color: #59ff32; }
.chat-colon { color: #12ff00; }
.chat-text { color: inherit; }
.chat-link { color: inherit; text-decoration: underline; }
.chat-form input { min-width: 0; }


.battle-chat,
.battle-chat.glass {
  left: 3px;
  bottom: 61px;
  width: clamp(320px, 25vw, 520px);
  padding: 0 7px;
  border: 0;
  background: transparent;
  box-shadow: none;
  pointer-events: none;
}
.battle-chat.expanded { pointer-events: auto; }
.battle-chat-messages {
  max-height: 145px;
  overflow: hidden;
  padding: 0 3px;
  font-size: 13px;
  line-height: 18px;
}
.battle-chat.expanded .battle-chat-messages {
  max-height: min(52vh, 480px);
  overflow-y: auto;
  scrollbar-color: #527510 transparent;
  scrollbar-width: thin;
}
.battle-chat-message {
  min-height: 18px;
  padding: 0 3px;
  color: #fff;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  text-shadow: 0 1px 2px #000, 0 0 3px #000;
}
.battle-chat-message.system { color: #80ff80; }
.battle-chat-message.red-team .battle-chat-author { color: #ff8d8d; }
.battle-chat-message.blue-team .battle-chat-author { color: #83bfff; }
.battle-chat-message.team:not(.red-team):not(.blue-team) .battle-chat-author { color: #83bfff; }
.battle-chat-rank {
  width: 14px;
  height: 14px;
  margin-right: 2px;
  vertical-align: -3px;
}
.battle-chat-author { margin-right: 5px; color: #fff; text-shadow: 0 1px 2px #000; }
.battle-chat-label { margin-right: 4px; color: #ddd; }
.battle-chat-form { display: none; margin: 7px 3px 0; pointer-events: auto; }
.battle-chat.expanded .battle-chat-form { display: flex; }
.battle-chat-form input { height: 30px; }


.garage-confirm-overlay {
  position: fixed;
  z-index: 1000;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgb(0 0 0 / 58%);
  backdrop-filter: blur(1.5px);
}
.garage-confirm-dialog {
  width: 360px;
  min-height: 238px;
  padding: 28px 20px 18px;
  color: #e8e8e8;
  text-align: center;
}
.garage-confirm-dialog h2 {
  margin: 0 0 8px;
  color: #efefef;
  font: bold 15px/1 Arial, sans-serif;
  text-shadow: 0 1px #000;
}
.garage-confirm-dialog > img {
  width: 180px;
  height: 96px;
  object-fit: contain;
  display: block;
  margin: 0 auto 3px;
}
.garage-confirm-dialog p { min-height: 34px; margin: 3px 0 8px; }
.garage-confirm-dialog strong {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 4px;
  margin-bottom: 12px;
  color: #fff;
}
.garage-confirm-dialog strong img { width: 12px; height: 12px; }
.garage-confirm-dialog > div { display: flex; justify-content: center; gap: 9px; }
.garage-confirm-dialog .ui-button { min-width: 96px; }
.garage-confirm-overlay.waiting .garage-confirm-dialog { filter: brightness(.76); }

.fps-counter {
  position: absolute;
  z-index: 8;
  top: 9px;
  left: 50%;
  translate: -50% 0;
  padding: 2px 7px;
  color: #fff;
  background: rgb(0 0 0 / 48%);
  border-radius: 2px;
  font: bold 11px Arial, sans-serif;
  text-shadow: 0 1px 2px #000;
  pointer-events: none;
}
.fps-counter.colored[data-level="good"] { color: #73ff55; }
.fps-counter.colored[data-level="medium"] { color: #ffe35b; }
.fps-counter.colored[data-level="low"] { color: #ff6868; }
.battle-chat.force-hidden { display: none !important; }


.app { min-width: 1000px; padding-top: 57px; }
.topbar {
  position: fixed;
  z-index: 40;
  top: 3px;
  left: 0;
  right: auto;
  width: max(100%, 1000px);
  min-width: 1000px;
  height: 29px;
  display: block;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  overflow: visible;
}
#rank-icon {
  position: absolute;
  z-index: 5;
  top: -2px;
  left: 2px;
  width: 56px;
  height: 64px;
  max-width: none;
  object-fit: none;
  object-position: 0 0;
  image-rendering: auto;
  pointer-events: none;
}
.profile {
  position: absolute;
  z-index: 1;
  top: 0;
  left: 59px;
  right: 683px;
  width: auto;
  min-width: 0;
  height: 29px;
  margin: 0;
}
.xp-track {
  position: absolute;
  inset: 0;
  box-sizing: border-box;
  overflow: hidden;
  border: 6px solid transparent;
  border-right-width: 8px;
  border-left-width: 8px;
  border-radius: 0;
  border-image: url("./assets/ui/mainpanel/indicators/progress-frame.png") 6 8 fill stretch;
  background: none;
  box-shadow: none;
}
.xp-track i {
  position: absolute;
  top: 1px;
  bottom: 1px;
  left: 0;
  height: auto;
  min-width: 0;
  background: url("./assets/ui/mainpanel/indicators/progress-fill.png") repeat-x 0 0 / auto 100%;
  box-shadow: none;
}
.player-name {
  position: absolute;
  z-index: 3;
  top: 4px;
  left: 5px;
  height: 19px;
  display: flex;
  align-items: flex-start;
  gap: 5px;
  color: #22e72c;
  font-family: Arial, sans-serif;
  font-size: 11px;
  line-height: 17px;
  white-space: nowrap;
  text-shadow: 0 1px 1px #000;
}
.player-name strong,
.player-name span {
  color: #22e72c;
  font-size: 11px;
  font-weight: normal;
  line-height: 17px;
}
.rating-line {
  position: absolute;
  z-index: 3;
  top: 4px;
  right: 6px;
  height: 19px;
  color: #21df2a;
  font-family: Arial, sans-serif;
  font-size: 10px;
  line-height: 17px;
  white-space: nowrap;
  text-shadow: 0 1px 1px #000;
}
.rating-line b { color: inherit; font-weight: normal; }
.rating-line span { margin-left: 2px; color: #52ff59; }
.rank-up-button {
  position: absolute;
  z-index: 2;
  top: 0;
  right: 555px;
  width: 128px;
  min-width: 128px;
  height: 29px;
  display: block !important;
  box-sizing: border-box;
  border: 0;
  padding: 0 4px 0 24px;
  background-color: transparent;
  background-image:
    url("./assets/ui/mainpanel/xp/ButtonXP_IconXP.png"),
    url("./assets/ui/mainpanel/xp/ButtonXP_goldButtonLeft.png"),
    url("./assets/ui/mainpanel/xp/ButtonXP_goldButtonRight.png"),
    url("./assets/ui/mainpanel/xp/ButtonXP_goldButtonCenter.png");
  background-position: 3px 3px, left top, right top, 6px top;
  background-size: 20px 20px, 6px 29px, 6px 29px, calc(100% - 12px) 29px;
  background-repeat: no-repeat;
  color: #ededed;
  font-family: Arial, sans-serif;
  font-size: 10px;
  font-weight: normal;
  line-height: 29px;
  text-align: left;
  text-shadow: 0 1px 1px #000;
  cursor: pointer;
}
.rank-up-button:hover {
  filter: none;
  background-image:
    url("./assets/ui/mainpanel/xp/ButtonXP_IconXP.png"),
    url("./assets/ui/mainpanel/xp/ButtonXP_goldButtonLeft_over.png"),
    url("./assets/ui/mainpanel/xp/ButtonXP_goldButtonRight_over.png"),
    url("./assets/ui/mainpanel/xp/ButtonXP_goldButtonCenter_over.png");
}
.rank-up-button:active {
  padding-top: 1px;
  background-image:
    url("./assets/ui/mainpanel/xp/ButtonXP_IconXP.png"),
    url("./assets/ui/mainpanel/xp/ButtonXP_goldButtonLeft_pressed.png"),
    url("./assets/ui/mainpanel/xp/ButtonXP_goldButtonRight_pressed.png"),
    url("./assets/ui/mainpanel/xp/ButtonXP_goldButtonCenter_pressed.png");
  background-position: 3px 4px, left top, right top, 6px top;
}
.rank-up-button > span:last-child { display: inline; }
.rank-up-icon { display: none !important; }
.crystals {
  position: absolute;
  z-index: 2;
  top: 0;
  right: 482px;
  width: 76px;
  min-width: 76px;
  height: 29px;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 3px;
  padding: 0 7px 0 4px;
  border: 6px solid transparent;
  border-right-width: 8px;
  border-left-width: 8px;
  border-radius: 0;
  border-image: url("./assets/ui/mainpanel/indicators/crystal-frame.png") 6 8 fill stretch;
  background: none;
  color: #18ef25;
  font-family: Arial, sans-serif;
  font-size: 11px;
  font-weight: normal;
  line-height: 17px;
  text-shadow: 0 1px 1px #000;
}
.crystals b { color: inherit; font-size: inherit; font-weight: normal; white-space: nowrap; }
.crystals img {
  width: 9px;
  height: 11px;
  flex: 0 0 9px;
  object-fit: contain;
  image-rendering: auto;
}
.topbar nav {
  position: absolute;
  z-index: 3;
  top: 0;
  right: 5px;
  width: 456px;
  height: 29px;
  display: block;
  margin: 0;
  padding: 0;
}
.topbar nav button {
  position: absolute;
  top: 0;
  height: 29px;
  min-width: 0;
  box-sizing: border-box;
  border: 0;
  border-radius: 0;
  padding: 0;
  background-color: transparent;
  background-position: 0 0;
  background-repeat: no-repeat;
  background-size: auto;
  color: transparent;
  font-size: 0;
  filter: none;
  cursor: pointer;
}
.topbar nav button:hover,
.topbar nav button.active { filter: none; }
.topbar nav .buy-button {
  left: 0;
  width: 74px;
  min-width: 74px;
  margin: 0;
  padding: 0 3px 0 18px;
  background-image:
    url("./assets/ui/mainpanel/buy/MainPanelDonateButton_iconN.png"),
    url("./assets/ui/mainpanel/buy/MainPanelDonateButton_normalBtn.png");
  background-position: 7px 7px, 0 0;
  background-size: 15px 15px, 74px 29px;
  color: #eee;
  font-family: Arial, sans-serif;
  font-size: 10px;
  font-weight: normal;
  line-height: 29px;
  text-align: center;
  text-shadow: 0 1px 1px #000;
}
.topbar nav .buy-button:hover {
  background-image:
    url("./assets/ui/mainpanel/buy/MainPanelDonateButton_iconN.png"),
    url("./assets/ui/mainpanel/buy/MainPanelDonateButton_overBtn.png");
}
.topbar nav .buy-button:active { top: 1px; }
.topbar nav button[data-view="battles"] {
  left: 85px;
  width: 93px;
  min-width: 93px;
  padding-left: 23px;
  background-image: url("./assets/ui/mainpanel/battles/2.png");
  color: #ededed;
  font-family: Arial, sans-serif;
  font-size: 10px;
  font-weight: normal;
  line-height: 29px;
  text-align: center;
  text-shadow: 0 1px 1px #000;
}
.topbar nav button[data-view="battles"].active { background-image: url("./assets/ui/mainpanel/battles/1.png"); }
.topbar nav button[data-view="battles"]:hover:not(.active) { background-image: url("./assets/ui/mainpanel/battles/3.png"); }
.topbar nav button[data-view="battles"]:active:not(.active) { top: 1px; background-image: url("./assets/ui/mainpanel/battles/4.png"); }
.topbar nav button[data-view="garage"]:not(.buy-button) {
  left: 178px;
  width: 93px;
  min-width: 93px;
  padding-left: 23px;
  background-image: url("./assets/ui/mainpanel/garage/2.png");
  color: #ededed;
  font-family: Arial, sans-serif;
  font-size: 10px;
  font-weight: normal;
  line-height: 29px;
  text-align: center;
  text-shadow: 0 1px 1px #000;
}
.topbar nav button[data-view="garage"]:not(.buy-button).active { background-image: url("./assets/ui/mainpanel/garage/1.png"); }
.topbar nav button[data-view="garage"]:not(.buy-button):hover:not(.active) { background-image: url("./assets/ui/mainpanel/garage/3.png"); }
.topbar nav button[data-view="garage"]:not(.buy-button):active:not(.active) { top: 1px; background-image: url("./assets/ui/mainpanel/garage/4.png"); }
.topbar nav .panel-small {
  width: 28px;
  min-width: 28px;
  height: 29px;
  padding: 0;
  background-position: 0 0;
  background-size: 28px 29px;
}
.topbar nav .referral-button {
  left: 282px;
  background-image: url("./assets/ui/mainpanel/referral/2.png");
  box-shadow: none;
}
.topbar nav .referral-button::before { display: none; }
.topbar nav .referral-button:hover { background-image: url("./assets/ui/mainpanel/referral/3.png"); }
.topbar nav .referral-button:active { top: 1px; background-image: url("./assets/ui/mainpanel/referral/4.png"); }
.topbar nav .settings-button {
  left: 310px;
  background-image: url("./assets/ui/mainpanel/settings/2.png");
}
.topbar nav .settings-button:hover { background-image: url("./assets/ui/mainpanel/settings/3.png"); }
.topbar nav .settings-button:active { top: 1px; background-image: url("./assets/ui/mainpanel/settings/4.png"); }
#sound-toggle {
  left: 338px;
  width: 28px;
  min-width: 28px;
  background-image: url("./assets/ui/mainpanel/sound/2.png");
}
#sound-toggle:not(.active):hover { background-image: url("./assets/ui/mainpanel/sound/3.png"); }
#sound-toggle:not(.active):active { top: 1px; background-image: url("./assets/ui/mainpanel/sound/4.png"); }
#sound-toggle.active { background-image: url("./assets/ui/mainpanel/sound/on-normal.png"); }
#sound-toggle.active:hover { background-image: url("./assets/ui/mainpanel/sound/on-over.png"); }
#sound-toggle.active:active { top: 1px; background-image: url("./assets/ui/mainpanel/sound/on-pressed.png"); }
.topbar nav .fullscreen-button {
  left: 366px;
  background-image:
    url("./assets/ui/mainpanel/fullscreen/MainPanelFullscreenButton_activateFullscreenClass.png"),
    url("./assets/ui/mainpanel/help/2.png");
  background-position: 3px 4px, 0 0;
  background-size: 19px 18px, 28px 29px;
}
.topbar nav .fullscreen-button::after { display: none; }
.topbar nav .fullscreen-button:hover {
  background-image:
    url("./assets/ui/mainpanel/fullscreen/MainPanelFullscreenButton_activateFullscreenClass.png"),
    url("./assets/ui/mainpanel/help/3.png");
}
.topbar nav .fullscreen-button:active {
  top: 1px;
  background-position: 3px 5px, 0 0;
  background-image:
    url("./assets/ui/mainpanel/fullscreen/MainPanelFullscreenButton_activateFullscreenClass.png"),
    url("./assets/ui/mainpanel/help/4.png");
}
.topbar nav .help-button {
  left: 394px;
  background-image: url("./assets/ui/mainpanel/help/2.png");
}
.topbar nav .help-button:hover { background-image: url("./assets/ui/mainpanel/help/3.png"); }
.topbar nav .help-button:active { top: 1px; background-image: url("./assets/ui/mainpanel/help/4.png"); }
.topbar nav .close-button {
  left: 433px;
  top: 0;
  width: 23px !important;
  min-width: 23px !important;
  height: 23px;
  background: url("./assets/ui/mainpanel/close/1.png") 0 0 / 23px 23px no-repeat !important;
  box-shadow: none;
}
.topbar nav .close-button::before { display: none; }
.topbar nav .close-button:hover { filter: brightness(1.12); }
.lobby-shell { height: calc(100vh - 57px); }


.app .lobby-shell {
  height: calc(100vh - 57px);
  min-height: 530px;
  grid-template-columns: minmax(333px, 1fr) minmax(667px, 2fr);
  overflow: hidden;
}
.app .persistent-chat,
.app .lobby-column {
  height: 100%;
  min-height: 530px;
  padding: 11px;
  overflow: visible;
}
.app .swc-horizontal-header,
.app .garage-horizontal-header {
  top: -25px;
}
.app .ui-lobby.active {
  height: 100%;
  grid-template-columns: repeat(2, minmax(300px, 1fr));
}


.app .window-inner,
.app .chat-messages,
.app .battle-players,
.app .garage-info-inner,
.app .garage-strip .item-grid {
  border: 0;
  border-radius: 0;
  background-color: #06260a;
  background-image:
    url("./assets/ui/ui-components/inner/top-left.png"),
    url("./assets/ui/ui-components/inner/top-right.png"),
    url("./assets/ui/ui-components/inner/bottom-left.png"),
    url("./assets/ui/ui-components/inner/bottom-right.png"),
    url("./assets/ui/ui-components/inner/30_assets.windowinner.bitmaps.WindowInnerTop.png"),
    url("./assets/ui/ui-components/inner/34_assets.windowinner.bitmaps.WindowInnerBottom.png"),
    url("./assets/ui/ui-components/inner/32_assets.windowinner.bitmaps.WindowInnerLeft.png"),
    url("./assets/ui/ui-components/inner/31_assets.windowinner.bitmaps.WindowInnerRight.png");
  background-position:
    left top, right top, left bottom, right bottom,
    6px top, 6px bottom, left 6px, right 6px;
  background-repeat:
    no-repeat, no-repeat, no-repeat, no-repeat,
    repeat-x, repeat-x, repeat-y, repeat-y;
  box-shadow: none;
}
.app .window-inner::before,
.app .chat-messages::before,
.app .battle-players::before,
.app .garage-strip .item-grid::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 1px;
  background: #06260a;
  pointer-events: none;
}
.app .garage-info-inner::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 1px;
  pointer-events: none;
}
.app .window-inner,
.app .chat-messages,
.app .battle-players,
.app .garage-info-inner,
.app .garage-strip .item-grid {
  scrollbar-width: thin;
  scrollbar-color: #417c18 #071609;
}
.app .window-inner::-webkit-scrollbar,
.app .chat-messages::-webkit-scrollbar,
.app .battle-players::-webkit-scrollbar,
.app .garage-info-inner::-webkit-scrollbar,
.app .garage-strip .item-grid::-webkit-scrollbar {
  width: 15px;
  height: 15px;
}
.app .window-inner::-webkit-scrollbar-track,
.app .chat-messages::-webkit-scrollbar-track,
.app .battle-players::-webkit-scrollbar-track,
.app .garage-info-inner::-webkit-scrollbar-track,
.app .garage-strip .item-grid::-webkit-scrollbar-track {
  background: #0c2710;
  box-shadow: inset 0 0 0 1px #243821;
}
.app .window-inner::-webkit-scrollbar-thumb,
.app .chat-messages::-webkit-scrollbar-thumb,
.app .battle-players::-webkit-scrollbar-thumb,
.app .garage-info-inner::-webkit-scrollbar-thumb,
.app .garage-strip .item-grid::-webkit-scrollbar-thumb {
  min-height: 24px;
  background: linear-gradient(90deg, #214c12, #4a861c 48%, #183d0d);
  border: 1px solid #6d9d35;
}
.app .window-inner::-webkit-scrollbar-button:single-button:vertical:decrement,
.app .chat-messages::-webkit-scrollbar-button:single-button:vertical:decrement,
.app .battle-players::-webkit-scrollbar-button:single-button:vertical:decrement,
.app .garage-info-inner::-webkit-scrollbar-button:single-button:vertical:decrement {
  display: block;
  width: 15px;
  height: 14px;
  background: url("./assets/ui/ui-chat/scroll-up.png") center/15px 14px no-repeat;
}
.app .window-inner::-webkit-scrollbar-button:single-button:vertical:increment,
.app .chat-messages::-webkit-scrollbar-button:single-button:vertical:increment,
.app .battle-players::-webkit-scrollbar-button:single-button:vertical:increment,
.app .garage-info-inner::-webkit-scrollbar-button:single-button:vertical:increment {
  display: block;
  width: 15px;
  height: 14px;
  background: url("./assets/ui/ui-chat/scroll-down.png") center/15px 14px no-repeat;
}


.app .persistent-chat .chat-messages {
  position: relative;
  height: calc(100% - 47px);
  overflow-x: hidden;
  overflow-y: auto;
  padding: 4px 18px 4px 5px;
  color: #20ee26;
  font: 11px/14px Arial, sans-serif;
}
.app .persistent-chat .chat-form {
  right: 11px;
  bottom: 11px;
  left: 11px;
  height: 30px;
  gap: 5px;
}
.app .persistent-chat .chat-form .ui-input,
.app .battle-link input,
.app .battle-chat-form input {
  height: 30px;
  min-width: 0;
  border: 0;
  border-radius: 0;
  outline: 0;
  padding: 3px 7px 4px;
  background-color: transparent;
  background-image:
    url("./assets/ui/ui-components/input/27_assets.input.InputLeft.png"),
    url("./assets/ui/ui-components/input/25_assets.input.InputRight.png"),
    url("./assets/ui/ui-components/input/29_assets.input.InputCenter.png");
  background-position: left top, right top, 5px top;
  background-repeat: no-repeat, no-repeat, repeat-x;
  background-size: 5px 30px, 5px 30px, 1px 30px;
  box-shadow: none;
  color: #efefef;
  font: 11px Arial, sans-serif;
}
.app .persistent-chat .chat-form .ui-button {
  width: 80px;
  min-width: 80px;
  height: 30px;
  padding-right: 5px;
  padding-left: 5px;
  font-size: 10px;
}
.app .chat-message {
  min-height: 14px;
  padding: 0 1px;
  color: #20ee26;
  font: 11px/14px Arial, sans-serif;
  text-shadow: 0 1px #001a02;
}
.app .chat-message.system { color: #4dff53; }
.app .chat-message.system.yellow { color: #e7ff14; }
.app .chat-rank {
  width: 13px;
  height: 13px;
  margin-right: 1px;
  vertical-align: -3px;
}
.app .chat-arrow {
  width: 10px;
  height: 5px;
  margin: 0 3px;
  vertical-align: 1px;
}
.app .chat-name,
.app .chat-colon { color: #4bff3f; }
.app .chat-message.to-self,
.app .chat-message.selected-user {
  background: rgba(44, 112, 28, .48);
}


.app .battle-column .window-inner {
  position: relative;
  height: calc(100% - 47px);
  padding: 4px 18px 4px 4px;
  overflow-y: auto;
}
.app .battle-list {
  height: auto;
  min-height: 100%;
  overflow: visible;
}
.app .battle-row {
  position: relative;
  min-height: 20px;
  height: 20px;
  grid-template-columns: minmax(0, 1fr) 54px minmax(95px, .52fr);
  gap: 5px;
  padding: 0 5px;
  border: 0;
  border-bottom: 1px solid #0b3c09;
  background: #075c04;
  color: #38e92d;
  font: 11px/19px Arial, sans-serif;
  text-shadow: 0 1px #001800;
}
.app .battle-row:hover { background: #0b7005; color: #71ff62; }
.app .battle-row.selected { background: #64ff38; color: #174a12; text-shadow: none; }
.app .battle-row.disabled {
  background: #4e514f;
  color: #bbb;
  cursor: default;
  filter: saturate(.35);
}
.app .battle-row .battle-title {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.app .battle-lock {
  width: 11px;
  height: 13px;
  margin: 0 4px 0 1px;
  vertical-align: -2px;
}
.app .battle-row .battle-map {
  min-width: 0;
  overflow: hidden;
  text-align: right;
  text-overflow: ellipsis;
  white-space: nowrap;
  --battle-map-right: 6px !important;
}
.app .battle-row .battle-count {
  position: relative;
  width: 54px;
  height: 14px;
  border: 0;
  border-radius: 0;
  background: none;
  color: #fff;
  font: 10px/14px Arial, sans-serif;
  text-shadow: 0 1px #000;
}
.app .battle-row .battle-count > img {
  position: absolute;
  z-index: 0;
  inset: 0;
  width: 54px;
  height: 14px;
}
.app .battle-row .battle-count b {
  position: relative;
  z-index: 1;
  font-weight: normal;
}
.app .battle-row .dm-count b { display: block; text-align: center; }
.app .battle-row .team-count .red-count,
.app .battle-row .team-count .blue-count {
  position: absolute;
  top: 0;
  width: 25px;
  text-align: center;
}
.app .battle-row .team-count .red-count { left: 2px; }
.app .battle-row .team-count .blue-count { right: 2px; }
.app .battle-column .window-action {
  right: 11px;
  bottom: 11px;
  width: 84px;
  min-width: 84px;
}

/* Battle information — exact three-block vertical composition. */
.app .info-column { padding: 11px; }
.app .selected-battle-info {
  position: relative;
  height: 100%;
  overflow: hidden;
  color: #eee;
  font: 11px Arial, sans-serif;
}
.app .battle-preview {
  height: 309px;
  min-height: 170px;
  border: 0;
  border-radius: 0;
  background: #061307;
  box-shadow: none;
}
.app .battle-preview-caption {
  top: 10px;
  left: 10px;
  gap: 4px;
  color: #fff;
  font: 11px/16px Arial, sans-serif;
}
.app .battle-preview-caption strong { font-size: 16px; font-weight: normal; }
.app .spectator-button {
  top: 10px;
  right: 8px;
  width: 91px;
  min-width: 91px;
}
.app .battle-link {
  height: 35px;
  gap: 5px;
}
.app .battle-link input {
  flex: 1 1 auto;
  width: 0;
  height: 30px;
}
.app .battle-link .ui-button {
  width: 112px;
  min-width: fit-content;
  padding: 0 4px;
}
.app .battle-players {
  position: relative;
  height: calc(100% - 388px);
  min-height: 215px;
  overflow-x: hidden;
  overflow-y: auto;
  padding-right: 15px;
}
.app .battle-players > div {
  height: 19px;
  padding: 1px 7px 1px 15px;
  border: 0;
  border-bottom: 1px solid #083c06;
  background: #075d04;
  color: #3ce934;
  font: 11px/16px Arial, sans-serif;
}
.app .battle-players > div > span > img {
  width: 11px;
  height: 11px;
}
.app .battle-players .empty-player { color: #3a8b35; }
.app .selected-battle-actions {
  right: 11px;
  bottom: 11px;
  left: 11px;
  height: 30px;
}
.app .selected-battle-actions .ui-button {
  min-width: 112px;
}


.app .garage-page,
.app .garage-window { width: 100%; height: 100%; }
.app .garage-window {
  display: grid;
  grid-template-rows: minmax(190px, 1fr) 169px 169px;
  overflow: hidden;
}
.app .garage-upper {
  min-height: 0;
  grid-template-columns: minmax(0, 1fr) 412px;
  gap: 0;
}
.app .garage-preview {
  min-width: 0;
  overflow: hidden;
  border-radius: 0;
  background: #080a09;
}
.app .garage-preview::after { display: none; }
.app #garage-preview-canvas { inset: 11px; }
.app .garage-preview > span {
  z-index: 5;
  color: #6f746f;
  font: bold 13px Arial, sans-serif;
}
.app .garage-item-panel {
  position: relative;
  min-width: 0;
  overflow: hidden;
}
.app .garage-info-inner {
  isolation: isolate;
  position: absolute;
  z-index: 1;
  top: 11px;
  right: 11px;
  bottom: 64px;
  left: 11px;
  overflow-x: hidden;
  overflow-y: auto;
  padding: 5px 19px 8px 7px;
  color: #19df20;
  font: 11px/14px Arial, sans-serif;
}
.app .garage-info-inner h2 {
  margin: 0 0 6px;
  color: #19e322;
  font: normal 16px/20px Arial, sans-serif;
  text-shadow: 0 1px #001600;
}
.app .garage-info-inner p { margin: 0 0 7px; }
.app .garage-info-inner .experience-preview {
  display: block;
  width: 126px;
  height: 112px;
  margin: 3px auto 1px;
  object-fit: contain;
}
.app .garage-description-block {
  position: relative;
  min-height: 92px;
  margin-top: 5px;
}
.app .garage-info-inner .item-info-preview {
  position: absolute;
  top: 3px;
  left: 1px;
  float: none;
  width: 120px;
  height: 86px;
  margin: 0;
  object-fit: contain;
}
.app .garage-info-inner .item-info-preview + .item-description {
  margin-left: 134px;
}
.app .garage-info-inner .item-description {
  margin-top: 0;
  margin-right: 0;
  margin-bottom: 6px;
  color: #19d920;
  line-height: 14px;
  text-align: left;
}
.app .garage-info-inner dl {
  display: grid;
  grid-template-columns: 174px 1fr;
  gap: 2px 7px;
  margin: 5px 0 0;
}
.app .garage-info-inner dt { color: #139e18; }
.app .garage-info-inner dd { margin: 0; color: #22ed2a; }
.app .garage-property-panel {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 2px;
  margin: 3px 0 5px;
}
.app .garage-property {
  min-width: 0;
  display: grid;
  justify-items: center;
  gap: 1px;
  color: #20e829;
  font-size: 10px;
}
.app .garage-property-icon {
  position: relative;
  display: block;
  width: 32px;
  height: 32px;
  background: url("./assets/ui/ui-garage/property-icons/ItemInfoPanel_backIcon.png") center / 32px 32px no-repeat;
}
.app .garage-property-icon img {
  position: absolute;
  left: 1px;
  top: 1px;
  width: 29px;
  height: 29px;
  object-fit: contain;
}
.app .garage-mod-table {
  width: 100%;
  margin: 0 0 5px;
  border-collapse: collapse;
  table-layout: fixed;
  color: #22e62a;
  font: 10px/14px Arial, sans-serif;
}
.app .garage-mod-table th,
.app .garage-mod-table td {
  height: 14px;
  padding: 0 2px;
  overflow: hidden;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: normal;
}
.app .garage-mod-table th img {
  width: 18px;
  height: 18px;
  display: block;
  margin: 0 auto;
  object-fit: contain;
}
.app .garage-mod-table th span { display: block; font-size: 9px; }
.app .garage-mod-table tr.selected { background: #5dff35; color: #15520f; }
.app .garage-mod-table .mod-dots img { width: 34px; height: 7px; object-fit: contain; }
.app .garage-mod-table .mod-cost { text-align: right; }
.app .garage-mod-table .mod-cost > img:not(.mod-rank) { width: 8px; height: 10px; margin-left: 2px; vertical-align: -1px; }
.app .garage-mod-table .mod-rank { width: 11px; height: 11px; margin-left: 3px; vertical-align: -2px; }
.app .garage-panel-actions {
  position: absolute;
  z-index: 3;
  right: 11px;
  bottom: 11px;
  left: 11px;
  height: 50px;
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  gap: 7px;
}
.app .garage-panel-actions .garage-number-stepper { margin-right: auto; }
.app .garage-big-button {
  position: relative;
  width: 120px;
  min-width: 120px;
  height: 50px;
  border: 0;
  border-radius: 0;
  padding: 0;
  background-color: transparent;
  background-image:
    url("./assets/ui/ui-components/button/506_assets.button.button_def_UP_LEFT.png"),
    url("./assets/ui/ui-components/button/505_assets.button.button_def_UP_RIGHT.png"),
    url("./assets/ui/ui-components/button/507_assets.button.button_def_UP_CENTER.png");
  background-position: left top, right top, 7px top;
  background-repeat: no-repeat, no-repeat, repeat-x;
  background-size: 7px 50px, 7px 50px, 201px 50px;
  color: #eee;
  text-shadow: 0 1px #000;
}
.app .garage-big-button:hover:not(:disabled) {
  background-image:
    url("./assets/ui/ui-components/button/503_assets.button.button_def_OVER_LEFT.png"),
    url("./assets/ui/ui-components/button/502_assets.button.button_def_OVER_RIGHT.png"),
    url("./assets/ui/ui-components/button/504_assets.button.button_def_OVER_CENTER.png");
}
.app .garage-big-button:active:not(:disabled) {
  padding-top: 1px;
  background-image:
    url("./assets/ui/ui-components/button/500_assets.button.button_def_DOWN_LEFT.png"),
    url("./assets/ui/ui-components/button/499_assets.button.button_def_DOWN_RIGHT.png"),
    url("./assets/ui/ui-components/button/501_assets.button.button_def_DOWN_CENTER.png");
}
.app .garage-big-button:disabled { opacity: .55; cursor: default; }
.app .garage-big-button > span {
  position: absolute;
  top: 7px;
  right: 2px;
  left: 2px;
  font: 11px/13px Arial, sans-serif;
  text-align: center;
}
.app .garage-big-button > small {
  position: absolute;
  right: 3px;
  bottom: 6px;
  left: 3px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  color: #18ef20;
  font: 10px/12px Arial, sans-serif;
}
.app .garage-big-button > small.not-enough { color: #ff4e00; }
.app .garage-big-button small img { width: 8px; height: 10px; object-fit: contain; }
.app .garage-big-button small em { margin-left: 2px; font-style: normal; }
.app .garage-big-button small img.small-rank { width: 11px; height: 11px; }
.app .garage-number-stepper {
  position: relative;
  width: 70px;
  height: 30px;
}
.app .garage-number-stepper input {
  width: 52px;
  height: 30px;
  border: 0;
  padding: 2px 5px;
  appearance: textfield;
  background-color: transparent;
  background-image:
    url("./assets/ui/ui-components/input/27_assets.input.InputLeft.png"),
    url("./assets/ui/ui-components/input/25_assets.input.InputRight.png"),
    url("./assets/ui/ui-components/input/29_assets.input.InputCenter.png");
  background-position: left top, right top, 5px top;
  background-repeat: no-repeat, no-repeat, repeat-x;
  background-size: 5px 30px, 5px 30px, 1px 30px;
  color: #eee;
  text-align: center;
  outline: 0;
}
.app .garage-number-stepper input::-webkit-inner-spin-button { appearance: none; }
.app .garage-number-stepper button {
  position: absolute;
  right: 0;
  width: 18px;
  height: 15px;
  border: 0;
  padding: 0;
  background-color: transparent;
  background-position: center;
  background-repeat: no-repeat;
}
.app .garage-number-stepper .step-up { top: 0; background-image: url("./assets/ui/ui-garage/stepper/1.png"); }
.app .garage-number-stepper .step-down { bottom: 0; background-image: url("./assets/ui/ui-garage/stepper/3.png"); }


.app .garage-strip {
  position: relative;
  width: calc(100% - 27px);
  height: 169px;
  min-height: 169px;
  margin-left: 27px;
  border-radius: 0;
  overflow: visible;
}
.app .garage-vertical-header {
  top: 50%;
  left: -26px;
  width: 43px;
  height: 146px;
  pointer-events: none;
}
.app .garage-strip .item-grid {
  isolation: isolate;
  position: absolute;
  top: 15px;
  right: 11px;
  bottom: 6px;
  left: 15px;
  height: auto;
  display: flex;
  align-items: flex-start;
  align-content: flex-start;
  gap: 0;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 0 0 15px;
}
.app .garage-strip .item-card {
  position: relative;
  flex: 0 0 200px;
  width: 200px;
  min-width: 200px;
  height: 130px;
  min-height: 130px;
  margin: 0 3px 0 0;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 0;
  background-color: transparent;
  background-position: 0 0;
  background-repeat: no-repeat;
  background-size: 200px 130px;
  filter: none;
  cursor: pointer;
}
.app .garage-strip .item-card:last-child { margin-right: 0; }
.app .garage-strip .item-card:hover { filter: brightness(1.06); }
.app .garage-strip .garage-item-preview {
  position: absolute;
  z-index: 1;
  top: 18px;
  left: 19px;
  width: 167px;
  height: 94px;
  object-fit: contain;
}
.app .garage-strip .garage-item-preview.missing-preview {
  top: 47px;
  left: 88px;
  width: 21px;
  height: 21px;
}
.app .garage-strip .item-card h3 {
  position: absolute;
  z-index: 4;
  top: 2px;
  left: 3px;
  max-width: 135px;
  margin: 0;
  overflow: hidden;
  color: #27e62e;
  font: normal 11px/14px Arial, sans-serif;
  text-overflow: ellipsis;
  text-shadow: 0 1px #001700;
  white-space: nowrap;
}
.app .garage-item-price {
  position: absolute;
  z-index: 4;
  top: 2px;
  right: 4px;
  color: #26e82e;
  font: 11px/14px Arial, sans-serif;
  text-shadow: 0 1px #001700;
}
.app .garage-item-price img {
  width: 8px;
  height: 10px;
  margin-left: 2px;
  vertical-align: -1px;
}
.app .garage-item-mod {
  position: absolute;
  z-index: 4;
  top: 7px;
  right: 5px;
  left: auto;
  width: 36px;
  height: 7px;
  object-fit: contain;
}
.app .garage-item-count {
  position: absolute;
  z-index: 4;
  right: 10px;
  bottom: 8px;
  color: #27e72e;
  font: 16px/18px Arial, sans-serif;
  text-shadow: 0 1px #001700;
}
.app .garage-inventory-icon {
  position: absolute;
  z-index: 4;
  top: 84px;
  left: 6px;
  width: 40px;
  height: 40px;
  object-fit: contain;
}
.app .garage-required-rank {
  position: absolute;
  z-index: 5;
  top: 60px;
  left: 135px;
  width: 56px;
  height: 64px;
  object-fit: contain;
}
.app .garage-discount-ribbon {
  position: absolute;
  z-index: 5;
  bottom: 0;
  left: 0;
  width: 54px;
  height: 56px;
}
.app .garage-item-discount {
  position: absolute;
  z-index: 6;
  bottom: 12px;
  left: -5px;
  width: 45px;
  transform: rotate(45deg);
  color: #fff;
  font: bold 13px/14px Arial, sans-serif;
  text-align: center;
  text-shadow: 0 1px 2px #000;
}
.app .garage-strip .item-grid.dragging { cursor: grabbing; }


.app .battle-chat-messages {
  font: 13px/18px Arial, sans-serif;
}
.app .battle-chat-message { min-height: 18px; }

@media (max-width: 1250px) {
  .app .garage-upper { grid-template-columns: minmax(0, 1fr) 380px; }
  .app .garage-info-inner dl { grid-template-columns: 145px 1fr; }
}


.app .lobby-shell,
.app .view-stack,
.app .view,
.app .garage-window,
.app .garage-upper {
  overflow: visible;
}

.app .garage-preview,
.app .garage-item-panel {
  overflow: visible;
}


/* 2026-06-14: garage interaction/alignment correction. */
.app .garage-vertical-header {
  top: 50%;
  left: -26px;
  width: 43px;
  height: 146px;
  pointer-events: none;
}
.app .garage-strip .item-card,
.app .garage-strip .item-card * {
  -webkit-user-drag: none;
  user-select: none;
}
.app .garage-strip .item-grid.dragging .garage-item-card {
  cursor: grabbing;
}

/* Garage actions follow ItemInfoPanel.posButtons(): 104x33, left buy/upgrade/open and right equip. */
.app .garage-panel-actions {
  height: 35px;
  align-items: flex-end;
  justify-content: flex-start;
  gap: 10px;
}
.app .garage-big-button {
  width: 104px;
  min-width: 104px;
  height: 33px;
  background-size: 7px 30px, 7px 30px, 201px 30px;
  background-position: left 3px, right 3px, 7px 3px;
}
.app .garage-big-button > span { top: 6px; font-size: 11px; line-height: 12px; }
.app .garage-big-button > small { bottom: 3px; font-size: 9px; line-height: 10px; }
.app .garage-panel-actions .garage-number-stepper { margin-right: 0; }
.app .garage-action-buy:not(:last-child),
.app .garage-action-upgrade,
.app .garage-action-open { margin-right: auto; }
.app .garage-action-mount { margin-left: auto; }
.app .garage-action-skin-mount,
.app .garage-action-skin-buy { margin-left: auto; }
.app .garage-panel-actions.has-skin .garage-action-mount { margin-left: 0; }
.app .garage-big-button > small.rank-locked { color: #c0c0c0; }
.app .garage-number-stepper.disabled { opacity: .7; }
.app .garage-number-stepper button:disabled { cursor: default; }
.app .garage-info-inner h2 time {
  float: right;
  color: #18d91f;
  font-size: 16px;
  line-height: 20px;
  font-weight: normal;
}
.app .garage-kit-info {
  clear: both;
  margin-top: 7px;
  border: 1px solid #1c5c1f;
  padding: 5px 7px;
  background: rgba(0, 40, 6, .45);
}
.app .garage-kit-info > div { display: flex; justify-content: space-between; gap: 10px; }
.app .garage-kit-info b { font-weight: normal; color: #ffffff; }
.app .garage-kit-info .garage-kit-head,
.app .garage-kit-info .garage-kit-total,
.app .garage-kit-info .garage-kit-discount { color: #1bdf22; }
.app .garage-kit-info .garage-kit-total { margin-top: 4px; padding-top: 3px; border-top: 1px solid rgba(60, 145, 50, .45); }
.app .garage-kit-info .garage-kit-profit { color: #ffffff; }
.app .garage-strip .garage-item-card.market h3,
.app .garage-strip .garage-item-card.market .garage-item-price { color: #c0c0c0; }
.app .garage-strip .garage-item-card.mounted.weapon h3 { color: #84a867; }
.app .garage-strip .garage-item-card.mounted.armor h3 { color: #8f9ca4; }
.app .garage-strip .garage-item-card.mounted.paint h3 { color: #a899ae; }
.app .garage-strip .garage-item-card.locked h3,
.app .garage-strip .garage-item-card.locked .garage-item-price { color: #c0c0c0; }


.gift-overlay,
.gift-opened-overlay {
  position: fixed;
  z-index: 1100;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgb(0 0 0 / 58%);
  backdrop-filter: blur(1.5px);
}
.gift-window {
  width: 703px;
  height: 553px;
  box-sizing: border-box;
  padding: 28px 30px 12px;
  color: #78e75f;
  overflow: hidden;
}
.gift-window::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 10px 10px 45px;
  border: 1px solid #1c5e22;
  border-radius: 4px;
  background: linear-gradient(#07350d, #031f07);
  box-shadow: inset 0 0 16px #000b, inset 0 0 0 1px #0b1a0d;
}
.gift-roller {
  position: relative;
  width: 643px;
  height: 128px;
  display: flex;
  gap: 14px;
  overflow: hidden;
  border: 1px solid #1d5f24;
  background: #061f0a;
  box-shadow: inset 0 0 10px #000;
}
.gift-roller::after {
  content: "";
  position: absolute;
  z-index: 3;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 3px;
  translate: -50% 0;
  background: #f1dd70;
  box-shadow: 0 0 6px #fff58c;
}
.gift-card {
  position: relative;
  flex: 0 0 185px;
  height: 117px;
  margin-top: 4px;
  border: 1px solid #235c28;
  background: linear-gradient(#17451d, #082a0e);
  box-shadow: inset 0 0 10px #0009;
  color: #d8efd9;
  text-align: center;
}
.gift-card img {
  width: 154px;
  height: 86px;
  object-fit: contain;
  display: block;
  margin: 4px auto 0;
}
.gift-card span {
  position: absolute;
  left: 5px;
  right: 32px;
  bottom: 3px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font: 11px Arial, sans-serif;
}
.gift-card b {
  position: absolute;
  right: 5px;
  bottom: 3px;
  font: bold 11px Arial, sans-serif;
}
.gift-overlay.rolling .gift-roller > .gift-card {
  animation: gift-roll-game 9.7s cubic-bezier(.15, .73, .23, 1) both;
}
@keyframes gift-roll-game {
  from { transform: translateX(0); }
  to { transform: translateX(-2020px); }
}
.gift-controls {
  height: 64px;
  display: grid;
  grid-template-columns: 1fr 151px 1fr;
  align-items: center;
  column-gap: 20px;
  color: #75e15f;
  font: 12px Arial, sans-serif;
}
.gift-opened { text-align: right; }
.gift-left { text-align: left; }
.gift-controls .gift-open {
  width: 151px;
  height: 30px;
}
.gift-result {
  height: 52px;
  margin: 0 0 8px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 9px;
  color: #c9e9c6;
  font: 13px Arial, sans-serif;
}
.gift-result img {
  width: 68px;
  height: 44px;
  object-fit: contain;
}
.gift-window .gift-close {
  position: absolute;
  right: 10px;
  bottom: 11px;
  min-width: 93px;
}
.gift-window button:disabled,
.gift-opened-window button:disabled {
  opacity: .55;
  cursor: default;
}
.gift-card.rarity-1,
.gift-result .rarity-1 { color: #54dfff; }
.gift-card.rarity-2,
.gift-result .rarity-2 { color: #d865ff; }
.gift-card.rarity-3,
.gift-result .rarity-3 { color: #ff6f36; }
.gift-card.rarity-4,
.gift-result .rarity-4 { color: #fff25a; }

.gift-opened-overlay { z-index: 1110; }
.gift-opened-window {
  position: relative;
  width: 559px;
  height: 505px;
  box-sizing: border-box;
  display: grid;
  place-items: center;
  padding: 28px 25px 58px;
  overflow: hidden;
  text-align: center;
  color: #fff;
  background-color: #101510;
}
.gift-opened-window::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 11px 11px 43px;
  border: 1px solid #2c6730;
  background: radial-gradient(circle at center, rgb(65 157 73 / 42%), rgb(2 18 5 / 96%) 64%);
  box-shadow: inset 0 0 30px #000;
}
.gift-opened-shine {
  position: absolute;
  width: 410px;
  height: 410px;
  border-radius: 50%;
  background: conic-gradient(from 15deg, transparent 0 6deg, rgb(255 255 255 / 30%) 6deg 9deg, transparent 9deg 22deg);
  filter: blur(.4px);
  animation: gift-shine-spin 8s linear infinite;
}
@keyframes gift-shine-spin { to { transform: rotate(360deg); } }
.gift-opened-window > img {
  position: relative;
  z-index: 2;
  width: 240px;
  height: 160px;
  object-fit: contain;
  filter: drop-shadow(0 0 16px #fff8);
}
.gift-opened-window h2 {
  position: absolute;
  z-index: 2;
  top: 330px;
  left: 35px;
  right: 35px;
  margin: 0;
  font: 35px/1.1 Arial, sans-serif;
  text-shadow: 0 2px 4px #000;
}
.gift-opened-window button {
  position: absolute;
  z-index: 2;
  bottom: 10px;
  left: 50%;
  width: 93px;
  translate: -50% 0;
}
.gift-opened-overlay.rarity-1 .gift-opened-window::after { background: radial-gradient(circle, rgb(0 162 255 / 48%), rgb(2 18 25 / 96%) 64%); }
.gift-opened-overlay.rarity-2 .gift-opened-window::after { background: radial-gradient(circle, rgb(173 48 255 / 48%), rgb(21 4 29 / 96%) 64%); }
.gift-opened-overlay.rarity-3 .gift-opened-window::after { background: radial-gradient(circle, rgb(255 85 20 / 52%), rgb(31 9 2 / 96%) 64%); }
.gift-opened-overlay.rarity-4 .gift-opened-window::after { background: radial-gradient(circle, rgb(255 226 30 / 58%), rgb(31 25 2 / 96%) 64%); }


.app #shop-list .garage-item-mod { display: none !important; }


.app .garage-strip .garage-item-card.market:not(.locked) h3,
.app .garage-strip .garage-item-card.market:not(.locked) .garage-item-price {
  color: #59ff32;
}
.app .garage-strip .garage-item-card.locked h3,
.app .garage-strip .garage-item-card.locked .garage-item-price {
  color: #c0c0c0;
}

/* ItemInfoPanel uses embedded 3-slice bitmaps, not a free-floating HTML table. */
.app .garage-upgrade-panel {
  box-sizing: border-box;
  width: 100%;
  height: 134px;
  margin: 3px 0 6px;
  border-left: 7px solid transparent;
  border-right: 7px solid transparent;
  padding: 6px 0 0;
  overflow: hidden;
  background-image:
    url("./assets/ui/ui-garage/property-icons/ItemInfoPanel_bitmapUpgradeTableLeft.png"),
    url("./assets/ui/ui-garage/property-icons/ItemInfoPanel_bitmapUpgradeTableRight.png"),
    url("./assets/ui/ui-garage/property-icons/ItemInfoPanel_bitmapUpgradeTableCenter.png");
  background-origin: border-box, border-box, padding-box;
  background-clip: border-box, border-box, padding-box;
  background-position: left top, right top, left top;
  background-repeat: no-repeat, no-repeat, repeat-x;
  background-size: 7px 134px, 7px 134px, 1px 134px;
}
.app .garage-upgrade-panel .garage-mod-table {
  width: 100%;
  height: 122px;
  margin: 0;
  border: 0;
  border-collapse: collapse;
  table-layout: fixed;
  color: #00e714;
  font: 10px/15px Arial, sans-serif;
}
.app .garage-upgrade-panel .garage-mod-table col.mod-col { width: 41px; }
.app .garage-upgrade-panel .garage-mod-table col.rank-col { width: 17px; }
.app .garage-upgrade-panel .garage-mod-table col.cost-col { width: 51px; }
.app .garage-upgrade-panel .garage-mod-table thead,
.app .garage-upgrade-panel .garage-mod-table thead tr { height: 48px; }
.app .garage-upgrade-panel .garage-mod-table th,
.app .garage-upgrade-panel .garage-mod-table td {
  box-sizing: border-box;
  height: 17px;
  padding: 0 1px;
  border: 0;
  overflow: visible;
  color: inherit;
  text-align: center;
  text-overflow: clip;
  white-space: nowrap;
  font-weight: normal;
}
.app .garage-upgrade-panel .garage-mod-table th.property-head {
  vertical-align: top;
}
.app .garage-upgrade-panel .garage-mod-table th.property-head img {
  display: block;
  width: 32px;
  height: 32px;
  margin: 0 auto;
  object-fit: contain;
}
.app .garage-upgrade-panel .garage-mod-table th.property-head span {
  display: block;
  margin-top: 1px;
  color: #00e714;
  font-size: 10px;
  line-height: 11px;
}
.app .garage-upgrade-panel .garage-mod-table th.mod-head {
  padding-top: 33px;
  vertical-align: top;
  color: #00e714;
  font-size: 10px;
  line-height: 11px;
}
.app .garage-upgrade-panel .garage-mod-table tbody tr {
  height: 17px;
  color: #00e714;
}
.app .garage-upgrade-panel .garage-mod-table tbody tr.selected {
  color: #0a5401;
}
.app .garage-upgrade-panel .garage-mod-table tbody tr.selected td {
  color: #0a5401;
  background-image: url("./assets/ui/ui-garage/mod-table/ModTable_bitmapUpgradeSelectionCenter.png");
  background-position: left top;
  background-repeat: repeat-x;
  background-size: 1px 18px;
}
.app .garage-upgrade-panel .garage-mod-table tbody tr.selected td:first-child {
  border-left: 4px solid transparent;
  background-image:
    url("./assets/ui/ui-garage/mod-table/ModTable_bitmapUpgradeSelectionLeft.png"),
    url("./assets/ui/ui-garage/mod-table/ModTable_bitmapUpgradeSelectionCenter.png");
  background-origin: border-box, padding-box;
  background-clip: border-box, padding-box;
  background-position: left top, left top;
  background-repeat: no-repeat, repeat-x;
  background-size: 4px 18px, 1px 18px;
}
.app .garage-upgrade-panel .garage-mod-table tbody tr.selected td:last-child {
  border-right: 4px solid transparent;
  background-image:
    url("./assets/ui/ui-garage/mod-table/ModTable_bitmapUpgradeSelectionRight.png"),
    url("./assets/ui/ui-garage/mod-table/ModTable_bitmapUpgradeSelectionCenter.png");
  background-origin: border-box, padding-box;
  background-clip: border-box, padding-box;
  background-position: right top, left top;
  background-repeat: no-repeat, repeat-x;
  background-size: 4px 18px, 1px 18px;
}
.app .garage-upgrade-panel .garage-mod-table .mod-dots .upgrade-indicator {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  vertical-align: top;
}
.app .garage-upgrade-panel .garage-mod-table .mod-dots .upgrade-indicator img {
  display: block;
  width: 13px;
  height: 13px;
  object-fit: contain;
}
.app .garage-upgrade-panel .garage-mod-table .mod-rank-cell {
  width: 17px;
}
.app .garage-upgrade-panel .garage-mod-table .mod-rank {
  display: block;
  width: 13px;
  height: 13px;
  margin: 1px auto 0;
  object-fit: contain;
}
.app .garage-upgrade-panel .garage-mod-table .mod-cost {
  padding-right: 2px;
  text-align: right;
}
.app .garage-upgrade-panel .garage-mod-table .mod-cost span {
  display: inline-block;
  max-width: 38px;
  overflow: hidden;
  vertical-align: top;
  text-overflow: clip;
}
.app .garage-upgrade-panel .garage-mod-table .mod-cost > img {
  width: 8px;
  height: 10px;
  margin-left: 2px;
  vertical-align: -1px;
  object-fit: contain;
}

.app .garage-property-panel {
  box-sizing: border-box;
  width: 100%;
  height: 72px;
  margin: 3px 0 6px;
  border-left: 7px solid transparent;
  border-right: 7px solid transparent;
  padding: 6px 0 0;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 10px;
  overflow: hidden;
  background-image:
    url("./assets/ui/ui-garage/property-icons/ItemInfoPanel_bitmapPropertiesLeft.png"),
    url("./assets/ui/ui-garage/property-icons/ItemInfoPanel_bitmapPropertiesRight.png"),
    url("./assets/ui/ui-garage/property-icons/ItemInfoPanel_bitmapPropertiesCenter.png");
  background-origin: border-box, border-box, padding-box;
  background-clip: border-box, border-box, padding-box;
  background-position: left top, right top, left top;
  background-repeat: no-repeat, no-repeat, repeat-x;
  background-size: 7px 72px, 7px 72px, 1px 72px;
}
.app .garage-property-panel .garage-property {
  width: 50px;
  min-width: 0;
  display: block;
  color: #00e714;
  font: 10px/11px Arial, sans-serif;
  text-align: center;
}
.app .garage-property-panel .garage-property img {
  display: block;
  width: 32px;
  height: 32px;
  margin: 0 auto;
  object-fit: contain;
}
.app .garage-property-panel .garage-property span {
  display: block;
  height: 11px;
  overflow: hidden;
  white-space: nowrap;
}
.app .garage-property-panel .garage-property-value { color: #00e714; }

.app .garage-property-panel .garage-property .garage-property-icon {
  position: relative;
  display: block;
  width: 32px;
  height: 32px;
  margin: 0 auto;
  overflow: visible;
  background: url("./assets/ui/ui-garage/property-icons/ItemInfoPanel_backIcon.png") center / 32px 32px no-repeat;
}
.app .garage-property-panel .garage-property .garage-property-icon img {
  position: absolute;
  display: block;
  left: 1px;
  top: 1px;
  width: 29px;
  height: 29px;
  margin: 0;
  object-fit: contain;
}


/* 2026-06-15: source-accurate TankInput caps and GarageButton controls. */
.auth-input,
.tank-input,
.app .persistent-chat .chat-form .ui-input,
.app .battle-link input,
.app .battle-chat-form input,
.app input[type="text"],
.app input[type="password"],
.app input[type="email"],
.app input:not([type]) {
  border: 0;
  border-radius: 0;
  outline: 0;
  background-color: transparent;
  background-image:
    url("./assets/ui/ui-components/input/27_assets.input.InputLeft.png"),
    url("./assets/ui/ui-components/input/25_assets.input.InputRight.png"),
    url("./assets/ui/ui-components/input/29_assets.input.InputCenter.png");
  background-position: left top, right top, center top;
  background-repeat: no-repeat, no-repeat, no-repeat;
  background-size: 5px 30px, 5px 30px, calc(100% - 10px) 30px;
  box-shadow: none;
  -webkit-appearance: none;
  appearance: none;
}
.auth-input.invalid {
  background-image:
    url("./assets/ui/ui-components/input/26_assets.input.InputLeftWrong.png"),
    url("./assets/ui/ui-components/input/24_assets.input.InputRightWrong.png"),
    url("./assets/ui/ui-components/input/28_assets.input.InputCenterWrong.png");
  background-position: left top, right top, center top;
  background-repeat: no-repeat, no-repeat, no-repeat;
  background-size: 5px 30px, 5px 30px, calc(100% - 10px) 30px;
}

.app .garage-panel-actions {
  height: 50px;
  align-items: flex-end;
  justify-content: flex-start;
  gap: 10px;
}
.app .garage-button {
  position: relative;
  width: 120px;
  min-width: 120px;
  height: 50px;
  border: 0;
  border-radius: 0;
  padding: 0;
  overflow: hidden;
  background-color: transparent;
  background-image:
    url("./assets/ui/ui-components/bigbutton/up-left.png"),
    url("./assets/ui/ui-components/bigbutton/up-right.png"),
    url("./assets/ui/ui-components/bigbutton/up-center.png");
  background-position: left top, right top, center top;
  background-repeat: no-repeat, no-repeat, no-repeat;
  background-size: 7px 50px, 7px 50px, calc(100% - 14px) 50px;
  color: #eee;
  cursor: pointer;
  font-family: Arial, Helvetica, sans-serif;
  font-weight: normal;
  text-align: center;
  text-shadow: 0 1px 1px rgb(0 0 0 / 72%);
  -webkit-font-smoothing: antialiased;
}
.app .garage-button:hover:not(:disabled) {
  background-image:
    url("./assets/ui/ui-components/bigbutton/over-left.png"),
    url("./assets/ui/ui-components/bigbutton/over-right.png"),
    url("./assets/ui/ui-components/bigbutton/over-center.png");
}
.app .garage-button:active:not(:disabled) {
  background-image:
    url("./assets/ui/ui-components/bigbutton/down-left.png"),
    url("./assets/ui/ui-components/bigbutton/down-right.png"),
    url("./assets/ui/ui-components/bigbutton/down-center.png");
}
.app .garage-button:disabled {
  cursor: default;
  opacity: 1;
  filter: none;
  background-image:
    url("./assets/ui/ui-components/bigbutton/off-left.png"),
    url("./assets/ui/ui-components/bigbutton/off-right.png"),
    url("./assets/ui/ui-components/bigbutton/off-center.png");
}
.app .garage-button-label {
  position: absolute;
  color: #ffffff;
  top: 14px;
  right: 2px;
  left: 2px;
  height: 20px;
  font: normal 13px/20px Arial, Helvetica, sans-serif;
  white-space: nowrap;
  pointer-events: none;
}
.app .garage-button.has-info .garage-button-label {
  top: 5px;
  line-height: 18px;
}
.app .garage-button-info {
  position: absolute;
  top: 24px;
  right: 2px;
  left: 2px;
  height: 18px;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  color: #eee;
  font: normal 11px/16px Arial, Helvetica, sans-serif;
  white-space: nowrap;
  pointer-events: none;
}
.app .garage-button-info[hidden],
.app .garage-button-cost[hidden],
.app .garage-button-rank[hidden] { display: none; }
.app .garage-button-cost,
.app .garage-button-rank {
  display: inline-flex;
  height: 16px;
  align-items: flex-start;
}
.app .garage-button-cost img {
  width: 9px;
  height: 11px;
  margin: 3px 0 0 5px;
  object-fit: contain;
}
.app .garage-button-rank { margin-left: 4px; }
.app .garage-button-rank img {
  width: 13px;
  height: 13px;
  margin: 2px 0 0 1px;
  object-fit: contain;
}
.app .garage-button-cost.shortage,
.app .garage-button-rank.shortage { color: #ff4e00; }
.app .garage-button:active:not(:disabled) .garage-button-label,
.app .garage-button:active:not(:disabled) .garage-button-info { transform: translateY(1px); }

.app .garage-number-stepper,
.app .garage-stepper {
  position: relative;
  width: 76px;
  min-width: 76px;
  height: 31px;
  display: flex;
  align-items: flex-start;
  gap: 1px;
  margin-right: 0;
}
.app .garage-stepper.disabled { opacity: .7; }
.app .garage-stepper-input {
  flex: 0 0 55px;
  width: 55px;
  min-width: 55px;
  height: 30px;
  border: 0;
  padding: 2px 5px 3px;
  background-color: transparent;
  background-image:
    url("./assets/ui/ui-components/input/27_assets.input.InputLeft.png"),
    url("./assets/ui/ui-components/input/25_assets.input.InputRight.png"),
    url("./assets/ui/ui-components/input/29_assets.input.InputCenter.png");
  background-position: left top, right top, center top;
  background-repeat: no-repeat, no-repeat, no-repeat;
  background-size: 5px 30px, 5px 30px, calc(100% - 10px) 30px;
  color: #eee;
  font: normal 12px/25px Arial, Helvetica, sans-serif;
  text-align: center;
  text-shadow: 0 1px 1px #000;
  outline: 0;
  appearance: textfield;
}
.app .garage-stepper-input::-webkit-inner-spin-button { appearance: none; }
.app .garage-stepper-input:disabled { color: #eee; opacity: 1; }
.app .garage-stepper-buttons {
  position: relative;
  flex: 0 0 20px;
  width: 20px;
  height: 31px;
  display: block;
  background: url("./assets/ui/ui-components/stepper/up.png") left top / 20px 31px no-repeat;
}
.app .garage-stepper-buttons.press-up { background-image: url("./assets/ui/ui-components/stepper/up-pressed.png"); }
.app .garage-stepper-buttons.press-down { background-image: url("./assets/ui/ui-components/stepper/down-pressed.png"); }
.app .garage-stepper-buttons button {
  position: absolute;
  left: 0;
  width: 20px;
  border: 0;
  padding: 0;
  background: transparent;
  cursor: pointer;
}
.app .garage-stepper-buttons button:disabled { cursor: default; }
.app .garage-stepper-up { top: 0; height: 15px; }
.app .garage-stepper-down { top: 15px; height: 16px; }
.app .garage-action-buy:not(:last-child),
.app .garage-action-upgrade,
.app .garage-action-open { margin-right: auto; }
.app .garage-action-mount { margin-left: auto; }
.app .garage-action-skin-mount,
.app .garage-action-skin-buy { margin-left: auto; }
.app .garage-panel-actions.has-skin .garage-action-mount { margin-left: 0; }
.app .garage-button-cash {
  display: inline-flex;
  height: 16px;
  align-items: flex-start;
  margin-left: 5px;
  color: #eee;
}

/* 2026-06-15: NumStepper is vertically centered against the 50px GarageButton. */
.app .garage-panel-actions .garage-number-stepper,
.app .garage-panel-actions .garage-stepper {
  align-self: center;
}


@font-face {
  font-family: "MyriadPro";
  src: local("MyriadPro"),
      url("./assets/font/MyriadProB_MyriadPro.ttf") format("truetype");
  font-style: normal;
  font-weight: 400;
  font-display: block;
}

:root,
body,
button,
input,
select,
textarea,
option,
*::before,
*::after {
  font-family: "MyriadPro", "Myriad Pro", Arial, sans-serif !important;
}

.topbar { top: 2px; }

.player-name {
  top: 4px;
  left: 5px;
  display: block;
  height: 19px;
  color: #12ff00;
  font-size: 12px;
  line-height: 17px;
  letter-spacing: 0;
}
.player-name strong,
.player-name span {
  display: inline;
  color: #12ff00;
  font-size: 12px;
  line-height: 17px;
}
.player-name #rank { margin-left: 8px; }
.player-name #profile-name { margin-left: 3px; }

.rating-line {
  top: 4px;
  right: 6px;
  height: 19px;
  color: #12ff00;
  font-size: 12px;
  line-height: 17px;
  letter-spacing: 0;
}
.rating-line span {
  margin-left: 3px;
  color: #12ff00;
  font-size: 12px;
}

.rank-up-button {
  right: 555px;
  width: 127px;
  min-width: 127px;
  padding: 4px 3px 0 24px;
  color: #ededed;
  font-size: 12px;
  line-height: 17px;
}
.rank-up-button:active { padding-top: 5px; }

.crystals {
  color: #12ff00;
  font-size: 12px;
  line-height: 17px;
}

.topbar nav .buy-button {
  padding: 4px 3px 0 18px;
  font-size: 12px;
  line-height: 17px;
}
.topbar nav button[data-view="battles"],
.topbar nav button[data-view="garage"]:not(.buy-button) {
  padding-top: 4px;
  font-size: 12px;
  line-height: 17px;
}


@font-face {
  font-family: "MyriadPro";
  src: local("MyriadPro"),
      local("Myriad Pro"),
      url("./assets/font/MyriadProB_MyriadPro.ttf") format("truetype"),
      url("./assets/font/MyriadProB_MyriadPro.ttf") format("truetype");
  font-style: normal;
  font-weight: 400;
  font-display: block;
}

html,
body,
button,
input,
select,
textarea,
option,
canvas,
*::before,
*::after {
  font-family: "MyriadPro", "Myriad Pro", Arial, sans-serif !important;
  font-synthesis: none;
}

.topbar {
  top: 2px;
  left: 0;
  right: auto;
  width: max(100%, 1000px);
  min-width: 1000px;
  height: 29px;
  overflow: visible;
}

#rank-icon {
  top: -2px;
  left: 2px;
  width: 56px;
  height: 64px;
}

/* PlayerInfo.indicators is placed at x=59. The three backgrounds below are
  the exact L, N and C1 timeline children from controls.panel.Indicators. */
.profile {
  position: absolute;
  z-index: 1;
  top: 0;
  left: 59px;
  right: auto;
  width: calc(100% - 723px);
  min-width: 277px;
  height: 29px;
  margin: 0;
  overflow: visible;
}

.xp-track {
  position: absolute;
  inset: auto;
  top: 0;
  left: 0;
  width: 100%;
  height: 29px;
  box-sizing: border-box;
  overflow: visible;
  border: 0;
  border-radius: 0;
  background-color: transparent;
  background-image:
    url("./assets/ui/mainpanel/indicators/exact/left.png"),
    url("./assets/ui/mainpanel/indicators/exact/connector.png"),
    url("./assets/ui/mainpanel/indicators/exact/center.png");
  background-position: 0 0, right 0, 7px 0;
  background-size: 7px 29px, 28px 29px, calc(100% - 35px) 29px;
  background-repeat: no-repeat;
  box-shadow: none;
}

/* Indicators.progress draws a 0x12ff00 rectangle with alpha .2 at (5,5),
  width=(N.width+4)*progress/10000 and height=16. */
.xp-track i {
  position: absolute;
  top: 5px;
  bottom: auto;
  left: 5px;
  width: calc(100% - 31px);
  height: 16px;
  min-width: 0;
  display: block;
  background: rgb(18 255 0 / 20%);
  box-shadow: none;
  transform: scaleX(0);
  transform-origin: 0 50%;
  will-change: transform;
}

.player-name {
  position: absolute;
  z-index: 3;
  top: 4px;
  left: 6px;
  right: auto;
  width: calc(100% - 235px);
  height: 18px;
  display: block;
  overflow: hidden;
  color: #12ff00;
  font-size: 12px;
  font-weight: 400;
  line-height: 18px;
  letter-spacing: 0;
  white-space: pre;
  text-overflow: clip;
  text-shadow: none;
  pointer-events: auto;
}

.rating-line {
  position: absolute;
  z-index: 3;
  top: 4px;
  right: 25px;
  width: auto;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0;
  color: #12ff00;
  font-size: 12px;
  font-weight: 400;
  line-height: 18px;
  letter-spacing: 0;
  white-space: nowrap;
  text-shadow: none;
}
.rating-line .rating-caption,
.rating-line b,
.rating-line span {
  margin: 0;
  color: #12ff00;
  font: inherit;
}
.rating-line b { font-weight: 400; }
.rating-line #rating-arrow {
  width: 9px;
  height: 8px;
  margin: 0 -1px 0 3px;
  flex: 0 0 9px;
  image-rendering: auto;
}

/* MainPanel.onResize(): buttonXP.x = minWidth - buttonBar.width -
  buttonXP.width + 5 - 105. With the Russian label its native width is 127. */
.rank-up-button {
  position: absolute;
  z-index: 4;
  top: 0;
  right: 556px;
  width: 127px;
  min-width: 127px;
  height: 29px;
  display: block !important;
  box-sizing: border-box;
  overflow: visible;
  border: 0;
  border-radius: 0;
  padding: 0;
  background-color: transparent;
  background-image:
    url("./assets/ui/mainpanel/xp/ButtonXP_IconXP.png"),
    url("./assets/ui/mainpanel/xp/ButtonXP_goldButtonLeft.png"),
    url("./assets/ui/mainpanel/xp/ButtonXP_goldButtonRight.png"),
    url("./assets/ui/mainpanel/xp/ButtonXP_goldButtonCenter.png");
  background-position: 3px 3px, 0 0, right 0, 6px 0;
  background-size: 20px 20px, 6px 29px, 6px 29px, calc(100% - 12px) 29px;
  background-repeat: no-repeat;
  color: transparent;
  font-size: 0;
  line-height: 0;
  text-align: left;
  text-shadow: none;
  filter: none;
  cursor: pointer;
}
.rank-up-button .rank-up-icon { display: none !important; }
.rank-up-button .rank-up-label {
  position: absolute;
  top: 4px;
  left: 24px;
  height: 18px;
  color: #ededed;
  font-size: 12px;
  font-weight: 400;
  line-height: 18px;
  white-space: nowrap;
  text-shadow: 0 1px 1px rgb(0 0 0 / 70%);
  pointer-events: none;
}
.rank-up-button:hover:not(:disabled) {
  filter: none;
  background-image:
    url("./assets/ui/mainpanel/xp/ButtonXP_IconXP.png"),
    url("./assets/ui/mainpanel/xp/ButtonXP_goldButtonLeft_over.png"),
    url("./assets/ui/mainpanel/xp/ButtonXP_goldButtonRight_over.png"),
    url("./assets/ui/mainpanel/xp/ButtonXP_goldButtonCenter_over.png");
}
.rank-up-button:active:not(:disabled) {
  top: 0;
  padding: 0;
  background-image:
    url("./assets/ui/mainpanel/xp/ButtonXP_IconXP.png"),
    url("./assets/ui/mainpanel/xp/ButtonXP_goldButtonLeft_pressed.png"),
    url("./assets/ui/mainpanel/xp/ButtonXP_goldButtonRight_pressed.png"),
    url("./assets/ui/mainpanel/xp/ButtonXP_goldButtonCenter_pressed.png");
  background-position: 3px 4px, 0 0, right 0, 6px 0;
}
.rank-up-button:active:not(:disabled) .rank-up-label { top: 5px; }
.rank-up-button:disabled {
  cursor: default;
  opacity: 1;
  background-image:
    url("./assets/ui/mainpanel/xp/ButtonXP_IconXP.png"),
    url("./assets/ui/mainpanel/xp/ButtonXP_greenLeft.png"),
    url("./assets/ui/mainpanel/xp/ButtonXP_greenRight.png"),
    url("./assets/ui/mainpanel/xp/ButtonXP_greenCenter.png");
}


.crystals {
  position: absolute;
  z-index: 2;
  top: 0;
  right: 545px;
  left: auto;
  width: 112px;
  min-width: 0;
  height: 29px;
  display: block;
  box-sizing: border-box;
  overflow: visible;
  padding: 0;
  border: 0;
  border-radius: 0;
  background-color: transparent;
  background-image:
    url("./assets/ui/mainpanel/indicators/exact/crystal-start.png"),
    url("./assets/ui/mainpanel/indicators/exact/crystal-right.png"),
    url("./assets/ui/mainpanel/indicators/exact/crystal-center.png");
  background-position: 0 0, 64px 0, 6px 0;
  background-size: 7px 29px, 48px 29px, 67px 29px;
  background-repeat: no-repeat;
  box-shadow: none;
  color: #12ff00;
  text-shadow: none;
  pointer-events: none;
}
.crystals b {
  position: absolute;
  top: 4px;
  left: 4px;
  width: 59px;
  height: 18px;
  display: block;
  overflow: hidden;
  color: #12ff00;
  font-size: 12px;
  font-weight: 400;
  line-height: 18px;
  text-align: right;
  white-space: nowrap;
  text-shadow: none;
}
.crystals img { display: none !important; }

/* ButtonBar.draw(): donate=0, battles=85, garage=178, referral=282,
  settings=310, sound=338, fullscreen=366, help=394, close=433. */
.topbar nav {
  position: absolute;
  z-index: 5;
  top: 0;
  right: 6px;
  left: auto;
  width: 456px;
  height: 29px;
  display: block;
  margin: 0;
  padding: 0;
  overflow: visible;
}
.topbar nav button {
  position: absolute;
  top: 0;
  height: 29px;
  min-width: 0;
  box-sizing: border-box;
  overflow: visible;
  border: 0;
  border-radius: 0;
  padding: 0;
  background-color: transparent;
  background-position: 0 0;
  background-repeat: no-repeat;
  background-size: auto;
  color: transparent;
  font-size: 0;
  line-height: 0;
  text-shadow: none;
  filter: none;
  cursor: pointer;
}
.topbar nav button:hover,
.topbar nav button.active { filter: none; }

.topbar nav .buy-button {
  left: 0;
  width: 74px;
  min-width: 74px;
  margin: 0;
  padding: 0;
  background-image:
    url("./assets/ui/mainpanel/buy/MainPanelDonateButton_iconN.png"),
    url("./assets/ui/mainpanel/buy/MainPanelDonateButton_normalBtn.png");
  background-position: 7px 7px, 0 0;
  background-size: 15px 15px, 74px 29px;
}
.topbar nav .buy-button span {
  position: absolute;
  top: 4px;
  left: 18px;
  width: 56px;
  height: 18px;
  color: #ededed;
  font-size: 12px;
  font-weight: 400;
  line-height: 18px;
  text-align: center;
  white-space: nowrap;
  text-shadow: none;
  pointer-events: none;
}
.topbar nav .buy-button:hover {
  background-image:
    url("./assets/ui/mainpanel/buy/MainPanelDonateButton_iconN.png"),
    url("./assets/ui/mainpanel/buy/MainPanelDonateButton_overBtn.png");
}
.topbar nav .buy-button:active {
  top: 1px;
  background-image:
    url("./assets/ui/mainpanel/buy/MainPanelDonateButton_iconN.png"),
    url("./assets/ui/mainpanel/buy/MainPanelDonateButton_normalBtn.png");
}

.topbar nav button[data-view="battles"],
.topbar nav button[data-view="garage"]:not(.buy-button) {
  width: 93px;
  min-width: 93px;
  padding: 0;
  color: transparent;
  font-size: 0;
  line-height: 0;
  text-align: left;
}
.topbar nav button[data-view="battles"] { left: 85px; background-image: url("./assets/ui/mainpanel/battles/2.png"); }
.topbar nav button[data-view="garage"]:not(.buy-button) { left: 178px; background-image: url("./assets/ui/mainpanel/garage/2.png"); }
.topbar nav button[data-view="battles"] span,
.topbar nav button[data-view="garage"]:not(.buy-button) span {
  position: absolute;
  top: 4px;
  left: 23px;
  width: 66px;
  height: 19px;
  color: #ededed;
  font-size: 12px;
  font-weight: 400;
  line-height: 19px;
  text-align: center;
  white-space: nowrap;
  text-shadow: 0 1px 1px rgb(0 0 0 / 70%);
  pointer-events: none;
}
.topbar nav button[data-view="battles"].active { background-image: url("./assets/ui/mainpanel/battles/1.png"); cursor: default; }
.topbar nav button[data-view="garage"]:not(.buy-button).active { background-image: url("./assets/ui/mainpanel/garage/1.png"); cursor: default; }
.topbar nav button[data-view="battles"]:hover:not(.active) { background-image: url("./assets/ui/mainpanel/battles/3.png"); }
.topbar nav button[data-view="garage"]:not(.buy-button):hover:not(.active) { background-image: url("./assets/ui/mainpanel/garage/3.png"); }
.topbar nav button[data-view="battles"]:active:not(.active) { top: 0; background-image: url("./assets/ui/mainpanel/battles/4.png"); }
.topbar nav button[data-view="garage"]:not(.buy-button):active:not(.active) { top: 0; background-image: url("./assets/ui/mainpanel/garage/4.png"); }
.topbar nav button[data-view="battles"]:active:not(.active) span,
.topbar nav button[data-view="garage"]:not(.buy-button):active:not(.active) span { top: 5px; }

.topbar nav .panel-small {
  top: 0;
  width: 28px;
  min-width: 28px;
  height: 29px;
  padding: 0;
  background-position: 0 0;
  background-size: 28px 29px;
  color: transparent;
  font-size: 0;
}
.topbar nav .referral-button { left: 282px; background-image: url("./assets/ui/mainpanel/referral/2.png"); }
.topbar nav .referral-button:hover { background-image: url("./assets/ui/mainpanel/referral/3.png"); }
.topbar nav .referral-button:active { top: 0; background-image: url("./assets/ui/mainpanel/referral/4.png"); }
.topbar nav .settings-button { left: 310px; background-image: url("./assets/ui/mainpanel/settings/2.png"); }
.topbar nav .settings-button:hover { background-image: url("./assets/ui/mainpanel/settings/3.png"); }
.topbar nav .settings-button:active { top: 0; background-image: url("./assets/ui/mainpanel/settings/4.png"); }
#sound-toggle { left: 338px; width: 28px; min-width: 28px; background-image: url("./assets/ui/mainpanel/sound/2.png"); }
#sound-toggle.active { background-image: url("./assets/ui/mainpanel/sound/2.png"); }
#sound-toggle:hover { background-image: url("./assets/ui/mainpanel/sound/3.png"); }
#sound-toggle:active { top: 0; background-image: url("./assets/ui/mainpanel/sound/4.png"); }
.topbar nav .fullscreen-button {
  left: 366px;
  background-image:
    url("./assets/ui/mainpanel/fullscreen/MainPanelFullscreenButton_activateFullscreenClass.png"),
    url("./assets/ui/mainpanel/help/2.png");
  background-position: 3px 4px, 0 0;
  background-size: 19px 18px, 28px 29px;
}
.topbar nav .fullscreen-button:hover {
  background-image:
    url("./assets/ui/mainpanel/fullscreen/MainPanelFullscreenButton_activateFullscreenClass.png"),
    url("./assets/ui/mainpanel/help/3.png");
}
.topbar nav .fullscreen-button:active {
  top: 0;
  background-image:
    url("./assets/ui/mainpanel/fullscreen/MainPanelFullscreenButton_activateFullscreenClass.png"),
    url("./assets/ui/mainpanel/help/4.png");
  background-position: 3px 5px, 0 0;
}
.topbar nav .help-button { left: 394px; background-image: url("./assets/ui/mainpanel/help/2.png"); }
.topbar nav .help-button:hover { background-image: url("./assets/ui/mainpanel/help/3.png"); }
.topbar nav .help-button:active { top: 0; background-image: url("./assets/ui/mainpanel/help/4.png"); }
.topbar nav .close-button {
  top: 0;
  left: 433px;
  width: 23px;
  min-width: 23px;
  height: 23px;
  padding: 0;
  background: url("./assets/ui/mainpanel/close/1.png") 0 0 / 23px 23px no-repeat !important;
  color: transparent;
  font-size: 0;
  box-shadow: none;
}
.topbar nav .close-button:hover { filter: none; }


html,
body,
body *,
body *::before,
body *::after {
  font-family: "MyriadPro", "Myriad Pro", Arial, sans-serif !important;
  font-synthesis: none !important;
}

/* MainPanel display list: PlayerInfo backgrounds are below crystallsStart,
  ButtonBar and ButtonXP. The crystal sprites keep Indicators' x=59 offset. */
.crystals {
  top: 0;
  right: 462px;
  left: auto;
  width: 83px;
  height: 29px;
  overflow: hidden;
  background-image:
    url("./assets/ui/mainpanel/indicators/exact/crystal-start.png"),
    url("./assets/ui/mainpanel/indicators/exact/crystal-right.png"),
    url("./assets/ui/mainpanel/indicators/exact/crystal-center.png");
  
  background-position: 0 0, 64px 0, 6px 0;
  background-size: 7px 29px, 48px 29px, 67px 29px;
  background-repeat: no-repeat;
}
.crystals b {
  top: 4px;
  left: 4px;
  width: 59px;
  height: 18px;
  line-height: 18px;
  font-size: 12px;
  font-weight: 400;
  text-align: right;
  white-space: nowrap;
}

/* TextField positions from controls.panel.Indicators.width(). */
.rating-line {
  top: 4px;
  right: 25px;
  height: 18px;
  line-height: 18px;
}
.rating-line #rating-arrow {
  margin-left: 3px;
  margin-right: -1px;
}
.rating-line #rating-change[data-direction="-1"] { color: #ff1500; }
.rating-line #rating-change[data-direction="0"]  { color: #b2b2b2; }
.rating-line #rating-change[data-direction="1"]  { color: #12ff00; }


@font-face {
  font-family: "MTanksMyriadPro";
  src: url("./assets/font/MyriadProB_MyriadPro.ttf") format("truetype"),
      url("./assets/font/MyriadProB_MyriadPro.ttf") format("truetype");
  font-style: normal;
  font-weight: 400;
  font-display: block;
}

html,
body,
body *,
body *::before,
body *::after,
button,
input,
select,
textarea,
option {
  font-family: "MTanksMyriadPro", "MyriadPro", "Myriad Pro", Arial, sans-serif !important;
  font-synthesis: none !important;
}

.topbar,
.topbar * {
  box-sizing: border-box;
}

.topbar {
  position: absolute;
  top: 2px;
  left: 0;
  right: auto;
  width: max(100%, 1000px);
  min-width: 1000px;
  height: 29px;
  margin: 0;
  padding: 0;
  overflow: visible;
  border: 0;
  background: transparent;
}

#rank-icon {
  position: absolute;
  z-index: 6;
  top: -2px;
  left: 2px;
  width: 56px;
  height: 64px;
  margin: 0;
  padding: 0;
  image-rendering: auto;
  pointer-events: none;
}

.profile {
  position: absolute;
  z-index: 1;
  top: 0;
  left: 59px;
  right: auto;
  width: calc(100% - 723px);
  min-width: 277px;
  height: 29px;
  margin: 0;
  padding: 0;
  overflow: visible;
}

.xp-track {
  position: absolute;
  inset: auto;
  top: 0;
  left: 0;
  width: 100%;
  height: 29px;
  margin: 0;
  padding: 0;
  overflow: visible;
  border: 0;
  border-radius: 0;
  background-color: transparent;
  background-image:
    url("./assets/ui/mainpanel/indicators/exact/left.png"),
    url("./assets/ui/mainpanel/indicators/exact/connector.png"),
    url("./assets/ui/mainpanel/indicators/exact/center.png");
  background-position: 0 0, right 0, 7px 0;
  background-size: 7px 29px, 28px 29px, calc(100% - 35px) 29px;
  background-repeat: no-repeat;
  box-shadow: none;
}

.xp-track i {
  position: absolute;
  top: 5px;
  bottom: auto;
  left: 5px;
  width: calc(100% - 28px);
  height: 16px;
  min-width: 0;
  margin: 0;
  padding: 0;
  display: block;
  border: 0;
  background: rgb(18 255 0 / 20%);
  box-shadow: none;
  transform: scaleX(0);
  transform-origin: 0 50%;
}

.player-name {
  position: absolute;
  z-index: 3;
  top: 4px;
  left: 9px;
  right: auto;
  width: calc(100% - 238px);
  height: 18px;
  margin: 0;
  padding: 0;
  display: block;
  overflow: hidden;
  color: #12ff00;
  font-size: 12px;
  font-style: normal;
  font-weight: 400;
  line-height: 18px;
  letter-spacing: 0;
  text-indent: 0;
  white-space: pre;
  text-overflow: clip;
  text-shadow: none;
  pointer-events: auto;
}

.rating-line {
  position: absolute;
  z-index: 3;
  top: 4px;
  right: 29px;
  left: auto;
  width: auto;
  height: 18px;
  margin: 0;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0;
  color: #12ff00;
  font-size: 12px;
  font-style: normal;
  font-weight: 400;
  line-height: 18px;
  letter-spacing: 0;
  text-indent: 0;
  white-space: nowrap;
  text-shadow: none;
}
.rating-line .rating-caption,
.rating-line b,
.rating-line span {
  margin: 0;
  padding: 0;
  color: #12ff00;
  font: inherit;
  text-indent: 0;
}
.rating-line .rating-caption { margin-right: 2px; }
.rating-line b { font-weight: 400; }
.rating-line #rating-arrow {
  width: 9px;
  height: 8px;
  margin: 0 2px 0 5px;
  padding: 0;
  flex: 0 0 9px;
  image-rendering: auto;
}
.rating-line #rating-change[data-direction="-1"] { color: #ff1500; }
.rating-line #rating-change[data-direction="0"]  { color: #b2b2b2; }
.rating-line #rating-change[data-direction="1"]  { color: #12ff00; }

.rank-up-button {
  position: absolute;
  z-index: 4;
  top: 0;
  right: 556px;
  left: auto;
  width: 127px;
  min-width: 127px;
  height: 29px;
  margin: 0;
  padding: 0;
  display: block !important;
  overflow: visible;
  border: 0;
  border-radius: 0;
  appearance: none;
  background-color: transparent;
  background-image:
    url("./assets/ui/mainpanel/xp/ButtonXP_IconXP.png"),
    url("./assets/ui/mainpanel/xp/ButtonXP_goldButtonLeft.png"),
    url("./assets/ui/mainpanel/xp/ButtonXP_goldButtonRight.png"),
    url("./assets/ui/mainpanel/xp/ButtonXP_goldButtonCenter.png");
  background-position: 3px 3px, 0 0, right 0, 6px 0;
  background-size: 20px 20px, 6px 29px, 6px 29px, calc(100% - 12px) 29px;
  background-repeat: no-repeat;
  color: transparent;
  font-size: 0;
  line-height: 0;
  text-align: left;
  text-indent: 0;
  text-shadow: none;
  filter: none;
  cursor: pointer;
}
.rank-up-button .rank-up-icon { display: none !important; }
.rank-up-button .rank-up-label {
  position: absolute;
  top: 4px;
  left: 27px;
  right: auto;
  width: auto;
  height: 18px;
  margin: 0;
  padding: 0;
  color: #ededed;
  font-size: 12px;
  font-style: normal;
  font-weight: 400;
  line-height: 18px;
  letter-spacing: 0;
  text-indent: 0;
  white-space: nowrap;
  text-shadow: 0 1px 1px rgb(0 0 0 / 70%);
  pointer-events: none;
}
.rank-up-button:hover:not(:disabled) {
  filter: none;
  background-image:
    url("./assets/ui/mainpanel/xp/ButtonXP_IconXP.png"),
    url("./assets/ui/mainpanel/xp/ButtonXP_goldButtonLeft_over.png"),
    url("./assets/ui/mainpanel/xp/ButtonXP_goldButtonRight_over.png"),
    url("./assets/ui/mainpanel/xp/ButtonXP_goldButtonCenter_over.png");
}
.rank-up-button:active:not(:disabled) {
  top: 0;
  padding: 0;
  background-image:
    url("./assets/ui/mainpanel/xp/ButtonXP_IconXP.png"),
    url("./assets/ui/mainpanel/xp/ButtonXP_goldButtonLeft_pressed.png"),
    url("./assets/ui/mainpanel/xp/ButtonXP_goldButtonRight_pressed.png"),
    url("./assets/ui/mainpanel/xp/ButtonXP_goldButtonCenter_pressed.png");
  background-position: 3px 4px, 0 0, right 0, 6px 0;
}
.rank-up-button:active:not(:disabled) .rank-up-label { top: 5px; }
.rank-up-button:disabled {
  cursor: default;
  opacity: 1;
  background-image:
    url("./assets/ui/mainpanel/xp/ButtonXP_IconXP.png"),
    url("./assets/ui/mainpanel/xp/ButtonXP_greenLeft.png"),
    url("./assets/ui/mainpanel/xp/ButtonXP_greenRight.png"),
    url("./assets/ui/mainpanel/xp/ButtonXP_greenCenter.png");
}

.crystals {
  position: absolute;
  z-index: 2;
  top: 0;
  right: 462px;
  left: auto;
  width: 83px;
  min-width: 0;
  height: 29px;
  margin: 0;
  padding: 0;
  display: block;
  overflow: hidden;
  border: 0;
  border-radius: 0;
  background-color: transparent;
  background-image:
    url("./assets/ui/mainpanel/indicators/exact/crystal-start.png"),
    url("./assets/ui/mainpanel/indicators/exact/crystal-right.png"),
    url("./assets/ui/mainpanel/indicators/exact/crystal-center.png");
  background-position: 0 0, 64px 0, 6px 0;
  background-size: 7px 29px, 48px 29px, 67px 29px;
  background-repeat: no-repeat;
  box-shadow: none;
  color: #12ff00;
  text-shadow: none;
  pointer-events: none;
}
.crystals b {
  position: absolute;
  top: 4px;
  left: 3px;
  width: 60px;
  height: 18px;
  margin: 0;
  padding: 0;
  display: block;
  overflow: hidden;
  color: #12ff00;
  font-size: 12px;
  font-style: normal;
  font-weight: 400;
  line-height: 18px;
  letter-spacing: 0;
  text-align: right;
  text-indent: 0;
  white-space: nowrap;
  text-shadow: none;
}
.crystals img { display: none !important; }

.topbar nav {
  position: absolute;
  z-index: 5;
  top: 0;
  right: 6px;
  left: auto;
  width: 456px;
  height: 29px;
  margin: 0;
  padding: 0;
  display: block;
  overflow: visible;
}
.topbar nav button {
  position: absolute;
  top: 0;
  height: 29px;
  min-width: 0;
  margin: 0;
  padding: 0;
  overflow: visible;
  border: 0;
  border-radius: 0;
  appearance: none;
  background-color: transparent;
  background-position: 0 0;
  background-repeat: no-repeat;
  background-size: auto;
  color: transparent;
  font-size: 0;
  line-height: 0;
  letter-spacing: 0;
  text-align: left;
  text-indent: 0 !important;
  text-shadow: none;
  filter: none;
  cursor: pointer;
}
.topbar nav button:hover,
.topbar nav button.active { filter: none; }
.topbar nav button span { text-indent: 0 !important; }

.topbar nav .buy-button {
  left: 0;
  width: 74px;
  min-width: 74px;
  background-image:
    url("./assets/ui/mainpanel/buy/MainPanelDonateButton_iconN.png"),
    url("./assets/ui/mainpanel/buy/MainPanelDonateButton_normalBtn.png");
  background-position: 7px 7px, 0 0;
  background-size: 15px 15px, 74px 29px;
}
.topbar nav .buy-button span {
  position: absolute;
  top: 5px;
  left: 20px;
  width: 54px;
  height: 18px;
  margin: 0;
  padding: 0;
  color: #ededed;
  font-size: 12px;
  font-style: normal;
  font-weight: 400;
  line-height: 18px;
  letter-spacing: 0;
  text-align: center;
  white-space: nowrap;
  text-shadow: none;
  pointer-events: none;
}
.topbar nav .buy-button:hover {
  background-image:
    url("./assets/ui/mainpanel/buy/MainPanelDonateButton_iconN.png"),
    url("./assets/ui/mainpanel/buy/MainPanelDonateButton_overBtn.png");
}
.topbar nav .buy-button:active {
  top: 1px;
  background-image:
    url("./assets/ui/mainpanel/buy/MainPanelDonateButton_iconN.png"),
    url("./assets/ui/mainpanel/buy/MainPanelDonateButton_normalBtn.png");
}

.topbar nav button[data-view="battles"],
.topbar nav button[data-view="garage"]:not(.buy-button) {
  width: 93px;
  min-width: 93px;
  color: transparent;
  font-size: 0;
  line-height: 0;
  text-align: left;
  text-indent: 0 !important;
}
.topbar nav button[data-view="battles"] { left: 85px; background-image: url("./assets/ui/mainpanel/battles/2.png"); }
.topbar nav button[data-view="garage"]:not(.buy-button) { left: 178px; background-image: url("./assets/ui/mainpanel/garage/2.png"); }
.topbar nav button[data-view="battles"] span,
.topbar nav button[data-view="garage"]:not(.buy-button) span {
  position: absolute;
  top: 4px;
  left: 23px;
  width: 66px;
  height: 19px;
  margin: 0;
  padding: 0;
  color: #ededed;
  font-size: 12px;
  font-style: normal;
  font-weight: 400;
  line-height: 19px;
  letter-spacing: 0;
  text-align: center;
  text-indent: 0 !important;
  white-space: nowrap;
  text-shadow: 0 1px 1px rgb(0 0 0 / 70%);
  pointer-events: none;
}
.topbar nav button[data-view="battles"].active { background-image: url("./assets/ui/mainpanel/battles/1.png"); cursor: default; }
.topbar nav button[data-view="garage"]:not(.buy-button).active { background-image: url("./assets/ui/mainpanel/garage/1.png"); cursor: default; }
.topbar nav button[data-view="battles"]:hover:not(.active) { background-image: url("./assets/ui/mainpanel/battles/3.png"); }
.topbar nav button[data-view="garage"]:not(.buy-button):hover:not(.active) { background-image: url("./assets/ui/mainpanel/garage/3.png"); }
.topbar nav button[data-view="battles"]:active:not(.active) { top: 0; background-image: url("./assets/ui/mainpanel/battles/4.png"); }
.topbar nav button[data-view="garage"]:not(.buy-button):active:not(.active) { top: 0; background-image: url("./assets/ui/mainpanel/garage/4.png"); }
.topbar nav button[data-view="battles"]:active:not(.active) span,
.topbar nav button[data-view="garage"]:not(.buy-button):active:not(.active) span { top: 5px; }

.topbar nav .panel-small {
  top: 0;
  width: 28px;
  min-width: 28px;
  height: 29px;
  padding: 0;
  background-position: 0 0;
  background-size: 28px 29px;
  color: transparent;
  font-size: 0;
}
.topbar nav .referral-button { left: 282px; background-image: url("./assets/ui/mainpanel/referral/2.png"); }
.topbar nav .referral-button:hover { background-image: url("./assets/ui/mainpanel/referral/3.png"); }
.topbar nav .referral-button:active { top: 0; background-image: url("./assets/ui/mainpanel/referral/4.png"); }
.topbar nav .settings-button { left: 310px; background-image: url("./assets/ui/mainpanel/settings/2.png"); }
.topbar nav .settings-button:hover { background-image: url("./assets/ui/mainpanel/settings/3.png"); }
.topbar nav .settings-button:active { top: 0; background-image: url("./assets/ui/mainpanel/settings/4.png"); }
#sound-toggle { left: 338px; width: 28px; min-width: 28px; background-image: url("./assets/ui/mainpanel/sound/2.png"); }
#sound-toggle.active { background-image: url("./assets/ui/mainpanel/sound/2.png"); }
#sound-toggle:hover { background-image: url("./assets/ui/mainpanel/sound/3.png"); }
#sound-toggle:active { top: 0; background-image: url("./assets/ui/mainpanel/sound/4.png"); }
.topbar nav .fullscreen-button {
  left: 366px;
  background-image:
    url("./assets/ui/mainpanel/fullscreen/MainPanelFullscreenButton_activateFullscreenClass.png"),
    url("./assets/ui/mainpanel/help/2.png");
  background-position: 3px 4px, 0 0;
  background-size: 19px 18px, 28px 29px;
}
.topbar nav .fullscreen-button:hover {
  background-image:
    url("./assets/ui/mainpanel/fullscreen/MainPanelFullscreenButton_activateFullscreenClass.png"),
    url("./assets/ui/mainpanel/help/3.png");
}
.topbar nav .fullscreen-button:active {
  top: 0;
  background-image:
    url("./assets/ui/mainpanel/fullscreen/MainPanelFullscreenButton_activateFullscreenClass.png"),
    url("./assets/ui/mainpanel/help/4.png");
  background-position: 3px 5px, 0 0;
}
.topbar nav .help-button { left: 394px; background-image: url("./assets/ui/mainpanel/help/2.png"); }
.topbar nav .help-button:hover { background-image: url("./assets/ui/mainpanel/help/3.png"); }
.topbar nav .help-button:active { top: 0; background-image: url("./assets/ui/mainpanel/help/4.png"); }
.topbar nav .close-button {
  top: 0;
  left: 433px;
  width: 23px;
  min-width: 23px;
  height: 23px;
  padding: 0;
  background: url("./assets/ui/mainpanel/close/1.png") 0 0 / 23px 23px no-repeat !important;
  color: transparent;
  font-size: 0;
  box-shadow: none;
}
.topbar nav .close-button:hover { filter: none; }


.xp-track i { width: calc(100% - 26.5px); }
.topbar nav button[data-view="garage"]:not(.buy-button) span { transform: translateX(1px); }

.topbar nav .fullscreen-button.is-fullscreen {
  background-image:
    url("./assets/ui/mainpanel/fullscreen/MainPanelFullscreenButton_deactivateFullscreenClass.png"),
    url("./assets/ui/mainpanel/help/2.png");
}
.topbar nav .fullscreen-button.is-fullscreen:hover {
  background-image:
    url("./assets/ui/mainpanel/fullscreen/MainPanelFullscreenButton_deactivateFullscreenClass.png"),
    url("./assets/ui/mainpanel/help/3.png");
}
.topbar nav .fullscreen-button.is-fullscreen:active {
  background-image:
    url("./assets/ui/mainpanel/fullscreen/MainPanelFullscreenButton_deactivateFullscreenClass.png"),
    url("./assets/ui/mainpanel/help/4.png");
}

.topbar nav .fullscreen-button.is-fullscreen {
  background-image:
    url("./assets/ui/mainpanel/fullscreen/MainPanelFullscreenButton_deactivateFullscreenClass.png"),
    url("./assets/ui/mainpanel/help/2.png");
}
.topbar nav .fullscreen-button.is-fullscreen:hover {
  background-image:
    url("./assets/ui/mainpanel/fullscreen/MainPanelFullscreenButton_deactivateFullscreenClass.png"),
    url("./assets/ui/mainpanel/help/3.png");
}
.topbar nav .fullscreen-button.is-fullscreen:active {
  background-image:
    url("./assets/ui/mainpanel/fullscreen/MainPanelFullscreenButton_deactivateFullscreenClass.png"),
    url("./assets/ui/mainpanel/help/4.png");
}


.topbar nav .fullscreen-button {
  background-image:
    url("./assets/ui/mainpanel/fullscreen/MainPanelFullscreenButton_activateFullscreenClass.png"),
    url("./assets/ui/mainpanel/small-bg/2.png");
  background-position: 3px 4px, 0 0;
  background-size: 19px 18px, 28px 29px;
  background-repeat: no-repeat, no-repeat;
}
.topbar nav .fullscreen-button:hover {
  background-image:
    url("./assets/ui/mainpanel/fullscreen/MainPanelFullscreenButton_activateFullscreenClass.png"),
    url("./assets/ui/mainpanel/small-bg/3.png");
  background-position: 3px 4px, 0 0;
}
.topbar nav .fullscreen-button:active {
  top: 0;
  background-image:
    url("./assets/ui/mainpanel/fullscreen/MainPanelFullscreenButton_activateFullscreenClass.png"),
    url("./assets/ui/mainpanel/small-bg/4.png");
  background-position: 3px 5px, 0 0;
}
.topbar nav .fullscreen-button:disabled {
  background-image:
    url("./assets/ui/mainpanel/fullscreen/MainPanelFullscreenButton_activateFullscreenClass.png"),
    url("./assets/ui/mainpanel/small-bg/1.png");
  background-position: 3px 4px, 0 0;
}
.topbar nav .fullscreen-button.is-fullscreen {
  background-image:
    url("./assets/ui/mainpanel/fullscreen/MainPanelFullscreenButton_deactivateFullscreenClass.png"),
    url("./assets/ui/mainpanel/small-bg/2.png");
  background-position: 3px 4px, 0 0;
}
.topbar nav .fullscreen-button.is-fullscreen:hover {
  background-image:
    url("./assets/ui/mainpanel/fullscreen/MainPanelFullscreenButton_deactivateFullscreenClass.png"),
    url("./assets/ui/mainpanel/small-bg/3.png");
  background-position: 3px 4px, 0 0;
}
.topbar nav .fullscreen-button.is-fullscreen:active {
  top: 0;
  background-image:
    url("./assets/ui/mainpanel/fullscreen/MainPanelFullscreenButton_deactivateFullscreenClass.png"),
    url("./assets/ui/mainpanel/small-bg/4.png");
  background-position: 3px 5px, 0 0;
}


.app .chat-message:not(.system),
.app .chat-message:not(.system) .chat-text,
.app .chat-message:not(.system) .chat-link,
.app .chat-message.to-self .chat-text,
.app .chat-message.selected-user .chat-text {
  color: #fff;
}
.app .chat-message:not(.system) .chat-name,
.app .chat-message:not(.system) .chat-colon {
  color: #4bff3f;
}


.app #garage-preview-canvas {
  top: 11px;
  right: 13px;
  bottom: 13px;
  left: 11px;
  overflow: hidden;
  border: 0;
  outline: 0;
  background: transparent;
}
.app .garage-preview-inner-border {
  position: absolute;
  z-index: 4;
  inset: 11px;
  pointer-events: none;
  background-color: transparent;
  background-image:
    url("./assets/ui/ui-components/inner/top-left.png"),
    url("./assets/ui/ui-components/inner/top-right.png"),
    url("./assets/ui/ui-components/inner/bottom-left.png"),
    url("./assets/ui/ui-components/inner/bottom-right.png"),
    url("./assets/ui/ui-components/inner/30_assets.windowinner.bitmaps.WindowInnerTop.png"),
    url("./assets/ui/ui-components/inner/34_assets.windowinner.bitmaps.WindowInnerBottom.png"),
    url("./assets/ui/ui-components/inner/32_assets.windowinner.bitmaps.WindowInnerLeft.png"),
    url("./assets/ui/ui-components/inner/31_assets.windowinner.bitmaps.WindowInnerRight.png");
  background-position:
    left top, right top, left bottom, right bottom,
    6px top, 6px bottom, left 6px, right 6px;
  background-repeat:
    no-repeat, no-repeat, no-repeat, no-repeat,
    repeat-x, repeat-x, repeat-y, repeat-y;
}


.app .garage-strip .item-grid {
  scrollbar-width: none;
}
.app .garage-strip .item-grid::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}
.app .garage-strip .item-grid {
  background-color: transparent;
}
.app .garage-ui-scrollbar {
  position: absolute;
  z-index: 12;
  background: none;
  right: 11px;
  bottom: 6px;
  left: 15px;
  height: 15px;
  overflow: visible;
  pointer-events: auto;
  user-select: none;
  touch-action: none;
}

.app .garage-scroll-track {
  position: absolute;
  z-index: 1;
  top: 0;
  right: 2px;
  bottom: 0;
  left: 2px;
  overflow: visible;
  background: transparent;
}
.app .garage-scroll-track::before,
.app .garage-scroll-track::after,
.app .garage-scroll-thumb::before,
.app .garage-scroll-thumb::after {
  content: "";
  position: absolute;
  top: 0;
  width: 1px;
  height: 15px;
  background-position: left top;
  background-repeat: no-repeat;
  pointer-events: none;
}
.app .garage-scroll-track::before {
  z-index: 0;
  left: 12px;
  background-image: url("./assets/ui/ui-garage/scrollbar/track-left.png");
}
.app .garage-scroll-track::after {
  z-index: 0;
  right: 12px;
  background-image: url("./assets/ui/ui-garage/scrollbar/track-right.png");
}
.app .garage-scroll-track-middle {
  position: absolute;
  z-index: 0;
  top: 0;
  right: 13px;
  bottom: 0;
  left: 13px;
  background: url("./assets/ui/ui-garage/scrollbar/track-center.png") left top repeat-x;
  pointer-events: none;
}
.app .garage-scroll-thumb {
  position: absolute;
  z-index: 3;
  top: 0;
  left: 0;
  min-width: 0;
  max-width: 100%;
  height: 15px;
  overflow: visible;
  background: transparent;
  cursor: grab;
  will-change: width, left;
}
.app .garage-scroll-thumb::before {
  z-index: 1;
  left: 0;
  background-image: url("./assets/ui/ui-garage/scrollbar/thumb-left.png");
}
.app .garage-scroll-thumb::after {
  z-index: 1;
  right: 0;
  background-image: url("./assets/ui/ui-garage/scrollbar/thumb-right.png");
}
.app .garage-scroll-thumb-middle {
  position: absolute;
  z-index: 0;
  top: 0;
  right: 1px;
  bottom: 0;
  left: 1px;
  background: url("./assets/ui/ui-garage/scrollbar/thumb-center.png") left top repeat-x;
  pointer-events: none;
}
.app .garage-scroll-arrow {
  position: absolute;
  z-index: 2;
  top: 0;
  width: 14px;
  min-width: 14px;
  height: 15px;
  margin: 0;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 0;
  background-color: transparent;
  
  background-position: left -9px;
  background-repeat: no-repeat;
  box-shadow: none;
  filter: none;
  cursor: pointer;
}
.app .garage-scroll-left {
  left: 0;
  background-image: url("./assets/ui/ui-garage/scrollbar/left.png");
}
.app .garage-scroll-right {
  right: 0;
  background-image: url("./assets/ui/ui-garage/scrollbar/right.png");
}
.app .garage-ui-scrollbar.dragging .garage-scroll-thumb {
  cursor: grabbing;
}
.app .garage-ui-scrollbar.disabled .garage-scroll-arrow {
  opacity: .45;
  cursor: default;
}


.boot .mtanks-loader-window {
  position: relative;
  width: 610px;
  height: 290px;
  overflow: visible;
  contain: none;
  transform: none;
  border: 0;
  border-radius: 0;
  background: none;
  box-shadow: none;
}

.boot .mtanks-loader-window::before {
  content: "";
  position: absolute;
  z-index: -2;
  inset: 7px;
  background: url("./assets/ui/ui-components/window/7_assets.window.bitmaps.WindowBGTile.png") repeat;
  pointer-events: none;
}

.boot .mtanks-loader-window::after {
  content: "";
  position: absolute;
  z-index: 0;
  inset: 0;
  border: 11px solid transparent;
  border-image: url("./assets/ui/ui-components/window/frame.png") 11 repeat;
  pointer-events: none;
}



.battle-startup-status {
  position: absolute;
  z-index: 5;
  top: 78px;
  left: 50%;
  min-width: 250px;
  min-height: 34px;
  padding: 10px 24px 8px;
  transform: translateX(-50%);
  color: #e8e8e8;
  font-size: 15px;
  font-weight: 700;
  text-align: center;
  text-shadow: 0 2px 2px #000;
  pointer-events: none;
}
.battle-inventory {
  position: absolute;
  z-index: 5;
  right: 12px;
  bottom: 12px;
  display: flex;
  gap: 5px;
  align-items: flex-end;
}
.battle-inventory.hidden { display: none; }
.battle-inventory-slot {
  position: relative;
  width: 48px;
  height: 48px;
  border: 1px solid #d7d7d7;
  border-radius: 5px;
  padding: 0;
  background: linear-gradient(#393d3b, #111412);
  box-shadow: inset 0 0 0 1px #050605, 0 1px 3px #000;
  color: #fff;
  cursor: pointer;
}
.battle-inventory-slot:disabled { opacity: .45; cursor: default; }
.battle-inventory-slot kbd {
  position: absolute;
  top: 2px;
  left: 4px;
  border: 0;
  background: transparent;
  color: #d8d8d8;
  font: 11px/1 sans-serif;
}
.battle-inventory-slot b {
  position: absolute;
  right: 4px;
  bottom: 2px;
  color: #fff;
  font-size: 12px;
  text-shadow: 0 1px 2px #000;
}
.battle-inventory-icon {
  position: absolute;
  inset: 9px;
  border-radius: 4px;
  background: radial-gradient(circle at 35% 30%, #f4f4f4, #6d786e 42%, #1a211b 72%);
  box-shadow: inset 0 0 5px #000;
}
.battle-inventory-icon.inventory-health { background: radial-gradient(circle at 35% 30%, #fafffa, #75cb55 42%, #204c20 72%); }
.battle-inventory-icon.inventory-armor { background: radial-gradient(circle at 35% 30%, #f5fbff, #6da4d9 42%, #1b3552 72%); }
.battle-inventory-icon.inventory-double_damage { background: radial-gradient(circle at 35% 30%, #fff7f1, #dd6b49 42%, #5c211b 72%); }
.battle-inventory-icon.inventory-n2o { background: radial-gradient(circle at 35% 30%, #fffff2, #d7cc58 42%, #4c4618 72%); }
.battle-inventory-icon.inventory-mine { background: radial-gradient(circle at 50% 45%, #889487, #303a30 48%, #090c09 72%); }
.battle-inventory-icon.inventory-health,
.battle-inventory-icon.inventory-armor,
.battle-inventory-icon.inventory-double_damage,
.battle-inventory-icon.inventory-n2o,
.battle-inventory-icon.inventory-mine {
  inset: 5px;
  border-radius: 0;
  background-color: transparent;
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
  box-shadow: none;
}
.battle-inventory-icon.inventory-health { background-image: url("./assets/resources/inventory/health/inventory_health.png"); }
.battle-inventory-icon.inventory-armor { background-image: url("./assets/resources/inventory/armor/inventory_armor.png"); }
.battle-inventory-icon.inventory-double_damage { background-image: url("./assets/resources/inventory/damage/inventory_badaboom.png"); }
.battle-inventory-icon.inventory-n2o { background-image: url("./assets/resources/inventory/n2o/inventory_nitro.png"); }
.battle-inventory-icon.inventory-mine { background-image: url("./assets/resources/inventory/mine/inventory_mine.png"); }


.ui-battle-hud {
  position: absolute;
  z-index: 4;
  inset: 0;
  overflow: hidden;
  color: #fff;
  font-family: Arial, Helvetica, sans-serif;
  pointer-events: none;
  user-select: none;
}


.ui-suicide-indicator {
  position: absolute;
  z-index: 20;
  top: 50%;
  left: 50%;
  width: 125px;
  height: 125px;
  transform: translate(-50%, -50%);
  pointer-events: none;
}
.ui-suicide-indicator.hidden { display: none; }
.ui-suicide-indicator-backdrop {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.6);
}
.ui-suicide-indicator-skull {
  position: absolute;
  top: 50%;
  left: 50%;
  display: block;
  width: 70px;
  height: 90px;
  transform: translate(-50%, -50%);
  object-fit: contain;
}


.game-battlefield-messages {
  position: absolute;
  z-index: 12;
  top: 40px;
  left: 50%;
  display: flex;
  width: max-content;
  max-width: calc(100vw - 24px);
  transform: translateX(-50%);
  flex-direction: column;
  align-items: center;
  pointer-events: none;
  font-family: MTanksMyriadPro, MyriadPro, Arial, sans-serif;
  font-size: 18px;
  font-weight: 700;
  line-height: 18px;
  text-align: center;
  white-space: nowrap;
  text-shadow: 0 0 6px #000, 0 0 6px #000, 0 1px 2px #000;
}
.game-battlefield-message {
  min-height: 18px;
  opacity: 0;
}


.ui-battle-actions {
  position: absolute;
  z-index: 9;
  top: 50px;
  right: 10px;
  display: flex;
  max-width: min(620px, calc(100vw - 20px));
  flex-direction: column;
  align-items: flex-end;
  gap: 1px;
  font: 11px/16px Arial, sans-serif;
  text-align: right;
  text-shadow: 0 1px 2px #000, 0 0 2px #000;
}
.ui-battle-action {
  display: flex;
  min-height: 16px;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
  white-space: nowrap;
  transition: opacity 1s linear;
}
.ui-battle-action.fading { opacity: 0; }
.ui-battle-action .action-user {
  display: inline-flex;
  height: 16px;
  align-items: center;
  gap: 2px;
}
.ui-battle-action img {
  display: block;
  width: 13px;
  height: 13px;
  margin: 0;
  object-fit: contain;
}
.ui-battle-action .green { color: #00ff00; }
.ui-battle-action .red { color: #f03416; }
.ui-battle-action .blue { color: #4797ff; }
.ui-battle-action .action-text { color: #fff; }


.ui-score-table {
  position: absolute;
  z-index: 8;
  top: 50%;
  left: 50%;
  display: block;
  width: max-content;
  transform: translate(-50%, -50%);
  color: #fff;
  font: 12px/20px MTanksMyriadPro, MyriadPro, Arial, sans-serif;
  text-shadow: 0 1px 2px #000;
  user-select: none;
}
.ui-battle-name-plate {
  box-sizing: border-box;
  position: absolute;
  right: 0;
  bottom: calc(100% + 5px);
  left: 0;
  display: flex;
  height: 29px;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border: 0;
  background: url("./assets/ui/battle-hud/frames/score-a3d7-exact/nameplate-413.png") no-repeat left top;
  font: 18px/22px MTanksMyriadPro, MyriadPro, Arial, sans-serif;
  text-align: center;
  text-shadow: 0 1px 2px #000;
}
.ui-score-table.team-score-table .ui-battle-name-plate {
  background-image: url("./assets/ui/battle-hud/frames/score-a3d7-exact/nameplate-463.png");
}
.ui-score-table.finished-score .ui-battle-name-plate {
  background-image: url("./assets/ui/battle-hud/frames/score-a3d7-exact/nameplate-483.png");
}
.ui-score-table.team-score-table.finished-score .ui-battle-name-plate {
  background-image: url("./assets/ui/battle-hud/frames/score-a3d7-exact/nameplate-533.png");
}
.ui-battle-name-plate::before,
.ui-battle-name-plate::after {
  content: none;
  display: none;
}
.ui-battle-name-plate span {
  position: relative;
  z-index: 1;
  display: block;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.ui-scoreboard {
  position: relative;
  display: block;
}
.ui-score-view {
  --score-outer-px: url("./assets/ui/battle-hud/frames/pieces-tab-solid-v4/outer-green-px.png");
  --score-outer-tl: url("./assets/ui/battle-hud/frames/pieces-tab-solid-v4/outer-green-tl.png");
  --score-outer-tr: url("./assets/ui/battle-hud/frames/pieces-tab-solid-v4/outer-green-tr.png");
  --score-outer-bl: url("./assets/ui/battle-hud/frames/pieces-tab-solid-v4/outer-green-bl.png");
  --score-outer-br: url("./assets/ui/battle-hud/frames/pieces-tab-solid-v4/outer-green-br.png");
  box-sizing: border-box;
  position: absolute;
  top: 0;
  left: 0;
  width: 413px;
  min-height: 52px;
  overflow: hidden;
  border: 0;
  background: none;
}
.ui-score-view.red {
  --score-outer-px: url("./assets/ui/battle-hud/frames/pieces-tab-solid-v4/outer-red-px.png");
  --score-outer-tl: url("./assets/ui/battle-hud/frames/pieces-tab-solid-v4/outer-red-tl.png");
  --score-outer-tr: url("./assets/ui/battle-hud/frames/pieces-tab-solid-v4/outer-red-tr.png");
  --score-outer-bl: url("./assets/ui/battle-hud/frames/pieces-tab-solid-v4/outer-red-bl.png");
  --score-outer-br: url("./assets/ui/battle-hud/frames/pieces-tab-solid-v4/outer-red-br.png");
}
.ui-score-view.blue {
  --score-outer-px: url("./assets/ui/battle-hud/frames/pieces-tab-solid-v4/outer-blue-px.png");
  --score-outer-tl: url("./assets/ui/battle-hud/frames/pieces-tab-solid-v4/outer-blue-tl.png");
  --score-outer-tr: url("./assets/ui/battle-hud/frames/pieces-tab-solid-v4/outer-blue-tr.png");
  --score-outer-bl: url("./assets/ui/battle-hud/frames/pieces-tab-solid-v4/outer-blue-bl.png");
  --score-outer-br: url("./assets/ui/battle-hud/frames/pieces-tab-solid-v4/outer-blue-br.png");
}
.ui-score-view.red,
.ui-score-view.blue {
  width: 463px;
}
.ui-score-view.finished {
  width: 483px;
}
.ui-score-view.red.finished,
.ui-score-view.blue.finished {
  width: 533px;
}
.ui-score-view-skin {
  position: absolute;
  z-index: 0;
  inset: 0;
  display: block;
  overflow: hidden;
  border-radius: 8px;
  opacity: 0.6;
  pointer-events: none;
}
.ui-score-view-skin > i {
  position: absolute;
  display: block;
  margin: 0;
  padding: 0;
  pointer-events: none;
}
.ui-score-view-skin > .fill-center {
  top: 0;
  right: 3px;
  bottom: 0;
  left: 3px;
  background: var(--score-outer-px) repeat;
}
.ui-score-view-skin > .fill-left {
  top: 4px;
  bottom: 4px;
  left: 0;
  width: 4px;
  background: var(--score-outer-px) repeat;
}
.ui-score-view-skin > .fill-right {
  top: 4px;
  right: 0;
  bottom: 4px;
  width: 4px;
  background: var(--score-outer-px) repeat;
}
.ui-score-view-skin > .corner-tl {
  top: 0;
  left: 0;
  width: 4px;
  height: 4px;
  background: var(--score-outer-tl) no-repeat;
}
.ui-score-view-skin > .corner-tr {
  top: 0;
  right: 0;
  width: 4px;
  height: 4px;
  background: var(--score-outer-tr) no-repeat;
}
.ui-score-view-skin > .corner-bl {
  bottom: 0;
  left: 0;
  width: 4px;
  height: 4px;
  background: var(--score-outer-bl) no-repeat;
}
.ui-score-view-skin > .corner-br {
  right: 0;
  bottom: 0;
  width: 4px;
  height: 4px;
  background: var(--score-outer-br) no-repeat;
}
.ui-score-header {
  --score-line-full: url("./assets/ui/battle-hud/frames/score-a3d7-exact/header-green-399.png");
  box-sizing: border-box;
  position: absolute;
  z-index: 2;
  top: 7px;
  right: 7px;
  left: 7px;
  display: grid;
  height: 20px;
  overflow: hidden;
  color: #014601;
  font: 12px/20px MTanksMyriadPro, MyriadPro, Arial, sans-serif;
}
.ui-score-header.red {
  --score-line-full: url("./assets/ui/battle-hud/frames/score-a3d7-exact/header-red-449.png");
  color: #470800;
}
.ui-score-header.blue {
  --score-line-full: url("./assets/ui/battle-hud/frames/score-a3d7-exact/header-blue-449.png");
  color: #002d46;
}
.ui-score-rows {
  box-sizing: border-box;
  position: absolute;
  z-index: 2;
  top: 27px;
  right: 7px;
  bottom: 5px;
  left: 7px;
  overflow-x: hidden;
  overflow-y: auto;
  scrollbar-width: thin;
}
.ui-score-row {
  --score-line-full: url("./assets/ui/battle-hud/frames/score-a3d7-exact/row-green-399.png");
  box-sizing: border-box;
  position: relative;
  display: grid;
  width: 100%;
  height: 20px;
  overflow: hidden;
  color: #fff;
  font: 12px/20px MTanksMyriadPro, MyriadPro, Arial, sans-serif;
}
.ui-score-row.red {
  --score-line-full: url("./assets/ui/battle-hud/frames/score-a3d7-exact/row-red-449.png");
}
.ui-score-row.blue {
  --score-line-full: url("./assets/ui/battle-hud/frames/score-a3d7-exact/row-blue-449.png");
}
.ui-score-row.green.selected {
  --score-line-full: url("./assets/ui/battle-hud/frames/score-a3d7-exact/row-green-selected-399.png");
}
.ui-score-row.red.selected {
  --score-line-full: url("./assets/ui/battle-hud/frames/score-a3d7-exact/row-red-selected-449.png");
}
.ui-score-row.blue.selected {
  --score-line-full: url("./assets/ui/battle-hud/frames/score-a3d7-exact/row-blue-selected-449.png");
}
.ui-score-line-skin {
  position: absolute !important;
  z-index: 0 !important;
  top: 0 !important;
  right: 0 !important;
  left: 0 !important;
  display: block !important;
  width: auto !important;
  height: 18px !important;
  min-width: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
  background: var(--score-line-full) no-repeat left top !important;
  pointer-events: none !important;
}
.ui-score-line-skin::before,
.ui-score-line-skin::after {
  content: none !important;
  display: none !important;
}
.ui-score-view.green.finished .ui-score-header {
  --score-line-full: url("./assets/ui/battle-hud/frames/score-a3d7-exact/header-green-469.png");
}
.ui-score-view.green.finished .ui-score-row {
  --score-line-full: url("./assets/ui/battle-hud/frames/score-a3d7-exact/row-green-469.png");
}
.ui-score-view.green.finished .ui-score-row.selected {
  --score-line-full: url("./assets/ui/battle-hud/frames/score-a3d7-exact/row-green-selected-469.png");
}
.ui-score-view.red.finished .ui-score-header {
  --score-line-full: url("./assets/ui/battle-hud/frames/score-a3d7-exact/header-red-519.png");
}
.ui-score-view.red.finished .ui-score-row {
  --score-line-full: url("./assets/ui/battle-hud/frames/score-a3d7-exact/row-red-519.png");
}
.ui-score-view.red.finished .ui-score-row.selected {
  --score-line-full: url("./assets/ui/battle-hud/frames/score-a3d7-exact/row-red-selected-519.png");
}
.ui-score-view.blue.finished .ui-score-header {
  --score-line-full: url("./assets/ui/battle-hud/frames/score-a3d7-exact/header-blue-519.png");
}
.ui-score-view.blue.finished .ui-score-row {
  --score-line-full: url("./assets/ui/battle-hud/frames/score-a3d7-exact/row-blue-519.png");
}
.ui-score-view.blue.finished .ui-score-row.selected {
  --score-line-full: url("./assets/ui/battle-hud/frames/score-a3d7-exact/row-blue-selected-519.png");
}
.ui-score-header,
.ui-score-row {
  grid-template-columns: 147px 80px 80px 70px;
}
.ui-score-view.red .ui-score-header,
.ui-score-view.red .ui-score-row,
.ui-score-view.blue .ui-score-header,
.ui-score-view.blue .ui-score-row {
  grid-template-columns: 147px 50px 80px 80px 70px;
}
.ui-score-view.finished .ui-score-header,
.ui-score-view.finished .ui-score-row {
  grid-template-columns: 147px 80px 80px 70px 70px;
}
.ui-score-view.red.finished .ui-score-header,
.ui-score-view.red.finished .ui-score-row,
.ui-score-view.blue.finished .ui-score-header,
.ui-score-view.blue.finished .ui-score-row {
  grid-template-columns: 147px 50px 80px 80px 70px 70px;
}
.ui-score-header > span:not(.ui-score-line-skin),
.ui-score-row > span:not(.ui-score-line-skin) {
  position: relative;
  z-index: 1;
  box-sizing: border-box;
  min-width: 0;
  height: 20px;
  overflow: hidden;
  line-height: 20px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.ui-score-header .callsign {
  padding-left: 12px;
  text-align: left;
}
.ui-score-header .score,
.ui-score-header .kills,
.ui-score-header .deaths,
.ui-score-header .ratio,
.ui-score-header .reward,
.ui-score-row .score,
.ui-score-row .kills,
.ui-score-row .deaths,
.ui-score-row .ratio,
.ui-score-row .reward {
  text-align: right;
}
.ui-score-row .callsign {
  display: flex;
  height: 20px;
  align-items: center;
  cursor: pointer;
  pointer-events: auto;
}
.ui-score-row .rank-icon-slot {
  display: inline-flex;
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
  align-items: center;
  justify-content: flex-start;
  overflow: visible;
  line-height: 0;
}
.ui-score-row .callsign img.rank-icon-small {
  display: block;
  width: auto;
  height: auto;
  max-width: 15px;
  max-height: 15px;
  margin: 0 0 0 2px !important;
  object-fit: contain;
}
.ui-score-row .score-player-name {
  position: static;
  z-index: auto;
  top: auto;
  right: auto;
  bottom: auto;
  left: auto;
  display: block;
  width: auto;
  height: 20px;
  min-width: 0;
  flex: 1 1 auto;
  margin: 0;
  padding: 0;
  overflow: hidden;
  color: #fff;
  font: 12px/20px MTanksMyriadPro, MyriadPro, Arial, sans-serif;
  text-indent: 0;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-shadow: 0 1px 2px #000;
  pointer-events: none;
}
.ui-score-view.green .ui-score-rows {
  scrollbar-color: #397817 #0b260a;
}
.ui-score-view.red .ui-score-rows {
  scrollbar-color: #7a2318 #260a08;
}
.ui-score-view.blue .ui-score-rows {
  scrollbar-color: #1d618f #071b2a;
}
.ui-score-rows::-webkit-scrollbar {
  width: 15px;
}
.ui-score-view.green .ui-score-rows::-webkit-scrollbar-track {
  background: url("./assets/ui/tank-ui/images/10_assets.scroller.TrackGreen.png") repeat-y center top;
}
.ui-score-view.red .ui-score-rows::-webkit-scrollbar-track {
  background: url("./assets/ui/tank-ui/images/9_assets.scroller.TrackRed.png") repeat-y center top;
}
.ui-score-view.blue .ui-score-rows::-webkit-scrollbar-track {
  background: url("./assets/ui/tank-ui/images/12_assets.scroller.TrackBlue.png") repeat-y center top;
}
.ui-score-view.green .ui-score-rows::-webkit-scrollbar-thumb {
  min-height: 18px;
  border: 1px solid #74a541;
  background: #397817;
}
.ui-score-view.red .ui-score-rows::-webkit-scrollbar-thumb {
  min-height: 18px;
  border: 1px solid #bd5a44;
  background: #7a2318;
}
.ui-score-view.blue .ui-score-rows::-webkit-scrollbar-thumb {
  min-height: 18px;
  border: 1px solid #5598bf;
  background: #1d618f;
}
.ui-score-exit {
  --score-outer-px: url("./assets/ui/battle-hud/frames/pieces-tab-solid-v4/outer-gray-px.png");
  --score-outer-tl: url("./assets/ui/battle-hud/frames/pieces-tab-solid-v4/outer-gray-tl.png");
  --score-outer-tr: url("./assets/ui/battle-hud/frames/pieces-tab-solid-v4/outer-gray-tr.png");
  --score-outer-bl: url("./assets/ui/battle-hud/frames/pieces-tab-solid-v4/outer-gray-bl.png");
  --score-outer-br: url("./assets/ui/battle-hud/frames/pieces-tab-solid-v4/outer-gray-br.png");
  box-sizing: border-box;
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  width: 100%;
  height: 38px;
  overflow: hidden;
  border: 0;
  background: none;
  pointer-events: auto;
}
.ui-score-exit .ui-button {
  position: absolute;
  z-index: 1;
  top: 4px;
  right: 4px;
  width: 100px;
  height: 30px;
}
.ui-score-restart {
  position: absolute;
  z-index: 1;
  top: 4px;
  left: 4px;
  display: inline-flex;
  height: 30px;
  align-items: center;
  font: 12px/30px MTanksMyriadPro, MyriadPro, Arial, sans-serif;
  white-space: nowrap;
}
.ui-score-restart-time {
  display: inline-block;
  min-width: 30px;
  height: 30px;
  margin-left: 3px;
  font: 22px/30px MTanksMyriadPro, MyriadPro, Arial, sans-serif;
  text-align: center;
}

.ui-field-statistics {
  position: absolute;
  z-index: 7;
  right: 10px;
  bottom: 10px;
  display: flex;
  height: 40px;
  align-items: flex-end;
  flex-direction: row;
  gap: 10px;
}
.ui-white-frame {
  box-sizing: border-box;
  position: relative;
  min-width: 40px;
  height: 40px;
  background-image:
    url("./assets/ui/battle-hud/frames/white-left.png"),
    url("./assets/ui/battle-hud/frames/white-right.png"),
    url("./assets/ui/battle-hud/frames/white-center.png");
  background-position: left top, right top, 20px top;
  background-size: 20px 40px, 20px 40px, calc(100% - 40px) 40px;
  background-repeat: no-repeat, no-repeat, no-repeat;
}
.ui-limits-frame { min-width: 90px; }
.ui-limits-frame .ui-field-content {
  position: absolute;
  top: 11px;
  left: 14px;
  display: flex;
  height: 20px;
  align-items: flex-start;
  white-space: nowrap;
}
.ui-icon-field { display: inline-flex; height: 20px; align-items: flex-start; color: #fff; font: 12px/17px Arial, sans-serif; text-shadow: 0 1px 1px #000; }
.ui-icon-field + .ui-icon-field { margin-left: 6px; }
#battle-time-field { margin-left: 10px; }
.ui-icon-field > img:first-child { flex: 0 0 auto; margin: 0 3px 0 0; object-fit: contain; }
.ui-icon-field b { font-weight: normal; }
.ui-fund-field .ui-diamond { width: 9px; height: 11px; margin: 4px 0 0 2px; }
.ui-player-score,
.ui-team-score { min-width: 49px; }
.ui-player-score .ui-field-content,
.ui-team-score .ui-field-content {
  position: absolute;
  top: 6px;
  left: 9px;
  display: flex;
  height: 27px;
  align-items: center;
  gap: 9px;
  color: #fff;
  font: bold 18px/25px Arial, sans-serif;
  text-shadow: 0 1px 1px #000;
}
.ui-player-score img { width: 14px; height: 17px; object-fit: contain; }
.ui-team-score {
  isolation: isolate;
  background-color: transparent;
}
.ui-team-score::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 2px;
  background: linear-gradient(90deg, #8d2100 0%, #8d2100 43%, #003f80 57%, #003f80 100%);
}
.ui-team-score .ui-field-content { left: 10px; gap: 5px; }
.ui-team-score #battle-red-score { color: #ff774d; }
.ui-team-score #battle-blue-score { color: #48a2ff; }
.ui-team-score img { width: 17px; height: 17px; object-fit: contain; }
.ui-hud-wink { animation: ui-hud-wink .5s steps(2, end) infinite; }
@keyframes ui-hud-wink { 50% { opacity: .2; } }


.ui-battle-inventory {
  position: absolute;
  z-index: 7;
  left: 10px;
  bottom: 10px;
  display: flex;
  height: 40px;
  gap: 10px;
}
.ui-battle-inventory.hidden { display: none; }
.ui-inventory-slot {
  position: relative;
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  color: #fff;
  pointer-events: auto;
  cursor: pointer;
}
.ui-inventory-slot:disabled { opacity: 1; cursor: default; }
.ui-inventory-icon { position: absolute; inset: 0; width: 40px; height: 40px; object-fit: contain; }
.ui-inventory-number,
.ui-inventory-count {
  position: absolute;
  z-index: 3;
  color: #fff;
  font: 10px/12px Arial, sans-serif;
  text-shadow: 0 1px 2px #000, 0 0 2px #000;
}
.ui-inventory-number { top: 1px; left: 3px; }
.ui-inventory-count { right: 3px; bottom: 1px; }
.ui-inventory-cooldown {
  --ready: 1;
  position: absolute;
  z-index: 2;
  inset: 2px;
  border-radius: 8px;
  background: conic-gradient(from 0deg at 50% 50%, transparent calc(var(--ready) * 1turn), rgba(0, 0, 0, .7) 0);
  pointer-events: none;
}
.ui-inventory-slot:not(:disabled) .ui-inventory-cooldown { display: none; }
.ui-inventory-slot.ready-pulse { animation: ui-inventory-ready .4s linear; }
@keyframes ui-inventory-ready { 25% { filter: brightness(3); } 100% { filter: brightness(1); } }


.ui-battle-hud .battle-chat,
.ui-battle-hud .battle-chat.glass {
  position: absolute;
  z-index: 8;
  left: 10px;
  bottom: 110px;
  width: 25vw;
  min-width: 300px;
  max-width: 520px;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  pointer-events: none;
}
.ui-battle-hud .battle-chat.expanded { bottom: 70px; pointer-events: auto; }
.ui-battle-hud .battle-chat-messages {
  width: 300px;
  max-height: 100px;
  overflow: hidden;
  padding: 0;
  color: #fff;
  font: 12px/18px Arial, sans-serif;
  text-shadow: 0 1px 2px #000, 0 0 3px #000;
}
.ui-battle-hud .battle-chat.expanded .battle-chat-messages { max-height: calc(100vh - 150px); overflow: hidden; }
.ui-battle-hud .battle-chat-message { min-height: 18px; padding: 0; color: #fff; line-height: 18px; }
.ui-battle-hud .battle-chat-message:not(.system) { pointer-events: auto; cursor: pointer; }
.ui-battle-hud .battle-chat-message.system { color: #80ff80; }
.ui-battle-hud .battle-chat-message.spectator { color: #fff; pointer-events: none; cursor: default; }
.ui-battle-hud .battle-chat-spectator-from { color: #ffff00; font: inherit; text-shadow: inherit; }
.ui-battle-hud .battle-chat-rank { width: 13px; height: 13px; margin: 0 2px 0 0; vertical-align: -2px; }
.ui-battle-hud .battle-chat-author {
  margin: 0 4px 0 0;
  color: #00ff00;
  font: inherit;
  text-shadow: inherit;
  pointer-events: auto;
}
.ui-battle-hud .battle-chat-message.red-team .battle-chat-author { color: #f03416; }
.ui-battle-hud .battle-chat-message.blue-team .battle-chat-author { color: #4797ff; }
.ui-battle-hud .battle-chat-label { margin-right: 3px; color: #fff; }
.ui-battle-hud .battle-chat-form { display: none; width: 100%; height: 30px; margin: 10px 0 0; }
.ui-battle-hud .battle-chat.expanded .battle-chat-form { display: block; }
.ui-battle-hud .battle-chat-form input {
  box-sizing: border-box;
  width: 100%;
  height: 30px;
  border: 0;
  border-radius: 0;
  padding: 3px 8px 4px;
  background-color: transparent;
  background-image:
    url("./assets/ui/ui-components/input/27_assets.input.InputLeft.png"),
    url("./assets/ui/ui-components/input/25_assets.input.InputRight.png"),
    url("./assets/ui/ui-components/input/29_assets.input.InputCenter.png");
  background-position: left top, right top, 5px top;
  background-repeat: no-repeat, no-repeat, repeat-x;
  color: #fff;
  font: 12px Arial, sans-serif;
  outline: none;
  pointer-events: auto;
}


.ui-battle-hud .fps-counter {
  position: absolute;
  z-index: 8;
  right: 10px;
  bottom: auto;
  top: calc(100% - 74px);
  left: auto;
  display: flex;
  width: 60px;
  height: 14px;
  padding: 0;
  translate: none;
  align-items: baseline;
  justify-content: space-between;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #fff;
  font: 11px/14px Arial, sans-serif;
  text-shadow: 0 0 3px #000, 0 1px 2px #000;
}
.ui-battle-hud .fps-counter b { font-weight: bold; text-align: right; }
.ui-battle-hud .fps-counter.colored[data-level="good"] b { color: #73ff55; }
.ui-battle-hud .fps-counter.colored[data-level="medium"] b { color: #ffe35b; }
.ui-battle-hud .fps-counter.colored[data-level="low"] b { color: #ff6868; }


.ui-battle-hud .hud-health-compat,
.ui-battle-hud .leave.hidden { display: none !important; }
.ui-battle-hud .battle-chat-message { transition: opacity 1s linear; }
.ui-battle-hud .battle-chat-message.fading { opacity: 0; }

.ui-battle-actions { gap: 3px; }
.ui-battle-action { pointer-events: auto; }
.ui-battle-action .source-user { cursor: pointer; }
.ui-battle-action .source-user:hover { filter: drop-shadow(0 0 2px currentColor); }


.ui-team-score[data-mode="CTF"] .ui-field-content {
  top: 5px;
  left: 10px;
  height: 30px;
  gap: 5px;
}
.ui-team-score[data-mode="CTF"] #battle-red-score { margin-right: 5px; }
.ui-team-score[data-mode="CTF"] #battle-red-score,
.ui-team-score[data-mode="CTF"] #battle-blue-score {
  height: 30px;
  line-height: 30px;
  text-align: center;
}
.ui-ctf-flag {
  position: relative;
  display: block;
  width: 30px;
  height: 30px;
  flex: 0 0 30px;
}
.ui-ctf-flag img {
  position: absolute;
  inset: 0;
  width: 30px;
  height: 30px;
  margin: 0;
  object-fit: contain;
}
.ui-ctf-flag .normal { opacity: 1; }
.ui-ctf-flag .lost,
.ui-ctf-flag .pulse { opacity: 0; }
.ui-ctf-flag[data-state="carried"] .normal { animation: ctf-carried-normal .4s linear infinite; }
.ui-ctf-flag[data-state="carried"] .lost { animation: ctf-carried-lost .4s linear infinite; }
.ui-ctf-flag[data-state="dropped"] .normal { animation: ctf-dropped-normal 1.2s ease-in-out infinite; }
.ui-ctf-flag[data-state="dropped"] .lost { animation: ctf-dropped-lost 1.2s ease-in-out infinite; }
.ui-ctf-flag[data-state="pulse"] .normal { animation: ctf-score-normal 1.4s linear 1; }
.ui-ctf-flag[data-state="pulse"] .pulse { animation: ctf-score-pulse 1.4s linear 1; }
@keyframes ctf-carried-normal { 0%, 5%, 50%, 55%, 100% { opacity: 1; } 5.01%, 49.99% { opacity: 0; } }
@keyframes ctf-carried-lost { 0%, 5%, 50%, 55%, 100% { opacity: 0; } 5.01%, 49.99% { opacity: 1; } }
@keyframes ctf-dropped-normal { 0% { opacity: 1; } 45.45%, 50% { opacity: 0; } 95.45%, 100% { opacity: 1; } }
@keyframes ctf-dropped-lost { 0% { opacity: 0; } 45.45%, 50% { opacity: 1; } 95.45%, 100% { opacity: 0; } }
@keyframes ctf-score-normal { 0% { opacity: 1; } 7%, 29% { opacity: 0; } 100% { opacity: 1; } }
@keyframes ctf-score-pulse { 0% { opacity: 0; } 7%, 29% { opacity: 1; } 100% { opacity: 0; } }
.ui-team-score[data-mode="CTF"] #battle-red-score.ctf-score-pulse {
  animation: ctf-red-score-pulse 1.4s linear 1;
}
.ui-team-score[data-mode="CTF"] #battle-blue-score.ctf-score-pulse {
  animation: ctf-blue-score-pulse 1.4s linear 1;
}
@keyframes ctf-red-score-pulse {
  0% { color: #ff774d; }
  7%, 29% { color: #fff; }
  100% { color: #ff774d; }
}
@keyframes ctf-blue-score-pulse {
  0% { color: #48a2ff; }
  7%, 29% { color: #fff; }
  100% { color: #48a2ff; }
}

.ui-team-score[data-mode="CP"] .ui-field-content,
.ui-team-score[data-mode="DOM"] .ui-field-content { top: 6px; }
.ui-team-score[data-mode="CP"] #battle-team-score-icon,
.ui-team-score[data-mode="DOM"] #battle-team-score-icon { width: 21px; height: 21px; }


body.network-closed {
  background: #171918 url("./assets/ui/metal-background.png") repeat;
}
.server-message-layer {
  position: fixed;
  z-index: 5000;
  inset: 0;
  pointer-events: none;
  user-select: none;
}
.server-message-window {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 300px;
  height: 98px;
  transform: translate(-50%, -50%);
  overflow: hidden;
  border: 0;
  border-radius: 5px;
  background: #ccc;
  box-shadow: 1px 3px 2px rgba(0, 0, 0, .5);
  color: #000;
  pointer-events: auto;
}
.server-message-text {
  position: absolute;
  top: 25px;
  left: 25px;
  width: 250px;
  min-height: 13px;
  margin: 0;
  overflow-wrap: break-word;
  color: #000;
  font: 11px/13px Tahoma, Arial, sans-serif;
  text-align: center;
  user-select: text;
}
.server-message-ok {
  position: absolute;
  top: 53px;
  left: 120px;
  width: 60px;
  height: 30px;
  margin: 0;
  padding: 0;
  border: 1px solid #666;
  border-radius: 5px;
  outline: 0;
  background: #fff;
  color: #000;
  box-shadow: none;
  font: bold 12px/28px Tahoma, Arial, sans-serif;
  text-align: center;
}
.server-message-ok:hover,
.server-message-ok:focus-visible {
  background: #fff;
  color: #000;
}
.server-message-ok:active {
  transform: translateY(1px);
}


.app .lobby-shell {
  height: calc(100vh - 60px) !important;
  margin-top: 3px;
}
.app .ui-lobby.active,
.app .battle-column,
.app .info-column {
  min-height: 530px;
}
.app .battle-column,
.app .info-column {
  box-sizing: border-box;
  padding: 0 !important;
}


.app .battle-column > .window-inner {
  position: absolute !important;
  top: 11px !important;
  right: 11px !important;
  bottom: 47px !important;
  left: 11px !important;
  width: auto !important;
  height: auto !important;
  box-sizing: border-box;
  padding: 0 !important;
  overflow: hidden !important;
}
.app .battle-column > .window-inner::before {
  z-index: 0;
}
.app .battle-column .battle-list {
  position: absolute;
  z-index: 1;
  top: 4px;
  right: 4px;
  bottom: 4px;
  left: 4px;
  width: auto;
  height: auto;
  min-height: 0;
  box-sizing: border-box;
  overflow-x: hidden;
  overflow-y: auto;
  padding: 0;
}
.app .battle-list-empty {
  margin: 7px 8px;
  color: #3bea31;
  font: 12px/18px MTanksMyriadPro, MyriadPro, Arial, sans-serif;
}
.app .battle-row {
  position: relative;
  display: block !important;
  width: 100%;
  min-width: 0;
  height: 20px !important;
  min-height: 20px !important;
  box-sizing: border-box;
  overflow: hidden;
  margin: 0;
  padding: 0 !important;
  border: 0 !important;
  outline: 0;
  background-color: transparent !important;
  background-image:
    url("./assets/ui/tank-ui/images/53_assets.cellrenderer.battlelist.cell_normal_UP_LEFT.png"),
    url("./assets/ui/tank-ui/images/52_assets.cellrenderer.battlelist.cell_normal_UP_RIGHT.png"),
    url("./assets/ui/tank-ui/images/54_assets.cellrenderer.battlelist.cell_normal_UP_CENTER.png") !important;
  background-position: left top, right top, 5px top !important;
  background-repeat: no-repeat, no-repeat, repeat-x !important;
  background-size: 5px 20px, 5px 20px, 4px 20px !important;
  color: #22ef22 !important;
  filter: none !important;
  font: 12px/18px MTanksMyriadPro, MyriadPro, Arial, sans-serif !important;
  line-height: 18px !important;
  text-shadow: none !important;
  cursor: pointer;
}
.app .battle-row:hover:not(.disabled) {
  filter: brightness(1.08) !important;
}
.app .battle-row.selected {
  background-image:
    url("./assets/ui/tank-ui/images/56_assets.cellrenderer.battlelist.cell_normal_SELECTED_LEFT.png"),
    url("./assets/ui/tank-ui/images/55_assets.cellrenderer.battlelist.cell_normal_SELECTED_RIGHT.png"),
    url("./assets/ui/tank-ui/images/57_assets.cellrenderer.battlelist.cell_normal_SELECTED_CENTER.png") !important;
  color: #59ff32 !important;
}
.app .battle-row.disabled {
  background-image:
    url("./assets/ui/tank-ui/images/47_assets.cellrenderer.battlelist.cell_off_UP_LEFT.png"),
    url("./assets/ui/tank-ui/images/46_assets.cellrenderer.battlelist.cell_off_UP_RIGHT.png"),
    url("./assets/ui/tank-ui/images/48_assets.cellrenderer.battlelist.cell_off_UP_CENTER.png") !important;
  color: #b1b1b1 !important;
  cursor: default;
}
.app .battle-row.disabled.selected {
  background-image:
    url("./assets/ui/tank-ui/images/50_assets.cellrenderer.battlelist.cell_off_SELECTED_LEFT.png"),
    url("./assets/ui/tank-ui/images/49_assets.cellrenderer.battlelist.cell_off_SELECTED_RIGHT.png"),
    url("./assets/ui/tank-ui/images/51_assets.cellrenderer.battlelist.cell_off_SELECTED_CENTER.png") !important;
  color: #585858 !important;
}
.app .battle-row .battle-title,
.app .battle-row .battle-map,
.app .battle-row .battle-count {
  position: absolute;
  top: -1px;
  height: 20px;
  box-sizing: border-box;
  line-height: 20px;
}
.app .battle-row .battle-title {
  left: 8px;
  width: calc(55% - 6px);
  min-width: 0;
  overflow: hidden;
  text-overflow: clip;
  white-space: nowrap;
}
.app .battle-row .battle-map {
  right: 2px;
  width: 42%;
  min-width: 0;
  overflow: hidden;
  text-align: right;
  text-overflow: clip;
  white-space: nowrap;
}
.app .battle-lock {
  position: relative;
  z-index: 3;
  width: 8px !important;
  height: 10px !important;
  margin: 0 3px 0 -2px !important;
  vertical-align: -1px !important;
}
.app .battle-row .battle-count {
  z-index: 4;
  top: 1px;
  left: 55%;
  width: 54px !important;
  height: 14px !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: none !important;
  color: #fff;
  font: 12px/14px MTanksMyriadPro, MyriadPro, Arial, sans-serif !important;
  text-shadow: none !important;
}
.app .battle-abris {
  position: absolute;
  top: 0;
  height: 14px;
  background-position: left top;
  background-repeat: no-repeat;
}
.app .battle-abris.dm {
  left: 0;
  width: 54px;
  background-image: url("./assets/ui/ui-battlelist/abris/2.png");
}
.app .battle-abris.dm.full { background-image: url("./assets/ui/ui-battlelist/abris/1.png"); }
.app .battle-abris.red {
  left: 0;
  width: 27px;
  background-image: url("./assets/ui/ui-battlelist/abris/5.png");
}
.app .battle-abris.red.full { background-image: url("./assets/ui/ui-battlelist/abris/3.png"); }
.app .battle-abris.blue {
  left: 27px;
  width: 27px;
  background-image: url("./assets/ui/ui-battlelist/abris/6.png");
}
.app .battle-abris.blue.full { background-image: url("./assets/ui/ui-battlelist/abris/4.png"); }
.app .battle-row .battle-count b {
  position: absolute;
  z-index: 2;
  top: -1px;
  height: 15px;
  color: inherit;
  font-weight: normal;
  line-height: 15px;
}
.app .battle-row .dm-count b { left: 0; width: 52px; text-align: center; }
.app .battle-row .team-count .red-count { left: 0; width: 27px; text-align: center; }
.app .battle-row .team-count .blue-count { right: 1px; width: 25px; text-align: center; }
.app .battle-column .window-action {
  position: absolute;
  right: 11px !important;
  bottom: 12px !important;
  width: 84px;
  min-width: 84px;
  height: 30px;
}

/* ViewDM/ViewTDM main coordinates use the right TankWindow's 11px origin. */
.app .info-column > .selected-battle-info {
  position: absolute !important;
  top: 11px;
  right: 11px;
  bottom: 11px;
  left: 11px;
  width: auto !important;
  height: auto !important;
  box-sizing: border-box;
  overflow: visible !important;
  color: #eee;
  font: 12px/20px MTanksMyriadPro, MyriadPro, Arial, sans-serif !important;
}
.app .ui-battle-info-layout {
  position: absolute;
  inset: 0;
  overflow: visible;
}
.app .ui-battle-info-head {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: var(--ui-info-height, 40%);
}
.app .battle-preview-frame,
.app .battle-player-list,
.app .battle-create-preview {
  box-sizing: border-box;
  border: 0;
  border-radius: 0;
  background-color: #06260a;
  background-image:
    url("./assets/ui/ui-components/inner/top-left.png"),
    url("./assets/ui/ui-components/inner/top-right.png"),
    url("./assets/ui/ui-components/inner/bottom-left.png"),
    url("./assets/ui/ui-components/inner/bottom-right.png"),
    url("./assets/ui/ui-components/inner/30_assets.windowinner.bitmaps.WindowInnerTop.png"),
    url("./assets/ui/ui-components/inner/34_assets.windowinner.bitmaps.WindowInnerBottom.png"),
    url("./assets/ui/ui-components/inner/32_assets.windowinner.bitmaps.WindowInnerLeft.png"),
    url("./assets/ui/ui-components/inner/31_assets.windowinner.bitmaps.WindowInnerRight.png");
  background-position:
    left top, right top, left bottom, right bottom,
    6px top, 6px bottom, left 6px, right 6px;
  background-repeat:
    no-repeat, no-repeat, no-repeat, no-repeat,
    repeat-x, repeat-x, repeat-y, repeat-y;
  box-shadow: none;
}
.app .battle-preview-frame {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 33px;
  left: 0;
  overflow: hidden;
  background-color: #050b06;
}
.app .battle-preview-frame::after,
.app .battle-create-preview::after {
  content: "";
  position: absolute;
  z-index: 3;
  inset: 0;
  pointer-events: none;
  background-image:
    url("./assets/ui/ui-components/inner/top-left.png"),
    url("./assets/ui/ui-components/inner/top-right.png"),
    url("./assets/ui/ui-components/inner/bottom-left.png"),
    url("./assets/ui/ui-components/inner/bottom-right.png"),
    url("./assets/ui/ui-components/inner/30_assets.windowinner.bitmaps.WindowInnerTop.png"),
    url("./assets/ui/ui-components/inner/34_assets.windowinner.bitmaps.WindowInnerBottom.png"),
    url("./assets/ui/ui-components/inner/32_assets.windowinner.bitmaps.WindowInnerLeft.png"),
    url("./assets/ui/ui-components/inner/31_assets.windowinner.bitmaps.WindowInnerRight.png");
  background-position:left top,right top,left bottom,right bottom,6px top,6px bottom,left 6px,right 6px;
  background-repeat:no-repeat,no-repeat,no-repeat,no-repeat,repeat-x,repeat-x,repeat-y,repeat-y;
}
.app .battle-preview-image,
.app .battle-create-preview > img {
  position: absolute;
  z-index: 1;
  top: 50%;
  left: 50%;
  display: block;
  width: auto !important;
  min-width: 0;
  max-width: none !important;
  height: auto !important;
  min-height: 0;
  max-height: none !important;
  object-fit: none !important;
  transform: translate(-50%, -50%);
}
.app .battle-info-title {
  position: absolute;
  z-index: 5;
  top: 10px;
  left: 10px;
  right: 112px;
  height: 25px;
  overflow: hidden;
  color: #fff;
  font: 18px/25px MTanksMyriadPro, MyriadPro, Arial, sans-serif;
  text-shadow: 0 0 6px #000;
  white-space: nowrap;
}
.app .battle-info-icons {
  position: absolute;
  z-index: 5;
  top: 40px;
  left: 12px;
  display: flex;
  align-items: flex-start;
  height: 24px;
  color: #fff;
  filter: drop-shadow(0 0 3px #000);
}
.app .battle-info-icon {
  position: relative;
  display: inline-block;
  height: 23px;
  margin-right: 5px;
}
.app .battle-info-icon img,
.app .battle-info-rule-icon {
  width: 22px;
  height: 23px;
  object-fit: contain;
}
.app .battle-info-icon b {
  position: relative;
  top: -8px;
  min-width: 24px;
  margin-left: -4px;
  color: #fff;
  font-size: 12px;
  font-weight: normal;
  line-height: 20px;
  text-shadow: 0 0 4px #000;
}
.app .battle-info-rule-icon { display: inline-block; margin-left: 0; }
.app .battle-info-rule-icon.spaced { margin-left: 12px; }
.app .battle-info-rule-icon.dom { width: 24px; height: 24px; margin-top: -3px; }
.app .battle-info-ranks {
  position: absolute;
  z-index: 5;
  right: 10px;
  bottom: 43px;
  width: 208px;
  height: 28px;
  display: flex;
  flex-flow: row-reverse wrap-reverse;
  align-content: flex-start;
  justify-content: flex-start;
  overflow: visible;
  filter: drop-shadow(0 0 3px #000);
}
.app .battle-info-ranks img {
  width: 13px;
  height: 13px;
  flex: 0 0 13px;
  margin-bottom: 1px;
}
.app .spectator-button {
  position: absolute !important;
  z-index: 6;
  top: 10px !important;
  right: 10px !important;
  width: 91px;
  min-width: 91px;
  height: 30px;
}
.app .battle-link {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 30px !important;
  display: flex;
  align-items: stretch;
  gap: 3px !important;
}
.app .battle-link input {
  width: 0;
  min-width: 0;
  height: 30px !important;
  flex: 1 1 auto;
  box-sizing: border-box;
  padding-left: 7px;
  font-size: 11px;
}
.app .battle-link .ui-button {
  width: 112px;
  min-width: 112px;
  height: 30px;
  padding: 0 3px;
  font-size: 10px;
}


.app .battle-player-list,
.app .team-player-lists {
  position: absolute;
  top: calc(var(--ui-info-height, 40%) + 3px);
  height: var(--ui-list-height, calc(60% - 80px));
}
.app .battle-player-list {
  overflow-x: hidden;
  overflow-y: auto;
  padding: 4px;
}
.app .ui-battle-info-layout.dm > .battle-player-list {
  right: 0;
  left: 0;
}
.app .team-player-lists {
  right: 0;
  left: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 3px;
}
.app .team-player-lists > .battle-player-list {
  position: relative;
  top: auto;
  right: auto;
  bottom: auto;
  left: auto;
  width: auto;
  height: 100%;
  min-width: 0;
}
.app .battle-player-row {
  position: relative;
  display: block;
  width: 100%;
  height: 20px;
  min-height: 20px;
  box-sizing: border-box;
  overflow: hidden;
  padding: 0;
  border: 0;
  background-position: left top, right top, 5px top;
  background-repeat: no-repeat, no-repeat, repeat-x;
  background-size: 5px 20px, 5px 20px, 4px 20px;
  color: #fff;
  font: 12px/20px MTanksMyriadPro, MyriadPro, Arial, sans-serif;
}
.app .battle-player-row.green {
  background-image:
    url("./assets/ui/tank-ui/images/53_assets.cellrenderer.battlelist.cell_normal_UP_LEFT.png"),
    url("./assets/ui/tank-ui/images/52_assets.cellrenderer.battlelist.cell_normal_UP_RIGHT.png"),
    url("./assets/ui/tank-ui/images/54_assets.cellrenderer.battlelist.cell_normal_UP_CENTER.png");
  color: #22ef22;
}
.app .battle-player-row.red {
  background-image:
    url("./assets/ui/tank-ui/images/44_assets.cellrenderer.battlelist.cell_RED_LEFT.png"),
    url("./assets/ui/tank-ui/images/43_assets.cellrenderer.battlelist.cell_RED_RIGHT.png"),
    url("./assets/ui/tank-ui/images/45_assets.cellrenderer.battlelist.cell_RED_CENTER.png");
}
.app .battle-player-row.blue {
  background-image:
    url("./assets/ui/tank-ui/images/59_assets.cellrenderer.battlelist.cell_BLUE_LEFT.png"),
    url("./assets/ui/tank-ui/images/58_assets.cellrenderer.battlelist.cell_BLUE_RIGHT.png"),
    url("./assets/ui/tank-ui/images/60_assets.cellrenderer.battlelist.cell_BLUE_CENTER.png");
}
.app .battle-player-row > img {
  position: absolute;
  top: 4px;
  left: 13px;
  width: 13px;
  height: 13px;
}
.app .battle-player-row > span {
  position: absolute;
  top: 0;
  right: 35px;
  left: 26px;
  overflow: hidden;
  text-overflow: clip;
  white-space: nowrap;
}
.app .battle-player-row > b {
  position: absolute;
  top: 0;
  right: 9px;
  width: 20px;
  color: inherit;
  font-weight: normal;
  text-align: center;
}
.app .battle-player-row.empty > span {
  left: 8px;
  color: inherit;
}
.app .battle-info-bottom {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 50px;
}
.app .battle-big-button,
.app .battle-type-button {
  box-sizing: border-box;
  height: 50px;
  margin: 0;
  padding: 0;
  border: 0;
  outline: 0;
  background-color: transparent;
  background-image:
    url("./assets/ui/tank-ui/images/476_assets.button.bigbutton_UP_LEFT.png"),
    url("./assets/ui/tank-ui/images/475_assets.button.bigbutton_UP_RIGHT.png"),
    url("./assets/ui/tank-ui/images/477_assets.button.bigbutton_UP_CENTER.png");
  background-origin: border-box, border-box, padding-box;
  background-clip: border-box, border-box, padding-box;
  background-position: left top, right top, 7px top;
  background-repeat: no-repeat, no-repeat, no-repeat;
  background-size: 7px 50px, 7px 50px, calc(100% - 14px) 50px;
  color: #fff;
  font: 12px/15px MTanksMyriadPro, MyriadPro, Arial, sans-serif;
  text-shadow: 0 1px 1px #000;
  cursor: pointer;
}
.app .battle-big-button:hover:not(:disabled),
.app .battle-type-button:hover:not(:disabled) {
  background-image:
    url("./assets/ui/tank-ui/images/473_assets.button.bigbutton_OVER_LEFT.png"),
    url("./assets/ui/tank-ui/images/472_assets.button.bigbutton_OVER_RIGHT.png"),
    url("./assets/ui/tank-ui/images/474_assets.button.bigbutton_OVER_CENTER.png");
}
.app .battle-big-button:active:not(:disabled),
.app .battle-type-button:active:not(:disabled),
.app .battle-type-button.selected {
  background-image:
    url("./assets/ui/tank-ui/images/470_assets.button.bigbutton_DOWN_LEFT.png"),
    url("./assets/ui/tank-ui/images/469_assets.button.bigbutton_DOWN_RIGHT.png"),
    url("./assets/ui/tank-ui/images/471_assets.button.bigbutton_DOWN_CENTER.png");
}
.app .battle-big-button:disabled,
.app .battle-type-button:disabled {
  background-image:
    url("./assets/ui/tank-ui/images/467_assets.button.bigbutton_OFF_LEFT.png"),
    url("./assets/ui/tank-ui/images/466_assets.button.bigbutton_OFF_RIGHT.png"),
    url("./assets/ui/tank-ui/images/468_assets.button.bigbutton_OFF_CENTER.png");
  color: #858585;
  cursor: default;
}
.app .battle-info-bottom .battle-big-button {
  position: absolute;
  bottom: 0;
  width: 130px;
}
.app .battle-info-bottom.dm .battle-big-button { right: 0; }
.app .battle-info-bottom.team .battle-big-button {
  width: min(130px, calc((100% - 88px) / 2));
}
.app .battle-info-bottom.team .battle-big-button.red { left: 0; }
.app .battle-info-bottom.team .battle-big-button.blue { right: 0; }
.app .battle-big-button-icon {
  position: absolute;
  top: 12px;
  left: 6px;
  width: 46px;
  height: 26px;
}
.app .battle-big-button > span {
  position: absolute;
  top: 16px;
  right: 4px;
  left: 50px;
  height: 18px;
  line-height: 18px;
  text-align: center;
}
.app .battle-big-button > small {
  position: absolute;
  top: 25px;
  left: 52px;
  display: flex;
  align-items: center;
  gap: 1px;
  font-size: 11px;
}
.app .battle-big-button > small img { width: 11px; height: 11px; }
.app .battle-big-button:has(> small) > span { top: 6px; }
.app .team-score {
  position: absolute;
  bottom: 8px;
  left: 50%;
  width: 70px;
  height: 32px;
  transform: translateX(-50%);
  color: #fff;
  font: 22px/30px MTanksMyriadPro, MyriadPro, Arial, sans-serif;
  text-align: center;
  filter: drop-shadow(0 0 3px rgba(204, 255, 204, .5));
}
.app .team-score b { display: inline-block; min-width: 24px; font-weight: normal; }
.app .team-score b:first-child { color: #ff3030; text-align: right; }
.app .team-score b:last-child { color: #4ea9ff; text-align: left; }
.app .team-score span { margin: 0 2px; color: #fff; }
.app .battle-no-subscribe {
  position: absolute;
  right: 4px;
  bottom: 85px;
  left: 4px;
  height: 69px;
  box-sizing: border-box;
  overflow: hidden;
  border-radius: 8px;
  background: rgba(0, 0, 0, .82);
}
.app .battle-no-subscribe img {
  position: absolute;
  top: 3px;
  left: 12px;
  width: 69px;
  height: 63px;
}
.app .battle-no-subscribe span {
  position: absolute;
  top: 50%;
  right: 12px;
  left: 100px;
  color: #fff;
  font: 12px/14px MTanksMyriadPro, MyriadPro, Arial, sans-serif;
  transform: translateY(-50%);
}


.app .battle-create-form {
  position: absolute;
  inset: 0;
  color: #eee;
  font: 12px/18px MTanksMyriadPro, MyriadPro, Arial, sans-serif;
}
.app .battle-create-name,
.app .battle-create-map,
.app .battle-create-theme {
  position: absolute;
  height: 30px;
  display: flex;
  align-items: center;
}
.app .battle-create-name { top: 0; right: 0; left: 0; }
.app .battle-create-map { top: 35px; left: 0; width: 53%; }
.app .battle-create-theme { top: 35px; right: 0; width: 45%; }
.app .battle-create-name > span,
.app .battle-create-map > span,
.app .battle-create-theme > span {
  width: 47px;
  flex: 0 0 47px;
  color: #eee;
  line-height: 30px;
  text-align: right;
  padding-right: 6px;
}
.app .battle-create-name > input,
.app .battle-create-map > select,
.app .battle-create-theme > select {
  height: 30px;
  min-width: 0;
  flex: 1 1 auto;
  box-sizing: border-box;
  border: 0;
  border-radius: 0;
  outline: 0;
  padding: 3px 30px 4px 7px;
  background-color: transparent;
  background-image:
    url("./assets/ui/ui-components/input/27_assets.input.InputLeft.png"),
    url("./assets/ui/ui-components/input/25_assets.input.InputRight.png"),
    url("./assets/ui/ui-components/input/29_assets.input.InputCenter.png");
  background-position: left top, right top, 5px top;
  background-repeat: no-repeat, no-repeat, repeat-x;
  color: #eee;
  font: 12px/20px MTanksMyriadPro, MyriadPro, Arial, sans-serif;
}
.app .battle-create-map > select,
.app .battle-create-theme > select {
  appearance: none;
  background-image:
    url("./assets/ui/tank-ui/images/461_assets.combo.combo_UP_LEFT.png"),
    url("./assets/ui/tank-ui/images/460_assets.combo.combo_UP_RIGHT.png"),
    url("./assets/ui/tank-ui/images/462_assets.combo.combo_UP_CENTER.png");
  background-position: left top, right top, 7px top;
  background-repeat: no-repeat, no-repeat, repeat-x;
  background-color: #102512;
}
.app .battle-create-name > i {
  position: absolute;
  top: 7px;
  right: 7px;
  width: 16px;
  height: 16px;
}
.app .battle-create-name > i.pending { border: 2px solid #8ead29; border-top-color: transparent; border-radius: 50%; animation: battle-name-spin .7s linear infinite; }
.app .battle-create-name > i.invalid::after { content: "×"; color: #ff4a37; font: bold 19px/16px Arial, sans-serif; }
@keyframes battle-name-spin { to { transform: rotate(360deg); } }
.app .battle-create-preview {
  position: absolute;
  top: 70px;
  right: 0;
  left: 0;
  height: var(--ui-create-preview-height, calc(100% - 393px));
  overflow: hidden;
  background-color: #050b06;
}
.app .battle-create-rank {
  position: absolute;
  top: calc(var(--ui-create-preview-height, calc(100% - 393px)) + 75px);
  right: 0;
  left: 0;
  height: 29px;
}
.app .battle-create-rank .rank-caption {
  position: absolute;
  top: -16px;
  left: 0;
  right: 0;
  height: 15px;
}
.app .battle-create-rank .rank-caption span { float: left; }
.app .battle-create-rank .rank-caption b { float: right; color: #91bf2a; font-weight: normal; }
.app .battle-create-rank .rank-icons {
  position: absolute;
  top: 8px;
  right: 0;
  left: 0;
  height: 13px;
  display: flex;
  justify-content: space-between;
  overflow: hidden;
  opacity: .84;
}
.app .battle-create-rank .rank-icons img { width: 13px; height: 13px; }
.app .battle-create-rank input[type="range"] {
  position: absolute;
  z-index: 3;
  top: 0;
  left: 0;
  width: 100%;
  height: 29px;
  margin: 0;
  appearance: none;
  pointer-events: none;
  background: transparent;
}
.app .battle-create-rank input[type="range"]::-webkit-slider-runnable-track { height: 4px; margin-top: 12px; background: #345c16; border: 1px solid #6e9a2f; }
.app .battle-create-rank input[type="range"]::-webkit-slider-thumb { width: 10px; height: 23px; margin-top: -10px; appearance: none; border: 1px solid #9cca48; background: #466f1b; pointer-events: auto; }
.app .battle-create-rank input[type="range"]::-moz-range-track { height: 4px; background: #345c16; border: 1px solid #6e9a2f; }
.app .battle-create-rank input[type="range"]::-moz-range-thumb { width: 10px; height: 23px; border: 1px solid #9cca48; border-radius: 0; background: #466f1b; pointer-events: auto; }
.app .battle-type-buttons {
  position: absolute;
  top: calc(var(--ui-create-preview-height, calc(100% - 393px)) + 110px);
  right: 0;
  left: 0;
  height: 50px;
  display: flex;
  gap: 3px;
}
.app .battle-type-button {
  position: relative;
  min-width: 0;
  flex: 1 1 0;
  line-height: 14px;
  text-align: center;
}
.app .battle-create-steppers {
  position: absolute;
  top: calc(var(--ui-create-preview-height, calc(100% - 393px)) + 190px);
  right: 0;
  left: 0;
  height: 31px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}
.app .battle-create-stepper {
  position: relative;
  height: 31px;
  min-width: 0;
}
.app .battle-create-stepper > span {
  position: absolute;
  top: -18px;
  left: 0;
  right: 0;
  height: 17px;
  overflow: hidden;
  text-align: center;
  white-space: nowrap;
}
.app .battle-create-stepper > img {
  position: absolute;
  z-index: 3;
  top: 4px;
  left: 5px;
  width: 22px;
  height: 23px;
}
.app .battle-create-stepper > input {
  position: absolute;
  inset: 0 20px 0 0;
  width: calc(100% - 20px);
  height: 31px;
  box-sizing: border-box;
  border: 0;
  outline: 0;
  padding: 3px 4px 3px 30px;
  background-image:
    url("./assets/ui/ui-components/input/27_assets.input.InputLeft.png"),
    url("./assets/ui/ui-components/input/25_assets.input.InputRight.png"),
    url("./assets/ui/ui-components/input/29_assets.input.InputCenter.png");
  background-position: left top, right top, 5px top;
  background-repeat: no-repeat, no-repeat, repeat-x;
  background-color: transparent;
  color: #fff;
  font: 12px/24px MTanksMyriadPro, MyriadPro, Arial, sans-serif;
  text-align: center;
}
.app .battle-create-stepper > i {
  position: absolute;
  top: 0;
  right: 0;
  width: 20px;
  height: 31px;
  background: url("./assets/ui/ui-components/stepper/up.png") no-repeat;
}
.app .battle-create-stepper > i button {
  position: absolute;
  right: 0;
  width: 20px;
  height: 15px;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
}
.app .battle-create-stepper > i button:first-child { top: 0; }
.app .battle-create-stepper > i button:last-child { bottom: 0; }
.app .battle-create-team-checks,
.app .battle-create-paid-checks {
  position: absolute;
  top: calc(var(--ui-create-preview-height, calc(100% - 393px)) + 235px);
  display: flex;
  align-items: center;
  height: 28px;
  gap: 14px;
}
.app .battle-create-team-checks { left: 0; }
.app .battle-create-paid-checks { right: 0; }
.app .battle-create-check {
  position: relative;
  display: inline-flex;
  align-items: center;
  height: 28px;
  min-width: 27px;
  color: #eee;
  cursor: pointer;
}
.app .battle-create-check > input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.app .battle-create-check > i {
  width: 27px;
  height: 28px;
  flex: 0 0 27px;
  background: url("./assets/ui/ui-components/checkbox/1.png") no-repeat;
}
.app .battle-create-check:hover > i { background-image: url("./assets/ui/ui-components/checkbox/2.png"); }
.app .battle-create-check > input:checked + i { background-image: url("./assets/ui/ui-components/checkbox/3.png"); }
.app .battle-create-check:hover > input:checked + i { background-image: url("./assets/ui/ui-components/checkbox/4.png"); }
.app .battle-create-check > span { padding-left: 3px; white-space: nowrap; }
.app .battle-create-form > .battle-create-check {
  position: absolute;
  bottom: 1px;
  left: 0;
}
.app .battle-create-start {
  position: absolute;
  right: 0;
  bottom: 1px;
  width: 96px;
  min-width: 96px;
  height: 30px;
  background-image:
    url("./assets/ui/tank-ui/images/494_assets.button.button_red_UP_LEFT.png"),
    url("./assets/ui/tank-ui/images/493_assets.button.button_red_UP_RIGHT.png"),
    url("./assets/ui/tank-ui/images/495_assets.button.button_red_UP_CENTER.png") !important;
  background-position: left top, right top, 7px top !important;
  background-repeat: no-repeat, no-repeat, repeat-x !important;
}
.app .battle-create-start:hover:not(:disabled) {
  background-image:
    url("./assets/ui/tank-ui/images/491_assets.button.button_red_OVER_LEFT.png"),
    url("./assets/ui/tank-ui/images/490_assets.button.button_red_OVER_RIGHT.png"),
    url("./assets/ui/tank-ui/images/492_assets.button.button_red_OVER_CENTER.png") !important;
}
.app .battle-create-start:active:not(:disabled) {
  background-image:
    url("./assets/ui/tank-ui/images/488_assets.button.button_red_DOWN_LEFT.png"),
    url("./assets/ui/tank-ui/images/487_assets.button.button_red_DOWN_RIGHT.png"),
    url("./assets/ui/tank-ui/images/489_assets.button.button_red_DOWN_CENTER.png") !important;
}
.app .battle-create-start:disabled {
  background-image:
    url("./assets/ui/tank-ui/images/497_assets.button.button_OFF_LEFT.png"),
    url("./assets/ui/tank-ui/images/498_assets.button.button_OFF_RIGHT.png"),
    url("./assets/ui/tank-ui/images/496_assets.button.button_OFF_CENTER.png") !important;
}

/* Full CreateBattleForm port: TankCombo, SelectRank, NumStepper and TankCheckBox. */
.app .battle-create-combo {
  position: absolute;
  z-index: 12;
  top: 35px;
  height: 30px;
  color: #eee;
}
.app .battle-create-map { left: 0; width: calc(50% - 3px); }
.app .battle-create-theme { right: 0; width: calc(50% - 3px); }
.app .battle-create-combo > .combo-label {
  position: absolute;
  top: 0;
  left: 0;
  width: 47px;
  height: 30px;
  padding-right: 6px;
  box-sizing: border-box;
  font: 12px/30px MTanksMyriadPro, MyriadPro, Arial, sans-serif;
  text-align: right;
  pointer-events: none;
}
.app .ui-combo-button {
  position: absolute;
  top: 0;
  right: 0;
  left: 47px;
  height: 30px;
  box-sizing: border-box;
  margin: 0;
  padding: 0 31px 0 8px;
  overflow: hidden;
  border: 0;
  outline: 0;
  background-color: transparent;
  background-image:
    url("./assets/ui/tank-ui/images/461_assets.combo.combo_UP_LEFT.png"),
    url("./assets/ui/tank-ui/images/460_assets.combo.combo_UP_RIGHT.png"),
    url("./assets/ui/tank-ui/images/462_assets.combo.combo_UP_CENTER.png");
  background-position: left top, right top, 7px top;
  background-repeat: no-repeat, no-repeat, repeat-x;
  color: #eee;
  font: 12px/29px MTanksMyriadPro, MyriadPro, Arial, sans-serif;
  text-align: left;
  white-space: nowrap;
  cursor: pointer;
}
.app .ui-combo-button:hover,
.app .battle-create-combo.open .ui-combo-button {
  background-image:
    url("./assets/ui/tank-ui/images/458_assets.combo.combo_OVER_LEFT.png"),
    url("./assets/ui/tank-ui/images/459_assets.combo.combo_OVER_RIGHT.png"),
    url("./assets/ui/tank-ui/images/457_assets.combo.combo_OVER_CENTER.png");
}
.app .battle-create-combo.open .ui-combo-button,
.app .ui-combo-button:active {
  background-image:
    url("./assets/ui/tank-ui/images/455_assets.combo.combo_DOWN_LEFT.png"),
    url("./assets/ui/tank-ui/images/456_assets.combo.combo_DOWN_RIGHT.png"),
    url("./assets/ui/tank-ui/images/454_assets.combo.combo_DOWN_CENTER.png");
}
.app .ui-combo-button > span {
  display: block;
  overflow: hidden;
  text-overflow: clip;
  white-space: nowrap;
}
.app .ui-combo-popup {
  position: absolute;
  z-index: 100;
  top: 33px;
  right: 0;
  left: 47px;
  display: none;
  max-height: 235px;
  box-sizing: border-box;
  overflow-x: hidden;
  overflow-y: auto;
  padding: 4px 4px 5px;
  border: 0;
  background-color: #061f09;
  background-image: url("./assets/ui/tank-ui/images/42_assets.windowinner.bitmaps.combo_BG.png");
  background-size: 100% 100%;
  box-shadow: 0 2px 6px rgba(0,0,0,.7);
}
.app .battle-create-combo.open .ui-combo-popup { display: block; }
.app .ui-combo-item {
  position: relative;
  display: block;
  width: 100%;
  height: 20px;
  margin: 0;
  padding: 0 24px 0 7px;
  overflow: hidden;
  border: 0;
  outline: 0;
  background: transparent;
  color: #b1b1b1;
  font: 12px/20px MTanksMyriadPro, MyriadPro, Arial, sans-serif;
  text-align: left;
  white-space: nowrap;
  cursor: pointer;
}
.app .ui-combo-item:hover,
.app .ui-combo-item.selected {
  background-image:
    url("./assets/ui/tank-ui/images/449_assets.combo.combolist_OVER_LEFT.png"),
    url("./assets/ui/tank-ui/images/448_assets.combo.combolist_OVER_RIGHT.png"),
    url("./assets/ui/tank-ui/images/450_assets.combo.combolist_OVER_CENTER.png");
  background-position: left top, right top, 5px top;
  background-repeat: no-repeat, no-repeat, repeat-x;
  color: #62ed32;
}
.app .ui-combo-item.disabled {
  color: #585858;
  cursor: default;
}
.app .ui-combo-item > img {
  position: absolute;
  top: 3px;
  right: 5px;
  width: 13px;
  height: 13px;
}

.app .battle-create-rank {
  position: absolute;
  z-index: 5;
  top: calc(var(--ui-create-preview-height, calc(100% - 393px)) + 75px);
  right: 0;
  left: 0;
  height: 30px;
  overflow: visible;
  user-select: none;
  touch-action: none;
}
.app .ui-rank-track {
  position: absolute;
  inset: 0;
  background-image:
    url("./assets/ui/tank-ui/images/446_assets.slider.slider_TRACK_LEFT.png"),
    url("./assets/ui/tank-ui/images/445_assets.slider.slider_TRACK_RIGHT.png"),
    url("./assets/ui/tank-ui/images/447_assets.slider.slider_TRACK_CENTER.png");
  background-position: left top, right top, 5px top;
  background-repeat: no-repeat, no-repeat, repeat-x;
  pointer-events: none;
}
.app .ui-rank-thumb {
  position: absolute;
  top: 0;
  min-width: 36px;
  height: 30px;
  box-sizing: border-box;
  background-image:
    url("./assets/ui/tank-ui/images/443_assets.slider.slider_THUMB_LEFT.png"),
    url("./assets/ui/tank-ui/images/442_assets.slider.slider_THUMB_RIGHT.png"),
    url("./assets/ui/tank-ui/images/444_assets.slider.slider_THUMB_CENTER.png");
  background-position: left top, right top, 10px top;
  background-repeat: no-repeat, no-repeat, repeat-x;
  touch-action: none;
}
.app .ui-rank-thumb::before,
.app .ui-rank-thumb::after {
  content: "";
  position: absolute;
  top: 12px;
  width: 4px;
  height: 7px;
  background: url("./assets/ui/ui-components/slider/select-rank-arrow.png") no-repeat;
  pointer-events: none;
}
.app .ui-rank-thumb::before { left: 5px; }
.app .ui-rank-thumb::after { right: 5px; transform: rotate(180deg); }
.app .ui-rank-thumb.single::before,
.app .ui-rank-thumb.single::after { display: none; }
.app .ui-rank-thumb > img {
  position: absolute;
  z-index: 2;
  top: 9px;
  width: 13px;
  height: 13px;
  pointer-events: none;
}
.app .ui-rank-thumb .rank-thumb-min { left: 11px; }
.app .ui-rank-thumb .rank-thumb-max { right: 11px; }
.app .ui-rank-thumb.single .rank-thumb-min { left: 50%; transform: translateX(-50%); }
.app .rank-drag {
  position: absolute;
  z-index: 3;
  top: 0;
  height: 30px;
  cursor: ew-resize;
}
.app .rank-drag-left { left: 0; width: 10px; }
.app .rank-drag-right { right: 0; width: 10px; }
.app .rank-drag-center { right: 10px; left: 10px; cursor: grab; }
.app .rank-drag-center:active { cursor: grabbing; }

.app .battle-type-buttons {
  display: block;
  gap: 0;
  overflow: visible;
}
.app .battle-type-buttons .battle-type-button {
  position: absolute;
  top: 0;
  height: 50px;
  min-width: 0;
  flex: none;
}
.app .battle-type-button.selected:disabled {
  color: #858585;
  background-image:
    url("./assets/ui/tank-ui/images/470_assets.button.bigbutton_DOWN_LEFT.png"),
    url("./assets/ui/tank-ui/images/469_assets.button.bigbutton_DOWN_RIGHT.png"),
    url("./assets/ui/tank-ui/images/471_assets.button.bigbutton_DOWN_CENTER.png");
}

.app .battle-create-steppers {
  display: block;
  gap: 0;
  overflow: visible;
}
.app .battle-create-stepper {
  position: absolute;
  top: 0;
  width: 95px;
  height: 31px;
}
.app .battle-create-stepper > span {
  left: 18px;
  right: auto;
  width: 77px;
  text-align: left;
}
.app .battle-create-stepper > img {
  top: 8px;
  left: 0;
  width: 18px;
  height: 18px;
  object-fit: contain;
}
.app .battle-create-stepper > input {
  top: 0;
  right: auto;
  bottom: auto;
  left: 19px;
  width: 55px;
  height: 31px;
  padding: 3px 3px;
  text-align: center;
}
.app .battle-create-stepper > i {
  right: auto;
  left: 75px;
  width: 20px;
  height: 31px;
  background: url("./assets/ui/tank-ui/images/380.png") no-repeat 0 0;
}
.app .battle-create-stepper > i:active { background-position: 0 0; }

.app .battle-create-team-checks,
.app .battle-create-paid-checks {
  right: 0;
  left: 0;
  display: block;
  gap: 0;
}
.app .battle-create-paid-checks {
  top: calc(var(--ui-create-preview-height, calc(100% - 393px)) + 275px);
}
.app .battle-create-check {
  position: absolute;
  top: 0;
  display: inline-flex;
  align-items: center;
  width: max-content;
  height: 28px;
  color: #eee;
  cursor: pointer;
  user-select: none;
}
.app .battle-create-check > input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}
.app .battle-create-check > i {
  position: relative;
  width: 27px;
  height: 27px;
  flex: 0 0 27px;
  background: url("./assets/ui/tank-ui/images/508.png") no-repeat;
}
.app .battle-create-check:hover > i { background-image: url("./assets/ui/tank-ui/images/521.png"); }
.app .battle-create-check:active > i { background-image: url("./assets/ui/tank-ui/images/523.png"); }
.app .battle-create-check > i .check-type,
.app .battle-create-check > i .check-mark {
  position: absolute;
  top: 6px;
  left: 6px;
  width: 15px;
  height: 15px;
  object-fit: contain;
  pointer-events: none;
}
.app .battle-create-check > i .check-mark { display: none; }
.app .battle-create-check > input:checked + i {
  background-image: url("./assets/ui/tank-ui/images/525.png");
}
.app .battle-create-check > input:checked + i .check-type { display: none; }
.app .battle-create-check > input:checked + i .check-mark { display: block; }
.app .battle-create-check > span {
  padding-left: 3px;
  line-height: 28px;
  white-space: nowrap;
}
.app .battle-create-team-checks .battle-create-check,
.app .battle-create-paid-checks .battle-create-check { left: 0; }
.app .battle-create-form > .battle-create-check {
  top: auto;
  right: auto;
  bottom: 1px;
  left: 0;
}
.app .battle-create-no-subscribe {
  position: absolute;
  top: calc(var(--ui-create-preview-height, calc(100% - 393px)) + 275px);
  right: 0;
  left: 0;
  height: 69px;
  overflow: hidden;
  border-radius: 8px;
  background: rgba(0,0,0,.82);
}
.app .battle-create-no-subscribe > img {
  position: absolute;
  top: 3px;
  left: 12px;
  width: 69px;
  height: 63px;
}
.app .battle-create-no-subscribe > span {
  position: absolute;
  top: 50%;
  right: 12px;
  left: 100px;
  transform: translateY(-50%);
  font: 12px/14px MTanksMyriadPro, MyriadPro, Arial, sans-serif;
}


.app .battle-player-row > img { top: 2px; left: 2px; width: 13px; height: 13px; }
.app .battle-player-row > span { right: 38px; left: 10px; }
.app .battle-player-row > b { right: 11px; width: 120px; text-align: right; pointer-events: none; }
.app .battle-player-row.empty > span { left: 10px; opacity: .5; }
.app .battle-player-row.empty > b { display: none; }


.app .battle-info-title { right: 10px; }
.app .battle-no-subscribe { bottom: 60px; }
.app .battle-create-form.single-theme .battle-create-map { right: 0; width: auto; }
.app .battle-create-form > .battle-create-check { bottom: 3px; }
.app .team-player-lists { display: block; }
.app .team-player-lists > .battle-player-list.red {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: calc(50% - 1.5px);
  height: auto;
}
.app .team-player-lists > .battle-player-list.blue {
  position: absolute;
  top: 0;
  bottom: 0;
  left: calc(50% + 1.5px);
  width: calc(50% + 1.5px);
  height: auto;
}
.app .team-score {
  left: calc(50% - 1.5px);
  width: 0;
  transform: none;
  overflow: visible;
}
.app .team-score > b,
.app .team-score > span {
  position: absolute;
  top: 0;
  margin: 0;
  min-width: 0;
  white-space: nowrap;
}
.app .team-score > b:first-child { right: 6px; width: auto; text-align: right; }
.app .team-score > span { top: -2px; left: -3px; }
.app .team-score > b:last-child { left: 5px; width: auto; text-align: left; }


.app .battle-row {
  background-image: none !important;
  filter: none !important;
}
.app .battle-row::before,
.app .battle-player-row::before {
  content: "";
  position: absolute;
  z-index: 0;
  top: 0;
  left: 0;
  width: calc(100% - 4px); /* CellRenderer.drawLayout(): background.width = width - 4 */
  height: 20px;
  pointer-events: none;
  background-position: left top, right top, 5px top;
  background-repeat: no-repeat, no-repeat, repeat-x;
  background-size: 5px 20px, 5px 20px, 4px 20px;
}
.app .battle-row::before {
  background-image:
    url("./assets/ui/tank-ui/images/53_assets.cellrenderer.battlelist.cell_normal_UP_LEFT.png"),
    url("./assets/ui/tank-ui/images/52_assets.cellrenderer.battlelist.cell_normal_UP_RIGHT.png"),
    url("./assets/ui/tank-ui/images/54_assets.cellrenderer.battlelist.cell_normal_UP_CENTER.png");
}
.app .battle-row:hover:not(.disabled)::before { filter: brightness(1.08); }
.app .battle-row.selected::before {
  background-image:
    url("./assets/ui/tank-ui/images/56_assets.cellrenderer.battlelist.cell_normal_SELECTED_LEFT.png"),
    url("./assets/ui/tank-ui/images/55_assets.cellrenderer.battlelist.cell_normal_SELECTED_RIGHT.png"),
    url("./assets/ui/tank-ui/images/57_assets.cellrenderer.battlelist.cell_normal_SELECTED_CENTER.png");
}
.app .battle-row.disabled::before {
  background-image:
    url("./assets/ui/tank-ui/images/47_assets.cellrenderer.battlelist.cell_off_UP_LEFT.png"),
    url("./assets/ui/tank-ui/images/46_assets.cellrenderer.battlelist.cell_off_UP_RIGHT.png"),
    url("./assets/ui/tank-ui/images/48_assets.cellrenderer.battlelist.cell_off_UP_CENTER.png");
}
.app .battle-row.disabled.selected::before {
  background-image:
    url("./assets/ui/tank-ui/images/50_assets.cellrenderer.battlelist.cell_off_SELECTED_LEFT.png"),
    url("./assets/ui/tank-ui/images/49_assets.cellrenderer.battlelist.cell_off_SELECTED_RIGHT.png"),
    url("./assets/ui/tank-ui/images/51_assets.cellrenderer.battlelist.cell_off_SELECTED_CENTER.png");
}
/* ViewBattleList.myIcon(): normal accessible text is 0x59FF32, while
  the selected accessible renderer uses TankWindowInner.GREEN (0x0C220D). */
.app .battle-row:not(.disabled) { color: #59ff32 !important; }
.app .battle-row:not(.disabled).selected { color: #0c220d !important; }
.app .battle-row > * { z-index: 1; }
.app .battle-paid-icon {
  position: absolute;
  z-index: 3;
  top: 3px;
  left: -2px;
  width: 10px;
  height: 10px;
  margin-left: 8px;
  pointer-events: none;
}
.battle-paid-icon + span.battle-title{ margin-left: 11px; }
.app .battle-paid-icon.selected { display: none; }
.app .battle-row.selected .battle-paid-icon.normal { display: none; }
.app .battle-row.selected .battle-paid-icon.selected { display: block; }

.app .battle-row .battle-title { left: 8px; }
.app .battle-lock { display: none !important; }

.app .battle-player-row {
  background-image: none !important;
  color: #fff !important; /* TeamListRenderer format.color */
}
.app .battle-player-row.green::before {
  background-image:
    url("./assets/ui/tank-ui/images/53_assets.cellrenderer.battlelist.cell_normal_UP_LEFT.png"),
    url("./assets/ui/tank-ui/images/52_assets.cellrenderer.battlelist.cell_normal_UP_RIGHT.png"),
    url("./assets/ui/tank-ui/images/54_assets.cellrenderer.battlelist.cell_normal_UP_CENTER.png");
}
.app .battle-player-row.red::before {
  background-image:
    url("./assets/ui/tank-ui/images/44_assets.cellrenderer.battlelist.cell_RED_LEFT.png"),
    url("./assets/ui/tank-ui/images/43_assets.cellrenderer.battlelist.cell_RED_RIGHT.png"),
    url("./assets/ui/tank-ui/images/45_assets.cellrenderer.battlelist.cell_RED_CENTER.png");
}
.app .battle-player-row.blue::before {
  background-image:
    url("./assets/ui/tank-ui/images/59_assets.cellrenderer.battlelist.cell_BLUE_LEFT.png"),
    url("./assets/ui/tank-ui/images/58_assets.cellrenderer.battlelist.cell_BLUE_RIGHT.png"),
    url("./assets/ui/tank-ui/images/60_assets.cellrenderer.battlelist.cell_BLUE_CENTER.png");
}
.app .battle-player-row > * { z-index: 1; }
.app .battle-player-row > img { top: 2px; left: -2px; width: 13px; height: 13px; }
.app .battle-player-row > span { right: 38px; left: 10px; color: #fff; }
.app .battle-player-row > b { right: 15px; width: 120px; color: #fff; text-align: right; pointer-events: none; }
.app .battle-player-row.empty > span { left: 10px; opacity: .5; }

/* Original colored UIScrollBar skins used by ViewBattleList/ViewDM/ViewTDM. */
.app .battle-list,
.app .battle-player-list {
  scrollbar-width: thin;
  scrollbar-color: #12a900 transparent;
}
.app .battle-player-list.red { scrollbar-color: #9a3c29 transparent; }
.app .battle-player-list.blue { scrollbar-color: #397eac transparent; }
.app .battle-list::-webkit-scrollbar,
.app .battle-player-list::-webkit-scrollbar { width: 15px; height: 15px; }
.app .battle-list::-webkit-scrollbar-track,
.app .battle-player-list.green::-webkit-scrollbar-track {
  background: url("./assets/ui/tank-ui/images/10_assets.scroller.TrackGreen.png") center top / 15px 1px repeat-y;
}
.app .battle-player-list.red::-webkit-scrollbar-track {
  background: url("./assets/ui/tank-ui/images/9_assets.scroller.TrackRed.png") center top / 15px 1px repeat-y;
}
.app .battle-player-list.blue::-webkit-scrollbar-track {
  background: url("./assets/ui/tank-ui/images/12_assets.scroller.TrackBlue.png") center top / 15px 1px repeat-y;
}
.app .battle-list::-webkit-scrollbar-thumb,
.app .battle-player-list.green::-webkit-scrollbar-thumb {
  min-height: 18px;
  border: 0;
  background:
    url("./assets/ui/tank-ui/images/14_assets.scroller.ThumbTopGreen.png") center top / 15px 1px no-repeat,
    url("./assets/ui/tank-ui/images/18_assets.scroller.ThumbMiddleGreen.png") center top / 15px 1px repeat-y;
}
.app .battle-player-list.red::-webkit-scrollbar-thumb {
  min-height: 18px;
  border: 0;
  background:
    url("./assets/ui/tank-ui/images/13_assets.scroller.ThumbTopRed.png") center top / 15px 1px no-repeat,
    url("./assets/ui/tank-ui/images/17_assets.scroller.ThumbMiddleRed.png") center top / 15px 1px repeat-y;
}
.app .battle-player-list.blue::-webkit-scrollbar-thumb {
  min-height: 18px;
  border: 0;
  background:
    url("./assets/ui/tank-ui/images/16_assets.scroller.ThumbTopBlue.png") center top / 15px 1px no-repeat,
    url("./assets/ui/tank-ui/images/20_assets.scroller.ThumbMiddleBlue.png") center top / 15px 1px repeat-y;
}
.app .battle-list::-webkit-scrollbar-button:single-button:vertical:decrement,
.app .battle-player-list.green::-webkit-scrollbar-button:single-button:vertical:decrement {
  display: block; width: 15px; height: 14px;
  background: url("./assets/ui/tank-ui/sprites/DefineSprite_810_ScrollArrowUpGreen/1.png") center / 15px 14px no-repeat;
}
.app .battle-list::-webkit-scrollbar-button:single-button:vertical:increment,
.app .battle-player-list.green::-webkit-scrollbar-button:single-button:vertical:increment {
  display: block; width: 15px; height: 14px;
  background: url("./assets/ui/tank-ui/sprites/DefineSprite_812_ScrollArrowDownGreen/1.png") center / 15px 14px no-repeat;
}
.app .battle-player-list.red::-webkit-scrollbar-button:single-button:vertical:decrement {
  display: block; width: 15px; height: 14px;
  background: url("./assets/ui/tank-ui/sprites/DefineSprite_803_ScrollArrowUpRed/1.png") center / 15px 14px no-repeat;
}
.app .battle-player-list.red::-webkit-scrollbar-button:single-button:vertical:increment {
  display: block; width: 15px; height: 14px;
  background: url("./assets/ui/tank-ui/sprites/DefineSprite_805_ScrollArrowDownRed/1.png") center / 15px 14px no-repeat;
}
.app .battle-player-list.blue::-webkit-scrollbar-button:single-button:vertical:decrement {
  display: block; width: 15px; height: 14px;
  background: url("./assets/ui/tank-ui/sprites/DefineSprite_821_ScrollArrowUpBlue/1.png") center / 15px 14px no-repeat;
}
.app .battle-player-list.blue::-webkit-scrollbar-button:single-button:vertical:increment {
  display: block; width: 15px; height: 14px;
  background: url("./assets/ui/tank-ui/sprites/DefineSprite_823_ScrollArrowDownBlue/1.png") center / 15px 14px no-repeat;
}

/* ViewBattleList.myIcon(): all horizontal coordinates derive from iconWidth. */
.app .battle-list {
  --battle-abris-shift: 11px;
  --battle-map-right: 18px;
}
.app .battle-row .battle-title {
  width: calc(55% - var(--battle-abris-shift) - 6px);
}
.app .battle-row .battle-count {
  left: calc(55% - var(--battle-abris-shift));
}
.app .battle-row .battle-map {
  right: var(--battle-map-right);
  width: auto;
  max-width: calc(45% - var(--battle-map-right));
}

/* CreateBattleForm.nameGameCheckIcon — original InputCheckIcon frames. */
.app .battle-create-name > i {
  top: 7px;
  right: 0;
  width: 21px;
  height: 21px;
  border: 0 !important;
  border-radius: 0 !important;
  background: none;
  animation: none !important;
  pointer-events: none;
}
.app .battle-create-name > i.pending {
  background: url("./assets/ui/tank-ui/sprites/DefineSprite_102_assets.icons.InputCheckIcon/1.png") center / 21px 21px no-repeat;
}
.app .battle-create-name > i.invalid {
  background: url("./assets/ui/tank-ui/sprites/DefineSprite_102_assets.icons.InputCheckIcon/3.png") center / 21px 21px no-repeat;
}
.app .battle-create-name > i.invalid::after { content: none; }

/* BattleInfo.setPreview(null): original InputCheckIcon progress frame. */
.app .battle-preview-frame,
.app .battle-create-preview { position: absolute; }
.app .battle-preview-wait {
  position: absolute;
  z-index: 3;
  top: 50%;
  left: 50%;
  width: 21px;
  height: 21px;
  margin: -10px 0 0 -10px;
  background: url("./assets/ui/tank-ui/sprites/DefineSprite_102_assets.icons.InputCheckIcon/1.png") center / 21px 21px no-repeat;
  animation: battle-preview-wait-spin .85s linear infinite;
  pointer-events: none;
}
.app .battle-preview-wait.hidden { display: none; }
@keyframes battle-preview-wait-spin { to { transform: rotate(360deg); } }


.app .battle-big-button > small {
  top: 22px;
  left: 50px; /* replaced at runtime by BattleBigButton.width() formula */
  height: 15px;
  align-items: flex-start;
  gap: 0;
  line-height: 15px;
  white-space: nowrap;
}
.app .battle-big-button > small img {
  width: 9px;
  height: 11px;
  margin-top: 4px;
}
.app .battle-big-button:active:not(:disabled) > span {
  top: 17px;
}
.app .battle-big-button:has(> small):active:not(:disabled) > span {
  top: 7px;
}
.app .battle-big-button:active:not(:disabled) > small {
  top: 23px;
}
.app .battle-big-button:active:not(:disabled) > small img {
  margin-top: 3px; /* diamond stays at y=26 while costLabel moves to y=23 */
}
.app .battle-big-button:active:not(:disabled) > .battle-big-button-icon {
  top: 13px;
}


.app .battle-type-button > span {
  position: absolute;
  top: 0;
  right: 4px;
  bottom: 0;
  left: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 50px;
  overflow: hidden;
  line-height: 14px;
  text-align: center;
  white-space: normal;
  pointer-events: none;
}
.app .battle-type-button:active:not(:disabled) > span,
.app .battle-type-button.selected > span {
  transform: translateY(1px);
}


.app .battle-info-icons {
  display: block;
  align-items: initial;
  width: auto;
  overflow: visible;
}
.app .battle-info-source-width {
  position: absolute;
  top: 0;
  left: 0;
  height: 24px;
  pointer-events: none;
}
.app .battle-info-source-limit {
  position: absolute;
  top: 0;
  width: 68px;
  height: 24px;
}
.app .battle-info-source-limit > img {
  position: absolute;
  top: 0;
  left: 0;
  width: 22px;
  height: 23px;
  object-fit: contain;
}
.app .battle-info-source-limit > b {
  position: absolute;
  top: 0;
  left: 18px;
  display: flex;
  align-items: center;
  width: 50px;
  height: 24px;
  overflow: hidden;
  color: #fff;
  font: normal 14px/14px MTanksMyriadPro, MyriadPro, Arial, sans-serif;
  text-align: left;
  white-space: nowrap;
}
.app .battle-info-source-limit.kill { width: 56px; }
.app .battle-info-source-limit.kill > b {
  left: 16px;
  width: 40px;
}
.app .battle-info-source-limit.dom { width: 63px; }
.app .battle-info-source-limit.dom > img {
  top: -4px;
  width: 24px;
  height: 24px;
}
.app .battle-info-source-limit.dom > b {
  left: 23px;
  width: 40px;
}
.app .battle-info-source-rule {
  position: absolute;
  top: 0;
  width: 22px;
  height: 23px;
  object-fit: contain;
}
.app .battle-info-source-rule.dom {
  top: -3.5px;
  width: 24px;
  height: 24px;
}

/* forms.Alert — exact paid-battle confirmation layout. */
.app ~ .battle-entry-confirm,
.battle-entry-confirm {
  position: fixed;
  z-index: 2000;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgb(0 0 0 / 10%);
  backdrop-filter: blur(3px);
}
.battle-entry-confirm .confirm-dialog {
  position: relative;
  box-sizing: border-box;
  min-width: 246px;
  max-width: calc(100vw - 40px);
  min-height: 130px;
  padding: 30px 25px 30px;
  color: #fff;
  text-align: center;
}
.battle-entry-confirm .confirm-dialog > p {
  width: max-content;
  max-width: 100%;
  margin: 0 auto;
  color: #fff;
  font: normal 13px/16px MTanksMyriadPro, MyriadPro, Arial, sans-serif;
  text-align: center;
  white-space: pre;
  text-shadow: 0 1px 2px #000;
}
.battle-entry-confirm .confirm-dialog > div {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-top: 15px;
}
.battle-entry-confirm .confirm-dialog .ui-button {
  min-width: 0;
}

/* 2026-06-17 — final source-coordinate overrides for the battle-select port. */
.app .team-player-lists > .battle-player-list.red {
  width: var(--ui-team-red-width) !important;
}
.app .team-player-lists > .battle-player-list.blue {
  left: var(--ui-team-blue-left) !important;
  width: var(--ui-team-blue-width) !important;
}
.app .team-score {
  left: var(--ui-team-red-width) !important;
}
.app .battle-info-bottom.team .battle-big-button {
  width: var(--ui-team-button-width, 130px) !important;
}

/* CreateBattleForm.onResize(): two themes leave the original 22px gap. */
.app .battle-create-map {
  right: auto !important;
  width: var(--ui-create-map-width, calc(50% - 11px));
}
.app .battle-create-theme {
  right: auto !important;
  left: var(--ui-create-theme-left, 50%);
  width: var(--ui-create-map-width, calc(50% - 11px));
}
.app .battle-create-form.single-theme .battle-create-map {
  right: auto !important;
}

/* TankCheckBox is a 27x27 base plus an unscaled 27x27 CheckIcons frame. */
.app .battle-create-check {
  height: 27px;
}
.app .battle-create-check > i {
  width: 27px;
  height: 27px;
}
.app .battle-create-check > i .check-type,
.app .battle-create-check > i .check-mark {
  top: 0;
  left: 0;
  width: 27px;
  height: 27px;
  object-fit: none;
}
.app .battle-create-check > span {
  line-height: 27px;
}
.app .battle-create-form > .battle-create-check {
  bottom: 4px;
}

/* NumStepper.onMouseDown(): frames 2/3 are distinct upper/lower pressed states. */
.app .battle-create-stepper > i.stepper-button {
  background: url("./assets/ui/tank-ui/sprites/DefineSprite_382_controls.StepperButton/1.png") 0 0 / 20px 31px no-repeat;
}
.app .battle-create-stepper > i.stepper-button.pressed-up {
  background-image: url("./assets/ui/tank-ui/sprites/DefineSprite_382_controls.StepperButton/2.png");
}
.app .battle-create-stepper > i.stepper-button.pressed-down {
  background-image: url("./assets/ui/tank-ui/sprites/DefineSprite_382_controls.StepperButton/3.png");
}
.app .battle-create-stepper > i.stepper-button > button {
  cursor: pointer;
  touch-action: none;
}

/* 2026-06-17 — CreateBattleForm control corrections.
  Reuse the existing source-accurate TankInput: fixed 5 px left/right caps
  and a stretched 1 px centre sprite. Do not replace it with a flat field. */
.app input.ui-input {
  box-sizing: border-box;
  height: 30px;
  min-width: 0;
  border: 0;
  border-radius: 0;
  outline: 0;
  background-color: transparent;
  background-image:
    url("./assets/ui/ui-components/input/27_assets.input.InputLeft.png"),
    url("./assets/ui/ui-components/input/25_assets.input.InputRight.png"),
    url("./assets/ui/ui-components/input/29_assets.input.InputCenter.png");
  background-position: left top, right top, center top;
  background-repeat: no-repeat, no-repeat, no-repeat;
  background-size: 5px 30px, 5px 30px, calc(100% - 10px) 30px;
  box-shadow: none;
  color: #efefef;
  font: 12px/20px MTanksMyriadPro, MyriadPro, Arial, sans-serif;
  -webkit-appearance: none;
  appearance: none;
}
.app .battle-create-name > input.ui-input {
  flex: 1 1 auto;
  padding: 3px 30px 4px 7px;
}

.app .battle-create-stepper > input.ui-input {
  position: absolute;
  inset: auto;
  top: 0;
  left: 19px;
  width: 55px;
  height: 30px;
  padding: 3px 3px 4px;
  text-align: center;
}

/* controls.TankCheckBox: empty button while unchecked; when checked the
  CheckIcons frame for that checkbox type appears. There is no generic
  green tick in CreateBattleForm. */
.app .battle-create-check > i {
  position: relative;
  width: 27px;
  height: 27px;
  flex: 0 0 27px;
  background: url("./assets/ui/tank-ui/images/508.png") 0 0 / 27px 27px no-repeat !important;
}
.app .battle-create-check:hover > i,
.app .battle-create-check:hover > input:checked + i {
  background-image: url("./assets/ui/tank-ui/images/521.png") !important;
}
.app .battle-create-check:active > i,
.app .battle-create-check:active > input:checked + i {
  background-image: url("./assets/ui/tank-ui/images/523.png") !important;
}
.app .battle-create-check > input:checked + i {
  background-image: url("./assets/ui/tank-ui/images/508.png") !important;
  background-position: 0 0 !important;
  background-size: 27px 27px !important;
  background-repeat: no-repeat !important;
}
.app .battle-create-check > i .check-type {
  position: absolute;
  top: 0;
  left: 0;
  display: none;
  width: 27px;
  height: 27px;
  object-fit: none;
  pointer-events: none;
}
.app .battle-create-check > input:checked + i .check-type {
  display: block;
}



.game-change-team-alert {
  box-sizing: border-box;
  position: absolute;
  z-index: 60;
  top: 50%;
  left: 50%;
  min-width: max-content;
  padding: 15px;
  transform: translate(-50%, -50%);
  cursor: pointer;
  pointer-events: auto;
  user-select: none;
}
.game-change-team-alert::before {
  position: absolute;
  z-index: 0;
  inset: 0;
  border: 8px solid transparent;
  border-image: url("./assets/ui/battle-hud/frames/black-round.png") 8 fill stretch;
  content: "";
  pointer-events: none;
}
.game-change-team-alert-label {
  position: relative;
  z-index: 1;
  display: block;
  color: inherit;
  font: 700 14px/17px MTanksMyriadPro, MyriadPro, Arial, sans-serif;
  text-align: center;
  white-space: nowrap;
}
.game-change-team-alert.red { color: #ff9999; }
.game-change-team-alert.blue { color: #99ccff; }


.app .battle-player-list.green {
  background-color: #0c220d !important;
  background-image:
    url("./assets/ui/tank-ui/sprites/DefineSprite_231_assets.windowinner.elemets.WindowInnerBlink/1.png"),
    url("./assets/ui/ui-components/inner/top-left.png"),
    url("./assets/ui/ui-components/inner/top-right.png"),
    url("./assets/ui/ui-components/inner/bottom-left.png"),
    url("./assets/ui/ui-components/inner/bottom-right.png"),
    url("./assets/ui/ui-components/inner/30_assets.windowinner.bitmaps.WindowInnerTop.png"),
    url("./assets/ui/ui-components/inner/34_assets.windowinner.bitmaps.WindowInnerBottom.png"),
    url("./assets/ui/ui-components/inner/32_assets.windowinner.bitmaps.WindowInnerLeft.png"),
    url("./assets/ui/ui-components/inner/31_assets.windowinner.bitmaps.WindowInnerRight.png") !important;
  background-position:
    1px 1px,
    left top, right top, left bottom, right bottom,
    6px top, 6px bottom, left 6px, right 6px !important;
  background-repeat:
    no-repeat,
    no-repeat, no-repeat, no-repeat, no-repeat,
    repeat-x, repeat-x, repeat-y, repeat-y !important;
  background-size:
    calc(100% - 2px) auto,
    auto, auto, auto, auto,
    auto, auto, auto, auto !important;
}
.app .battle-player-list.red {
  background-color: #621700 !important;
  background-image:
    url("./assets/ui/tank-ui/sprites/DefineSprite_231_assets.windowinner.elemets.WindowInnerBlink/3.png"),
    url("./assets/ui/ui-components/inner/top-left.png"),
    url("./assets/ui/ui-components/inner/top-right.png"),
    url("./assets/ui/ui-components/inner/bottom-left.png"),
    url("./assets/ui/ui-components/inner/bottom-right.png"),
    url("./assets/ui/ui-components/inner/30_assets.windowinner.bitmaps.WindowInnerTop.png"),
    url("./assets/ui/ui-components/inner/34_assets.windowinner.bitmaps.WindowInnerBottom.png"),
    url("./assets/ui/ui-components/inner/32_assets.windowinner.bitmaps.WindowInnerLeft.png"),
    url("./assets/ui/ui-components/inner/31_assets.windowinner.bitmaps.WindowInnerRight.png") !important;
  background-position:
    1px 1px,
    left top, right top, left bottom, right bottom,
    6px top, 6px bottom, left 6px, right 6px !important;
  background-repeat:
    no-repeat,
    no-repeat, no-repeat, no-repeat, no-repeat,
    repeat-x, repeat-x, repeat-y, repeat-y !important;
  background-size:
    calc(100% - 2px) auto,
    auto, auto, auto, auto,
    auto, auto, auto, auto !important;
}
.app .battle-player-list.blue {
  background-color: #002c59 !important;
  background-image:
    url("./assets/ui/tank-ui/sprites/DefineSprite_231_assets.windowinner.elemets.WindowInnerBlink/2.png"),
    url("./assets/ui/ui-components/inner/top-left.png"),
    url("./assets/ui/ui-components/inner/top-right.png"),
    url("./assets/ui/ui-components/inner/bottom-left.png"),
    url("./assets/ui/ui-components/inner/bottom-right.png"),
    url("./assets/ui/ui-components/inner/30_assets.windowinner.bitmaps.WindowInnerTop.png"),
    url("./assets/ui/ui-components/inner/34_assets.windowinner.bitmaps.WindowInnerBottom.png"),
    url("./assets/ui/ui-components/inner/32_assets.windowinner.bitmaps.WindowInnerLeft.png"),
    url("./assets/ui/ui-components/inner/31_assets.windowinner.bitmaps.WindowInnerRight.png") !important;
  background-position:
    1px 1px,
    left top, right top, left bottom, right bottom,
    6px top, 6px bottom, left 6px, right 6px !important;
  background-repeat:
    no-repeat,
    no-repeat, no-repeat, no-repeat, no-repeat,
    repeat-x, repeat-x, repeat-y, repeat-y !important;
  background-size:
    calc(100% - 2px) auto,
    auto, auto, auto, auto,
    auto, auto, auto, auto !important;
}



html.mtanks-loader-active #app:not(.hidden) > .topbar {
  z-index: 1002;
  visibility: visible;
  opacity: 1;
  pointer-events: none;
}


.crystals.crystals-ui-plus b {
  animation: mainpanel-crystal-glow-plus 833ms linear 1;
}
.crystals.crystals-ui-minus b {
  animation: mainpanel-crystal-glow-minus 833ms linear 1;
}
.crystals.crystals-ui-plus,
.crystals.crystals-ui-minus {
  animation: mainpanel-crystal-frame-pulse 833ms linear 1;
}
@keyframes mainpanel-crystal-glow-plus {
  0% { text-shadow: 0 0 4px rgba(18, 255, 0, 1), 0 0 4px rgba(18, 255, 0, 1), 0 0 4px rgba(18, 255, 0, 1); filter: drop-shadow(0 0 4px rgba(18, 255, 0, 1)); }
  100% { text-shadow: 0 0 4px rgba(18, 255, 0, 0), 0 0 4px rgba(18, 255, 0, 0), 0 0 4px rgba(18, 255, 0, 0); filter: drop-shadow(0 0 4px rgba(18, 255, 0, 0)); }
}
@keyframes mainpanel-crystal-glow-minus {
  0% { text-shadow: 0 0 4px rgba(255, 64, 0, 1), 0 0 4px rgba(255, 64, 0, 1), 0 0 4px rgba(255, 64, 0, 1); filter: drop-shadow(0 0 4px rgba(255, 64, 0, 1)); }
  100% { text-shadow: 0 0 4px rgba(255, 64, 0, 0), 0 0 4px rgba(255, 64, 0, 0), 0 0 4px rgba(255, 64, 0, 0); filter: drop-shadow(0 0 4px rgba(255, 64, 0, 0)); }
}
@keyframes mainpanel-crystal-frame-pulse {
  0% { filter: brightness(1.45); }
  100% { filter: brightness(1); }
}



.crystals.crystals-ui-plus,
.crystals.crystals-ui-minus {
  animation: none !important;
  filter: none !important;
}
.crystals.crystals-ui-plus b,
.crystals.crystals-ui-minus b {
  animation: none !important;
}

#profile .xp-track {
  --xp-ui-left: 5px;
  --xp-ui-width: 0px;
}
#profile .xp-track::after {
  content: "";
  position: absolute;
  z-index: 2;
  top: 5px;
  left: var(--xp-ui-left);
  width: var(--xp-ui-width);
  height: 16px;
  opacity: 0;
  pointer-events: none;
  overflow: hidden;
  background: linear-gradient(180deg, rgb(255 246 145 / 78%) 0%, rgb(255 207 47 / 70%) 46%, rgb(177 110 0 / 56%) 100%);
  box-shadow: none;
  mix-blend-mode: screen;
}
#profile .xp-track.xp-gold-pulse::after {
  animation: mainpanel-xp-newprogress-pulse 833ms linear 1;
}
#profile .xp-track.xp-minus-pulse::after {
  background: linear-gradient(180deg, rgb(255 144 98 / 75%) 0%, rgb(255 76 26 / 65%) 52%, rgb(120 23 0 / 56%) 100%);
  mix-blend-mode: screen;
  animation: mainpanel-xp-newprogress-pulse 833ms linear 1;
}
@keyframes mainpanel-xp-newprogress-pulse {
  0% { opacity: .95; }
  100% { opacity: 0; }
}


.game-dialog-layer {
  position: fixed;
  z-index: 4800;
  inset: 0;
  display: grid;
  place-items: center;
  pointer-events: auto;
  user-select: none;
}
.game-dialog-layer.game-panel-blur { background: rgb(0 0 0 / 50%); }
.game-dialog-layer.game-email-code-layer {
  background: rgb(0 0 0 / 8%);
  backdrop-filter: blur(5px);
}
.game-dialog-layer > .ui-window { position: relative; }

.game-window-inner {
  isolation: isolate;
  position: absolute;
  border: 0;
  border-radius: 0;
  background-color: #06260a;
  background-image:
    url("./assets/ui/ui-components/inner/top-left.png"),
    url("./assets/ui/ui-components/inner/top-right.png"),
    url("./assets/ui/ui-components/inner/bottom-left.png"),
    url("./assets/ui/ui-components/inner/bottom-right.png"),
    url("./assets/ui/ui-components/inner/30_assets.windowinner.bitmaps.WindowInnerTop.png"),
    url("./assets/ui/ui-components/inner/34_assets.windowinner.bitmaps.WindowInnerBottom.png"),
    url("./assets/ui/ui-components/inner/32_assets.windowinner.bitmaps.WindowInnerLeft.png"),
    url("./assets/ui/ui-components/inner/31_assets.windowinner.bitmaps.WindowInnerRight.png");
  background-position:
    left top, right top, left bottom, right bottom,
    6px top, 6px bottom, left 6px, right 6px;
  background-repeat:
    no-repeat, no-repeat, no-repeat, no-repeat,
    repeat-x, repeat-x, repeat-y, repeat-y;
}
.game-window-inner::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 1px;
  pointer-events: none;
}

/* DefaultButton / ColorButton: the 201 px middle is clipped to the content box.
  It never paints under the 7 px left/right caps. */
.game-default-button {
  position: absolute;
  box-sizing: border-box;
  width: 104px;
  height: 30px;
  margin: 0;
  border: 0;
  border-radius: 0;
  outline: 0;
  padding: 0 7px;
  overflow: visible;
  background-color: transparent;
  background-image: url("./assets/ui/ui-components/button/507_assets.button.button_def_UP_CENTER.png");
  background-position: 7px 0;
  background-repeat: repeat-x;
  background-size: 201px 30px;
  background-clip: content-box;
  color: #eee;
  cursor: pointer;
  font: normal 11px/30px Arial, Helvetica, sans-serif;
  text-align: center;
  text-shadow: 0 1px 1px #000;
}
.game-default-button::before,
.game-default-button::after {
  content: "";
  position: absolute;
  z-index: 0;
  top: 0;
  width: 7px;
  height: 30px;
  pointer-events: none;
  background-repeat: no-repeat;
}
.game-default-button::before {
  left: 0;
  background-image: url("./assets/ui/ui-components/button/506_assets.button.button_def_UP_LEFT.png");
}
.game-default-button::after {
  right: 0;
  background-image: url("./assets/ui/ui-components/button/505_assets.button.button_def_UP_RIGHT.png");
}
.game-default-button-label {
  position: relative;
  z-index: 1;
  display: block;
  height: 30px;
  overflow: hidden;
  white-space: nowrap;
  pointer-events: none;
}
.game-default-button:hover:not(:disabled),
.game-default-button:focus-visible:not(:disabled) {
  background-image: url("./assets/ui/ui-components/button/504_assets.button.button_def_OVER_CENTER.png");
}
.game-default-button:hover:not(:disabled)::before,
.game-default-button:focus-visible:not(:disabled)::before {
  background-image: url("./assets/ui/ui-components/button/503_assets.button.button_def_OVER_LEFT.png");
}
.game-default-button:hover:not(:disabled)::after,
.game-default-button:focus-visible:not(:disabled)::after {
  background-image: url("./assets/ui/ui-components/button/502_assets.button.button_def_OVER_RIGHT.png");
}
.game-default-button:active:not(:disabled) {
  background-image: url("./assets/ui/ui-components/button/501_assets.button.button_def_DOWN_CENTER.png");
}
.game-default-button:active:not(:disabled)::before {
  background-image: url("./assets/ui/ui-components/button/500_assets.button.button_def_DOWN_LEFT.png");
}
.game-default-button:active:not(:disabled)::after {
  background-image: url("./assets/ui/ui-components/button/499_assets.button.button_def_DOWN_RIGHT.png");
}
.game-default-button:active:not(:disabled) .game-default-button-label { transform: translateY(1px); }
.game-default-button:disabled { cursor: default; filter: brightness(.7); }

/* TankInput is also kept as three separate pieces. */
.game-tank-input {
  position: absolute;
  box-sizing: border-box;
  height: 30px;
  padding: 0 5px;
  background-image: url("./assets/ui/ui-components/input/29_assets.input.InputCenter.png");
  background-position: 5px 0;
  background-repeat: repeat-x;
  background-size: 1px 30px;
  background-clip: content-box;
}
.game-tank-input::before,
.game-tank-input::after {
  content: "";
  position: absolute;
  z-index: 1;
  top: 0;
  width: 5px;
  height: 30px;
  pointer-events: none;
  background-repeat: no-repeat;
}
.game-tank-input::before {
  left: 0;
  background-image: url("./assets/ui/ui-components/input/27_assets.input.InputLeft.png");
}
.game-tank-input::after {
  right: 0;
  background-image: url("./assets/ui/ui-components/input/25_assets.input.InputRight.png");
}
.game-tank-input.invalid {
  background-image: url("./assets/ui/ui-components/input/28_assets.input.InputCenterWrong.png");
}
.game-tank-input.invalid::before { background-image: url("./assets/ui/ui-components/input/26_assets.input.InputLeftWrong.png"); }
.game-tank-input.invalid::after { background-image: url("./assets/ui/ui-components/input/24_assets.input.InputRightWrong.png"); }
.game-tank-input > input {
  position: relative;
  z-index: 2;
  box-sizing: border-box;
  width: 100%;
  height: 30px;
  margin: 0;
  border: 0;
  border-radius: 0;
  outline: 0;
  padding: 3px 3px 4px;
  background: transparent;
  box-shadow: none;
  color: #eee;
  font: 12px/23px Arial, Helvetica, sans-serif;
}

.game-input-check {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 21px;
  height: 21px;
  translate: -50% -50%;
  background-position: center;
  background-repeat: no-repeat;
  background-size: 21px 21px;
}
.game-input-check.progress { background-image: url("./assets/ui/ui-components/input-state/1.png"); }


.game-garage-confirm {
  width: 237px;
  height: 242px;
  color: #eee;
  font: 12px/15px Arial, Helvetica, sans-serif;
  text-align: center;
}
.game-garage-confirm-preview {
  top: 11px;
  left: 11px;
  width: 215px;
  height: 128px;
}
.game-garage-confirm-image {
  position: absolute;
  top: 11px;
  left: 25px;
  width: 164px;
  height: 106px;
  display: block;
  object-fit: fill;
}
.game-garage-confirm-mod {
  position: absolute;
  z-index: 2;
  top: 17px;
  left: 185px;
  width: 36px;
  height: 7px;
  object-fit: fill;
}
.game-garage-confirm-question {
  position: absolute;
  top: 146px;
  left: 11px;
  width: 215px;
  min-height: 15px;
  color: #eee;
  white-space: nowrap;
}
.game-garage-confirm-cost {
  position: absolute;
  top: 172px;
  left: 11px;
  width: 215px;
  height: 16px;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 0;
  color: #eee;
  white-space: nowrap;
}
.game-garage-confirm-cost img {
  width: 9px;
  height: 11px;
  margin: 5px 0 0 2px;
  object-fit: contain;
}
.game-garage-confirm-cost img + span { margin-left: 0; }
.game-garage-confirm-yes { top: 200px; left: 11px; }
.game-garage-confirm-no { top: 200px; left: 130px; }
.game-garage-confirm-layer.waiting .game-garage-confirm { filter: brightness(.76); }


.game-alert-layer { pointer-events: auto; }
.game-alert-window {
  min-width: 148px;
  min-height: 74px;
  color: #eee;
  font: 13px/16px Arial, Helvetica, sans-serif;
  text-align: center;
}
.game-alert-output {
  position: absolute;
  top: 30px;
  left: 50%;
  width: max-content;
  max-width: min(780px, calc(100vw - 90px));
  min-width: 10px;
  min-height: 14px;
  translate: -50% 0;
  color: #eee;
  text-align: center;
  white-space: nowrap;
}
.game-alert-output br { display: block; content: ""; }
.game-alert-buttons {
  position: absolute;
  left: 50%;
  bottom: 30px;
  height: 30px;
  translate: -50% 0;
}
.game-alert-buttons .game-default-button {
  position: relative;
  top: 0;
  display: inline-block;
  margin: 0 3px;
  vertical-align: top;
}
.game-alert-close {
  position: absolute;
  z-index: 3;
  top: 10px;
  right: 10px;
  width: 15px;
  height: 15px;
  border: 0;
  padding: 0;
  background: url("./assets/ui/mainpanel/close/1.png") center / contain no-repeat;
}


.game-email-code-window {
  width: 400px;
  height: 115px;
  color: #eee;
  font: 12px/15px Arial, Helvetica, sans-serif;
}
.game-email-code-label {
  position: absolute;
  top: 15px;
  left: 15px;
  width: 370px;
  height: 15px;
  white-space: nowrap;
}
.game-email-code-window .game-tank-input {
  top: 35px;
  left: 15px;
  width: 370px;
}
.game-email-code-confirm {
  top: 70px;
  left: 281px;
  width: 104px;
}
.game-email-code-close {
  top: 70px;
  left: 171px;
  width: 104px;
}

.game-window-header-horizontal {
  position: absolute;
  z-index: 4;
  top: -13px;
  left: 50%;
  width: 188px;
  height: 43px;
  translate: -50% 0;
  object-fit: fill;
  pointer-events: none;
}


.game-achievement-window {
  width: 442px;
  height: 258px;
  color: #59ff32;
  font: 12px/15px Arial, Helvetica, sans-serif;
}
.game-achievement-window > .game-window-header-horizontal {
  
  top: -25px;
}
.game-achievement-inner {
  top: 12px;
  left: 12px;
  width: 418px;
  height: 197px;
}
.game-achievement-message {
  position: absolute;
  z-index: 2;
  top: 24px;
  left: 24px;
  width: 394px;
  min-height: 15px;
  color: #59ff32;
  text-align: center;
  white-space: normal;
}
.game-achievement-present {
  position: absolute;
  z-index: 2;
  top: 48px;
  left: 21px;
  width: 400px;
  height: 150px;
  object-fit: fill;
}
.game-achievement-close {
  top: 214px;
  left: 169px;
}


.game-present-window {
  color: #5a0072;
  font: 12px/15px Arial, Helvetica, sans-serif;
}
.game-present-window.crystals {
  width: 443px;
  height: 365px;
}
.game-present-window.double {
  width: 307px;
  height: 260px;
}
.game-present-inner {
  top: 12px;
  left: 12px;
  right: 12px;
  bottom: 51px;
}
.game-present-top,
.game-present-bottom {
  position: absolute;
  z-index: 2;
  left: 24px;
  right: 24px;
  color: #5a0072;
  white-space: normal;
}
.game-present-top { top: 24px; text-align: center; }
.game-present-picture {
  position: absolute;
  z-index: 2;
  display: block;
  object-fit: fill;
}
.game-present-window.crystals .game-present-picture {
  top: 49px;
  left: 21px;
  width: 401px;
  height: 224px;
}
.game-present-window.double .game-present-picture {
  top: 102px;
  left: 119px;
  width: 163px;
  height: 97px;
}
.game-present-bottom { text-align: center; }
.game-present-window.crystals .game-present-bottom { top: 272px; }
.game-present-window.double .game-present-bottom {
  top: 24px;
  width: 259px;
  text-align: left;
}
.game-present-close { bottom: 9px; left: 50%; translate: -50% 0; }


.game-bubble-helper {
  position: fixed;
  z-index: 4700;
  top: 60px;
  box-sizing: border-box;
  padding: 8px 9px 9px;
  border: 1px solid #fff;
  border-radius: 8px;
  background: rgb(0 0 0 / 85%);
  color: #fff;
  pointer-events: none;
  user-select: none;
  white-space: nowrap;
  font: bold 10px/13px Tahoma, Arial, sans-serif !important;
  text-align: left;
  filter: none;
}
.game-bubble-helper::before,
.game-bubble-helper::after {
  content: "";
  position: absolute;
  top: -31px;
  width: 26px;
  height: 32px;
  clip-path: polygon(50% 0, 0 100%, 100% 100%);
  pointer-events: none;
}
.game-bubble-helper::before { background: #fff; }
.game-bubble-helper::after {
  top: -29px;
  width: 24px;
  height: 30px;
  background: rgb(0 0 0 / 85%);
}
/* AchievementModel.alignHelpers(): target points are width-330 and width-115
  at y=30. TOP_LEFT uses the left-shifted base; TOP_RIGHT uses the right one. */
.game-bubble-helper.first-purchase { right: 306px; }
.game-bubble-helper.first-purchase::before { left: 23px; }
.game-bubble-helper.first-purchase::after { left: 24px; }
.game-bubble-helper.set-email { right: 91px; }
.game-bubble-helper.set-email::before { right: 23px; }
.game-bubble-helper.set-email::after { right: 24px; }

/* 2026-06-17 — helper click/alignment and ConfirmAlert visual bounds fixes. */
.game-bubble-helper {
  pointer-events: auto;
  cursor: default;
}


.game-bubble-helper.first-purchase::before {
  top: -33px;
  left: 23px;
  width: 26px;
  height: 33px;
  clip-path: polygon(0 0, 0 100%, 100% 100%);
}
.game-bubble-helper.first-purchase::after {
  top: -30px;
  left: 24px;
  width: 24px;
  height: 30px;
  clip-path: polygon(0 0, 0 100%, 100% 100%);
}

/* BubbleHelper.TOP_RIGHT mirrors TOP_LEFT around the right arrow apex. */
.game-bubble-helper.set-email::before {
  top: -33px;
  right: 23px;
  width: 26px;
  height: 33px;
  clip-path: polygon(100% 0, 0 100%, 100% 100%);
}
.game-bubble-helper.set-email::after {
  top: -30px;
  right: 24px;
  width: 24px;
  height: 30px;
  clip-path: polygon(100% 0, 0 100%, 100% 100%);
}


.game-garage-confirm-no { left: 122px; }
.game-bubble-helper.first-purchase,
.game-bubble-helper.set-email {
  right: auto;
  width: max-content;
}


.game-dom-marker-layer {
  position: absolute;
  inset: 0;
  z-index: 6;
  overflow: hidden;
  pointer-events: none;
}

.game-dom-marker {
  position: absolute;
  width: 26px;
  height: 26px;
  transform: translateZ(0);
  pointer-events: none;
}

.game-dom-marker[hidden] {
  display: none;
}

.game-dom-marker canvas,
.game-dom-point-hud-indicator canvas {
  display: block;
  width: 100%;
  height: 100%;
}

.game-dom-points-hud {
  position: absolute;
  z-index: 7;
  height: 40px;
  min-width: 4px;
  padding: 2px;
  box-sizing: border-box;
  display: flex;
  align-items: flex-start;
  overflow: visible;
  pointer-events: none;
}

.game-dom-point-hud-indicator {
  position: relative;
  flex: 0 0 36px;
  width: 36px;
  height: 36px;
}

.game-dom-point-hud-indicator + .game-dom-point-hud-indicator {
  margin-left: 1px;
}

.game-dom-point-hud-indicator:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 0;
  right: -1px;
  width: 1px;
  height: 36px;
  background: rgba(255, 255, 255, 0.92);
}

/* mtanks.test.UpdateRankLabel — global rank-up congratulations overlay. */
.game-rank-up-notification {
  position: fixed;
  z-index: 12000;
  left: 50%;
  top: 50%;
  display: grid;
  justify-items: center;
  width: max-content;
  max-width: calc(100vw - 40px);
  transform: translate(-50%, -58%);
  pointer-events: none;
  color: #ffff33;
  font-family: "Myriad Pro", MyriadPro, Arial, sans-serif;
  font-size: 20px;
  line-height: 24px;
  text-align: center;
  text-shadow:
    -1px -1px 1px #000,
    1px -1px 1px #000,
    -1px  1px 1px #000,
    1px  1px 1px #000,
    0 0 4px #000;
  opacity: 1;
}
.game-rank-up-icon {
  display: block;
  width: auto;
  height: 64px;
  margin: 0 0 10px;
  object-fit: contain;
}
.game-rank-up-welcome,
.game-rank-up-rank,
.game-rank-up-prize {
  min-height: 24px;
  white-space: nowrap;
}
.game-rank-up-prize {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  margin-top: 20px;
}
.game-rank-up-prize img {
  display: block;
  width: 28px;
  height: 30px;
  margin-left: 5px;
  object-fit: contain;
}
.game-rank-up-fade {
  opacity: 0;
  transition: opacity 333ms linear;
}


.app #lobby-chat-panel.persistent-chat {
  position: relative;
  overflow: visible;
}

.app #chat-messages.chat-messages {
  position: absolute;
  top: 15px;
  right: 15px;
  bottom: 47px;
  left: 15px;
  height: auto !important;
  padding: 4px 18px 4px 5px !important;
  overflow-x: hidden !important;
  overflow-y: auto !important;
  border: 0 !important;
  border-radius: 0 !important;
  background-color: #06260a !important;
  background-image:
    url("./assets/ui/ui-components/inner/top-left.png"),
    url("./assets/ui/ui-components/inner/top-right.png"),
    url("./assets/ui/ui-components/inner/bottom-left.png"),
    url("./assets/ui/ui-components/inner/bottom-right.png"),
    url("./assets/ui/ui-components/inner/30_assets.windowinner.bitmaps.WindowInnerTop.png"),
    url("./assets/ui/ui-components/inner/34_assets.windowinner.bitmaps.WindowInnerBottom.png"),
    url("./assets/ui/ui-components/inner/32_assets.windowinner.bitmaps.WindowInnerLeft.png"),
    url("./assets/ui/ui-components/inner/31_assets.windowinner.bitmaps.WindowInnerRight.png") !important;
  background-position:
    left top, right top, left bottom, right bottom,
    6px top, 6px bottom, left 6px, right 6px !important;
  background-repeat:
    no-repeat, no-repeat, no-repeat, no-repeat,
    repeat-x, repeat-x, repeat-y, repeat-y !important;
  box-shadow: none !important;
  color: #fff !important;
  font: 13px/18px "MTanksMyriadPro", "MyriadPro", "Myriad Pro", Arial, sans-serif !important;
  scrollbar-width: none !important;
}
.app #chat-messages.chat-messages::before,
.app #chat-messages.chat-messages::after {
  display: none !important;
  content: none !important;
}
.app #chat-messages.chat-messages::-webkit-scrollbar {
  width: 0 !important;
  height: 0 !important;
  display: none !important;
}

.app #chat-messages .chat-message {
  min-height: 18px !important;
  margin-block: 3px;
  &:first-child{
    margin-top: 0;
  }
  &:last-child{
    margin-bottom: 0:
  }
  padding: 0 !important;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
  background: transparent !important;
  color: #fff !important;
  font: 13px/18px "MTanksMyriadPro", "MyriadPro", "Myriad Pro", Arial, sans-serif !important;
  text-shadow: none !important;
}
.app #chat-messages .chat-message.system {
  color: #80ff80 !important;
}
.app #chat-messages .chat-message.system.yellow {
  color: #e9ff00 !important;
}
.app #chat-messages .chat-message.system .chat-text,
.app #chat-messages .chat-message.system .chat-link {
  color: inherit !important;
}
.app #chat-messages .chat-message:not(.system) .chat-text,
.app #chat-messages .chat-message:not(.system) .chat-link {
  color: #fff !important;
}
.app #chat-messages .chat-name,
.app #chat-messages .chat-colon {
  color: #12ff00 !important;
  font: inherit !important;
}
.app #chat-messages .chat-name {
  display: inline;
  min-width: 0;
  height: auto;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: none !important;
  box-shadow: none !important;
  text-align: left;
  cursor: pointer;
}
.app #chat-messages .chat-name:hover,
.app #chat-messages .chat-name:focus-visible,
.app #chat-messages .chat-link:hover,
.app #chat-messages .chat-link:focus-visible {
  color: #9dff79 !important;
  text-decoration: underline;
  outline: none;
}
.app #chat-messages .chat-rank {
  width: 13px !important;
  height: 13px !important;
  margin: 0 2px 0 0 !important;
  vertical-align: -2px !important;
  image-rendering: auto;
}
.app #chat-messages .chat-arrow {
  width: 10px !important;
  height: 5px !important;
  margin: 0 3px !important;
  vertical-align: 1px !important;
}
.app #chat-messages .chat-message.to-self:not(.system),
.app #chat-messages .chat-message.selected-user:not(.system) {
  background:
    url("./assets/ui/tank-ui/images/56_assets.cellrenderer.battlelist.cell_normal_SELECTED_LEFT.png") left top / 3px 20px no-repeat,
    url("./assets/ui/tank-ui/images/55_assets.cellrenderer.battlelist.cell_normal_SELECTED_RIGHT.png") right top / 3px 20px no-repeat,
    url("./assets/ui/tank-ui/images/57_assets.cellrenderer.battlelist.cell_normal_SELECTED_CENTER.png") 3px top / 1px 20px repeat-x !important;
}
.app #chat-messages .chat-message.to-self:not(.system) .chat-name,
.app #chat-messages .chat-message.to-self:not(.system) .chat-text,
.app #chat-messages .chat-message.to-self:not(.system) .chat-link {
  color: #59ff32 !important;
}

.app .ui-chat-scrollbar {
  position: absolute;
  z-index: 8;
  top: 15px;
  right: 14px;
  bottom: 47px;
  width: 15px;
  display: flex;
  flex-direction: column;
  pointer-events: auto;
  user-select: none;
}
.app .ui-chat-scrollbar.hidden { display: none !important; }
.app .ui-chat-scrollbar-arrow {
  flex: 0 0 14px;
  width: 15px;
  height: 14px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background-color: transparent;
  background-position: center;
  background-repeat: no-repeat;
  background-size: 15px 14px;
  box-shadow: none;
}
.app .ui-chat-scrollbar-arrow.up { background-image: url("./assets/ui/ui-chat/scroll-up.png"); }
.app .ui-chat-scrollbar-arrow.down { background-image: url("./assets/ui/ui-chat/scroll-down.png"); }
.app .ui-chat-scrollbar-track {
  position: relative;
  flex: 1 1 auto;
  width: 15px;
  min-height: 1px;
  overflow: hidden;
  background: url("./assets/ui/tank-ui/images/10_assets.scroller.TrackGreen.png") 0 0 / 15px 1px repeat-y;
}
.app .ui-chat-scrollbar-thumb {
  position: absolute;
  top: 0;
  left: 0;
  width: 15px;
  min-height: 18px;
  cursor: default;
  background:
    url("./assets/ui/tank-ui/images/14_assets.scroller.ThumbTopGreen.png") 0 0 / 15px 1px repeat-y,
    url("./assets/ui/tank-ui/images/18_assets.scroller.ThumbMiddleGreen.png") 0 0 / 15px 1px repeat-y;
}

.app #lobby-chat-panel .chat-form {
  right: 11px !important;
  bottom: 11px !important;
  left: 11px !important;
  height: 30px !important;
  gap: 5px !important;
}
.app #lobby-chat-panel .chat-form .ui-input {
  height: 30px !important;
  font: 13px/20px "MTanksMyriadPro", "MyriadPro", "Myriad Pro", Arial, sans-serif !important;
}
.app #lobby-chat-panel .chat-form .ui-button {
  width: 80px !important;
  min-width: 80px !important;
  height: 30px !important;
  font: 13px/20px "MTanksMyriadPro", "MyriadPro", "Myriad Pro", Arial, sans-serif !important;
  text-transform: none !important;
}


.app #lobby-chat-panel.persistent-chat {
  padding: 11px !important;
  overflow: visible !important;
}
.app #chat-messages.chat-messages {
  position: relative !important;
  top: auto !important;
  right: auto !important;
  bottom: auto !important;
  left: auto !important;
  z-index: 0 !important;
  height: calc(100% - 37px) !important;
  margin: 0 !important;
  padding: 4px 18px 4px 5px !important;
  overflow-x: hidden !important;
  overflow-y: auto !important;
  border: 0 !important;
  border-radius: 0 !important;
  background-color: #06260a !important;
  background-image:
    url("./assets/ui/ui-components/inner/top-left.png"),
    url("./assets/ui/ui-components/inner/top-right.png"),
    url("./assets/ui/ui-components/inner/bottom-left.png"),
    url("./assets/ui/ui-components/inner/bottom-right.png"),
    url("./assets/ui/ui-components/inner/30_assets.windowinner.bitmaps.WindowInnerTop.png"),
    url("./assets/ui/ui-components/inner/34_assets.windowinner.bitmaps.WindowInnerBottom.png"),
    url("./assets/ui/ui-components/inner/32_assets.windowinner.bitmaps.WindowInnerLeft.png"),
    url("./assets/ui/ui-components/inner/31_assets.windowinner.bitmaps.WindowInnerRight.png") !important;
  background-position:
    left top, right top, left bottom, right bottom,
    6px top, 6px bottom, left 6px, right 6px !important;
  background-repeat:
    no-repeat, no-repeat, no-repeat, no-repeat,
    repeat-x, repeat-x, repeat-y, repeat-y !important;
  box-shadow: none !important;
  color: #fff !important;
  font: 13px/18px MTanksMyriadPro, MyriadPro, "Myriad Pro", Arial, sans-serif !important;
  text-shadow: none !important;
  scrollbar-width: thin !important;
  scrollbar-color: #417c18 #071609 !important;
}
.app #chat-messages.chat-messages::after {
  content: none !important;
  display: none !important;
}
.app #chat-messages.chat-messages::-webkit-scrollbar {
  display: initial !important;
  width: 15px !important;
  height: 15px !important;
}
.app #chat-messages.chat-messages::-webkit-scrollbar-track {
  background: #0c2710 !important;
  box-shadow: inset 0 0 0 1px #243821 !important;
}
.app #chat-messages.chat-messages::-webkit-scrollbar-thumb {
  min-height: 24px !important;
  background: linear-gradient(90deg, #214c12, #4a861c 48%, #183d0d) !important;
  border: 1px solid #6d9d35 !important;
}
.app #chat-messages.chat-messages::-webkit-scrollbar-button:single-button:vertical:decrement {
  display: block !important;
  width: 15px !important;
  height: 14px !important;
  background: url("./assets/ui/ui-chat/scroll-up.png") center/15px 14px no-repeat !important;
}
.app #chat-messages.chat-messages::-webkit-scrollbar-button:single-button:vertical:increment {
  display: block !important;
  width: 15px !important;
  height: 14px !important;
  background: url("./assets/ui/ui-chat/scroll-down.png") center/15px 14px no-repeat !important;
}
.app .ui-chat-scrollbar { display: none !important; }
.app #chat-messages .chat-message {
  min-height: 18px !important;
  padding: 0 1px !important;
  background: transparent !important;
  color: #fff !important;
  font: 13px/18px MTanksMyriadPro, MyriadPro, "Myriad Pro", Arial, sans-serif !important;
  text-shadow: none !important;
}
.app #chat-messages .chat-message.system,
.app #chat-messages .chat-message.system .chat-text,
.app #chat-messages .chat-message.system .chat-link { color: #80ff80 !important; }
.app #chat-messages .chat-message.system.yellow,
.app #chat-messages .chat-message.system.yellow .chat-text { color: #e9ff00 !important; }
.app #chat-messages .chat-message:not(.system) .chat-text,
.app #chat-messages .chat-message:not(.system) .chat-link { color: #fff !important; }
.app #chat-messages .chat-name,
.app #chat-messages .chat-colon {
  color: #12ff00 !important;
  font: inherit !important;
  background: none !important;
  border: 0 !important;
  box-shadow: none !important;
}
.app #chat-messages .chat-rank {
  width: 13px !important;
  height: 13px !important;
  margin: 0 2px 0 0 !important;
  vertical-align: -2px !important;
}
.app #chat-messages .chat-arrow {
  width: 10px !important;
  height: 5px !important;
  margin: 0 3px !important;
  vertical-align: 1px !important;
}
/* Do not use battle-list selected cells as chat selection background. ChatOutputLine uses StatLine sprites, not cellrenderer.battlelist. */
.app #chat-messages .chat-message.to-self:not(.system),
.app #chat-messages .chat-message.selected-user:not(.system) {
  background: transparent !important;
}
.app #lobby-chat-panel .chat-form {
  right: 11px !important;
  bottom: 11px !important;
  left: 11px !important;
  height: 30px !important;
  gap: 5px !important;
}
.app #lobby-chat-panel .chat-form .ui-input {
  height: 30px !important;
  font: 13px/20px MTanksMyriadPro, MyriadPro, "Myriad Pro", Arial, sans-serif !important;
}
.app #lobby-chat-panel .chat-form .ui-button {
  width: 80px !important;
  min-width: 80px !important;
  height: 30px !important;
  font: 13px/20px MTanksMyriadPro, MyriadPro, "Myriad Pro", Arial, sans-serif !important;
  text-transform: none !important;
}


.app .battle-row,
.app .battle-player-row,
.app .battle-row:hover,
.app .battle-row:hover:not(.disabled),
.app .battle-row.selected,
.app .battle-row.disabled,
.app .battle-row.disabled.selected,
.app .battle-player-row.green,
.app .battle-player-row.red,
.app .battle-player-row.blue {
  position: relative !important;
  background: none !important;
  background-color: transparent !important;
  background-image: none !important;
  border: 0 !important;
  box-shadow: none !important;
  filter: none !important;
  overflow: hidden !important;
}
.app .battle-row::before,
.app .battle-row::after,
.app .battle-player-row::before,
.app .battle-player-row::after {
  content: none !important;
  display: none !important;
  background: none !important;
  background-image: none !important;
}
.app .battle-cell-skin,
.app .battle-player-row > .team-cell-skin {
  position: absolute !important;
  z-index: 0 !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 20px !important;
  overflow: hidden !important;
  pointer-events: none !important;
}
.app .battle-cell-left,
.app .battle-cell-center,
.app .battle-cell-right,
.app .battle-player-row > .team-cell-skin > .team-cell-left,
.app .battle-player-row > .team-cell-skin > .team-cell-center,
.app .battle-player-row > .team-cell-skin > .team-cell-right {
  position: absolute !important;
  top: 0 !important;
  height: 20px !important;
  pointer-events: none !important;
}
.app .battle-cell-left,
.app .battle-player-row > .team-cell-skin > .team-cell-left {
  left: 0 !important;
  width: 5px !important;
  background-position: left top !important;
  background-size: 5px 20px !important;
  background-repeat: no-repeat !important;
}
.app .battle-cell-right,
.app .battle-player-row > .team-cell-skin > .team-cell-right {
  right: 0 !important;
  width: 5px !important;
  background-position: left top !important;
  background-size: 5px 20px !important;
  background-repeat: no-repeat !important;
}
.app .battle-cell-center,
.app .battle-player-row > .team-cell-skin > .team-cell-center {
  left: 5px !important;
  right: 5px !important;
  background-position: left top !important;
  background-size: 4px 20px !important;
  background-repeat: repeat-x !important;
}
.app .battle-row > :not(.battle-cell-skin),
.app .battle-player-row > :not(.team-cell-skin) {
  z-index: 1 !important;
}
.app .battle-row:not(.disabled) .battle-cell-left { background-image: url("./assets/ui/tank-ui/images/53_assets.cellrenderer.battlelist.cell_normal_UP_LEFT.png") !important; }
.app .battle-row:not(.disabled) .battle-cell-center { background-image: url("./assets/ui/tank-ui/images/54_assets.cellrenderer.battlelist.cell_normal_UP_CENTER.png") !important; }
.app .battle-row:not(.disabled) .battle-cell-right { background-image: url("./assets/ui/tank-ui/images/52_assets.cellrenderer.battlelist.cell_normal_UP_RIGHT.png") !important; }
.app .battle-row:not(.disabled) { color: #59ff32 !important; }
.app .battle-row:not(.disabled).selected .battle-cell-left { background-image: url("./assets/ui/tank-ui/images/56_assets.cellrenderer.battlelist.cell_normal_SELECTED_LEFT.png") !important; }
.app .battle-row:not(.disabled).selected .battle-cell-center { background-image: url("./assets/ui/tank-ui/images/57_assets.cellrenderer.battlelist.cell_normal_SELECTED_CENTER.png") !important; }
.app .battle-row:not(.disabled).selected .battle-cell-right { background-image: url("./assets/ui/tank-ui/images/55_assets.cellrenderer.battlelist.cell_normal_SELECTED_RIGHT.png") !important; }
.app .battle-row:not(.disabled).selected { color: #0c220d !important; text-shadow: none !important; }
.app .battle-row.disabled .battle-cell-left { background-image: url("./assets/ui/tank-ui/images/47_assets.cellrenderer.battlelist.cell_off_UP_LEFT.png") !important; }
.app .battle-row.disabled .battle-cell-center { background-image: url("./assets/ui/tank-ui/images/48_assets.cellrenderer.battlelist.cell_off_UP_CENTER.png") !important; }
.app .battle-row.disabled .battle-cell-right { background-image: url("./assets/ui/tank-ui/images/46_assets.cellrenderer.battlelist.cell_off_UP_RIGHT.png") !important; }
.app .battle-row.disabled { color: #b1b1b1 !important; }
.app .battle-row.disabled.selected .battle-cell-left { background-image: url("./assets/ui/tank-ui/images/50_assets.cellrenderer.battlelist.cell_off_SELECTED_LEFT.png") !important; }
.app .battle-row.disabled.selected .battle-cell-center { background-image: url("./assets/ui/tank-ui/images/51_assets.cellrenderer.battlelist.cell_off_SELECTED_CENTER.png") !important; }
.app .battle-row.disabled.selected .battle-cell-right { background-image: url("./assets/ui/tank-ui/images/49_assets.cellrenderer.battlelist.cell_off_SELECTED_RIGHT.png") !important; }
.app .battle-row.disabled.selected { color: #585858 !important; }
.app .battle-player-row.green { --team-cell-left: url("./assets/ui/tank-ui/images/53_assets.cellrenderer.battlelist.cell_normal_UP_LEFT.png"); --team-cell-center: url("./assets/ui/tank-ui/images/54_assets.cellrenderer.battlelist.cell_normal_UP_CENTER.png"); --team-cell-right: url("./assets/ui/tank-ui/images/52_assets.cellrenderer.battlelist.cell_normal_UP_RIGHT.png"); color: #fff !important; }
.app .battle-player-row.red { --team-cell-left: url("./assets/ui/tank-ui/images/44_assets.cellrenderer.battlelist.cell_RED_LEFT.png"); --team-cell-center: url("./assets/ui/tank-ui/images/45_assets.cellrenderer.battlelist.cell_RED_CENTER.png"); --team-cell-right: url("./assets/ui/tank-ui/images/43_assets.cellrenderer.battlelist.cell_RED_RIGHT.png"); color: #fff !important; }
.app .battle-player-row.blue { --team-cell-left: url("./assets/ui/tank-ui/images/59_assets.cellrenderer.battlelist.cell_BLUE_LEFT.png"); --team-cell-center: url("./assets/ui/tank-ui/images/60_assets.cellrenderer.battlelist.cell_BLUE_CENTER.png"); --team-cell-right: url("./assets/ui/tank-ui/images/58_assets.cellrenderer.battlelist.cell_BLUE_RIGHT.png"); color: #fff !important; }
.app .battle-player-row > .team-cell-skin > .team-cell-left { background-image: var(--team-cell-left) !important; }
.app .battle-player-row > .team-cell-skin > .team-cell-center { background-image: var(--team-cell-center) !important; }
.app .battle-player-row > .team-cell-skin > .team-cell-right { background-image: var(--team-cell-right) !important; }
.app .battle-player-row > img,
.app .battle-player-row > span,
.app .battle-player-row > b {
  position: absolute !important;
  z-index: 1 !important;
}
.app .battle-player-row > img { top: 2px !important; left: -2px !important; width: 13px !important; height: 13px !important; }
.app .battle-player-row > span {
  top: 0 !important;
  left: 10px !important;
  right: 38px !important;
  height: 20px !important;
  overflow: hidden !important;
  color: #fff !important;
  font: 13px/20px MTanksMyriadPro, MyriadPro, Arial, sans-serif !important;
  white-space: nowrap !important;
}
.app .battle-player-row > b {
  top: 0 !important;
  right: 15px !important;
  width: 120px !important;
  height: 20px !important;
  color: #fff !important;
  font: 13px/20px MTanksMyriadPro, MyriadPro, Arial, sans-serif !important;
  font-weight: normal !important;
  text-align: right !important;
  pointer-events: none !important;
}
.app .battle-player-row.empty > span { left: 10px !important; opacity: .5 !important; }
.app .battle-player-row.empty > b { display: none !important; }



.app .battle-player-row,
.app .battle-player-row.empty,
.app .battle-player-row.empty-slot,
.app .battle-player-row.green,
.app .battle-player-row.red,
.app .battle-player-row.blue {
  position: relative !important;
  height: 20px !important;
  line-height: 20px !important;
  overflow: hidden !important;
  background: none !important;
  background-color: transparent !important;
  background-image: none !important;
  border: 0 !important;
  box-shadow: none !important;
  filter: none !important;
}
.app .battle-player-row::before,
.app .battle-player-row::after,
.app .battle-player-row.empty::before,
.app .battle-player-row.empty::after,
.app .battle-player-row.empty-slot::before,
.app .battle-player-row.empty-slot::after {
  content: none !important;
  display: none !important;
  background: none !important;
  background-image: none !important;
}
.app .battle-player-row.green,
.app .battle-player-row.green.empty,
.app .battle-player-row.green.empty-slot {
  --team-cell-left: url("./assets/ui/tank-ui/images/53_assets.cellrenderer.battlelist.cell_normal_UP_LEFT.png");
  --team-cell-center: url("./assets/ui/tank-ui/images/54_assets.cellrenderer.battlelist.cell_normal_UP_CENTER.png");
  --team-cell-right: url("./assets/ui/tank-ui/images/52_assets.cellrenderer.battlelist.cell_normal_UP_RIGHT.png");
}
.app .battle-player-row.red,
.app .battle-player-row.red.empty,
.app .battle-player-row.red.empty-slot {
  --team-cell-left: url("./assets/ui/tank-ui/images/44_assets.cellrenderer.battlelist.cell_RED_LEFT.png");
  --team-cell-center: url("./assets/ui/tank-ui/images/45_assets.cellrenderer.battlelist.cell_RED_CENTER.png");
  --team-cell-right: url("./assets/ui/tank-ui/images/43_assets.cellrenderer.battlelist.cell_RED_RIGHT.png");
}
.app .battle-player-row.blue,
.app .battle-player-row.blue.empty,
.app .battle-player-row.blue.empty-slot {
  --team-cell-left: url("./assets/ui/tank-ui/images/59_assets.cellrenderer.battlelist.cell_BLUE_LEFT.png");
  --team-cell-center: url("./assets/ui/tank-ui/images/60_assets.cellrenderer.battlelist.cell_BLUE_CENTER.png");
  --team-cell-right: url("./assets/ui/tank-ui/images/58_assets.cellrenderer.battlelist.cell_BLUE_RIGHT.png");
}
.app .battle-player-row > .team-cell-skin,
.app .battle-player-row.empty > .team-cell-skin,
.app .battle-player-row.empty-slot > .team-cell-skin {
  display: block !important;
  position: absolute !important;
  z-index: 0 !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  width: 100% !important;
  height: 20px !important;
  overflow: hidden !important;
  pointer-events: none !important;
}
.app .battle-player-row > .team-cell-skin > .team-cell-left,
.app .battle-player-row > .team-cell-skin > .team-cell-center,
.app .battle-player-row > .team-cell-skin > .team-cell-right {
  display: block !important;
  position: absolute !important;
  top: 0 !important;
  height: 20px !important;
  pointer-events: none !important;
}
.app .battle-player-row > .team-cell-skin > .team-cell-left {
  left: 0 !important;
  width: 5px !important;
  background: var(--team-cell-left) left top / 5px 20px no-repeat !important;
}
.app .battle-player-row > .team-cell-skin > .team-cell-right {
  right: 0 !important;
  width: 5px !important;
  background: var(--team-cell-right) left top / 5px 20px no-repeat !important;
}
.app .battle-player-row > .team-cell-skin > .team-cell-center {
  left: 5px !important;
  right: 5px !important;
  background: var(--team-cell-center) left top / 4px 20px repeat-x !important;
}
.app .battle-player-row > img,
.app .battle-player-row > span,
.app .battle-player-row > b {
  position: absolute !important;
  z-index: 1 !important;
  font: 13px/20px MTanksMyriadPro, MyriadPro, "Myriad Pro", Arial, sans-serif !important;
  text-shadow: none !important;
}
.app .battle-player-row > img {
  top: 2px !important;
  left: -2px !important;
  width: 13px !important;
  height: 13px !important;
}
.app .battle-player-row > span {
  top: 0 !important;
  left: 10px !important;
  right: 38px !important;
  height: 20px !important;
  overflow: hidden !important;
  white-space: nowrap !important;
  color: #ffffff !important;
}
.app .battle-player-row > b {
  top: 0 !important;
  right: 15px !important;
  width: 120px !important;
  height: 20px !important;
  color: #ffffff !important;
  font-weight: normal !important;
  text-align: right !important;
  pointer-events: none !important;
}
.app .battle-player-row.empty > span,
.app .battle-player-row.empty-slot > span {
  left: 10px !important;
  opacity: .5 !important;
  color: #ffffff !important;
}
.app .battle-player-row.empty > b,
.app .battle-player-row.empty-slot > b {
  display: block !important;
  color: transparent !important;
}


.topbar nav #sound-toggle,
#sound-toggle {
  left: 431px !important;
  width: 28px !important;
  min-width: 28px !important;
  height: 29px !important;
  background-image: url("./assets/ui/mainpanel/sound/2.png") !important;
  background-position: 0 0 !important;
  background-size: 28px 29px !important;
  background-repeat: no-repeat !important;
  filter: none !important;
}
.topbar nav #sound-toggle.active,
#sound-toggle.active {
  background-image: url("./assets/ui/mainpanel/sound/1.png") !important;
  filter: none !important;
}
.topbar nav #sound-toggle:not(.active):hover,
#sound-toggle:not(.active):hover {
  background-image: url("./assets/ui/mainpanel/sound/3.png") !important;
}
.topbar nav #sound-toggle:not(.active):active,
#sound-toggle:not(.active):active {
  top: 0 !important;
  background-image: url("./assets/ui/mainpanel/sound/4.png") !important;
}
.topbar nav #sound-toggle.active:hover,
#sound-toggle.active:hover,
.topbar nav #sound-toggle.active:active,
#sound-toggle.active:active {
  top: 0 !important;
  background-image: url("./assets/ui/mainpanel/sound/1.png") !important;
}


.topbar nav #sound-toggle,
#sound-toggle {
  left: 338px;
  width: 28px;
  min-width: 28px;
  height: 29px;
  background-image: url("./assets/ui/mainpanel/sound/off-normal.png") !important;
  filter: none !important;
}
.topbar nav #sound-toggle:hover,
#sound-toggle:hover {
  background-image: url("./assets/ui/mainpanel/sound/off-over.png") !important;
}
.topbar nav #sound-toggle:active,
#sound-toggle:active {
  top: 0;
  background-image: url("./assets/ui/mainpanel/sound/off-pressed.png") !important;
}
.topbar nav #sound-toggle.active,
#sound-toggle.active {
  background-image: url("./assets/ui/mainpanel/sound/on-normal.png") !important;
}
.topbar nav #sound-toggle.active:hover,
#sound-toggle.active:hover {
  background-image: url("./assets/ui/mainpanel/sound/on-over.png") !important;
}
.topbar nav #sound-toggle.active:active,
#sound-toggle.active:active {
  top: 0;
  background-image: url("./assets/ui/mainpanel/sound/on-pressed.png") !important;
}


#nav .buy-button {
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  width: 74px !important;
  min-width: 74px !important;
  height: 29px !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: visible !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: url("./assets/ui/mainpanel/buy/MainPanelDonateButton_normalBtn.png") 0 0 / 74px 29px no-repeat !important;
  box-shadow: none !important;
  filter: none !important;
  color: transparent !important;
  font-size: 0 !important;
  line-height: 0 !important;
  text-align: left !important;
  text-indent: 0 !important;
}
#nav .buy-button::after {
  content: "";
  position: absolute;
  z-index: 1;
  left: 0;
  top: 0;
  width: 74px;
  height: 29px;
  display: none;
  background: url("./assets/ui/mainpanel/buy/MainPanelDonateButton_overBtn.png") 0 0 / 74px 29px no-repeat;
  pointer-events: none;
}
#nav .buy-button::before {
  content: "";
  position: absolute;
  z-index: 2;
  left: 7px;
  top: 7px;
  width: 15px;
  height: 15px;
  background: url("./assets/ui/mainpanel/buy/MainPanelDonateButton_iconN.png") 0 0 / 15px 15px no-repeat;
  pointer-events: none;
}
#nav .buy-button span {
  position: absolute !important;
  z-index: 3;
  left: 18px !important;
  top: 4px !important;
  width: 56px !important;
  height: 18px !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: visible !important;
  color: #ededed !important;
  background: transparent !important;
  font: 12px/18px Arial, Helvetica, sans-serif !important;
  font-style: normal !important;
  font-weight: 400 !important;
  letter-spacing: 0 !important;
  text-align: center !important;
  text-indent: 0 !important;
  white-space: nowrap !important;
  text-shadow: none !important;
  pointer-events: none !important;
}
#nav .buy-button:hover::after { display: block; }
#nav .buy-button:active {
  top: 1px !important;
  background-image: url("./assets/ui/mainpanel/buy/MainPanelDonateButton_normalBtn.png") !important;
}
#nav .buy-button:active::after { display: none; }


#nav .buy-button.double-crystals {
  background-image: url("./assets/ui/mainpanel/buy/MainPanelDoubleDonateButton_normalBtn.png") !important;
}
#nav .buy-button.double-crystals::after {
  background-image: url("./assets/ui/mainpanel/buy/MainPanelDoubleDonateButton_overBtn.png");
}
#nav .buy-button.double-crystals::before {
  left: 5px;
  top: 5px;
  width: 22px;
  height: 17px;
  background-image: url("./assets/ui/mainpanel/buy/MainPanelDoubleDonateButton_iconN.png");
  background-size: 22px 17px;
}


.ui-button {
  background-position: left top, right top, 7px top;
  background-repeat: no-repeat, no-repeat, repeat-x;
  background-size: 7px 30px, 7px 30px, 1px 30px;
}
.ui-button:hover {
  background-position: left top, right top, 7px top;
  background-repeat: no-repeat, no-repeat, repeat-x;
  background-size: 7px 30px, 7px 30px, 1px 30px;
}
.ui-button:active {
  background-position: left top, right top, 7px top;
  background-repeat: no-repeat, no-repeat, repeat-x;
  background-size: 7px 30px, 7px 30px, 1px 30px;
}
.ui-button:disabled {
  background-position: left top, right top, 7px top;
  background-repeat: no-repeat, no-repeat, repeat-x;
  background-size: 7px 30px, 7px 30px, 1px 30px;
}
.app .battle-big-button,
.app .battle-type-button {
  background-position: left top, right top, 7px top;
  background-repeat: no-repeat, no-repeat, repeat-x;
  background-size: 7px 50px, 7px 50px, 1px 50px;
}
.app .battle-big-button:hover:not(:disabled),
.app .battle-type-button:hover:not(:disabled),
.app .battle-big-button:active:not(:disabled),
.app .battle-type-button:active:not(:disabled),
.app .battle-type-button.selected,
.app .battle-big-button:disabled,
.app .battle-type-button:disabled {
  background-position: left top, right top, 7px top;
  background-repeat: no-repeat, no-repeat, repeat-x;
  background-size: 7px 50px, 7px 50px, 1px 50px;
}


.ui-button,
.app .ui-button {
  background-origin: border-box, border-box, border-box !important;
  background-clip: border-box, border-box, border-box !important;
  background-position: left top, right top, 7px top !important;
  background-repeat: no-repeat, no-repeat, no-repeat !important;
  background-size: 7px 30px, 7px 30px, calc(100% - 14px) 30px !important;
}
.ui-button,
.app .ui-button {
  background-image:
    url("./assets/ui/ui-components/button/506_assets.button.button_def_UP_LEFT.png"),
    url("./assets/ui/ui-components/button/505_assets.button.button_def_UP_RIGHT.png"),
    url("./assets/ui/ui-components/button/507_assets.button.button_def_UP_CENTER.png") !important;
}
.ui-button:hover,
.app .ui-button:hover {
  background-image:
    url("./assets/ui/ui-components/button/503_assets.button.button_def_OVER_LEFT.png"),
    url("./assets/ui/ui-components/button/502_assets.button.button_def_OVER_RIGHT.png"),
    url("./assets/ui/ui-components/button/504_assets.button.button_def_OVER_CENTER.png") !important;
}
.ui-button:active,
.app .ui-button:active {
  background-image:
    url("./assets/ui/ui-components/button/500_assets.button.button_def_DOWN_LEFT.png"),
    url("./assets/ui/ui-components/button/499_assets.button.button_def_DOWN_RIGHT.png"),
    url("./assets/ui/ui-components/button/501_assets.button.button_def_DOWN_CENTER.png") !important;
}

.app .battle-big-button,
.app .battle-type-button {
  background-origin: border-box, border-box, border-box !important;
  background-clip: border-box, border-box, border-box !important;
  background-position: left top, right top, 7px top !important;
  background-repeat: no-repeat, no-repeat, no-repeat !important;
  background-size: 7px 50px, 7px 50px, calc(100% - 14px) 50px !important;
  background-image:
    url("./assets/ui/tank-ui/images/476_assets.button.bigbutton_UP_LEFT.png"),
    url("./assets/ui/tank-ui/images/475_assets.button.bigbutton_UP_RIGHT.png"),
    url("./assets/ui/tank-ui/images/477_assets.button.bigbutton_UP_CENTER.png") !important;
}
.app .battle-big-button:hover:not(:disabled),
.app .battle-type-button:hover:not(:disabled) {
  background-image:
    url("./assets/ui/tank-ui/images/473_assets.button.bigbutton_OVER_LEFT.png"),
    url("./assets/ui/tank-ui/images/472_assets.button.bigbutton_OVER_RIGHT.png"),
    url("./assets/ui/tank-ui/images/474_assets.button.bigbutton_OVER_CENTER.png") !important;
}
.app .battle-big-button:active:not(:disabled),
.app .battle-type-button:active:not(:disabled),
.app .battle-type-button.selected {
  background-image:
    url("./assets/ui/tank-ui/images/470_assets.button.bigbutton_DOWN_LEFT.png"),
    url("./assets/ui/tank-ui/images/469_assets.button.bigbutton_DOWN_RIGHT.png"),
    url("./assets/ui/tank-ui/images/471_assets.button.bigbutton_DOWN_CENTER.png") !important;
}
.app .battle-big-button:disabled,
.app .battle-type-button:disabled {
  background-image:
    url("./assets/ui/tank-ui/images/467_assets.button.bigbutton_OFF_LEFT.png"),
    url("./assets/ui/tank-ui/images/466_assets.button.bigbutton_OFF_RIGHT.png"),
    url("./assets/ui/tank-ui/images/468_assets.button.bigbutton_OFF_CENTER.png") !important;
}

.ui-button,
.app .ui-button {
  background-origin: border-box, border-box, border-box !important;
  background-clip: border-box, border-box, border-box !important;
  background-position: left top, right top, 7px top !important;
  background-repeat: no-repeat, no-repeat, repeat-x !important;
  background-size: 7px 30px, 7px 30px, 201px 30px !important;
  background-image:
    url("./assets/ui/ui-components/button/506_assets.button.button_def_UP_LEFT.png"),
    url("./assets/ui/ui-components/button/505_assets.button.button_def_UP_RIGHT.png"),
    url("./assets/ui/ui-components/button/507_assets.button.button_def_UP_CENTER.png") !important;
}
.ui-button:hover,
.app .ui-button:hover {
  background-position: left top, right top, 7px top !important;
  background-repeat: no-repeat, no-repeat, repeat-x !important;
  background-size: 7px 30px, 7px 30px, 201px 30px !important;
  background-image:
    url("./assets/ui/ui-components/button/503_assets.button.button_def_OVER_LEFT.png"),
    url("./assets/ui/ui-components/button/502_assets.button.button_def_OVER_RIGHT.png"),
    url("./assets/ui/ui-components/button/504_assets.button.button_def_OVER_CENTER.png") !important;
}
.ui-button:active,
.app .ui-button:active {
  background-position: left top, right top, 7px top !important;
  background-repeat: no-repeat, no-repeat, repeat-x !important;
  background-size: 7px 30px, 7px 30px, 201px 30px !important;
  background-image:
    url("./assets/ui/ui-components/button/500_assets.button.button_def_DOWN_LEFT.png"),
    url("./assets/ui/ui-components/button/499_assets.button.button_def_DOWN_RIGHT.png"),
    url("./assets/ui/ui-components/button/501_assets.button.button_def_DOWN_CENTER.png") !important;
}


.ui-button,
.app .ui-button {
  box-sizing: border-box !important;
  border-left: 7px solid transparent !important;
  border-right: 7px solid transparent !important;
  padding-left: 5px !important;
  padding-right: 5px !important;
  background-color: transparent !important;
  background-image:
    url("./assets/ui/ui-components/button/506_assets.button.button_def_UP_LEFT.png"),
    url("./assets/ui/ui-components/button/505_assets.button.button_def_UP_RIGHT.png"),
    url("./assets/ui/ui-components/button/507_assets.button.button_def_UP_CENTER.png") !important;
  background-origin: border-box, border-box, padding-box !important;
  background-clip: border-box, border-box, padding-box !important;
  background-position: left top, right top, left top !important;
  background-repeat: no-repeat, no-repeat, repeat-x !important;
  background-size: 7px 30px, 7px 30px, 201px 30px !important;
}
.ui-button:hover,
.app .ui-button:hover {
  background-image:
    url("./assets/ui/ui-components/button/503_assets.button.button_def_OVER_LEFT.png"),
    url("./assets/ui/ui-components/button/502_assets.button.button_def_OVER_RIGHT.png"),
    url("./assets/ui/ui-components/button/504_assets.button.button_def_OVER_CENTER.png") !important;
  background-origin: border-box, border-box, padding-box !important;
  background-clip: border-box, border-box, padding-box !important;
  background-position: left top, right top, left top !important;
  background-repeat: no-repeat, no-repeat, repeat-x !important;
  background-size: 7px 30px, 7px 30px, 201px 30px !important;
}
.ui-button:active,
.app .ui-button:active {
  background-image:
    url("./assets/ui/ui-components/button/500_assets.button.button_def_DOWN_LEFT.png"),
    url("./assets/ui/ui-components/button/499_assets.button.button_def_DOWN_RIGHT.png"),
    url("./assets/ui/ui-components/button/501_assets.button.button_def_DOWN_CENTER.png") !important;
  background-origin: border-box, border-box, padding-box !important;
  background-clip: border-box, border-box, padding-box !important;
  background-position: left top, right top, left top !important;
  background-repeat: no-repeat, no-repeat, repeat-x !important;
  background-size: 7px 30px, 7px 30px, 201px 30px !important;
}



.ui-battle-hud #battle-chat-form.battle-chat-form {
  position: relative !important;
  display: none !important;
  box-sizing: border-box !important;
  width: 25vw !important;
  min-width: 300px !important;
  max-width: 520px !important;
  height: 30px !important;
  margin: 10px 0 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background-color: transparent !important;
  background-image:
    url("./assets/ui/ui-components/input/27_assets.input.InputLeft.png"),
    url("./assets/ui/ui-components/input/25_assets.input.InputRight.png"),
    url("./assets/ui/ui-components/input/29_assets.input.InputCenter.png") !important;
  background-position: left top, right top, 5px top !important;
  background-repeat: no-repeat, no-repeat, no-repeat !important;
  background-size: 5px 30px, 5px 30px, calc(100% - 10px) 30px !important;
  box-shadow: none !important;
  outline: 0 !important;
  overflow: visible !important;
  pointer-events: auto !important;
}
.ui-battle-hud .battle-chat.expanded #battle-chat-form.battle-chat-form {
  display: block !important;
}
.ui-battle-hud #battle-chat-input {
  position: absolute !important;
  left: 5px !important;
  right: 5px !important;
  top: 0 !important;
  box-sizing: border-box !important;
  width: calc(100% - 10px) !important;
  height: 30px !important;
  margin: 0 !important;
  padding: 3px 4px 4px !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent none !important;
  box-shadow: none !important;
  outline: 0 !important;
  color: #fff !important;
  font: 12px/20px Arial, sans-serif !important;
  -webkit-appearance: none !important;
  appearance: none !important;
  pointer-events: auto !important;
}


.app .garage-kit-ui-info {
  clear: both;
  margin-top: 0;
  color: #19df20;
  font: 11px/13px Arial, sans-serif;
  text-shadow: 0 1px 0 #001600;
}
.app .garage-kit-preview-frame {
  position: relative;
  height: 170px;
  margin: 0 0 7px;
  overflow: hidden;
  border: 0;
  background:
    radial-gradient(ellipse at 58% 38%, rgba(73, 153, 28, .62) 0%, rgba(16, 70, 16, .35) 34%, rgba(0, 20, 4, 0) 70%),
    linear-gradient(180deg, rgba(7, 47, 10, .12), rgba(0, 16, 3, .10));
}
.app .garage-kit-preview {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: 50% 48%;
  image-rendering: auto;
  pointer-events: none;
  -webkit-user-drag: none;
}
.app .garage-kit-composition-panel {
  margin: 0 0 9px;
  padding: 0;
  border: 0;
  background: none;
  box-shadow: none;
}
.app .garage-kit-info-line {
  margin: 0;
  color: #19df20;
  font: 11px/13px Arial, sans-serif;
  overflow-wrap: anywhere;
}
.app .garage-kit-line-label {
  color: #19df20;
  font-weight: normal;
}
.app .garage-kit-benefit-text {
  margin: 8px 0 9px;
  padding: 0;
  color: #19df20;
  border: 0;
  background: none;
  font: 11px/13px Arial, sans-serif;
  line-height: 13px;
}
.app .garage-kit-owned-hint,
.app .garage-kit-price-box,
.app .garage-kit-composition-title,
.app .garage-kit-composition-row {
  display: none !important;
}
.app .garage-kit-description {
  clear: both;
  margin: 0;
  color: #19df20;
  font: 11px/13px Arial, sans-serif;
  line-height: 13px;
  text-align: left;
}



.game-rank-unlock-window {
  width: 623px;
  height: 253px;
  color: #59ff32;
  font: 12px/14px Arial, Helvetica, sans-serif;
}
.game-rank-unlock-header {
  position: absolute;
  left: 50%;
  top: -26px;
  translate: -50% 0;
  transform: none;
  z-index: 7;
  pointer-events: none;
}
.game-rank-unlock-inner {
  top: 14px;
  left: 12px;
  width: 599px;
  height: 179px;
}
.game-rank-unlock-message {
  position: absolute;
  z-index: 3;
  top: 28px;
  left: 25px;
  width: 574px;
  height: 15px;
  overflow: hidden;
  color: #fff;
  font: bold 12px/14px Arial, Helvetica, sans-serif;
  text-shadow: 0 1px 1px #000;
  white-space: nowrap;
}
.game-rank-unlock-list-viewport {
  position: absolute;
  z-index: 3;
  top: 48px;
  left: 25px;
  width: 574px;
  height: 123px;
  overflow: hidden;
}
.game-rank-unlock-list {
  position: absolute;
  left: 0;
  top: 0;
  width: 574px;
  height: 123px;
  overflow-x: auto;
  overflow-y: hidden;
  display: flex;
  gap: 5px;
  padding: 0;
  scrollbar-width: none;
}
.game-rank-unlock-list::-webkit-scrollbar { display: none; }
.game-rank-unlock-item {
  position: relative;
  flex: 0 0 188px;
  box-sizing: border-box;
  width: 188px;
  height: 122px;
  overflow: hidden;
  border: 0;
  border-radius: 0;
  background-image: url("./assets/ui/tank-ui/sprites/DefineSprite_167_assets.icons.GarageItemBackground/11.png");
  background-repeat: no-repeat;
  background-position: left top;
  background-size: 188px 122px;
  box-shadow: none;
}
.game-rank-unlock-gun,
.game-rank-unlock-shield,
.game-rank-unlock-color,
.game-rank-unlock-engine,
.game-rank-unlock-plugin {
  background-image: url("./assets/ui/tank-ui/sprites/DefineSprite_167_assets.icons.GarageItemBackground/11.png");
}
.game-rank-unlock-item::after { display: none; }
.game-rank-unlock-name {
  position: absolute;
  z-index: 4;
  left: 3px;
  top: 3px;
  right: 42px;
  height: 15px;
  overflow: hidden;
  color: #27e62e;
  font: 12px/14px Arial, Helvetica, sans-serif;
  text-align: left;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-shadow: 0 1px 1px #000;
}
.game-rank-unlock-mods {
  position: absolute;
  z-index: 5;
  right: 4px;
  top: 7px;
  width: 36px;
  height: 7px;
  image-rendering: auto;
}
.game-rank-unlock-preview {
  position: absolute;
  z-index: 2;
  left: 50%;
  top: 18px;
  max-width: 150px;
  max-height: 88px;
  width: auto;
  height: auto;
  object-fit: contain;
  image-rendering: auto;
  filter: drop-shadow(0 2px 3px rgba(0,0,0,.62));
  transform: translateX(-50%);
}
.game-rank-unlock-color .game-rank-unlock-preview,
.game-rank-unlock-engine .game-rank-unlock-preview,
.game-rank-unlock-plugin .game-rank-unlock-preview {
  max-width: 124px;
  max-height: 82px;
}
.game-rank-unlock-item-line { display: none; }
.game-rank-unlock-empty {
  flex: 1 0 100%;
  align-self: center;
  color: #d7ffd6;
  text-align: center;
}
.game-rank-unlock-scrollbar {
  position: absolute;
  z-index: 4;
  left: 25px;
  top: 173px;
  width: 574px;
  height: 10px;
}
.game-rank-unlock-scroll-track {
  position: absolute;
  left: 0;
  right: 0;
  top: 2px;
  height: 5px;
  background-image: url("./assets/ui/ui-garage/scrollbar/track-left.png"), url("./assets/ui/ui-garage/scrollbar/track-right.png"), url("./assets/ui/ui-garage/scrollbar/track-center.png");
  background-position: left top, right top, 2px top;
  background-repeat: no-repeat, no-repeat, repeat-x;
  cursor: pointer;
}
.game-rank-unlock-scroll-thumb {
  position: absolute;
  top: -2px;
  left: 0;
  height: 9px;
  min-width: 28px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background-color: transparent;
  background-image: url("./assets/ui/ui-garage/scrollbar/thumb-left.png"), url("./assets/ui/ui-garage/scrollbar/thumb-right.png"), url("./assets/ui/ui-garage/scrollbar/thumb-center.png");
  background-position: left top, right top, 3px top;
  background-repeat: no-repeat, no-repeat, repeat-x;
  cursor: pointer;
  outline: 0;
}
.game-rank-unlock-scrollbar.disabled .game-rank-unlock-scroll-thumb { opacity: .72; }
.game-rank-unlock-ok {
  top: 200px;
  left: 259px;
}










.ui-pause-indicator {
  position: absolute;
  z-index: 60;
  top: 50%;
  left: 50%;
  min-width: 288px;
  min-height: 166px;
  box-sizing: border-box;
  padding: 33px 33px 28px;
  transform: translate(-50%, -50%);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.6);
  color: #ededed;
  font: 16px/19px "MTanksMyriadPro", "MyriadPro", "Myriad Pro", Arial, sans-serif !important;
  text-align: center;
  text-shadow: 0 1px 2px #000;
  pointer-events: none;
  user-select: none;
}
.ui-pause-indicator.hidden { display: none !important; }
.ui-pause-icon {
  display: block;
  margin: 0 auto 10px;
  object-fit: contain;
  image-rendering: auto;
}
.ui-pause-line {
  margin-top: 5px;
  white-space: nowrap;
}
.ui-pause-title { color: #ffffff; }
.ui-pause-time { color: #ededed; }


.game-referral-layer {
  z-index: 4900;
}
.game-referral-window {
  width: 496px;
  height: 492px;
  color: #00e714;
  font: 11px/13px Arial, Helvetica, sans-serif;
  text-shadow: 0 1px 1px #001a00;
}
.game-referral-tank-window-header {
  position: absolute;
  z-index: 20;
  top: -25px;
  left: 154px;
  width: 188px;
  height: 43px;
  pointer-events: none;
  overflow: visible;
}
.game-referral-tank-window-header-bg {
  position: absolute;
  z-index: 0;
  left: 0;
  top: 0;
  width: 188px;
  height: 43px;
  display: block;
  transform: none;
}
.game-referral-tank-window-header-title {
  position: absolute;
  z-index: 2;
  left: 19px;
  top: 11px;
  width: 150px;
  height: 17px;
  display: block;
  max-width: none;
  object-fit: contain;
  image-rendering: auto;
}
.game-referral-container {
  position: absolute;
  inset: 0;
  z-index: 1;
}
.game-referral-window .game-window-inner {
  z-index: 0;
}
.game-referral-intro-inner {
  left: 12px;
  top: 12px;
  width: 472px;
  height: 367px;
}
.game-referral-header-image {
  position: absolute;
  z-index: 1;
  left: 23px;
  top: 30px;
  width: 450px;
  height: 23px;
  object-fit: contain;
}
.game-referral-intro-pict {
  position: absolute;
  z-index: 1;
  left: 20px;
  top: 78px;
  width: 455px;
  height: 147px;
  object-fit: contain;
}
.game-referral-info-label {
  position: absolute;
  z-index: 1;
  left: 21px;
  right: 21px;
  top: 226px;
  color: #05d318;
  font: 11px/13px Arial, Helvetica, sans-serif;
  white-space: normal;
}
.game-referral-info-label a {
  color: #05d318;
  text-decoration: underline;
}
.game-referral-descr-inner {
  left: 12px;
  top: 12px;
  width: 472px;
  height: 75px;
}
.game-referral-descr-label {
  position: absolute;
  z-index: 2;
  left: 21px;
  top: 21px;
  width: 454px;
  height: 57px;
  color: #05d318;
  font: 11px/13px Arial, Helvetica, sans-serif;
  white-space: normal;
}
.game-referral-content-inner {
  left: 12px;
  top: 96px;
  width: 472px;
  height: 283px;
  background-color: transparent;
}
.game-referral-content-inner::before {
  background: transparent;
}
.game-referral-input {
  position: absolute;
  z-index: 3;
}
.game-referral-link-input {
  left: 21px;
  top: 105px;
  width: 454px;
}
.game-referral-copy-link-button {
  z-index: 4;
  left: 138px;
  top: 147px;
  width: 220px;
}
.game-referral-banner-preview {
  position: absolute;
  z-index: 2;
  left: 14px;
  top: 98px;
  width: 468px;
  height: 120px;
  background: rgb(0 0 0 / 50%);
  overflow: hidden;
}
.game-referral-banner-load {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 21px;
  height: 21px;
  transform: translate(-50%, -50%);
  background: url("./assets/ui/ui-components/input-state/1.png") center / 21px 21px no-repeat;
}
.game-referral-textarea-wrap {
  position: absolute;
  z-index: 3;
  box-sizing: border-box;
  border: 1px solid #1a1f1a;
  background: #071407;
  box-shadow: inset 0 0 0 1px #39513a;
}
.game-referral-textarea-wrap textarea {
  box-sizing: border-box;
  width: 100%;
  height: 100%;
  margin: 0;
  border: 0;
  outline: 0;
  resize: none;
  padding: 4px 5px;
  background: transparent;
  color: #e8e8e8;
  font: 11px/13px Arial, Helvetica, sans-serif;
  text-shadow: none;
}
.game-referral-textarea-wrap textarea[readonly] {
  color: #cfd6cf;
}
.game-referral-banner-code {
  left: 21px;
  top: 227px;
  width: 454px;
  height: 101px;
}
.game-referral-copy-banner-button {
  z-index: 4;
  left: 148px;
  top: 337px;
  width: 200px;
}
.game-referral-mail-label {
  position: absolute;
  z-index: 3;
  width: 100px;
  color: #d6d6d6;
  font: 11px/13px Arial, Helvetica, sans-serif;
  text-shadow: 0 1px 1px #000;
}
.game-referral-label-small {
  font-size: 9px;
  line-height: 10px;
}
.game-referral-name-label {
  left: 21px;
  top: 105px;
}
.game-referral-name-input {
  left: 121px;
  top: 105px;
  width: 354px;
}
.game-referral-address-label {
  left: 21px;
  top: 144px;
}
.game-referral-address-input {
  left: 121px;
  top: 144px;
  width: 354px;
}
.game-referral-letter-label {
  left: 21px;
  top: 183px;
}
.game-referral-letter-text {
  left: 121px;
  top: 183px;
  width: 354px;
  height: 145px;
}
.game-referral-send-button {
  z-index: 4;
  left: 379px;
  top: 337px;
  width: 104px;
}
.game-referral-count-header {
  position: absolute;
  z-index: 3;
  left: 12px;
  top: 18px;
  color: #d6d6d6;
  font: 11px/13px Arial, Helvetica, sans-serif;
  text-shadow: 0 1px 1px #000;
}
.game-referral-count-inner {
  left: 166px;
  top: 12px;
  width: 100px;
  height: 26px;
}
.game-referral-count-value {
  position: absolute;
  z-index: 3;
  left: 175px;
  top: 18px;
  width: 82px;
  color: #05d318;
  font: 11px/13px Arial, Helvetica, sans-serif;
  text-align: right;
}
.game-referral-crystals-inner {
  left: 384px;
  top: 12px;
  width: 100px;
  height: 26px;
}
.game-referral-crystal-header {
  position: absolute;
  z-index: 3;
  left: 284px;
  top: 18px;
  width: 91px;
  color: #d6d6d6;
  font: 11px/13px Arial, Helvetica, sans-serif;
  text-align: right;
  text-shadow: 0 1px 1px #000;
}
.game-referral-crystal-value {
  position: absolute;
  z-index: 3;
  left: 392px;
  top: 18px;
  width: 72px;
  color: #05d318;
  font: 11px/13px Arial, Helvetica, sans-serif;
  text-align: right;
}
.game-referral-crystal-icon {
  position: absolute;
  z-index: 3;
  left: 466px;
  top: 18px;
  width: 10px;
  height: 12px;
  object-fit: contain;
}
.game-referral-stat-inner {
  left: 12px;
  top: 44px;
  width: 472px;
  height: 336px;
}
.game-referral-stat-list-header {
  position: absolute;
  z-index: 3;
  left: 16px;
  top: 48px;
  width: 466px;
  height: 20px;
  display: grid;
  grid-template-columns: 346px 120px;
  color: #d6d6d6;
  font: 11px/18px Arial, Helvetica, sans-serif;
  text-shadow: 0 1px 1px #000;
}
.game-referral-stat-header-cell {
  box-sizing: border-box;
  height: 18px;
  margin: 0;
  border: 0;
  padding: 0 8px;
  background: linear-gradient(#2a2f2b, #111811);
  color: #d6d6d6;
  font: 11px/18px Arial, Helvetica, sans-serif;
  text-align: left;
  text-shadow: 0 1px 1px #000;
  cursor: pointer;
}
.game-referral-stat-header-cell.selected {
  color: #05d318;
  background: linear-gradient(#314533, #132413);
}
.game-referral-stat-header-income {
  text-align: right;
}
.game-referral-stat-list {
  position: absolute;
  z-index: 3;
  left: 16px;
  top: 68px;
  width: 466px;
  height: 307px;
  overflow-y: auto;
  overflow-x: hidden;
  color: #d6d6d6;
  font: 11px/20px Arial, Helvetica, sans-serif;
}
.game-referral-stat-row {
  height: 20px;
  display: grid;
  grid-template-columns: 346px 120px;
  align-items: center;
  box-sizing: border-box;
  background: rgb(0 0 0 / 10%);
}
.game-referral-stat-row:hover {
  background: rgb(61 103 61 / 35%);
}
.game-referral-stat-name {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 3px;
  padding-left: 2px;
  overflow: hidden;
  white-space: nowrap;
}
.game-referral-stat-name img {
  width: 12px;
  height: 12px;
  object-fit: contain;
  flex: 0 0 auto;
}
.game-referral-stat-income {
  padding-right: 10px;
  text-align: right;
  white-space: nowrap;
}
.game-referral-stat-list::-webkit-scrollbar {
  width: 13px;
}
.game-referral-stat-list::-webkit-scrollbar-track {
  background: #173017;
  border-left: 1px solid #395839;
}
.game-referral-stat-list::-webkit-scrollbar-thumb {
  background: #366336;
  border: 1px solid #6c9a6c;
}
.game-referral-tabs {
  position: absolute;
  z-index: 5;
  left: 0;
  top: 0;
}
.game-referral-big-button {
  position: absolute;
  box-sizing: border-box;
  width: 156px;
  height: 50px;
  margin: 0;
  border: 0;
  border-radius: 0;
  outline: 0;
  padding: 0 7px;
  overflow: visible;
  background-color: transparent;
  background-image: url("./assets/ui/ui-components/bigbutton/up-center.png");
  background-position: 7px 0;
  background-repeat: repeat-x;
  background-size: 201px 50px;
  background-clip: content-box;
  color: #00cc0e;
  cursor: pointer;
  font: 12px/13px Arial, Helvetica, sans-serif;
  text-align: left;
  text-shadow: 0 1px 1px #001800;
}
.game-referral-big-button::before,
.game-referral-big-button::after {
  content: "";
  position: absolute;
  z-index: 0;
  top: 0;
  width: 7px;
  height: 50px;
  pointer-events: none;
  background-repeat: no-repeat;
}
.game-referral-big-button::before {
  left: 0;
  background-image: url("./assets/ui/ui-components/bigbutton/up-left.png");
}
.game-referral-big-button::after {
  right: 0;
  background-image: url("./assets/ui/ui-components/bigbutton/up-right.png");
}
.game-referral-big-button:hover:not(:disabled) {
  background-image: url("./assets/ui/ui-components/bigbutton/over-center.png");
}
.game-referral-big-button:hover:not(:disabled)::before {
  background-image: url("./assets/ui/ui-components/bigbutton/over-left.png");
}
.game-referral-big-button:hover:not(:disabled)::after {
  background-image: url("./assets/ui/ui-components/bigbutton/over-right.png");
}
.game-referral-big-button:active:not(:disabled) {
  background-image: url("./assets/ui/ui-components/bigbutton/down-center.png");
}
.game-referral-big-button:active:not(:disabled)::before {
  background-image: url("./assets/ui/ui-components/bigbutton/down-left.png");
}
.game-referral-big-button:active:not(:disabled)::after {
  background-image: url("./assets/ui/ui-components/bigbutton/down-right.png");
}
.game-referral-big-button:disabled,
.game-referral-big-button.selected {
  cursor: default;
  filter: none;
}
.game-referral-big-button-green {
  position: absolute;
  z-index: 1;
  left: 7px;
  top: 7px;
  width: 141px;
  height: 36px;
  background: url("./assets/ui/referral-window/big-button-green.png") left top / 141px 36px no-repeat;
  pointer-events: none;
}
.game-referral-big-button-icon {
  position: absolute;
  z-index: 2;
  left: 12px;
  top: 11px;
  object-fit: contain;
  pointer-events: none;
}
.game-referral-tab-link .game-referral-big-button-icon {
  width: 32px;
  height: 29px;
  top: 12px;
}
.game-referral-tab-banner .game-referral-big-button-icon {
  width: 30px;
  height: 29px;
  top: 12px;
}
.game-referral-tab-mail .game-referral-big-button-icon {
  width: 29px;
  height: 31px;
  top: 11px;
}
.game-referral-big-button-label {
  position: absolute;
  z-index: 2;
  left: 46px;
  top: 11px;
  width: 102px;
  color: #00cc0e;
  pointer-events: none;
  white-space: normal;
}
.game-referral-tab-mail .game-referral-big-button-label { left: 43px; }
.game-referral-tab-banner .game-referral-big-button-label { left: 44px; }
.game-referral-tab-mail {
  left: 12px;
  top: 388px;
}
.game-referral-tab-link {
  left: 173px;
  top: 388px;
}
.game-referral-tab-banner {
  left: 325px;
  top: 388px;
}
.game-referral-stat-button,
.game-referral-close-button {
  z-index: 5;
}
.game-referral-stat-button {
  left: 12px;
  top: 447px;
  width: 240px;
}
.game-referral-stat-button .game-default-button-label {
  padding-right: 15px;
  box-sizing: border-box;
}
.game-referral-stat-button-diamond {
  display: none;
  position: absolute;
  z-index: 2;
  top: 10px;
  width: 10px;
  height: 12px;
  object-fit: contain;
  pointer-events: none;
}
.game-referral-stat-button.has-crystals .game-referral-stat-button-diamond {
  display: block;
  left: 214px;
}
.game-referral-stat-button.selected:disabled,
.game-referral-stat-button:disabled {
  filter: none;
}
.game-referral-close-button {
  left: 378px;
  top: 447px;
  width: 104px;
  height: 30px;
}


.game-default-button:disabled,
.game-default-button.selected:disabled {
  cursor: default;
  filter: none;
  background-image: url("./assets/ui/tank-ui/images/496_assets.button.button_OFF_CENTER.png");
}
.game-default-button:disabled::before,
.game-default-button.selected:disabled::before {
  background-image: url("./assets/ui/tank-ui/images/497_assets.button.button_OFF_LEFT.png");
}
.game-default-button:disabled::after,
.game-default-button.selected:disabled::after {
  background-image: url("./assets/ui/tank-ui/images/498_assets.button.button_OFF_RIGHT.png");
}
.game-referral-big-button:disabled,
.game-referral-big-button.selected {
  cursor: default;
  filter: none;
  background-image: url("./assets/ui/tank-ui/images/468_assets.button.bigbutton_OFF_CENTER.png");
}
.game-referral-big-button:disabled::before,
.game-referral-big-button.selected::before {
  background-image: url("./assets/ui/tank-ui/images/467_assets.button.bigbutton_OFF_LEFT.png");
}
.game-referral-big-button:disabled::after,
.game-referral-big-button.selected::after {
  background-image: url("./assets/ui/tank-ui/images/466_assets.button.bigbutton_OFF_RIGHT.png");
}
.game-referral-stat-button .game-default-button-label {
  padding-right: 19px;
}
.game-referral-stat-button.has-crystals .game-referral-stat-button-diamond {
  display: block;
  left: 214px;
}
.game-referral-stat-list-header,
.game-referral-stat-row {
  display: grid;
  grid-template-columns: 344px 117px;
  column-gap: 2px;
  width: 466px;
}
.game-referral-stat-list-header {
  height: 20px;
  color: #0d220d;
  text-shadow: none;
}
.game-referral-stat-header-cell,
.game-referral-stat-cell {
  position: relative;
  box-sizing: border-box;
  height: 18px;
  margin: 0;
  border: 0;
  border-radius: 0;
  overflow: hidden;
  background-color: transparent !important;
  background-repeat: no-repeat;
  box-shadow: none;
}
.game-referral-stat-header-cell {
  padding: 0 8px;
  color: #0d220d !important;
  font: 11px/18px Arial, Helvetica, sans-serif;
  text-shadow: none;
  cursor: pointer;
  background-image:
    url("./assets/ui/referral-window/stat/header-tl.png"),
    url("./assets/ui/referral-window/stat/header-tr.png"),
    url("./assets/ui/referral-window/stat/header-br.png"),
    url("./assets/ui/referral-window/stat/header-bl.png"),
    linear-gradient(#59ff32, #59ff32),
    linear-gradient(#59ff32, #59ff32),
    linear-gradient(#59ff32, #59ff32);
  background-position:
    left top, right top, right bottom, left bottom,
    4px 0, left 4px, right 4px;
  background-size:
    4px 4px, 4px 4px, 4px 4px, 4px 4px,
    calc(100% - 8px) 100%, 4px calc(100% - 8px), 4px calc(100% - 8px);
}
.game-referral-stat-header-cell.selected {
  color: #0d220d !important;
  background-color: transparent !important;
}
.game-referral-stat-header-income {
  text-align: right;
}
.game-referral-stat-list {
  top: 68px;
  width: 466px;
  padding: 0;
  background: transparent;
}
.game-referral-stat-row {
  height: 20px;
  align-items: start;
  background: transparent !important;
}
.game-referral-stat-row:hover {
  background: transparent !important;
}
.game-referral-stat-cell {
  display: flex;
  align-items: center;
  color: #ffffff;
  font: 11px/18px Arial, Helvetica, sans-serif;
  text-shadow: 0 1px 1px #001900;
}
.game-referral-stat-name {
  min-width: 0;
  gap: 2px;
  padding-left: 2px;
  white-space: nowrap;
}
.game-referral-stat-income {
  justify-content: flex-end;
  padding-right: 10px;
  text-align: right;
  white-space: nowrap;
}
.game-referral-stat-row .game-referral-stat-cell {
  background-image:
    url("./assets/ui/referral-window/stat/normal-tl.png"),
    url("./assets/ui/referral-window/stat/normal-tr.png"),
    url("./assets/ui/referral-window/stat/normal-br.png"),
    url("./assets/ui/referral-window/stat/normal-bl.png"),
    linear-gradient(#084a00, #084a00),
    linear-gradient(#084a00, #084a00),
    linear-gradient(#084a00, #084a00);
  background-position:
    left top, right top, right bottom, left bottom,
    4px 0, left 4px, right 4px;
  background-size:
    4px 4px, 4px 4px, 4px 4px, 4px 4px,
    calc(100% - 8px) 100%, 4px calc(100% - 8px), 4px calc(100% - 8px);
}
.game-referral-stat-list.sort-friend .game-referral-stat-row .game-referral-stat-name,
.game-referral-stat-list.sort-income .game-referral-stat-row .game-referral-stat-income {
  background-image:
    url("./assets/ui/referral-window/stat/normal-active-tl.png"),
    url("./assets/ui/referral-window/stat/normal-active-tr.png"),
    url("./assets/ui/referral-window/stat/normal-active-br.png"),
    url("./assets/ui/referral-window/stat/normal-active-bl.png"),
    linear-gradient(#0d7500, #0d7500),
    linear-gradient(#0d7500, #0d7500),
    linear-gradient(#0d7500, #0d7500);
}
.game-referral-stat-row:hover .game-referral-stat-cell {
  background-image:
    url("./assets/ui/referral-window/stat/selected-tl.png"),
    url("./assets/ui/referral-window/stat/selected-tr.png"),
    url("./assets/ui/referral-window/stat/selected-br.png"),
    url("./assets/ui/referral-window/stat/selected-bl.png"),
    linear-gradient(#084a00, #084a00),
    linear-gradient(#084a00, #084a00),
    linear-gradient(#084a00, #084a00);
}
.game-referral-stat-list.sort-friend .game-referral-stat-row:hover .game-referral-stat-name,
.game-referral-stat-list.sort-income .game-referral-stat-row:hover .game-referral-stat-income {
  background-image:
    url("./assets/ui/referral-window/stat/selected-active-tl.png"),
    url("./assets/ui/referral-window/stat/selected-active-tr.png"),
    url("./assets/ui/referral-window/stat/selected-active-br.png"),
    url("./assets/ui/referral-window/stat/selected-active-bl.png"),
    linear-gradient(#0d7500, #0d7500),
    linear-gradient(#0d7500, #0d7500),
    linear-gradient(#0d7500, #0d7500);
}
.game-referral-stat-name img {
  width: 13px;
  height: 13px;
  flex: 0 0 13px;
  margin: 2px 0 0 0;
  object-fit: contain;
  image-rendering: auto;
}


.topbar nav .referral-button:disabled,
.topbar nav .referral-button.is-window-open {
  cursor: default;
  background-image: url("./assets/ui/mainpanel/referral/1.png");
}
.topbar nav .referral-button:disabled:hover,
.topbar nav .referral-button.is-window-open:hover,
.topbar nav .referral-button:disabled:active,
.topbar nav .referral-button.is-window-open:active {
  top: 0;
  background-image: url("./assets/ui/mainpanel/referral/1.png");
}


.game-referral-stat-list-header {
  grid-template-columns: 344px 117px !important;
  column-gap: 2px !important;
  width: 466px !important;
  height: 20px !important;
  pointer-events: auto;
}
.game-referral-stat-header-cell,
.game-referral-stat-header-cell.selected,
.game-referral-stat-header-cell:hover,
.game-referral-stat-header-cell:active,
.game-referral-stat-list-header.sort-friend .game-referral-stat-header-cell,
.game-referral-stat-list-header.sort-income .game-referral-stat-header-cell {
  box-sizing: border-box !important;
  height: 18px !important;
  margin: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  padding: 0 8px !important;
  overflow: hidden !important;
  background-color: transparent !important;
  background-image:
    url("./assets/ui/referral-window/stat/header-tl.png"),
    url("./assets/ui/referral-window/stat/header-tr.png"),
    url("./assets/ui/referral-window/stat/header-br.png"),
    url("./assets/ui/referral-window/stat/header-bl.png"),
    linear-gradient(#59ff32, #59ff32),
    linear-gradient(#59ff32, #59ff32),
    linear-gradient(#59ff32, #59ff32) !important;
  background-position:
    left top, right top, right bottom, left bottom,
    4px 0, left 4px, right 4px !important;
  background-repeat:
    no-repeat, no-repeat, no-repeat, no-repeat,
    repeat-x, repeat-y, repeat-y !important;
  background-size:
    4px 4px, 4px 4px, 4px 4px, 4px 4px,
    calc(100% - 8px) 18px, 4px 10px, 4px 10px !important;
  color: #0d220d !important;
  font: 11px/18px Arial, Helvetica, sans-serif !important;
  text-shadow: none !important;
  box-shadow: none !important;
  filter: none !important;
  cursor: pointer;
}
.game-referral-stat-header-friend { text-align: left !important; }
.game-referral-stat-header-income { text-align: right !important; }
.game-referral-stat-row,
.game-referral-stat-row:hover {
  grid-template-columns: 344px 117px !important;
  column-gap: 2px !important;
  width: 466px !important;
  height: 20px !important;
  background: transparent !important;
}
.game-referral-stat-row .game-referral-stat-cell,
.game-referral-stat-row:hover .game-referral-stat-cell {
  background-color: transparent !important;
  background-image:
    url("./assets/ui/referral-window/stat/normal-tl.png"),
    url("./assets/ui/referral-window/stat/normal-tr.png"),
    url("./assets/ui/referral-window/stat/normal-br.png"),
    url("./assets/ui/referral-window/stat/normal-bl.png"),
    linear-gradient(#084b00, #084b00),
    linear-gradient(#084b00, #084b00),
    linear-gradient(#084b00, #084b00) !important;
  background-position:
    left top, right top, right bottom, left bottom,
    4px 0, left 4px, right 4px !important;
  background-repeat:
    no-repeat, no-repeat, no-repeat, no-repeat,
    repeat-x, repeat-y, repeat-y !important;
  background-size:
    4px 4px, 4px 4px, 4px 4px, 4px 4px,
    calc(100% - 8px) 18px, 4px 10px, 4px 10px !important;
  color: #fff !important;
  text-shadow: 0 1px 1px #001900 !important;
}
.game-referral-stat-list.sort-friend .game-referral-stat-row .game-referral-stat-name,
.game-referral-stat-list.sort-income .game-referral-stat-row .game-referral-stat-income,
.game-referral-stat-list.sort-friend .game-referral-stat-row:hover .game-referral-stat-name,
.game-referral-stat-list.sort-income .game-referral-stat-row:hover .game-referral-stat-income {
  background-image:
    url("./assets/ui/referral-window/stat/normal-active-tl.png"),
    url("./assets/ui/referral-window/stat/normal-active-tr.png"),
    url("./assets/ui/referral-window/stat/normal-active-br.png"),
    url("./assets/ui/referral-window/stat/normal-active-bl.png"),
    linear-gradient(#0d7500, #0d7500),
    linear-gradient(#0d7500, #0d7500),
    linear-gradient(#0d7500, #0d7500) !important;
}
.game-referral-stat-row .game-referral-stat-name img {
  width: 13px !important;
  height: 13px !important;
  flex: 0 0 13px !important;
  margin: 2px 0 0 0 !important;
  object-fit: contain;
  image-rendering: auto;
}


.game-referral-stat-button {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 5px !important;
}
.game-referral-stat-button .game-default-button-label {
  display: inline-block !important;
  width: auto !important;
  max-width: calc(100% - 28px) !important;
  height: 30px !important;
  padding: 0 !important;
  flex: 0 1 auto !important;
  line-height: 30px !important;
  text-align: center !important;
}
.game-referral-stat-button.has-crystals .game-referral-stat-button-diamond {
  position: relative !important;
  left: auto !important;
  top: auto !important;
  display: block !important;
  width: 10px !important;
  height: 12px !important;
  margin: 0 !important;
  flex: 0 0 10px !important;
  object-fit: contain !important;
}
.game-referral-stat-button:active:not(:disabled) .game-referral-stat-button-diamond {
  transform: translateY(1px);
}


.game-referral-stat-list-header .game-referral-stat-header-cell,
.game-referral-stat-list-header .game-referral-stat-header-cell.selected,
.game-referral-stat-list-header .game-referral-stat-header-cell:hover,
.game-referral-stat-list-header .game-referral-stat-header-cell:active {
  border-radius: 4px !important;
  overflow: hidden !important;
  clip-path: inset(0 round 4px) !important;
  background-clip: border-box !important;
}


.game-referral-stat-list-header .game-referral-stat-header-cell,
.game-referral-stat-list-header .game-referral-stat-header-cell.selected,
.game-referral-stat-list-header .game-referral-stat-header-cell:hover,
.game-referral-stat-list-header .game-referral-stat-header-cell:active,
.game-referral-stat-row .game-referral-stat-cell,
.game-referral-stat-row:hover .game-referral-stat-cell,
.game-referral-stat-list.sort-friend .game-referral-stat-row .game-referral-stat-name,
.game-referral-stat-list.sort-income .game-referral-stat-row .game-referral-stat-income,
.game-referral-stat-list.sort-friend .game-referral-stat-row:hover .game-referral-stat-name,
.game-referral-stat-list.sort-income .game-referral-stat-row:hover .game-referral-stat-income {
  border-radius: 4px !important;
  overflow: hidden !important;
  clip-path: inset(0 round 4px) !important;
  background-clip: border-box !important;
}


/* 2026-06-28: shift profile/crystals/buy left together to reserve one wide button slot between Buy and Battles.
   No Friends button is added here; this only creates the 93px place for it. */

/* XP-track end is shifted left by the same 93px as crystals and Buy. */
.topbar .profile {
  width: calc(100% - 697px) !important;
}

/* Crystals block is shifted left by 93px and joined to the XP-track connector.
   crystal-start.png is not used; the left side is the xp-track connector. */
.topbar .crystals {
    right: 555px !important;
    background-image: url(./assets/ui/mainpanel/indicators/exact/crystal-right.png), url(./assets/ui/mainpanel/indicators/exact/crystal-center.png) !important;
    background-position: 64px 0, 0 0 !important;
    background-size: 48px 29px, 73px 29px !important;
    background-repeat: no-repeat !important;
}

/* Increase nav width by 93px.
   Buy stays at left:0 inside nav, so it moves left.
   Other buttons get +93px left offsets so their screen positions stay as before,
   leaving a clean wide-button slot between Buy and Battles. */
.topbar nav {
  width: 549px !important;
}

.topbar nav .buy-button {
  left: 0 !important;
}

.topbar nav button[data-view="battles"] {
  left: 178px !important;
}

.topbar nav button[data-view="garage"]:not(.buy-button) {
  left: 271px !important;
}

.topbar nav .referral-button {
  left: 375px !important;
}

.topbar nav .settings-button {
  left: 403px !important;
}

#sound-toggle {
  left: 431px !important;
}

.topbar nav .fullscreen-button {
  left: 459px !important;
}

.topbar nav .help-button {
  left: 487px !important;
}

.topbar nav .close-button {
  left: 526px !important;
}



.topbar nav .friends-button {
  left: 80px !important;
  top: 0 !important;
  width: 93px !important;
  min-width: 93px !important;
  height: 29px !important;
  padding: 0 !important;
  overflow: visible !important;
  border: 0 !important;
  border-radius: 0 !important;
  background-color: transparent !important;
  background-image:
    url("./assets/ui/mainpanel/wide-button/2-left.png"),
    url("./assets/ui/mainpanel/wide-button/2-right.png"),
    url("./assets/ui/mainpanel/wide-button/2-center.png") !important;
  background-position: 0 0, right 0, 6px 0 !important;
  background-repeat: no-repeat, no-repeat, no-repeat !important;
  background-size: 6px 29px, 6px 29px, calc(100% - 12px) 29px !important;
  color: transparent !important;
  font-size: 0 !important;
  line-height: 0 !important;
  text-align: left !important;
  text-indent: 0 !important;
  text-shadow: none !important;
  filter: none !important;
  cursor: pointer !important;
}

.topbar nav .friends-button:hover {
  background-image:
    url("./assets/ui/mainpanel/wide-button/3-left.png"),
    url("./assets/ui/mainpanel/wide-button/3-right.png"),
    url("./assets/ui/mainpanel/wide-button/3-center.png") !important;
}

.topbar nav .friends-button:active {
  top: 0 !important;
  background-image:
    url("./assets/ui/mainpanel/wide-button/4-left.png"),
    url("./assets/ui/mainpanel/wide-button/4-right.png"),
    url("./assets/ui/mainpanel/wide-button/4-center.png") !important;
}

.topbar nav .friends-button .panel-button-icon,
.topbar nav .friends-button .friends-button-icon {
  position: absolute !important;
  top: 3px !important;
  left: 2px !important;
  width: 25px !important;
  height: 23px !important;
  margin: 0 !important;
  padding: 0 !important;
  display: block !important;
  object-fit: contain !important;
  image-rendering: auto !important;
  pointer-events: none !important;
}

.topbar nav .friends-button span {
  position: absolute !important;
  top: 4px !important;
  left: 26px !important;
  width: 62px !important;
  height: 19px !important;
  margin: 0 !important;
  padding: 0 !important;
  color: #ededed !important;
  font-size: 12px !important;
  font-style: normal !important;
  font-weight: 400 !important;
  line-height: 19px !important;
  letter-spacing: 0 !important;
  text-align: center !important;
  text-indent: 0 !important;
  white-space: nowrap !important;
  text-shadow: 0 1px 1px rgb(0 0 0 / 70%) !important;
  pointer-events: none !important;
}

.topbar nav .friends-button:active .panel-button-icon,
.topbar nav .friends-button:active .friends-button-icon {
  top: 4px !important;
}

.topbar nav .friends-button:active span {
  top: 5px !important;
}


/* 2026-06-28: Friends window tabs and list view, ported with 3-slice button states. */
.game-friends-layer { z-index: 4920; }
.game-friends-window {
  width: 496px;
  height: 485px;
  color: #00e714;
  font: 11px/13px MTanksMyriadPro, MyriadPro, Arial, sans-serif;
  text-shadow: none;
}
.game-friends-header {
  position: absolute;
  z-index: 20;
  top: -25px;
  left: 154px;
  width: 188px;
  height: 43px;
  pointer-events: none;
}
.game-friends-header > img { position: absolute; inset: 0; width: 188px; height: 43px; display: block; }
.game-friends-header > span {
  position: absolute;
  top: 10px;
  left: 0;
  width: 188px;
  height: 18px;
  color: #d6d6d6;
  font: 12px/18px MTanksMyriadPro, MyriadPro, Arial, sans-serif;
  text-align: center;
  text-shadow: 0 1px 1px #000;
}
.game-friends-tab {
  top: 12px;
  height: 30px;
  line-height: 30px;
  font-size: 11px;
  font-weight: bold;
}
.game-friends-tab-friends { left: 12px; width: 92px; }
.game-friends-tab-sent { left: 202px; width: 135px; }
.game-friends-tab-incoming { left: 344px; width: 140px; }
.game-friends-tab.active {
  height: 29px;
  padding: 0 6px 0 4px;
  background-image: url("./assets/ui/tank-ui/images/182_assets.button.button_def_ACTIVE_CENTER.png");
  background-position: 4px 0;
  background-repeat: repeat-x;
  background-size: 18px 29px;
  background-clip: content-box;
  color: #ffffff;
  cursor: default;
}
.game-friends-tab.active::before {
  width: 4px;
  height: 29px;
  background-image: url("./assets/ui/tank-ui/images/181_assets.button.button_def_ACTIVE_LEFT.png") !important;
}
.game-friends-tab.active::after {
  width: 6px;
  height: 29px;
  background-image: url("./assets/ui/tank-ui/images/183_assets.button.button_def_ACTIVE_RIGHT.png") !important;
}
.game-friends-tab.active .game-default-button-label { height: 29px; line-height: 29px; }
.game-friends-tab.active:hover,
.game-friends-tab.active:focus-visible {
  background-image: url("./assets/ui/tank-ui/images/182_assets.button.button_def_ACTIVE_CENTER.png");
}
.game-friends-tab.active:hover::before,
.game-friends-tab.active:focus-visible::before {
  background-image: url("./assets/ui/tank-ui/images/181_assets.button.button_def_ACTIVE_LEFT.png") !important;
}
.game-friends-tab.active:hover::after,
.game-friends-tab.active:focus-visible::after {
  background-image: url("./assets/ui/tank-ui/images/183_assets.button.button_def_ACTIVE_RIGHT.png") !important;
}
.game-friends-window .game-window-inner.game-friends-inner {
  left: 12px;
  top: 50px;
  width: 472px;
  height: 388px;
}
.game-friends-list {
  position: absolute;
  inset: 4px 2px 4px 4px;
  overflow: hidden;
  color: #00e714;
}
.game-friends-list-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 6px;
  height: 20px;
  display: grid;
  grid-template-columns: 1fr 1fr 78px;
  gap: 2px;
}
.game-friends-list-header.cols-1 { grid-template-columns: 1fr; }
.game-friends-list-header > span {
  position: relative;
  height: 20px;
  padding: 1px 5px 0;
  overflow: hidden;
  background: #5bff34;
  color: #18470d;
  font: 12px/18px MTanksMyriadPro, MyriadPro, Arial, sans-serif;
  text-align: left;
  white-space: nowrap;
}
.game-friends-list-header > span:last-child { text-align: right; }
.game-friends-list-body {
  position: absolute;
  top: 20px;
  right: 0;
  bottom: 0;
  left: 0;
  overflow-x: hidden;
  overflow-y: auto;
  padding-right: 6px;
  scrollbar-color: #417c18 #071609;
  scrollbar-width: thin;
}
.game-friends-list-body::-webkit-scrollbar { width: 15px; }
.game-friends-list-body::-webkit-scrollbar-track { background: #0c2710; box-shadow: inset 0 0 0 1px #243821; }
.game-friends-list-body::-webkit-scrollbar-thumb { background: linear-gradient(90deg, #214c12, #4a861c 48%, #183d0d); border: 1px solid #6d9d35; }
.game-friends-row,
.game-friends-empty-row {
  position: relative;
  height: 20px;
  min-height: 20px;
  margin: 0;
  overflow: hidden;
  color: #00e714;
  font: 12px/18px MTanksMyriadPro, MyriadPro, Arial, sans-serif;
}
.game-friends-empty-row { padding: 1px 0 0 4px; color: #7ad571; }
.game-friends-row::before,
.game-friends-row::after,
.game-friends-row > .game-friends-user::before {
  content: "";
  position: absolute;
  top: 0;
  height: 20px;
  pointer-events: none;
}
.game-friends-row::before {
  left: 0;
  width: 5px;
  background: url("./assets/ui/tank-ui/images/53_assets.cellrenderer.battlelist.cell_normal_UP_LEFT.png") 0 0 / 5px 20px no-repeat;
}
.game-friends-row > .game-friends-user::before {
  left: 5px;
  right: 5px;
  background: url("./assets/ui/tank-ui/images/54_assets.cellrenderer.battlelist.cell_normal_UP_CENTER.png") 0 0 / 4px 20px repeat-x;
}
.game-friends-row::after {
  right: 0;
  width: 5px;
  background: url("./assets/ui/tank-ui/images/52_assets.cellrenderer.battlelist.cell_normal_UP_RIGHT.png") 0 0 / 5px 20px no-repeat;
}
.game-friends-row.offline::before { background-image: url("./assets/ui/tank-ui/images/47_assets.cellrenderer.battlelist.cell_off_UP_LEFT.png"); }
.game-friends-row.offline > .game-friends-user::before { background-image: url("./assets/ui/tank-ui/images/48_assets.cellrenderer.battlelist.cell_off_UP_CENTER.png"); }
.game-friends-row.offline::after { background-image: url("./assets/ui/tank-ui/images/46_assets.cellrenderer.battlelist.cell_off_UP_RIGHT.png"); }
.game-friends-row:hover::before { background-image: url("./assets/ui/friends-window/renderer/background/f/1.png"); }
.game-friends-row:hover > .game-friends-user::before { background-image: url("./assets/ui/friends-window/renderer/background/f/2.png"); }
.game-friends-row:hover::after { background-image: url("./assets/ui/friends-window/renderer/background/f/3.png"); }
.game-friends-row.offline:hover::before { background-image: url("./assets/ui/friends-window/renderer/background/u/1.png"); }
.game-friends-row.offline:hover > .game-friends-user::before { background-image: url("./assets/ui/friends-window/renderer/background/u/2.png"); }
.game-friends-row.offline:hover::after { background-image: url("./assets/ui/friends-window/renderer/background/u/3.png"); }
.game-friends-user {
  position: absolute;
  z-index: 1;
  top: 0;
  left: 0;
  width: calc(100% - 260px);
  height: 20px;
  display: block;
  overflow: hidden;
  color: #00e714;
}
.game-friends-row.incoming .game-friends-user,
.game-friends-row.sent .game-friends-user { width: calc(100% - 58px); }
.game-friends-user > img {
  position: relative;
  z-index: 2;
  width: 13px;
  height: 13px;
  margin: 2px 2px 0 2px;
  vertical-align: -3px;
  object-fit: contain;
}
.game-friends-user > b { position: relative; z-index: 2; color: #00e714; font-weight: normal; }
.game-friends-row.offline .game-friends-user > b { color: #b2b2b2; }
.game-friends-new-label {
  position: absolute;
  z-index: 2;
  top: 1px;
  left: calc(100% - 259px);
  width: 60px;
  height: 18px;
  overflow: hidden;
  color: #00e714;
  font: 12px/18px MTanksMyriadPro, MyriadPro, Arial, sans-serif;
}
.game-friends-row.incoming .game-friends-new-label { right: 54px; left: auto; width: 64px; }
.game-friends-battle-link {
  position: absolute;
  z-index: 2;
  top: 0;
  left: calc(50% - 7px);
  width: calc(50% - 84px);
  height: 18px;
  border: 0;
  padding: 0;
  overflow: hidden;
  background: transparent;
  color: #00e714;
  font: 12px/18px MTanksMyriadPro, MyriadPro, Arial, sans-serif;
  text-align: left;
}
.game-friends-battle-link:not(:disabled) { text-decoration: underline; cursor: pointer; }
.game-friends-server {
  position: absolute;
  z-index: 2;
  top: 1px;
  right: 26px;
  width: 65px;
  height: 18px;
  color: #00e714;
  font: 12px/18px MTanksMyriadPro, MyriadPro, Arial, sans-serif;
  text-align: right;
}
.game-friends-action {
  position: absolute;
  z-index: 3;
  top: 1px;
  width: 22px;
  height: 18px;
  border: 0;
  padding: 0;
  opacity: 0;
  background-color: transparent;
  background-position: center;
  background-repeat: no-repeat;
  cursor: pointer;
}
.game-friends-row:hover .game-friends-action { opacity: 1; }
.game-friends-row.accepted .game-friends-action.no,
.game-friends-row.sent .game-friends-action.no { right: 6px; width: 18px; background-image: url("./assets/ui/friends-window/fa/2.png"); }
.game-friends-row.incoming .game-friends-action.yes { right: 25px; background-image: url("./assets/ui/friends-window/fa/1.png"); }
.game-friends-row.incoming .game-friends-action.no { right: 6px; width: 18px; background-image: url("./assets/ui/friends-window/fa/2.png"); }
.game-friends-add-request { position: absolute; z-index: 4; left: 0; top: 443px; width: 355px; height: 30px; }
.game-friends-search-input { left: 12px; top: 0; width: 235px; }
.game-friends-search-placeholder {
  position: absolute;
  z-index: 6;
  top: 7px;
  left: 15px;
  height: 16px;
  color: #8b8b8b;
  font: 12px/16px MTanksMyriadPro, MyriadPro, Arial, sans-serif;
  pointer-events: none;
}
.game-friends-check { left: 211px; top: 15px; }
.game-friends-send-request { left: 250px; top: 0; width: 100px; }
.game-friends-reject-all { left: 278px; top: 443px; width: 100px; }
.game-friends-close { left: 384px; top: 443px; width: 100px; }
.game-friends-request-counter {
  --digits: 1;
  position: absolute;
  top: -6px;
  right: -21px;
  width: calc(18px + (var(--digits) - 1) * 6px);
  height: 18px;
  overflow: visible;
  color: #fff;
  font: 10px/18px Arial, sans-serif;
  text-align: center;
  text-shadow: 0 1px #000;
  pointer-events: none;
}
.game-friends-request-counter > i,
.game-friends-request-counter > em,
.game-friends-request-counter > b { position: absolute; top: 0; height: 18px; display: block; }
.game-friends-request-counter > i { left: 0; width: 9px; background: url("./assets/ui/friends-window/request-counter/1.png") 0 0 / 9px 18px no-repeat; }
.game-friends-request-counter > em { left: 9px; right: 9px; background: url("./assets/ui/friends-window/request-counter/2.png") 0 0 / 1px 18px repeat-x; }
.game-friends-request-counter > b { z-index: 2; left: 0; right: 0; font-weight: normal; }
.game-friends-request-counter::after { content: ""; position: absolute; top: 0; right: 0; width: 9px; height: 18px; background: url("./assets/ui/friends-window/request-counter/3.png") 0 0 / 9px 18px no-repeat; }
.topbar nav .friends-button.is-window-open,
.topbar nav .friends-button[aria-pressed="true"] {
  top: 0 !important;
  cursor: default !important;
  background-image:
    url("./assets/ui/mainpanel/wide-button/2-left.png"),
    url("./assets/ui/mainpanel/wide-button/2-right.png"),
    url("./assets/ui/mainpanel/wide-button/2-center.png") !important;
  background-position: 0 0, right 0, 6px 0 !important;
}
.topbar nav .friends-button.is-window-open:hover,
.topbar nav .friends-button[aria-pressed="true"]:hover,
.topbar nav .friends-button.is-window-open:active,
.topbar nav .friends-button[aria-pressed="true"]:active {
  top: 0 !important;
  background-image:
    url("./assets/ui/mainpanel/wide-button/2-left.png"),
    url("./assets/ui/mainpanel/wide-button/2-right.png"),
    url("./assets/ui/mainpanel/wide-button/2-center.png") !important;
  background-position: 0 0, right 0, 6px 0 !important;
}
.topbar nav .friends-button.is-window-open .friends-button-icon,
.topbar nav .friends-button[aria-pressed="true"] .friends-button-icon { top: 3px !important; }
.topbar nav .friends-button.is-window-open span,
.topbar nav .friends-button[aria-pressed="true"] span { top: 4px !important; }


/* 2026-06-28: use the real FriendsWindowStateBigButton active/down 3-slice sprites.
   No custom active buttons here: left, center and right are the exact exported assets. */
.game-friends-tab.active,
.game-friends-tab.active:hover,
.game-friends-tab.active:focus-visible,
.game-friends-tab.active:active {
  height: 31px !important;
  padding: 0 7px !important;
  background-image: url("./assets/ui/friends-window/state-big-active/center.png") !important;
  background-position: 7px 0 !important;
  background-repeat: repeat-x !important;
  background-size: 12px 31px !important;
  background-clip: content-box !important;
  color: #ffffff !important;
  cursor: default !important;
  filter: none !important;
}

.game-friends-tab.active::before,
.game-friends-tab.active:hover::before,
.game-friends-tab.active:focus-visible::before,
.game-friends-tab.active:active::before {
  width: 7px !important;
  height: 31px !important;
  background-image: url("./assets/ui/friends-window/state-big-active/left.png") !important;
  background-position: 0 0 !important;
  background-size: 7px 31px !important;
}

.game-friends-tab.active::after,
.game-friends-tab.active:hover::after,
.game-friends-tab.active:focus-visible::after,
.game-friends-tab.active:active::after {
  width: 7px !important;
  height: 31px !important;
  background-image: url("./assets/ui/friends-window/state-big-active/right.png") !important;
  background-position: 0 0 !important;
  background-size: 7px 31px !important;
}

.game-friends-tab.active .game-default-button-label,
.game-friends-tab.active:hover .game-default-button-label,
.game-friends-tab.active:focus-visible .game-default-button-label,
.game-friends-tab.active:active .game-default-button-label {
  height: 31px !important;
  line-height: 31px !important;
  transform: none !important;
}


/* 2026-06-28: Friends tab uses only two visible columns: "Имя" and "Битва".
   Server packets/data are still kept in JS, but the server column is not rendered. */
.game-friends-list-header.cols-2 {
  grid-template-columns: 1fr 1fr !important;
}

.game-friends-row.accepted .game-friends-user {
  width: calc(50% - 7px) !important;
}

.game-friends-row.accepted .game-friends-new-label {
  left: calc(50% - 68px) !important;
  right: auto !important;
  width: 62px !important;
}

.game-friends-row.accepted .game-friends-battle-link {
  left: calc(50% + 2px) !important;
  width: calc(50% - 34px) !important;
}

.game-friends-server {
  display: none !important;
}




/* 2026-06-28: keep USER style.css MainPanel geometry.
   Only the button backgrounds are corrected:
   - Друзья / Битвы / Гараж use 3 sprites: left / center / right.
   - center is the 81px ui-rendered center for a 93px button, not a tiny stretched tile.
   - icons are separate layers, never baked into the background.
*/
.topbar nav .friends-button {
  background-image:
    url("./assets/ui/mainpanel/wide-button/2-left.png"),
    url("./assets/ui/mainpanel/wide-button/2-right.png"),
    url("./assets/ui/mainpanel/wide-button/2-center.png") !important;
  background-position: 0 0, right 0, 6px 0 !important;
  background-repeat: no-repeat, no-repeat, no-repeat !important;
  background-size: 6px 29px, 6px 29px, 81px 29px !important;
}

.topbar nav .friends-button:hover:not(.is-window-open):not([aria-pressed="true"]) {
  background-image:
    url("./assets/ui/mainpanel/wide-button/3-left.png"),
    url("./assets/ui/mainpanel/wide-button/3-right.png"),
    url("./assets/ui/mainpanel/wide-button/3-center.png") !important;
  background-position: 0 0, right 0, 6px 0 !important;
  background-repeat: no-repeat, no-repeat, no-repeat !important;
  background-size: 6px 29px, 6px 29px, 81px 29px !important;
}

.topbar nav .friends-button:active:not(.is-window-open):not([aria-pressed="true"]) {
  top: 0 !important;
  background-image:
    url("./assets/ui/mainpanel/wide-button/4-left.png"),
    url("./assets/ui/mainpanel/wide-button/4-right.png"),
    url("./assets/ui/mainpanel/wide-button/4-center.png") !important;
  background-position: 0 0, right 0, 6px 0 !important;
  background-repeat: no-repeat, no-repeat, no-repeat !important;
  background-size: 6px 29px, 6px 29px, 81px 29px !important;
}

.topbar nav .friends-button.active,
.topbar nav .friends-button.is-window-open,
.topbar nav .friends-button[aria-pressed="true"],
.topbar nav .friends-button.active:hover,
.topbar nav .friends-button.is-window-open:hover,
.topbar nav .friends-button[aria-pressed="true"]:hover,
.topbar nav .friends-button.active:active,
.topbar nav .friends-button.is-window-open:active,
.topbar nav .friends-button[aria-pressed="true"]:active {
  top: 0 !important;
  cursor: default !important;
  background-image:
    url("./assets/ui/mainpanel/wide-button/2-left.png"),
    url("./assets/ui/mainpanel/wide-button/2-right.png"),
    url("./assets/ui/mainpanel/wide-button/2-center.png") !important;
  background-position: 0 0, right 0, 6px 0 !important;
  background-repeat: no-repeat, no-repeat, no-repeat !important;
  background-size: 6px 29px, 6px 29px, 81px 29px !important;
  filter: none !important;
}

.topbar nav button[data-view="battles"],
.topbar nav button[data-view="garage"]:not(.buy-button) {
  background-image:
    url("./assets/ui/mainpanel/wide-button/2-left.png"),
    url("./assets/ui/mainpanel/wide-button/2-right.png"),
    url("./assets/ui/mainpanel/wide-button/2-center.png") !important;
  background-position: 0 0, right 0, 6px 0 !important;
  background-repeat: no-repeat, no-repeat, no-repeat !important;
  background-size: 6px 29px, 6px 29px, 81px 29px !important;
}

.topbar nav button[data-view="battles"]:hover:not(.active),
.topbar nav button[data-view="garage"]:not(.buy-button):hover:not(.active) {
  background-image:
    url("./assets/ui/mainpanel/wide-button/3-left.png"),
    url("./assets/ui/mainpanel/wide-button/3-right.png"),
    url("./assets/ui/mainpanel/wide-button/3-center.png") !important;
  background-position: 0 0, right 0, 6px 0 !important;
  background-repeat: no-repeat, no-repeat, no-repeat !important;
  background-size: 6px 29px, 6px 29px, 81px 29px !important;
}

.topbar nav button[data-view="battles"]:active:not(.active),
.topbar nav button[data-view="garage"]:not(.buy-button):active:not(.active) {
  top: 0 !important;
  background-image:
    url("./assets/ui/mainpanel/wide-button/4-left.png"),
    url("./assets/ui/mainpanel/wide-button/4-right.png"),
    url("./assets/ui/mainpanel/wide-button/4-center.png") !important;
  background-position: 0 0, right 0, 6px 0 !important;
  background-repeat: no-repeat, no-repeat, no-repeat !important;
  background-size: 6px 29px, 6px 29px, 81px 29px !important;
}

.topbar nav button[data-view="battles"].active,
.topbar nav button[data-view="garage"]:not(.buy-button).active {
  cursor: default !important;
  background-image:
    url("./assets/ui/mainpanel/wide-button/1-left.png"),
    url("./assets/ui/mainpanel/wide-button/1-right.png"),
    url("./assets/ui/mainpanel/wide-button/1-center.png") !important;
  background-position: 0 0, right 0, 6px 0 !important;
  background-repeat: no-repeat, no-repeat, no-repeat !important;
  background-size: 6px 29px, 6px 29px, 81px 29px !important;
}

.topbar nav button[data-view="battles"]::before,
.topbar nav button[data-view="garage"]:not(.buy-button)::before {
  content: "";
  position: absolute;
  z-index: 2;
  left: 3px;
  top: 3px;
  width: 23px;
  height: 23px;
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
  pointer-events: none;
}

.topbar nav button[data-view="battles"]::before {
  background-image: url("./assets/ui/mainpanel/battles/icon-only.png");
}

.topbar nav button[data-view="garage"]:not(.buy-button)::before {
  background-image: url("./assets/ui/mainpanel/garage/icon-only.png");
}

.topbar nav button[data-view="battles"]:active:not(.active)::before,
.topbar nav button[data-view="garage"]:not(.buy-button):active:not(.active)::before {
  top: 4px;
}

/* The small invite-friends/referral button must stay gray while its window is open. */
.topbar nav .panel-small.referral-button.active,
.topbar nav .panel-small.referral-button.is-window-open,
.topbar nav .panel-small.referral-button[aria-pressed="true"],
.topbar nav .panel-small.referral-button:disabled,
.topbar nav .panel-small.referral-button.active:hover,
.topbar nav .panel-small.referral-button.is-window-open:hover,
.topbar nav .panel-small.referral-button[aria-pressed="true"]:hover,
.topbar nav .panel-small.referral-button:disabled:hover,
.topbar nav .panel-small.referral-button.active:active,
.topbar nav .panel-small.referral-button.is-window-open:active,
.topbar nav .panel-small.referral-button[aria-pressed="true"]:active,
.topbar nav .panel-small.referral-button:disabled:active {
  top: 0 !important;
  cursor: default !important;
  opacity: 1 !important;
  filter: none !important;
  background-image: url("./assets/ui/mainpanel/referral/2.png") !important;
  background-position: 0 0 !important;
  background-size: 28px 29px !important;
  background-repeat: no-repeat !important;
}


/* 2026-06-28: Friends header real 3-sprite composition from battle-list selected.
   Not a generated green block and not one center background over the whole cell:
   each header cell has separate left / center / right display objects. */
.game-friends-list.accepted .game-friends-list-header {
  top: 0 !important;
  left: 0 !important;
  right: 6px !important;
  height: 20px !important;
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  gap: 2px !important;
  background: none !important;
}

.game-friends-list-header > span,
.game-friends-list-header .game-friends-header-cell {
  position: relative !important;
  height: 20px !important;
  min-height: 20px !important;
  padding: 0 !important;
  overflow: hidden !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: none !important;
  box-shadow: none !important;
  color: transparent !important;
  font-size: 0 !important;
  text-shadow: none !important;
}

.game-friends-header-left,
.game-friends-header-center,
.game-friends-header-right {
  position: absolute !important;
  z-index: 0 !important;
  top: 0 !important;
  height: 20px !important;
  display: block !important;
  pointer-events: none !important;
  background-position: 0 0 !important;
  background-repeat: no-repeat !important;
}

.game-friends-header-left {
  left: 0 !important;
  width: 5px !important;
  background-image: url("./assets/ui/tank-ui/images/56_assets.cellrenderer.battlelist.cell_normal_SELECTED_LEFT.png") !important;
  background-size: 5px 20px !important;
}

.game-friends-header-center {
  left: 5px !important;
  right: 5px !important;
  width: auto !important;
  background-image: url("./assets/ui/tank-ui/images/57_assets.cellrenderer.battlelist.cell_normal_SELECTED_CENTER.png") !important;
  background-repeat: repeat-x !important;
  background-size: 4px 20px !important;
}

.game-friends-header-right {
  right: 0 !important;
  width: 5px !important;
  background-image: url("./assets/ui/tank-ui/images/55_assets.cellrenderer.battlelist.cell_normal_SELECTED_RIGHT.png") !important;
  background-size: 5px 20px !important;
}

.game-friends-header-label {
  position: absolute !important;
  z-index: 1 !important;
  top: 1px !important;
  left: 4px !important;
  right: 4px !important;
  height: 18px !important;
  display: block !important;
  overflow: hidden !important;
  color: #0d220d !important;
  font: 11px/18px MTanksMyriadPro, MyriadPro, Arial, sans-serif !important;
  font-weight: 400 !important;
  text-align: left !important;
  white-space: nowrap !important;
  text-shadow: none !important;
}

/* Incoming and outgoing request lists do not have the "Имя" header in the original. */
.game-friends-list.incoming .game-friends-list-header,
.game-friends-list.sent .game-friends-list-header {
  display: none !important;
}

.game-friends-list-body.no-header,
.game-friends-list-body.incoming.no-header,
.game-friends-list-body.sent.no-header {
  top: 0 !important;
}

/* Accepted rows keep two separate column backgrounds. */
.game-friends-row.accepted::before,
.game-friends-row.accepted::after,
.game-friends-row.accepted > .game-friends-user::before {
  content: none !important;
  display: none !important;
}

.game-friends-row.accepted .game-friends-user,
.game-friends-row.accepted .game-friends-battle-link {
  background-color: transparent !important;
  background-position: 0 0, right 0, 5px 0 !important;
  background-repeat: no-repeat, no-repeat, repeat-x !important;
  background-size: 5px 20px, 5px 20px, 4px 20px !important;
}

.game-friends-row.accepted.online .game-friends-user,
.game-friends-row.accepted.online .game-friends-battle-link {
  background-image:
    url("./assets/ui/tank-ui/images/53_assets.cellrenderer.battlelist.cell_normal_UP_LEFT.png"),
    url("./assets/ui/tank-ui/images/52_assets.cellrenderer.battlelist.cell_normal_UP_RIGHT.png"),
    url("./assets/ui/tank-ui/images/54_assets.cellrenderer.battlelist.cell_normal_UP_CENTER.png") !important;
}

.game-friends-row.accepted.offline .game-friends-user,
.game-friends-row.accepted.offline .game-friends-battle-link {
  background-image:
    url("./assets/ui/tank-ui/images/47_assets.cellrenderer.battlelist.cell_off_UP_LEFT.png"),
    url("./assets/ui/tank-ui/images/46_assets.cellrenderer.battlelist.cell_off_UP_RIGHT.png"),
    url("./assets/ui/tank-ui/images/48_assets.cellrenderer.battlelist.cell_off_UP_CENTER.png") !important;
}

.game-friends-row.accepted.online:hover .game-friends-user,
.game-friends-row.accepted.online:hover .game-friends-battle-link {
  background-image:
    url("./assets/ui/tank-ui/images/56_assets.cellrenderer.battlelist.cell_normal_SELECTED_LEFT.png"),
    url("./assets/ui/tank-ui/images/55_assets.cellrenderer.battlelist.cell_normal_SELECTED_RIGHT.png"),
    url("./assets/ui/tank-ui/images/57_assets.cellrenderer.battlelist.cell_normal_SELECTED_CENTER.png") !important;
}

.game-friends-row.accepted.offline:hover .game-friends-user,
.game-friends-row.accepted.offline:hover .game-friends-battle-link {
  background-image:
    url("./assets/ui/tank-ui/images/50_assets.cellrenderer.battlelist.cell_off_SELECTED_LEFT.png"),
    url("./assets/ui/tank-ui/images/49_assets.cellrenderer.battlelist.cell_off_SELECTED_RIGHT.png"),
    url("./assets/ui/tank-ui/images/51_assets.cellrenderer.battlelist.cell_off_SELECTED_CENTER.png") !important;
}

.game-friends-row.accepted .game-friends-user > img,
.game-friends-row.accepted .game-friends-user > b,
.game-friends-row.accepted .game-friends-battle-link {
  position: relative;
  z-index: 2;
}



.game-friends-add-request.filter-mode .game-friends-search-placeholder {
  color: #8b8b8b !important;
}

.game-friends-add-request.filter-mode .game-friends-search-input {
  width: 235px !important;
}

.game-friends-add-request.filter-mode .game-friends-check,
.game-friends-add-request.filter-mode .game-friends-send-request {
  display: none !important;
}

.game-friends-add-request.request-mode .game-friends-search-input {
  width: 235px !important;
}

.game-friends-add-request.request-mode .game-friends-check {
  display: block !important;
}

.game-friends-add-request.request-mode .game-friends-send-request {
  display: block !important;
}




.game-friends-row::before,
.game-friends-row::after,
.game-friends-row > .game-friends-user::before {
  content: none !important;
  display: none !important;
}

.game-friends-row,
.game-friends-row.accepted,
.game-friends-row.incoming,
.game-friends-row.sent {
  position: relative !important;
  height: 20px !important;
  min-height: 20px !important;
  overflow: hidden !important;
  margin: 0 !important;
  background: none !important;
}


.game-ui-friends-cell {
  position: absolute !important;
  z-index: 0 !important;
  top: 0 !important;
  height: 20px !important;
  overflow: hidden !important;
  display: block !important;
  pointer-events: none !important;
  background: none !important;
}

.game-ui-friends-cell-left,
.game-ui-friends-cell-center,
.game-ui-friends-cell-right {
  position: absolute !important;
  top: 0 !important;
  height: 20px !important;
  display: block !important;
  pointer-events: none !important;
  background-position: 0 0 !important;
}

.game-ui-friends-cell-left {
  left: 0 !important;
  z-index: 2 !important;
  width: 5px !important;
  background-repeat: no-repeat !important;
  background-size: 5px 20px !important;
}

.game-ui-friends-cell-center {
  left: 5px !important;
  right: 5px !important;
  z-index: 1 !important;
  width: auto !important;
  min-width: 0 !important;
  overflow: hidden !important;
  background-repeat: repeat-x !important;
  background-size: auto 20px !important;
}

.game-ui-friends-cell-right {
  right: 0 !important;
  z-index: 2 !important;
  width: 5px !important;
  background-repeat: no-repeat !important;
  background-size: 5px 20px !important;
}


.game-friends-row.accepted > .accepted-name-bg {
  left: 0 !important;
  width: var(--game-accepted-name-w, calc(100% - 235px)) !important;
}

.game-friends-row.accepted > .accepted-battle-bg {
  left: var(--game-accepted-battle-x, calc(100% - 233px)) !important;
  width: var(--game-accepted-battle-w, 230px) !important;
}

/* RendererBackGroundIncomingList / OutgoingList: one ButtonState cell, width=rowWidth-3. */
.game-friends-row.incoming > .incoming-bg,
.game-friends-row.sent > .sent-bg {
  left: 0 !important;
  width: var(--game-request-row-w, calc(100% - 3px)) !important;
}

/* Normal online/request skin: CellNormal s/1,2,3. */
.game-friends-row.accepted.online .game-ui-friends-cell-left,
.game-friends-row.incoming .game-ui-friends-cell-left,
.game-friends-row.sent .game-ui-friends-cell-left {
  background-image: url("./assets/ui/friends-window/ui-src/cell-normal-s/1.png") !important;
}
.game-friends-row.accepted.online .game-ui-friends-cell-center,
.game-friends-row.incoming .game-ui-friends-cell-center,
.game-friends-row.sent .game-ui-friends-cell-center {
  background-image: url("./assets/ui/friends-window/ui-src/cell-normal-s/2.png") !important;
}
.game-friends-row.accepted.online .game-ui-friends-cell-right,
.game-friends-row.incoming .game-ui-friends-cell-right,
.game-friends-row.sent .game-ui-friends-cell-right {
  background-image: url("./assets/ui/friends-window/ui-src/cell-normal-s/3.png") !important;
}

/* Normal offline accepted skin: CellUnavailable u/1,2,3. */
.game-friends-row.accepted.offline .game-ui-friends-cell-left {
  background-image: url("./assets/ui/friends-window/ui-src/cell-normal-u/1.png") !important;
}
.game-friends-row.accepted.offline .game-ui-friends-cell-center {
  background-image: url("./assets/ui/friends-window/ui-src/cell-normal-u/2.png") !important;
}
.game-friends-row.accepted.offline .game-ui-friends-cell-right {
  background-image: url("./assets/ui/friends-window/ui-src/cell-normal-u/3.png") !important;
}

/* Selected/roll-over online/request skin: FriendCellSelected f/1,2,3. */
.game-friends-row.accepted.online:hover .game-ui-friends-cell-left,
.game-friends-row.incoming:hover .game-ui-friends-cell-left,
.game-friends-row.sent:hover .game-ui-friends-cell-left,
.game-friends-row.accepted.online.selected .game-ui-friends-cell-left,
.game-friends-row.incoming.selected .game-ui-friends-cell-left,
.game-friends-row.sent.selected .game-ui-friends-cell-left {
  background-image: url("./assets/ui/friends-window/ui-src/cell-selected-f/1.png") !important;
}
.game-friends-row.accepted.online:hover .game-ui-friends-cell-center,
.game-friends-row.incoming:hover .game-ui-friends-cell-center,
.game-friends-row.sent:hover .game-ui-friends-cell-center,
.game-friends-row.accepted.online.selected .game-ui-friends-cell-center,
.game-friends-row.incoming.selected .game-ui-friends-cell-center,
.game-friends-row.sent.selected .game-ui-friends-cell-center {
  background-image: url("./assets/ui/friends-window/ui-src/cell-selected-f/2.png") !important;
}
.game-friends-row.accepted.online:hover .game-ui-friends-cell-right,
.game-friends-row.incoming:hover .game-ui-friends-cell-right,
.game-friends-row.sent:hover .game-ui-friends-cell-right,
.game-friends-row.accepted.online.selected .game-ui-friends-cell-right,
.game-friends-row.incoming.selected .game-ui-friends-cell-right,
.game-friends-row.sent.selected .game-ui-friends-cell-right {
  background-image: url("./assets/ui/friends-window/ui-src/cell-selected-f/3.png") !important;
}

/* Selected/roll-over offline accepted skin: UserOfflineCellSelected u/1,2,3. */
.game-friends-row.accepted.offline:hover .game-ui-friends-cell-left,
.game-friends-row.accepted.offline.selected .game-ui-friends-cell-left {
  background-image: url("./assets/ui/friends-window/ui-src/cell-selected-u/1.png") !important;
}
.game-friends-row.accepted.offline:hover .game-ui-friends-cell-center,
.game-friends-row.accepted.offline.selected .game-ui-friends-cell-center {
  background-image: url("./assets/ui/friends-window/ui-src/cell-selected-u/2.png") !important;
}
.game-friends-row.accepted.offline:hover .game-ui-friends-cell-right,
.game-friends-row.accepted.offline.selected .game-ui-friends-cell-right {
  background-image: url("./assets/ui/friends-window/ui-src/cell-selected-u/3.png") !important;
}

/* Text/icon layout from renderers. */
.game-friends-row.accepted .game-friends-user {
  position: absolute !important;
  z-index: 3 !important;
  top: 0 !important;
  left: 0 !important;
  width: var(--game-accepted-name-w, calc(100% - 235px)) !important;
  height: 20px !important;
  overflow: hidden !important;
  background: none !important;
}
.game-friends-row.accepted .game-friends-battle-link {
  position: absolute !important;
  z-index: 3 !important;
  top: 0 !important;
  left: var(--game-accepted-battle-x, calc(100% - 233px)) !important;
  width: var(--game-accepted-battle-w, 230px) !important;
  height: 18px !important;
  padding: 0 0 0 4px !important;
  overflow: hidden !important;
  background: none !important;
  text-align: left !important;
}

.game-friends-row.incoming .game-friends-user,
.game-friends-row.sent .game-friends-user {
  position: absolute !important;
  z-index: 3 !important;
  top: -1px !important;
  left: -3px !important;
  width: calc(100% - 58px) !important;
  height: 20px !important;
  overflow: hidden !important;
  background: none !important;
}

.game-friends-row .game-friends-user > img,
.game-friends-row .game-friends-user > b,
.game-friends-row .game-friends-battle-link,
.game-friends-row .game-friends-new-label,
.game-friends-row .game-friends-action {
  position: relative !important;
  z-index: 4 !important;
}

/* FriendsAcceptedListRenderer: isNewLabel.x=223-label.width; remove.x=223-remove.width. */
.game-friends-row.accepted .game-friends-new-label {
  position: absolute !important;
  z-index: 4 !important;
  top: 0 !important;
  left: var(--game-accepted-new-x, 163px) !important;
  right: auto !important;
  width: 60px !important;
  height: 18px !important;
  overflow: hidden !important;
}
.game-friends-row.accepted:hover .game-friends-new-label {
  display: none !important;
}
.game-friends-row.accepted .game-friends-action.no {
  position: absolute !important;
  z-index: 5 !important;
  top: 0 !important;
  left: var(--game-accepted-remove-x, 205px) !important;
  right: auto !important;
  width: 18px !important;
  height: 18px !important;
  opacity: 0;
  background-image: url("./assets/ui/friends-window/fa/2.png") !important;
}
.game-friends-row.accepted:hover .game-friends-action.no {
  opacity: 1 !important;
}

/* FriendsIncomingListRenderer.resize(). */
.game-friends-row.incoming .game-friends-new-label {
  position: absolute !important;
  z-index: 4 !important;
  top: -1px !important;
  right: 6px !important;
  left: auto !important;
  width: 64px !important;
  height: 18px !important;
  overflow: hidden !important;
}
.game-friends-row.incoming:hover .game-friends-new-label {
  display: none !important;
}
.game-friends-row.incoming .game-friends-action.yes {
  position: absolute !important;
  z-index: 5 !important;
  top: 0 !important;
  right: 25px !important;
  left: auto !important;
  width: 22px !important;
  height: 18px !important;
  opacity: 0;
  background-image: url("./assets/ui/friends-window/fa/1.png") !important;
}
.game-friends-row.incoming .game-friends-action.no {
  position: absolute !important;
  z-index: 5 !important;
  top: 0 !important;
  right: 6px !important;
  left: auto !important;
  width: 18px !important;
  height: 18px !important;
  opacity: 0;
  background-image: url("./assets/ui/friends-window/fa/2.png") !important;
}
.game-friends-row.sent .game-friends-action.no {
  position: absolute !important;
  z-index: 5 !important;
  top: 0 !important;
  right: 6px !important;
  left: auto !important;
  width: 18px !important;
  height: 18px !important;
  opacity: 0;
  background-image: url("./assets/ui/friends-window/fa/2.png") !important;
}

.game-friends-row.incoming:hover .game-friends-action,
.game-friends-row.sent:hover .game-friends-action {
  opacity: 1 !important;
}


/* Friends in battle counters beside BattleListRenderer player counters. */
.app .battle-row .battle-count {
  overflow: visible !important;
}

.app .battle-row .battle-friends-marker {
  position: absolute !important;
  z-index: 5 !important;
  top: 3px !important;
  height: 8px !important;
  display: inline-block !important;
  pointer-events: none !important;
  white-space: nowrap !important;
  color: #59ff32 !important;
  font: 10px/8px MTanksMyriadPro, MyriadPro, Arial, sans-serif !important;
  font-weight: normal !important;
  text-shadow: 0 1px #001400 !important;
}

.app .battle-row .battle-friends-marker > img {
  position: absolute !important;
  left: 0 !important;
  top: 0 !important;
  width: 8px !important;
  height: 8px !important;
  image-rendering: auto !important;
}

.app .battle-row .battle-friends-marker > i {
  position: absolute !important;
  left: 10px !important;
  top: 0 !important;
  min-width: 8px !important;
  height: 8px !important;
  display: block !important;
  font-style: normal !important;
  line-height: 8px !important;
}

.app .battle-row .dm-count .battle-friends-marker.dm {
  left: -31px !important;
  width: 28px !important;
}

.app .battle-row .team-count .battle-friends-marker.red {
  left: -31px !important;
  width: 28px !important;
}

.app .battle-row .team-count .battle-friends-marker.blue {
  left: 58px !important;
  width: 28px !important;
}


/* Selected BattleList row: friend indicator uses the same dark tone as the selected row text. */
.app .battle-row.selected .battle-friends-marker {
  color: #174a12 !important;
  text-shadow: none !important;
}

.app .battle-row.selected .battle-friends-marker > img {
  content: url("./assets/ui/ui-battlelist/friends-in-battle-selected.png") !important;
}



:root {
  --mtanks-friend-color: #bfff87;
}

.app .friend-name,
.chat-message .chat-name.friend-name,
.battle-chat-message .battle-chat-author.friend-name,
.app .battle-player-row > span.friend-name,
.ui-score-row .friend-name {
  color: var(--mtanks-friend-color) !important;
}

.chat-message .chat-name.friend-name,
.battle-chat-message .battle-chat-author.friend-name,
.ui-score-row .friend-name {
  text-shadow: 0 1px #001400;
}

.app .battle-player-row > span.friend-name {
  text-shadow: 0 1px #001400 !important;
}

.ui-score-row.selected .friend-name,
.app .battle-player-row.selected > span.friend-name {
  color: var(--mtanks-friend-color) !important;
}


/* Force repaint of friend names in all already-rendered panels/chats/HUD. */
html body .friend-name,
html body [data-player-name].friend-name,
html body .chat-name.friend-name,
html body .battle-chat-author.friend-name,
html body .battle-player-row span.friend-name,
html body .ui-score-row span.friend-name {
  color: var(--mtanks-friend-color, #bfff87) !important;
}

html body .chat-name.friend-name,
html body .battle-chat-author.friend-name,
html body .battle-player-row span.friend-name,
html body .ui-score-row span.friend-name {
  text-shadow: 0 1px #001400 !important;
}



.app #chat-messages .chat-message:not(.system) .chat-name.friend-name,
.app #chat-messages .chat-message.to-self:not(.system) .chat-name.friend-name,
.app #chat-messages .chat-name.chat-name-from.friend-name,
.app #chat-messages .chat-name.chat-name-to.friend-name {
  color: var(--mtanks-friend-color, #bfff87) !important;
  text-shadow: 0 1px #001400 !important;
}

.user-context-menu {
  position: fixed;
  z-index: 100000;
  box-sizing: border-box;
  border: 0;
  background: none;
  color: #12ff00;
  font: 11px/17px MTanksMyriadPro, MyriadPro, Arial, sans-serif;
  line-height: 17px;
  outline: none;
  user-select: none;
}

.user-context-menu::before {
  content: "";
  position: absolute;
  z-index: 0;
  inset: 7px;
  background: url("./assets/ui/ui-components/window/7_assets.window.bitmaps.WindowBGTile.png") repeat;
  pointer-events: none;
}

.user-context-menu::after {
  content: "";
  position: absolute;
  z-index: 1;
  inset: 0;
  border: 11px solid transparent;
  border-image: url("./assets/ui/ui-components/window/frame.png") 11 repeat;
  pointer-events: none;
}

.user-context-inner {
  position: absolute;
  z-index: 2;
  top: 11px;
  right: 11px;
  bottom: 11px;
  left: 11px;
  background-color: #0c220d;
  background-image:
    url("./assets/ui/ui-components/inner/top-left.png"),
    url("./assets/ui/ui-components/inner/top-right.png"),
    url("./assets/ui/ui-components/inner/bottom-left.png"),
    url("./assets/ui/ui-components/inner/bottom-right.png"),
    url("./assets/ui/ui-components/inner/30_assets.windowinner.bitmaps.WindowInnerTop.png"),
    url("./assets/ui/ui-components/inner/34_assets.windowinner.bitmaps.WindowInnerBottom.png"),
    url("./assets/ui/ui-components/inner/32_assets.windowinner.bitmaps.WindowInnerLeft.png"),
    url("./assets/ui/ui-components/inner/31_assets.windowinner.bitmaps.WindowInnerRight.png");
  background-position:
    left top, right top, left bottom, right bottom,
    6px top, 6px bottom, left 6px, right 6px;
  background-repeat:
    no-repeat, no-repeat, no-repeat, no-repeat,
    repeat-x, repeat-x, repeat-y, repeat-y;
  pointer-events: none;
}

.user-context-head,
.user-context-status,
.user-context-separator,
.user-context-item {
  position: absolute;
  z-index: 3;
}

.user-context-head {
  height: 18px;
  display: flex;
  align-items: center;
  gap: 0;
  color: #59ff32;
  white-space: nowrap;
  text-shadow: 0 1px #001400;
}

.user-context-head img {
  width: 13px;
  height: 13px;
  margin: 0 2px 0 0;
  object-fit: contain;
}

.user-context-head span {
  display: inline-block;
  height: 18px;
  line-height: 18px;
}

.user-context-status {
  height: 16px;
  color: #6a7868;
  line-height: 16px;
  white-space: nowrap;
}

.user-context-separator {
  height: 1px;
  background: #1a4c14;
  pointer-events: none;
}

.user-context-item {
  width: auto;
  height: 18px;
  min-height: 18px;
  display: block;
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  color: #12ff00;
  font: inherit;
  line-height: 18px;
  text-align: left;
  white-space: nowrap;
  cursor: pointer;
}

.user-context-item:hover,
.user-context-item:focus-visible {
  color: #12ff00;
  text-shadow: 0 0 4px #5a0000, 0 0 4px #59ff32;
  filter: drop-shadow(0 0 2px #59ff32);
  outline: none;
}

.user-context-target,
.chat-name,
.battle-chat-author,
.ui-score-row .callsign,
.game-friends-user {
  cursor: pointer;
}



.battle-invite-notification {
  position: fixed;
  z-index: 90000;
  box-sizing: border-box;
  border: 0;
  background: none;
  color: #59ff32;
  font: 11px/17px MTanksMyriadPro, MyriadPro, Arial, sans-serif;
  line-height: 17px;
  user-select: none;
  transform: translateX(calc(100% + 22px));
  opacity: 0;
  transition:
    transform 650ms cubic-bezier(.19, 1, .22, 1),
    opacity 220ms ease-out;
  will-change: transform, opacity;
}

.battle-invite-notification.show {
  transform: translateX(0);
  opacity: 1;
}

.battle-invite-notification.closing {
  transform: translateX(calc(100% + 22px));
  opacity: 0;
  transition:
    transform 650ms cubic-bezier(.55, .055, .675, .19),
    opacity 220ms ease-in 360ms;
}

.battle-invite-notification::before {
  content: "";
  position: absolute;
  z-index: 0;
  inset: 7px;
  background: url("./assets/ui/ui-components/window/7_assets.window.bitmaps.WindowBGTile.png") repeat;
  pointer-events: none;
}

.battle-invite-notification::after {
  content: "";
  position: absolute;
  z-index: 1;
  inset: 0;
  border: 11px solid transparent;
  border-image: url("./assets/ui/ui-components/window/frame.png") 11 repeat;
  pointer-events: none;
}

.battle-invite-inner {
  position: absolute;
  z-index: 2;
  left: 11px;
  top: 11px;
  background-color: #0c220d;
  background-image:
    linear-gradient(180deg, rgba(90,255,50,.18), rgba(90,255,50,0) 42%),
    url("./assets/ui/ui-components/inner/top-left.png"),
    url("./assets/ui/ui-components/inner/top-right.png"),
    url("./assets/ui/ui-components/inner/bottom-left.png"),
    url("./assets/ui/ui-components/inner/bottom-right.png"),
    url("./assets/ui/ui-components/inner/30_assets.windowinner.bitmaps.WindowInnerTop.png"),
    url("./assets/ui/ui-components/inner/34_assets.windowinner.bitmaps.WindowInnerBottom.png"),
    url("./assets/ui/ui-components/inner/32_assets.windowinner.bitmaps.WindowInnerLeft.png"),
    url("./assets/ui/ui-components/inner/31_assets.windowinner.bitmaps.WindowInnerRight.png");
  background-position:
    1px 1px,
    left top, right top, left bottom, right bottom,
    6px top, 6px bottom, left 6px, right 6px;
  background-size:
    calc(100% - 2px) 42px,
    auto, auto, auto, auto,
    auto, auto, auto, auto;
  background-repeat:
    no-repeat,
    no-repeat, no-repeat, no-repeat, no-repeat,
    repeat-x, repeat-x, repeat-y, repeat-y;
  pointer-events: none;
  animation: battle-invite-blink 1.2s ease-in-out infinite alternate;
}

@keyframes battle-invite-blink {
  from { filter: brightness(1); }
  to { filter: brightness(1.18); }
}

.battle-invite-user,
.battle-invite-message,
.battle-invite-map,
.battle-invite-button {
  position: absolute;
  z-index: 3;
}

.battle-invite-user {
  height: 18px;
  display: flex;
  align-items: center;
  gap: 0;
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  color: #59ff32;
  font: inherit;
  line-height: 18px;
  text-align: left;
  text-shadow: 0 1px #001400;
  white-space: nowrap;
  cursor: pointer;
}

.battle-invite-user.friend-name {
  color: #bfff87;
}

.battle-invite-user img {
  width: 13px;
  height: 13px;
  margin: 0 2px 0 0;
  object-fit: contain;
}

.battle-invite-user span {
  display: inline-block;
  height: 18px;
  line-height: 18px;
}

.battle-invite-message,
.battle-invite-map {
  height: 18px;
  color: #59ff32;
  line-height: 18px;
  text-shadow: 0 1px #001400;
  white-space: nowrap;
  pointer-events: none;
}

.battle-invite-map {
  left: 20px;
  overflow: hidden;
  text-overflow: clip;
  max-width: calc(100% - 40px);
}

.battle-invite-button {
  width: 96px;
}

/* Disabled ContextMenuLabel.locked analogue for unavailable invite action. */
.user-context-item:disabled,
.user-context-item.disabled {
  color: #b1b1b1 !important;
  text-shadow: none !important;
  filter: none !important;
  cursor: default !important;
  opacity: 1;
}

.user-context-item:disabled:hover,
.user-context-item.disabled:hover,
.user-context-item:disabled:focus-visible,
.user-context-item.disabled:focus-visible {
  color: #b1b1b1 !important;
  text-shadow: none !important;
  filter: none !important;
}

/* Friend remove confirmation must appear above the Friends window layer. */
.game-dialog-layer.game-friends-remove-confirm-layer {
  z-index: 95000 !important;
}



.app .battle-column {
  position: relative;
}

.app .battle-mode-filter-bar {
  position: absolute;
  z-index: 8;
  left: 11px;
  bottom: 12px;
  display: flex;
  gap: 6px;
  height: 30px;
  pointer-events: auto;
}

.app .battle-mode-filter-button {
  position: relative !important;
  width: 30px !important;
  min-width: 30px !important;
  height: 30px !important;
  padding: 0 7px !important;
}

.app .battle-mode-filter-button .game-default-button-label {
  display: flex !important;
  width: 100% !important;
  height: 30px !important;
  align-items: center !important;
  justify-content: center !important;
}

.app .battle-mode-filter-button img {
  width: 24px;
  height: 24px;
  display: block;
  object-fit: contain;
  pointer-events: none;
}

.app .battle-mode-filter-button[data-mode="CP"] img {
  width: 24px;
  height: 24px;
}

.app .battle-mode-filter-button.active,
.app .battle-mode-filter-button.active:hover,
.app .battle-mode-filter-button.active:focus-visible {
  padding: 0 !important;
  background-color: transparent !important;
  background-image: url("./assets/ui/ui-battlelist/filters/pressed.png") !important;
  background-position: 0 0 !important;
  background-size: 30px 30px !important;
  background-repeat: no-repeat !important;
}

.app .battle-mode-filter-button.active::before,
.app .battle-mode-filter-button.active:hover::before,
.app .battle-mode-filter-button.active:focus-visible::before,
.app .battle-mode-filter-button.active::after,
.app .battle-mode-filter-button.active:hover::after,
.app .battle-mode-filter-button.active:focus-visible::after {
  display: none !important;
}

.app .battle-mode-filter-button.active .game-default-button-label {
  width: 30px !important;
  height: 30px !important;
  transform: none !important;
}

.app .battle-mode-filter-button.locked {
  cursor: default !important;
}


/* Chat role marks near rank icon: administrator / developer / moderator. */
.chat-role,
.battle-chat-role {
  width: 13px;
  height: 13px;
  margin: 0 2px 0 0;
  vertical-align: -3px;
  object-fit: contain;
  image-rendering: auto;
  pointer-events: none;
}

.chat-role-developer,
.battle-chat-role-developer {
  height: 13px;
}

.chat-role-administrator,
.chat-role-moderator,
.battle-chat-role-administrator,
.battle-chat-role-moderator {
  height: 12px;
}
.app .battle-paid-icon {
  position: absolute !important;
  z-index: 3 !important;
  top: 3px !important;
  left: -2px !important;
  width: 10px !important;
  height: 10px !important;
  margin: 0 !important;
  pointer-events: none !important;
}

.app .battle-paid-icon + span.battle-title {
  margin-left: 0 !important;
}

.app .battle-row .battle-title {
  left: 8px !important;
}

.app .battle-lock {
  display: none !important;
}


.app .garage-panel-actions.has-mpk .garage-action-upgrade,
.app .garage-panel-actions.has-mpk .garage-action-buy:not(:last-child) {
  margin-right: 0 !important;
}
.app .garage-panel-actions.has-mpk .garage-action-mpk {
  margin-right: auto !important;
}
.app .garage-panel-actions.has-mpk .garage-action-mount {
  margin-left: 0 !important;
}

.garage-mpk-layer {
  background: rgba(0, 0, 0, 0.12);
}
.garage-mpk-select-window {
  width: var(--mpk-window-width) !important;
  min-width: var(--mpk-window-width) !important;
  height: var(--mpk-window-height) !important;
  min-height: var(--mpk-window-height) !important;
  color: #ffffff;
  font: 12px/15px MTanksMyriadPro, MyriadPro, Arial, sans-serif;
  user-select: none;
  overflow: visible;
}
.garage-mpk-select-window *,
.garage-mpk-select-window *::before,
.garage-mpk-select-window *::after { user-select: none; }

.garage-mpk-source-header {
  position: absolute;
  z-index: 20;
  top: -25px;
  left: 50%;
  width: 188px;
  height: 43px;
  transform: translateX(-50%);
  pointer-events: none;
}
.garage-mpk-source-header-bg,
.garage-mpk-source-header-title {
  position: absolute;
  display: block;
  pointer-events: none;
}
.garage-mpk-source-header-bg {
  inset: 0;
  width: 188px;
  height: 43px;
}
.garage-mpk-source-header-title {
  top: 11px;
  left: 50%;
  width: 87px;
  height: 16px;
  transform: translateX(-50%);
}

.garage-mpk-source-list {
  position: absolute;
  inset: 0;
}
.garage-mpk-source-info.game-window-inner {
  position: absolute !important;
  left: 12px;
  width: var(--mpk-info-width, 430px) !important;
  height: 50px;
  overflow: hidden;
  color: #ffffff;
  pointer-events: none;
}
.garage-mpk-source-info::before {
  background: #062207;
}
.garage-mpk-source-info.hovered::before {
  background: #073108;
}
.garage-mpk-source-progress {
  position: absolute;
  z-index: 0;
  top: 1px;
  left: 1px;
  width: var(--mpk-row-progress, 0%);
  height: 48px;
  max-width: calc(100% - 2px);
  background-image: url("./assets/ui/ui-garage/mpk/progress-left.png"), url("./assets/ui/ui-garage/mpk/progress-center.png");
  background-position: left top, 5px top;
  background-repeat: no-repeat, repeat-x;
  background-size: 5px 48px, 1px 48px;
  mix-blend-mode: overlay;
  pointer-events: none;
}
.garage-mpk-source-icon-bg {
  position: absolute;
  z-index: 2;
  top: 9px;
  left: 10px;
  width: 32px;
  height: 32px;
}
.garage-mpk-source-icon-bg img,
.garage-mpk-source-icon img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.garage-mpk-source-icon {
  position: absolute;
  z-index: 3;
  top: 10px;
  left: 11px;
  width: 30px;
  height: 30px;
}
.garage-mpk-source-level {
  position: absolute;
  z-index: 2;
  top: 0;
  left: 56px;
  width: 42px;
  height: 50px;
  color: #fcff00;
  font: bold 12px/50px MTanksMyriadPro, MyriadPro, Arial, sans-serif;
  text-align: right;
  white-space: nowrap;
}
.garage-mpk-source-text {
  position: absolute;
  z-index: 2;
  top: 0;
  right: 8px;
  left: 107px;
  height: 50px;
  display: flex;
  align-items: center;
  overflow: hidden;
  color: #ffffff;
  font: bold 12px/50px MTanksMyriadPro, MyriadPro, Arial, sans-serif;
  white-space: nowrap;
}
.garage-mpk-source-name {
  flex: 0 1 auto;
  min-width: 0;
  overflow: hidden;
  color: #ffffff;
  text-overflow: ellipsis;
}
.garage-mpk-source-value,
.garage-mpk-source-delta {
  flex: 0 0 auto;
  color: #7cff39;
  font-weight: bold;
}
.garage-mpk-source-value {
  margin-left: 3px;
}
.garage-mpk-source-delta {
  margin-left: 4px;
}
.garage-mpk-source-info.full .garage-mpk-source-value,
.garage-mpk-source-info.full .garage-mpk-source-delta,
.garage-mpk-source-info.full .garage-mpk-source-level {
  color: #fcff00;
}

/* SelectUpgradeWindow: button x=info.x+430+7, y=info.y, width=136. */
.app .garage-mpk-source-upgrade.garage-big-button,
.garage-mpk-layer .garage-mpk-source-upgrade.garage-big-button {
  position: absolute !important;
  left: 449px;
  width: 136px !important;
  min-width: 136px !important;
  height: 50px !important;
  display: block !important;
  box-sizing: border-box !important;
  overflow: visible !important;
  opacity: 1 !important;
}
.app .garage-mpk-source-upgrade.garage-big-button > span,
.garage-mpk-layer .garage-mpk-source-upgrade.garage-big-button > span {
  top: 7px !important;
  right: 2px !important;
  left: 2px !important;
  height: 18px !important;
  font: bold 12px/15px MTanksMyriadPro, MyriadPro, Arial, sans-serif !important;
}
.app .garage-mpk-source-upgrade.garage-big-button > small,
.garage-mpk-layer .garage-mpk-source-upgrade.garage-big-button > small {
  right: 3px !important;
  bottom: 6px !important;
  left: 3px !important;
  height: 12px !important;
  color: #ffffff !important;
  font: bold 10px/12px MTanksMyriadPro, MyriadPro, Arial, sans-serif !important;
}
.app .garage-mpk-source-upgrade.garage-big-button > small.not-enough,
.garage-mpk-layer .garage-mpk-source-upgrade.garage-big-button > small.not-enough {
  color: #ff4e00 !important;
}
.app .garage-mpk-source-upgrade.garage-big-button > small img,
.garage-mpk-layer .garage-mpk-source-upgrade.garage-big-button > small img {
  width: 8px !important;
  height: 10px !important;
  margin-left: 3px !important;
}

.garage-mpk-source-discount {
  position: absolute;
  left: 12px;
  right: 120px;
  bottom: 8px;
  height: 30px;
  overflow: hidden;
  color: #f0f0f0;
  font: bold 12px/30px MTanksMyriadPro, MyriadPro, Arial, sans-serif;
  white-space: nowrap;
  text-overflow: ellipsis;
  pointer-events: none;
}
.garage-mpk-source-close.game-default-button {
  position: absolute !important;
  right: 12px;
  bottom: 8px;
  width: 95px !important;
  height: 30px !important;
}

/* Exact source CrystalButton/GreyBigButtonSkin for SelectUpgradeWindow buttons.
   Do not use the garage action button/default button skin here. */
.app .garage-mpk-source-upgrade.garage-big-button,
.garage-mpk-layer .garage-mpk-source-upgrade.garage-big-button {
  position: absolute !important;
  left: 449px !important;
  width: 136px !important;
  min-width: 136px !important;
  max-width: 136px !important;
  height: 50px !important;
  min-height: 50px !important;
  max-height: 50px !important;
  box-sizing: border-box !important;
  margin: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  outline: 0 !important;
  padding: 0 !important;
  overflow: visible !important;
  opacity: 1 !important;
  filter: none !important;
  transform: none !important;
  background-color: transparent !important;
  background-image:
    url("./assets/ui/ui-garage/mpk/bigbutton-grey/grey-up-left.png"),
    url("./assets/ui/ui-garage/mpk/bigbutton-grey/grey-up-right.png"),
    url("./assets/ui/ui-garage/mpk/bigbutton-grey/grey-up-center.png") !important;
  background-position: left top, right top, 7px top !important;
  background-repeat: no-repeat, no-repeat, repeat-x !important;
  background-size: 7px 50px, 7px 50px, 201px 50px !important;
  color: #ffffff !important;
  text-shadow: 0 1px 1px #000 !important;
  cursor: pointer !important;
}

.app .garage-mpk-source-upgrade.garage-big-button:hover:not(:disabled),
.garage-mpk-layer .garage-mpk-source-upgrade.garage-big-button:hover:not(:disabled) {
  background-image:
    url("./assets/ui/ui-garage/mpk/bigbutton-grey/grey-over-left.png"),
    url("./assets/ui/ui-garage/mpk/bigbutton-grey/grey-over-right.png"),
    url("./assets/ui/ui-garage/mpk/bigbutton-grey/grey-over-center.png") !important;
}

.app .garage-mpk-source-upgrade.garage-big-button:active:not(:disabled),
.garage-mpk-layer .garage-mpk-source-upgrade.garage-big-button:active:not(:disabled) {
  padding: 0 !important;
  background-image:
    url("./assets/ui/ui-garage/mpk/bigbutton-grey/grey-down-left.png"),
    url("./assets/ui/ui-garage/mpk/bigbutton-grey/grey-down-right.png"),
    url("./assets/ui/ui-garage/mpk/bigbutton-grey/grey-down-center.png") !important;
}

.app .garage-mpk-source-upgrade.garage-big-button:disabled,
.garage-mpk-layer .garage-mpk-source-upgrade.garage-big-button:disabled {
  opacity: 1 !important;
  cursor: default !important;
  background-image:
    url("./assets/ui/ui-garage/mpk/bigbutton-grey/grey-off-left.png"),
    url("./assets/ui/ui-garage/mpk/bigbutton-grey/grey-off-right.png"),
    url("./assets/ui/ui-garage/mpk/bigbutton-grey/grey-off-center.png") !important;
}

.app .garage-mpk-source-upgrade.garage-big-button > span,
.garage-mpk-layer .garage-mpk-source-upgrade.garage-big-button > span {
  position: absolute !important;
  top: 8px !important;
  right: 2px !important;
  left: 2px !important;
  width: auto !important;
  height: 17px !important;
  margin: 0 !important;
  padding: 0 !important;
  color: #ffffff !important;
  font: bold 12px/17px MTanksMyriadPro, MyriadPro, Arial, sans-serif !important;
  text-align: center !important;
  white-space: nowrap !important;
  pointer-events: none !important;
  transform: none !important;
}

.app .garage-mpk-source-upgrade.garage-big-button > small,
.garage-mpk-layer .garage-mpk-source-upgrade.garage-big-button > small {
  position: absolute !important;
  top: 25px !important;
  right: 2px !important;
  bottom: auto !important;
  left: 2px !important;
  width: auto !important;
  height: 18px !important;
  margin: 0 !important;
  padding: 0 !important;
  display: flex !important;
  align-items: flex-start !important;
  justify-content: center !important;
  gap: 3px !important;
  color: #ffffff !important;
  font: bold 10px/12px MTanksMyriadPro, MyriadPro, Arial, sans-serif !important;
  text-align: center !important;
  white-space: nowrap !important;
  pointer-events: none !important;
  transform: none !important;
}

.app .garage-mpk-source-upgrade.garage-big-button > small.not-enough,
.garage-mpk-layer .garage-mpk-source-upgrade.garage-big-button > small.not-enough {
  color: #ff4e00 !important;
}

.app .garage-mpk-source-upgrade.garage-big-button > small img,
.garage-mpk-layer .garage-mpk-source-upgrade.garage-big-button > small img {
  flex: 0 0 auto !important;
  width: 8px !important;
  height: 10px !important;
  margin: 1px 0 0 0 !important;
  object-fit: contain !important;
}

/* BigButtonState.draw(): center starts at x=7 and width=(buttonWidth-14).
   Keep the center sprite clipped between the 7px caps so it never paints under left/right edges. */
.app .garage-mpk-source-upgrade.garage-big-button,
.garage-mpk-layer .garage-mpk-source-upgrade.garage-big-button {
  padding: 0 7px !important;
  background-image: url("./assets/ui/ui-garage/mpk/bigbutton-grey/grey-up-center.png") !important;
  background-position: left top !important;
  background-repeat: repeat-x !important;
  background-size: 201px 50px !important;
  background-origin: content-box !important;
  background-clip: content-box !important;
}

.app .garage-mpk-source-upgrade.garage-big-button::before,
.app .garage-mpk-source-upgrade.garage-big-button::after,
.garage-mpk-layer .garage-mpk-source-upgrade.garage-big-button::before,
.garage-mpk-layer .garage-mpk-source-upgrade.garage-big-button::after {
  content: "";
  position: absolute;
  z-index: 0;
  top: 0;
  width: 7px;
  height: 50px;
  pointer-events: none;
  background-repeat: no-repeat;
  background-size: 7px 50px;
}

.app .garage-mpk-source-upgrade.garage-big-button::before,
.garage-mpk-layer .garage-mpk-source-upgrade.garage-big-button::before {
  left: 0;
  background-image: url("./assets/ui/ui-garage/mpk/bigbutton-grey/grey-up-left.png");
}

.app .garage-mpk-source-upgrade.garage-big-button::after,
.garage-mpk-layer .garage-mpk-source-upgrade.garage-big-button::after {
  right: 0;
  background-image: url("./assets/ui/ui-garage/mpk/bigbutton-grey/grey-up-right.png");
}

.app .garage-mpk-source-upgrade.garage-big-button:hover:not(:disabled),
.garage-mpk-layer .garage-mpk-source-upgrade.garage-big-button:hover:not(:disabled) {
  background-image: url("./assets/ui/ui-garage/mpk/bigbutton-grey/grey-over-center.png") !important;
}

.app .garage-mpk-source-upgrade.garage-big-button:hover:not(:disabled)::before,
.garage-mpk-layer .garage-mpk-source-upgrade.garage-big-button:hover:not(:disabled)::before {
  background-image: url("./assets/ui/ui-garage/mpk/bigbutton-grey/grey-over-left.png");
}

.app .garage-mpk-source-upgrade.garage-big-button:hover:not(:disabled)::after,
.garage-mpk-layer .garage-mpk-source-upgrade.garage-big-button:hover:not(:disabled)::after {
  background-image: url("./assets/ui/ui-garage/mpk/bigbutton-grey/grey-over-right.png");
}

.app .garage-mpk-source-upgrade.garage-big-button:active:not(:disabled),
.garage-mpk-layer .garage-mpk-source-upgrade.garage-big-button:active:not(:disabled) {
  padding: 0 7px !important;
  background-image: url("./assets/ui/ui-garage/mpk/bigbutton-grey/grey-down-center.png") !important;
}

.app .garage-mpk-source-upgrade.garage-big-button:active:not(:disabled)::before,
.garage-mpk-layer .garage-mpk-source-upgrade.garage-big-button:active:not(:disabled)::before {
  background-image: url("./assets/ui/ui-garage/mpk/bigbutton-grey/grey-down-left.png");
}

.app .garage-mpk-source-upgrade.garage-big-button:active:not(:disabled)::after,
.garage-mpk-layer .garage-mpk-source-upgrade.garage-big-button:active:not(:disabled)::after {
  background-image: url("./assets/ui/ui-garage/mpk/bigbutton-grey/grey-down-right.png");
}

.app .garage-mpk-source-upgrade.garage-big-button:disabled,
.garage-mpk-layer .garage-mpk-source-upgrade.garage-big-button:disabled {
  background-image: url("./assets/ui/ui-garage/mpk/bigbutton-grey/grey-off-center.png") !important;
}

.app .garage-mpk-source-upgrade.garage-big-button:disabled::before,
.garage-mpk-layer .garage-mpk-source-upgrade.garage-big-button:disabled::before {
  background-image: url("./assets/ui/ui-garage/mpk/bigbutton-grey/grey-off-left.png");
}

.app .garage-mpk-source-upgrade.garage-big-button:disabled::after,
.garage-mpk-layer .garage-mpk-source-upgrade.garage-big-button:disabled::after {
  background-image: url("./assets/ui/ui-garage/mpk/bigbutton-grey/grey-off-right.png");
}

.app .garage-mpk-source-upgrade.garage-big-button > span,
.app .garage-mpk-source-upgrade.garage-big-button > small,
.garage-mpk-layer .garage-mpk-source-upgrade.garage-big-button > span,
.garage-mpk-layer .garage-mpk-source-upgrade.garage-big-button > small {
  z-index: 1 !important;
}

/* MPK source logic: UpgradeInfoForm colors/timer and SelectUpgradeWindow SpeedUp button. */
.garage-mpk-source-level {
  color: #7cff39 !important;
}
.garage-mpk-source-info.full .garage-mpk-source-level,
.garage-mpk-source-info.full .garage-mpk-source-value,
.garage-mpk-source-info.full .garage-mpk-source-delta {
  color: #fcff00 !important;
}
.garage-mpk-source-timer {
  position: absolute;
  z-index: 3;
  top: 0;
  right: 10px;
  height: 50px;
  display: none;
  color: #ffffff;
  font: bold 12px/50px MTanksMyriadPro, MyriadPro, Arial, sans-serif;
  text-align: right;
  white-space: nowrap;
  text-shadow: 0 1px 1px #000;
}
.garage-mpk-source-info.upgrading .garage-mpk-source-timer,
.garage-mpk-source-timer.visible {
  display: block;
}
.garage-mpk-source-info.upgrading .garage-mpk-source-text {
  right: 62px;
}

/* GoldBigButtonSkin.GOLD_SKIN for the active "Ускорить" CrystalButton. */
.app .garage-mpk-source-upgrade.garage-big-button.speedup,
.garage-mpk-layer .garage-mpk-source-upgrade.garage-big-button.speedup {
  background-image: url("./assets/ui/ui-garage/mpk/bigbutton-gold/gold-up-center.png") !important;
}

.app .garage-mpk-source-upgrade.garage-big-button.speedup::before,
.garage-mpk-layer .garage-mpk-source-upgrade.garage-big-button.speedup::before {
  background-image: url("./assets/ui/ui-garage/mpk/bigbutton-gold/gold-up-left.png") !important;
}

.app .garage-mpk-source-upgrade.garage-big-button.speedup::after,
.garage-mpk-layer .garage-mpk-source-upgrade.garage-big-button.speedup::after {
  background-image: url("./assets/ui/ui-garage/mpk/bigbutton-gold/gold-up-right.png") !important;
}

.app .garage-mpk-source-upgrade.garage-big-button.speedup:hover:not(:disabled),
.garage-mpk-layer .garage-mpk-source-upgrade.garage-big-button.speedup:hover:not(:disabled) {
  background-image: url("./assets/ui/ui-garage/mpk/bigbutton-gold/gold-over-center.png") !important;
}

.app .garage-mpk-source-upgrade.garage-big-button.speedup:hover:not(:disabled)::before,
.garage-mpk-layer .garage-mpk-source-upgrade.garage-big-button.speedup:hover:not(:disabled)::before {
  background-image: url("./assets/ui/ui-garage/mpk/bigbutton-gold/gold-over-left.png") !important;
}

.app .garage-mpk-source-upgrade.garage-big-button.speedup:hover:not(:disabled)::after,
.garage-mpk-layer .garage-mpk-source-upgrade.garage-big-button.speedup:hover:not(:disabled)::after {
  background-image: url("./assets/ui/ui-garage/mpk/bigbutton-gold/gold-over-right.png") !important;
}

.app .garage-mpk-source-upgrade.garage-big-button.speedup:active:not(:disabled),
.garage-mpk-layer .garage-mpk-source-upgrade.garage-big-button.speedup:active:not(:disabled) {
  background-image: url("./assets/ui/ui-garage/mpk/bigbutton-gold/gold-down-center.png") !important;
}

.app .garage-mpk-source-upgrade.garage-big-button.speedup:active:not(:disabled)::before,
.garage-mpk-layer .garage-mpk-source-upgrade.garage-big-button.speedup:active:not(:disabled)::before {
  background-image: url("./assets/ui/ui-garage/mpk/bigbutton-gold/gold-down-left.png") !important;
}

.app .garage-mpk-source-upgrade.garage-big-button.speedup:active:not(:disabled)::after,
.garage-mpk-layer .garage-mpk-source-upgrade.garage-big-button.speedup:active:not(:disabled)::after {
  background-image: url("./assets/ui/ui-garage/mpk/bigbutton-gold/gold-down-right.png") !important;
}


.app .garage-mod-table th.property-head {
  height: 43px;
  overflow: visible;
  padding: 0 1px;
}

.app .garage-mod-table th.property-head .property-head-icon {
  position: relative;
  display: block;
  width: 32px;
  height: 32px;
  margin: 0 auto;
}

.app .garage-mod-table th.property-head .property-head-back,
.garage-mpk-source-icon-bg img {
  width: 32px !important;
  height: 32px !important;
  image-rendering: auto;
}

.app .garage-mod-table th.property-head .property-head-back,
.app .garage-mod-table th.property-head .property-head-image {
  position: absolute;
  display: block;
  margin: 0;
  pointer-events: none;
}

.app .garage-mod-table th.property-head .property-head-back {
  inset: 0;
}

.app .garage-mod-table th.property-head .property-head-image {
  top: 1px;
  left: 1px;
  width: 29px !important;
  height: 29px !important;
  object-fit: contain;
  image-rendering: auto;
}

.app .garage-mod-table th.property-head .property-head-unit {
  display: block;
  max-width: 100%;
  overflow: visible;
  color: #20e829;
  font: 10px/10px Arial, sans-serif;
  text-align: center;
  white-space: nowrap;
  text-shadow: 0 1px #001600;
}

.garage-mpk-source-icon-bg {
  width: 32px !important;
  height: 32px !important;
}

.garage-mpk-source-icon {
  top: 10px !important;
  left: 11px !important;
  width: 29px !important;
  height: 29px !important;
}

.garage-mpk-source-icon img {
  width: 29px !important;
  height: 29px !important;
  object-fit: contain !important;
  image-rendering: auto;
}

/* property-head: no text labels under icons. */
.app .garage-mod-table th.property-head {
  height: 32px !important;
}

.app .garage-mod-table th.property-head .property-head-unit {
  display: none !important;
}

/* property-head: no "m" text above upgrade indicator. */
.app .garage-mod-table th.mod-head {
  font-size: 0 !important;
  color: transparent !important;
}

/* renew/payment shortage button removed from garage project. */
.app .garage-renew-button,
.app .garage-panel-actions .garage-renew-button {
  display: none !important;
}


.app .garage-mpk-source-text .garage-mpk-source-value,
.app .garage-mpk-source-text .garage-mpk-source-delta,
.garage-mpk-layer .garage-mpk-source-text .garage-mpk-source-value,
.garage-mpk-layer .garage-mpk-source-text .garage-mpk-source-delta,
.app .garage-mpk-source-info.full .garage-mpk-source-text .garage-mpk-source-value,
.app .garage-mpk-source-info.full .garage-mpk-source-text .garage-mpk-source-delta,
.garage-mpk-layer .garage-mpk-source-info.full .garage-mpk-source-text .garage-mpk-source-value,
.garage-mpk-layer .garage-mpk-source-info.full .garage-mpk-source-text .garage-mpk-source-delta {
  color: #7cff39 !important;
}

/* MPK source window: value is green, +change is white. */
html body .app .garage-mpk-source-info .garage-mpk-source-text .garage-mpk-source-value,
html body .garage-mpk-layer .garage-mpk-source-info .garage-mpk-source-text .garage-mpk-source-value,
html body .app .garage-mpk-source-info.full .garage-mpk-source-text .garage-mpk-source-value,
html body .garage-mpk-layer .garage-mpk-source-info.full .garage-mpk-source-text .garage-mpk-source-value {
  color: #7cff39 !important;
}

html body .app .garage-mpk-source-info .garage-mpk-source-text .garage-mpk-source-delta,
html body .garage-mpk-layer .garage-mpk-source-info .garage-mpk-source-text .garage-mpk-source-delta,
html body .app .garage-mpk-source-info.full .garage-mpk-source-text .garage-mpk-source-delta,
html body .garage-mpk-layer .garage-mpk-source-info.full .garage-mpk-source-text .garage-mpk-source-delta {
  color: #ffffff !important;
}

/* MPK source window: full/last step property value is yellow, +change stays white. */
html body .app .garage-mpk-source-info.full .garage-mpk-source-text .garage-mpk-source-value,
html body .garage-mpk-layer .garage-mpk-source-info.full .garage-mpk-source-text .garage-mpk-source-value {
  color: #ffe64a !important;
}

html body .app .garage-mpk-source-info.full .garage-mpk-source-text .garage-mpk-source-delta,
html body .garage-mpk-layer .garage-mpk-source-info.full .garage-mpk-source-text .garage-mpk-source-delta {
  display: none !important;
}

/* Garage ModTable: all property values are white like the source table. */
html body .app .garage-mod-table tbody tr td.property-value,
html body .app .garage-mod-table tbody tr.selected td.property-value,
html body .app .garage-mod-table tbody tr[data-mod-index] td.property-value,
html body .app .garage-mod-table tbody tr[data-mod-index].selected td.property-value {
  color: #ffffff !important;
}

/* Garage ModTable selected row: use the darker inactive BattleList 3-sprite skin, not active selected. */
html body .app .garage-mod-table tbody tr.selected {
  background: transparent !important;
  background-color: transparent !important;
  color: #ffffff !important;
  text-shadow: 0 1px #001800 !important;
}

html body .app .garage-mod-table tbody tr.selected > td {
  background-color: transparent !important;
  background-image: url("./assets/ui/tank-ui/images/54_assets.cellrenderer.battlelist.cell_normal_UP_CENTER.png") !important;
  background-position: left top !important;
  background-repeat: repeat-x !important;
  background-size: 4px 100% !important;
}

html body .app .garage-mod-table tbody tr.selected > td:first-child {
  background-image:
    url("./assets/ui/tank-ui/images/53_assets.cellrenderer.battlelist.cell_normal_UP_LEFT.png"),
    url("./assets/ui/tank-ui/images/54_assets.cellrenderer.battlelist.cell_normal_UP_CENTER.png") !important;
  background-position: left top, 5px top !important;
  background-repeat: no-repeat, repeat-x !important;
  background-size: 5px 100%, 4px 100% !important;
}

html body .app .garage-mod-table tbody tr.selected > td:last-child {
  background-image:
    url("./assets/ui/tank-ui/images/52_assets.cellrenderer.battlelist.cell_normal_UP_RIGHT.png"),
    url("./assets/ui/tank-ui/images/54_assets.cellrenderer.battlelist.cell_normal_UP_CENTER.png") !important;
  background-position: right top, left top !important;
  background-repeat: no-repeat, repeat-x !important;
  background-size: 5px 100%, 4px 100% !important;
}

html body .app .garage-mod-table tbody tr.selected td,
html body .app .garage-mod-table tbody tr.selected td.property-value,
html body .app .garage-mod-table tbody tr.selected .mod-cost span {
  color: #ffffff !important;
}

/* Garage ModTable: modification cost text is white on every row. */
html body .app .garage-mod-table tbody tr td.mod-cost,
html body .app .garage-mod-table tbody tr td.mod-cost span,
html body .app .garage-mod-table tbody tr.selected td.mod-cost,
html body .app .garage-mod-table tbody tr.selected td.mod-cost span {
  color: #ffffff !important;
}


@keyframes garage-mpk-value-blink {
  0%, 16.666% { opacity: 1; }
  50% { opacity: 0; }
  66.666% { opacity: 0; }
  100% { opacity: 1; }
}

html body .app .garage-mod-table tbody tr td.property-value .garage-mpk-property-value-text,
html body .app .garage-mod-table tbody tr.selected td.property-value .garage-mpk-property-value-text {
  display: inline-block;
  opacity: 1;
  animation: none;
}

html body .app .garage-mod-table tbody tr td.property-value.mpk-stock,
html body .app .garage-mod-table tbody tr.selected td.property-value.mpk-stock {
  color: #ffffff !important;
  opacity: 1 !important;
  animation: none !important;
}

html body .app .garage-mod-table tbody tr td.property-value.mpk-partial,
html body .app .garage-mod-table tbody tr.selected td.property-value.mpk-partial {
  color: #86ff04 !important;
  opacity: 1 !important;
  animation: none !important;
}

html body .app .garage-mod-table tbody tr td.property-value.mpk-upgrading,
html body .app .garage-mod-table tbody tr.selected td.property-value.mpk-upgrading {
  color: #00ff0b !important;
  opacity: 1 !important;
  animation: none !important;
}

html body .app .garage-mod-table tbody tr td.property-value.mpk-upgrading .garage-mpk-property-value-text,
html body .app .garage-mod-table tbody tr.selected td.property-value.mpk-upgrading .garage-mpk-property-value-text {
  color: #00ff0b !important;
  text-shadow: 0 1px 1px #000, 0 0 3px rgba(0, 255, 11, .55);
  opacity: 1;
  animation: garage-mpk-value-blink .9s linear infinite !important;
}

html body .app .garage-mod-table tbody tr td.property-value.mpk-full,
html body .app .garage-mod-table tbody tr.selected td.property-value.mpk-full {
  color: #fcff00 !important;
  opacity: 1 !important;
  animation: none !important;
}

/* UpgradeInfoForm active-row strip blink while a property is upgrading. */
@keyframes garage-mpk-progress-blink {
  0%, 35% { opacity: .92; }
  55%, 72% { opacity: .18; }
  100% { opacity: .92; }
}

.garage-mpk-source-info.upgrading .garage-mpk-source-progress {
  min-width: 5px;
  animation: garage-mpk-progress-blink .9s linear infinite;
}

/* CountDownTimerWithIcon: BattleInfoIcons.TIME_LIMIT + timer label. */
html body .garage-mpk-layer .garage-mpk-source-timer,
html body .app .garage-mpk-source-timer {
  right: 10px !important;
  display: none;
  align-items: center;
  justify-content: flex-end;
  gap: 3px;
  min-width: 58px;
  color: #ffffff !important;
  font: bold 12px/50px MTanksMyriadPro, MyriadPro, Arial, sans-serif !important;
  text-shadow: 0 1px 1px #000;
}

html body .garage-mpk-layer .garage-mpk-source-timer img,
html body .app .garage-mpk-source-timer img {
  width: 14px;
  height: 14px;
  object-fit: contain;
}

html body .garage-mpk-layer .garage-mpk-source-info.upgrading .garage-mpk-source-timer,
html body .app .garage-mpk-source-info.upgrading .garage-mpk-source-timer,
html body .garage-mpk-layer .garage-mpk-source-timer.visible,
html body .app .garage-mpk-source-timer.visible {
  display: flex !important;
}

html body .garage-mpk-layer .garage-mpk-source-info.upgrading .garage-mpk-source-text,
html body .app .garage-mpk-source-info.upgrading .garage-mpk-source-text {
  right: 78px !important;
}


/* Safety: the MPK timer label must never be rendered on the SelectUpgradeWindow speedup button. */
html body .garage-mpk-layer .garage-mpk-source-button-time,
html body .garage-mpk-source-upgrade .garage-mpk-source-button-time {
  display: none !important;
}

html body .app .garage-panel-actions {
  overflow: visible;
}

html body .app .garage-panel-actions > .garage-button.garage-action-mpk.has-mpk-action-timer {
  overflow: hidden;
}

html body .app .garage-panel-actions > .garage-button.garage-action-mpk.has-mpk-action-timer .garage-button-label {
  display: none;
}

/* Timer text is attached only to the source Garage Upgrade button: .garage-button.garage-action-mpk. */
html body .app .garage-panel-actions > .garage-button.garage-action-mpk > .garage-mpk-source-button-time {
  position: absolute;
  z-index: 4;
  top: 0;
  right: 4px;
  left: 4px;
  height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font: bold 12px/50px MTanksMyriadPro, MyriadPro, Arial, sans-serif;
  text-align: center;
  text-shadow: 0 1px 1px #000;
  pointer-events: none;
  font-style: normal;
}

/* GarageList.myIcon(): bottom-right active MPK timer on warehouse item cards, without icon. */
html body .app .garage-strip .garage-item-card .garage-item-mpk-timer {
  position: absolute;
  z-index: 7;
  right: 7px;
  bottom: 6px;
  display: inline-flex;
  align-items: center;
  max-width: 104px;
  color: #ffffff;
  font: bold 11px/13px MTanksMyriadPro, MyriadPro, Arial, sans-serif;
  text-align: right;
  text-shadow: 0 1px 2px #000;
  pointer-events: none;
}

html body .app .garage-strip .garage-item-card.mpk-upgrading {
  filter: brightness(1.04);
}

/* UpgradeButton.setUpgradingButton(): while MPK is in progress the source
   garage action button becomes the same gold "Ускорить" CrystalButton as in
   SelectUpgradeWindow, with the active property's speed-up price. */
html body .app .garage-panel-actions > .garage-button.garage-action-mpk.has-mpk-action-timer,
html body .app .garage-panel-actions > .garage-button.garage-action-mpk.speedup {
  background-image:
    url("./assets/ui/ui-garage/mpk/bigbutton-gold/gold-up-left.png"),
    url("./assets/ui/ui-garage/mpk/bigbutton-gold/gold-up-right.png"),
    url("./assets/ui/ui-garage/mpk/bigbutton-gold/gold-up-center.png") !important;
  background-position: left top, right top, center top !important;
  background-repeat: no-repeat, no-repeat, no-repeat !important;
  background-size: 7px 50px, 7px 50px, calc(100% - 14px) 50px !important;
}

html body .app .garage-panel-actions > .garage-button.garage-action-mpk.has-mpk-action-timer:hover:not(:disabled),
html body .app .garage-panel-actions > .garage-button.garage-action-mpk.speedup:hover:not(:disabled) {
  background-image:
    url("./assets/ui/ui-garage/mpk/bigbutton-gold/gold-over-left.png"),
    url("./assets/ui/ui-garage/mpk/bigbutton-gold/gold-over-right.png"),
    url("./assets/ui/ui-garage/mpk/bigbutton-gold/gold-over-center.png") !important;
}

html body .app .garage-panel-actions > .garage-button.garage-action-mpk.has-mpk-action-timer:active:not(:disabled),
html body .app .garage-panel-actions > .garage-button.garage-action-mpk.speedup:active:not(:disabled) {
  background-image:
    url("./assets/ui/ui-garage/mpk/bigbutton-gold/gold-down-left.png"),
    url("./assets/ui/ui-garage/mpk/bigbutton-gold/gold-down-right.png"),
    url("./assets/ui/ui-garage/mpk/bigbutton-gold/gold-down-center.png") !important;
}

html body .app .garage-panel-actions > .garage-button.garage-action-mpk.has-mpk-action-timer .garage-button-label {
  display: block !important;
}

html body .app .garage-panel-actions > .garage-button.garage-action-mpk.has-mpk-action-timer > .garage-mpk-source-button-time {
  display: none !important;
}

/* MPK speed-up: if crystals are missing, both the SelectUpgradeWindow speed-up
   button and the source Garage action button are inactive. This rule is placed
   after the gold speed-up skin so the disabled state is not overwritten. */
html body .app .garage-panel-actions > .garage-button.garage-action-mpk.has-mpk-action-timer.speedup:disabled,
html body .app .garage-panel-actions > .garage-button.garage-action-mpk.speedup.not-enough:disabled {
  cursor: default !important;
  background-image:
    url("./assets/ui/ui-garage/mpk/bigbutton-grey/grey-off-left.png"),
    url("./assets/ui/ui-garage/mpk/bigbutton-grey/grey-off-right.png"),
    url("./assets/ui/ui-garage/mpk/bigbutton-grey/grey-off-center.png") !important;
  background-position: left top, right top, center top !important;
  background-repeat: no-repeat, no-repeat, no-repeat !important;
  background-size: 7px 50px, 7px 50px, calc(100% - 14px) 50px !important;
}

html body .app .garage-panel-actions > .garage-button.garage-action-mpk.has-mpk-action-timer.speedup:disabled .garage-button-label,
html body .app .garage-panel-actions > .garage-button.garage-action-mpk.speedup.not-enough:disabled .garage-button-label {
  color: #ffffff !important;
  opacity: 1 !important;
}


html body .app .garage-panel-actions.has-mpk {
  position: absolute;
  justify-content: flex-start !important;
}

html body .app .garage-panel-actions.has-mpk > .garage-button.garage-action-mpk {
  position: absolute !important;
  left: 50% !important;
  right: auto !important;
  bottom: 0 !important;
  margin: 0 !important;
  transform: translateX(-50%) !important;
  z-index: 4;
}

html body .app .garage-panel-actions.has-mpk > .garage-button.garage-action-buy:not(:last-child),
html body .app .garage-panel-actions.has-mpk > .garage-button.garage-action-upgrade,
html body .app .garage-panel-actions.has-mpk > .garage-button.garage-action-open {
  margin-right: 0 !important;
}

html body .app .garage-panel-actions.has-mpk > .garage-button.garage-action-mount,
html body .app .garage-panel-actions.has-mpk > .garage-button.garage-action-skin-mount,
html body .app .garage-panel-actions.has-mpk > .garage-button.garage-action-skin-buy {
  margin-left: auto !important;
}


.app .garage-upgrade-panel .garage-mod-table tbody tr[data-mod-index],
.app .garage-upgrade-panel .garage-mod-table tbody tr[data-mod-index] td,
.app .garage-upgrade-panel .garage-mod-table tbody tr[data-mod-index] .property-value {
  cursor: default;
  user-select: none;
}


.settings-overlay {
  position: fixed;
  z-index: 90;
  inset: 0;
  background: rgba(0, 0, 0, .48);
}
.settings-dialog {
  position: absolute;
  top: 70px;
  left: 50%;
  width: 444px;
  height: 650px;
  transform: translateX(-50%);
  padding: 0;
  color: #eee;
  font: 11px/14px "MyriadPro", "Myriad Pro", Arial, sans-serif;
  user-select: none;
}
.settings-header {
  position: absolute;
  z-index: 5;
  top: -25px;
  left: 50%;
  width: 188px;
  height: 43px;
  transform: translateX(-50%);
  pointer-events: none;
}
.settings-inner {
  position: absolute;
  box-sizing: border-box;
  background-color: transparent;
  background-image:
    url("./assets/ui/ui-components/inner/top-left.png"),
    url("./assets/ui/ui-components/inner/top-right.png"),
    url("./assets/ui/ui-components/inner/bottom-left.png"),
    url("./assets/ui/ui-components/inner/bottom-right.png"),
    url("./assets/ui/ui-components/inner/30_assets.windowinner.bitmaps.WindowInnerTop.png"),
    url("./assets/ui/ui-components/inner/34_assets.windowinner.bitmaps.WindowInnerBottom.png"),
    url("./assets/ui/ui-components/inner/32_assets.windowinner.bitmaps.WindowInnerLeft.png"),
    url("./assets/ui/ui-components/inner/31_assets.windowinner.bitmaps.WindowInnerRight.png");
  background-position:
    left top, right top, left bottom, right bottom,
    6px top, 6px bottom, left 6px, right 6px;
  background-repeat:
    no-repeat, no-repeat, no-repeat, no-repeat,
    repeat-x, repeat-x, repeat-y, repeat-y;
  border: 0;
}
.settings-section-title {
  position: absolute;
  left: 12px;
  height: 16px;
  color: #eee;
  font: 700 12px/16px "MyriadPro", "Myriad Pro", Arial, sans-serif;
  text-shadow: 0 1px 1px #000;
}
.settings-sound-panel {
  left: 12px;
  top: 12px;
  width: 420px;
  height: 46px;
}
.settings-volume-label {
  position: absolute;
  left: 28px;
  top: 15px;
  width: 61px;
  text-align: right;
}
.settings-background-sound {
  position: absolute !important;
  left: 294px !important;
  top: 8px !important;
  width: 112px;
}
.settings-background-sound span { line-height: 27px; }
.settings-ui-slider {
  position: absolute;
  left: 97px;
  top: 8px;
  width: 184px;
  height: 30px !important;
  margin: 0;
  padding: 0 !important;
  border: 0 !important;
  outline: 0;
  background-color: transparent !important;
  background-image:
    repeating-linear-gradient(90deg, transparent 0, transparent calc(5% - 1px), rgba(255,255,255,.38) calc(5% - 1px), rgba(255,255,255,.38) 5%),
    url("./assets/ui/tank-ui/images/446_assets.slider.slider_TRACK_LEFT.png"),
    url("./assets/ui/tank-ui/images/445_assets.slider.slider_TRACK_RIGHT.png"),
    url("./assets/ui/tank-ui/images/447_assets.slider.slider_TRACK_CENTER.png") !important;
  background-position: left 5px top 5px, left top, right top, 5px top !important;
  background-repeat: no-repeat, no-repeat, no-repeat, repeat-x !important;
  background-size: calc(100% - 11px) 20px, 5px 30px, 6px 30px, 30px 30px !important;
  box-shadow: none !important;
  -webkit-appearance: none;
  appearance: none;
  cursor: pointer;
}
.settings-ui-slider::-webkit-slider-runnable-track {
  width: 100%;
  height: 30px;
  background: transparent;
  border: 0;
}
.settings-ui-slider::-webkit-slider-thumb {
  width: 30px;
  height: 30px;
  margin-top: 0;
  border: 0;
  border-radius: 0;
  background-image:
    url("./assets/ui/tank-ui/images/443_assets.slider.slider_THUMB_LEFT.png"),
    url("./assets/ui/tank-ui/images/442_assets.slider.slider_THUMB_RIGHT.png"),
    url("./assets/ui/tank-ui/images/444_assets.slider.slider_THUMB_CENTER.png");
  background-position: left top, right top, 10px top;
  background-repeat: no-repeat, no-repeat, repeat-x;
  background-size: 10px 30px, 10px 30px, 30px 30px;
  -webkit-appearance: none;
  appearance: none;
}
.settings-ui-slider::-moz-range-track {
  height: 30px;
  background: transparent;
  border: 0;
}
.settings-ui-slider::-moz-range-thumb {
  width: 30px;
  height: 30px;
  border: 0;
  border-radius: 0;
  background-image:
    url("./assets/ui/tank-ui/images/443_assets.slider.slider_THUMB_LEFT.png"),
    url("./assets/ui/tank-ui/images/442_assets.slider.slider_THUMB_RIGHT.png"),
    url("./assets/ui/tank-ui/images/444_assets.slider.slider_THUMB_CENTER.png");
  background-position: left top, right top, 10px top;
  background-repeat: no-repeat, no-repeat, repeat-x;
  background-size: 10px 30px, 10px 30px, 30px 30px;
}
.settings-performance-title { top: 72px; }
.settings-display {
  left: 12px;
  top: 93px;
  width: 420px;
  height: 258px;
}
.settings-options {
  position: absolute;
  left: 9px;
  top: 8px;
  display: grid;
  grid-template-columns: 196px 196px;
  grid-auto-rows: 36px;
  column-gap: 16px;
  row-gap: 0;
}
.ui-checkbox.compact-check {
  position: relative;
  top: auto;
  left: auto;
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  white-space: nowrap;
}
.ui-checkbox.compact-check i {
  width: 27px;
  height: 27px;
  flex: 0 0 27px;
  background-size: 27px 27px;
}
.settings-account-title { top: 363px; }
.settings-account {
  left: 12px;
  top: 384px;
  width: 420px;
  height: 106px;
}
.settings-field {
  position: absolute;
  display: block;
  height: 30px;
  white-space: nowrap;
}
.settings-field > span {
  position: absolute;
  top: 8px;
  height: 14px;
  text-align: right;
}
.settings-field input {
  position: absolute;
  top: 0;
  height: 30px !important;
  margin: 0;
  padding: 4px 22px 4px 7px !important;
  color: #eee;
}
.settings-field input:disabled {
  color: #c9c9c9;
  opacity: .85;
}
.settings-password-1 { left: 8px; top: 8px; width: 195px; }
.settings-password-1 > span { left: 0; width: 86px; }
.settings-password-1 input { left: 97px; width: 98px; }
.settings-password-2 { left: 213px; top: 8px; width: 197px; }
.settings-password-2 > span { left: 0; width: 49px; }
.settings-password-2 input { left: 58px; width: 139px; }
.settings-email-setting { left: 8px; top: 51px; width: 284px; }
.settings-email-setting > span { left: 0; width: 86px; }
.settings-email-setting input { left: 97px; width: 187px; }
.settings-email-action {
  position: absolute;
  left: 300px;
  top: 51px;
  width: 106px;
  min-width: 106px;
}
.settings-email-status {
  position: absolute;
  left: 105px;
  top: 83px;
  right: 12px;
  height: 14px;
  overflow: hidden;
  color: #b9bab9;
  font-size: 11px;
  line-height: 14px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.settings-email-status.valid { color: #7cff52; }
.settings-email-status.pending { color: #ffd35e; }
.settings-email-status.empty { color: #b9bab9; }
.settings-pass-state,
.settings-pass-repeat-state,
.settings-email-state {
  position: absolute;
  top: 4px;
  width: 21px;
  height: 21px;
  pointer-events: none;
}
.settings-pass-state { left: 172px; }
.settings-pass-repeat-state { left: 174px; }
.settings-email-state { left: 260px; }
.settings-dialog.email-confirmed .settings-password-fields { display: none; }
.settings-change-password {
  position: absolute;
  left: 105px;
  top: 8px;
  width: 210px;
  min-width: 210px;
}
.settings-dialog.email-confirmed .settings-change-password { display: block !important; }
.settings-dialog.email-confirmed .settings-email-setting { top: 51px; }
.settings-dialog.email-confirmed .settings-email-action { display: none; }
.settings-dialog.email-confirmed .settings-email-setting input { width: 300px; }
.settings-dialog.email-confirmed .settings-email-state { left: 373px; }
.settings-control-title { top: 503px; }
.settings-controls {
  left: 12px;
  top: 524px;
  width: 420px;
  height: 78px;
}
.settings-inverse-back {
  position: absolute !important;
  left: 9px !important;
  top: 8px !important;
}
.settings-controls .battle-invite-setting {
  position: absolute !important;
  left: 9px !important;
  top: 40px !important;
  width: 280px;
}
.settings-send-news {
  position: absolute !important;
  left: 21px !important;
  bottom: 11px !important;
}
.settings-actions {
  position: absolute;
  right: 12px;
  bottom: 8px;
  display: flex;
  gap: 6px;
}
.settings-actions .ui-button {
  width: 104px;
  min-width: 104px;
}
.settings-dialog button:disabled,
.settings-dialog input:disabled + i,
.settings-dialog .ui-checkbox input:disabled + i {
  opacity: .55;
  cursor: default;
}
.settings-dialog.email-unconfirmed .settings-email-status { color: #ffd35e; }
.settings-dialog.email-undefined .settings-email-status { color: #b9bab9; }
.settings-recovery-window {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 300px;
  height: 154px;
  transform: translate(-50%, -50%);
}
.settings-recovery-title {
  position: absolute;
  left: 22px;
  top: 18px;
  width: 256px;
  height: 18px;
  color: #eee;
  font-size: 12px;
  line-height: 18px;
  text-align: center;
}
.settings-recovery-input {
  position: absolute;
  left: 45px;
  width: 210px;
  height: 30px !important;
  padding: 4px 7px !important;
}
.settings-recovery-pass { top: 45px; }
.settings-recovery-repeat { top: 79px; }
.settings-recovery-ok,
.settings-recovery-cancel {
  position: absolute;
  bottom: 10px;
  width: 96px;
  min-width: 96px;
}
.settings-recovery-ok { left: 48px; }
.settings-recovery-cancel { right: 48px; }


.settings-ui-slider-wrap {
  position: absolute;
  left: 97px;
  top: 8px;
  width: 184px;
  height: 30px;
  margin: 0;
  padding: 0;
}
.settings-slider-track {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background-image:
    url("./assets/ui/tank-ui/images/446_assets.slider.slider_TRACK_LEFT.png"),
    url("./assets/ui/tank-ui/images/447_assets.slider.slider_TRACK_CENTER.png"),
    url("./assets/ui/tank-ui/images/445_assets.slider.slider_TRACK_RIGHT.png") !important;
  background-position: left top, 5px top, right top !important;
  background-repeat: no-repeat, repeat-x, no-repeat !important;
  background-size: 5px 30px, auto 30px, 6px 30px !important;
}
.settings-slider-track::after {
  content: "";
  position: absolute;
  left: 0;
  top: 5px;
  width: 100%;
  height: 20px;
  pointer-events: none;
  background: repeating-linear-gradient(90deg, transparent 0, transparent calc(5% - 1px), rgba(255,255,255,.4) calc(5% - 1px), rgba(255,255,255,.4) 5%);
}
.settings-slider-thumb {
  position: absolute;
  z-index: 2;
  left: 0;
  top: 0;
  width: 30px;
  height: 30px;
  pointer-events: none;
  background-image:
    url("./assets/ui/tank-ui/images/443_assets.slider.slider_THUMB_LEFT.png"),
    url("./assets/ui/tank-ui/images/444_assets.slider.slider_THUMB_CENTER.png"),
    url("./assets/ui/tank-ui/images/442_assets.slider.slider_THUMB_RIGHT.png") !important;
  background-position: left top, 10px top, right top !important;
  background-repeat: no-repeat, repeat-x, no-repeat !important;
  background-size: 10px 30px, auto 30px, 10px 30px !important;
}
.settings-ui-slider-wrap .settings-ui-slider {
  position: absolute !important;
  z-index: 3;
  inset: 0 !important;
  left: 0 !important;
  top: 0 !important;
  width: 184px !important;
  height: 30px !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  opacity: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  cursor: pointer;
  -webkit-appearance: none !important;
  appearance: none !important;
}
.settings-ui-slider-wrap .settings-ui-slider::-webkit-slider-runnable-track,
.settings-ui-slider-wrap .settings-ui-slider::-webkit-slider-thumb,
.settings-ui-slider-wrap .settings-ui-slider::-moz-range-track,
.settings-ui-slider-wrap .settings-ui-slider::-moz-range-thumb {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}
.settings-field input {
  border: 0 !important;
  border-radius: 0 !important;
  outline: 0 !important;
  background-color: transparent !important;
  background-image:
    url("./assets/ui/ui-components/input/27_assets.input.InputLeft.png"),
    url("./assets/ui/ui-components/input/29_assets.input.InputCenter.png"),
    url("./assets/ui/ui-components/input/25_assets.input.InputRight.png") !important;
  background-position: left top, 5px top, right top !important;
  background-repeat: no-repeat, repeat-x, no-repeat !important;
  background-size: 5px 30px, auto 30px, 5px 30px !important;
  box-shadow: none !important;
  -webkit-appearance: none !important;
  appearance: none !important;
}
.settings-field input.invalid {
  background-image:
    url("./assets/ui/ui-components/input/26_assets.input.InputLeftWrong.png"),
    url("./assets/ui/ui-components/input/28_assets.input.InputCenterWrong.png"),
    url("./assets/ui/ui-components/input/24_assets.input.InputRightWrong.png") !important;
}
.settings-dialog.email-confirmed .settings-account {
  height: 66px;
}
.settings-dialog.email-confirmed .settings-password-fields,
.settings-dialog.email-confirmed .settings-email-setting,
.settings-dialog.email-confirmed .settings-email-action,
.settings-dialog.email-confirmed .settings-email-status {
  display: none !important;
}
.settings-dialog.email-confirmed .settings-change-password {
  display: block !important;
  left: 105px;
  top: 16px;
}
.settings-dialog.email-unconfirmed .settings-password-fields,
.settings-dialog.email-unconfirmed .settings-change-password {
  display: none !important;
}
.settings-dialog.email-unconfirmed .settings-email-setting {
  top: 15px;
}
.settings-dialog.email-unconfirmed .settings-email-action {
  top: 15px;
}
.settings-dialog.email-unconfirmed .settings-email-status {
  top: 47px;
}



.settings-slider-track {
  background-image:
    url("./assets/ui/tank-ui/images/446_assets.slider.slider_TRACK_LEFT.png"),
    url("./assets/ui/tank-ui/images/447_assets.slider.slider_TRACK_CENTER.png"),
    url("./assets/ui/tank-ui/images/445_assets.slider.slider_TRACK_RIGHT.png") !important;
  background-position: left top, 5px top, right top !important;
  background-repeat: no-repeat, no-repeat, no-repeat !important;
  background-size: 5px 30px, calc(100% - 11px) 30px, 6px 30px !important;
}
.settings-slider-track::after {
  left: 5px !important;
  width: calc(100% - 11px) !important;
}
.settings-slider-thumb {
  background-image:
    url("./assets/ui/tank-ui/images/443_assets.slider.slider_THUMB_LEFT.png"),
    url("./assets/ui/tank-ui/images/444_assets.slider.slider_THUMB_CENTER.png"),
    url("./assets/ui/tank-ui/images/442_assets.slider.slider_THUMB_RIGHT.png") !important;
  background-position: left top, 10px top, right top !important;
  background-repeat: no-repeat, no-repeat, no-repeat !important;
  background-size: 10px 30px, calc(100% - 20px) 30px, 10px 30px !important;
}
.settings-field input,
.settings-recovery-input {
  border: 0 !important;
  border-radius: 0 !important;
  outline: 0 !important;
  background-color: transparent !important;
  background-image:
    url("./assets/ui/ui-components/input/27_assets.input.InputLeft.png"),
    url("./assets/ui/ui-components/input/29_assets.input.InputCenter.png"),
    url("./assets/ui/ui-components/input/25_assets.input.InputRight.png") !important;
  background-position: left top, 5px top, right top !important;
  background-repeat: no-repeat, no-repeat, no-repeat !important;
  background-size: 5px 30px, calc(100% - 10px) 30px, 5px 30px !important;
  box-shadow: none !important;
  -webkit-appearance: none !important;
  appearance: none !important;
}
.settings-field input.invalid,
.settings-recovery-input.invalid {
  background-image:
    url("./assets/ui/ui-components/input/26_assets.input.InputLeftWrong.png"),
    url("./assets/ui/ui-components/input/28_assets.input.InputCenterWrong.png"),
    url("./assets/ui/ui-components/input/24_assets.input.InputRightWrong.png") !important;
  background-position: left top, 5px top, right top !important;
  background-repeat: no-repeat, no-repeat, no-repeat !important;
  background-size: 5px 30px, calc(100% - 10px) 30px, 5px 30px !important;
}
.settings-email-status:empty { display: none !important; }
.settings-email-state:not(.valid):not(.invalid):not(.progress) { display: none !important; }
.settings-email-state.valid,
.settings-email-state.invalid,
.settings-email-state.progress { display: block !important; }



.settings-slider-thumb {
  box-sizing: border-box !important;
  padding: 0 10px !important;
  overflow: visible !important;
  background-image: url("./assets/ui/tank-ui/images/444_assets.slider.slider_THUMB_CENTER.png") !important;
  background-position: left top !important;
  background-repeat: repeat-x !important;
  background-size: auto auto !important;
  background-origin: content-box !important;
  background-clip: content-box !important;
}
.settings-slider-thumb::before,
.settings-slider-thumb::after {
  content: "";
  position: absolute;
  z-index: 3;
  top: 0;
  width: 10px;
  height: 30px;
  pointer-events: none;
  background-repeat: no-repeat !important;
  background-size: auto auto !important;
}
.settings-slider-thumb::before {
  left: 0;
  background-image: url("./assets/ui/tank-ui/images/443_assets.slider.slider_THUMB_LEFT.png") !important;
  background-position: left top !important;
}
.settings-slider-thumb::after {
  right: 0;
  background-image: url("./assets/ui/tank-ui/images/442_assets.slider.slider_THUMB_RIGHT.png") !important;
  background-position: right top !important;
}


/* 2026-07-07 v5: SettingsWindow layout polish.
   Battle invite checkbox is placed under the first control checkbox;
   dialog height is increased so controls, news checkbox and buttons do not overlap. */
.settings-dialog {
  top: max(24px, calc((100vh - 650px) / 2)) !important;
  height: 650px !important;
}
.settings-controls {
  height: 78px !important;
}
.settings-controls .settings-inverse-back {
  left: 9px !important;
  top: 8px !important;
}
.settings-controls .battle-invite-setting {
  left: 9px !important;
  top: 40px !important;
  width: 310px !important;
}
.settings-send-news {
  bottom: 12px !important;
}
.settings-actions {
  bottom: 9px !important;
}
@media (max-height: 720px) {
  .settings-dialog {
    top: 18px !important;
    transform: translateX(-50%) scale(.96);
    transform-origin: top center;
  }
}



.settings-dialog {
  top: max(16px, calc((100vh - 760px) / 2)) !important;
  height: 760px !important;
}
.settings-control-title { top: 503px !important; }
.settings-controls {
  top: 524px !important;
  height: 178px !important;
}
.settings-controls .settings-mouse-control {
  position: absolute !important;
  left: 9px !important;
  top: 8px !important;
  width: 210px !important;
}
.settings-mouse-sensitivity-row {
  position: absolute;
  left: 9px;
  top: 35px;
  width: 390px;
  height: 26px;
}
.settings-mouse-sensitivity-label {
  position: absolute;
  left: 0;
  top: 4px;
  width: 150px;
  text-align: left;
}
.settings-mouse-sensitivity-wrap {
  position: absolute !important;
  left: 150px !important;
  top: 0 !important;
  width: 184px !important;
  height: 30px !important;
}
.settings-controls .settings-mouse-y-inverse {
  position: absolute !important;
  left: 9px !important;
  top: 64px !important;
  width: 210px !important;
}
.settings-controls .settings-mouse-y-inverse-shaft {
  position: absolute !important;
  left: 9px !important;
  top: 92px !important;
  width: 360px !important;
}
.settings-controls .settings-inverse-back {
  position: absolute !important;
  left: 9px !important;
  top: 120px !important;
  width: 360px !important;
}
.settings-controls .battle-invite-setting {
  position: absolute !important;
  left: 9px !important;
  top: 148px !important;
  width: 310px !important;
}
.settings-send-news { bottom: 12px !important; }
.settings-actions { bottom: 9px !important; }
@media (max-height: 760px) {
  .settings-dialog {
    top: 12px !important;
    transform: translateX(-50%) scale(.92);
    transform-origin: top center;
  }
}

/* 2026-07-07 v6: SettingsWindow wide ui-like layout.
   Same current controls, but arranged like the original wide SettingsWindow screenshot. */
.settings-dialog {
  top: max(10px, calc((100vh - 675px) / 2)) !important;
  width: 740px !important;
  height: 675px !important;
  padding: 0 !important;
  transform: translateX(-50%) !important;
}
.settings-header {
  top: -25px !important;
  left: 50% !important;
}
.settings-inner {
  box-sizing: border-box !important;
}

.settings-sound-panel {
  left: 12px !important;
  top: 12px !important;
  width: 716px !important;
  height: 54px !important;
}
.settings-volume-label {
  left: 34px !important;
  top: 18px !important;
  width: 76px !important;
}
#settings-volume-control.settings-ui-slider-wrap {
  left: 116px !important;
  top: 12px !important;
  width: 492px !important;
  height: 30px !important;
}
.settings-ui-slider-wrap .settings-ui-slider {
  width: 100% !important;
}
.settings-background-sound {
  left: 618px !important;
  top: 12px !important;
  width: 94px !important;
}
.settings-background-sound span {
  line-height: 27px !important;
}

.settings-performance-title {
  left: 12px !important;
  top: 78px !important;
}
.settings-display {
  left: 12px !important;
  top: 99px !important;
  width: 716px !important;
  height: 204px !important;
}
.settings-options {
  left: 10px !important;
  top: 9px !important;
  width: 696px !important;
  grid-template-columns: 170px 170px 170px 170px !important;
  grid-auto-rows: 36px !important;
  column-gap: 4px !important;
  row-gap: 0 !important;
}
.settings-options .ui-checkbox.compact-check {
  width: 168px !important;
}
.settings-options .ui-checkbox.compact-check span {
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

.settings-account-title {
  left: 12px !important;
  top: 318px !important;
}
.settings-account {
  left: 12px !important;
  top: 339px !important;
  width: 716px !important;
  height: 148px !important;
}
.settings-password-1 {
  left: 12px !important;
  top: 14px !important;
  width: 328px !important;
}
.settings-password-1 > span {
  left: 0 !important;
  width: 108px !important;
}
.settings-password-1 input {
  left: 120px !important;
  width: 208px !important;
}
.settings-password-2 {
  left: 360px !important;
  top: 14px !important;
  width: 340px !important;
}
.settings-password-2 > span {
  left: 0 !important;
  width: 58px !important;
}
.settings-password-2 input {
  left: 70px !important;
  width: 270px !important;
}
.settings-email-setting {
  left: 12px !important;
  top: 57px !important;
  width: 586px !important;
}
.settings-email-setting > span {
  left: 0 !important;
  width: 108px !important;
}
.settings-email-setting input {
  left: 120px !important;
  width: 466px !important;
}
.settings-email-state {
  left: 558px !important;
}
.settings-email-action {
  left: 608px !important;
  top: 57px !important;
  width: 96px !important;
  min-width: 96px !important;
}
.settings-email-status {
  left: 132px !important;
  top: 92px !important;
  right: 16px !important;
}
.settings-change-password {
  left: 252px !important;
  top: 22px !important;
  width: 212px !important;
  min-width: 212px !important;
}
.settings-dialog.email-confirmed .settings-account {
  height: 92px !important;
}
.settings-dialog.email-confirmed .settings-change-password {
  left: 252px !important;
  top: 24px !important;
}
.settings-dialog.email-unconfirmed .settings-email-setting {
  top: 24px !important;
}
.settings-dialog.email-unconfirmed .settings-email-action {
  top: 24px !important;
}
.settings-dialog.email-unconfirmed .settings-email-status {
  top: 60px !important;
}

.settings-control-title {
  left: 12px !important;
  top: 502px !important;
}
.settings-controls {
  left: 12px !important;
  top: 523px !important;
  width: 716px !important;
  height: 118px !important;
}
.settings-controls .settings-inverse-back {
  position: absolute !important;
  left: 10px !important;
  top: 10px !important;
  width: 310px !important;
}
.settings-controls .battle-invite-setting {
  position: absolute !important;
  left: 10px !important;
  top: 44px !important;
  width: 310px !important;
}
.settings-controls .settings-mouse-control {
  position: absolute !important;
  left: 358px !important;
  top: 10px !important;
  width: 300px !important;
}
.settings-mouse-sensitivity-row {
  left: 358px !important;
  top: 38px !important;
  width: 338px !important;
  height: 30px !important;
}
.settings-mouse-sensitivity-label {
  left: 0 !important;
  top: 8px !important;
  width: 136px !important;
  text-align: left !important;
}
.settings-mouse-sensitivity-wrap {
  left: 140px !important;
  top: 0 !important;
  width: 184px !important;
}
.settings-controls .settings-mouse-y-inverse {
  position: absolute !important;
  left: 358px !important;
  top: 69px !important;
  width: 300px !important;
}
.settings-controls .settings-mouse-y-inverse-shaft {
  position: absolute !important;
  left: 358px !important;
  top: 96px !important;
  width: 345px !important;
}
.settings-send-news {
  left: 22px !important;
  bottom: 10px !important;
  width: 210px !important;
}
.settings-actions {
  right: 12px !important;
  bottom: 10px !important;
}
.settings-actions .ui-button {
  width: 96px !important;
  min-width: 96px !important;
}

@media (max-width: 780px), (max-height: 700px) {
  .settings-dialog {
    top: 10px !important;
    transform: translateX(-50%) scale(.92) !important;
    transform-origin: top center !important;
  }
}
@media (max-height: 640px) {
  .settings-dialog {
    transform: translateX(-50%) scale(.84) !important;
  }
}

/* 2026-07-07 v7: full wide SettingsWindow grid cleanup.
   Rebuilds the stretched ui-like layout instead of stretching the old narrow form. */
.settings-dialog {
  top: max(8px, calc((100vh - 720px) / 2)) !important;
  width: 750px !important;
  height: 720px !important;
  padding: 0 !important;
  transform: translateX(-50%) !important;
  overflow: visible !important;
}
.settings-header {
  top: -25px !important;
  left: 50% !important;
  transform: translateX(-50%) !important;
}
.settings-inner {
  box-sizing: border-box !important;
}

.settings-sound-panel {
  left: 12px !important;
  top: 12px !important;
  width: 726px !important;
  height: 54px !important;
}
.settings-volume-label {
  left: 36px !important;
  top: 18px !important;
  width: 74px !important;
  text-align: right !important;
}
#settings-volume-control.settings-ui-slider-wrap {
  left: 118px !important;
  top: 12px !important;
  width: 496px !important;
  height: 30px !important;
}
.settings-background-sound {
  left: 624px !important;
  top: 12px !important;
  width: 96px !important;
  height: 27px !important;
}
.settings-background-sound span {
  line-height: 27px !important;
}

.settings-performance-title {
  left: 12px !important;
  top: 80px !important;
}
.settings-display {
  left: 12px !important;
  top: 101px !important;
  width: 726px !important;
  height: 216px !important;
}
.settings-options {
  left: 11px !important;
  top: 10px !important;
  width: 704px !important;
  display: grid !important;
  grid-template-columns: 176px 176px 176px 176px !important;
  grid-auto-rows: 36px !important;
  column-gap: 0 !important;
  row-gap: 0 !important;
}
.settings-options .ui-checkbox.compact-check {
  width: 174px !important;
  height: 27px !important;
  align-items: center !important;
}
.settings-options .ui-checkbox.compact-check span {
  display: inline-block !important;
  max-width: 139px !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  line-height: 27px !important;
}

.settings-account-title {
  left: 12px !important;
  top: 332px !important;
}
.settings-account {
  left: 12px !important;
  top: 353px !important;
  width: 726px !important;
  height: 148px !important;
}
.settings-password-1 {
  left: 14px !important;
  top: 15px !important;
  width: 330px !important;
  height: 30px !important;
}
.settings-password-1 > span {
  left: 0 !important;
  top: 8px !important;
  width: 108px !important;
  text-align: right !important;
}
.settings-password-1 input {
  left: 120px !important;
  top: 0 !important;
  width: 210px !important;
}
.settings-password-2 {
  left: 370px !important;
  top: 15px !important;
  width: 338px !important;
  height: 30px !important;
}
.settings-password-2 > span {
  left: 0 !important;
  top: 8px !important;
  width: 56px !important;
  text-align: right !important;
}
.settings-password-2 input {
  left: 70px !important;
  top: 0 !important;
  width: 268px !important;
}
.settings-email-setting {
  left: 14px !important;
  top: 59px !important;
  width: 588px !important;
  height: 30px !important;
}
.settings-email-setting > span {
  left: 0 !important;
  top: 8px !important;
  width: 108px !important;
  text-align: right !important;
}
.settings-email-setting input {
  left: 120px !important;
  top: 0 !important;
  width: 468px !important;
}
.settings-email-state {
  left: 560px !important;
  top: 4px !important;
}
.settings-email-action {
  left: 612px !important;
  top: 59px !important;
  width: 96px !important;
  min-width: 96px !important;
  height: 30px !important;
}
.settings-email-status {
  left: 134px !important;
  top: 96px !important;
  right: 16px !important;
}
.settings-change-password {
  left: 257px !important;
  top: 56px !important;
  width: 212px !important;
  min-width: 212px !important;
}
.settings-dialog.email-confirmed .settings-account {
  height: 108px !important;
}
.settings-dialog.email-confirmed .settings-change-password {
  left: 257px !important;
  top: 39px !important;
}
.settings-dialog.email-confirmed .settings-email-setting,
.settings-dialog.email-confirmed .settings-email-action,
.settings-dialog.email-confirmed .settings-email-status {
  display: none !important;
}
.settings-dialog.email-unconfirmed .settings-email-setting {
  top: 31px !important;
}
.settings-dialog.email-unconfirmed .settings-email-action {
  top: 31px !important;
}
.settings-dialog.email-unconfirmed .settings-email-status {
  top: 68px !important;
}

.settings-control-title {
  left: 12px !important;
  top: 516px !important;
}
.settings-controls {
  left: 12px !important;
  top: 537px !important;
  width: 726px !important;
  height: 136px !important;
}
.settings-controls .settings-inverse-back {
  position: absolute !important;
  left: 12px !important;
  top: 14px !important;
  width: 330px !important;
  height: 27px !important;
}
.settings-controls .battle-invite-setting {
  position: absolute !important;
  left: 12px !important;
  top: 50px !important;
  width: 330px !important;
  height: 27px !important;
}
.settings-controls .settings-mouse-control {
  position: absolute !important;
  left: 368px !important;
  top: 14px !important;
  width: 330px !important;
  height: 27px !important;
}
.settings-mouse-sensitivity-row {
  position: absolute !important;
  left: 368px !important;
  top: 45px !important;
  width: 338px !important;
  height: 30px !important;
}
.settings-mouse-sensitivity-label {
  position: absolute !important;
  left: 0 !important;
  top: 8px !important;
  width: 136px !important;
  text-align: left !important;
}
.settings-mouse-sensitivity-wrap {
  position: absolute !important;
  left: 141px !important;
  top: 0 !important;
  width: 184px !important;
  height: 30px !important;
}
.settings-controls .settings-mouse-y-inverse {
  position: absolute !important;
  left: 368px !important;
  top: 78px !important;
  width: 330px !important;
  height: 27px !important;
}
.settings-controls .settings-mouse-y-inverse-shaft {
  position: absolute !important;
  left: 368px !important;
  top: 108px !important;
  width: 350px !important;
  height: 27px !important;
}
.settings-send-news {
  position: absolute !important;
  left: 24px !important;
  top: 683px !important;
  bottom: auto !important;
  width: 220px !important;
  height: 27px !important;
}
.settings-actions {
  position: absolute !important;
  right: 12px !important;
  top: 683px !important;
  bottom: auto !important;
  height: 30px !important;
  display: flex !important;
  gap: 8px !important;
}
.settings-actions .ui-button {
  width: 96px !important;
  min-width: 96px !important;
  height: 30px !important;
}

@media (max-width: 790px), (max-height: 735px) {
  .settings-dialog {
    top: 8px !important;
    transform: translateX(-50%) scale(.94) !important;
    transform-origin: top center !important;
  }
}
@media (max-height: 675px) {
  .settings-dialog {
    transform: translateX(-50%) scale(.88) !important;
  }
}


#settings-volume-control.settings-ui-slider-wrap {
  left: 118px !important;
  width: 456px !important;
}
.settings-background-sound {
  left: 592px !important;
  width: 134px !important;
}
.settings-background-sound span {
  display: inline-block !important;
  max-width: 100px !important;
  overflow: visible !important;
  text-overflow: clip !important;
  white-space: nowrap !important;
  line-height: 27px !important;
}


.game-daily-bonus-layer,
.game-daily-present-layer {
  z-index: 4900;
}
.game-daily-bonus-window,
.game-daily-present-window {
  color: #59ff32;
  font: 12px/15px Arial, Helvetica, sans-serif;
  text-shadow: none;
}
.game-daily-bonus-header,
.game-daily-present-header {
  top: -25px;
}
.game-daily-bonus-inner,
.game-daily-present-inner {
  z-index: 1;
}
.game-daily-bonus-message {
  position: absolute;
  z-index: 2;
  top: 24px;
  left: 24px;
  box-sizing: border-box;
  color: #59ff32;
  font: 12px/15px Arial, Helvetica, sans-serif;
  white-space: normal;
  overflow: visible;
}
.game-daily-bonus-items {
  position: absolute;
  z-index: 2;
  overflow: visible;
}
.game-daily-bonus-item {
  position: absolute;
  width: 200px;
  height: 130px;
  overflow: hidden;
}
.game-daily-bonus-item-bg {
  position: absolute;
  inset: 0;
  width: 200px;
  height: 130px;
  display: block;
  object-fit: fill;
  pointer-events: none;
}
.game-daily-bonus-item-preview {
  position: absolute;
  z-index: 2;
  top: 50%;
  left: 50%;
  max-width: 180px;
  max-height: 104px;
  translate: -50% -50%;
  display: block;
  object-fit: contain;
  image-rendering: auto;
  pointer-events: none;
}
.game-daily-bonus-item-preview.fallback,
.game-daily-bonus-item-preview[src*="ui-garage/inventory"] {
  width: 64px;
  height: 64px;
  max-width: 64px;
  max-height: 64px;
  image-rendering: pixelated;
}
.game-daily-bonus-item-count {
  position: absolute;
  z-index: 3;
  right: 15px;
  bottom: 10px;
  min-width: 20px;
  color: #59ff32;
  font: 16px/19px Arial, Helvetica, sans-serif;
  text-align: right;
  text-shadow: 0 1px 2px #000;
  white-space: nowrap;
  pointer-events: none;
}
.game-daily-bonus-close {
  z-index: 3;
}
.game-daily-present-window.daily-crystals {
  width: 443px;
  min-height: 0;
}
.game-daily-present-window.daily-no-supplies {
  width: 386px;
  min-height: 0;
}
.game-daily-present-window.daily-double {
  width: 307px;
  min-height: 0;
}
.game-daily-present-inner {
  top: 12px;
  left: 12px;
  right: 12px;
  bottom: 51px;
}
.game-daily-present-top,
.game-daily-present-bottom {
  position: absolute;
  z-index: 2;
  left: 24px;
  right: 24px;
  color: #59ff32;
  font: 12px/15px Arial, Helvetica, sans-serif;
  white-space: normal;
}
.game-daily-present-top {
  top: 24px;
  text-align: center;
}
.game-daily-present-picture {
  position: absolute;
  z-index: 2;
  display: block;
  object-fit: fill;
  pointer-events: none;
}
.game-daily-present-window.daily-crystals .game-daily-present-picture {
  top: 49px;
  left: 21px;
  width: 401px;
  height: 224px;
}
.game-daily-present-window.daily-no-supplies .game-daily-present-picture {
  top: 50px;
  left: 21px;
  width: 344px;
  height: 220px;
}
.game-daily-present-window.daily-double .game-daily-present-picture {
  top: 102px;
  left: 119px;
  width: 163px;
  height: 97px;
}
.game-daily-present-bottom {
  text-align: center;
}
.game-daily-present-bottom b,
.game-daily-present-bottom font {
  color: inherit;
}

.game-daily-present-bottom .game-html-font-size {
  display: inline;
}
.game-daily-present-window.daily-crystals .game-daily-present-bottom {
  top: 272px;
}
.game-daily-present-window.daily-no-supplies .game-daily-present-bottom {
  top: 272px;
}
.game-daily-present-window.daily-double .game-daily-present-bottom {
  top: 24px;
  width: 259px;
  right: auto;
  text-align: left;
}
.game-daily-present-close {
  bottom: auto;
  z-index: 3;
  translate: none;
}

.game-server-stop-layer {
  position: fixed;
  inset: 0;
  z-index: 12000;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}
.game-server-stop-layer.hidden {
  display: none;
}
.game-server-stop-alert {
  position: relative;
  box-sizing: border-box;
  min-width: 258px;
  padding: 15px;
  color: #ffffff;
  text-align: center;
  white-space: pre-line;
  font: bold 12px/15px Arial, Helvetica, sans-serif;
  text-shadow: 0 1px 1px #000000;
  background: rgba(0, 0, 0, .6);
  border-radius: 8px;
  box-shadow: 0 1px 0 rgba(255,255,255,.08) inset, 0 2px 8px rgba(0,0,0,.45);
}
.game-server-stop-label {
  min-width: 228px;
}


.app .garage-strip .garage-list-inner {
  position: absolute;
  z-index: 1;
  top: 11px;
  right: 11px;
  bottom: 11px;
  left: 11px;
  border: 0;
  border-radius: 0;
  background-color: #06260a;
  background-image:
    url("./assets/ui/ui-components/inner/top-left.png"),
    url("./assets/ui/ui-components/inner/top-right.png"),
    url("./assets/ui/ui-components/inner/bottom-left.png"),
    url("./assets/ui/ui-components/inner/bottom-right.png"),
    url("./assets/ui/ui-components/inner/30_assets.windowinner.bitmaps.WindowInnerTop.png"),
    url("./assets/ui/ui-components/inner/34_assets.windowinner.bitmaps.WindowInnerBottom.png"),
    url("./assets/ui/ui-components/inner/32_assets.windowinner.bitmaps.WindowInnerLeft.png"),
    url("./assets/ui/ui-components/inner/31_assets.windowinner.bitmaps.WindowInnerRight.png");
  background-position:
    left top, right top, left bottom, right bottom,
    6px top, 6px bottom, left 6px, right 6px;
  background-repeat:
    no-repeat, no-repeat, no-repeat, no-repeat,
    repeat-x, repeat-x, repeat-y, repeat-y;
  pointer-events: none;
}
.app .garage-strip .garage-list-inner::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 1px;
  pointer-events: none;
}


.app .garage-strip .garage-list-inner ~ .item-grid {
  z-index: 3;
  isolation: auto;
  top: 15px;
  right: 15px;
  bottom: 6px;
  left: 15px;
  border: 0;
  border-radius: 0;
  background: transparent;
  background-image: none;
  box-shadow: none;
  padding: 0 0 15px;
}
.app .garage-strip .garage-list-inner ~ .item-grid::before {
  content: none;
  display: none;
}


.app .garage-strip .item-grid {
  right: 15px;
}
.app .garage-ui-scrollbar {
  right: 15px;
  left: 15px;
}


/* 2026-07-11: final garage/create-battle CSS fixes.
   Keep restart/daily windows from the working CSS; only scope garage/shop and CreateBattle visuals. */


.app #shop-list .garage-inventory-icon,
.app #shop-list .garage-item-card .garage-inventory-icon,
.app .garage-strip #shop-list .garage-inventory-icon {
  display: none !important;
}

/* Native select fallback for CreateBattle map/theme combo: real 3-slice,
   so combo_UP_CENTER never leaks under LEFT/RIGHT transparent pixels. */
.app .battle-create-map > select,
.app .battle-create-theme > select {
  background-position: left top, right top, 7px top;
  background-repeat: no-repeat, no-repeat, no-repeat;
  background-size: 7px 30px, 33px 30px, calc(100% - 40px) 30px;
}


.app .ui-combo-button {
  background-image: url("./assets/ui/tank-ui/images/461_assets.combo.combo_UP_LEFT.png");
  background-position: left top;
  background-repeat: no-repeat;
}
.app .ui-combo-button::before {
  content: "";
  position: absolute;
  z-index: 0;
  top: 0;
  left: 7px;
  right: 33px;
  height: 30px;
  background: url("./assets/ui/tank-ui/images/462_assets.combo.combo_UP_CENTER.png") left top repeat-x;
  pointer-events: none;
}
.app .ui-combo-button::after {
  content: "";
  position: absolute;
  z-index: 0;
  top: 0;
  right: 0;
  width: 33px;
  height: 30px;
  background: url("./assets/ui/tank-ui/images/460_assets.combo.combo_UP_RIGHT.png") left top no-repeat;
  pointer-events: none;
}
.app .ui-combo-button:hover,
.app .battle-create-combo.open .ui-combo-button {
  background-image: url("./assets/ui/tank-ui/images/458_assets.combo.combo_OVER_LEFT.png");
}
.app .ui-combo-button:hover::before,
.app .battle-create-combo.open .ui-combo-button::before {
  background-image: url("./assets/ui/tank-ui/images/457_assets.combo.combo_OVER_CENTER.png");
}
.app .ui-combo-button:hover::after,
.app .battle-create-combo.open .ui-combo-button::after {
  background-image: url("./assets/ui/tank-ui/images/459_assets.combo.combo_OVER_RIGHT.png");
}
.app .battle-create-combo.open .ui-combo-button,
.app .ui-combo-button:active {
  background-image: url("./assets/ui/tank-ui/images/455_assets.combo.combo_DOWN_LEFT.png");
}
.app .battle-create-combo.open .ui-combo-button::before,
.app .ui-combo-button:active::before {
  background-image: url("./assets/ui/tank-ui/images/454_assets.combo.combo_DOWN_CENTER.png");
}
.app .battle-create-combo.open .ui-combo-button::after,
.app .ui-combo-button:active::after {
  background-image: url("./assets/ui/tank-ui/images/456_assets.combo.combo_DOWN_RIGHT.png");
}
.app .ui-combo-button > span {
  position: relative;
  z-index: 2;
}

/* CreateBattle rank slider track: center is clipped between side caps only. */
.app .ui-rank-track {
  overflow: hidden;
  background: url("./assets/ui/tank-ui/images/446_assets.slider.slider_TRACK_LEFT.png") left top no-repeat;
}
.app .ui-rank-track::before {
  content: "";
  position: absolute;
  top: 0;
  left: 5px;
  right: 6px;
  height: 30px;
  background: url("./assets/ui/tank-ui/images/447_assets.slider.slider_TRACK_CENTER.png") left top repeat-x;
}
.app .ui-rank-track::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 6px;
  height: 30px;
  background: url("./assets/ui/tank-ui/images/445_assets.slider.slider_TRACK_RIGHT.png") left top no-repeat;
}

/* CreateBattle rank slider thumb: thumb center is between its 10px caps only. */
.app .ui-rank-thumb {
  overflow: hidden;
  background: transparent;
}
.app .ui-rank-thumb::before,
.app .ui-rank-thumb::after {
  z-index: 4;
}
.app .ui-rank-thumb > img {
  z-index: 5;
}
.app .rank-drag {
  z-index: 1;
}
.app .rank-drag-left {
  left: 0;
  width: 10px;
  background: url("./assets/ui/tank-ui/images/443_assets.slider.slider_THUMB_LEFT.png") left top no-repeat;
}
.app .rank-drag-center {
  right: 10px;
  left: 10px;
  cursor: grab;
  background: url("./assets/ui/tank-ui/images/444_assets.slider.slider_THUMB_CENTER.png") left top repeat-x;
}
.app .rank-drag-right {
  right: 0;
  width: 10px;
  background: url("./assets/ui/tank-ui/images/442_assets.slider.slider_THUMB_RIGHT.png") left top no-repeat;
}


.app #chat-messages.chat-messages {
  scrollbar-width: none !important;
  -ms-overflow-style: none !important;
  padding-right: 18px !important;
}
.app #chat-messages.chat-messages::-webkit-scrollbar {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
}

.app .ui-chat-scrollbar {
  position: absolute !important;
  z-index: 12 !important;
  top: 15px !important;
  right: 15px !important;
  bottom: 47px !important;
  width: 15px !important;
  height: auto !important;
  display: flex !important;
  flex-direction: column !important;
  overflow: visible !important;
  background: transparent !important;
  pointer-events: auto !important;
  user-select: none !important;
  touch-action: none !important;
}
.app .ui-chat-scrollbar.hidden {
  display: none !important;
}


.app .ui-chat-scrollbar-arrow {
  position: relative !important;
  z-index: 3 !important;
  flex: 0 0 14px !important;
  width: 15px !important;
  height: 14px !important;
  min-width: 15px !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
  border: 0 !important;
  border-radius: 0 !important;
  background-color: transparent !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
  background-size: 15px 14px !important;
  box-shadow: none !important;
  filter: none !important;
  cursor: pointer !important;
}
.app .ui-chat-scrollbar-arrow.up {
  background-image: url("./assets/ui/ui-chat/scroll-up.png") !important;
}
.app .ui-chat-scrollbar-arrow.down {
  background-image: url("./assets/ui/ui-chat/scroll-down.png") !important;
}


.app .ui-chat-scrollbar-track {
  position: relative !important;
  z-index: 1 !important;
  flex: 1 1 auto !important;
  width: 15px !important;
  min-height: 1px !important;
  overflow: visible !important;
  background: url("./assets/ui/tank-ui/images/10_assets.scroller.TrackGreen.png") center top / 15px 1px repeat-y !important;
  pointer-events: auto !important;
}


.app .ui-chat-scrollbar-thumb {
  position: absolute !important;
  z-index: 4 !important;
  top: 0 !important;
  left: 0 !important;
  width: 15px !important;
  min-height: 18px !important;
  max-height: 100% !important;
  overflow: hidden !important;
  border: 0 !important;
  border-radius: 0 !important;
  background:
    url("./assets/ui/tank-ui/images/14_assets.scroller.ThumbTopGreen.png") center top / 15px 1px no-repeat,
    url("./assets/ui/tank-ui/images/18_assets.scroller.ThumbMiddleGreen.png") center top / 15px 1px repeat-y !important;
  box-shadow: none !important;
  cursor: grab !important;
  will-change: transform, height !important;
}
.app .ui-chat-scrollbar-thumb:active {
  cursor: grabbing !important;
}


.app .ui-chat-scrollbar {
  top: 15px !important;
  right: 15px !important;
  bottom: 62px !important; /* chat form is 47px below messages + same 15px inner margin */
  width: 15px !important;
  height: auto !important;
  display: block !important;
  overflow: visible !important;
  background: transparent !important;
}

.app .ui-chat-scrollbar-arrow {
  position: absolute !important;
  z-index: 5 !important;
  left: 0 !important;
  width: 15px !important;
  height: 14px !important;
  min-width: 15px !important;
  flex: none !important;
}
.app .ui-chat-scrollbar-arrow.up {
  top: 0 !important;
}
.app .ui-chat-scrollbar-arrow.down {
  right: auto !important;
  bottom: 0 !important;
}

.app .ui-chat-scrollbar-track {
  position: absolute !important;
  z-index: 1 !important;
  top: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  left: 0 !important;
  width: 15px !important;
  height: auto !important;
  min-height: 0 !important;
  flex: none !important;
  overflow: visible !important;
  background: transparent !important;
}

.app .ui-chat-scrollbar-track::before {
  content: "";
  position: absolute;
  z-index: 0;
  top: 14px;
  right: 0;
  bottom: 14px;
  left: 0;
  width: 15px;
  background: url("./assets/ui/tank-ui/images/10_assets.scroller.TrackGreen.png") center top / 15px 1px repeat-y;
  pointer-events: none;
}

.app .ui-chat-scrollbar-thumb {
  z-index: 4 !important;
  top: 0 !important;
  left: 0 !important;
  width: 15px !important;
  min-height: 18px !important;
  max-height: none !important;
  overflow: visible !important;
}


.app .ui-chat-scrollbar-track::before {
  transform: scaleX(-1) !important;
  transform-origin: 50% 50% !important;
}

.app .ui-chat-scrollbar-thumb {
  background: transparent !important;
}
.app .ui-chat-scrollbar-thumb::before {
  content: "";
  position: absolute;
  z-index: 0;
  inset: 0;
  background:
    url("./assets/ui/tank-ui/images/14_assets.scroller.ThumbTopGreen.png") center top / 15px 1px no-repeat,
    url("./assets/ui/tank-ui/images/18_assets.scroller.ThumbMiddleGreen.png") center top / 15px 1px repeat-y;
  transform: scaleX(-1);
  transform-origin: 50% 50%;
  pointer-events: none;
}

.app .ui-chat-scrollbar-arrow {
  transform: scaleX(-1) !important;
  transform-origin: 50% 50% !important;
}

/* 2026-07-11: Lobby chat scrollbar final margin/overlap tune.
   Keep the same 15px visual spacing as garage, but constrain the JS travel area
   so the thumb overlaps the arrow/cap sprites only slightly instead of cutting
   through the outer UI edges. */
.app .ui-chat-scrollbar {
  top: 15px !important;
  right: 15px !important;
  /* persistent chat form occupies 47px below chat-messages; +15px bottom inner margin */
  bottom: 62px !important;
  width: 15px !important;
  overflow: visible !important;
}

.app .ui-chat-scrollbar-track {
  top: 2px !important;
  right: 0 !important;
  bottom: 2px !important;
  left: 0 !important;
  width: 15px !important;
  overflow: visible !important;
}

.app .ui-chat-scrollbar-track::before {
  top: 12px !important;
  bottom: 12px !important;
  right: 0 !important;
  left: 0 !important;
  width: 15px !important;
}

.app .ui-chat-scrollbar-thumb {
  left: 0 !important;
  width: 15px !important;
  min-height: 18px !important;
  max-height: 100% !important;
  overflow: hidden !important;
}

.app .ui-chat-scrollbar-thumb::before {
  inset: 0 !important;
}

/* 2026-07-11: user-tuned lobby chat scrollbar placement.
   Keep the bar aligned to the right with 15px top/right spacing and leave room
   for the chat input at the bottom. */
.app .ui-chat-scrollbar {
    top: 15px !important;
    right: 15px !important;
    bottom: 52px !important;
    width: 15px !important;
    overflow: visible !important;
}

.app .persistent-chat .chat-messages {
    padding-right: 34px !important;
}

/* MPK action delay: an unavailable Speed Up button must use the OFF skin.
   The gold skin is shown only after the 500 ms click lock is released. */
.app .garage-mpk-source-upgrade.garage-big-button.speedup:disabled,
.garage-mpk-layer .garage-mpk-source-upgrade.garage-big-button.speedup:disabled {
  background-image: url("./assets/ui/ui-garage/mpk/bigbutton-grey/grey-off-center.png") !important;
}

.app .garage-mpk-source-upgrade.garage-big-button.speedup:disabled::before,
.garage-mpk-layer .garage-mpk-source-upgrade.garage-big-button.speedup:disabled::before {
  background-image: url("./assets/ui/ui-garage/mpk/bigbutton-grey/grey-off-left.png") !important;
}

.app .garage-mpk-source-upgrade.garage-big-button.speedup:disabled::after,
.garage-mpk-layer .garage-mpk-source-upgrade.garage-big-button.speedup:disabled::after {
  background-image: url("./assets/ui/ui-garage/mpk/bigbutton-grey/grey-off-right.png") !important;
}

.captcha-refresh {
  position: absolute;
  top: 224px;
  left: 325px;
  width: 20px;
  height: 20px;
  padding: 0;
  border: 0;
  background: transparent url("./assets/ui/auth/captcha-refresh.png") center / 20px 20px no-repeat;
  cursor: pointer;
  z-index: 2;
}
.captcha-refresh:active { transform: translateY(1px); }
.captcha-refresh:disabled { opacity: .45; cursor: default; }


.settings-options .settings-show-fps { grid-column: 1 !important; grid-row: 1 !important; }
.settings-options .settings-adaptive-fps { grid-column: 2 !important; grid-row: 1 !important; }
.settings-options .settings-show-sky { grid-column: 3 !important; grid-row: 1 !important; }
.settings-options .settings-show-battle-chat { grid-column: 4 !important; grid-row: 1 !important; }
.settings-options .settings-mini-map { grid-column: 1 !important; grid-row: 2 !important; }
.settings-options .settings-colored-fps { grid-column: 2 !important; grid-row: 2 !important; }
.settings-options .settings-auto-quality {
  grid-column: 1 / span 2 !important;
  grid-row: 3 !important;
  width: 350px !important;
}
.settings-options .settings-auto-quality span {
  max-width: 315px !important;
  overflow: visible !important;
  text-overflow: clip !important;
}
.settings-options .settings-shadows { grid-column: 1 !important; grid-row: 4 !important; }
.settings-options .settings-fog { grid-column: 2 !important; grid-row: 4 !important; }
.settings-options .settings-soft-particles { grid-column: 3 !important; grid-row: 4 !important; }
.settings-options .settings-antialiasing { grid-column: 4 !important; grid-row: 4 !important; }
.settings-options .settings-tank-shadows { grid-column: 2 !important; grid-row: 5 !important; }
.settings-options .settings-dust-option { grid-column: 3 !important; grid-row: 5 !important; }
.settings-options .settings-lighting { grid-column: 4 !important; grid-row: 5 !important; }

.settings-dependent-hidden,
.settings-options.auto-quality-active .settings-auto-managed {
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

/* 2026-07-22: restore the SettingsWindow dimensions lost while withdrawing
   the experimental deep-shadows pass. Keep the full automatic-quality label
   and the previously tuned controls panel geometry. */
.settings-options .ui-checkbox.compact-check.settings-auto-quality {
  grid-column: 1 / span 2 !important;
  grid-row: 3 !important;
  width: 350px !important;
}
.settings-options .ui-checkbox.compact-check.settings-auto-quality span {
  display: inline-block !important;
  width: auto !important;
  max-width: 315px !important;
  overflow: visible !important;
  text-overflow: clip !important;
  white-space: nowrap !important;
}
.settings-control-title {
  display: none !important;
}
.settings-inner.settings-controls {
  left: 12px !important;
  top: 516px !important;
  width: 726px !important;
  height: 150px !important;
  box-sizing: border-box !important;
}
.settings-inner.settings-controls .settings-inverse-back,
.settings-inner.settings-controls .settings-mouse-control {
  top: 14px !important;
}
.settings-inner.settings-controls .battle-invite-setting {
  top: 50px !important;
}
.settings-inner.settings-controls .settings-mouse-y-inverse {
  top: 78px !important;
}
.settings-inner.settings-controls .settings-mouse-y-inverse-shaft {
  top: 109px !important;
}


/* Battle list inner frame: use the same 6px sprite-built rounded border as chat. */
.app .battle-column > .window-inner {
  background-color: #06260a !important;
  background-image:
    url("./assets/ui/ui-components/inner/top-left.png"),
    url("./assets/ui/ui-components/inner/top-right.png"),
    url("./assets/ui/ui-components/inner/bottom-left.png"),
    url("./assets/ui/ui-components/inner/bottom-right.png"),
    url("./assets/ui/ui-components/inner/30_assets.windowinner.bitmaps.WindowInnerTop.png"),
    url("./assets/ui/ui-components/inner/34_assets.windowinner.bitmaps.WindowInnerBottom.png"),
    url("./assets/ui/ui-components/inner/32_assets.windowinner.bitmaps.WindowInnerLeft.png"),
    url("./assets/ui/ui-components/inner/31_assets.windowinner.bitmaps.WindowInnerRight.png") !important;
  background-position:
    left top, right top, left bottom, right bottom,
    6px top, 6px bottom, left 6px, right 6px !important;
  background-repeat:
    no-repeat, no-repeat, no-repeat, no-repeat,
    repeat-x, repeat-x, repeat-y, repeat-y !important;
  box-shadow: none !important;
}
.app .battle-column > .window-inner::before,
.app .battle-column > .window-inner::after {
  display: none !important;
  content: none !important;
}

/* Battle info DM player list: keep the opaque green fill below the sprite-built
   inner frame. CSS paints the first background layer on top; the old order put
   WindowInnerBlink above the 6px corner sprites and hid the upper rounding. */
.app .battle-player-list.green {
  background-image:
    url("./assets/ui/ui-components/inner/top-left.png"),
    url("./assets/ui/ui-components/inner/top-right.png"),
    url("./assets/ui/ui-components/inner/bottom-left.png"),
    url("./assets/ui/ui-components/inner/bottom-right.png"),
    url("./assets/ui/ui-components/inner/30_assets.windowinner.bitmaps.WindowInnerTop.png"),
    url("./assets/ui/ui-components/inner/34_assets.windowinner.bitmaps.WindowInnerBottom.png"),
    url("./assets/ui/ui-components/inner/32_assets.windowinner.bitmaps.WindowInnerLeft.png"),
    url("./assets/ui/ui-components/inner/31_assets.windowinner.bitmaps.WindowInnerRight.png"),
    url("./assets/ui/tank-ui/sprites/DefineSprite_231_assets.windowinner.elemets.WindowInnerBlink/1.png") !important;
  background-position:
    left top, right top, left bottom, right bottom,
    6px top, 6px bottom, left 6px, right 6px,
    1px 1px !important;
  background-repeat:
    no-repeat, no-repeat, no-repeat, no-repeat,
    repeat-x, repeat-x, repeat-y, repeat-y,
    no-repeat !important;
  background-size:
    auto, auto, auto, auto,
    auto, auto, auto, auto,
    calc(100% - 2px) auto !important;
}

.settings-send-news {
  left: 24px !important;
  top: 602px !important;
  bottom: auto !important;
}
.settings-actions {
  top: 678px !important;
  bottom: auto !important;
}

.settings-inner.settings-controls .settings-mouse-control {
  top: 14px !important;
}
.settings-inner.settings-controls .settings-mouse-y-inverse {
  top: 50px !important;
}
.settings-inner.settings-controls .settings-mouse-y-inverse-shaft {
  top: 86px !important;
}
.settings-inner.settings-controls .settings-mouse-sensitivity-row {
  top: 112px !important;
}

.settings-inner.settings-controls .settings-mouse-control {
  top: 14px !important;
}
.settings-inner.settings-controls .settings-mouse-sensitivity-row {
  top: 50px !important;
}
.settings-inner.settings-controls .settings-mouse-y-inverse {
  top: 86px !important;
}
.settings-inner.settings-controls .settings-mouse-y-inverse-shaft {
  top: 122px !important;
}

.settings-dialog {
  top: max(8px, calc((100vh - 733px) / 2)) !important;
  height: 733px !important;
}
.settings-inner.settings-controls {
  height: 163px !important;
}
.settings-actions {
  top: 691px !important;
}
.rank-icon-small {
  display: inline-block !important;
  width: auto !important;
  height: auto !important;
  max-width: 15px !important;
  max-height: 15px !important;
  margin-top: 0;
  margin-bottom: 0;
  object-fit: contain !important;
  image-rendering: auto !important;
  flex: 0 0 auto !important;
  vertical-align: middle;
}

.rank-icon-slot {
  width: 18px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 18px;
  overflow: visible;
  line-height: 0;
}

.rank-icon-grid-slot {
  position: relative;
  width: 14px;
  height: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 14px;
  overflow: visible;
  line-height: 0;
}

#rank-icon {
  top: -2px !important;
  left: 2px !important;
  width: auto !important;
  height: auto !important;
  max-width: none !important;
  max-height: none !important;
  object-fit: none !important;
  object-position: 0 0 !important;
}

.profile {
  left: 62px !important;
  width: calc(100% - 726px) !important;
}

.user-context-head,
.battle-invite-user,
.game-friends-user,
.ui-score-row .callsign,
.ui-battle-action .action-user {
  align-items: center !important;
}

.game-friends-user {
  display: flex !important;
  line-height: 18px !important;
}

.game-friends-user > .rank-icon-slot {
  height: 20px;
}

.game-friends-user > b {
  min-width: 0;
  overflow: hidden;
  line-height: 18px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ui-battle-action .action-user {
  gap: 0 !important;
}

.ui-battle-action img.rank-icon-small,
.user-context-head img.rank-icon-small,
.battle-invite-user img.rank-icon-small,
.game-friends-user img.rank-icon-small {
  margin: 0 !important;
}

.app .battle-player-row > img.rank-icon-small {
  width: auto !important;
  height: auto !important;
  max-width: 15px !important;
  max-height: 15px !important;
  object-fit: none !important;
}

.app .battle-player-row.green > img.rank-icon-small,
.app .battle-player-row.red > img.rank-icon-small,
.app .battle-player-row.blue > img.rank-icon-small {
  top: 50% !important;
  left: 4px !important;
  right: auto !important;
  transform: translateY(-50%) !important;
}

.app .battle-player-row.green > span.user-context-target,
.app .battle-player-row.red > span.user-context-target,
.app .battle-player-row.blue > span.user-context-target {
  left: 18px !important;
}

.app .battle-info-ranks > .rank-icon-grid-slot {
  margin-bottom: 0;
}

.app .battle-info-ranks img.rank-icon-small {
  flex: 0 0 auto !important;
  margin: 0 !important;
}

.app .ui-rank-thumb > img.rank-icon-small {
  width: auto !important;
  height: auto !important;
  max-width: 15px !important;
  max-height: 15px !important;
}

.app .ui-rank-thumb .rank-thumb-min {
  top: 9px !important;
  left: 11px !important;
}

.app .ui-rank-thumb .rank-thumb-max {
  top: 8px !important;
  right: 11px !important;
  left: auto !important;
}

.app .ui-rank-thumb.single .rank-thumb-min {
  left: 50% !important;
}

.app .ui-combo-item > img.rank-icon-small {
  top: 50% !important;
  right: 5px !important;
  transform: translateY(-50%);
}

.app .garage-button-rank {
  align-items: center;
}

.app .garage-button-rank img.rank-icon-small {
  margin: 0 0 0 1px !important;
}

.app .garage-upgrade-panel .garage-mod-table .mod-rank.rank-icon-small,
.app .garage-mod-table .mod-rank.rank-icon-small {
  display: block !important;
  width: auto !important;
  height: auto !important;
  max-width: 15px !important;
  max-height: 15px !important;
  margin: 0 auto !important;
}

.game-referral-stat-row .game-referral-stat-name img.rank-icon-small {
  width: auto !important;
  height: auto !important;
  max-width: 15px !important;
  max-height: 15px !important;
  flex: 0 0 auto !important;
  margin: 0 !important;
}

.app #chat-messages .chat-rank.rank-icon-small,
.ui-battle-hud .battle-chat-rank.rank-icon-small,
.battle-chat-rank.rank-icon-small {
  width: auto !important;
  height: auto !important;
  max-width: 15px !important;
  max-height: 15px !important;
  margin-right: 2px !important;
  vertical-align: -2px !important;
}

.app .garage-required-rank {
  width: auto !important;
  height: auto !important;
  max-width: none !important;
  max-height: none !important;
  object-fit: none !important;
}

.game-rank-up-icon {
  width: auto !important;
  height: auto !important;
  max-width: 60px;
  max-height: 64px;
  object-fit: none !important;
}

.app .battle-player-row.green > img.rank-icon-small,
.app .battle-player-row.red > img.rank-icon-small,
.app .battle-player-row.blue > img.rank-icon-small {
  top: 50% !important;
  left: 4px !important;
  right: auto !important;
  width: auto !important;
  height: auto !important;
  max-width: 15px !important;
  max-height: 15px !important;
  margin: 0 !important;
  transform: translateY(-50%) !important;
}

.app .battle-player-row.green > span.user-context-target,
.app .battle-player-row.red > span.user-context-target,
.app .battle-player-row.blue > span.user-context-target,
.app .battle-player-row.green.empty > span:not(.team-cell-skin),
.app .battle-player-row.green.empty-slot > span:not(.team-cell-skin),
.app .battle-player-row.red.empty > span:not(.team-cell-skin),
.app .battle-player-row.red.empty-slot > span:not(.team-cell-skin),
.app .battle-player-row.blue.empty > span:not(.team-cell-skin),
.app .battle-player-row.blue.empty-slot > span:not(.team-cell-skin) {
  top: 50% !important;
  bottom: auto !important;
  left: 18px !important;
  right: 38px !important;
  height: 14px !important;
  margin: 0 !important;
  padding: 0 !important;
  display: block !important;
  line-height: 14px !important;
  transform: translateY(-50%) !important;
}

.app .battle-player-row.green > b,
.app .battle-player-row.red > b,
.app .battle-player-row.blue > b {
  top: 50% !important;
  bottom: auto !important;
  right: 15px !important;
  width: 120px !important;
  height: 14px !important;
  margin: 0 !important;
  padding: 0 !important;
  display: block !important;
  line-height: 14px !important;
  text-align: right !important;
  transform: translateY(-50%) !important;
}

.app .battle-player-list.red {
  background-image:
    url("./assets/ui/ui-components/inner/top-left.png"),
    url("./assets/ui/ui-components/inner/top-right.png"),
    url("./assets/ui/ui-components/inner/bottom-left.png"),
    url("./assets/ui/ui-components/inner/bottom-right.png"),
    url("./assets/ui/ui-components/inner/30_assets.windowinner.bitmaps.WindowInnerTop.png"),
    url("./assets/ui/ui-components/inner/34_assets.windowinner.bitmaps.WindowInnerBottom.png"),
    url("./assets/ui/ui-components/inner/32_assets.windowinner.bitmaps.WindowInnerLeft.png"),
    url("./assets/ui/ui-components/inner/31_assets.windowinner.bitmaps.WindowInnerRight.png"),
    url("./assets/ui/tank-ui/sprites/DefineSprite_231_assets.windowinner.elemets.WindowInnerBlink/3.png") !important;
  background-position:
    left top, right top, left bottom, right bottom,
    6px top, 6px bottom, left 6px, right 6px,
    1px 1px !important;
  background-repeat:
    no-repeat, no-repeat, no-repeat, no-repeat,
    repeat-x, repeat-x, repeat-y, repeat-y,
    no-repeat !important;
  background-size:
    auto, auto, auto, auto,
    auto, auto, auto, auto,
    calc(100% - 2px) auto !important;
}
.app .battle-player-list.blue {
  background-image:
    url("./assets/ui/ui-components/inner/top-left.png"),
    url("./assets/ui/ui-components/inner/top-right.png"),
    url("./assets/ui/ui-components/inner/bottom-left.png"),
    url("./assets/ui/ui-components/inner/bottom-right.png"),
    url("./assets/ui/ui-components/inner/30_assets.windowinner.bitmaps.WindowInnerTop.png"),
    url("./assets/ui/ui-components/inner/34_assets.windowinner.bitmaps.WindowInnerBottom.png"),
    url("./assets/ui/ui-components/inner/32_assets.windowinner.bitmaps.WindowInnerLeft.png"),
    url("./assets/ui/ui-components/inner/31_assets.windowinner.bitmaps.WindowInnerRight.png"),
    url("./assets/ui/tank-ui/sprites/DefineSprite_231_assets.windowinner.elemets.WindowInnerBlink/2.png") !important;
  background-position:
    left top, right top, left bottom, right bottom,
    6px top, 6px bottom, left 6px, right 6px,
    1px 1px !important;
  background-repeat:
    no-repeat, no-repeat, no-repeat, no-repeat,
    repeat-x, repeat-x, repeat-y, repeat-y,
    no-repeat !important;
  background-size:
    auto, auto, auto, auto,
    auto, auto, auto, auto,
    calc(100% - 2px) auto !important;
}
#battle-score-exit-button {
    border-left-width: 6px !important;
    border-right-width: 6px !important;
}

.ui-score-row.green,
.ui-score-row.red,
.ui-score-row.blue {
  align-items: start;
}

.ui-score-row.green > span:not(.ui-score-line-skin),
.ui-score-row.red > span:not(.ui-score-line-skin),
.ui-score-row.blue > span:not(.ui-score-line-skin) {
  display: flex;
  height: 18px;
  align-items: center;
  line-height: 18px;
  transform: none;
}

.ui-score-row.green .callsign,
.ui-score-row.red .callsign,
.ui-score-row.blue .callsign {
  height: 18px;
  justify-content: flex-start;
  line-height: 18px;
}

.ui-score-row.green .score,
.ui-score-row.green .kills,
.ui-score-row.green .deaths,
.ui-score-row.green .ratio,
.ui-score-row.green .reward,
.ui-score-row.red .score,
.ui-score-row.red .kills,
.ui-score-row.red .deaths,
.ui-score-row.red .ratio,
.ui-score-row.red .reward,
.ui-score-row.blue .score,
.ui-score-row.blue .kills,
.ui-score-row.blue .deaths,
.ui-score-row.blue .ratio,
.ui-score-row.blue .reward {
  justify-content: flex-end;
}

.ui-score-row.green .rank-icon-slot,
.ui-score-row.red .rank-icon-slot,
.ui-score-row.blue .rank-icon-slot,
.ui-score-row.green .score-player-name,
.ui-score-row.red .score-player-name,
.ui-score-row.blue .score-player-name {
  height: 18px;
  align-self: center;
  line-height: 18px;
}

.ui-score-header,
.ui-score-header.red,
.ui-score-header.blue {
  color: #fff;
  font: 400 12px/18px MTanksMyriadPro, MyriadPro, Arial, sans-serif;
}

.ui-score-header > span:not(.ui-score-line-skin) {
  height: 18px;
  display: flex;
  align-items: center;
  line-height: 18px;
}

.ui-score-header .score,
.ui-score-header .kills,
.ui-score-header .deaths,
.ui-score-header .ratio,
.ui-score-header .reward {
  justify-content: flex-end;
}

.ui-score-header {
  color: #014601;
}

.ui-score-header.red {
  color: #470800;
}

.ui-score-header.blue {
  color: #002d46;
}

html,
body,
body *,
body *::before,
body *::after,
button,
input,
select,
textarea,
option {
  font-family: "MTanksMyriadPro", "MyriadPro", "Myriad Pro", Arial, sans-serif !important;
  font-synthesis: none !important;
}

@font-face {
  font-family: "MyriadPro";
  src: url("./assets/font/MyriadProB_MyriadPro.ttf") format("truetype");
  font-style: normal;
  font-weight: 400;
  font-display: block;
}

html,
body,
body *,
body *::before,
body *::after,
button,
input,
select,
textarea,
option,
input::placeholder,
textarea::placeholder {
  font-family: "MyriadPro", "MyriadPro", "Myriad Pro", Arial, sans-serif !important;
  font-synthesis: none !important;
}

@font-face {
  font-family: "Source Sans 3";
  src: url("./assets/font/SourceSans3-Regular.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: block;
}

@font-face {
  font-family: "Source Sans 3";
  src: url("./assets/font/SourceSans3-Bold.woff2") format("woff2");
  font-style: normal;
  font-weight: 700;
  font-display: block;
}

html,
body,
body *,
body *::before,
body *::after,
button,
input,
select,
textarea,
option,
input::placeholder,
textarea::placeholder {
  font-family: "Source Sans 3", Arial, sans-serif !important;
  font-synthesis: none !important;
}
