: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);
  --cell: 46px;
  --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);
}
* {
  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;
  overflow: hidden;
  letter-spacing: 0.2px;
}

/* ===== BG ===== */
.bg video {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: contrast(1.05) brightness(0.68) saturate(1.25);
  z-index: -4;
}
.bg .vignette {
  position: fixed;
  inset: -10%;
  pointer-events: none;
  z-index: -2;
  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%
    ),
    linear-gradient(180deg, rgba(0, 0, 0, 0.45), rgba(0, 0, 0, 0.9));
  mix-blend-mode: screen;
  filter: saturate(1.08) blur(0.2px);
}
.bg .grid {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -3;
  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: -1;
  pointer-events: none;
}

/* ===== 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: 30;
  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 ===== */
.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;
  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 / TITLE NEW ===== */
.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;
}
.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;
}
@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);
  }
}
.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);
  }
}

/* ===== TOP NAV SHORT ===== */
.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: linear-gradient(
    135deg,
    rgba(0, 234, 255, 0.12),
    rgba(255, 0, 122, 0.12)
  );
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.35), 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(255, 255, 255, 0.06);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.35);
}
.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);
}

/* ===== USER / LANG / BALANCE PANEL ===== */
.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: auto;
  height: 41px;
  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)
  );
}

/* ===== HERO BOTTOM CALL TO ACTION ===== */
.hero {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 999;
}
.copy {
  position: fixed;
  right: 50%;
  transform: translateX(50%);
  top: 79.7%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  text-align: center;
  pointer-events: auto;
  border-radius: 18px;
  padding: 16px 18px 20px;
}
.copy::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;

  pointer-events: none;
}
.tag {
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 12px;
  color: #b8c9ff;
  background: linear-gradient(
    90deg,
    rgba(0, 234, 255, 0.14),
    rgba(255, 0, 122, 0.14)
  );
  padding: 8px 14px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(8px);
  opacity: 0;
  transform: translateY(8px);
  filter: blur(6px);
  animation: enter-up 0.8s 0.7s ease forwards;
}
.headline {
  font-size: 22px;
  font-weight: 800;
  color: #eaf3ff;
  text-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
  opacity: 0;
  transform: translateY(8px);
  filter: blur(6px);
  animation: enter-up 0.8s 0.85s ease forwards;
  max-width: 90vw;
}
.actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
  opacity: 0;
  transform: translateY(8px);
  filter: blur(6px);
  animation: enter-up 0.8s 1s ease forwards;
}

.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);
  }
}

/* ===== INFO PANEL ===== */
.info {
  position: fixed;
  left: 26px;
  top: 96px;
  width: 560px;
  max-width: 46vw;
  border-radius: var(--radius-xl);
  padding: 16px;
  background: var(--panel-bg);
  border: 1px solid var(--panel-border);
  backdrop-filter: blur(10px);
  box-shadow: 0 20px 80px rgba(0, 0, 0, 0.45);
  transform: translateY(12px) scale(0.98);
  opacity: 0;
  filter: blur(10px);
  animation: enter-card 0.9s 0.45s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
  transition: transform 0.55s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 0.35s ease,
    filter 0.35s ease;
}
.info.collapsed {
  transform: translateX(calc(-100% + 34px)) translateY(12px) scale(0.98);
  opacity: 0.98;
  filter: blur(0);
}
.info .info-tab {
  position: absolute;
  top: 50%;
  right: -18px;
  transform: translateY(-50%);
  width: 36px;
  height: 66px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  cursor: pointer;
  background: linear-gradient(
    135deg,
    rgba(0, 234, 255, 0.14),
    rgba(255, 0, 122, 0.14)
  );
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(8px);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.35);
  transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1),
    box-shadow 0.25s ease;
  z-index: 2;
}
.info .info-tab svg {
  width: 18px;
  height: 18px;
  transition: transform 0.45s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.info .info-tab:hover {
  transform: translateY(calc(-50% - 1px)) translateX(2px);
  box-shadow: 0 0 0 4px rgba(0, 234, 255, 0.28), 0 10px 28px rgba(0, 0, 0, 0.35);
}
.info.collapsed .info-tab svg {
  transform: rotate(180deg);
}
.info .info-tab {
  animation: tab-peek 2.2s 2.2s ease both;
}
@keyframes tab-peek {
  0% {
    transform: translateY(-50%);
  }
  40% {
    transform: translateY(calc(-50% - 2px)) translateX(2px);
  }
  100% {
    transform: translateY(-50%);
  }
}
.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;
}
.rates {
  background: var(--panel-inner);
  border: 1px solid var(--panel-border);
  border-radius: var(--radius-lg);
  padding: 14px 16px;
  margin-bottom: 12px;
  animation: card-pop 0.6s 0.9s ease both;
  transform-origin: left top;
  transition: max-height 0.45s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 0.3s ease,
    filter 0.3s ease, transform 0.45s cubic-bezier(0.2, 0.8, 0.2, 1);
  max-height: 500px;
  overflow: hidden;
}
.rates.hidden-block {
  max-height: 0;
  opacity: 0;
  filter: blur(8px);
  transform: scale(0.96) translateX(-6px);
  pointer-events: none;
}
.h {
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #b8c9ff;
  font-size: 14px;
  margin-bottom: 8px;
}
.rates ul {
  margin: 0;
  padding-left: 16px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px 20px;
  font-weight: 700;
}

.gear {
  background: var(--panel-inner);
  border: 1px solid var(--panel-border);
  border-radius: var(--radius-lg);
  padding: 16px;
  animation: card-pop 0.6s 1s ease both;
  transform-origin: left top;
  transition: max-height 0.45s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 0.3s ease,
    filter 0.3s ease, transform 0.45s cubic-bezier(0.2, 0.8, 0.2, 1);
  max-height: 900px;
  overflow: hidden;
}
.gear.hidden-block {
  max-height: 0;
  opacity: 0;
  filter: blur(8px);
  transform: scale(0.96) translateX(-6px);
  pointer-events: none;
}
.gear .h {
  color: #7dffa7;
}
.g-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px;
  margin-top: 8px;
}
.g {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  padding: 12px;
}
.g2 {
  width: 100%;
}
.ttl {
  color: #e9ffe9;
  font-weight: 900;
  letter-spacing: 0.04em;
  margin-bottom: 10px;
  font-size: 13px;
}
.grid-gear {
  display: grid;
  grid-template-columns: repeat(6, var(--cell));
  gap: 6px;
}
.grid-gear.two {
  grid-template-columns: repeat(2, var(--cell));
}
.cell {
  width: var(--cell);
  height: var(--cell);
  border-radius: 8px;
  border: 1px solid rgba(143, 209, 255, 0.35);
  background: radial-gradient(
    120% 120% at 30% 30%,
    rgba(0, 234, 255, 0.18),
    rgba(0, 0, 0, 0.2)
  );
  box-shadow: inset 0 0 16px rgba(143, 209, 255, 0.22),
    0 8px 18px rgba(0, 0, 0, 0.35);
  transform: scale(0.9);
  opacity: 0;
  animation: tile-in 0.55s ease both;
}
.cell:hover {
  transform: scale(1);
  box-shadow: inset 0 0 22px rgba(143, 209, 255, 0.35),
    0 10px 22px rgba(0, 0, 0, 0.45);
}

/* ===== STATS ===== */
.stats {
  position: fixed;
  top: 99px;
  right: 26px;
  display: flex;
  gap: 18px;
  padding: 14px 18px;
  border-radius: 18px;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.06),
    rgba(255, 255, 255, 0.02)
  );
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  pointer-events: auto;
  transform: translateY(12px);
  opacity: 0;
  filter: blur(8px);
  animation: enter-card 0.9s 0.6s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}
.stats .item {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #eaf3ff;
  font-weight: 700;
}
.stats .item small {
  display: block;
  font-size: 12px;
  color: var(--muted);
  font-weight: 600;
}
.dot {
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: linear-gradient(135deg, var(--lime), var(--cyan));
  box-shadow: 0 0 16px rgba(193, 255, 0, 0.6);
}

/* ===== FOOTER (BOTTOM AREA LEFT/RIGHT MERGE) ===== */
.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 ===== */
.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);
}
.toast.show {
  opacity: 1;
  transform: translateY(0);
}

/* ===== KEYFRAMES ===== */
@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;
  }
}

@media (max-width: 1900px) {
  :root {
    --cell: 36px;
  }
}
@media (min-width: 1901px) {
  .grid-gear.two {
    grid-template-columns: repeat(3, var(--cell));
  }
}
@media (max-width: 1900px) {
  .grid-gear.two {
    grid-template-columns: repeat(4, var(--cell));
  }
}

@media (max-width: 1500px) {
  :root {
    --cell: 28px;
  }
  .grid-gear {
    gap: 4px;
    grid-template-columns: repeat(8, var(--cell));
  }
  .grid-gear.two {
    grid-template-columns: repeat(3, var(--cell));
  }
  .copy {
    top: unset;
    bottom: 18px;
  }
  .legal-wrap {
    font-size: 10px;
  }
  .actions {
    gap: 4px;
  }
}
@media (max-width: 1200px) {
  :root {
    --cell: 20px;
  }
  .cell {
    border-radius: 4px;
  }
  .grid-gear {
    gap: 2px;
  }
  .rates ul {
    font-size: 13px;
  }
  .copy {
    top: unset;
    width: 90%;
    bottom: 99px;
    padding: 0px;
  }
  .grid-gear {
    grid-template-columns: repeat(7, var(--cell));
  }
  .main-nav {
    display: none;
  }
  .info {
    padding: 0;
  }
}
@media (max-width: 920px) {
  .info {
    width: calc(100% - 32px);
    left: 16px;
    right: 16px;
    max-width: none;
  }
  :root {
    --cell: 24px;
  }
  .grid-gear {
    grid-template-columns: repeat(20, var(--cell));
  }

  .grid-gear.two {
    grid-template-columns: repeat(6, var(--cell));
  }
  .copy {
    position: fixed;
    right: 50%;
    transform: translateX(50%);
    top: 62.7%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    width: 80%;
    text-align: center;
    pointer-events: auto;
    border-radius: 18px;
    padding: 16px 18px 20px;
  }
  .main-nav {
    display: none;
  }
  .top-link {
    --mxpx: 50%;
    --mypx: 50%;
    min-width: max-content;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    line-height: 1.2;
    font-weight: 800;
    text-decoration: none;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 8px 10px;
    border-radius: 8px;
  }
  #navDownload {
    order: 1;
  }
}
@media (max-width: 920px) {
  .grid-gear {
    grid-template-columns: repeat(18, var(--cell));
  }

  .grid-gear.two {
    grid-template-columns: repeat(4, var(--cell));
  }
  :root {
    --cell: 20px;
  }
  .footer-left {
    pointer-events: auto;
    align-items: center;
    gap: 12px 16px;
    display: inline;
    /* margin-top: 40px; */
  }
  .footer-right {
    pointer-events: auto;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
    min-width: 0;
    position: absolute;
    right: 1px;
    bottom: 1px;
  }
  .top-left {
    gap: 0px;
  }

  .topbar {
    gap: 0px 0px;
  }
  .stats {
    right: 18px;
    padding: 8px 10px;
  }
}

@media (max-width: 920px) {
  .headline {
    font-size: 18px;
  }
  .copy {
    width: 95%;
    top: 68%;
  }
  .ttl {
    font-size: 12px;
  }
  .gear {
    padding: 0;
  }
  .h {
    margin-left: 10px;
  }
}

.cell {
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}

.info {
  display: flex;
  flex-direction: column;
  max-height: calc(100vh - 140px);
}
.rates {
  flex: 0 0 auto;
}
.gear {
  flex: 1 1 auto;
  max-height: none;
  overflow: auto;
  overscroll-behavior: contain;
  overflow-x: hidden;
  overflow-y: hidden;
}

.grid-gear.compact {
  --cell: 24px;
}
.grid-gear {
  grid-template-columns: repeat(5, var(--cell));
}
.g-row {
  gap: 10px;
}
@media (max-width: 1900px) {
  .grid-gear.compact {
    --cell: 22px;
  }
}
@media (max-width: 1500px) {
  .grid-gear.compact {
    --cell: 20px;
  }
}
@media (max-width: 1200px) {
  .grid-gear.compact {
    --cell: 18px;
  }
}
@media (max-width: 920px) {
  .info {
    max-height: none;
  }
  .gear {
    overflow: visible;
  }
  .grid-gear.compact {
    --cell: 22px;
  }
}
@media (max-width: 700px) {
  .info {
    max-height: none;
  }
  .gear {
    overflow: visible;
  }
  .grid-gear.compact {
    --cell: 22px;
  }
}
body {
  overflow-y: hidden;
}
.bg,
.bg *,
.fx {
  pointer-events: none;
}
.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;
}
/* ===== LOGIN MODAL — PIXEL MATCH ===== */

/* Контейнер и анимация */
.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; /* промежуток между ником и стрелкой */
}
.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;
}

/* === MOBILE ≤700px ONLY — safe overrides === */
@media (max-width: 700px) {
  html,
  body {
    height: auto;
  }
  body {
    overflow-y: auto; /* можно скроллить страницу */
    -webkit-overflow-scrolling: touch;
  }

  /* фоны/эффекты: потише на телефонах */
  .fx,
  .bg .grid {
    display: none;
  } /* убираем канвас и сетку-свет */
  .bg video {
    filter: contrast(1.02) brightness(0.6) saturate(1.1);
  }

  /* шапка остаётся сверху, но не фикс на весь экран */
  .topbar {
    position: sticky;
    top: 0;
    padding: 12px 14px;
    gap: 10px 12px;
    z-index: 40;
    backdrop-filter: blur(8px);
  }
  .brand-block {
    margin-left: 8px;
  }
  .game-name {
    font-size: 18px;
    letter-spacing: 2px;
  }

  /* центрированные большие кнопки в хедере скрыты уже на 920, оставим так */
  .main-nav {
    display: none !important;
  }

  /* hero: переводим из fixed в обычный поток */
  .hero {
    position: static;
  }
  .copy {
    position: static;
    width: calc(100% - 24px);
    margin: 14px auto 8px; /* отступ под шапкой */
    padding: 12px 12px 14px;
    border-radius: 16px;
    background: linear-gradient(
      135deg,
      rgba(255, 255, 255, 0.06),
      rgba(255, 255, 255, 0.02)
    );
    backdrop-filter: blur(8px);
  }
  .tag {
    font-size: 11px;
    padding: 6px 10px;
  }
  .headline {
    font-size: 17px;
    max-width: 100%;
  }

  .actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
    width: 100%;
    justify-content: stretch;
  }
  .actions .btn {
    width: 100%;
    padding: 12px 14px;
    justify-content: center;
    min-height: 44px; /* комфортный тач-таргет */
  }
  #downloadBtn {
    min-width: 0;
    order: 3;
  }

  /* левый сайдбар-инфо: тоже в поток, компактнее */
  .info {
    position: static;
    left: auto;
    top: auto;
    right: auto;
    width: calc(100% - 24px);
    margin: 8px auto 12px;
    padding: 12px;
    transform: none;
    opacity: 1;
    filter: none;
  }
  .info .info-tab {
    display: none;
  } /* прячем «язычок» сворачивания на мобиле */

  .rates {
    padding: 12px;
    margin-bottom: 10px;
  }
  .h {
    font-size: 13px;
    margin: 0 0 6px 0;
  }
  .rates ul {
    gap: 6px;
    font-size: 13px;
    padding-left: 16px;
  }

  /* экипировка: одна колонка, сетки помельче */
  .g-row {
    grid-template-columns: 1fr;
    gap: 12px;
    margin-top: 10px;
  }
  .g {
    padding: 10px;
  }
  .g2 {
    width: 100%;
  }
  .ttl {
    font-size: 12px;
    margin-bottom: 8px;
  }

  :root {
    --cell: 22px;
  } /* компактные ячейки */
  .grid-gear {
    grid-template-columns: repeat(8, var(--cell));
    gap: 4px;
  }
  .grid-gear.two {
    grid-template-columns: repeat(4, var(--cell));
  }
  .cell {
    transform: scale(0.94);
  } /* чуть меньше вспухание плиток */

  /* статистика: под инфо-блоком, не fixed */
  .stats {
    position: static;
    width: calc(100% - 24px);
    margin: 6px auto 8px;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px 14px;
    padding: 10px 12px;
  }
  .stats .item {
    font-size: 13px;
  }
  .stats .item small {
    font-size: 11px;
  }

  /* подвал: в поток, на всю ширину */
  .footer-bar {
    position: static;
    left: auto;
    right: auto;
    bottom: auto;
    width: calc(100% - 24px);
    margin: 8px auto 16px;
    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;
    display: ruby;
  }
  .note-mini {
    max-width: 100%;
    text-align: left;
  }

  /* язык/профиль: остаются в шапке, тач-зоны комфортные */
  .lang-btn,
  .profile-btn {
    transform: none;
    filter: none;
  }
  .lang-menu {
    top: 44px;
  }

  /* тост: к низу и по центру, чтобы не перекрывал шапку */
  .toast {
    top: auto;
    bottom: 78px;
    right: auto;
    left: 50%;
    transform: translateX(-50%);
    max-width: calc(100% - 32px);
    text-align: center;
  }
}
/* === MOBILE ≤700px — edge-to-edge === */
@media (max-width: 700px) {
  /* скролл как был */
  html,
  body {
    height: auto;
  }
  body {
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  /* эффекты потише */
  .fx,
  .bg .grid {
    display: none;
  }

  /* хедер остаётся пристыкованным */
  .topbar {
    position: sticky;
    top: 0;
    padding: 12px 14px;
  }

  /* hero в поток и НА ВСЮ ШИРИНУ */
  .hero {
    position: static;
  }
  .copy {
    position: static;
    width: 100% !important; /* было calc(100% - 24px) */
    margin: 12px 0 8px 0 !important; /* убираем авто-центровку */
    padding: 12px 12px 14px;
    border-radius: 0; /* визуально без просветов по краям */
    background: linear-gradient(
      135deg,
      rgba(255, 255, 255, 0.06),
      rgba(255, 255, 255, 0.02)
    );
  }
  .tag {
    font-size: 11px;
    padding: 6px 10px;
  }
  .headline {
    font-size: 17px;
    max-width: none;
  }

  .actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
    width: 100%;
  }
  .actions .btn {
    width: 100%;
    min-height: 44px;
    justify-content: center;
  }
  #downloadBtn {
    min-width: 0;
    order: 3;
  }

  /* инфо-панель — тоже во всю ширину */
  .info {
    position: static;
    width: 100% !important;
    margin: 8px 0 12px 0 !important;
    padding: 12px;
    border-radius: 0;
    transform: none;
    opacity: 1;
    filter: none;
  }
  .info .info-tab {
    display: none;
  }

  .rates {
    padding: 12px;
    margin-bottom: 10px;
  }
  .rates ul {
    gap: 6px;
  }

  /* экипировка компактнее */
  .g-row {
    grid-template-columns: 1fr;
    gap: 10px;
    margin-top: 10px;
  }
  .g {
    padding: 10px;
  }
  .g2 {
    width: 100%;
  }
  :root {
    --cell: 22px;
  }
  .grid-gear {
    grid-template-columns: repeat(14, var(--cell));
    gap: 4px;
  }
  .grid-gear.two {
    grid-template-columns: repeat(8, var(--cell));
  }
  .cell {
    transform: scale(0.94);
  }

  /* статистика — на всю ширину */
  .stats {
    position: static;
    width: 100% !important;
    margin: 6px 0 8px 0 !important;
    padding: 10px 12px;
    border-radius: 0;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px 14px;
  }

  /* подвал — на всю ширину */
  .footer-bar {
    position: static;
    width: 100% !important;
    margin: 8px 0 16px 0 !important;
    gap: 12px 14px;
  }
  .footer-right {
    align-items: flex-start;
    position: static;
    display: ruby;
  }
  .note-mini {
    max-width: 100%;
    text-align: left;
  }

  /* язык/профиль без “подпрыгивания” при анимации */
  .lang-btn,
  .profile-btn {
    transform: none;
    filter: none;
  }

  /* тост по центру, не мешает */
  .toast {
    top: auto;
    bottom: 78px;
    left: 50%;
    right: auto;
    transform: translateX(-50%);
    max-width: calc(100% - 24px);
    text-align: center;
  }
}
/* === FINAL MOBILE EDGE-TO-EDGE (≤700px) === */
@media (max-width: 700px) {
  .hero {
    position: static;
  }
  .copy,
  .info,
  .stats,
  .footer-bar {
    position: static !important;
    width: 100vw !important;
    max-width: 100vw !important;
    margin: 0 !important;
    left: 0 !important;
    right: 0 !important;
    border-radius: 0 !important;
  }
}
/* ===== FINAL EDGE-TO-EDGE ≤700px ===== */
@media (max-width: 700px) {
  .info,
  .stats,
  .footer-bar,
  .topbar,
  .copy {
    width: 100% !important;
    max-width: none !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    left: auto !important;
    right: auto !important;
    border-radius: 0 !important;
  }

  .copy {
    padding: 16px 12px 20px !important;
  }
}
@media (max-width: 700px) {
  /* убираем «гаттеры» из блока ≤920px */
  .info,
  .stats,
  .footer-bar,
  .topbar,
  .copy {
    width: 100% !important;
    max-width: none !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    left: auto !important;
    right: auto !important;
    border-radius: 0 !important;
  }

  /* .copy под мобильник — на всю ширину + небольшой внутренний отступ */
  .copy {
    padding-left: 12px !important;
    padding-right: 12px !important;
    transform: unset;
  }

  /* на всякий случай — чтобы 100vw не вызывал горизонтальный скролл */
  html,
  body {
    overflow-x: hidden !important;
  }
  .h {
    margin-left: 10px !important;
  }
  .visitor_bottom {
    margin-top: -24px;
    position: relative;
  }
}

@media (max-width: 500px) {
  .rates ul {
    grid-template-columns: 1fr;
  }
  .grid-gear {
    grid-template-columns: repeat(10, var(--cell));
    gap: 4px;
  }
  .grid-gear.two {
    grid-template-columns: repeat(5, var(--cell));
  }
}
@media (max-height: 800px) and (min-width: 1080px) and (max-width: 1500px) {
  .rates {
    margin-bottom: 1px;
  }
  .info {
    top: 80px;
    padding: 0px;
    width: 540px;
  }
  .grid-gear.two {
    grid-template-columns: repeat(5, var(--cell));
  }
  .grid-gear {
    grid-template-columns: repeat(8, var(--cell));
  }
  .g-row {
    grid-template-columns: 1fr 1fr;
  }
  .rates ul {
    margin: 0;
    padding-left: 16px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1px 0px;
    font-weight: 600;
  }
}

@media (min-height: 700px) and (max-height: 960px) {
  .info {
    top: 82px;
    padding: 8px;
    scale: 0.99;
  }
  .gear {
    padding: 10px;
  }
  .rates {
    padding: 6px 16px;
  }
}
