:root {
  --bg: #0b1022;
  --card: rgba(19, 27, 56, 0.82);
  --accent: #43f6ff;
  --text: #eef4ff;
  --bae-font: "Rubik", "Segoe UI", system-ui, sans-serif;
  --bae-font-body: "Rubik", "Segoe UI", system-ui, sans-serif;
  --bae-font-head: "Unbounded", "Rubik", "Segoe UI", system-ui, sans-serif;
}
* {
  box-sizing: border-box;
}
body.bae-app {
  margin: 0;
  font-family: var(--bae-font-body);
  color: var(--text);
  min-height: 100vh;
  min-height: 100dvh;
  overflow-x: hidden;
  -webkit-tap-highlight-color: rgba(67, 246, 255, 0.15);
  touch-action: manipulation;
  padding-top: env(safe-area-inset-top, 0px);
  padding-left: env(safe-area-inset-left, 0px);
  padding-right: env(safe-area-inset-right, 0px);
  background-color: #070b18;
  background-image: linear-gradient(180deg, rgba(7, 11, 24, 0.88) 0%, rgba(7, 11, 24, 0.72) 40%, rgba(7, 11, 24, 0.9) 100%), var(--bae-bg-image, none);
  background-size: cover;
  background-position: center top;
  background-attachment: fixed;
}
.bae-app h1,
.bae-app h2,
.bae-app h3,
.bae-app h4,
.bae-app h5,
.bae-app h6,
.brand h1,
.scene-title,
.scene-title--hero,
.arena-scene-title,
.bae-item-tooltip__title,
.bae-arcade-card__title,
.arena-primary-actions__title,
.arena-glass-title,
.bae-strip-title,
.bae-help-title,
.bae-purchase-modal__title,
.bae-fight-result-modal__title,
.bae-auth-title,
.bae-auth-h2,
.bae-style-card__title,
.bae-settings-title,
.bae-reg-popup__title,
.bae-tutorial h3,
.bae-player-title,
.bae-title-mini,
.bae-pv-title {
  font-family: var(--bae-font-head);
}
.shake {
  animation: shake 0.22s linear;
}
@keyframes shake {
  0% { transform: translate(0, 0); }
  25% { transform: translate(-3px, 1px); }
  50% { transform: translate(3px, -1px); }
  75% { transform: translate(-2px, 0); }
  100% { transform: translate(0, 0); }
}
.bg-glow {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(circle at 80% 10%, rgba(67, 246, 255, 0.12), transparent 40%),
    radial-gradient(circle at 20% 80%, rgba(255, 62, 242, 0.1), transparent 40%);
  animation: pulse 5s infinite alternate;
  z-index: 0;
}
@keyframes pulse {
  from { opacity: 0.45; }
  to { opacity: 0.95; }
}
#fxCanvas {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 1;
}
#hitFlash {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.28), rgba(255, 0, 87, 0.06) 45%, transparent 72%);
  opacity: 0;
  transition: opacity 120ms ease;
  z-index: 3;
}
#hitFlash.active {
  opacity: 1;
}
.topbar {
  position: relative;
  z-index: 8;
  width: 100%;
  overflow: visible;
  padding: 8px max(10px, env(safe-area-inset-right)) 10px max(10px, env(safe-area-inset-left));
  margin-bottom: 0;
  background: linear-gradient(180deg, rgba(6, 10, 24, 0.55), rgba(10, 14, 32, 0.25));
  backdrop-filter: blur(12px);
  border-bottom: none;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
}
.topbar--triple {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  grid-template-areas: "nav logo right";
  align-items: center;
  gap: 10px 16px;
}

.bae-header-nav-acc {
  grid-area: nav;
}

.bae-header-right-acc {
  grid-area: right;
}
.terrain-nav--left {
  grid-area: nav;
  justify-content: flex-start;
}
.topbar-center {
  grid-area: logo;
  justify-self: center;
  align-self: center;
  min-width: 0;
  max-width: 100%;
  overflow: visible;
}
.bae-logo-hero {
  position: relative;
  z-index: 2;
  line-height: 0;
  margin-bottom: clamp(-20px, -2.6vw, -8px);
  pointer-events: auto;
}
.topbar-right {
  grid-area: right;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
  min-width: 0;
}
.bae-lang-switcher {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px;
  border-radius: 16px;
  border: 1px solid rgba(110, 214, 255, 0.22);
  background: linear-gradient(180deg, rgba(12, 22, 46, 0.94), rgba(8, 16, 34, 0.92));
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.04);
}
.bae-lang-switcher__btn {
  min-width: 42px;
  min-height: 38px;
  padding: 0 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  background: transparent;
  color: rgba(233, 244, 255, 0.84);
  font: 800 13px/1 var(--bae-font-body);
  letter-spacing: 0.08em;
  cursor: pointer;
  transition: transform 0.16s ease, background 0.16s ease, color 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease;
}
.bae-lang-switcher__btn:hover {
  transform: translateY(-1px);
  border-color: rgba(144, 233, 255, 0.34);
  color: #f3fbff;
}
.bae-lang-switcher__btn.is-active {
  border-color: rgba(144, 233, 255, 0.48);
  background: linear-gradient(135deg, rgba(126, 244, 255, 0.22), rgba(78, 188, 255, 0.18));
  color: #ffffff;
  box-shadow: 0 0 0 1px rgba(185, 245, 255, 0.14) inset, 0 8px 20px rgba(113, 221, 255, 0.2);
}
.bae-lang-switcher--mobile {
  width: 100%;
  justify-content: center;
}
.bae-lang-switcher--mobile .bae-lang-switcher__btn {
  flex: 1 1 0;
}
.bae-auth-slot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  justify-content: flex-end;
  width: 100%;
}
.bae-top-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
  width: 100%;
}
.bae-top-action {
  padding: 8px 14px !important;
  border-radius: 12px !important;
  font-size: 12px !important;
  letter-spacing: 0.04em;
}
.bae-top-action--danger {
  background: linear-gradient(135deg, #ff8a8a, #ffb4b4) !important;
}
.topbar-right .bae-quick-strip {
  justify-content: flex-end;
}
.topbar-main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.topbar-brand-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
  justify-content: flex-start;
}
.bae-quick-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.bae-strip-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 12px;
  border: 1px solid rgba(67, 246, 255, 0.28);
  background: linear-gradient(135deg, rgba(20, 28, 60, 0.95), rgba(12, 18, 40, 0.9));
  color: #e8f4ff;
  font-family: var(--bae-font);
  font-size: 13px;
  cursor: pointer;
  box-shadow: 0 0 18px rgba(67, 246, 255, 0.12);
  transition: transform 0.15s ease, box-shadow 0.2s ease;
}
.bae-strip-chip:hover {
  transform: translateY(-1px);
  box-shadow: 0 0 22px rgba(67, 246, 255, 0.35);
}
.bae-strip-chip .bae-strip-l {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.75;
}
.bae-strip-chip strong {
  font-size: 1.05rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}
.bae-strip-static {
  cursor: default;
  opacity: 0.95;
}
.bae-strip-static:hover {
  transform: none;
}
.bae-quick-muted {
  font-size: 12px;
  opacity: 0.75;
  padding: 4px 0;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.bae-logo-hit {
  display: inline-block;
  margin: 0;
  padding: 0;
  border: 0 !important;
  background: transparent;
  box-shadow: none !important;
  cursor: pointer;
  line-height: 0;
  border-radius: 0;
  transform: none !important;
  filter: none !important;
  overflow: visible !important;
  isolation: isolate;
}
.bae-logo-hit:hover {
  transform: translateY(-1px) scale(1.01) !important;
  box-shadow: none !important;
  filter: brightness(1.04) !important;
}
.bae-logo-hit:active {
  transform: scale(0.995) !important;
}
.bae-logo-hit:focus-visible {
  outline: 2px solid rgba(67, 246, 255, 0.55);
  outline-offset: 6px;
  border-radius: 16px;
}
.brand-logo {
  height: clamp(74px, 12vw, 128px);
  width: auto;
  max-width: min(400px, 88vw);
  object-fit: contain;
  filter: drop-shadow(0 0 20px rgba(67, 246, 255, 0.55));
}
.brand-logo--center {
  height: clamp(90px, 13vw, 150px);
  max-width: min(430px, 82vw);
  width: auto;
  margin: 0 auto;
  display: block;
  filter: drop-shadow(0 8px 20px rgba(0, 0, 0, 0.45)) drop-shadow(0 0 18px rgba(67, 246, 255, 0.42))
    drop-shadow(0 0 34px rgba(255, 62, 242, 0.08));
}
.brand h1 {
  margin: 0;
  font-size: clamp(1rem, 2.5vw, 1.35rem);
  font-weight: 800;
  letter-spacing: 0.02em;
  align-self: center;
}
h2 {
  margin: 8px 0;
  font-size: 1.05rem;
}
.grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: 16px;
  padding: clamp(20px, 3.2vw, 32px) max(10px, env(safe-area-inset-left)) max(28px, env(safe-area-inset-bottom)) max(10px, env(safe-area-inset-right));
  margin: 0;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}
.bae-card--fullwidth {
  grid-column: 1 / -1;
  width: 100%;
  max-width: 100%;
}
.card {
  background: var(--card);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 16px;
  padding: 14px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35), inset 0 0 20px rgba(67, 246, 255, 0.05);
}
.row {
  display: flex;
  gap: 8px;
  margin-bottom: 8px;
  flex-wrap: wrap;
}
button,
input {
  border: none;
  border-radius: 10px;
  padding: 10px 12px;
  font-weight: 700;
  font-family: var(--bae-font);
}
button {
  color: #041018;
  cursor: pointer;
  background: linear-gradient(135deg, var(--accent), #8af8ff);
  box-shadow: 0 0 18px rgba(67, 246, 255, 0.35);
}
input {
  background: rgba(255, 255, 255, 0.92);
  color: #111;
  max-width: 100%;
}
.log {
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  min-height: 90px;
  max-height: 220px;
  overflow: auto;
  padding: 8px;
}
.combat-line {
  padding: 4px 6px;
  margin-bottom: 4px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  border-left: 3px solid rgba(67, 246, 255, 0.7);
}
.bar {
  height: 14px;
  border-radius: 8px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.12);
  margin-bottom: 8px;
}
.bar > span {
  display: block;
  height: 100%;
}
.health > span {
  background: linear-gradient(90deg, #ff4d4d, #ff8a6b);
}
.stamina > span {
  background: linear-gradient(90deg, #44d36d, #7effa4);
}
.small {
  opacity: 0.88;
  font-size: 13px;
}
.scene {
  position: relative;
  z-index: 2;
  margin: clamp(14px, 2.8vw, 26px) 0 14px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  min-height: 160px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: inset 0 0 30px rgba(0, 0, 0, 0.45);
  overflow: hidden;
}
.scene::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10, 14, 32, 0.35), rgba(10, 14, 32, 0.75));
  pointer-events: none;
  z-index: 0;
}
.scene-title,
.scene-fighters,
.scene-hero-pic {
  position: relative;
  z-index: 1;
}
.scene-title {
  font-weight: 800;
  letter-spacing: 0.03em;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.6);
}
.scene-page-hero {
  position: relative;
  z-index: 1;
  text-align: center;
  width: min(100%, 720px);
  min-height: 84px;
  margin: 0 auto 10px;
  padding: 10px 18px 8px;
}
.scene-page-hero--center {
  min-height: inherit;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 4px;
}
.scene-title--hero {
  font-size: clamp(1.02rem, 2vw, 1.45rem);
  line-height: 1.05;
  letter-spacing: 0.04em;
  margin: 0;
}
.scene-page-desc {
  margin: 0;
  max-width: 560px;
  font-size: clamp(0.76rem, 1.35vw, 0.88rem);
  line-height: 1.35;
  color: rgba(228, 239, 255, 0.9);
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.55);
}
@media (max-width: 760px) {
  .scene-page-hero {
    width: 100%;
    min-height: 72px;
    margin-bottom: 8px;
    padding: 8px 10px 6px;
  }
  .scene-page-hero--center {
    align-items: flex-start;
    text-align: left;
    gap: 3px;
  }
  .scene-title--hero {
    width: 100%;
    font-size: clamp(0.94rem, 5.2vw, 1.15rem);
  }
  .scene-page-desc {
    max-width: none;
    font-size: 0.74rem;
  }
}
.scene-fighters {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 4px 0 0;
}
.scene-hero-pic {
  max-height: 120px;
  width: auto;
  max-width: 45%;
  object-fit: contain;
  filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.5));
}
.scene.profile {
  border-color: rgba(153, 195, 255, 0.45);
}
.scene.match {
  border-color: rgba(255, 88, 120, 0.55);
}
.scene.training {
  border-color: rgba(114, 255, 195, 0.45);
}
.scene.work {
  border-color: rgba(255, 212, 112, 0.45);
}
.scene.leaderboard {
  border-color: rgba(255, 209, 102, 0.55);
}
.terrain-nav {
  display: flex;
  gap: 6px;
  position: relative;
  z-index: 4;
  flex-wrap: nowrap;
  align-items: stretch;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  padding-bottom: 4px;
  max-width: 100%;
}

.bae-hamburger {
  display: none;
  grid-area: nav;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  border: 1px solid rgba(67, 246, 255, 0.35);
  background: linear-gradient(135deg, rgba(67, 246, 255, 0.20), rgba(255, 62, 242, 0.12));
  color: #e8f4ff;
  font-weight: 900;
  box-shadow: 0 0 14px rgba(67, 246, 255, 0.20);
  cursor: pointer;
  z-index: 9;
}

.bae-terrain-drawer {
  position: static;
}

.bae-drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(3, 8, 18, 0.65);
  backdrop-filter: blur(6px);
  z-index: 7;
}

@media (max-width: 900px) {
  .bae-hamburger {
    display: inline-flex;
  }
  .bae-terrain-drawer {
    position: absolute;
    grid-area: nav;
    top: calc(100% + 8px);
    left: 10px;
    right: 10px;
    flex-direction: column;
    align-items: stretch;
    padding: 10px;
    border-radius: 16px;
    background: linear-gradient(180deg, rgba(10, 14, 28, 0.94), rgba(6, 10, 22, 0.92));
    border: 1px solid rgba(67, 246, 255, 0.22);
    box-shadow: 0 18px 60px rgba(0, 0, 0, 0.55);
    max-height: 72vh;
    overflow: auto;
    display: none;
  }
  .bae-terrain-drawer.is-open {
    display: flex;
  }
}
.nav-btn__emoji {
  font-size: 1rem;
  line-height: 1;
  display: block;
  text-align: center;
}
.nav-btn__emoji img {
  display: block;
  width: 18px;
  height: 18px;
  margin: 0 auto;
  object-fit: contain;
}
.nav-btn__label {
  display: block;
  text-align: center;
  font-size: clamp(0.7rem, 2vw, 0.84rem);
  font-weight: 800;
  letter-spacing: 0.04em;
  margin-top: 2px;
  white-space: nowrap;
}
@media (min-width: 520px) {
  .terrain-nav {
    flex-wrap: wrap;
    overflow: visible;
  }
  .terrain-btn {
    display: inline-flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 8px !important;
  }
  .nav-btn__emoji,
  .nav-btn__label {
    display: inline !important;
    margin-top: 0 !important;
  }
  .nav-btn__label {
    font-size: 0.8rem !important;
  }
}
@media (min-width: 900px) {
  .nav-btn__label {
    font-size: 0.82rem !important;
  }
}
.terrain-nav--inline {
  padding: 0;
  flex: 1 1 280px;
  justify-content: flex-end;
}
.scene-training-deck {
  position: relative;
  border-radius: 12px;
  padding: 12px;
  min-height: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-image:
    linear-gradient(180deg, rgba(6, 10, 22, 0.2), rgba(8, 12, 28, 0.45)),
    var(--bae-scene-art, none);
  background-size: cover;
  background-position: center;
}
.scene-work-deck {
  position: relative;
  border-radius: 12px;
  padding: 14px 16px 18px;
  min-height: min(200px, 28vh);
  display: flex;
  align-items: center;
  justify-content: center;
  background-image:
    linear-gradient(180deg, rgba(6, 10, 22, 0.2), rgba(8, 12, 28, 0.45)),
    var(--bae-work-art, none);
  background-size: cover;
  background-position: center;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
}
.scene-lb-deck {
  position: relative;
  border-radius: 12px;
  padding: 12px;
  min-height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-image:
    linear-gradient(180deg, rgba(6, 10, 22, 0.25), rgba(8, 12, 28, 0.55)),
    var(--bae-lb-art, none);
  background-size: cover;
  background-position: center top;
  box-shadow: inset 0 0 0 1px rgba(255, 209, 102, 0.08);
}
.scene-work-icons {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 28px;
  padding: 8px 0 4px;
}
.scene-work-icons--photos {
  gap: 14px;
  flex-wrap: wrap;
}
.scene-prof-thumb {
  max-height: 76px;
  width: auto;
  max-width: 32%;
  object-fit: contain;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.45);
  background: rgba(0, 0, 0, 0.2);
}
.scene-fighters--train {
  justify-content: center;
  gap: 20px;
}
.scene-cardio-ico {
  max-height: 94px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 8px 20px rgba(0, 0, 0, 0.45));
}
.scene-emoji-fallback {
  font-size: 56px;
}
.scene-lb-deck .scene-lb-hero {
  padding: 12px 8px 8px;
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.scene-lb-hero {
  text-align: center;
  font-size: 64px;
  padding: 24px;
}
.scene-lb-ico {
  max-height: 120px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 8px 24px rgba(255, 209, 102, 0.35));
}
.bae-train-banner {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  margin-bottom: 10px;
  border-radius: 12px;
  background: linear-gradient(90deg, rgba(67, 246, 255, 0.12), rgba(255, 62, 242, 0.08));
  border: 1px solid rgba(255, 255, 255, 0.12);
}
.bae-train-banner img {
  width: 56px;
  height: 56px;
  object-fit: contain;
  border-radius: 10px;
}
.bae-train-banner span {
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 12px;
  opacity: 0.9;
}
.bae-btn-ico {
  width: 22px;
  height: 22px;
  object-fit: contain;
  vertical-align: middle;
  margin-right: 4px;
}
.terrain-btn {
  background: linear-gradient(180deg, rgba(27, 39, 77, 0.94), rgba(16, 24, 50, 0.92)) !important;
}
.terrain-btn.active {
  outline: 2px solid rgba(255, 255, 255, 0.75);
}
.avatar-wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(160px, 1.2fr) minmax(0, 1fr);
  gap: 12px;
  margin-top: 12px;
  align-items: stretch;
}
.avatar-hero {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 430px;
  background: radial-gradient(ellipse at center, rgba(67, 246, 255, 0.12), transparent 70%);
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 0;
  overflow: hidden;
}
.avatar-hero img {
  width: 100%;
  height: 100%;
  max-height: none;
  object-fit: cover;
  object-position: center;
  filter: drop-shadow(0 12px 24px rgba(0, 0, 0, 0.45));
}
.equip-col {
  display: grid;
  grid-template-rows: 1fr 1fr;
  gap: 12px;
  min-height: 100%;
}
.equip-slot {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 8px;
  padding: 12px 12px 10px;
  border: 1px dashed rgba(255, 255, 255, 0.35);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  min-height: 0;
  height: 100%;
  transition: border-color .2s ease, box-shadow .2s ease, background .2s ease, transform .2s ease;
}
.equip-ico {
  width: 58px;
  height: 58px;
  object-fit: contain;
  flex-shrink: 0;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.4));
}
.equip-slot--equipped > .equip-ico {
  display: none;
}
.equip-item-head {
  display: flex;
  align-items: center;
  justify-content: flex-start;
}
.equip-ico-wrap {
  width: 72px;
  height: 72px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 18px;
  background: radial-gradient(circle at 35% 30%, rgba(255,255,255,.14), rgba(255,255,255,.03) 58%, transparent 82%);
  border: 1px solid rgba(255,255,255,.08);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.06), 0 10px 24px rgba(0,0,0,.18);
}
.equip-ico-wrap .inv-type-icon {
  width: 56px;
  height: 56px;
  object-fit: contain;
  filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.28));
}
.equip-lbl {
  font-size: 11px;
  opacity: 0.75;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.equip-val {
  font-size: 16px;
  font-weight: 700;
  word-break: break-word;
  line-height: 1.2;
}
.equip-sub {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.equip-sub-line {
  font-size: 12px;
  opacity: 0.8;
  line-height: 1.15;
}
.equip-copy {
  min-width: 0;
  width: 100%;
}
.equip-slot {
  position: relative;
  overflow: hidden;
}
.equip-slot--equipped {
  border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.04) inset,
    0 0 22px rgba(67, 246, 255, 0.12);
}
.equip-slot.bae-rarity-common,
.inv-slot.bae-rarity-common,
.bae-rarity-common {
  border-color: rgba(90, 182, 255, 0.34);
}
.equip-slot.bae-rarity-normal,
.inv-slot.bae-rarity-normal,
.bae-rarity-normal {
  border-color: rgba(90, 182, 255, 0.34);
  background: linear-gradient(165deg, rgba(22, 32, 58, 0.96), rgba(30, 46, 86, 0.9));
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,.04),
    0 0 18px rgba(90, 182, 255, 0.08);
}
.equip-slot.bae-rarity-rare,
.inv-slot.bae-rarity-rare,
.bae-rarity-rare {
  border-color: rgba(78, 214, 132, 0.58) !important;
  background: linear-gradient(165deg, rgba(18, 48, 34, 0.96), rgba(26, 68, 44, 0.9));
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,.05),
    0 0 22px rgba(78, 214, 132, 0.14);
}
.equip-slot.bae-rarity-fire,
.inv-slot.bae-rarity-fire,
.bae-rarity-fire {
  border-color: rgba(177, 112, 255, 0.64) !important;
  background: linear-gradient(165deg, rgba(42, 22, 66, 0.97), rgba(65, 32, 104, 0.9));
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,.05),
    0 0 24px rgba(177, 112, 255, 0.16);
}
.equip-slot.bae-rarity-diamond,
.inv-slot.bae-rarity-diamond,
.bae-rarity-diamond {
  border-color: rgba(255, 98, 98, 0.7) !important;
  background: linear-gradient(165deg, rgba(68, 20, 20, 0.97), rgba(104, 28, 28, 0.9));
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,.06),
    0 0 28px rgba(255, 98, 98, 0.2);
}
.equip-remove-btn {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 22px;
  height: 22px;
  border-radius: 999px !important;
  padding: 0 !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  line-height: 1;
  background: rgba(255, 77, 77, 0.95) !important;
  color: #fff !important;
  box-shadow: 0 0 14px rgba(255, 77, 77, 0.35);
  z-index: 4;
  flex: 0 0 22px;
}
@media (max-width: 900px) {
  .equip-slot {
    padding-top: 12px;
  }
  .equip-remove-btn {
    top: 8px !important;
    right: 8px !important;
    bottom: auto !important;
    left: auto !important;
    width: 26px !important;
    height: 26px !important;
    min-width: 26px !important;
    min-height: 26px !important;
    max-width: 26px !important;
    max-height: 26px !important;
    border-radius: 999px !important;
    transform: none !important;
    align-self: auto !important;
    justify-self: auto !important;
    aspect-ratio: 1 / 1;
    z-index: 5;
  }
}
.inventory-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
  margin-bottom: 8px;
  overflow: visible;
  position: relative;
  z-index: 0;
}
.bae-inventory-pager {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 10px;
}
.bae-page-chip {
  min-width: 72px;
  padding: 7px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  color: rgba(232, 240, 255, 0.88);
  font-size: 13px;
  font-weight: 800;
}
.bae-page-chip.active {
  border-color: rgba(67, 246, 255, 0.55);
  box-shadow: 0 0 0 1px rgba(67, 246, 255, 0.18) inset, 0 0 18px rgba(67, 246, 255, 0.16);
}
.inv-slot {
  height: 56px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 !important;
  background: rgba(0, 0, 0, 0.25) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  overflow: visible;
  z-index: 1;
}
.inv-slot:hover,
.inv-slot:focus-within {
  z-index: 5;
}
.inv-slot img.inv-type-icon {
  width: 36px;
  height: 36px;
  object-fit: contain;
}
.inv-slot.empty {
  opacity: 0.35;
  cursor: default;
}
.inv-slot.active {
  outline: 2px solid #ffd166;
  box-shadow: 0 0 12px rgba(255, 209, 102, 0.35);
}
.inv-slot.is-equipped {
  transform: translateY(-1px);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.08) inset,
    0 0 16px rgba(67, 246, 255, 0.18);
}
.inv-slot.bae-rarity-epic,
.bae-rarity-epic {
  border-color: rgba(177, 112, 255, 0.64) !important;
}
.inv-slot.bae-rarity-legendary,
.bae-rarity-legendary {
  border-color: rgba(255, 98, 98, 0.7) !important;
  animation: baeLegendaryGlow 1.8s ease-in-out infinite alternate;
}
.inv-price-badge {
  position: absolute;
  top: 4px;
  left: 4px;
  width: 18px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: rgba(5, 9, 20, 0.86);
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.28);
}
.inv-price-badge__ico {
  width: 11px;
  height: 11px;
}
.bae-item-info {
  position: absolute;
  top: 4px;
  right: 4px;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  cursor: help;
}
.bae-item-info__dot {
  width: 18px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: rgba(9, 14, 26, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #f4f7ff;
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
}
.bae-item-tooltip {
  position: absolute;
  top: calc(100% + 2px);
  right: 0;
  width: min(200px, calc(100vw - 24px));
  max-width: min(200px, 70vw);
  z-index: 80;
  display: none;
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(9, 13, 24, 0.98);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.42);
  color: #edf4ff;
  text-align: left;
  pointer-events: auto;
  word-break: break-word;
}
.bae-item-tooltip::before {
  content: "";
  position: absolute;
  top: -5px;
  right: 10px;
  width: 10px;
  height: 10px;
  transform: rotate(45deg);
  background: rgba(9, 13, 24, 0.98);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  border-left: 1px solid rgba(255, 255, 255, 0.12);
}
.bae-item-tooltip__title {
  display: block;
  margin-bottom: 4px;
  font-size: 13px;
  line-height: 1.3;
  color: #fff;
}
.bae-item-tooltip__meta {
  display: block;
  margin-bottom: 8px;
  font-size: 11px;
  color: #a9b8d3;
}
.bae-item-tooltip__row {
  display: block;
  font-size: 12px;
  line-height: 1.45;
  color: #e8f0ff;
}
.bae-item-info:hover .bae-item-tooltip,
.bae-item-info:focus-within .bae-item-tooltip,
.bae-item-info--open .bae-item-tooltip {
  display: block;
}
.qty {
  position: absolute;
  bottom: 2px;
  right: 4px;
  font-size: 11px;
  color: #041018;
  background: #fff;
  border-radius: 6px;
  padding: 0 4px;
  font-weight: 800;
}
.inv-eq {
  position: absolute;
  left: 6px;
  bottom: 6px;
  font-size: 11px;
  min-width: 18px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0 4px;
  background: linear-gradient(135deg, rgba(96, 255, 168, 0.94), rgba(67, 246, 255, 0.88));
  border: 1px solid rgba(236, 255, 246, 0.9);
  color: #041018;
  font-weight: 900;
  box-shadow: 0 0 0 1px rgba(7, 13, 27, 0.78), 0 6px 14px rgba(67, 246, 255, 0.22);
  z-index: 3;
}
.inv-eq span {
  transform: translateY(-1px);
}
.inv-details-line {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 12px;
  margin-bottom: 8px;
}
.inv-details-line--muted {
  opacity: 0.86;
}
.inv-details-panel {
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.14);
  min-height: 72px;
  box-sizing: border-box;
}
.inv-details-panel--empty {
  opacity: 0.88;
  font-size: 13px;
}
.bae-inv-detail-btn {
  margin-top: 12px;
  width: 100%;
  padding: 10px 14px !important;
  border-radius: 10px !important;
  font-weight: 700 !important;
  background: rgba(67, 246, 255, 0.12) !important;
  border: 1px solid rgba(67, 246, 255, 0.35) !important;
  color: #e8f4ff !important;
}
.bae-shop-empty {
  padding: 14px 16px;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.2);
  border: 1px dashed rgba(255, 255, 255, 0.15);
  font-size: 14px;
  line-height: 1.5;
  max-width: 100%;
}
.bae-inventory-actions {
  gap: 14px;
  margin-top: 14px;
}
.bae-inventory-actions button {
  padding-inline: 20px !important;
}
.bae-inv-expand {
  margin-top: 10px;
}
.bae-inv-expand .bae-mini-btn {
  width: 100%;
  padding: 10px 14px;
  border-radius: 10px;
  border: 1px solid rgba(67, 246, 255, 0.35);
  background: rgba(67, 246, 255, 0.08);
  color: #e9f6ff;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.02em;
}
.bae-inv-expand .bae-mini-btn:hover {
  background: rgba(67, 246, 255, 0.12);
  border-color: rgba(138, 248, 255, 0.7);
}
.bae-inv-expand .bae-mini-btn:disabled {
  opacity: 0.75;
  color: rgba(233, 246, 255, 0.92);
  background: rgba(20, 30, 54, 0.75);
  border-color: rgba(138, 160, 210, 0.5);
  cursor: not-allowed;
}
.bae-vip-time-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 2px 8px;
  border-radius: 8px;
  background: rgba(255, 77, 77, 0.12);
  border: 1px solid rgba(255, 77, 77, 0.6);
  color: rgba(255, 230, 230, 0.98);
  font-weight: 900;
  letter-spacing: 0.02em;
  margin: 0 6px;
  box-shadow: 0 8px 18px rgba(255, 77, 77, 0.12);
}
/* Икони пари / енерджи */
.bae-ico-money,
.bae-ico-energy {
  width: 1.15em;
  height: 1.15em;
  max-width: 22px;
  max-height: 22px;
  object-fit: contain;
  vertical-align: -0.2em;
  flex-shrink: 0;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.45));
}
.bae-ico-money-fallback,
.bae-ico-energy-fallback {
  font-weight: 800;
  opacity: 0.95;
}
.bae-pill-cash--ico {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.bae-pill-cash-val {
  font-variant-numeric: tabular-nums;
}
.bae-bar-hd-l {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.bae-bar-hd-ico {
  width: 16px;
  height: 16px;
  object-fit: contain;
}
.bae-strip-l--ico {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.2em;
}
.bae-strip-money {
  width: 15px;
  height: 15px;
  max-width: 18px;
  max-height: 18px;
}
.inv-type-icon--energy {
  filter: drop-shadow(0 0 6px rgba(255, 200, 100, 0.45));
}
.inv-type-emoji {
  font-size: 1.35rem;
  line-height: 1;
}

/* Магазин — карти */
.bae-lootbox-row {
  margin: 0 0 16px;
}
.bae-lootbox-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px 14px;
  padding: 14px 18px !important;
  border-radius: 14px !important;
  border: 1px solid rgba(255, 209, 102, 0.45) !important;
  background: linear-gradient(135deg, rgba(255, 209, 102, 0.22), rgba(255, 62, 242, 0.12)) !important;
  color: #fff8e8 !important;
  font-weight: 800 !important;
  letter-spacing: 0.04em;
  box-shadow:
    0 0 24px rgba(255, 209, 102, 0.25),
    inset 0 1px 0 rgba(255, 255, 255, 0.2) !important;
  transition: transform 0.15s ease, box-shadow 0.2s ease, filter 0.2s ease !important;
}
.bae-lootbox-btn:hover {
  transform: translateY(-2px) scale(1.01);
  filter: brightness(1.08);
  box-shadow:
    0 0 32px rgba(255, 209, 102, 0.4),
    0 8px 24px rgba(0, 0, 0, 0.35) !important;
}
.bae-lootbox-btn--vip {
  border-color: rgba(255, 106, 213, 0.55) !important;
  background: linear-gradient(135deg, rgba(255, 106, 213, 0.26), rgba(117, 109, 255, 0.2)) !important;
}
.bae-lootbox-gift {
  font-size: 1.35rem;
  line-height: 1;
}
.bae-lootbox-gift img {
  display: block;
  width: 22px;
  height: 22px;
  object-fit: contain;
}
.bae-lootbox-txt {
  font-size: 1rem;
}
.bae-lootbox-price {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.15);
  font-variant-numeric: tabular-nums;
}
.bae-lootbox-money {
  width: 18px;
  height: 18px;
}

.bae-shop-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(132px, 1fr));
  gap: 8px;
  margin-top: 4px;
}
.bae-shop-card {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 8px 10px;
  border-radius: 10px;
  background: linear-gradient(165deg, rgba(18, 32, 58, 0.95), rgba(24, 38, 72, 0.88));
  border: 1px solid rgba(67, 246, 255, 0.2);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.05),
    0 12px 28px rgba(0, 0, 0, 0.35);
  transition: transform 0.15s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  overflow: visible;
  position: relative;
  z-index: 1;
}
.bae-shop-card:hover {
  z-index: 4;
  transform: translateY(-3px);
  border-color: rgba(67, 246, 255, 0.38);
  box-shadow:
    0 0 28px rgba(67, 246, 255, 0.12),
    0 16px 36px rgba(0, 0, 0, 0.4);
}
.bae-shop-card__visual {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  border-radius: 8px;
  background: radial-gradient(ellipse at center, rgba(67, 246, 255, 0.12), transparent 65%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  position: relative;
}
.bae-shop-card__visual .inv-type-icon,
.bae-shop-card__visual .inv-type-emoji {
  width: 34px;
  height: 34px;
  object-fit: contain;
}
.bae-shop-card__visual .inv-type-emoji {
  font-size: 1.65rem;
}
.bae-item-info--shop {
  top: 8px;
  right: 8px;
}
.bae-item-info--shop .bae-item-info__dot {
  width: 20px;
  height: 20px;
}
.bae-shop-card__name {
  margin: 0;
  font-size: 0.84rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  line-height: 1.2;
}
.bae-shop-card__meta {
  font-size: 0.68rem;
  opacity: 0.82;
  margin-top: 2px;
}
.bae-shop-card__meta--stats {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 8px;
  line-height: 1.35;
}
.bae-shop-card__buy {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: auto;
  padding-top: 0;
}
.bae-shop-price {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  font-size: 0.82rem;
  color: #c8ffd8;
}
.bae-shop-price-ico {
  width: 17px;
  height: 17px;
}
.bae-shop-btn {
  flex: 1 1 auto;
  min-width: min(72px, 38%);
  padding: 6px 8px !important;
  border-radius: 8px !important;
  font-weight: 800 !important;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-size: 0.68rem !important;
  background: linear-gradient(135deg, #43f6ff, #8af8ff) !important;
  color: #041018 !important;
  border: 1px solid rgba(255, 255, 255, 0.35) !important;
  box-shadow:
    0 0 20px rgba(67, 246, 255, 0.45),
    0 4px 14px rgba(0, 0, 0, 0.3) !important;
  transition: transform 0.12s ease, filter 0.15s ease, box-shadow 0.2s ease !important;
}
.bae-shop-btn:hover {
  transform: translateY(-2px) scale(1.02);
  filter: brightness(1.08);
  box-shadow:
    0 0 28px rgba(67, 246, 255, 0.6),
    0 8px 20px rgba(0, 0, 0, 0.35) !important;
}
.bae-shop-btn:active {
  transform: scale(0.98);
}
.bae-job-payline-cash {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.bae-job-money {
  width: 14px;
  height: 14px;
}
.job-timer-big {
  font-size: clamp(1.5rem, 4vw, 2.25rem);
  font-weight: 800;
  text-align: center;
  padding: 16px 12px;
  margin: 8px 0 12px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(67, 246, 255, 0.15), rgba(255, 62, 242, 0.1));
  border: 1px solid rgba(255, 255, 255, 0.2);
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.5);
  letter-spacing: 0.04em;
}
/* Вертикални карти: арт горе, текст долу (тренировки + работа) */
.bae-arcade-grid {
  display: grid;
  gap: 14px;
  margin-top: 8px;
}
.bae-arcade-grid--jobs {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.bae-arcade-grid--train {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.bae-arcade-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  min-height: 220px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 24px;
  overflow: hidden;
  cursor: pointer;
  text-align: center;
  color: #f8fbff;
  background: #0a0a0b;
  box-shadow:
    0 10px 32px rgba(0, 0, 0, 0.5),
    inset 0 0 0 1px rgba(255, 255, 255, 0.04);
  transition: transform 0.18s ease, box-shadow 0.22s ease, border-color 0.2s ease;
}
.bae-arcade-card__art {
  position: relative;
  flex: 1 1 62%;
  min-height: 132px;
  background: #111016;
  overflow: hidden;
}
.bae-arcade-card__img {
  width: 100%;
  height: 100%;
  min-height: 148px;
  object-fit: cover;
  object-position: center top;
  display: block;
}
.bae-arcade-card__art-vignette {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(
    180deg,
    rgba(10, 10, 12, 0) 0%,
    rgba(10, 10, 12, 0.35) 55%,
    #0a0a0b 100%
  );
  z-index: 1;
}
.bae-arcade-card__art--empty {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  opacity: 0.85;
}
.bae-arcade-card__foot {
  flex: 0 0 auto;
  z-index: 2;
  padding: 12px 12px 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: center;
  background: linear-gradient(180deg, #0a0a0b 0%, #0c0c0e 100%);
}
.bae-arcade-card__title {
  font-size: clamp(0.88rem, 2.2vw, 1rem);
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  line-height: 1.2;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.85);
}
.bae-arcade-card__meta {
  font-size: 0.8rem;
  font-weight: 700;
  opacity: 0.95;
  letter-spacing: 0.02em;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.8);
}
.bae-job-time-base {
  color: rgba(248, 250, 255, 0.98);
}
.bae-job-pay {
  color: rgba(248, 250, 255, 0.98);
}
.bae-arcade-card:hover {
  transform: translateY(-4px);
  border-color: rgba(67, 246, 255, 0.38);
  box-shadow:
    0 18px 44px rgba(0, 0, 0, 0.55),
    0 0 0 1px rgba(67, 246, 255, 0.28),
    0 0 28px rgba(67, 246, 255, 0.12);
}
.bae-arcade-card:focus {
  outline: none;
}
.bae-arcade-card:focus-visible {
  box-shadow:
    0 0 0 3px rgba(67, 246, 255, 0.5),
    0 14px 40px rgba(0, 0, 0, 0.5);
}
.bae-arcade-card:active {
  transform: translateY(-1px) scale(0.99);
}
.scene-work-lead {
  margin: 8px 0 0;
  font-size: 0.82rem;
  line-height: 1.45;
  opacity: 0.88;
  max-width: 52ch;
}
.fast-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(255, 209, 102, 0.25);
  border: 1px solid rgba(255, 209, 102, 0.5);
  margin-left: 8px;
  vertical-align: middle;
}

/* PvE / PvP арена */
.scene.scene-arena {
  min-height: clamp(380px, 58vh, 640px);
  padding: 18px 14px 22px;
  background-image:
    linear-gradient(180deg, rgba(3, 5, 16, 0.5) 0%, rgba(5, 8, 20, 0.82) 100%),
    var(--bae-bg-image, none);
  background-size: cover;
  background-position: center 22%;
}
.scene.scene-arena::after {
  background: linear-gradient(180deg, rgba(10, 14, 32, 0.12), rgba(10, 14, 32, 0.62));
}
.arena-scene-root {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: min(52vh, 520px);
}
.arena-scene-root::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 14px;
  background-image: var(--bae-arena-art, none);
  background-size: cover;
  background-position: center;
  opacity: 0.42;
  z-index: 0;
  pointer-events: none;
}
.arena-scene-root > * {
  position: relative;
  z-index: 1;
}
.arena-scene-title {
  font-size: 0.95rem;
  margin-bottom: 2px;
}
.scene-title__icon {
  display: none;
  width: 18px;
  height: 18px;
  margin-right: 8px;
  vertical-align: -3px;
}
.bae-profile-support--systems {
  display: grid;
  gap: 12px;
  margin: 6px 0 2px;
}
.scene-title__icon img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.arena-fighter-fallback__icon {
  display: block;
  width: 46px;
  height: 46px;
  object-fit: contain;
}
.arena-three-cols {
  display: grid;
  grid-template-columns: minmax(220px, 290px) minmax(280px, min(44vw, 440px)) minmax(220px, 290px);
  justify-content: center;
  gap: 12px 14px;
  align-items: start;
}
@media (max-width: 720px) {
  .arena-three-cols {
    grid-template-columns: 1fr;
    align-items: stretch;
  }
  .arena-col-center {
    order: -1;
  }
}
.arena-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  min-width: 0;
}
.arena-col-left {
  align-items: stretch;
}
.arena-col-right {
  align-items: stretch;
}
.arena-col-left,
.arena-col-right {
  padding: 10px 12px 12px;
  border-radius: 14px;
  border: 1px solid rgba(180, 220, 255, 0.22);
  background: rgba(12, 20, 42, 0.36);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.28);
}
.arena-name {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.9;
  color: #9cf2ff;
  text-align: center;
  margin-bottom: 2px;
}
.arena-mini-bars {
  width: 100%;
  max-width: min(200px, 42vw);
}
.arena-col-right .arena-mini-bars {
  align-self: flex-end;
}
.arena-bars-stack {
  width: 100%;
  max-width: min(200px, 42vw);
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 6px;
}
.arena-col-right .arena-bars-stack {
  align-self: auto;
}
.arena-bar-group {
  width: 100%;
}
.arena-bars-stack .bar {
  height: 10px;
}
.arena-bar-label {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #7ec8ff;
  margin-bottom: 4px;
}
.arena-col-left .arena-bar-label {
  text-align: left;
}
.arena-col-right .arena-bar-label {
  text-align: left;
}
.arena-stats {
  margin-top: 6px;
  margin-bottom: 10px;
  width: 100%;
  max-width: min(220px, 90vw);
}
.arena-primary-actions {
  width: 100%;
  max-width: 440px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 6px;
}
.arena-primary-actions__title {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #9cf2ff;
  text-align: center;
}
.bae-punch-grid--arena {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}
.bae-punch-grid--arena .bae-punch-btn {
  min-height: 64px;
  padding: 12px 10px !important;
}
.bae-punch-grid--arena .bae-punch-name {
  font-size: 13px;
}
.bae-punch-grid--arena .bae-punch-hint {
  font-size: 10px;
}
.arena-primary-actions .bae-punch-btn {
  width: 100%;
}
.arena-col-right .arena-stats {
  align-self: auto;
}
.arena-stat-dl {
  margin: 0;
  padding: 8px 10px;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 11px;
}
.arena-stat-row {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 4px;
}
.arena-stat-row:last-child {
  margin-bottom: 0;
}
.arena-col-right .arena-stat-row {
  flex-direction: row;
}
.arena-stat-row dt {
  margin: 0;
  opacity: 0.88;
  font-weight: 700;
  color: #b8d4e8;
}
.arena-stat-row dd {
  margin: 0;
  font-weight: 800;
  color: #f0f8ff;
}
.arena-stats-muted {
  margin: 0;
  font-size: 12px;
  opacity: 0.65;
}
.arena-col-left .arena-stats-muted {
  text-align: left;
}
.arena-col-right .arena-stats-muted {
  text-align: left;
}
.arena-mini-bars .bar {
  height: 10px;
  margin-bottom: 4px;
}
.arena-bar-values {
  margin-bottom: 5px;
  font-size: 11px;
  font-weight: 800;
  color: #dff8ff;
  letter-spacing: 0.03em;
}
.arena-bar-values--st {
  color: #cbffd8;
}
.arena-col-center {
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  padding: 0 4px 6px;
  width: 100%;
}
.arena-glass {
  width: 100%;
  max-width: 440px;
  min-height: clamp(120px, 22vh, 200px);
  padding: 14px 18px 16px;
  border-radius: 16px;
  background: rgba(12, 18, 40, 0.52);
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.arena-glass--inactive {
  opacity: 0.72;
}
.arena-glass-title {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.75;
  margin-bottom: 10px;
  color: #b8d4ff;
}
.arena-damage-lines {
  font-size: 14px;
  line-height: 1.5;
  min-height: 4.5em;
}
.arena-damage-hint {
  opacity: 0.85;
  font-size: 13px;
  line-height: 1.45;
}
.arena-damage-line {
  margin-bottom: 6px;
  padding: 6px 8px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
}
.arena-dmg-num {
  color: #ff9a8b;
  font-weight: 800;
}
.arena-damage-result {
  margin-top: 8px;
  padding: 8px 10px;
  border-radius: 10px;
  font-weight: 800;
  text-align: center;
}
.arena-damage-result.win {
  background: rgba(68, 211, 109, 0.25);
  border: 1px solid rgba(120, 255, 160, 0.45);
  color: #7effa4;
}
.arena-damage-result.loss {
  background: rgba(255, 77, 77, 0.2);
  border: 1px solid rgba(255, 120, 120, 0.45);
  color: #ffb4b4;
}
.arena-fighter-wrap {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  min-height: 140px;
}
@keyframes baeLegendaryGlow {
  from {
    box-shadow:
      0 0 14px rgba(255, 209, 102, 0.22),
      0 0 24px rgba(255, 209, 102, 0.08);
  }
  to {
    box-shadow:
      0 0 20px rgba(255, 209, 102, 0.4),
      0 0 38px rgba(255, 209, 102, 0.18);
  }
}
/* Бойците към центъра (лице в лице), без да са залепени за краищата */
.arena-col-left .arena-fighter-wrap {
  justify-content: center;
  padding-right: 0;
}
.arena-col-right .arena-fighter-wrap {
  justify-content: center;
  padding-left: 0;
}
@media (max-width: 720px) {
  .arena-primary-actions {
    max-width: 100%;
  }
  .bae-punch-grid--arena {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
.arena-fighter-img {
  max-height: clamp(220px, 42vh, 420px);
  width: auto;
  max-width: 100%;
  object-fit: contain;
  filter: drop-shadow(0 16px 36px rgba(0, 0, 0, 0.6));
}
.arena-fighter-img--mirror {
  transform: scaleX(-1);
}
.arena-fighter-fallback {
  font-size: 72px;
  line-height: 1;
  filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.5));
}

/* Exo 2 — карта играч + работа */
.bae-player-card {
  margin-bottom: 12px;
  padding: 14px 12px;
  border-radius: 14px;
  background: linear-gradient(145deg, rgba(22, 32, 72, 0.95) 0%, rgba(12, 18, 42, 0.88) 100%);
  border: 1px solid rgba(120, 180, 255, 0.22);
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.35) inset,
    0 12px 40px rgba(0, 0, 0, 0.45),
    0 0 28px rgba(67, 246, 255, 0.08);
}
.bae-identity {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 10px;
  margin-bottom: 12px;
}
.bae-name {
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: linear-gradient(90deg, #fff 0%, #b8e8ff 50%, #9cf2ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 0 24px rgba(67, 246, 255, 0.35);
}
.bae-pill {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 5px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.2);
}
.bae-pill-level {
  background: linear-gradient(135deg, rgba(255, 209, 102, 0.35), rgba(255, 160, 80, 0.2));
  color: #ffe6b0;
  box-shadow: 0 0 16px rgba(255, 209, 102, 0.2);
}
.bae-pill-cash {
  background: linear-gradient(135deg, rgba(68, 211, 109, 0.35), rgba(44, 180, 120, 0.25));
  color: #c8ffd8;
  box-shadow: 0 0 16px rgba(68, 211, 109, 0.2);
}
.bae-pill-bcoins {
  background: linear-gradient(135deg, rgba(255, 212, 112, 0.35), rgba(255, 77, 138, 0.22));
  color: rgba(255, 245, 220, 0.95);
  box-shadow: 0 0 16px rgba(255, 212, 112, 0.18);
}
.bae-pill-bcoins--ico {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.bae-pill-bcoins-val {
  font-variant-numeric: tabular-nums;
}

/* bCoins икона (bcoin.png) */
.bae-ico-bcoin {
  width: 1.15em;
  height: 1.15em;
  max-width: 22px;
  max-height: 22px;
  object-fit: contain;
  vertical-align: -0.2em;
  flex-shrink: 0;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.45));
}
.bae-ico-bcoin-fallback {
  font-weight: 900;
  opacity: 0.95;
}
.bae-bar-block {
  margin-bottom: 10px;
}
.bae-bar-block:last-of-type {
  margin-bottom: 14px;
}
.bae-bar-hd {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(200, 220, 255, 0.75);
  margin-bottom: 4px;
}
.bae-bar-pct {
  font-variant-numeric: tabular-nums;
  color: #9cf2ff;
  letter-spacing: 0.06em;
}
.bae-level-block {
  margin-bottom: 14px;
}
.bae-level-bar {
  background: rgba(255, 209, 102, 0.16);
  border: 1px solid rgba(255, 209, 102, 0.35);
}
.bae-level-bar > span {
  background: linear-gradient(90deg, #ffd166, #ff8a4b);
  box-shadow: 0 0 14px rgba(255, 209, 102, 0.45);
}
.bae-strip-title {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(156, 242, 255, 0.55);
  margin: 12px 0 8px;
  padding-bottom: 4px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.bae-stat-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-start;
}
.bae-stat-chip {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  min-width: 52px;
  padding: 8px 10px 10px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.08) 0%, rgba(0, 0, 0, 0.15) 100%);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.12);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.bae-stat-chip:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35);
}
.bae-stat-abbr {
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.12em;
  opacity: 0.85;
  margin-bottom: 2px;
}
.bae-stat-num {
  font-size: 1.25rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  line-height: 1;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}
.bae-stat-str {
  border-color: rgba(255, 120, 100, 0.45);
  box-shadow: 0 0 20px rgba(255, 100, 80, 0.12), inset 0 0 20px rgba(255, 80, 60, 0.06);
}
.bae-stat-str .bae-stat-num {
  color: #ffb39a;
}
.bae-stat-def {
  border-color: rgba(100, 180, 255, 0.45);
  box-shadow: 0 0 20px rgba(80, 160, 255, 0.12);
}
.bae-stat-def .bae-stat-num {
  color: #9cd4ff;
}
.bae-stat-end {
  border-color: rgba(100, 220, 140, 0.45);
  box-shadow: 0 0 20px rgba(80, 220, 140, 0.1);
}
.bae-stat-end .bae-stat-num {
  color: #9effc4;
}
.bae-stat-spd {
  border-color: rgba(255, 220, 120, 0.45);
  box-shadow: 0 0 20px rgba(255, 200, 80, 0.1);
}
.bae-stat-spd .bae-stat-num {
  color: #ffe6a0;
}
.bae-stat-acc {
  border-color: rgba(200, 140, 255, 0.45);
  box-shadow: 0 0 20px rgba(180, 120, 255, 0.12);
}
.bae-stat-acc .bae-stat-num {
  color: #e0c4ff;
}
.bae-meta-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 10px;
  margin-top: 4px;
}
.bae-meta-tile {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 12px 14px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(30, 45, 95, 0.6) 0%, rgba(15, 22, 48, 0.85) 100%);
  border: 1px solid rgba(100, 160, 255, 0.2);
  overflow: hidden;
}
.bae-meta-tile::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #43f6ff, #8af8ff, #ff3ef2);
  opacity: 0.85;
}
.bae-meta-tile--elo::before {
  background: linear-gradient(90deg, #ffd166, #ff9f1c);
}
.bae-meta-ico {
  font-size: 1.25rem;
  line-height: 1;
  opacity: 0.9;
  filter: drop-shadow(0 0 6px rgba(67, 246, 255, 0.5));
}
.bae-meta-ico img {
  display: block;
  width: 18px;
  height: 18px;
  object-fit: contain;
}
.bae-meta-body {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.bae-meta-k {
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(200, 220, 255, 0.65);
}
.bae-meta-v {
  font-size: 1.35rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
  color: #fff;
  text-shadow: 0 0 20px rgba(67, 246, 255, 0.35);
}
.bae-meta-tile--elo .bae-meta-v {
  background: linear-gradient(90deg, #ffd166, #fff0c2);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: none;
  filter: drop-shadow(0 0 12px rgba(255, 209, 102, 0.45));
}

.bae-job-wrap {
  margin-top: 4px;
  margin-bottom: 12px;
}
.bae-auto-job-panel {
  margin-top: 10px;
}
.bae-auto-job-card {
  display: grid;
  gap: 12px;
  padding: 12px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(180deg, rgba(19, 29, 54, 0.86), rgba(11, 17, 34, 0.92));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04), 0 8px 22px rgba(0, 0, 0, 0.18);
}
.bae-auto-job-card--locked {
  background: linear-gradient(180deg, rgba(18, 24, 44, 0.82), rgba(10, 14, 28, 0.94));
}
.bae-auto-job-card__head {
  display: grid;
  gap: 4px;
}
.bae-auto-job-card__head strong {
  font-size: 14px;
  font-weight: 900;
  color: #f4f8ff;
}
.bae-auto-job-card__hint {
  font-size: 12px;
  line-height: 1.45;
  color: rgba(200, 220, 255, 0.72);
}
.bae-auto-job-card__controls {
  display: grid;
  grid-template-columns: minmax(0, 170px) minmax(0, 1fr);
  gap: 12px;
  align-items: end;
}
.bae-auto-job-toggle {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.035);
}
.bae-auto-job-toggle__text {
  font-size: 13px;
  font-weight: 800;
  color: #f1f6ff;
}
.bae-auto-job-field {
  display: grid;
  gap: 6px;
}
.bae-auto-job-field__label {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(184, 212, 255, 0.75);
}
.bae-auto-job-select {
  min-width: 0;
  width: 100%;
  max-width: 240px;
}
.bae-auto-job-card__actions {
  display: flex;
  justify-content: flex-start;
}
.bae-auto-job-save {
  margin-left: 0 !important;
  min-height: 40px;
  padding: 8px 14px !important;
  border-radius: 10px !important;
}
.bae-loadouts-panel {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}
.bae-job-card {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 14px 16px;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: linear-gradient(125deg, rgba(35, 28, 70, 0.75) 0%, rgba(18, 22, 52, 0.92) 60%, rgba(12, 18, 40, 0.95) 100%);
  box-shadow: 0 10px 32px rgba(0, 0, 0, 0.4), inset 0 0 0 1px rgba(255, 255, 255, 0.05);
}
.bae-job-glow {
  position: absolute;
  inset: -40% -20%;
  background: radial-gradient(ellipse at 30% 20%, rgba(67, 246, 255, 0.18), transparent 55%),
    radial-gradient(ellipse at 80% 80%, rgba(255, 62, 242, 0.12), transparent 50%);
  pointer-events: none;
}
.bae-job-emoji {
  position: relative;
  font-size: 2rem;
  line-height: 1;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.45));
}
.bae-job-emoji img {
  display: block;
  width: 28px;
  height: 28px;
  object-fit: contain;
}
.bae-job-main {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.bae-job-heading {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(180, 210, 255, 0.75);
}
.bae-job-tagline {
  font-size: 0.95rem;
  font-weight: 600;
  font-style: italic;
  color: rgba(230, 240, 255, 0.55);
}
.bae-job-idle {
  opacity: 0.92;
}
.bae-job-top {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  margin-bottom: 6px;
}
.bae-job-pill {
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.2);
}
.bae-job-pill-on {
  background: linear-gradient(135deg, rgba(67, 246, 255, 0.35), rgba(100, 120, 255, 0.2));
  color: #c8f8ff;
  animation: bae-pulse-soft 2s ease-in-out infinite;
}
.bae-job-pill-live {
  background: linear-gradient(135deg, rgba(68, 211, 109, 0.45), rgba(44, 180, 120, 0.3));
  color: #d8ffe8;
  box-shadow: 0 0 20px rgba(68, 211, 109, 0.25);
}
@keyframes bae-pulse-soft {
  0%,
  100% {
    box-shadow: 0 0 12px rgba(67, 246, 255, 0.2);
  }
  50% {
    box-shadow: 0 0 22px rgba(67, 246, 255, 0.4);
  }
}
.bae-job-role {
  position: relative;
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: linear-gradient(90deg, #fff, #9cf2ff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.bae-job-payline {
  position: relative;
  font-size: 13px;
  font-weight: 600;
  color: rgba(230, 240, 255, 0.88);
}
.bae-job-payline strong {
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  color: #7effa4;
  text-shadow: 0 0 12px rgba(126, 255, 164, 0.35);
}
.bae-job-ready {
  border-color: rgba(68, 211, 109, 0.35);
  box-shadow: 0 0 28px rgba(68, 211, 109, 0.15), 0 10px 32px rgba(0, 0, 0, 0.4);
}
.bae-job-running {
  flex-direction: column;
  align-items: stretch;
}
.bae-job-running .bae-job-top {
  margin-bottom: 4px;
}

.job-timer-inline {
  margin-top: 8px;
  font-weight: 800;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  font-variant-numeric: tabular-nums;
  padding: 10px 12px;
  border-radius: 10px;
  text-align: center;
  background: linear-gradient(90deg, rgba(67, 246, 255, 0.12), rgba(255, 62, 242, 0.08));
  border: 1px solid rgba(67, 246, 255, 0.25);
  color: #c8f4ff;
  text-shadow: 0 0 16px rgba(67, 246, 255, 0.35);
}
.job-timer-big {
  font-family: var(--bae-font);
}

/* ——— Брутален HUD: винетка, искри, сканлайни, плаващи картинки ——— */
.bae-vignette {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  background: radial-gradient(ellipse 90% 70% at 50% 20%, transparent 30%, rgba(0, 0, 0, 0.55) 100%);
  mix-blend-mode: multiply;
}
.bae-sparkles {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  background-image:
    radial-gradient(1px 1px at 10% 20%, rgba(255, 255, 255, 0.9), transparent),
    radial-gradient(1px 1px at 30% 70%, rgba(67, 246, 255, 0.85), transparent),
    radial-gradient(1.5px 1.5px at 70% 40%, rgba(255, 62, 242, 0.75), transparent),
    radial-gradient(1px 1px at 85% 15%, rgba(255, 255, 255, 0.7), transparent),
    radial-gradient(1px 1px at 50% 90%, rgba(156, 242, 255, 0.8), transparent);
  background-size: 100% 100%;
  animation: bae-twinkle 4.5s ease-in-out infinite;
  opacity: 0.55;
}
@keyframes bae-twinkle {
  0%,
  100% {
    opacity: 0.35;
    filter: brightness(1);
  }
  50% {
    opacity: 0.75;
    filter: brightness(1.35);
  }
}
.bae-scanlines {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 2;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(0, 0, 0, 0.11) 2px,
    rgba(0, 0, 0, 0.11) 3px
  );
  opacity: 0.25;
  animation: bae-scan 12s linear infinite;
}
@keyframes bae-scan {
  0% {
    transform: translateY(0);
  }
  100% {
    transform: translateY(24px);
  }
}
.bae-decor-floats {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  overflow: hidden;
}
.bae-float-img {
  position: absolute;
  opacity: 0.11;
  filter: blur(1px) saturate(1.2);
  mix-blend-mode: screen;
  animation: bae-float-drift 18s ease-in-out infinite;
}
.bae-float-img img {
  max-height: min(28vh, 200px);
  width: auto;
  object-fit: contain;
  display: block;
}
.bae-float-n0 {
  top: 8%;
  left: -2%;
  animation-delay: 0s;
}
.bae-float-n1 {
  top: 55%;
  right: -4%;
  animation-delay: -3s;
}
.bae-float-n2 {
  bottom: 18%;
  left: 5%;
  animation-delay: -6s;
}
.bae-float-n3 {
  top: 22%;
  right: 8%;
  animation-delay: -9s;
}
.bae-float-n4 {
  bottom: 35%;
  right: 12%;
  animation-delay: -2s;
}
.bae-float-n5 {
  top: 65%;
  left: 15%;
  animation-delay: -11s;
}
.bae-float-n6 {
  top: 40%;
  left: 40%;
  opacity: 0.06;
  animation-delay: -5s;
}
.bae-float-n7 {
  bottom: 8%;
  right: 25%;
  animation-delay: -7s;
}
@keyframes bae-float-drift {
  0%,
  100% {
    transform: translate(0, 0) rotate(-2deg) scale(1);
  }
  33% {
    transform: translate(8px, -12px) rotate(1deg) scale(1.03);
  }
  66% {
    transform: translate(-6px, 8px) rotate(-1deg) scale(0.98);
  }
}

/* Карти + заглавия с икони */
.bae-card {
  position: relative;
  overflow: hidden;
}
.bae-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, rgba(67, 246, 255, 0.35), rgba(255, 62, 242, 0.2), rgba(255, 209, 102, 0.15));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  opacity: 0.65;
}
.bae-card::after {
  content: "";
  position: absolute;
  inset: -40% -20%;
  background: linear-gradient(
    105deg,
    transparent 40%,
    rgba(255, 255, 255, 0.06) 48%,
    rgba(255, 255, 255, 0.12) 50%,
    rgba(255, 255, 255, 0.06) 52%,
    transparent 60%
  );
  animation: bae-card-shimmer 7s ease-in-out infinite;
  pointer-events: none;
}
@keyframes bae-card-shimmer {
  0% {
    transform: translateX(-100%) rotate(8deg);
  }
  100% {
    transform: translateX(120%) rotate(8deg);
  }
}
/* Инвентар / магазин: без отрязване на tooltip; без диагонален „shine“ върху картата */
.bae-card--inv,
.bae-card--shop {
  overflow: visible;
}
.bae-card--inv::after,
.bae-card--shop::after {
  display: none;
}
.bae-card--fight::before {
  background: linear-gradient(135deg, rgba(255, 88, 120, 0.55), rgba(255, 62, 242, 0.35));
}
.bae-card--train::before {
  background: linear-gradient(135deg, rgba(114, 255, 195, 0.45), rgba(67, 246, 255, 0.3));
}
.bae-card--clan::before {
  background: linear-gradient(135deg, rgba(120, 220, 255, 0.42), rgba(67, 246, 255, 0.28));
}
.bae-card--work::before {
  background: linear-gradient(135deg, rgba(255, 212, 112, 0.5), rgba(255, 140, 80, 0.35));
}
.bae-card--premium::before {
  background: linear-gradient(135deg, rgba(176, 120, 255, 0.5), rgba(67, 246, 255, 0.28), rgba(255, 212, 112, 0.22));
}

.bae-premium-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 12px;
  margin-top: 10px;
}
.bae-premium-card {
  grid-column: span 6;
  border-radius: 14px;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(10, 14, 28, 0.55);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.28);
}
.bae-premium-card--bcoins {
  grid-column: 1 / span 6;
  grid-row: 1;
}
.bae-premium-card--wide {
  grid-column: span 12;
}
.bae-premium-card--section {
  background:
    linear-gradient(135deg, rgba(115, 231, 255, 0.12), rgba(115, 231, 255, 0.04)),
    rgba(10, 18, 37, 0.84);
  border-color: rgba(126, 235, 255, 0.24);
}
.bae-premium-card--vip {
  border-color: rgba(255, 77, 138, 0.38);
  background:
    linear-gradient(180deg, rgba(255, 77, 138, 0.08) 0%, rgba(10, 14, 28, 0.55) 60%);
  box-shadow:
    0 0 0 1px rgba(255, 212, 112, 0.10) inset,
    0 16px 34px rgba(0, 0, 0, 0.30),
    0 0 36px rgba(255, 77, 138, 0.18);
}
.bae-premium-card--vip-hero {
  grid-column: 7 / span 6;
  grid-row: 1;
  position: relative;
  display: flex;
  flex-direction: column;
  align-self: stretch;
  overflow: hidden;
  border-color: rgba(255, 210, 120, 0.62);
  background:
    radial-gradient(circle at 14% 12%, rgba(255, 234, 168, 0.18), transparent 28%),
    radial-gradient(circle at 88% 18%, rgba(255, 122, 188, 0.18), transparent 26%),
    linear-gradient(135deg, rgba(86, 24, 92, 0.98), rgba(33, 18, 62, 0.96) 38%, rgba(16, 13, 34, 0.98) 100%);
  box-shadow:
    0 0 0 1px rgba(255, 232, 160, 0.16) inset,
    0 22px 44px rgba(0, 0, 0, 0.34),
    0 0 46px rgba(255, 122, 188, 0.22),
    0 0 54px rgba(255, 214, 122, 0.14);
}
.bae-premium-card--vip-hero::before {
  content: "";
  position: absolute;
  inset: -28% -16%;
  background: linear-gradient(110deg, transparent 12%, rgba(255, 255, 255, 0.08) 49%, transparent 56%);
  transform: translateX(-120%) skewX(-18deg);
  animation: bae-vip-hero-shimmer 4.2s ease-in-out infinite;
  pointer-events: none;
}
.bae-premium-card--vip-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 0%, rgba(255, 236, 176, 0.12), transparent 46%);
  pointer-events: none;
}
.bae-premium-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}
.bae-premium-head strong {
  font-weight: 900;
  letter-spacing: 0.02em;
}
.bae-premium-head--vip {
  margin-bottom: 0;
}
.bae-premium-vip-hero {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
}
.bae-premium-vip-hero__copy {
  min-width: 0;
}
.bae-premium-vip-hero__title {
  font-size: clamp(1.25rem, 2.8vw, 2.05rem);
  line-height: 1.05;
  background: linear-gradient(90deg, #fff6d5 0%, #ffd76a 30%, #ff84de 72%, #9ceeff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 0 22px rgba(255, 214, 122, 0.22);
}
.bae-premium-vip-hero__desc {
  margin: 10px 0 0;
  max-width: 56ch;
}
.bae-premium-vip-hero__offer {
  position: relative;
  display: grid;
  place-items: center;
  min-width: 188px;
  padding: 18px 18px 16px;
  border-radius: 20px;
  border: 1px solid rgba(255, 230, 168, 0.42);
  background:
    radial-gradient(circle at 50% 10%, rgba(255, 240, 186, 0.26), transparent 46%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.03)),
    rgba(12, 10, 26, 0.42);
  box-shadow:
    0 0 0 1px rgba(255, 214, 122, 0.12) inset,
    0 18px 34px rgba(0, 0, 0, 0.24),
    0 0 34px rgba(255, 122, 188, 0.2);
}
.bae-premium-vip-hero__price {
  position: relative;
  z-index: 1;
  font-family: var(--bae-font-head);
  font-size: clamp(1.2rem, 2.2vw, 1.75rem);
  letter-spacing: 0.05em;
  line-height: 1;
  background: linear-gradient(90deg, #fff8da 0%, #ffd65a 22%, #ff88d6 68%, #8ff8ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow:
    0 0 18px rgba(255, 212, 112, 0.18),
    0 0 26px rgba(255, 122, 188, 0.16);
  animation: bae-vip-price-pulse 2s ease-in-out infinite;
}
.bae-premium-vip-hero__spark {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.06) inset,
    0 0 26px rgba(255, 222, 132, 0.16),
    0 0 40px rgba(255, 122, 188, 0.16);
  animation: bae-vip-spark 1.8s ease-in-out infinite;
  pointer-events: none;
}
.bae-premium-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.05);
  color: rgba(232, 240, 255, 0.92);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.bae-premium-pill--eur {
  text-transform: none;
  letter-spacing: 0.02em;
  color: rgba(232, 240, 255, 0.95);
}

.bae-premium-pill--vip {
  text-transform: none;
  font-size: 13px;
  padding: 6px 12px;
  border-color: rgba(255, 212, 112, 0.55);
  background:
    linear-gradient(135deg, rgba(255, 77, 138, 0.20) 0%, rgba(67, 246, 255, 0.12) 55%, rgba(255, 212, 112, 0.16) 100%);
  box-shadow:
    0 0 0 1px rgba(255, 77, 138, 0.14) inset,
    0 0 28px rgba(255, 77, 138, 0.22);
}

.bae-bcoin-pack {
  display: grid;
  grid-template-columns: 54px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 10px 10px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
  margin: 10px 0;
}
.bae-bcoin-pack__ico {
  width: 54px;
  height: 54px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(145deg, rgba(67, 246, 255, 0.16), rgba(255, 62, 242, 0.1));
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 0 18px rgba(67, 246, 255, 0.14);
}
.bae-bcoin-ico {
  width: 42px;
  height: 42px;
  object-fit: contain;
  filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.35));
}
.bae-bcoin-fallback {
  font-size: 18px;
  font-weight: 900;
  color: rgba(232, 240, 255, 0.95);
}
.bae-bcoin-pack__title {
  font-size: 15px;
  font-weight: 900;
  letter-spacing: 0.02em;
}
.bae-bcoin-pack__price {
  font-size: 13px;
  font-weight: 1000;
  margin-top: 2px;
  background: linear-gradient(
    90deg,
    rgba(67, 246, 255, 0.95) 0%,
    rgba(255, 62, 242, 0.95) 60%,
    rgba(255, 212, 112, 0.95) 100%
  );
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 0 16px rgba(67, 246, 255, 0.20);
}
.bae-bcoin-pack__hint {
  font-size: 12px;
  color: rgba(232, 240, 255, 0.75);
  margin-top: 2px;
}

.bae-premium-buy {
  padding: 10px 14px;
  border-radius: 12px;
  border: 1px solid rgba(67, 246, 255, 0.35);
  background: linear-gradient(180deg, rgba(16, 32, 54, 0.95), rgba(8, 12, 26, 0.92));
  color: #e8f0ff;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.28);
}
.bae-premium-buy:hover {
  border-color: rgba(138, 248, 255, 0.85);
  filter: brightness(1.05);
}
.bae-premium-buy--vip {
  border-color: rgba(255, 212, 112, 0.45);
  background:
    linear-gradient(135deg, rgba(255, 230, 156, 0.24), rgba(255, 122, 188, 0.2) 58%, rgba(111, 230, 255, 0.18)),
    linear-gradient(180deg, rgba(52, 38, 10, 0.95), rgba(12, 10, 22, 0.92));
  color: #fff8e4;
  box-shadow:
    0 0 0 1px rgba(255, 212, 112, 0.16) inset,
    0 12px 28px rgba(0, 0, 0, 0.28),
    0 0 26px rgba(255, 122, 188, 0.2);
}
.bae-premium-buy--vip:hover {
  border-color: rgba(255, 232, 160, 0.85);
}
.bae-premium-buy--vip-nav {
  min-width: 180px;
}
.bae-premium-buy--vipcrate {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  min-width: min(100%, 280px);
  padding: 14px 18px;
  border-width: 1px;
  border-color: rgba(255, 212, 112, 0.72);
  background:
    radial-gradient(circle at top left, rgba(255, 232, 160, 0.18), transparent 38%),
    linear-gradient(135deg, rgba(80, 28, 86, 0.96), rgba(32, 16, 56, 0.98) 38%, rgba(17, 11, 33, 0.98) 100%);
  box-shadow:
    0 0 0 1px rgba(255, 212, 112, 0.16) inset,
    0 14px 30px rgba(0, 0, 0, 0.34),
    0 0 28px rgba(255, 122, 188, 0.22);
}
.bae-premium-buy--vipcrate:hover {
  border-color: rgba(255, 236, 176, 0.98);
  box-shadow:
    0 0 0 1px rgba(255, 232, 160, 0.22) inset,
    0 18px 34px rgba(0, 0, 0, 0.38),
    0 0 38px rgba(255, 122, 188, 0.34);
}
.bae-premium-buy__title {
  font-size: 14px;
  font-weight: 1000;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.bae-premium-buy__meta {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: rgba(255, 239, 215, 0.82);
  text-transform: none;
}

.bae-premium-list {
  margin: 10px 0 0;
  padding-left: 18px;
}
.bae-premium-list li {
  margin: 8px 0;
}
.bae-premium-cta {
  margin-top: 12px;
  display: flex;
  justify-content: flex-start;
}
.bae-premium-card--vip-hero .bae-premium-cta {
  margin-top: 18px;
}
.bae-premium-card--vip-hero .bae-premium-buy--vip {
  min-width: min(100%, 240px);
}

.bae-premium-market {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.035);
  margin-top: 10px;
}

.bae-premium-market__item {
  flex: 1 1 auto;
  min-width: 0;
}

.bae-premium-market__item--vip {
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(255, 212, 112, 0.30);
  background:
    radial-gradient(120% 140% at 10% 10%, rgba(255, 77, 138, 0.18) 0%, rgba(10, 14, 28, 0.35) 55%),
    linear-gradient(180deg, rgba(255, 212, 112, 0.10), rgba(255, 255, 255, 0.02));
  box-shadow:
    0 0 0 1px rgba(255, 212, 112, 0.10) inset,
    0 0 34px rgba(255, 77, 138, 0.15);
}
.bae-premium-market__name {
  font-weight: 900;
  letter-spacing: 0.01em;
}
.bae-premium-market__meta {
  color: rgba(232, 240, 255, 0.72);
  margin-top: 2px;
}

.bae-premium-feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}

.bae-premium-feature {
  border-radius: 12px;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.035);
  display: grid;
  gap: 8px;
}

.bae-premium-feature__title {
  font-size: 14px;
  font-weight: 900;
  color: rgba(255, 255, 255, 0.96);
}

.bae-premium-feature__meta {
  font-size: 13px;
  line-height: 1.45;
  color: rgba(232, 240, 255, 0.72);
}

.bae-premium-feature__foot {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  justify-content: space-between;
}

.bae-premium-feature--coach .bae-settings-actions,
.bae-premium-feature--loadout .bae-settings-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.bae-premium-job-ico {
  width: 28px;
  height: 28px;
  object-fit: contain;
  border-radius: 10px;
  vertical-align: middle;
  margin-left: 10px;
  filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.35));
}

@media (max-width: 920px) {
  .bae-premium-card {
    grid-column: span 12;
  }
  .bae-premium-card--bcoins,
  .bae-premium-card--vip-hero {
    grid-column: span 12;
    grid-row: auto;
  }
  .bae-premium-vip-hero {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .bae-premium-vip-hero__offer {
    min-width: 0;
    width: 100%;
  }
  .bae-bcoin-pack {
    grid-template-columns: 54px 1fr;
  }
  .bae-premium-buy {
    grid-column: 1 / -1;
    width: 100%;
    justify-self: stretch;
  }
}

@keyframes bae-vip-hero-shimmer {
  0%,
  68%,
  100% {
    transform: translateX(-120%) skewX(-18deg);
    opacity: 0;
  }
  12%,
  24% {
    opacity: 1;
  }
  34% {
    transform: translateX(120%) skewX(-18deg);
    opacity: 0;
  }
}
@keyframes bae-vip-price-pulse {
  0%,
  100% {
    filter: brightness(1);
  }
  50% {
    filter: brightness(1.18);
  }
}
@keyframes bae-vip-spark {
  0%,
  100% {
    opacity: 0.58;
  }
  50% {
    opacity: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  .bae-premium-card--vip-hero::before,
  .bae-premium-vip-hero__price,
  .bae-premium-vip-hero__spark {
    animation: none;
  }
}
.bae-h2 {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 4px 0 12px;
  font-size: clamp(1rem, 3.5vw, 1.15rem);
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-shadow: 0 0 24px rgba(67, 246, 255, 0.35);
}
.bae-h2-ico {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: linear-gradient(145deg, rgba(67, 246, 255, 0.2), rgba(255, 62, 242, 0.12));
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 0 20px rgba(67, 246, 255, 0.25);
  font-size: 1.25rem;
}
.bae-h2-ico img {
  width: 28px;
  height: 28px;
  object-fit: contain;
  filter: drop-shadow(0 0 8px rgba(67, 246, 255, 0.5));
}

/* Бутони: светкавица при hover */
button {
  position: relative;
  overflow: hidden;
  transition: transform 0.18s ease, box-shadow 0.25s ease, filter 0.2s ease;
}
button:not(.inv-slot):not(.bae-style-card):not(.bae-arcade-card):not(.bae-logo-hit)::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    transparent 0%,
    transparent 42%,
    rgba(255, 255, 255, 0.45) 50%,
    transparent 58%,
    transparent 100%
  );
  transform: translateX(-120%) skewX(-12deg);
  transition: transform 0.55s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
  mix-blend-mode: overlay;
}
button.terrain-btn::after {
  display: none;
}
button:not(.inv-slot):not(.bae-style-card):not(.bae-arcade-card):not(.bae-logo-hit):hover::after {
  transform: translateX(120%) skewX(-12deg);
}
/* Слотове на инвентара: без „чарти“ и без глобален hover-ефект */
button.inv-slot {
  overflow: visible;
}
button:not(.inv-slot):not(.bae-style-card):not(.bae-arcade-card):not(.bae-logo-hit):hover {
  transform: translateY(-2px) scale(1.02);
  filter: brightness(1.08) saturate(1.1);
  box-shadow:
    0 0 22px rgba(67, 246, 255, 0.55),
    0 0 40px rgba(255, 62, 242, 0.25),
    0 4px 16px rgba(0, 0, 0, 0.35);
}
button:not(.inv-slot):not(.bae-style-card):not(.bae-arcade-card):not(.bae-logo-hit):active {
  transform: scale(0.98);
  filter: brightness(0.95);
}
.terrain-btn {
  position: relative;
  overflow: hidden;
  min-height: 38px;
  min-width: 44px;
  padding: 8px 11px !important;
  border-radius: 11px !important;
  border: 1px solid rgba(132, 161, 255, 0.2) !important;
  font-weight: 800 !important;
  letter-spacing: 0.05em;
  color: #eff5ff !important;
  box-shadow:
    0 6px 16px rgba(0, 0, 0, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.08) !important;
  transition: transform 0.15s ease, box-shadow 0.25s ease, filter 0.2s ease !important;
}
.terrain-btn::before {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(103, 220, 255, 0.22), transparent 60%);
  opacity: 0;
  transition: opacity 0.25s ease;
  pointer-events: none;
}
.terrain-btn:hover {
  transform: translateY(-2px) !important;
  box-shadow:
    0 10px 24px rgba(0, 0, 0, 0.28),
    0 0 20px rgba(67, 246, 255, 0.18),
    inset 0 0 16px rgba(67, 246, 255, 0.06) !important;
  filter: brightness(1.06) !important;
}
.terrain-btn:hover::before {
  opacity: 1;
}
.terrain-btn.active {
  outline: none !important;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.3),
    0 0 0 2px rgba(67, 246, 255, 0.42),
    0 10px 24px rgba(0, 0, 0, 0.28),
    0 0 22px rgba(67, 246, 255, 0.24) !important;
  background: linear-gradient(180deg, rgba(28, 52, 95, 0.98), rgba(18, 36, 70, 0.94)) !important;
  animation: bae-nav-pulse 2.6s ease-in-out infinite;
}
@keyframes bae-nav-pulse {
  0%,
  100% {
    filter: brightness(1.1);
  }
  50% {
    filter: brightness(1.22);
  }
}
.terrain-btn[data-terrain="profile"] {
  border-bottom-color: rgba(126, 184, 255, 0.6) !important;
}
.terrain-btn[data-terrain="training"] {
  border-bottom-color: rgba(94, 233, 168, 0.58) !important;
}
.terrain-btn[data-terrain="match"] {
  border-bottom-color: rgba(255, 123, 156, 0.62) !important;
}
.terrain-btn[data-terrain="work"] {
  border-bottom-color: rgba(255, 209, 102, 0.6) !important;
}
.terrain-btn[data-terrain="leaderboard"] {
  border-bottom-color: rgba(255, 159, 28, 0.62) !important;
}
.terrain-btn[data-terrain="clan"] {
  border-bottom-color: rgba(120, 220, 255, 0.6) !important;
}
.terrain-btn[data-terrain="settings"] {
  border-bottom-color: rgba(170, 160, 255, 0.58) !important;
}
.terrain-btn[data-terrain="premium"] {
  border-bottom-color: rgba(255, 212, 112, 0.62) !important;
  border-color: rgba(255, 208, 94, 0.52) !important;
  background:
    radial-gradient(circle at 16% 18%, rgba(255, 235, 162, 0.14), transparent 34%),
    linear-gradient(180deg, rgba(73, 48, 17, 0.98), rgba(37, 24, 14, 0.96)) !important;
  box-shadow:
    0 0 0 1px rgba(255, 220, 132, 0.14) inset,
    0 8px 18px rgba(0, 0, 0, 0.24),
    0 0 18px rgba(255, 190, 92, 0.16),
    0 0 34px rgba(255, 132, 56, 0.08) !important;
  animation: bae-premium-nav-glow 2.8s ease-in-out infinite;
}
.terrain-btn[data-terrain="premium"]::before {
  opacity: 1;
  background: linear-gradient(135deg, rgba(255, 221, 136, 0.18), transparent 62%);
}
.terrain-btn[data-terrain="premium"]::after {
  display: block;
  content: "";
  position: absolute;
  inset: -22% -40%;
  background: linear-gradient(
    110deg,
    transparent 0%,
    transparent 42%,
    rgba(255, 244, 196, 0.1) 47%,
    rgba(255, 235, 170, 0.42) 50%,
    rgba(255, 244, 196, 0.1) 53%,
    transparent 58%,
    transparent 100%
  );
  transform: translateX(-135%) skewX(-18deg);
  pointer-events: none;
  mix-blend-mode: screen;
  animation: bae-premium-nav-shimmer 3.6s ease-in-out infinite;
}
.terrain-btn[data-terrain="premium"] .nav-btn__label {
  color: #fff1c5;
  text-shadow: 0 0 10px rgba(255, 213, 106, 0.26);
}
.terrain-btn[data-terrain="premium"] .nav-btn__icon {
  filter:
    drop-shadow(0 0 8px rgba(255, 208, 94, 0.35))
    drop-shadow(0 0 14px rgba(255, 146, 72, 0.2));
}
.terrain-btn[data-terrain="premium"]:hover {
  box-shadow:
    0 12px 26px rgba(0, 0, 0, 0.3),
    0 0 22px rgba(255, 208, 94, 0.22),
    0 0 40px rgba(255, 126, 72, 0.14),
    inset 0 0 18px rgba(255, 222, 122, 0.08) !important;
}
.terrain-btn[data-terrain="premium"].active {
  box-shadow:
    0 0 0 1px rgba(255, 243, 210, 0.36),
    0 0 0 2px rgba(255, 208, 94, 0.55),
    0 12px 28px rgba(0, 0, 0, 0.32),
    0 0 24px rgba(255, 208, 94, 0.26),
    0 0 46px rgba(255, 126, 72, 0.16) !important;
}
.terrain-btn[data-terrain="vip"] {
  border-bottom-color: rgba(255, 122, 188, 0.68) !important;
}
.terrain-btn[data-terrain="vip"].is-vip-live {
  border-color: rgba(255, 212, 112, 0.82) !important;
  background:
    radial-gradient(circle at 18% 18%, rgba(255, 232, 160, 0.16), transparent 34%),
    linear-gradient(180deg, rgba(82, 28, 92, 0.98), rgba(36, 20, 72, 0.96)) !important;
  box-shadow:
    0 0 0 1px rgba(255, 232, 160, 0.22) inset,
    0 10px 24px rgba(0, 0, 0, 0.3),
    0 0 22px rgba(255, 122, 188, 0.28),
    0 0 38px rgba(255, 212, 112, 0.18) !important;
  animation: bae-vip-nav-glow 2.4s ease-in-out infinite;
}
.terrain-btn[data-terrain="vip"].is-vip-live .nav-btn__label {
  color: #fff3cf;
}
.terrain-btn[data-terrain="vip"].is-vip-live .nav-btn__icon {
  filter:
    drop-shadow(0 0 10px rgba(255, 212, 112, 0.55))
    drop-shadow(0 0 18px rgba(255, 122, 188, 0.35));
}
@keyframes bae-vip-nav-glow {
  0%,
  100% {
    filter: brightness(1);
  }
  50% {
    filter: brightness(1.12);
  }
}
@keyframes bae-premium-nav-glow {
  0%,
  100% {
    transform: translateY(0);
    filter: brightness(1);
  }
  50% {
    transform: translateY(-1px);
    filter: brightness(1.1);
  }
}
@keyframes bae-premium-nav-shimmer {
  0%,
  62%,
  100% {
    transform: translateX(-135%) skewX(-18deg);
    opacity: 0;
  }
  10%,
  24% {
    opacity: 1;
  }
  34% {
    transform: translateX(135%) skewX(-18deg);
    opacity: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .terrain-btn[data-terrain="premium"] {
    animation: none;
  }
  .terrain-btn[data-terrain="premium"]::after {
    animation: none;
    opacity: 0;
  }
}

.bae-punch-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 12px 0 14px;
}
.bae-punch-grid--primary {
  margin-top: 8px;
  margin-bottom: 10px;
}
@media (min-width: 520px) {
  .bae-punch-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
.bae-punch-btn {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 4px;
  padding: 14px 12px !important;
  min-height: 72px;
  text-align: left;
  border-radius: 14px !important;
  border: 1px solid rgba(255, 255, 255, 0.2) !important;
  background: linear-gradient(160deg, rgba(30, 40, 85, 0.95), rgba(12, 18, 42, 0.98)) !important;
  color: #e8f4ff !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.08) !important;
}
.bae-punch-btn--main,
.bae-skill-btn--main {
  border-width: 2px !important;
}
.bae-punch-btn--main:hover,
.bae-skill-btn--main:hover {
  transform: translateY(-1px);
  filter: brightness(1.06);
}
.bae-punch-btn[data-punch="jab"] {
  border-color: rgba(156, 242, 255, 0.45) !important;
}
.bae-punch-btn[data-punch="cross"] {
  border-color: rgba(255, 120, 160, 0.5) !important;
}
.bae-punch-btn[data-punch="hook"] {
  border-color: rgba(255, 209, 102, 0.45) !important;
}
.bae-punch-btn[data-punch="uppercut"] {
  border-color: rgba(200, 120, 255, 0.5) !important;
}
.bae-punch-name {
  display: block;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.04em;
  line-height: 1.1;
}
.bae-punch-hint {
  display: block;
  margin-top: 2px;
  font-size: 11px;
  opacity: 0.78;
  font-weight: 600;
  line-height: 1.35;
}
.bae-fight-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: 12px;
  margin: 8px 0 10px;
}
@media (max-width: 900px) {
  .bae-skills-grid {
    grid-template-columns: 1fr;
  }
}
/* Mobile акордеони (за да не е сложно на телефона) */
details.bae-mob-acc {
  margin: 0;
}

details.bae-mob-acc > summary {
  list-style: none;
  cursor: pointer;
  padding: 12px 12px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  background: rgba(10, 16, 34, 0.72);
  color: rgba(232, 240, 255, 0.92);
  font-weight: 900;
  letter-spacing: 0.03em;
  text-transform: none;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.22);
}

details.bae-mob-acc > summary::-webkit-details-marker {
  display: none;
}

details.bae-header-acc-item > summary {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.bae-mobile-fullscreen {
  display: none;
}

@media (max-width: 900px) {
  #baeAccNav > #baeTerrainDrawer,
  #baeAccRight > .topbar-right {
    display: none !important;
  }

  .bae-mobile-fullscreen {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 20000;
    background:
      radial-gradient(circle at top, rgba(67, 246, 255, 0.14), transparent 34%),
      linear-gradient(180deg, rgba(8, 12, 28, 0.995), rgba(6, 10, 24, 0.99));
  }

  .bae-mobile-fullscreen--open {
    display: block !important;
  }

  .bae-mobile-fullscreen__sheet {
    height: 100vh;
    height: 100dvh;
    display: flex;
    flex-direction: column;
    padding: calc(12px + env(safe-area-inset-top, 0px)) 14px calc(18px + env(safe-area-inset-bottom, 0px));
  }

  .bae-mobile-fullscreen__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 4px 0 14px;
    color: #e8f4ff;
    font-size: 20px;
    font-weight: 900;
  }

  .bae-mobile-fullscreen__close {
    border: 1px solid rgba(67, 246, 255, 0.22);
    background: rgba(14, 22, 44, 0.9);
    color: #e8f4ff;
    border-radius: 14px;
    min-height: 44px;
    padding: 0 14px;
    font-weight: 800;
    font-family: var(--bae-font);
  }

  .terrain-nav--mobile-fullscreen,
  .bae-mobile-fullscreen__body {
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex: 1 1 auto;
    overflow-y: auto;
    padding-bottom: 12px;
  }

  .terrain-nav--mobile-fullscreen .terrain-btn {
    width: 100%;
    min-height: 58px;
    justify-content: flex-start !important;
    padding: 0 16px !important;
    border-radius: 16px !important;
    font-size: 15px !important;
  }

  .terrain-nav--mobile-fullscreen .nav-btn__label {
    font-size: 14px !important;
  }

  .bae-mobile-fullscreen__body .bae-help-btn {
    align-self: flex-start;
    min-width: 52px;
    min-height: 52px;
  }

  .bae-mobile-fullscreen__body .bae-quick-strip,
  .bae-mobile-fullscreen__body .bae-auth-slot {
    width: 100%;
  }

  body.bae-header-menu-open {
    overflow: hidden;
  }

  body.bae-header-menu-open .topbar {
    position: relative;
    z-index: 10001;
  }

  body.bae-header-menu-open--nav #baeAccNav,
  body.bae-header-menu-open--info #baeAccRight,
  #baeAccNav.is-fullscreen-open,
  #baeAccRight.is-fullscreen-open {
    position: fixed !important;
    inset: 0 !important;
    z-index: 9998 !important;
    margin: 0 !important;
    padding: 0 !important;
    background: linear-gradient(180deg, rgba(8, 12, 28, 0.99), rgba(6, 10, 24, 0.985)) !important;
  }

  body.bae-header-menu-open--nav #baeAccNav > summary,
  body.bae-header-menu-open--info #baeAccRight > summary,
  #baeAccNav.is-fullscreen-open > summary,
  #baeAccRight.is-fullscreen-open > summary {
    position: sticky !important;
    top: 0 !important;
    z-index: 10000 !important;
    margin: 0 !important;
    padding: calc(18px + env(safe-area-inset-top, 0px)) 18px 14px !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: linear-gradient(180deg, rgba(10, 16, 34, 1), rgba(10, 16, 34, 0.94)) !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.28) !important;
  }

  body.bae-header-menu-open #baeAccNav > summary,
  body.bae-header-menu-open #baeAccRight > summary {
    justify-content: flex-start !important;
    min-height: 68px !important;
    font-size: 18px !important;
    padding-left: 18px !important;
  }

  details.bae-mobile-acc-profile[open] > summary {
    display: none;
  }

  /* Само профил/магазин остават реални акордеони на мобилно. */
  details.bae-train-acc-item > summary,
  details.bae-work-acc-item > summary,
  details.bae-fight-acc-item > summary {
    display: none;
  }

  /* Мобилни менюта на цял екран */
  body.bae-header-menu-open--nav #baeAccNav > #baeTerrainDrawer,
  body.bae-header-menu-open--info #baeAccRight > .topbar-right,
  #baeAccNav.is-fullscreen-open > #baeTerrainDrawer,
  #baeAccRight.is-fullscreen-open > .topbar-right {
    position: fixed !important;
    inset: 0 !important;
    z-index: 9999 !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    justify-content: flex-start !important;
    gap: 10px !important;
    padding: calc(92px + env(safe-area-inset-top, 0px)) 16px calc(22px + env(safe-area-inset-bottom, 0px)) !important;
    background:
      radial-gradient(circle at top, rgba(67, 246, 255, 0.14), transparent 34%),
      linear-gradient(180deg, rgba(8, 12, 28, 0.995), rgba(6, 10, 24, 0.99)) !important;
    overflow: auto !important;
    animation: bae-fullscreen-sheet-in 220ms cubic-bezier(0.22, 1, 0.36, 1);
    width: 100% !important;
    max-width: none !important;
    box-sizing: border-box !important;
  }

  /* В full-screen режим: навигационните бутони да са като голям списък */
  body.bae-header-menu-open--nav #baeAccNav > #baeTerrainDrawer,
  #baeAccNav.is-fullscreen-open > #baeTerrainDrawer {
    flex-wrap: nowrap !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    align-content: stretch !important;
  }

  body.bae-header-menu-open--nav #baeAccNav > #baeTerrainDrawer .terrain-btn,
  #baeAccNav.is-fullscreen-open > #baeTerrainDrawer .terrain-btn {
    width: 100%;
    min-height: 58px;
    justify-content: flex-start !important;
    font-size: 15px !important;
    border-radius: 14px !important;
    padding: 0 16px !important;
  }

  body.bae-header-menu-open--info #baeAccRight > .topbar-right,
  #baeAccRight.is-fullscreen-open > .topbar-right {
    justify-content: flex-start !important;
    padding-top: calc(96px + env(safe-area-inset-top, 0px)) !important;
  }

  body.bae-header-menu-open--info #baeAccRight > .topbar-right .bae-help-btn,
  #baeAccRight.is-fullscreen-open > .topbar-right .bae-help-btn {
    align-self: flex-start;
    min-width: 52px;
    min-height: 52px;
  }

  body.bae-header-menu-open--info #baeAccRight > .topbar-right .bae-quick-strip,
  body.bae-header-menu-open--info #baeAccRight > .topbar-right .bae-auth-slot,
  #baeAccRight.is-fullscreen-open > .topbar-right .bae-quick-strip,
  #baeAccRight.is-fullscreen-open > .topbar-right .bae-auth-slot {
    width: 100%;
  }

  #baeAccNav > #baeTerrainDrawer,
  #baeAccRight > .topbar-right {
    will-change: transform, opacity;
    transform-origin: top center;
  }

  body.bae-header-menu-open .topbar-center {
    visibility: hidden;
    pointer-events: none;
  }

  body.bae-header-menu-open .bae-header-nav-acc,
  body.bae-header-menu-open .bae-header-right-acc {
    width: 100% !important;
    max-width: none !important;
  }

  body.bae-header-menu-open--nav #baeAccRight,
  body.bae-header-menu-open--info #baeAccNav {
    display: none !important;
  }

  /* Подреждане: първо основните панели, после профил/магазин */
  .grid {
    display: flex;
    flex-direction: column;
  }
  #panel-training,
  #panel-match,
  #panel-work,
  #panel-leaderboard,
  #panel-clan,
  #panel-settings,
  #panel-premium,
  #panel-terms,
  #panel-privacy,
  #panel-contacts,
  #panel-about,
  #panel-profile {
    order: 10;
  }
  #baeAccPlayer {
    order: 30;
  }
  #baeAccShop {
    order: 31;
  }
}

@keyframes bae-fullscreen-sheet-in {
  0% {
    opacity: 0;
    transform: translateY(18px) scale(0.985);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (min-width: 721px) {
  /* На desktop скриваме summary само за „вътрешните“ акордеони (профил/магазин/панели),
     но НЕ и за header (Навигация/Информация) — там трябва да може да се отвори, ако JS fail-safe не се изпълни. */
  details.bae-mob-acc.bae-mob-acc-item > summary {
    display: none;
  }
  /* На desktop НЕ показваме бутоните „Навигация/Информация“. */
  details.bae-header-acc-item > summary {
    display: none;
  }

  /* Fail-safe: на desktop показваме съдържанието дори ако <details> е затворен
     (някои теми/стилове/JS могат да оставят open=false). */
  #baeAccNav > #baeTerrainDrawer {
    display: flex !important;
  }
  #baeAccRight > .topbar-right {
    display: flex !important;
  }
}

@media (max-width: 720px) {
  .bae-fight-acc-item .bae-strip-title {
    display: none;
  }
}

/* Футър: навигация + условия/контакти */
.bae-footer {
  margin-top: 10px;
  padding: 12px 12px calc(12px + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid rgba(67, 246, 255, 0.14);
  background: rgba(7, 11, 24, 0.55);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.bae-footer-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  justify-content: center;
}

.bae-footer-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 12px !important;
  border-radius: 14px !important;
  border: 1px solid rgba(67, 246, 255, 0.26) !important;
  background: linear-gradient(135deg, rgba(20, 28, 60, 0.95), rgba(12, 18, 40, 0.9)) !important;
  color: #e8f4ff !important;
  font-weight: 900;
  letter-spacing: 0.02em;
  cursor: pointer;
  text-decoration: none;
}

.bae-footer-sub {
  opacity: 0.7;
  margin-top: 10px;
  text-align: center;
}

.bae-contact-box {
  margin-top: 10px;
  padding: 12px;
  border-radius: 14px;
  border: 1px solid rgba(67, 246, 255, 0.16);
  background: rgba(0, 0, 0, 0.22);
}

.bae-contact-email {
  margin: 6px 0 12px;
}

.bae-contact-ticket {
  width: 100%;
  margin-top: 6px;
  min-height: 48px;
  border-radius: 16px !important;
  border: 1px solid rgba(111, 225, 255, 0.42) !important;
  background:
    linear-gradient(180deg, rgba(40, 67, 116, 0.96), rgba(23, 41, 84, 0.95)) !important;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.06) inset,
    0 10px 28px rgba(7, 14, 31, 0.46),
    0 0 24px rgba(67, 246, 255, 0.12) !important;
  color: #eef8ff !important;
  font-weight: 800 !important;
  letter-spacing: 0.02em;
}

.bae-ticket-create {
  display: grid;
  gap: 14px;
  margin-top: 10px;
  padding: 16px;
  border-radius: 22px;
  background:
    radial-gradient(circle at top left, rgba(53, 95, 170, 0.14), transparent 32%),
    linear-gradient(180deg, rgba(11, 18, 38, 0.92), rgba(8, 14, 31, 0.88));
  border: 1px solid rgba(106, 200, 255, 0.18);
  box-shadow:
    0 18px 50px rgba(0, 0, 0, 0.34),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.bae-ticket-create__meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.bae-ticket-create input,
.bae-ticket-create select,
.bae-ticket-create textarea,
.bae-ticket-thread textarea {
  width: 100%;
  appearance: none;
  -webkit-appearance: none;
  border: 1px solid rgba(82, 193, 255, 0.28);
  background:
    linear-gradient(180deg, rgba(7, 13, 28, 0.96), rgba(10, 17, 35, 0.92));
  color: #e8f4ff;
  border-radius: 16px;
  padding: 14px 16px;
  font-size: 15px;
  line-height: 1.35;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    0 0 0 1px rgba(0, 0, 0, 0.28);
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.bae-ticket-create input::placeholder,
.bae-ticket-create textarea::placeholder,
.bae-ticket-thread textarea::placeholder {
  color: rgba(203, 224, 244, 0.48);
}

.bae-ticket-create input:focus,
.bae-ticket-create select:focus,
.bae-ticket-create textarea:focus,
.bae-ticket-thread textarea:focus {
  outline: none;
  border-color: rgba(118, 236, 255, 0.78);
  box-shadow:
    0 0 0 1px rgba(118, 236, 255, 0.38),
    0 0 24px rgba(67, 246, 255, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
  transform: translateY(-1px);
}

.bae-ticket-create select {
  padding-right: 42px;
  background-image:
    linear-gradient(45deg, transparent 50%, #8feaff 50%),
    linear-gradient(135deg, #8feaff 50%, transparent 50%),
    linear-gradient(180deg, rgba(7, 13, 28, 0.96), rgba(10, 17, 35, 0.92));
  background-position:
    calc(100% - 18px) calc(50% - 3px),
    calc(100% - 12px) calc(50% - 3px),
    0 0;
  background-size: 6px 6px, 6px 6px, 100% 100%;
  background-repeat: no-repeat;
}

.bae-ticket-list {
  margin-top: 16px;
  display: grid;
  gap: 10px;
}

.bae-ticket-item {
  text-align: left;
  width: 100%;
  border: 1px solid rgba(67, 246, 255, 0.18) !important;
  background:
    radial-gradient(circle at top right, rgba(77, 146, 255, 0.08), transparent 28%),
    linear-gradient(180deg, rgba(10, 16, 34, 0.9), rgba(9, 14, 28, 0.84)) !important;
  border-radius: 18px !important;
  padding: 14px !important;
  display: grid;
  gap: 6px;
  box-shadow:
    0 12px 30px rgba(0, 0, 0, 0.24),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.bae-ticket-item.is-active {
  border-color: rgba(138, 248, 255, 0.8) !important;
  box-shadow:
    0 0 0 1px rgba(138, 248, 255, 0.26),
    0 18px 44px rgba(0, 0, 0, 0.3),
    0 0 30px rgba(67, 246, 255, 0.14);
}

.bae-ticket-item__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.bae-ticket-item__status,
.bae-ticket-thread__head span {
  font-size: 12px;
  opacity: 0.92;
  color: #a9e8ff;
}

.bae-ticket-unread-top {
  margin-bottom: 6px;
  font-size: 12px;
  opacity: 0.9;
  color: #b8e9ff;
}

.bae-ticket-item__new {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 2px 7px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  border: 1px solid rgba(255, 209, 102, 0.55);
  background: rgba(255, 209, 102, 0.15);
  color: #ffeab8;
}

.bae-ticket-item__subject {
  font-weight: 700;
  color: #f2f7ff;
}

.bae-ticket-item__meta {
  font-size: 12px;
  opacity: 0.72;
  color: #9cb7d1;
}

.bae-ticket-thread {
  margin-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 16px;
}

.bae-ticket-thread__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}

.bae-ticket-thread__head strong {
  font-size: 1.15rem;
  line-height: 1.2;
  color: #f4f8ff;
}

.bae-ticket-thread__messages {
  display: grid;
  gap: 10px;
  margin-bottom: 12px;
}

.bae-ticket-msg {
  border-radius: 16px;
  padding: 12px 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background:
    linear-gradient(180deg, rgba(8, 12, 28, 0.92), rgba(9, 13, 27, 0.82));
  box-shadow:
    0 10px 24px rgba(0, 0, 0, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.bae-ticket-msg--admin {
  border-color: rgba(255, 209, 102, 0.4);
  background:
    radial-gradient(circle at top left, rgba(255, 208, 102, 0.08), transparent 28%),
    linear-gradient(180deg, rgba(54, 42, 18, 0.72), rgba(40, 29, 16, 0.62));
}

.bae-ticket-msg__meta {
  font-size: 11px;
  opacity: 0.86;
  margin-bottom: 6px;
  color: #9ec5dd;
}

.bae-ticket-msg__body {
  white-space: pre-wrap;
  color: #eef5ff;
  line-height: 1.6;
}

.bae-ticket-thread__reply {
  display: grid;
  gap: 10px;
  padding: 14px;
  border-radius: 18px;
  background: rgba(6, 11, 25, 0.5);
  border: 1px solid rgba(105, 182, 255, 0.12);
}

@media (max-width: 720px) {
  .bae-ticket-create {
    padding: 14px;
    border-radius: 18px;
  }
  .bae-ticket-create__meta {
    grid-template-columns: 1fr;
  }
  .bae-ticket-item {
    padding: 12px !important;
  }
}

.bae-ref-apply {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.bae-ref-apply input {
  min-width: 180px;
  flex: 1 1 220px;
  border: 1px solid rgba(67, 246, 255, 0.22);
  background: rgba(5, 10, 24, 0.7);
  color: #e8f4ff;
  border-radius: 10px;
  padding: 10px 12px;
}

.bae-legal-card {
  overflow: visible;
}

.bae-legal-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 12px;
}

.bae-legal-block {
  padding: 12px;
  border-radius: 12px;
  border: 1px solid rgba(67, 246, 255, 0.18);
  background: linear-gradient(180deg, rgba(14, 22, 44, 0.9), rgba(8, 14, 30, 0.85));
}

.bae-legal-block h3 {
  margin: 0 0 8px;
  font-size: 14px;
  letter-spacing: 0.02em;
}

.bae-legal-block p {
  margin: 0;
  font-size: 13px;
  line-height: 1.55;
  color: rgba(232, 240, 255, 0.9);
}

.bae-about-card {
  overflow: visible;
}

.bae-about-hero {
  position: relative;
  padding: 20px;
  border-radius: 22px;
  border: 1px solid rgba(255, 112, 190, 0.24);
  background:
    radial-gradient(120% 160% at 0% 0%, rgba(255, 62, 242, 0.24), transparent 55%),
    radial-gradient(120% 140% at 100% 0%, rgba(67, 246, 255, 0.22), transparent 50%),
    linear-gradient(180deg, rgba(22, 16, 44, 0.95), rgba(12, 18, 40, 0.92));
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.3);
}

.bae-about-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(280px, .8fr);
  gap: 18px;
  align-items: stretch;
}

.bae-about-hero__main {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.bae-about-hero__stats {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.bae-about-hero__badge {
  display: inline-flex;
  margin-bottom: 12px;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.12em;
  color: #c8fbff;
  border: 1px solid rgba(111, 233, 255, 0.24);
  background: rgba(95, 219, 255, 0.12);
}

.bae-about-hero h3 {
  margin: 0;
  font-size: clamp(1.35rem, 3.5vw, 2.2rem);
  line-height: 1.1;
}

.bae-about-hero p {
  margin: 0;
  font-size: 14px;
  line-height: 1.72;
  color: rgba(232, 240, 255, 0.92);
}

.bae-about-stat {
  border-radius: 18px;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: linear-gradient(180deg, rgba(8, 16, 35, 0.82), rgba(12, 20, 42, 0.94));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.bae-about-stat__k {
  display: block;
  margin-bottom: 8px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(160, 236, 255, 0.9);
}

.bae-about-stat strong {
  display: block;
  margin-bottom: 6px;
  font-size: 18px;
  color: #f5fbff;
}

.bae-about-stat small {
  display: block;
  font-size: 13px;
  line-height: 1.55;
  color: rgba(228, 240, 255, 0.76);
}

.bae-about-story {
  margin-top: 16px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.bae-about-story__card {
  padding: 18px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: linear-gradient(180deg, rgba(11, 19, 39, 0.86), rgba(9, 14, 30, 0.92));
}

.bae-about-story__card--accent {
  border-color: rgba(111, 233, 255, 0.24);
  background:
    radial-gradient(circle at top right, rgba(111, 233, 255, 0.14), transparent 30%),
    linear-gradient(180deg, rgba(12, 25, 48, 0.9), rgba(10, 16, 34, 0.95));
}

.bae-about-story__eyebrow,
.bae-about-panel__k {
  display: inline-flex;
  margin-bottom: 10px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #9fefff;
}

.bae-about-story__card h4,
.bae-about-panel h4 {
  margin: 0 0 10px;
  font-size: 20px;
  line-height: 1.2;
  color: #f7fbff;
}

.bae-about-story__card p,
.bae-about-panel p {
  margin: 0;
  font-size: 14px;
  line-height: 1.72;
  color: rgba(232, 240, 255, 0.9);
}

.bae-about-story__card p + p,
.bae-about-panel p + p {
  margin-top: 10px;
}

.bae-about-grid {
  margin-top: 16px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 14px;
}

.bae-about-tile {
  border-radius: 18px;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(9, 14, 30, 0.78);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.bae-about-tile--tall {
  min-height: 180px;
}

.bae-about-tile h4 {
  margin: 0 0 10px;
  font-size: 16px;
  letter-spacing: 0.02em;
}

.bae-about-tile p {
  margin: 0;
  font-size: 14px;
  line-height: 1.68;
  color: rgba(232, 240, 255, 0.9);
}

.bae-about-columns {
  margin-top: 16px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.bae-about-panel {
  padding: 18px;
  border-radius: 20px;
  border: 1px solid rgba(111, 233, 255, 0.14);
  background:
    radial-gradient(circle at top left, rgba(98, 215, 255, 0.12), transparent 30%),
    linear-gradient(180deg, rgba(10, 16, 35, 0.92), rgba(8, 13, 28, 0.96));
}

.bae-about-panel__head {
  margin-bottom: 10px;
}

.bae-about-list {
  margin: 0;
  padding-left: 18px;
  color: rgba(232, 240, 255, 0.92);
}

.bae-about-list li {
  margin: 0 0 8px;
  line-height: 1.6;
}

.bae-about-quote {
  position: relative;
  margin-top: 16px;
  padding: 22px 20px 20px 72px;
  border-radius: 22px;
  border: 1px solid rgba(255, 112, 190, 0.16);
  background:
    radial-gradient(circle at bottom right, rgba(255, 68, 196, 0.12), transparent 26%),
    linear-gradient(180deg, rgba(23, 16, 42, 0.96), rgba(11, 16, 33, 0.92));
}

.bae-about-quote__mark {
  position: absolute;
  top: 8px;
  left: 20px;
  font-size: 72px;
  line-height: 1;
  color: rgba(134, 236, 255, 0.22);
}

.bae-about-quote__body p {
  margin: 0 0 10px;
  font-size: 18px;
  line-height: 1.55;
  color: #f5fbff;
}

.bae-about-quote__body span {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(160, 236, 255, 0.88);
}

@media (max-width: 900px) {
  .bae-about-hero__grid,
  .bae-about-story,
  .bae-about-columns {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .bae-about-hero {
    padding: 16px;
    border-radius: 18px;
  }

  .bae-about-hero h3 {
    font-size: 1.45rem;
  }

  .bae-about-story__card,
  .bae-about-panel,
  .bae-about-tile {
    padding: 14px;
  }

  .bae-about-quote {
    padding: 18px 16px 16px 58px;
    border-radius: 18px;
  }

  .bae-about-quote__mark {
    left: 14px;
    font-size: 56px;
  }

  .bae-about-quote__body p {
    font-size: 16px;
  }
}

.bae-guide-faq-item {
  margin-top: 8px;
  border: 1px solid rgba(67, 246, 255, 0.18);
  border-radius: 10px;
  background: rgba(8, 14, 32, 0.62);
  overflow: hidden;
}

.bae-guide-faq-item > summary {
  cursor: pointer;
  padding: 10px 12px;
  font-weight: 800;
  color: #e9f6ff;
  list-style: none;
}

.bae-guide-faq-item > summary::-webkit-details-marker {
  display: none;
}

.bae-guide-faq-item > p {
  margin: 0;
  padding: 0 12px 12px;
  color: rgba(232, 244, 255, 0.92);
}

@media (max-width: 900px) {
  #baeAccNav,
  #baeAccRight,
  #baeAccNav[open],
  #baeAccRight[open],
  #baeAccNav.is-fullscreen-open,
  #baeAccRight.is-fullscreen-open {
    position: relative !important;
    inset: auto !important;
    z-index: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    background: transparent !important;
    width: 100% !important;
    max-width: none !important;
  }

  #baeAccNav > summary,
  #baeAccRight > summary,
  #baeAccNav[open] > summary,
  #baeAccRight[open] > summary,
  #baeAccNav.is-fullscreen-open > summary,
  #baeAccRight.is-fullscreen-open > summary {
    position: relative !important;
    top: auto !important;
    z-index: auto !important;
    min-height: 56px !important;
    padding: 0 18px !important;
    border-radius: 18px !important;
    border: 1px solid rgba(255, 255, 255, 0.09) !important;
    background: rgba(10, 16, 34, 0.82) !important;
    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.22) !important;
    justify-content: center !important;
    font-size: 17px !important;
  }

  #baeAccNav > #baeTerrainDrawer,
  #baeAccRight > .topbar-right,
  #baeAccNav[open] > #baeTerrainDrawer,
  #baeAccRight[open] > .topbar-right,
  #baeAccNav.is-fullscreen-open > #baeTerrainDrawer,
  #baeAccRight.is-fullscreen-open > .topbar-right {
    display: none !important;
  }

  .bae-mobile-fullscreen {
    display: none !important;
  }

  .bae-mobile-fullscreen.bae-mobile-fullscreen--open {
    display: block !important;
  }
}
.bae-fight-block {
  padding: 16px 18px;
  border-radius: 18px;
  border: 1px solid rgba(120, 190, 255, 0.12);
  background:
    linear-gradient(180deg, rgba(14, 22, 46, 0.9), rgba(9, 15, 32, 0.88)),
    radial-gradient(circle at top right, rgba(67, 246, 255, 0.06), transparent 40%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04), 0 12px 28px rgba(0, 0, 0, 0.18);
}
.bae-fight-block--primary {
  margin-bottom: 14px;
  border-color: rgba(120, 233, 255, 0.28);
  background:
    radial-gradient(circle at bottom center, rgba(67, 246, 255, 0.08), transparent 55%),
    linear-gradient(180deg, rgba(24, 31, 60, 0.96), rgba(12, 18, 42, 0.95));
  box-shadow: inset 0 0 0 1px rgba(120, 233, 255, 0.08), 0 16px 34px rgba(0, 0, 0, 0.22);
}
.bae-fight-lead {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(220px, 0.9fr);
  gap: 14px;
  align-items: start;
}
.bae-fight-tip {
  display: grid;
  gap: 6px;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid rgba(255, 209, 102, 0.24);
  background:
    radial-gradient(circle at top right, rgba(255, 209, 102, 0.12), transparent 42%),
    linear-gradient(180deg, rgba(40, 33, 22, 0.72), rgba(19, 19, 31, 0.8));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}
.bae-fight-tip__label {
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #ffdca1;
}
.bae-fight-subtitle {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #a8d8ff;
  margin: 10px 0 6px;
}
.bae-fight-subcopy {
  margin: -2px 0 8px;
  font-size: 12px;
  line-height: 1.45;
  color: rgba(222, 236, 255, 0.74);
}
.bae-fight-helper-grid {
  display: grid;
  gap: 10px;
  margin: 10px 0 14px;
}
.bae-fight-helper-card {
  display: grid;
  gap: 4px;
  padding: 13px 14px;
  border-radius: 14px;
  border: 1px solid rgba(125, 183, 255, 0.18);
  background: linear-gradient(180deg, rgba(22, 32, 63, 0.9), rgba(13, 20, 38, 0.84));
}
.bae-fight-helper-card__kicker {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #9fdcff;
}
.bae-fight-extras button {
  flex: 1 1 auto;
  min-width: 120px;
}
.bae-fight-aux-btn {
  border: 1px solid rgba(148, 180, 255, 0.3) !important;
  background: rgba(16, 26, 52, 0.78) !important;
  color: #e8f3ff !important;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.45);
}
.bae-fight-aux-btn:hover {
  border-color: rgba(255, 209, 102, 0.45) !important;
}
.bae-fight-meta {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 14px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(14, 23, 48, 0.74);
  border: 1px solid rgba(120, 190, 255, 0.14);
  color: rgba(226, 238, 255, 0.86);
  font-size: 12px;
  line-height: 1.35;
}
.bae-fight-meta #fightMode {
  display: inline-flex;
  align-items: center;
  padding: 4px 9px;
  border-radius: 999px;
  background: rgba(67, 246, 255, 0.12);
  border: 1px solid rgba(67, 246, 255, 0.24);
  color: #effbff;
  font-weight: 800;
}
.bae-lb-lead {
  margin-bottom: 10px;
}

/* Мобилна игра: лого → меню → статус, safe-area, по-големи докосвания */
@media (max-width: 900px) {
  .topbar--triple {
    grid-template-columns: 1fr 1fr;
    grid-template-areas:
      "logo logo"
      "nav right";
    gap: 12px;
  }
  .terrain-nav--left {
    justify-content: flex-start;
    width: 100%;
    max-width: 100%;
  }
  #baeTerrainDrawer {
    flex-direction: column;
    gap: 6px;
    overflow: visible;
    max-width: 100%;
  }
  #baeTerrainDrawer .terrain-btn {
    width: 100%;
    justify-content: flex-start;
    min-width: 0;
  }
  .topbar-right {
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
  }
  .bae-top-actions {
    justify-content: center;
  }
}
@media (max-width: 768px) {
  body.bae-app {
    background-attachment: scroll;
    padding-bottom: env(safe-area-inset-bottom, 0px);
  }
  .topbar {
    padding: 10px 12px;
    padding-top: max(10px, env(safe-area-inset-top, 0px));
  }
  .brand-logo {
    height: clamp(64px, 18vw, 108px);
  }
  .brand-logo--center {
    height: clamp(74px, 20vw, 116px);
    max-width: min(78vw, 340px);
  }
  .bae-logo-hero {
    margin-bottom: clamp(-16px, -4vw, -6px);
  }
  .topbar-brand-row {
    flex-direction: column;
    align-items: stretch;
  }
  .terrain-nav--inline {
    justify-content: center;
    flex-wrap: wrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    gap: 6px;
    padding-bottom: 2px;
  }
  .terrain-btn {
    flex: 0 0 auto;
    min-width: min(102px, 28vw);
    padding: 8px 10px !important;
    font-size: inherit !important;
  }
  .grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
    padding: 18px 12px 8px;
  }
  .card {
    padding: 14px 12px;
  }
  button:not(.terrain-btn),
  input {
    min-height: 48px;
    padding: 12px 16px;
  }
  .inv-slot {
    min-height: 52px;
  }
  .inv-slot img.inv-type-icon {
    width: 40px;
    height: 40px;
  }
  #arenaScene {
    margin: clamp(10px, 2.5vw, 20px) 0 12px;
  }
  .bae-float-img {
    opacity: 0.07;
  }
  .bae-sparkles {
    opacity: 0.4;
  }
  .bae-top-action {
    flex: 1 1 calc(33.333% - 6px);
  }
  .bae-goals-grid {
    grid-template-columns: 1fr;
  }
}

.bae-help-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-weight: 800;
  font-size: 1rem;
  line-height: 1;
  padding: 0;
  background: linear-gradient(135deg, rgba(67, 246, 255, 0.25), rgba(255, 62, 242, 0.15));
  border: 1px solid rgba(67, 246, 255, 0.45);
  color: #e8f4ff;
  cursor: pointer;
  box-shadow: 0 0 14px rgba(67, 246, 255, 0.2);
}
.bae-help-btn:hover {
  transform: scale(1.06);
  box-shadow: 0 0 22px rgba(67, 246, 255, 0.45);
}
.arena-hud {
  text-align: center;
  margin-bottom: 8px;
  z-index: 2;
}
.arena-hud-text {
  display: block;
  width: 100%;
  max-width: min(920px, 100%);
  margin: 0 auto;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(7, 11, 24, 0.82);
  border: 1px solid rgba(67, 246, 255, 0.28);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.35);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-align: left;
  text-shadow: none;
}
.arena-hud-board {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.arena-hud-row--ticks {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  align-items: stretch;
}
.bae-hud-chip {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 78px;
  padding: 8px 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
}
.bae-hud-chip-k {
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  opacity: 0.72;
  color: #b8d4ff;
  margin-bottom: 4px;
}
.bae-hud-chip-v {
  font-size: 1.05rem;
  font-weight: 800;
  line-height: 1.15;
  color: #f2f8ff;
}
.bae-hud-chip-sep {
  margin: 0 2px;
  opacity: 0.45;
  font-weight: 700;
}
.bae-hud-chip-hint {
  font-size: 9px;
  font-weight: 700;
  opacity: 0.55;
  margin-top: 4px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.bae-hud-chip--tier .bae-hud-chip-v {
  color: #c4a7ff;
}
.bae-hud-chip--round .bae-hud-chip-v {
  color: #7dffb3;
}
.bae-hud-chip--combo .bae-hud-chip-v {
  color: #ff8ab5;
}
.arena-hud-row--opp {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
@media (max-width: 520px) {
  .arena-hud-row--opp {
    grid-template-columns: 1fr;
  }
}
.bae-hud-block {
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.22);
  border: 1px solid rgba(255, 209, 102, 0.2);
}
.bae-hud-block-k {
  display: block;
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #9ecfff;
  opacity: 0.85;
  margin-bottom: 6px;
}
.bae-hud-block-v {
  font-size: 0.92rem;
  font-weight: 800;
  line-height: 1.35;
  color: #ffd166;
  word-break: break-word;
}
.arena-hud-row--skills {
  padding-top: 4px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.bae-hud-skills-lead {
  margin: 0 0 10px;
  font-size: 11px;
  line-height: 1.45;
  font-weight: 600;
  color: #c5daf5;
  opacity: 0.92;
  text-align: center;
}
.bae-hud-skills-lead strong {
  color: #fff;
  font-weight: 800;
}
.bae-hud-cd-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}
.bae-hud-cd-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(67, 246, 255, 0.08);
  border: 1px solid rgba(67, 246, 255, 0.22);
  font-size: 12px;
  font-weight: 700;
}
.bae-hud-cd-name {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  opacity: 0.8;
  color: #a8e8ff;
}
.bae-hud-cd-val {
  font-weight: 800;
  color: #f0f8ff;
}
.bae-hud-cd-val strong {
  font-size: 1.05em;
  color: #7dffb3;
}
.bae-hud-cd-val--ready {
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: #7dffb3;
}
.bae-hud-cd-unit {
  font-size: 10px;
  font-weight: 700;
  opacity: 0.65;
  margin-left: 1px;
}
.arena-second-wind {
  text-align: center;
  margin: 6px 0 10px;
  z-index: 2;
}
.bae-sw-btn {
  background: linear-gradient(135deg, #2a3a62, #1a2344) !important;
  border: 1px solid rgba(255, 209, 102, 0.45) !important;
  color: #ffe6a8 !important;
  font-weight: 700 !important;
}
.bae-sw-btn:hover {
  box-shadow: 0 0 18px rgba(255, 209, 102, 0.35);
}
.arena-damage-note {
  font-size: 12px;
  opacity: 0.95;
  margin-top: 6px;
  color: #a8d7ff;
}
.arena-damage-note--decision {
  color: #ffd166;
  font-weight: 700;
}
.bae-arena-punch {
  animation: baeArenaBump 0.28s ease-out;
}
@keyframes baeArenaBump {
  0% { transform: scale(1); filter: brightness(1); }
  40% { transform: scale(1.012); filter: brightness(1.08); }
  100% { transform: scale(1); filter: brightness(1); }
}
.bae-fighter-flash {
  animation: baeFighterFlash 0.35s ease-out;
}
@keyframes baeFighterFlash {
  0% { filter: brightness(1) drop-shadow(0 0 0 transparent); }
  35% { filter: brightness(1.25) drop-shadow(0 0 12px rgba(67, 246, 255, 0.6)); }
  100% { filter: brightness(1) drop-shadow(0 0 0 transparent); }
}
body.bae-ko-burst {
  animation: baeKoBurst 0.85s ease-out;
}
@keyframes baeKoBurst {
  0% { filter: brightness(1); }
  40% { filter: brightness(1.15) contrast(1.05); }
  100% { filter: brightness(1); }
}
.bae-overlay {
  position: fixed;
  inset: 0;
  background: rgba(3, 6, 18, 0.72);
  z-index: 90;
  backdrop-filter: blur(4px);
}
.bae-modal {
  position: fixed;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 91;
  max-width: min(520px, 94vw);
  width: min(520px, 94vw);
  max-height: min(88vh, 900px);
  overflow-x: hidden;
  overflow-y: auto;
  box-sizing: border-box;
  padding: 12px;
}
.bae-modal.bae-modal--profile {
  max-width: min(1180px, 96vw);
  width: min(1180px, 96vw);
  max-height: min(90vh, 980px);
}
.bae-modal.bae-modal--wide,
.bae-modal:has(.bae-goals-modal),
.bae-modal:has(.bae-item-detail-modal) {
  max-width: min(1080px, 96vw);
  width: min(1080px, 96vw);
}
.bae-modal-inner {
  background: linear-gradient(145deg, rgba(20, 28, 60, 0.98), rgba(10, 14, 32, 0.96));
  border: 1px solid rgba(67, 246, 255, 0.35);
  border-radius: 16px;
  padding: 18px 20px;
  box-shadow: 0 12px 48px rgba(0, 0, 0, 0.5), 0 0 28px rgba(67, 246, 255, 0.12);
  max-width: 100%;
  box-sizing: border-box;
  position: relative;
  overflow: visible;
}

.bae-checkout-frame-wrap {
  margin-top: 10px;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: #081225;
}

.bae-checkout-frame {
  width: 100%;
  height: min(78vh, 720px);
  border: 0;
  display: block;
  background: #070b18;
}
.bae-goals-modal {
  width: 100%;
}
.bae-item-detail-modal .bae-item-detail-visual {
  display: flex;
  justify-content: center;
  margin: 8px 0 14px;
}
.bae-item-detail-modal .bae-item-detail-visual .inv-type-icon,
.bae-item-detail-modal .bae-item-detail-visual .inv-type-emoji {
  width: 72px;
  height: 72px;
  font-size: 3rem;
}
.bae-item-detail-table th {
  width: 38%;
  font-size: 12px;
  color: #9fc0ea;
}
.bae-item-detail-table td {
  word-break: break-word;
}
.bae-item-detail-hint {
  margin: 12px 0 0;
  opacity: 0.85;
}
.bae-help-title {
  margin: 0 0 12px;
  font-size: 1.1rem;
}
.bae-help-line {
  font-size: 13px;
  line-height: 1.45;
  margin: 0 0 10px;
  opacity: 0.95;
}
.bae-modal-ok {
  margin-top: 14px;
  width: 100%;
}
.bae-story-text {
  font-size: 15px;
  line-height: 1.5;
  margin: 0 0 12px;
}
.bae-daily-card {
  margin: 10px 0 12px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(67, 246, 255, 0.2);
  background: rgba(0, 0, 0, 0.2);
}
.bae-daily-chips {
  font-size: 13px;
  margin: 6px 0 10px;
  font-weight: 700;
}
.bae-daily-claim {
  width: 100%;
}
.bae-daily-claim:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}
.bae-job-log {
  max-height: 120px;
  overflow-y: auto;
  margin-top: 4px;
}
.bae-settings-layout {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 14px;
  align-items: start;
}
.bae-settings-topnav,
.bae-settings-subnav {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 16px;
  padding: 10px;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(11, 18, 38, 0.9), rgba(8, 13, 28, 0.82));
  border: 1px solid rgba(111, 233, 255, 0.12);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}
.bae-settings-subnav {
  padding: 8px;
  margin-bottom: 12px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.035);
  border-color: rgba(255, 255, 255, 0.08);
}
.bae-settings-topnav__btn,
.bae-settings-subnav__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(14, 22, 43, 0.92);
  color: #cfe3ff;
  font: 700 13px/1 "Exo 2", system-ui, sans-serif;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: border-color .18s ease, background .18s ease, box-shadow .18s ease, transform .18s ease;
}
.bae-settings-topnav__btn {
  min-width: 120px;
  flex: 1 1 140px;
}
.bae-settings-subnav__btn {
  min-width: 110px;
  flex: 1 1 130px;
}
.bae-settings-topnav__btn:hover,
.bae-settings-subnav__btn:hover {
  transform: translateY(-1px);
  border-color: rgba(111, 233, 255, 0.28);
  background: rgba(18, 29, 54, 0.98);
}
.bae-settings-topnav__btn.is-active,
.bae-settings-subnav__btn.is-active {
  color: #07111f;
  border-color: rgba(111, 233, 255, 0.46);
  background: linear-gradient(135deg, #a1f8ff, #79dfff);
  box-shadow: 0 10px 24px rgba(121, 223, 255, 0.2);
}
.bae-data-card {
  padding: 14px;
  border-radius: 16px;
  background: linear-gradient(160deg, rgba(16, 24, 48, 0.92), rgba(12, 18, 38, 0.9));
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.03), 0 10px 26px rgba(0, 0, 0, 0.28);
}
.bae-data-card--work {
  grid-column: 1 / -1;
}
.bae-data-card--settings {
  grid-column: 1 / -1;
}
.bae-data-card + .bae-data-card {
  margin-top: 14px;
}
.bae-data-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px 12px;
  margin-bottom: 10px;
}
.bae-data-card__head strong {
  min-width: 0;
  flex: 1 1 auto;
}
.bae-data-card__head .bae-mini-btn {
  flex: 0 0 auto;
}
.bae-data-card__foot {
  margin-top: 10px;
  opacity: 0.82;
  font-size: 12px;
}
.bae-data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  table-layout: fixed;
}
.bae-data-table th,
.bae-data-table td {
  padding: 10px 12px;
  text-align: left;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  vertical-align: middle;
  word-break: break-word;
}
.bae-data-table thead th {
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #9fc0ea;
}
.bae-data-table tbody tr:hover {
  background: rgba(255, 255, 255, 0.03);
}
.bae-data-table--history td,
.bae-data-table--history th {
  font-size: 12px;
}
.bae-table-status {
  display: inline-flex;
  align-items: center;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
}
.bae-table-status.is-ready {
  background: rgba(255, 209, 102, 0.18);
  color: #ffe09a;
}
.bae-table-status.is-done {
  background: rgba(68, 211, 109, 0.18);
  color: #9affb8;
}
.bae-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}
.bae-modal-close {
  width: 34px;
  height: 34px;
  padding: 0 !important;
  border-radius: 999px !important;
  position: absolute;
  top: 14px;
  right: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  z-index: 4;
}
.bae-modal-close--locked {
  opacity: 0.58;
  cursor: not-allowed;
}
.bae-promo-modal {
  position: relative;
  display: grid;
  gap: 16px;
  padding-top: 18px;
}
.bae-promo-modal__badge {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 8px 14px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(255, 209, 102, 0.18), rgba(255, 105, 180, 0.12));
  border: 1px solid rgba(255, 209, 102, 0.28);
  color: #ffe29a;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.bae-promo-modal__timer {
  padding: 10px 14px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #d9e7ff;
  font-size: 13px;
  font-weight: 800;
}
.bae-promo-modal__body {
  display: grid;
  gap: 14px;
}
.bae-promo-modal__body h1,
.bae-promo-modal__body h2,
.bae-promo-modal__body h3 {
  margin: 0;
}
.bae-promo-modal__body p {
  margin: 0;
  line-height: 1.55;
}
.bae-promo-modal__body img,
.bae-promo-modal__body iframe,
.bae-promo-modal__body video {
  max-width: 100%;
  border-radius: 14px;
}
.bae-purchase-modal {
  position: relative;
  display: grid;
  gap: 16px;
  text-align: center;
  padding: 10px 6px 4px;
}
.bae-purchase-modal__badge {
  display: inline-flex;
  margin: 0 auto;
  padding: 8px 14px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(67, 246, 255, 0.18), rgba(138, 248, 255, 0.12));
  border: 1px solid rgba(67, 246, 255, 0.28);
  color: #9ffaff;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.bae-purchase-modal__art {
  display: grid;
  place-items: center;
  min-height: 180px;
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: radial-gradient(circle at top, rgba(67, 246, 255, 0.14), transparent 50%), linear-gradient(180deg, rgba(18, 29, 51, 0.96), rgba(7, 12, 24, 0.96));
}
.bae-purchase-modal__art img {
  max-width: 170px;
  max-height: 170px;
  object-fit: contain;
  filter: drop-shadow(0 18px 40px rgba(0, 0, 0, 0.38));
}
.bae-purchase-modal__art--gold {
  background: radial-gradient(circle at top, rgba(255, 209, 102, 0.18), transparent 48%), linear-gradient(180deg, rgba(30, 24, 14, 0.96), rgba(14, 12, 10, 0.96));
}
.bae-purchase-modal__art--violet {
  background: radial-gradient(circle at top, rgba(196, 138, 255, 0.18), transparent 48%), linear-gradient(180deg, rgba(24, 16, 38, 0.96), rgba(11, 8, 20, 0.96));
}
.bae-purchase-modal__art--vip {
  background: radial-gradient(circle at top, rgba(255, 209, 102, 0.22), transparent 48%), linear-gradient(180deg, rgba(34, 26, 9, 0.96), rgba(15, 11, 7, 0.96));
}
.bae-purchase-modal__title {
  margin: 0;
  font-size: clamp(28px, 4vw, 38px);
  line-height: 1.04;
}
.bae-purchase-modal__text {
  margin: 0;
  color: rgba(232, 244, 255, 0.8);
  font-size: 16px;
}
.bae-purchase-modal__price {
  color: #ffd978;
  font-size: 18px;
  font-weight: 800;
}
.bae-purchase-modal__actions {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
}
.bae-fight-result-modal {
  max-width: 860px;
}
.bae-fight-result-modal__badge {
  display: inline-flex;
  align-items: center;
  padding: 7px 12px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: rgba(67, 246, 255, 0.14);
  border: 1px solid rgba(67, 246, 255, 0.26);
  color: #9df6ff;
}
.bae-fight-result-modal--win .bae-fight-result-modal__badge {
  background: rgba(125, 255, 179, 0.14);
  border-color: rgba(125, 255, 179, 0.28);
  color: #b8ffcf;
}
.bae-fight-result-modal--loss .bae-fight-result-modal__badge {
  background: rgba(255, 122, 160, 0.14);
  border-color: rgba(255, 122, 160, 0.28);
  color: #ffc2d4;
}
.bae-fight-result-modal__title {
  margin: 14px 0 6px;
  font-size: clamp(28px, 4vw, 40px);
  line-height: 1;
}
.bae-fight-result-modal__lead {
  margin: 0 0 14px;
  color: rgba(232, 244, 255, 0.82);
}
.bae-fight-result-modal__stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 14px;
}
.bae-fight-result-modal__stat {
  padding: 14px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(8, 12, 24, 0.74);
}
.bae-fight-result-modal__stat-k {
  display: block;
  margin-bottom: 6px;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #8bb6df;
}
.bae-fight-result-modal__stat-v {
  display: block;
  font-size: 20px;
  line-height: 1.15;
  color: #f4f8ff;
}
.bae-fight-result-modal__log-wrap {
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(6, 10, 20, 0.78);
  overflow: hidden;
}
.bae-fight-result-modal__log-head {
  padding: 12px 14px;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #9edfff;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.bae-fight-result-modal__log {
  max-height: 320px;
  overflow: auto;
}
.bae-fight-result-modal__line {
  padding: 12px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  color: #e8f3ff;
  line-height: 1.45;
}
.bae-fight-result-modal__line:last-child {
  border-bottom: 0;
}
.bae-fight-result-modal__line--empty {
  color: rgba(232, 243, 255, 0.56);
}
.bae-fight-result-modal__actions {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 14px;
}
@media (max-width: 768px) {
  .bae-fight-result-modal__stats {
    grid-template-columns: 1fr;
  }
  .bae-fight-result-modal__stat-v {
    font-size: 18px;
  }
}
.bae-goals-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
  gap: 14px;
  margin-bottom: 14px;
}
.bae-data-card--career {
  margin-top: 0 !important;
}
.bae-skill-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 10px;
  margin-bottom: 8px;
  background: rgba(255, 255, 255, 0.04);
}
.bae-friendly-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
}
.bae-friendly-input {
  flex: 1 1 100px;
  min-width: 0;
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: inherit;
}
.bae-muted {
  opacity: 0.8;
  margin-top: 6px;
}
.bae-meta-tile--season {
  border-color: rgba(255, 209, 102, 0.35);
}

/* ——— Пълен екран: вход / регистрация ——— */
body.bae-guest {
  min-height: 100vh;
  overflow-x: hidden;
}
body.bae-guest .bae-app-shell[hidden] {
  display: none !important;
}
.bae-auth-gate {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 16px 48px;
  box-sizing: border-box;
}
.bae-auth-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  background:
    linear-gradient(180deg, rgba(4, 8, 20, 0.75) 0%, rgba(4, 8, 20, 0.92) 100%),
    var(--bae-arena-auth, var(--bae-bg-image)) center / cover no-repeat;
}
.bae-auth-center {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 460px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}
.bae-auth-brand {
  text-align: center;
  filter: drop-shadow(0 8px 24px rgba(0, 0, 0, 0.65));
}
.bae-auth-logo {
  max-width: min(92vw, 340px);
  height: auto;
  display: block;
  margin: 0 auto;
}
.bae-auth-title {
  font-size: clamp(1.75rem, 5vw, 2.5rem);
  font-weight: 800;
  letter-spacing: 0.12em;
  color: #fff;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.8);
}
.bae-auth-glass {
  width: 100%;
  padding: 28px 24px 24px;
  border-radius: 20px;
  background: rgba(8, 12, 28, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow:
    0 24px 80px rgba(0, 0, 0, 0.55),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}
.bae-auth-lang {
  display: flex;
  justify-content: center;
  margin: 0 0 18px;
}
.bae-lang-switcher--auth {
  width: 100%;
  justify-content: center;
}
.bae-lang-switcher--auth .bae-lang-switcher__btn {
  flex: 1 1 0;
}
.bae-auth-h2 {
  margin: 0 0 16px;
  font-size: 1.25rem;
  font-weight: 700;
  color: #f0f4ff;
}
.bae-auth-label {
  display: block;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: rgba(200, 220, 255, 0.75);
  margin-bottom: 6px;
}
.bae-auth-input {
  width: 100%;
  box-sizing: border-box;
  margin-bottom: 14px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(0, 0, 0, 0.35);
  color: #fff;
  font-size: 1rem;
}
.bae-auth-input:focus {
  outline: none;
  border-color: rgba(67, 246, 255, 0.45);
  box-shadow: 0 0 0 3px rgba(67, 246, 255, 0.12);
}
.bae-auth-primary {
  width: 100%;
  margin-top: 6px;
  padding: 14px 16px;
  border: none;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  color: #0a0e18;
  background: linear-gradient(135deg, #ffd166 0%, #ff9f1c 100%);
  box-shadow: 0 8px 28px rgba(255, 159, 28, 0.35);
}
.bae-auth-primary:hover {
  filter: brightness(1.06);
}
.bae-auth-secondary {
  width: 100%;
  margin-top: 10px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.06);
  color: #e8f0ff;
  font-size: 0.9rem;
  cursor: pointer;
}
.bae-auth-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.bae-auth-link {
  background: none;
  border: none;
  color: #7dd3fc;
  text-decoration: underline;
  cursor: pointer;
  font-size: 0.9rem;
  padding: 4px;
}
.bae-auth-link:hover {
  color: #bae6fd;
}
.bae-auth-hint {
  font-size: 0.85rem;
  color: rgba(200, 215, 240, 0.85);
  margin: 10px 0 0;
  line-height: 1.45;
}
.bae-auth-msg {
  min-height: 1.2em;
  margin: 14px 0 0;
  font-size: 0.9rem;
  color: #86efac;
}
.bae-auth-extra {
  margin-top: 12px;
}

.bae-weekly-card {
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.bae-weekly-me {
  font-size: 0.9rem;
  margin-bottom: 8px;
  color: #c8e6ff;
}
.bae-weekly-list {
  font-size: 0.85rem;
  line-height: 1.5;
}
.bae-skills-grid {
  margin-top: 10px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.bae-skill-btn {
  min-height: 168px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 8px;
  border-radius: 16px;
  border: 1px solid rgba(67, 246, 255, 0.35);
  background:
    radial-gradient(circle at top left, rgba(67, 246, 255, 0.08), transparent 48%),
    linear-gradient(180deg, rgba(25, 38, 72, 0.92), rgba(16, 24, 48, 0.92));
  color: inherit;
  cursor: pointer;
  padding: 16px 18px;
  text-align: left;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 12px 28px rgba(0, 0, 0, 0.18);
}
.bae-skill-btn:hover {
  border-color: rgba(255, 209, 102, 0.5);
  transform: translateY(-1px);
}
.bae-skill-btn__top {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.bae-skill-badge {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid rgba(67, 246, 255, 0.26);
  background: rgba(67, 246, 255, 0.1);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #dffcff;
}
.bae-skill-icon {
  font-size: 1.3rem;
  line-height: 1;
  filter: drop-shadow(0 3px 10px rgba(0, 0, 0, 0.35));
}
.bae-skill-note {
  font-size: 12px;
  line-height: 1.45;
  color: rgba(228, 238, 255, 0.76);
}
/* Избор на боксов стил — карти вместо select */
.bae-style-picker {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(132px, 1fr));
  gap: 8px;
  margin-top: 8px;
}
.bae-style-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 4px;
  min-height: 108px;
  padding: 10px 8px 12px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: linear-gradient(165deg, rgba(18, 28, 52, 0.92), rgba(10, 16, 32, 0.88));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
  color: #e8f0ff;
  cursor: pointer;
  overflow: hidden;
  transition:
    border-color 0.18s ease,
    box-shadow 0.2s ease,
    transform 0.15s ease,
    background 0.18s ease;
}
.bae-style-card__ico {
  font-size: 1.65rem;
  line-height: 1;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.35));
}
.bae-style-card__title {
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1.2;
  color: #fff;
}
.bae-style-card__hint {
  font-size: 0.65rem;
  line-height: 1.35;
  opacity: 0.78;
  color: #b8cce8;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.bae-style-card:hover {
  transform: translateY(-2px);
  border-color: rgba(67, 246, 255, 0.35);
  box-shadow:
    0 8px 20px rgba(0, 0, 0, 0.35),
    0 0 0 1px rgba(67, 246, 255, 0.12);
}
.bae-style-card:focus {
  outline: none;
}
.bae-style-card:focus-visible {
  box-shadow:
    0 0 0 3px rgba(67, 246, 255, 0.45),
    0 8px 22px rgba(0, 0, 0, 0.4);
}
.bae-style-card--active {
  border-color: rgba(255, 209, 102, 0.65);
  background: linear-gradient(165deg, rgba(40, 32, 18, 0.95), rgba(22, 18, 12, 0.92));
  box-shadow:
    0 0 0 1px rgba(255, 209, 102, 0.35),
    0 10px 28px rgba(255, 209, 102, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}
.bae-style-card--active .bae-style-card__title {
  color: #ffe9b8;
}
.bae-style-card--active .bae-style-card__ico {
  filter: drop-shadow(0 0 10px rgba(255, 209, 102, 0.45));
}
.bae-style-card:active {
  transform: translateY(0) scale(0.98);
}
@media (min-width: 520px) {
  .bae-style-picker {
    grid-template-columns: repeat(auto-fill, minmax(148px, 1fr));
    gap: 10px;
  }
}
.bae-hud-cd {
  opacity: 0.85;
}
.bae-level-picks {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 12px 0;
}
.bae-level-pick-btn {
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid rgba(255, 209, 102, 0.4);
  background: rgba(30, 50, 80, 0.6);
  color: inherit;
  cursor: pointer;
  text-align: left;
}

.bae-tactic-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 6px;
  margin: 8px 0 12px;
}
.bae-tactic-chip {
  padding: 8px 10px;
  border-radius: 16px;
  border: 1px solid rgba(67, 246, 255, 0.25);
  background: rgba(20, 30, 55, 0.55);
  color: inherit;
  font-size: 12px;
  cursor: pointer;
}
.bae-tactic-chip.active {
  border-color: rgba(255, 209, 102, 0.65);
  background: rgba(255, 209, 102, 0.12);
}
.bae-tactic-chip--detail {
  min-height: 74px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 4px;
  text-align: left;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}
.bae-tactic-chip__title {
  font-size: 13px;
  font-weight: 800;
  color: #f2f7ff;
}
.bae-tactic-chip__desc {
  font-size: 11px;
  line-height: 1.4;
  color: rgba(216, 230, 248, 0.72);
}
.bae-career-line {
  margin: 4px 0;
  line-height: 1.35;
}
.bae-mini-btn {
  margin-left: 6px;
  min-height: 42px;
  padding: 10px 16px;
  font-size: 13px;
  line-height: 1.1;
  border-radius: 12px;
  cursor: pointer;
  color: #e8f3ff;
  background: linear-gradient(180deg, rgba(28, 44, 88, 0.94), rgba(16, 27, 58, 0.94));
  border: 1px solid rgba(132, 188, 255, 0.44);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  font-weight: 800;
  letter-spacing: 0.01em;
  transition: transform 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease, background 0.16s ease;
}
.bae-mini-btn:hover {
  transform: translateY(-1px);
  border-color: rgba(163, 217, 255, 0.74);
  box-shadow: 0 14px 28px rgba(67, 246, 255, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.12);
}
.bae-mini-btn--accent {
  background: linear-gradient(180deg, rgba(38, 74, 152, 0.96), rgba(22, 46, 102, 0.94));
  border-color: rgba(148, 230, 255, 0.64);
}
.bae-btn-shadow-duel {
  min-width: min(100%, 260px);
  min-height: 54px;
  padding-inline: 24px;
  border-radius: 16px;
  background:
    radial-gradient(circle at top, rgba(122, 255, 244, 0.28), transparent 48%),
    linear-gradient(135deg, rgba(60, 88, 190, 0.98), rgba(21, 30, 78, 0.98));
  border-color: rgba(167, 245, 255, 0.88);
  box-shadow: 0 0 0 1px rgba(197, 247, 255, 0.16) inset, 0 0 24px rgba(67, 246, 255, 0.24), 0 16px 34px rgba(0, 0, 0, 0.22);
  font-size: 15px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
/* Настройки: по-плосък панел (без тежък градиент) */
.bae-data-card--settings {
  background: rgba(12, 18, 36, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}
.bae-settings-grid {
  display: grid;
  gap: 10px;
}
.bae-settings.small {
  display: grid;
  gap: 14px;
}
.bae-settings [hidden] {
  display: none !important;
}
.bae-settings-section {
  padding: 14px;
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.02));
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}
.bae-settings-title {
  margin: 0 0 10px;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #b8d4ff;
}
.bae-settings .bae-set-line {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.07);
  margin: 0;
  cursor: pointer;
  user-select: none;
  transition: background 0.15s ease, border-color 0.15s ease;
}
.bae-settings .bae-set-line:hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.1);
}
/* Персонализирани чекбоксове (не нативни) */
.bae-checkbox__input {
  appearance: none;
  -webkit-appearance: none;
  width: 22px;
  height: 22px;
  margin: 0;
  flex-shrink: 0;
  border-radius: 6px;
  border: 2px solid rgba(255, 255, 255, 0.28);
  background: rgba(4, 8, 18, 0.65);
  cursor: pointer;
  transition:
    border-color 0.15s ease,
    background 0.15s ease,
    box-shadow 0.15s ease;
}
.bae-checkbox__input:hover {
  border-color: rgba(67, 246, 255, 0.55);
}
.bae-checkbox__input:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(67, 246, 255, 0.28);
}
.bae-checkbox__input:focus:not(:focus-visible) {
  box-shadow: none;
}
.bae-checkbox__input:focus-visible {
  box-shadow: 0 0 0 3px rgba(67, 246, 255, 0.35);
}
.bae-checkbox__input:checked {
  background-color: #0f172a;
  border-color: rgba(67, 246, 255, 0.75);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none'%3E%3Cpath d='M3.5 8.2l2.7 2.6 6.3-6.3' stroke='%2343f6ff' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 14px 14px;
}
.bae-checkbox__input:checked:hover {
  border-color: rgba(138, 248, 255, 0.95);
}
.bae-checkbox__label {
  flex: 1 1 auto;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: #e8f0ff;
  line-height: 1.3;
}
/* Плоски тъмни бутони в настройките (без неон от глобалния button) */
button.bae-btn-flat {
  margin-left: 0 !important;
  padding: 8px 16px !important;
  font-size: 12px !important;
  font-weight: 600 !important;
  letter-spacing: 0.03em;
  border-radius: 8px !important;
  border: 1px solid #1e293b !important;
  background: #1e293b !important;
  color: #f1f5f9 !important;
  box-shadow: none !important;
  transition: background 0.15s ease, border-color 0.15s ease !important;
}
button.bae-btn-flat:hover {
  transform: none !important;
  filter: none !important;
  background: #0f172a !important;
  border-color: #0f172a !important;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.06) inset !important;
}
button.bae-btn-flat:active {
  transform: scale(0.98) !important;
  filter: none !important;
}
.bae-settings-actions {
  display: flex;
  justify-content: flex-start;
  margin-top: 10px;
}
.bae-settings-badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: stretch;
}
.bae-badge-select {
  flex: 1 1 200px;
  min-width: 0;
  min-height: 40px;
  margin: 0;
  max-width: 100%;
  padding: 8px 32px 8px 12px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(8, 12, 26, 0.9);
  color: #e8f0ff;
  font: inherit;
  font-size: 13px;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2394a3b8' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  appearance: none;
  -webkit-appearance: none;
}
.bae-badge-select:hover {
  border-color: rgba(67, 246, 255, 0.35);
}
.bae-badge-select:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(67, 246, 255, 0.25);
}

@media (max-width: 720px) {
  .bae-auto-job-card__controls {
    grid-template-columns: 1fr;
  }
  .bae-auto-job-select {
    max-width: 100%;
  }
  .bae-auto-job-card__actions .bae-auto-job-save {
    width: 100%;
  }
}
.bae-lb-badge {
  margin-right: 4px;
}
.bae-badge-ico {
  font-size: 1.1em;
  margin-right: 4px;
}
.bae-settings-badge-help {
  margin-top: 10px;
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #d7e6f8;
}
.bae-badge-help-grid {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}
.bae-badge-help-card {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.bae-badge-help-card.is-active {
  border-color: rgba(67, 246, 255, 0.34);
  box-shadow: inset 0 0 0 1px rgba(67, 246, 255, 0.14);
}
.bae-badge-help-card__icon {
  font-size: 24px;
  line-height: 1;
}
.bae-badge-help-card__body {
  display: grid;
  gap: 4px;
}
.bae-badge-help-card__body strong {
  color: #f2f7ff;
  font-size: 14px;
}
.bae-badge-help-card__body span {
  color: #bdd0e6;
  font-size: 12px;
  line-height: 1.5;
}
@media (max-width: 1024px) {
  .bae-settings-layout {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 720px) {
  .bae-settings-topnav__btn,
  .bae-settings-subnav__btn {
    flex: 1 1 calc(50% - 12px);
    justify-content: center;
  }
  .bae-settings-topnav,
  .bae-settings-subnav {
    gap: 10px;
  }
}
.bae-tournament {
  margin: 8px 0;
  padding: 8px 10px;
  border-radius: 10px;
  background: rgba(30, 45, 90, 0.35);
  border: 1px solid rgba(67, 246, 255, 0.15);
}

/* Класация — пълна ширина, карти */
.bae-card--lb {
  overflow: hidden;
}
.bae-lb-wrap {
  width: 100%;
  margin: 4px 0 0;
}
.bae-lb-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr));
  gap: 12px;
  width: 100%;
  align-items: stretch;
}
@media (min-width: 640px) {
  .bae-lb-grid {
    gap: 14px;
  }
}
.bae-lb-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px 12px;
  padding: 14px 16px;
  border-radius: 14px;
  background: linear-gradient(145deg, rgba(18, 32, 58, 0.94), rgba(28, 42, 82, 0.78));
  border: 1px solid rgba(67, 246, 255, 0.2);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.04),
    0 12px 28px rgba(0, 0, 0, 0.32);
  transition: transform 0.15s ease, box-shadow 0.2s ease;
}
.bae-lb-card:hover {
  transform: translateY(-2px);
  box-shadow:
    0 0 28px rgba(67, 246, 255, 0.12),
    0 14px 32px rgba(0, 0, 0, 0.38);
}
.bae-lb-card--top1 {
  border-color: rgba(255, 215, 0, 0.42);
  background: linear-gradient(145deg, rgba(48, 40, 22, 0.95), rgba(62, 48, 18, 0.88));
}
.bae-lb-card--top2 {
  border-color: rgba(200, 210, 220, 0.38);
  background: linear-gradient(145deg, rgba(36, 40, 48, 0.92), rgba(48, 52, 62, 0.82));
}
.bae-lb-card--top3 {
  border-color: rgba(205, 127, 50, 0.42);
  background: linear-gradient(145deg, rgba(48, 32, 22, 0.92), rgba(72, 44, 24, 0.82));
}
.bae-lb-card--weekly {
  background: rgba(22, 36, 72, 0.72);
}
.bae-lb-card__rank {
  font-size: 1.65rem;
  line-height: 1;
  min-width: 2.4rem;
  text-align: center;
}
.bae-lb-num {
  font-weight: 800;
  font-size: 1rem;
  opacity: 0.92;
}
.bae-lb-card__main {
  min-width: 0;
}
.bae-lb-card__name {
  font-weight: 800;
  font-size: 1rem;
  word-break: break-word;
  line-height: 1.25;
}
.bae-lb-card__sub {
  font-size: 0.85rem;
  opacity: 0.84;
  margin-top: 4px;
}
.bae-lb-card__stats {
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: flex-end;
  flex-shrink: 0;
}
.bae-lb-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.35em 0.7em;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  background: rgba(67, 246, 255, 0.1);
  border: 1px solid rgba(67, 246, 255, 0.28);
  white-space: nowrap;
}
.bae-lb-me {
  margin-bottom: 14px;
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(67, 246, 255, 0.08);
  border: 1px solid rgba(67, 246, 255, 0.22);
  font-size: 0.95rem;
  line-height: 1.4;
}
@media (max-width: 520px) {
  .bae-lb-card {
    grid-template-columns: auto minmax(0, 1fr);
    grid-template-rows: auto auto;
  }
  .bae-lb-card__rank {
    grid-row: 1 / span 2;
    align-self: center;
  }
  .bae-lb-card__stats {
    grid-column: 2;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: flex-start;
    align-items: center;
    gap: 8px;
  }
}

/* Попъп след успешна регистрация */
.bae-reg-popup {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: max(16px, env(safe-area-inset-top)) max(16px, env(safe-area-inset-right))
    max(16px, env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left));
  box-sizing: border-box;
}
.bae-reg-popup__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(4, 10, 24, 0.75);
  backdrop-filter: blur(8px);
}
.bae-reg-popup__box {
  position: relative;
  z-index: 1;
  max-width: 440px;
  width: 100%;
  padding: 26px 22px 22px;
  border-radius: 18px;
  background: linear-gradient(165deg, rgba(24, 40, 78, 0.98), rgba(10, 18, 42, 0.98));
  border: 1px solid rgba(67, 246, 255, 0.38);
  box-shadow:
    0 28px 72px rgba(0, 0, 0, 0.55),
    0 0 48px rgba(67, 246, 255, 0.12);
}
.bae-reg-popup__icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 1.75rem;
  font-weight: 800;
  color: #041018;
  background: linear-gradient(135deg, #5ee9a8, #43f6ff);
  box-shadow: 0 0 24px rgba(67, 246, 255, 0.45);
}
.bae-reg-popup__title {
  margin: 0 0 12px;
  text-align: center;
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: 0.02em;
}
.bae-reg-popup__text {
  margin: 0 0 18px;
  font-size: 0.98rem;
  line-height: 1.55;
  opacity: 0.95;
}
.bae-reg-popup__text strong {
  color: #b8f0ff;
}
.bae-reg-popup__hint {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.88rem;
  opacity: 0.82;
}
.bae-reg-popup__btn {
  width: 100%;
  min-height: 48px;
  border-radius: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.bae-tutorial h3 {
  margin-top: 0;
}
body.bae-reduced-motion .shake,
body.bae-reduced-motion body.bae-ko-burst {
  animation: none !important;
}

/* Прогрес: турнир, спонсори, зала, колекция */
.bae-systems-hub {
  margin: 8px 0 12px;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(12, 18, 40, 0.55);
  border: 1px solid rgba(67, 246, 255, 0.15);
}
.bae-sys-block {
  margin: 6px 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.bae-sys-block--card {
  display: grid;
  gap: 10px;
  align-items: stretch;
}
.bae-sys-head {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.bae-sys-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.bae-sys-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 9px 16px;
  border-radius: 12px;
  border: 1px solid rgba(120, 210, 255, 0.32);
  background: linear-gradient(180deg, rgba(24, 39, 74, 0.95), rgba(10, 18, 38, 0.96));
  color: #eef7ff;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.02em;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.05), 0 6px 16px rgba(0,0,0,.18);
  cursor: pointer;
}
.bae-sys-btn:hover {
  border-color: rgba(138, 248, 255, 0.72);
  filter: brightness(1.05);
}
.bae-sys-btn--accent {
  border-color: rgba(67, 246, 255, 0.45);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.06), 0 0 0 1px rgba(67, 246, 255, 0.12), 0 8px 18px rgba(0,0,0,.22);
}
.bae-sys-warn {
  color: #ffb4b4;
  font-size: 12px;
  margin: 4px 0;
}
.bae-sp-line {
  font-size: 12px;
  margin: 4px 0;
  line-height: 1.4;
}
.bae-sp-claim {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-left: 10px;
}
.bae-sp-var {
  min-width: 180px;
  max-width: 240px;
  min-height: 40px;
  border-radius: 12px;
  border-color: rgba(120, 210, 255, 0.22);
  background-color: rgba(10, 18, 38, 0.96);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.04), 0 6px 16px rgba(0,0,0,.16);
}
.bae-sp-var:hover {
  border-color: rgba(138, 248, 255, 0.5);
}
.bae-sp-var:focus {
  box-shadow: 0 0 0 3px rgba(67, 246, 255, 0.18);
}
.bae-zone-row,
.bae-matchtype-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 8px 0;
  align-items: center;
}
.bae-zone-chip,
.bae-mt-chip {
  min-height: 48px;
  padding: 8px 14px;
  border-radius: 14px;
  border: 1px solid rgba(67, 246, 255, 0.25);
  background: rgba(0, 0, 0, 0.26);
  color: inherit;
  cursor: pointer;
  font: inherit;
  font-weight: 800;
  transition: transform 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease, background 0.16s ease;
}
.bae-zone-chip:hover,
.bae-mt-chip:hover {
  transform: translateY(-1px);
  border-color: rgba(163, 217, 255, 0.56);
  box-shadow: 0 10px 24px rgba(67, 246, 255, 0.1);
}

@media (max-width: 720px) {
  .bae-sys-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .bae-sys-btn {
    width: 100%;
  }
  .bae-sp-claim {
    display: grid;
    grid-template-columns: 1fr;
    margin-left: 0;
    margin-top: 8px;
  }
  .bae-sp-var {
    min-width: 0;
    max-width: 100%;
    width: 100%;
  }
}
.bae-zone-chip.active,
.bae-mt-chip.active {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px rgba(67, 246, 255, 0.35);
}
.bae-boss-select {
  background: rgba(0, 0, 0, 0.25);
  color: var(--text);
  border: 1px solid rgba(67, 246, 255, 0.2);
  border-radius: 8px;
  padding: 6px 10px;
  font: inherit;
}
@media (max-width: 900px) {
  .bae-fight-lead {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 720px) {
  .bae-skills-grid {
    grid-template-columns: 1fr;
  }
  .bae-tactic-row {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 520px) {
  .bae-tactic-row {
    grid-template-columns: 1fr;
  }
}
.inv-details-actions {
  margin-top: 10px;
}

/* Разширение v5.1: титли, рамки, класация, публичен профил */
.bae-player-title {
  display: block;
  font-size: 12px;
  color: var(--accent);
  margin-top: 2px;
}
.bae-player-card.bae-frame--bronze .bae-identity {
  box-shadow: 0 0 0 2px #cd7f32;
  border-radius: 10px;
  padding: 4px 8px;
}
.bae-player-card.bae-frame--silver .bae-identity {
  box-shadow: 0 0 0 2px #b8c0d8;
  border-radius: 10px;
  padding: 4px 8px;
}
.bae-player-card.bae-frame--gold .bae-identity {
  box-shadow: 0 0 0 2px #e6c200;
  border-radius: 10px;
  padding: 4px 8px;
}
.bae-lb-card.bae-frame--bronze {
  box-shadow: inset 0 0 0 1px rgba(205, 127, 50, 0.45);
}
.bae-lb-card.bae-frame--silver {
  box-shadow: inset 0 0 0 1px rgba(184, 192, 216, 0.45);
}
.bae-lb-card.bae-frame--gold {
  box-shadow: inset 0 0 0 1px rgba(230, 194, 0, 0.5);
}
.bae-lb-name-link {
  color: #eaf5ff;
  text-decoration: underline;
  text-underline-offset: 2px;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
  background: none;
  border: 0;
  padding: 0;
  border-radius: 0;
  box-shadow: none;
}
.bae-lb-name-link:hover {
  color: #8af8ff;
}
.bae-name-style--gold {
  color: #ffd970;
  text-shadow: 0 0 18px rgba(255, 213, 92, 0.28);
}
.bae-name-style--crimson {
  color: #ff9ab2;
  text-shadow: 0 0 16px rgba(255, 90, 132, 0.24);
}
.bae-name-style--frost {
  color: #9cefff;
  text-shadow: 0 0 16px rgba(124, 239, 255, 0.26);
}
.bae-title-mini {
  display: block;
  font-size: 11px;
  opacity: 0.88;
  margin-bottom: 2px;
}
.bae-modal-wide {
  max-width: 520px;
}
.bae-settings-cosmetics {
  flex-wrap: wrap;
  gap: 8px;
}
.bae-clan-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.bae-pass-panel p {
  margin: 4px 0 8px;
}
.bae-history-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 10px;
  margin-bottom: 12px;
}
.bae-history-stat {
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(11, 18, 38, 0.72);
  border: 1px solid rgba(110, 196, 255, 0.16);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.04);
}
.bae-history-stat span {
  display: block;
  margin-bottom: 4px;
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(180, 205, 240, 0.72);
}
.bae-history-stat strong {
  font-size: 14px;
  color: #f0f7ff;
}

/* Таб Клан: членове + чат — бутони като тренировка / работа (циан, закръглени) */
.bae-clan-tab {
  margin-top: 8px;
}
.bae-clan-shell {
  display: grid;
  gap: 14px;
}
.bae-clan-shell--entry {
  gap: 12px;
}
.bae-clan-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
  gap: 14px;
  align-items: start;
}
.bae-clan-grid--entry {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.bae-clan-card {
  padding: 16px;
  border-radius: 22px;
  border: 1px solid rgba(92, 220, 255, 0.18);
  background:
    linear-gradient(180deg, rgba(18, 26, 56, 0.92), rgba(12, 19, 42, 0.88)),
    radial-gradient(circle at top, rgba(67, 246, 255, 0.08), transparent 58%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    0 18px 44px rgba(0, 0, 0, 0.24);
}
.bae-clan-card--intro {
  padding: 14px 16px;
}
.bae-clan-fields {
  margin-bottom: 10px;
}
.bae-clan-fields--stack {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.bae-clan-tab .bae-clan-train-actions {
  margin-bottom: 16px;
  gap: 12px;
}
.bae-clan-tab .bae-clan-train-actions button,
.bae-clan-tab button.bae-clan-chat-send {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 46px;
  padding: 12px 22px;
  border-radius: 22px;
  border: none;
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: #0a1620;
  cursor: pointer;
  font-family: var(--bae-font);
  background: linear-gradient(180deg, #c8faff 0%, #99f3ff 45%, #7ad8ea 100%);
  box-shadow:
    0 4px 0 rgba(0, 50, 70, 0.14),
    0 10px 26px rgba(0, 0, 0, 0.28);
  transition: transform 0.15s ease, box-shadow 0.2s ease, filter 0.15s ease;
}
.bae-clan-tab .bae-clan-train-actions button:hover,
.bae-clan-tab button.bae-clan-chat-send:hover {
  transform: translateY(-2px);
  filter: brightness(1.04);
  box-shadow:
    0 5px 0 rgba(0, 50, 70, 0.12),
    0 14px 32px rgba(0, 0, 0, 0.32);
}
.bae-clan-tab .bae-clan-train-actions button:active,
.bae-clan-tab button.bae-clan-chat-send:active {
  transform: translateY(1px);
  filter: brightness(0.97);
}
.bae-clan-tab .bae-clan-train-actions button .bae-btn-ico,
.bae-clan-tab button.bae-clan-chat-send .bae-btn-ico {
  width: 26px;
  height: 26px;
  margin: 0;
  object-fit: contain;
  flex-shrink: 0;
}
.bae-clan-btn-emoji {
  font-size: 1.25rem;
  line-height: 1;
  flex-shrink: 0;
}
.bae-clan-btn-emoji img {
  display: block;
  width: 14px;
  height: 14px;
  object-fit: contain;
}
.bae-clan-btn-label {
  white-space: nowrap;
}
.bae-clan-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 16px;
  font-size: 12px;
  font-weight: 800;
  color: #0a1620;
  background: linear-gradient(180deg, #c8faff 0%, #99f3ff 50%, #7ad8ea 100%);
  box-shadow: 0 3px 0 rgba(0, 50, 70, 0.12), 0 6px 16px rgba(0, 0, 0, 0.2);
  border: none;
  cursor: pointer;
  font-family: var(--bae-font);
}
.bae-clan-cta .bae-clan-btn-emoji {
  font-size: 1rem;
}
.bae-clan-tab button.bae-clan-chat-send {
  flex: 0 0 auto;
  min-height: 44px;
  padding: 10px 18px;
}
.bae-clan-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}
.bae-clan-name {
  margin: 0 0 6px;
  font-size: clamp(1.05rem, 2.2vw, 1.45rem);
}
.bae-clan-tag {
  opacity: 0.85;
  font-weight: 600;
}
.bae-clan-head-copy {
  min-width: 0;
}
.bae-clan-table-wrap {
  overflow-x: auto;
  margin-bottom: 0;
  border-radius: 16px;
  border: 1px solid rgba(104, 166, 255, 0.12);
  background: rgba(7, 12, 28, 0.45);
}
.bae-clan-chat-log {
  max-height: 320px;
  overflow-y: auto;
  padding: 12px;
  border-radius: 16px;
  background: rgba(8, 12, 28, 0.72);
  border: 1px solid rgba(67, 246, 255, 0.12);
  font-size: 13px;
  margin-bottom: 10px;
}
.bae-clan-chat-line {
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.bae-clan-chat-line:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}
.bae-clan-chat-line--mine .bae-clan-chat-user {
  color: var(--accent);
}
.bae-clan-chat-meta {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 4px;
  font-size: 11px;
  opacity: 0.85;
}
.bae-clan-chat-user {
  font-weight: 600;
}
.bae-clan-chat-time {
  opacity: 0.7;
}
.bae-clan-chat-body {
  line-height: 1.35;
  word-break: break-word;
}
.bae-clan-chat-compose {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: stretch;
}
.bae-clan-chat-compose .bae-friendly-input {
  flex: 1 1 200px;
  min-width: 0;
}
.bae-clan-card .bae-strip-title:first-child,
.bae-pv-modal .bae-strip-title.mini {
  margin-top: 0;
}
.bae-pv-modal .bae-strip-title.mini {
  padding: 0 24px;
  margin-bottom: 12px;
}
.bae-pv-modal .bae-strip-title.mini::after {
  left: 24px;
  right: 24px;
}

@media (prefers-reduced-motion: reduce) {
  .bae-sparkles,
  .bae-scanlines,
  .bae-float-img,
  .bae-card::after,
  .terrain-btn.active,
  .bae-arena-punch,
  .bae-fighter-flash,
  body.bae-ko-burst {
    animation: none !important;
  }
  .bae-scanlines {
    opacity: 0.12;
  }
  button:not(.inv-slot):not(.bae-style-card):not(.bae-arcade-card)::after {
    display: none;
  }
}

/* Профил: аватар, снимки, публичен преглед */
.bae-profile-head {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  margin-bottom: 14px;
}
.bae-profile-avatar-wrap {
  flex: 0 0 auto;
}
.bae-profile-avatar-frame {
  padding: 0;
  border-radius: 14px;
  background: transparent;
  background-size: 100% 100%;
  background-repeat: no-repeat;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: visible;
}
.bae-profile-avatar {
  width: 72px;
  height: 72px;
  border-radius: 12px;
  object-fit: cover;
  border: 0;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
  position: relative;
  z-index: 1;
}
.bae-profile-avatar--empty {
  width: 72px;
  height: 72px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  background: rgba(0, 0, 0, 0.35);
  border: 1px dashed rgba(120, 180, 255, 0.35);
}
.bae-profile-avatar--empty img {
  display: block;
  width: 34px;
  height: 34px;
  object-fit: contain;
}

.bae-player-card.bae-frame--bronze .bae-profile-avatar-frame {
  border: 0;
  background-image: url("images/bronze.png");
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.25);
}
.bae-player-card.bae-frame--bronze .bae-profile-avatar-frame::after {
  content: "";
  position: absolute;
  inset: -3px;
  background-image: url("images/bronze.png");
  background-size: 100% 100%;
  background-repeat: no-repeat;
  background-position: center;
  pointer-events: none;
  z-index: 2;
}
.bae-player-card.bae-frame--silver .bae-profile-avatar-frame {
  border: 0;
  background-image: url("images/silver.png");
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.25);
}
.bae-player-card.bae-frame--silver .bae-profile-avatar-frame::after {
  content: "";
  position: absolute;
  inset: -3px;
  background-image: url("images/silver.png");
  background-size: 100% 100%;
  background-repeat: no-repeat;
  background-position: center;
  pointer-events: none;
  z-index: 2;
}
.bae-player-card.bae-frame--gold .bae-profile-avatar-frame {
  border: 0;
  background-image: url("images/gold.png");
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.25);
}
.bae-player-card.bae-frame--gold .bae-profile-avatar-frame::after {
  content: "";
  position: absolute;
  inset: -3px;
  background-image: url("images/gold.png");
  background-size: 100% 100%;
  background-repeat: no-repeat;
  background-position: center;
  pointer-events: none;
  z-index: 2;
}
.bae-player-card.bae-frame--diamond .bae-profile-avatar-frame {
  border: 0;
  background-image: url("images/diamant.png");
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.28);
}
.bae-player-card.bae-frame--diamond .bae-profile-avatar-frame::after {
  content: "";
  position: absolute;
  inset: -3px;
  background-image: url("images/diamant.png");
  background-size: 100% 100%;
  background-repeat: no-repeat;
  background-position: center;
  pointer-events: none;
  z-index: 2;
}
.bae-player-card.bae-frame--vip .bae-profile-avatar-frame {
  border: 0;
  background-image: url("images/vip-frame.png");
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.28);
}
.bae-player-card.bae-frame--vip .bae-profile-avatar-frame::after {
  content: "";
  position: absolute;
  inset: -3px;
  background-image: url("images/vip-frame.png");
  background-size: 100% 100%;
  background-repeat: no-repeat;
  background-position: center;
  pointer-events: none;
  z-index: 2;
}
.bae-profile-head-main {
  flex: 1 1 auto;
  min-width: 0;
}
.bae-profile-photo-strip {
  margin: 8px 0 6px;
  border-radius: 10px;
  overflow: hidden;
  max-height: 100px;
  border: 1px solid rgba(120, 180, 255, 0.2);
}
.bae-profile-photo-strip img {
  width: 100%;
  height: auto;
  max-height: 100px;
  object-fit: cover;
  display: block;
}
.bae-profile-bio-snippet {
  font-size: 12px;
  line-height: 1.45;
  color: rgba(210, 225, 255, 0.88);
  margin: 0 0 6px;
}
.bae-profile-mini-hint {
  margin: 0;
}
.bae-hidden-file {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}
.bae-profile-upload-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  margin-bottom: 14px;
}
@media (max-width: 640px) {
  .bae-profile-upload-grid {
    grid-template-columns: 1fr;
  }
}
.bae-pu-box {
  padding: 10px;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(120, 180, 255, 0.15);
  max-width: 360px;
}
.bae-pu-label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(180, 210, 255, 0.85);
  margin-bottom: 8px;
}
.bae-pu-preview {
  border-radius: 10px;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.35);
  min-height: 96px;
  max-height: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 8px;
}
.bae-pu-preview img {
  width: 100%;
  height: 100%;
  max-height: 140px;
  object-fit: cover;
  display: block;
}
.bae-pu-placeholder {
  color: rgba(255, 255, 255, 0.25);
  font-size: 28px;
}
.bae-pu-placeholder img {
  display: block;
  width: 28px;
  height: 28px;
  object-fit: contain;
}
.bae-pu-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.bae-bio-label {
  display: block;
  font-size: 12px;
  margin-bottom: 6px;
  color: rgba(200, 220, 255, 0.9);
}
.bae-textarea {
  width: 100%;
  max-width: 520px;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid rgba(120, 180, 255, 0.25);
  background: rgba(0, 0, 0, 0.35);
  color: #e8f0ff;
  font-size: 13px;
  line-height: 1.45;
  margin-bottom: 8px;
  resize: vertical;
  min-height: 72px;
}
.bae-pv-modal {
  padding: 0;
  overflow: hidden;
  max-width: none;
  width: 100%;
  min-height: min(72vh, 820px);
}
.bae-pv-cover {
  width: 100%;
  max-height: 180px;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.4);
}
.bae-pv-cover img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
}
.bae-pv-hero {
  display: flex;
  gap: 18px;
  align-items: center;
  padding: 24px 24px 0;
  margin-top: 0;
  position: relative;
  z-index: 1;
}
.bae-pv-avatar-frame {
  padding: 0;
  border-radius: 16px;
  background: transparent;
  background-size: 100% 100%;
  background-repeat: no-repeat;
  background-position: center;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  position: relative;
  overflow: visible;
}
.bae-pv-avatar {
  width: 132px;
  height: 132px;
  border-radius: 14px;
  object-fit: cover;
  border: 0;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}
.bae-pv-avatar--empty {
  width: 132px;
  height: 132px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 40px;
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(120, 180, 255, 0.35);
}
.bae-pv-avatar--empty img {
  display: block;
  width: 40px;
  height: 40px;
  object-fit: contain;
}

.bae-pv-modal.bae-frame--bronze .bae-pv-avatar-frame {
  border: 0;
  background-image: url("images/bronze.png");
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.28);
}
.bae-pv-modal.bae-frame--bronze .bae-pv-avatar-frame::after {
  content: "";
  position: absolute;
  inset: -4px;
  background-image: url("images/bronze.png");
  background-size: 100% 100%;
  background-repeat: no-repeat;
  background-position: center;
  pointer-events: none;
  z-index: 2;
}
.bae-pv-modal.bae-frame--silver .bae-pv-avatar-frame {
  border: 0;
  background-image: url("images/silver.png");
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.28);
}
.bae-pv-modal.bae-frame--silver .bae-pv-avatar-frame::after {
  content: "";
  position: absolute;
  inset: -4px;
  background-image: url("images/silver.png");
  background-size: 100% 100%;
  background-repeat: no-repeat;
  background-position: center;
  pointer-events: none;
  z-index: 2;
}
.bae-pv-modal.bae-frame--gold .bae-pv-avatar-frame {
  border: 0;
  background-image: url("images/gold.png");
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.28);
}
.bae-pv-modal.bae-frame--gold .bae-pv-avatar-frame::after {
  content: "";
  position: absolute;
  inset: -4px;
  background-image: url("images/gold.png");
  background-size: 100% 100%;
  background-repeat: no-repeat;
  background-position: center;
  pointer-events: none;
  z-index: 2;
}
.bae-pv-modal.bae-frame--diamond .bae-pv-avatar-frame {
  border: 0;
  background-image: url("images/diamant.png");
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.28);
}
.bae-pv-modal.bae-frame--diamond .bae-pv-avatar-frame::after {
  content: "";
  position: absolute;
  inset: -4px;
  background-image: url("images/diamant.png");
  background-size: 100% 100%;
  background-repeat: no-repeat;
  background-position: center;
  pointer-events: none;
  z-index: 2;
}
.bae-pv-modal.bae-frame--vip .bae-pv-avatar-frame {
  border: 0;
  background-image: url("images/vip-frame.png");
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.28);
}
.bae-pv-modal.bae-frame--vip .bae-pv-avatar-frame::after {
  content: "";
  position: absolute;
  inset: -4px;
  background-image: url("images/vip-frame.png");
  background-size: 100% 100%;
  background-repeat: no-repeat;
  background-position: center;
  pointer-events: none;
  z-index: 2;
}
.bae-pv-hero-text {
  padding-bottom: 4px;
  min-width: 0;
}
.bae-pv-name {
  margin: 0 0 4px;
  font-size: clamp(1.5rem, 2vw, 2.1rem);
}
.bae-fight-result-modal--crown {
  box-shadow: 0 14px 40px rgba(230, 194, 0, 0.18);
}
.bae-fight-result-modal--fire .bae-fight-result-modal__badge {
  background: linear-gradient(135deg, rgba(255, 140, 72, 0.2), rgba(255, 66, 66, 0.2));
  border-color: rgba(255, 120, 72, 0.35);
}
.bae-fight-result-modal--ice .bae-fight-result-modal__badge {
  background: linear-gradient(135deg, rgba(112, 235, 255, 0.18), rgba(90, 162, 255, 0.18));
  border-color: rgba(128, 220, 255, 0.35);
}
.bae-fight-result-modal--crown .bae-fight-result-modal__badge {
  background: linear-gradient(135deg, rgba(255, 223, 112, 0.18), rgba(255, 183, 56, 0.18));
  border-color: rgba(255, 220, 120, 0.38);
}
.bae-pv-sub {
  margin: 0;
  font-size: 12px;
  color: rgba(200, 220, 255, 0.85);
}
.bae-pv-title {
  color: #ffd166;
}
.bae-pv-badge {
  margin: 4px 0 0;
  font-size: 13px;
}
.bae-pv-bio {
  padding: 16px 24px;
  margin: 0;
  font-size: 13px;
  line-height: 1.5;
  color: rgba(220, 230, 255, 0.92);
  border-bottom: 1px solid rgba(120, 180, 255, 0.12);
}
.bae-pv-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  padding: 18px 24px;
}
.bae-pv-tile {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 8px 10px;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.28);
  border: 1px solid rgba(120, 180, 255, 0.12);
}
.bae-pv-k {
  font-size: 9px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(180, 200, 240, 0.65);
}
.bae-pv-v {
  font-size: 15px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: #e8f4ff;
}
.bae-pv-base {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 12px;
  padding: 0 24px 18px;
}
.bae-pv-base-item {
  display: grid;
  gap: 4px;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.22);
  border: 1px solid rgba(120, 180, 255, 0.12);
}
.bae-pv-base-k {
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(180, 200, 240, 0.68);
}
.bae-pv-base-v {
  font-size: 18px;
  line-height: 1;
  color: #eef6ff;
}
.bae-pv-meta-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 12px;
  padding: 0 24px 24px;
}
.bae-pv-meta-card {
  display: grid;
  gap: 4px;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(120, 180, 255, 0.12);
}
.bae-pv-meta-k {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: rgba(180, 200, 240, 0.68);
}
.bae-pv-meta-v {
  font-size: 15px;
  line-height: 1.25;
  color: #f4f8ff;
}
.bae-pv-modal .bae-modal-ok {
  display: block;
  width: calc(100% - 48px);
  margin: 8px 24px 24px;
}
.bae-pv-actions {
  padding: 0 24px 16px;
}
@media (max-width: 760px) {
  .bae-clan-grid,
  .bae-clan-grid--entry {
    grid-template-columns: 1fr;
  }
  .bae-clan-card {
    padding: 14px;
    border-radius: 18px;
  }
  .bae-clan-head {
    flex-direction: column;
    align-items: stretch;
  }
  .bae-clan-tab .bae-clan-train-actions {
    gap: 10px;
  }
  .bae-clan-tab .bae-clan-train-actions button,
  .bae-clan-tab button.bae-clan-chat-send,
  .bae-clan-cta {
    width: 100%;
    justify-content: center;
  }
  .bae-clan-chat-log {
    max-height: 240px;
  }
  .bae-pv-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .bae-pv-hero {
    gap: 14px;
    align-items: flex-start;
    padding: 16px 16px 0;
  }
  .bae-pv-bio,
  .bae-pv-stats,
  .bae-pv-base,
  .bae-pv-meta-grid,
  .bae-pv-actions,
  .bae-pv-modal .bae-strip-title.mini {
    padding-left: 16px;
    padding-right: 16px;
  }
  .bae-pv-modal .bae-strip-title.mini::after {
    left: 16px;
    right: 16px;
  }
  .bae-pv-meta-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding-bottom: 18px;
  }
  .bae-pv-modal .bae-modal-ok {
    width: calc(100% - 32px);
    margin: 8px 16px 16px;
  }
}
.bae-settings-badge-row--showcase {
  align-items: stretch;
  flex-wrap: wrap;
  gap: 10px;
}
.bae-ach-showcase {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 10px;
  padding: 0 16px 12px;
}
.bae-ach-card {
  display: grid;
  gap: 6px;
  padding: 12px 14px;
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(13, 20, 42, 0.96), rgba(8, 13, 29, 0.94));
  border: 1px solid rgba(118, 186, 255, 0.16);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}
.bae-ach-card strong {
  font-size: 13px;
  color: #f2f7ff;
}
.bae-ach-card span {
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(127, 228, 255, 0.8);
}
.bae-ach-card p {
  margin: 0;
  font-size: 12px;
  line-height: 1.45;
  color: rgba(206, 220, 247, 0.86);
}
@media (max-width: 900px) {
  .bae-modal {
    width: min(96vw, 1080px);
    max-height: 92vh;
    padding: 8px;
  }
  .bae-modal-close {
    top: 10px;
    right: 10px;
  }
}
.bae-auction-layout {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 16px;
}
.bae-season-history {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(132px, 1fr));
  gap: 10px;
  margin-top: 12px;
}
.bae-season-history__card {
  display: grid;
  gap: 4px;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(7, 12, 26, 0.68);
  border: 1px solid rgba(120, 180, 255, 0.14);
}
.bae-season-history__card strong {
  font-size: 13px;
  color: #f0f6ff;
}
.bae-season-history__card span {
  font-size: 12px;
  color: rgba(208, 221, 248, 0.82);
}
@media (max-width: 980px) {
  .bae-auction-layout {
    grid-template-columns: 1fr;
  }
}
.bae-next-actions,
.bae-guided-start,
.bae-mastery-card,
.bae-prestige-card {
  display: grid;
  gap: 10px;
  padding: 12px 14px;
  margin-top: 8px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(120, 180, 255, 0.14);
}
.bae-next-actions__lead,
.bae-guided-start__item,
.bae-prestige-card {
  display: grid;
  gap: 4px;
}
.bae-next-actions__lead span,
.bae-guided-start__item small,
.bae-mastery-card span,
.bae-prestige-card span,
.bae-prestige-card small {
  font-size: 12px;
  line-height: 1.45;
  color: rgba(208, 221, 248, 0.82);
}
.bae-next-actions__row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.bae-guided-start__head {
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: rgba(127, 228, 255, 0.86);
}
.bae-guided-start__list {
  display: grid;
  gap: 8px;
}
.bae-guided-start__item {
  grid-template-columns: 18px 1fr;
  align-items: start;
}
.bae-guided-start__item.is-done strong {
  color: #98f6ae;
}
.bae-mastery-card strong,
.bae-prestige-card strong {
  font-size: 14px;
  color: #f3f8ff;
}
.inv-details-line--tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.bae-item-tag {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(100, 230, 255, 0.08);
  border: 1px solid rgba(120, 180, 255, 0.18);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .04em;
  color: #bff6ff;
  text-transform: uppercase;
}
.inv-compare,
.inv-set-summary__card {
  display: grid;
  gap: 4px;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(120, 180, 255, 0.14);
}
.inv-compare.is-better {
  border-color: rgba(112, 255, 162, 0.35);
  background: rgba(77, 201, 112, 0.08);
}
.inv-compare.is-worse {
  border-color: rgba(255, 129, 129, 0.26);
  background: rgba(255, 102, 102, 0.07);
}
.inv-compare span,
.inv-set-summary__card small {
  font-size: 12px;
  color: rgba(208, 221, 248, 0.82);
}
.inv-set-summary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px;
}
.inv-set-summary__card.is-active {
  border-color: rgba(116, 220, 255, 0.3);
}
.inv-set-summary__card.is-strong {
  border-color: rgba(255, 213, 112, 0.36);
  box-shadow: 0 0 0 1px rgba(255, 213, 112, 0.08) inset;
}
.bae-pv-actions {
  display: flex;
  justify-content: flex-start;
  padding: 0 16px 12px;
}
