:root {
  --bg: #0b0f14;
  --ink: #c9d6ff;
  --ink-strong: #ffffff;
  --muted: #8aa0b3;
  --glass: rgba(255, 255, 255, 0.06);
  --glass-strong: rgba(255, 255, 255, 0.12);
  --stroke: #8fd1ff;
  --cyan: #00eaff;
  --violet: #6b00ff;
  --magenta: #ff007a;
  --lime: #c1ff00;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 60px rgba(0, 0, 0, 0.3);
  --panel-bg: rgba(12, 16, 22, 0.78);
  --panel-border: rgba(255, 255, 255, 0.12);
  --panel-inner: rgba(255, 255, 255, 0.04);
  --radius-lg: 16px;
  --radius-xl: 20px;
  --ringCyan: 0 0 16px rgba(0, 234, 255, 0.6), 0 0 48px rgba(0, 234, 255, 0.35);
  --header-h: 88px;
  --footer-h: 120px;
  --blur-bg: rgba(12, 16, 22, 0.55);
  --blur-bg-strong: rgba(12, 16, 22, 0.8);
  --row-bg: rgba(255, 255, 255, 0.02);
  --row-bg-hover: rgba(0, 234, 255, 0.06);
  --row-bg-me: rgba(0, 234, 255, 0.12);
  --rank-gold: linear-gradient(90deg, #fff7b0 0%, #ffdd4a 40%, #ff8a00 100%);
  --rank-silver: linear-gradient(90deg, #ffffff 0%, #d1d9e6 40%, #8a9db8 100%);
  --rank-bronze: linear-gradient(90deg, #ffd4a3 0%, #ff9e57 40%, #c86b2d 100%);
  /* desktop table sizing */
  --thead-h: 44px;
  --row-h: 44px;
}
* {
  box-sizing: border-box;
}
html,
body {
  min-height: 100%;
  height: 100%;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial;
  letter-spacing: 0.2px;
  -webkit-font-smoothing: antialiased;
  background-color: var(--bg);
}
@media (min-width: 900px) {
  html,
  body {
    overflow: hidden;
  }
}
.bg video {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: contrast(1.05) brightness(0.5) saturate(1.25);
  z-index: -5;
}
.bg .vignette {
  position: fixed;
  inset: -10%;
  pointer-events: none;
  z-index: -3;
  background: radial-gradient(
      120% 140% at 70% 20%,
      rgba(0, 234, 255, 0.12),
      transparent 40%
    ),
    radial-gradient(
      140% 150% at 30% 80%,
      rgba(255, 0, 122, 0.13),
      transparent 45%
    ),
    radial-gradient(
      80% 120% at 50% 50%,
      rgba(107, 0, 255, 0.16),
      transparent 55%
    ),
    radial-gradient(
      circle at 50% 60%,
      rgba(0, 0, 0, 0) 0%,
      rgba(0, 0, 0, 0.5) 60%,
      rgba(0, 0, 0, 0.9) 100%
    );
  mix-blend-mode: screen;
  filter: saturate(1.08) blur(0.2px);
}
.bg .grid {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -4;
  background: radial-gradient(
      900px 900px at var(--mxpx, 50%) var(--mypx, 50%),
      rgba(0, 234, 255, 0.12),
      transparent 60%
    ),
    repeating-linear-gradient(
      to right,
      rgba(255, 255, 255, 0.03) 0 1px,
      transparent 1px 80px
    ),
    repeating-linear-gradient(
      to bottom,
      rgba(255, 255, 255, 0.03) 0 1px,
      transparent 1px 80px
    );
  mask: radial-gradient(
    1200px 1200px at 50% 50%,
    rgba(0, 0, 0, 1),
    rgba(0, 0, 0, 0)
  );
}
.fx {
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
}
.topbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 16px 20px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px 20px;
  background: linear-gradient(
    180deg,
    rgba(10, 14, 20, 0.82),
    rgba(10, 14, 20, 0.28) 55%,
    transparent
  );
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  z-index: 40;
  transform: translateY(-14px);
  opacity: 0;
  filter: blur(6px);
  animation: enter-down 0.9s 0.2s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}
.topbar::after {
  content: "";
  position: absolute;
  left: -30%;
  right: -30%;
  bottom: 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(0, 234, 255, 0.55),
    rgba(255, 0, 122, 0.55),
    transparent
  );
  background-size: 200% 100%;
  animation: bar-scan 8s linear infinite;
}
@keyframes bar-scan {
  to {
    background-position: 200% 0;
  }
}
.top-left {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  flex-wrap: nowrap;
  margin-top: auto;
  margin-bottom: auto;
}
.burger-wrap {
  position: relative;
}
.burger-btn {
  --bg-grad: linear-gradient(
    135deg,
    rgba(0, 234, 255, 0.14),
    rgba(255, 0, 122, 0.14)
  );
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: var(--bg-grad);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.35);
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: box-shadow 0.25s ease, transform 0.25s ease;
  transform-style: preserve-3d;
}
.burger-btn:hover {
  box-shadow: 0 0 0 4px rgba(0, 234, 255, 0.28), 0 10px 28px rgba(0, 0, 0, 0.35);
  transform: translateY(-1px) rotateX(6deg) rotateY(-4deg);
}
.burger-lines {
  width: 20px;
  height: 14px;
  position: relative;
}
.burger-lines span {
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  border-radius: 2px;
  background: radial-gradient(
      circle at 0% 0%,
      #fff 0%,
      rgba(255, 255, 255, 0) 70%
    ),
    #fff;
  box-shadow: 0 0 8px rgba(255, 255, 255, 0.8), 0 0 24px rgba(0, 234, 255, 0.6);
  transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1),
    top 0.35s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 0.3s ease;
}
.burger-lines span:nth-child(1) {
  top: 0;
}
.burger-lines span:nth-child(2) {
  top: 6px;
}
.burger-lines span:nth-child(3) {
  top: 12px;
}
.burger-btn.active .burger-lines span:nth-child(1) {
  top: 6px;
  transform: rotate(45deg);
}
.burger-btn.active .burger-lines span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
.burger-btn.active .burger-lines span:nth-child(3) {
  top: 6px;
  transform: rotate(-45deg);
}
.burger-menu {
  position: absolute;
  top: 52px;
  left: 0;
  width: 220px;
  max-width: 70vw;
  background: rgba(12, 16, 22, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  box-shadow: var(--shadow);
  padding: 12px 0;
  backdrop-filter: blur(12px);
  display: none;
  flex-direction: column;
  animation: menu-in 0.35s cubic-bezier(0.16, 0.82, 0.2, 1) forwards;
  transform-origin: top left;
  z-index: 200;
  min-width: 200px;
}
.burger-menu.open {
  display: flex;
}
.burger-menu a {
  all: unset;
  cursor: pointer;
  display: flex;
  align-items: center;
  font-size: 13px;
  line-height: 1.4;
  font-weight: 700;
  padding: 10px 16px;
  color: #e8f2ff;
  position: relative;
}
.burger-menu a:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 0;
  height: 1px;
  background: rgba(255, 255, 255, 0.06);
}
.burger-menu a:hover {
  background: linear-gradient(
    90deg,
    rgba(0, 234, 255, 0.07),
    rgba(255, 0, 122, 0.07)
  );
}
@keyframes menu-in {
  0% {
    opacity: 0;
    transform: scale(0.9) translateY(-8px);
    filter: blur(8px);
  }
  100% {
    opacity: 1;
    transform: scale(1) translateY(0);
    filter: blur(0);
  }
}
.brand-block {
  display: flex;
  flex-direction: column;
  min-width: 0;
  margin-top: auto;
  margin-left: 20px;
  margin-bottom: auto;
}
.brand-row {
  display: flex;
  align-items: center;
  gap: 10px;
}
.mark {
  width: 12px;
  height: 12px;
  border-radius: 3px;
  background: linear-gradient(135deg, var(--cyan), var(--violet));
  box-shadow: 0 0 12px rgba(0, 234, 255, 0.9);
  animation: breath 2.4s ease-in-out infinite;
  flex-shrink: 0;
}
@keyframes breath {
  50% {
    transform: scale(1.18);
  }
}
.game-name {
  display: flex;
  flex-wrap: nowrap;
  font-family: "Russo One", system-ui, sans-serif;
  font-size: 20px;
  line-height: 1;
  letter-spacing: 3px;
  font-weight: 700;
  color: var(--ink-strong);
  text-shadow: 0 0 18px rgba(255, 255, 255, 0.6),
    0 0 40px rgba(0, 234, 255, 0.4), 0 0 60px rgba(255, 0, 122, 0.3);
  position: relative;
  overflow: hidden;
  perspective: 800px;
  transform-style: preserve-3d;
}
.letter {
  display: inline-block;
  opacity: 0;
  transform: translateY(20px) scale(0.9) rotateX(40deg);
  filter: blur(6px);
  animation: letter-reveal 0.6s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
  will-change: transform, filter, opacity;
}
@keyframes letter-reveal {
  0% {
    opacity: 0;
    transform: translateY(20px) scale(0.9) rotateX(40deg);
    filter: blur(6px);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1) rotateX(0);
    filter: blur(0);
  }
}
.game-name.pulse .letter {
  animation: letter-reveal 0.6s cubic-bezier(0.2, 0.8, 0.2, 1) forwards,
    pulse-still 2.8s ease-in-out infinite 0.6s;
}
@keyframes pulse-still {
  0%,
  100% {
    text-shadow: 0 0 18px rgba(255, 255, 255, 0.6),
      0 0 40px rgba(0, 234, 255, 0.4), 0 0 60px rgba(255, 0, 122, 0.3);
    transform: translateY(0) scale(1);
  }
  50% {
    text-shadow: 0 0 24px rgba(255, 255, 255, 0.9),
      0 0 60px rgba(0, 234, 255, 0.7), 0 0 80px rgba(255, 0, 122, 0.5);
    transform: translateY(-1px) scale(1.03);
  }
}
.main-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
}
.top-link {
  --mxpx: 50%;
  --mypx: 50%;
  min-width: max-content;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  line-height: 1.2;
  font-weight: 800;
  text-decoration: none;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: #eaf3ff;
  background: rgba(12, 16, 22, 0.65);
  backdrop-filter: blur(14px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6), var(--ringCyan);
  position: relative;
  overflow: hidden;
  transform: translateY(-6px);
  filter: blur(3px);
  animation: enter-up 0.8s 0.5s ease forwards;
  border-radius: 14px;
  transform-style: preserve-3d;
  transition: transform 0.2s ease;
}
.top-link.secondary {
  background: rgba(12, 16, 22, 0.8);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
}
.top-link::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0;
  background: radial-gradient(
    400px 200px at var(--mxpx) var(--mypx),
    rgba(255, 255, 255, 0.22),
    transparent 60%
  );
  transition: opacity 0.25s ease;
  pointer-events: none;
}
.top-link::after {
  content: "";
  position: absolute;
  left: -120%;
  top: 0;
  height: 100%;
  width: 120%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.12),
    transparent
  );
  transform: skewX(-20deg);
  transition: transform 0.6s ease;
}
.top-link:hover::before {
  opacity: 1;
}
.top-link:hover::after {
  transform: translateX(240%) skewX(-20deg);
}
.top-link:hover {
  transform: translateY(-7px) rotateX(6deg) rotateY(-4deg) scale(1.03);
}
.top-right {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 10px;
  margin-left: auto;
}
.balance-card {
  display: none;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 14px;
  padding: 10px 14px;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.55), 0 0 40px rgba(0, 234, 255, 0.4);
  color: #fff;
  min-width: max-content;
  font-size: 12px;
  line-height: 1.2;
  font-weight: 700;
  background-image: radial-gradient(
      circle at 10% 10%,
      rgba(0, 234, 255, 0.18) 0%,
      transparent 60%
    ),
    radial-gradient(
      circle at 90% 80%,
      rgba(255, 0, 122, 0.18) 0%,
      transparent 60%
    );
}
.balance-card .label {
  font-size: 10px;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  line-height: 1.4;
  letter-spacing: 0.08em;
}
.balance-card .value {
  font-size: 14px;
  font-weight: 800;
  color: #fff;
  line-height: 1.4;
}
.balance-card.auth-on {
  display: block;
}
.lang {
  position: relative;
}
.lang-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--glass);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #e8f2ff;
  padding: 10px 12px;
  border-radius: 14px;
  font-weight: 700;
  cursor: pointer;
  backdrop-filter: blur(8px);
  box-shadow: var(--shadow);
  transform: translateY(-6px);
  filter: blur(3px);
  animation: enter-up 0.8s 0.6s ease forwards;
}
.lang-menu {
  position: absolute;
  right: 0;
  top: 48px;
  background: rgba(12, 16, 22, 0.98);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  overflow: hidden;
  display: none;
  min-width: 180px;
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.55);
  z-index: 200;
}
.lang-menu button {
  all: unset;
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 12px 14px;
  cursor: pointer;
  color: #e8f2ff;
  font-weight: 700;
}
.lang-menu button:hover {
  background: linear-gradient(
    90deg,
    rgba(0, 234, 255, 0.08),
    rgba(255, 0, 122, 0.08)
  );
}
.profile {
  position: relative;
}
.profile-btn {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: var(--shadow);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: #fff;
  font-size: 13px;
  cursor: pointer;
  transform: translateY(-6px);
  filter: blur(3px);
  animation: enter-up 0.8s 0.65s ease forwards;
  position: relative;
  overflow: hidden;
}
.profile-btn::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    400px 200px at var(--mxpx, 50%) var(--mypx, 50%),
    rgba(255, 255, 255, 0.22),
    transparent 60%
  );
  opacity: 0;
  transition: opacity 0.25s ease;
  pointer-events: none;
}
.profile-btn:hover::after {
  opacity: 1;
}
.profile-menu {
  position: absolute;
  right: 0;
  top: 52px;
  min-width: 220px;
  background: rgba(12, 16, 22, 0.98);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  box-shadow: var(--shadow);
  padding: 12px 0;
  display: none;
  flex-direction: column;
  z-index: 200;
  animation: menu-in 0.35s cubic-bezier(0.16, 0.82, 0.2, 1) forwards;
}
.profile-menu.open {
  display: flex;
}
.profile-menu .acc-type {
  text-align: center;
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  padding: 8px 16px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  color: #fff;
}
.profile-menu .list {
  display: flex;
  flex-direction: column;
  padding-top: 6px;
}
.profile-menu .list a {
  all: unset;
  display: block;
  cursor: pointer;
  padding: 10px 16px;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.4;
  color: #e8f2ff;
}
.profile-menu .list a:hover {
  background: linear-gradient(
    90deg,
    rgba(0, 234, 255, 0.07),
    rgba(255, 0, 122, 0.07)
  );
}
.rating-stage {
  position: relative;
  z-index: 10;
}
@media (min-width: 900px) {
  .rating-stage {
    position: fixed;
    left: 0;
    right: 0;
    top: calc(var(--header-h) + 10px);
    bottom: calc(var(--footer-h) + 0px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    overflow: hidden;
  }
}
@media (max-width: 899px) {
  .rating-stage {
    padding-top: calc(var(--header-h) + 16px);
    padding-bottom: calc(var(--footer-h) + 16px);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    gap: 20px;
  }
}
.rating-layout {
  position: relative;
  width: 100%;
  max-width: 1500px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 20px;
  align-items: stretch;
  z-index: 20;
  pointer-events: none;
}
@media (max-width: 1100px) {
  .rating-layout {
    grid-template-columns: minmax(0, 1fr) 280px;
  }
}
@media (max-width: 899px) {
  .rating-layout {
    grid-template-columns: minmax(0, 1fr);
  }
}
@media (min-width: 900px) {
  /* Let grid fill the available stage height so the table can expand */
  .rating-layout {
    height: 100%;
    min-height: 0;
  }
  .leaderboard-card {
    height: 100%;
    min-height: 0;
  }
  .lb-body {
    min-height: 0;
  }
  .lb-table-wrap-shell {
    min-height: 0;
  }
  /* Auto rows: scroller fills the available height inside the card */
  .lb-table-scroll {
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    height: 100%;
  }
}
.leaderboard-card {
  background: var(--panel-bg);
  backdrop-filter: blur(14px) saturate(1.2);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 40px 120px rgba(0, 0, 0, 0.8), 0 0 120px rgba(0, 234, 255, 0.22),
    0 0 200px rgba(255, 0, 122, 0.12);
  border-radius: 20px;
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  transform-style: preserve-3d;
  transform-origin: center;
  pointer-events: auto;
  animation: card-pop 0.8s 0.4s ease both;
}
.leaderboard-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(
      circle at 10% 10%,
      rgba(0, 234, 255, 0.18) 0%,
      rgba(0, 0, 0, 0) 60%
    ),
    radial-gradient(
      circle at 90% 80%,
      rgba(255, 0, 122, 0.18) 0%,
      rgba(0, 0, 0, 0) 60%
    );
  mix-blend-mode: screen;
  pointer-events: none;
}
.lb-header-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 20px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
@media (max-width: 480px) {
  .lb-header-bar {
    flex-direction: column;
    align-items: stretch;
  }
}
.lb-heading-wrap {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.lb-title-line {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: baseline;
}
.lb-main-title {
  font-size: 20px;
  font-weight: 800;
  color: #fff;
  line-height: 1.2;
  letter-spacing: 0.04em;
  text-shadow: 0 0 16px rgba(0, 234, 255, 0.5), 0 0 40px rgba(255, 0, 122, 0.3);
}
.lb-user-rank {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.2;
  color: var(--ink-strong);
  background: rgba(12, 16, 22, 0.6);
  border: 1px solid rgba(0, 234, 255, 0.4);
  border-radius: 12px;
  padding: 6px 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6), 0 0 20px rgba(0, 234, 255, 0.4);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.lb-user-rank span {
  color: #00eaff;
  font-weight: 800;
  text-shadow: 0 0 10px rgba(0, 234, 255, 0.8), 0 0 30px rgba(0, 234, 255, 0.5);
}
.lb-controls-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 16px;
  align-items: flex-start;
}
@media (max-width: 480px) {
  .lb-controls-wrap {
    flex-direction: column;
    align-items: stretch;
  }
}
.neon-btn {
  --mxpx: 50%;
  --mypx: 50%;
  background: rgba(12, 16, 22, 0.8);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(0, 234, 255, 0.6);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8), 0 0 30px rgba(0, 234, 255, 0.4),
    0 0 60px rgba(255, 0, 122, 0.3);
  color: #eaf3ff;
  font-weight: 800;
  font-size: 12px;
  line-height: 1.2;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: 14px;
  padding: 10px 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  cursor: pointer;
  min-width: max-content;
  transform-style: preserve-3d;
  transition: transform 0.2s ease;
  overflow: hidden;
}
.neon-btn::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    400px 200px at var(--mxpx) var(--mypx),
    rgba(255, 255, 255, 0.22),
    transparent 60%
  );
  opacity: 0;
  transition: opacity 0.25s ease;
  pointer-events: none;
}
.neon-btn::after {
  content: "";
  position: absolute;
  left: -120%;
  top: 0;
  height: 100%;
  width: 120%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.18),
    transparent
  );
  transform: skewX(-20deg);
  transition: transform 0.6s ease;
}
.neon-btn:hover::before {
  opacity: 1;
}
.neon-btn:hover::after {
  transform: translateX(240%) skewX(-20deg);
}
.neon-btn:hover {
  transform: translateY(-2px) rotateX(6deg) rotateY(-4deg) scale(1.03);
}
.per-page {
  display: flex;
  gap: 6px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  padding: 6px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8), 0 0 30px rgba(0, 234, 255, 0.4),
    0 0 60px rgba(255, 0, 122, 0.3);
  backdrop-filter: blur(12px);
}
.per-page .per {
  all: unset;
  min-width: 40px;
  text-align: center;
  font-size: 12px;
  line-height: 1.2;
  font-weight: 800;
  color: #eaf3ff;
  cursor: pointer;
  padding: 8px 10px;
  border-radius: 10px;
  position: relative;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  transform-style: preserve-3d;
  transition: background 0.15s ease, box-shadow 0.15s ease, transform 0.2s ease;
}
.per-page .per.active {
  background: radial-gradient(
      circle at 0% 0%,
      rgba(0, 234, 255, 0.3) 0%,
      rgba(0, 0, 0, 0) 60%
    ),
    rgba(0, 234, 255, 0.16);
  box-shadow: 0 0 16px rgba(0, 234, 255, 0.6), 0 0 40px rgba(0, 234, 255, 0.4),
    0 0 80px rgba(0, 234, 255, 0.2);
  color: #00eaff;
}
.per-page .per:hover {
  transform: translateY(-2px) rotateX(6deg) rotateY(-4deg) scale(1.04);
  box-shadow: 0 0 16px rgba(255, 0, 122, 0.4), 0 0 40px rgba(255, 0, 122, 0.2);
}
.lb-body {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  padding: 12px 20px 20px;
}
.lb-table-wrap-shell {
  position: relative;
  flex: 1;
  min-height: 0;
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: inset 0 0 40px rgba(0, 0, 0, 0.8), 0 20px 80px rgba(0, 0, 0, 0.8);
  overflow: hidden;
}
.lb-table-scroll {
  position: absolute;
  inset: 0;
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: thin;
  scrollbar-color: rgba(0, 234, 255, 0.4) rgba(255, 255, 255, 0.04);
}
@media (max-width: 1299px) {
  .lb-table-scroll {
    overflow-x: auto;
  }
}
.lb-table-scroll::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
.lb-table-scroll::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.04);
}
.lb-table-scroll::-webkit-scrollbar-thumb {
  background: radial-gradient(
    circle at 0% 0%,
    rgba(0, 234, 255, 0.7) 0%,
    rgba(0, 0, 0, 0) 70%
  );
  border-radius: 3px;
}
.lb-table {
  border-collapse: collapse;
  width: 100%;
  min-width: 720px;
  font-size: 13px;
  line-height: 1.4;
  color: #eaf3ff;
}
@media (max-width: 480px) {
  .lb-table {
    font-size: 12px;
  }
}
.lb-table thead th {
  position: sticky;
  top: 0;
  background: rgba(12, 16, 22, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 11px;
  line-height: 1.2;
  padding: 12px 10px;
  color: #fff;
  white-space: nowrap;
}
.lb-table thead th.sortable {
  cursor: pointer;
  user-select: none;
  position: relative;
}
.lb-table thead th.sortable::after {
  content: "";
  display: inline-block;
  margin-left: 6px;
  opacity: 0.7;
}
.lb-table thead th.sortable[aria-sort="ascending"]::after {
  content: "▲";
}
.lb-table thead th.sortable[aria-sort="descending"]::after {
  content: "▼";
}
.lb-table thead th.sortable[aria-sort="none"]::after {
  content: "";
}
.lb-table tbody tr {
  background: var(--row-bg);
  transition: background 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}
.lb-table tbody tr:hover {
  background: var(--row-bg-hover);
  box-shadow: 0 0 30px rgba(0, 234, 255, 0.25);
  transform: translateZ(0) scale(1.01);
}
.lb-table tbody tr.me {
  background: var(--row-bg-me);
  box-shadow: 0 0 30px rgba(0, 234, 255, 0.6), 0 0 80px rgba(0, 234, 255, 0.3);
}
.lb-table tbody td {
  padding: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
  vertical-align: middle;
  font-weight: 600;
  white-space: nowrap;
  text-align: center;
}
.rank-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 28px;
  padding: 0 8px;
  border-radius: 8px;
  font-weight: 800;
  font-size: 12px;
  line-height: 1;
  color: #000;
  text-shadow: 0 0 8px rgba(0, 0, 0, 0.4);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8);
}
.rank-1 {
  background: var(--rank-gold);
  box-shadow: 0 0 20px rgba(255, 221, 74, 0.8), 0 0 60px rgba(255, 138, 0, 0.4);
  color: #000;
}
.rank-2 {
  background: var(--rank-silver);
  box-shadow: 0 0 20px rgba(209, 217, 230, 0.8),
    0 0 60px rgba(138, 157, 184, 0.4);
  color: #000;
}
.rank-3 {
  background: var(--rank-bronze);
  box-shadow: 0 0 20px rgba(255, 158, 87, 0.8), 0 0 60px rgba(200, 107, 45, 0.4);
  color: #000;
}
.rank-other {
  background: linear-gradient(
    90deg,
    rgba(0, 234, 255, 0.2),
    rgba(107, 0, 255, 0.2)
  );
  color: #fff;
  border: 1px solid rgba(0, 234, 255, 0.4);
}
.player-name-cell {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  color: #fff;
}
.race-pill {
  font-size: 11px;
  line-height: 1.2;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: #fff;
}
.class-cell {
  font-weight: 700;
  color: #c9d6ff;
}
.ap-cell {
  color: #7dffa7;
  font-weight: 800;
  text-shadow: 0 0 8px rgba(125, 255, 167, 0.6),
    0 0 20px rgba(125, 255, 167, 0.4);
}
.kills-cell {
  color: #ff007a;
  font-weight: 800;
  text-shadow: 0 0 8px rgba(255, 0, 122, 0.6), 0 0 20px rgba(255, 0, 122, 0.4);
}
.server-card {
  background: var(--panel-bg);
  backdrop-filter: blur(14px) saturate(1.2);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 40px 120px rgba(0, 0, 0, 0.8), 0 0 120px rgba(0, 234, 255, 0.22),
    0 0 200px rgba(255, 0, 122, 0.12);
  border-radius: 20px;
  transform-style: preserve-3d;
  transform-origin: center;
  min-height: 0;
  pointer-events: auto;
  display: flex;
  flex-direction: column;
  padding: 20px;
  position: relative;
  animation: card-pop 0.8s 0.5s ease both;
}
.server-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(
      circle at 10% 10%,
      rgba(0, 234, 255, 0.18) 0%,
      rgba(0, 0, 0, 0) 60%
    ),
    radial-gradient(
      circle at 90% 80%,
      rgba(255, 0, 122, 0.18) 0%,
      rgba(0, 0, 0, 0) 60%
    );
  mix-blend-mode: screen;
  pointer-events: none;
}
.srv-head {
  font-size: 14px;
  line-height: 1.3;
  color: #fff;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-shadow: 0 0 16px rgba(0, 234, 255, 0.6), 0 0 32px rgba(255, 0, 122, 0.4);
  margin-bottom: 16px;
}
.srv-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  min-height: 0;
}
.srv-item {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  padding: 12px 14px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.7), 0 0 40px rgba(0, 234, 255, 0.25);
  display: flex;
  flex-direction: column;
}
.srv-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 6px;
}
.srv-value {
  display: flex;
  align-items: baseline;
  gap: 6px;
  font-size: 18px;
  font-weight: 800;
  line-height: 1.2;
  color: #fff;
}
.srv-value .accent-online {
  color: #7dffa7;
  text-shadow: 0 0 8px rgba(125, 255, 167, 0.8),
    0 0 24px rgba(125, 255, 167, 0.4);
}
.srv-value .accent-patch {
  color: #00eaff;
  text-shadow: 0 0 8px rgba(0, 234, 255, 0.8), 0 0 24px rgba(0, 234, 255, 0.4);
}
.srv-sub {
  font-size: 11px;
  line-height: 1.4;
  font-weight: 600;
  color: var(--muted);
}
.floating-layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
  transform-style: preserve-3d;
  perspective: 1200px;
  z-index: 5;
}
.orb {
  position: absolute;
  border-radius: 999px;
  background: radial-gradient(
      circle at 30% 30%,
      rgba(0, 234, 255, 0.4) 0%,
      rgba(0, 0, 0, 0) 70%
    ),
    radial-gradient(
      circle at 70% 70%,
      rgba(255, 0, 122, 0.3) 0%,
      rgba(0, 0, 0, 0) 70%
    );
  box-shadow: 0 40px 120px rgba(0, 234, 255, 0.3),
    0 0 160px rgba(255, 0, 122, 0.2);
  filter: blur(2px) saturate(1.2);
  mix-blend-mode: screen;
  animation: floatY 6s ease-in-out infinite;
  will-change: transform;
}
.orb-a {
  width: 220px;
  height: 220px;
  left: 5%;
  top: 20%;
}
.orb-b {
  width: 160px;
  height: 160px;
  right: 10%;
  bottom: 25%;
  animation-duration: 8s;
}
.orb-c {
  width: 320px;
  height: 320px;
  left: 50%;
  top: 60%;
  transform: translateX(-50%);
  filter: blur(4px) saturate(1.5);
  opacity: 0.4;
  animation-duration: 10s;
}
@keyframes floatY {
  0% {
    transform: translateY(0) translateZ(0) scale(1);
  }
  50% {
    transform: translateY(-20px) translateZ(40px) scale(1.05);
  }
  100% {
    transform: translateY(0) translateZ(0) scale(1);
  }
}
.polyframe {
  position: absolute;
  width: 220px;
  height: 220px;
  right: 20%;
  top: 10%;
  border-radius: 24px;
  background: conic-gradient(
    from 0deg,
    rgba(0, 234, 255, 0.25),
    rgba(255, 0, 122, 0.25),
    rgba(107, 0, 255, 0.25),
    rgba(0, 234, 255, 0.25)
  );
  box-shadow: 0 40px 160px rgba(0, 234, 255, 0.4),
    0 0 200px rgba(255, 0, 122, 0.25);
  filter: blur(1px) saturate(1.4);
  mix-blend-mode: screen;
  animation: spinSlow 12s linear infinite;
  will-change: transform;
  opacity: 0.4;
}
@keyframes spinSlow {
  0% {
    transform: rotate3d(1, 1, 0, 0deg);
  }
  100% {
    transform: rotate3d(1, 1, 0, 360deg);
  }
}
.footer-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 8px 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  align-items: center;
  justify-content: space-between;
  pointer-events: auto;
  background: linear-gradient(180deg, transparent, rgba(5, 9, 15, 0.92));
  border-top: 1px solid rgba(143, 209, 255, 0.3);
  box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(10px);
  z-index: 5;
}
@media (max-width: 600px) {
  .footer-bar {
    flex-direction: column-reverse;
    align-items: flex-start;
  }
}
.footer-left {
  pointer-events: auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 16px;
  margin-top: 40px;
}
.discord-pill {
  all: unset;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(12, 16, 22, 0.78);
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 8px 10px;
  box-shadow: var(--shadow);
  font-size: 12px;
  font-weight: 700;
  color: #eaf3ff;
  min-width: max-content;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  user-select: none;
}
.discord-pill:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.6), 0 0 24px rgba(0, 234, 255, 0.3);
}
.discord-pill:active {
  transform: translateY(0);
}
.legal-wrap {
  font-size: 11px;
  font-weight: 600;
  line-height: 1.4;
  color: #6c7a8a;
  min-width: max-content;
}
.footer-right {
  pointer-events: auto;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
  min-width: 0;
}
@media (max-width: 600px) {
  .footer-right {
    align-items: flex-start;
  }
}
.ctaRowBottom {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  justify-content: flex-end;
}
@media (max-width: 600px) {
  .ctaRowBottom {
    justify-content: flex-start;
  }
}
.sound {
  order: -1;
}
.sound-btn {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 12px;
  box-shadow: var(--shadow);
  color: #eaf3ff;
  font-size: 11px;
  line-height: 1.2;
  font-weight: 800;
  padding: 8px 12px;
  cursor: pointer;
  min-width: max-content;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.note-mini {
  font-size: 10px;
  font-weight: 600;
  color: #8aa0b3;
  line-height: 1.4;
  max-width: 260px;
  text-align: right;
}
@media (max-width: 600px) {
  .note-mini {
    text-align: left;
  }
}
.toast {
  position: fixed;
  top: 86px;
  right: 28px;
  background: rgba(12, 16, 22, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  padding: 12px 14px;
  font-weight: 700;
  opacity: 0;
  transform: translateY(-8px);
  transition: all 0.4s ease;
  pointer-events: none;
  font-size: 12px;
  line-height: 1.4;
  color: #fff;
  box-shadow: var(--shadow);
  z-index: 60;
}
.toast.show {
  opacity: 1;
  transform: translateY(0);
}
@keyframes enter-up {
  to {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }
}
@keyframes enter-down {
  to {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }
}
@keyframes enter-card {
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
  }
}
@keyframes card-pop {
  0% {
    transform: translateY(8px) scale(0.98);
    opacity: 0;
  }
  100% {
    transform: translateY(0) scale(1);
    opacity: 1;
  }
}
@keyframes tile-in {
  0% {
    transform: scale(0.6);
    opacity: 0;
  }
  100% {
    transform: scale(0.94);
    opacity: 1;
  }
}

/* ========= CORE VARS / RESET (нужны топбару и футеру)  ТУТ НАЧИНАЕТСЯ ШАБЛОН========= */
:root {
  --bg: #0b0f14;
  --ink: #c9d6ff;
  --ink-strong: #ffffff;
  --muted: #8aa0b3;
  --glass: rgba(255, 255, 255, 0.06);
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 60px rgba(0, 0, 0, 0.3);
  --cyan: #00eaff;
  --violet: #6b00ff;
  --ringCyan: 0 0 16px rgba(0, 234, 255, 0.6), 0 0 48px rgba(0, 234, 255, 0.35);
}
* {
  box-sizing: border-box;
}
html,
body {
  height: 100%;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, Arial;
  letter-spacing: 0.2px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* ========= HEADER: TOPBAR ========= */
.topbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 16px 20px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px 20px;
  background: linear-gradient(
    180deg,
    rgba(10, 14, 20, 0.82),
    rgba(10, 14, 20, 0.28) 55%,
    transparent
  );
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  z-index: 40;
  transform: translateY(-14px);
  opacity: 0;
  filter: blur(6px);
  animation: enter-down 0.9s 0.2s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}
.topbar::after {
  content: "";
  position: absolute;
  left: -30%;
  right: -30%;
  bottom: 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(0, 234, 255, 0.55),
    rgba(255, 0, 122, 0.55),
    transparent
  );
  background-size: 200% 100%;
  animation: bar-scan 8s linear infinite;
}
.top-left {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  flex-wrap: nowrap;
  margin: auto 0;
}

/* ========= BURGER ========= */
.burger-wrap {
  position: relative;
}
.burger-btn {
  --bg-grad: linear-gradient(
    135deg,
    rgba(0, 234, 255, 0.14),
    rgba(255, 0, 122, 0.14)
  );
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: var(--bg-grad);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.35);
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}
.burger-btn:hover {
  box-shadow: 0 0 0 4px rgba(0, 234, 255, 0.28), 0 10px 28px rgba(0, 0, 0, 0.35);
  transform: translateY(-1px);
}
.burger-lines {
  width: 20px;
  height: 14px;
  position: relative;
}
.burger-lines span {
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  border-radius: 2px;
  background: radial-gradient(
      circle at 0% 0%,
      #fff 0%,
      rgba(255, 255, 255, 0) 70%
    ),
    #fff;
  box-shadow: 0 0 8px rgba(255, 255, 255, 0.8), 0 0 24px rgba(0, 234, 255, 0.6);
  transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1),
    top 0.35s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 0.3s ease;
}
.burger-lines span:nth-child(1) {
  top: 0;
}
.burger-lines span:nth-child(2) {
  top: 6px;
}
.burger-lines span:nth-child(3) {
  top: 12px;
}
.burger-btn.active .burger-lines span:nth-child(1) {
  top: 6px;
  transform: rotate(45deg);
}
.burger-btn.active .burger-lines span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
.burger-btn.active .burger-lines span:nth-child(3) {
  top: 6px;
  transform: rotate(-45deg);
}

.burger-menu {
  position: absolute;
  top: 52px;
  left: 0;
  min-width: 200px;
  width: 220px;
  max-width: 70vw;
  background: rgba(12, 16, 22, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  box-shadow: var(--shadow);
  padding: 12px 0;
  backdrop-filter: blur(12px);
  display: none;
  flex-direction: column;
  transform-origin: top left;
  z-index: 200;
  animation: menu-in 0.35s cubic-bezier(0.16, 0.82, 0.2, 1) forwards;
}
.burger-menu.open {
  display: flex;
}
.burger-menu a {
  all: unset;
  cursor: pointer;
  display: flex;
  align-items: center;
  font-size: 13px;
  line-height: 1.4;
  font-weight: 700;
  padding: 10px 16px;
  color: #e8f2ff;
  position: relative;
}
.burger-menu a:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 0;
  height: 1px;
  background: rgba(255, 255, 255, 0.06);
}
.burger-menu a:hover {
  background: linear-gradient(
    90deg,
    rgba(0, 234, 255, 0.07),
    rgba(255, 0, 122, 0.07)
  );
}

/* ========= BRAND / TITLE ========= */
.brand-block {
  display: flex;
  flex-direction: column;
  min-width: 0;
  margin: auto 0;
  margin-left: 20px;
}
.brand-row {
  display: flex;
  align-items: center;
  gap: 10px;
}
.mark {
  width: 12px;
  height: 12px;
  border-radius: 3px;
  background: linear-gradient(135deg, var(--cyan), var(--violet));
  box-shadow: 0 0 12px rgba(0, 234, 255, 0.9);
  animation: breath 2.4s ease-in-out infinite;
  flex-shrink: 0;
}
.game-name {
  display: flex;
  flex-wrap: nowrap;
  font-family: "Russo One", system-ui, sans-serif;
  font-size: 20px;
  line-height: 1;
  letter-spacing: 3px;
  font-weight: 700;
  color: var(--ink-strong);
  text-shadow: 0 0 18px rgba(255, 255, 255, 0.6),
    0 0 40px rgba(0, 234, 255, 0.4), 0 0 60px rgba(255, 0, 122, 0.3);
  position: relative;
  overflow: hidden;
}
.letter {
  display: inline-block;
  opacity: 0;
  transform: translateY(20px) scale(0.9);
  filter: blur(6px);
  animation: letter-reveal 0.6s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}
.game-name.pulse .letter {
  animation: letter-reveal 0.6s cubic-bezier(0.2, 0.8, 0.2, 1) forwards,
    pulse-still 2.8s ease-in-out infinite 0.6s;
}

/* ========= CENTER NAV BUTTONS ========= */
.main-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
}
.top-link {
  --mxpx: 50%;
  --mypx: 50%;
  min-width: max-content;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  line-height: 1.2;
  font-weight: 800;
  text-decoration: none;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: #eaf3ff;
  background: rgba(12, 16, 22, 0.65);
  backdrop-filter: blur(14px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6), var(--ringCyan);
  position: relative;
  overflow: hidden;
  transform: translateY(-6px);
  filter: blur(3px);
  animation: enter-up 0.8s 0.5s ease forwards;
}
.top-link.secondary {
  background: rgba(12, 16, 22, 0.8);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
}
.top-link::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0;
  background: radial-gradient(
    400px 200px at var(--mxpx) var(--mypx),
    rgba(255, 255, 255, 0.22),
    transparent 60%
  );
  transition: opacity 0.25s ease;
  pointer-events: none;
}
.top-link::after {
  content: "";
  position: absolute;
  left: -120%;
  top: 0;
  height: 100%;
  width: 120%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.12),
    transparent
  );
  transform: skewX(-20deg);
  transition: transform 0.6s ease;
}
.top-link:hover::before {
  opacity: 1;
}
.top-link:hover::after {
  transform: translateX(240%) skewX(-20deg);
}

/* ========= RIGHT PANEL: BALANCE / LANG / PROFILE ========= */
.top-right {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 10px;
  margin-left: auto;
}

.balance-card {
  display: none;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 14px;
  padding: 10px 14px;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.55), 0 0 40px rgba(0, 234, 255, 0.4);
  color: #fff;
  min-width: max-content;
  font-size: 12px;
  line-height: 1.2;
  font-weight: 700;
  background-image: radial-gradient(
      circle at 10% 10%,
      rgba(0, 234, 255, 0.18) 0%,
      transparent 60%
    ),
    radial-gradient(
      circle at 90% 80%,
      rgba(255, 0, 122, 0.18) 0%,
      transparent 60%
    );
}
.balance-card .label {
  font-size: 10px;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  line-height: 1.4;
  letter-spacing: 0.08em;
}
.balance-card .value {
  font-size: 14px;
  font-weight: 800;
  color: #fff;
  line-height: 1.4;
}
.balance-card.auth-on {
  display: block;
}

.lang {
  position: relative;
}
.lang-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--glass);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #e8f2ff;
  padding: 10px 12px;
  border-radius: 14px;
  font-weight: 700;
  cursor: pointer;
  backdrop-filter: blur(8px);
  box-shadow: var(--shadow);
  transform: translateY(-6px);
  filter: blur(3px);
  animation: enter-up 0.8s 0.6s ease forwards;
}
.lang-menu {
  position: absolute;
  right: 0;
  top: 48px;
  background: rgba(12, 16, 22, 0.98);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  overflow: hidden;
  display: none;
  min-width: 180px;
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.55);
  z-index: 200;
}
.lang-menu button {
  all: unset;
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 12px 14px;
  cursor: pointer;
  color: #e8f2ff;
  font-weight: 700;
}
.lang-menu button:hover {
  background: linear-gradient(
    90deg,
    rgba(0, 234, 255, 0.08),
    rgba(255, 0, 122, 0.08)
  );
}

.profile {
  position: relative;
}
.profile-btn {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: var(--shadow);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: #fff;
  font-size: 13px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transform: translateY(-6px);
  filter: blur(3px);
  animation: enter-up 0.8s 0.65s ease forwards;
}
.profile-btn::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    400px 200px at var(--mxpx, 50%) var(--mypx, 50%),
    rgba(255, 255, 255, 0.22),
    transparent 60%
  );
  opacity: 0;
  transition: opacity 0.25s ease;
  pointer-events: none;
}
.profile-btn:hover::after {
  opacity: 1;
}

.profile-menu {
  position: absolute;
  right: 0;
  top: 52px;
  min-width: 220px;
  background: rgba(12, 16, 22, 0.98);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  box-shadow: var(--shadow);
  padding: 12px 0;
  display: none;
  flex-direction: column;
  z-index: 200;
  animation: menu-in 0.35s cubic-bezier(0.16, 0.82, 0.2, 1) forwards;
}
.profile-menu.open {
  display: flex;
}
.profile-menu .acc-type {
  text-align: center;
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  padding: 8px 16px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.profile-menu .list {
  display: flex;
  flex-direction: column;
  padding-top: 6px;
}
.profile-menu .list a {
  all: unset;
  display: block;
  cursor: pointer;
  padding: 10px 16px;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.4;
  color: #e8f2ff;
}
.profile-menu .list a:hover {
  background: linear-gradient(
    90deg,
    rgba(0, 234, 255, 0.07),
    rgba(255, 0, 122, 0.07)
  );
}

/* userline (авторизованный блок) */
.profile-menu .acc-userline {
  margin: 6px 0 4px;
  font-size: 13px;
  line-height: 1.25;
  color: #dbe0ff;
  opacity: 0.95;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-align: center;
}
.profile-menu .acc-userline .nick {
  font-weight: 600;
}
.profile-menu .acc-userline .acc {
  opacity: 0.85;
}
.profile-menu .acc-userline .sep {
  opacity: 0.6;
  margin: 0 0.25em;
}

/* ========= FOOTER ========= */
.footer-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: -1px;
  padding: 8px 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  align-items: center;
  justify-content: space-between;
  pointer-events: auto;
  background: linear-gradient(180deg, transparent, rgba(5, 9, 15, 0.92));
  border-top: 1px solid rgba(143, 209, 255, 0.3);
  box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(10px);
  z-index: 5;
}
@media (max-width: 600px) {
  .footer-bar {
    flex-direction: column-reverse;
    align-items: flex-start;
  }
}

.footer-left {
  pointer-events: auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 16px;
  margin-top: 40px;
}
.discord-pill {
  all: unset;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(12, 16, 22, 0.78);
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 8px 10px;
  box-shadow: var(--shadow);
  font-size: 12px;
  font-weight: 700;
  color: #eaf3ff;
  min-width: max-content;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  user-select: none;
}
.discord-pill:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.6), 0 0 24px rgba(0, 234, 255, 0.3);
}
.discord-pill:active {
  transform: translateY(0);
}

.legal-wrap {
  font-size: 11px;
  font-weight: 600;
  line-height: 1.4;
  color: #6c7a8a;
  min-width: max-content;
}

.footer-right {
  pointer-events: auto;
  display: flex;
  align-items: flex-end;
  gap: 8px;
  min-width: 0;
}
@media (max-width: 600px) {
  .footer-right {
    align-items: flex-start;
  }
}

/* блок с посещалкой/заметкой справа */
.note-line {
  display: block;
}
@media (min-width: 701px) {
  .note-line {
    display: flex;
    align-items: flex-end;
    gap: 12px;
    justify-content: flex-end;
    flex-wrap: wrap;
  }
  .note-line .visitor_bottom {
    float: none;
    display: inline-flex;
    align-items: center;
    margin: 0;
  }
  .note-line .note-mini {
    text-align: right;
  }
}
.visitor_bottom {
  margin-top: 17px;
  float: right;
  display: inline-block;
  bottom: 0;
  right: 0;
}
.note-mini {
  font-size: 10px;
  font-weight: 600;
  color: #8aa0b3;
  line-height: 1.4;
  max-width: 260px;
  text-align: right;
}
@media (max-width: 600px) {
  .note-mini {
    text-align: left;
  }
}

/* ========= ANIMATIONS (используются в хедере/кнопках) ========= */
@keyframes bar-scan {
  to {
    background-position: 200% 0;
  }
}
@keyframes enter-up {
  to {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }
}
@keyframes enter-down {
  to {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }
}
@keyframes menu-in {
  0% {
    opacity: 0;
    transform: scale(0.9) translateY(-8px);
    filter: blur(8px);
  }
  100% {
    opacity: 1;
    transform: scale(1) translateY(0);
    filter: blur(0);
  }
}
@keyframes breath {
  50% {
    transform: scale(1.18);
  }
}
@keyframes letter-reveal {
  0% {
    opacity: 0;
    transform: translateY(20px) scale(0.9);
    filter: blur(6px);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
  }
}
@keyframes pulse-still {
  0%,
  100% {
    text-shadow: 0 0 18px rgba(255, 255, 255, 0.6),
      0 0 40px rgba(0, 234, 255, 0.4), 0 0 60px rgba(255, 0, 122, 0.3);
    transform: translateY(0) scale(1);
  }
  50% {
    text-shadow: 0 0 24px rgba(255, 255, 255, 0.9),
      0 0 60px rgba(0, 234, 255, 0.7), 0 0 80px rgba(255, 0, 122, 0.5);
    transform: translateY(-1px) scale(1.03);
  }
}

/* ========= RESPONSIVE (только то, что затрагивает ваш код) ========= */
@media (max-width: 1200px) {
  .main-nav {
    display: none;
  }
}
@media (max-width: 920px) {
  .footer-left {
    display: inline;
    align-items: center;
    gap: 12px 16px;
    margin-top: 0;
  }
  .footer-right {
    right: 1px;
    bottom: 1px;
  }
  .top-left {
    gap: 0;
  }
  .topbar {
    gap: 0;
  }
}
@media (max-width: 700px) {
  /* шапка прилипает, упрощаем кнопки */
  .topbar {
    position: sticky;
    top: 0;
    padding: 12px 14px;
    z-index: 40;
    backdrop-filter: blur(8px);
  }
  .main-nav {
    display: none !important;
  }
  .lang-btn,
  .profile-btn {
    transform: none;
    filter: none;
  }
  .lang-menu {
    top: 44px;
  }

  /* футер в поток на всю ширину */
  .footer-bar {
    position: static;
    left: auto;
    right: auto;
    bottom: auto;
    width: calc(100% - 24px);
    gap: 12px 14px;
  }
  .footer-left {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 12px;
    margin-top: 0;
  }
  .footer-right {
    align-items: flex-start;
    position: static;
  }
  .note-mini {
    max-width: 100%;
    text-align: left;
  }
}
@media (max-width: 800px) {
  .cmd-layout {
    padding-left: 4px;
    padding-right: 4px;
  }
}
@media (max-width: 400px) {
  .cmd-layout {
    display: block;
  }
  .stage-caption {
    display: block;
  }
}
@media (max-width: 1200px) {
  .footer-bar {
    backdrop-filter: blur(10px);
  }
}
@media (max-width: 900px) {
  .footer-bar {
    position: fixed;
    left: 0px;
    right: 0px;
    bottom: -1px;
    display: flex;
    flex-wrap: wrap-reverse;
    gap: 16px 20px;
    z-index: 30;
    padding: 0.5rem;
  }
}

@media (max-width: 360px) {
  .footer-bar {
    display: inline;
  }
}

@media (max-width: 899px) {
  html {
    overflow-x: hidden;
  }
  .lb-body {
    padding: 12px 12px 16px;
  }
  .lb-table-wrap-shell {
    flex: initial;
    min-height: 320px;
    max-height: 65vh;
  }
  .lb-table-scroll {
    /* switch from absolute to normal flow so wrapper gains height */
    position: static;
    inset: auto;
    max-height: 65vh;
    overflow-y: auto;
    /* keep horizontal scrolling for wide tables */
    overflow-x: auto;
  }
  .rating-stage {
    padding-top: 10px;
  }
}

/* ===== LOGIN MODAL — PIXEL MATCH ===== */

.btn {
  --pad: 12px 18px;
  --ring: rgba(0, 234, 255, 0.5);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: var(--pad);
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: linear-gradient(
    135deg,
    rgba(0, 234, 255, 0.12),
    rgba(255, 0, 122, 0.12)
  );
  color: #eaf3ff;
  font-weight: 900;
  cursor: pointer;
  text-decoration: none;
  letter-spacing: 0.4px;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.35), var(--ringCyan);
  position: relative;
  overflow: hidden;
  transition: transform 0.2s ease;
  font-size: 13px;
  line-height: 1.2;
  text-transform: uppercase;
  min-width: max-content;

  background: rgba(12, 16, 22, 0.65);
  backdrop-filter: blur(14px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
}
.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0;
  background: radial-gradient(
    400px 200px at var(--mxpx, 50%) var(--mypx, 50%),
    rgba(255, 255, 255, 0.22),
    transparent 60%
  );
  transition: opacity 0.25s ease;
  pointer-events: none;
}
.btn::after {
  content: "";
  position: absolute;
  left: -120%;
  top: 0;
  height: 100%;
  width: 120%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.12),
    transparent
  );
  transform: skewX(-20deg);
  transition: transform 0.6s ease;
}
.btn:hover::before {
  opacity: 1;
}
.btn:hover {
  transform: translateY(-1px);
}
.btn:hover::after {
  transform: translateX(240%) skewX(-20deg);
}
.btn.ghost {
  background: rgba(12, 16, 22, 0.8);
  backdrop-filter: blur(14px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
}
.btn.thin {
  padding: 10px 14px;
  font-weight: 700;
  opacity: 0.95;
  justify-content: center;
}
#downloadBtn {
  min-width: 220px;
  text-align: center;
  animation: pulse-glow 2.6s ease-in-out infinite 1.2s;
}
@keyframes pulse-glow {
  0%,
  100% {
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.35), var(--ringCyan);
    transform: translateY(0) scale(1);
  }
  50% {
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.35), 0 0 18px rgba(0, 234, 255, 0.7),
      0 0 36px rgba(255, 0, 122, 0.5), var(--ringCyan);
    transform: translateY(-1px) scale(1.03);
  }
}

/* Контейнер и анимация */
.mdo {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.25s, visibility 0.25s;
}
.mdo.open {
  visibility: visible;
  opacity: 1;
}
.mdo__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(6px);
}
/* компактная ширина как на референсе */
.mdo__dialog {
  position: relative;
  width: clamp(320px, 90vw, 420px);
  transform: translateY(8px) scale(0.98);
  transition: transform 0.25s;
}
.mdo.open .mdo__dialog {
  transform: translateY(0) scale(1);
}

/* Карточка */
#login-modal .card {
  padding: 20px 18px 22px;
  border-radius: 18px;
  background: radial-gradient(
      120% 120% at -20% -20%,
      rgba(59, 234, 253, 0.18) 0%,
      rgba(59, 234, 253, 0) 60%
    ),
    radial-gradient(
      120% 120% at 120% 0%,
      rgba(176, 92, 255, 0.16) 0%,
      rgba(176, 92, 255, 0) 58%
    ),
    linear-gradient(180deg, rgba(12, 16, 22, 0.95), rgba(12, 16, 22, 0.78));
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
  color: #fff;
  -webkit-font-smoothing: antialiased;
}

/* Верхняя «плашка» ВХОД */
#login-modal .tabs {
  margin-bottom: 14px;
}
#login-modal .tabs button {
  display: block;
  width: 100%;
  margin: 0 auto;
  padding: 10px 14px;
  border-radius: 12px;
  text-transform: uppercase;
  font-weight: 800;
  letter-spacing: 0.02em;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: linear-gradient(90deg, #474747d5 0%, #3b3b3d98 100%);
  color: #fff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

/* Сетка формы: 2 колонки, при этом поля тянутся на всю ширину */
#login-modal form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
#login-modal .grp,
#login-modal #mdoErrors,
#login-modal #mdoSmall,
#login-modal #mdoSpinner {
  grid-column: 1 / -1;
}

/* Поля */
#login-modal .grp {
  margin: 0;
}
#login-modal .grp label {
  display: block;
  margin: 4px 0 6px 2px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.72);
}
#login-modal .inp {
  display: flex;
  align-items: center;
  gap: 8px;
}
#login-modal input[type="username"],
#login-modal input[type="password"] {
  width: 100%;
  height: 44px;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.06),
    rgba(255, 255, 255, 0.02)
  );
  color: #fff;
  outline: none;
}
#login-modal input::placeholder {
  color: rgba(255, 255, 255, 0.55);
}
#login-modal input:focus {
  border-color: rgba(59, 234, 253, 0.6);
  box-shadow: 0 0 0 3px rgba(59, 234, 253, 0.15);
}

/* Кнопка-глаз */
#login-modal #mdoToggle.ghost {
  min-width: 42px;
  height: 44px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  cursor: pointer;
}

/* Раскладываем кнопки как на референсе:
   1) «Войти» — на всю ширину
   2) «Создать аккаунт» слева, «Забыли пароль?» справа */
#login-modal .row {
  display: contents;
} /* даём детям участвовать в сетке формы */
#login-modal .links {
  display: contents;
}

#login-modal #mdoSubmit {
  grid-column: 1 / -1;
}
#login-modal #mdoCreate {
  grid-column: 1 / 2;
}
#login-modal #mdoForgot {
  grid-column: 2 / 3;
}

#login-modal .btn {
  height: 44px;
  border-radius: 12px;
  font-weight: 700;
  line-height: 1;
}
#login-modal .btn:not(.ghost) {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #fff;
  justify-content: center;
}
#login-modal .btn.ghost {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #fff;
  justify-content: center;
  text-align: center;
}

/* Ошибки/спиннер */
#login-modal .form-error-summary {
  display: none;
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(255, 68, 68, 0.12);
  border: 1px solid rgba(255, 68, 68, 0.35);
  color: #fff;
}
#login-modal .spinner {
  color: rgba(255, 255, 255, 0.8);
}

/* Адаптив: на очень узких экранах нижние 2 кнопки складываем в столбик */
@media (max-width: 380px) {
  #login-modal form {
    grid-template-columns: 1fr;
  }
  #login-modal #mdoCreate,
  #login-modal #mdoForgot {
    grid-column: 1 / -1;
  }
}

/* Небольшой «отскок» при открытии — как в референсе */
@media (prefers-reduced-motion: no-preference) {
  .mdo.open .mdo__dialog {
    animation: mdoPop 0.22s ease-out;
  }
  @keyframes mdoPop {
    from {
      transform: translateY(10px) scale(0.97);
    }
    to {
      transform: translateY(0) scale(1);
    }
  }
}
/* --- FIX: применять стили ко всем текстовым полям в модалке --- */
#login-modal .inp input,
#login-modal input[type="text"],
#login-modal input[type="password"],
#login-modal input[type="email"],
#login-modal input[type="search"],
#login-modal input:not([type]) {
  /* покрывает <input> без type (логин) */
  width: 100%;
  height: 44px;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.06),
    rgba(255, 255, 255, 0.02)
  );
  color: #fff;
  outline: none;
  box-sizing: border-box;
  appearance: none;
}

/* одно правило на фокус — для любых текстовых полей */
#login-modal .inp input:focus,
#login-modal input[type="text"]:focus,
#login-modal input[type="password"]:focus,
#login-modal input:not([type]):focus {
  border-color: rgba(59, 234, 253, 0.6);
  box-shadow: 0 0 0 3px rgba(59, 234, 253, 0.15);
}

/* автозаполнение браузера, чтобы не желтило фон */
#login-modal .inp input:-webkit-autofill {
  box-shadow: 0 0 0 1000px rgba(255, 255, 255, 0.06) inset;
}

/* кнопка-глаз — держим высоту/радиус как у инпута */
#login-modal #mdoToggle.ghost {
  height: 44px;
  min-width: 44px;
  padding: 0 10px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

/* плейсхолдеры единые */
#login-modal input::placeholder {
  color: rgba(255, 255, 255, 0.55);
}

/* new profile pill */
.profile-btn {
  min-width: auto; /* было width: 44px; */
  height: 41px;
  padding: 0 8px; /* чтобы было место под ник и стрелку */
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: var(--shadow);
  display: inline-flex; /* вместо просто flex — чтобы подстраивалась по контенту */
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: #fff;
  font-size: 13px;
  cursor: pointer;
  transform: translateY(-6px);
  filter: blur(3px);
  animation: enter-up 0.8s 0.65s ease forwards;
  position: relative;
  overflow: hidden;
  gap: 6px; /* промежуток между ником и стрелкой */
  width: auto;
}
.profile-btn .nick {
  display: inline-flex;
  align-items: center;
  max-width: 160px; /* чтобы очень длинный ник не ломал верстку */
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.profile-btn .nick-arrow {
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-left: 4px;
  border-left: 2px solid rgba(255, 255, 255, 0.85);
  border-bottom: 2px solid rgba(255, 255, 255, 0.85);
  transform: rotate(-45deg) translateY(0px); /* маленький уголок, смотрящий вниз */
  opacity: 0.9;
  padding-right: 6px;
}
.profile-btn .nick {
  display: inline-block;
  cursor: pointer;
}
