@font-face {
    font-family: 'Benzin';
    src: local('Benzin Medium'), local('Benzin-Medium'),
         url('/fonts/Benzin/Benzin-Medium.woff2') format('woff2'),
         url('/fonts/Benzin/Benzin-Medium.woff') format('woff'),
         url('/fonts/Benzin/Benzin-Medium.ttf') format('truetype');
    font-weight: 500;
    font-style: normal;
}

:root {
    --bg: #03060f;
    --bg-2: #070b16;
    --bg-3: #0d1424;
    --text: #e8f1fa;
    --text-muted: #8fa3bc;
    --accent: #4aa6ff;
    --accent-hover: #7ec8ff;
    --accent-deep: #1b6fd4;
    --glow: rgba(74, 166, 255, 0.42);
    --border: rgba(126, 200, 255, 0.14);
    --card-bg: rgba(8, 12, 22, 0.88);
    --radius: 32px;
    --radius-sharp: 14px;
}

[data-theme="light"] {
    --bg: #f8f8f8;
    --bg-2: #ffffff;
    --bg-3: #f0f0f0;
    --text: #111111;
    --text-muted: #555555;
    --accent: #2A84D8;
    --accent-hover: #4A9EFF;
    --accent-deep: #1A6BB8;
    --glow: rgba(42, 132, 216, 0.35);
    --border: #e0e0e0;
    --card-bg: #ffffff;
}

*,
*::before,
*::after { box-sizing: border-box; }

body {
    font-family: 'Benzin', system-ui, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;

    background:
      linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px),
      linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px);

    background-size: 80px 80px;

    mask-image: radial-gradient(circle at center, black, transparent 90%);

    pointer-events: none;
    z-index: 0;
}

a { color: inherit; text-decoration: none; }

.wrap {
    width: 100%;
    max-width: 1480px;
    margin: 0 auto;
    padding: 0 28px;
}

.site { display: flex; flex-direction: column; min-height: 100vh; }

.parallax-hero {
    position: relative;
    overflow: hidden;
    margin-top: -180px;
    padding-top: 260px;
}

.hero-cta {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

.parallax-bg {
    position: absolute;

    top: -140px;
    left: 0;
    right: 0;
    bottom: 0;

    background:
        radial-gradient(ellipse 70% 55% at 70% 40%, rgba(74, 158, 255, 0.22), transparent 60%),
        linear-gradient(
            to bottom,
            rgba(0,0,0,.30),
            rgba(0,0,0,.55)
        ),
        url('/img/banner.png')
        center top / cover no-repeat;

    transform: translate3d(0,0,0) scale(1.12);

    will-change: transform;

    z-index: 0;
    pointer-events: none;
}

.effect {
    opacity: 0;
    transform: translateY(16px);
    transition:
      opacity .45s ease,
      transform .45s ease;
}

.effect.visible {
    opacity: 1;
    transform: translateY(0);
}

.parallax-bg::after {
    content: "";
    position: absolute;
    inset: 0;

    background:
      linear-gradient(
        to bottom,
        rgba(0,0,0,.15),
        rgba(0,0,0,.35),
        rgba(0,0,0,.65)
      );
}

@media (prefers-reduced-motion: no-preference) {
    .parallax-hero {
        height: 110vh;
    }
}

.parallax-content {
    position: relative;
    max-width: 1480px;
    margin: 0 auto;
    padding: 0 28px;
    width: 100%;
}

.hero-content {
    max-width: 720px;
    background: rgba(15, 15, 15, 0.75);
    backdrop-filter: blur(8px);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 52px;
    margin-left: 4vw;
    max-width: 760px;
    position: relative;
}

.hero-content::before {
    content: "";

    position: absolute;

    inset: -1px;

    border-radius: inherit;

    background:
      linear-gradient(
        145deg,
        rgba(255,255,255,.08),
        transparent,
        rgba(74,158,255,.22)
      );

    z-index: -1;

    opacity: .8;
}

.site-header {
    position: sticky;
    top: 16px;

    z-index: 1000;

    padding: 8px 0;

    width: 100%;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(10,10,10,.72);
    backdrop-filter: blur(12px);
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 14px 26px;
    box-shadow: none;
    border-bottom: 1px solid rgba(74,158,255,.2);
    min-height: 76px;
}

.brand {
    font-size: 24px;
    font-weight: 900;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    display: flex;
    gap: 6px;
}

.kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;

    color: var(--accent);

    font-size: 13px;
    letter-spacing: 2px;
    text-transform: uppercase;

    margin-bottom: 18px;

    opacity: .9;
}

.kicker::before {
    content: "";
    width: 32px;
    height: 1px;
    background: var(--accent);
}

.brand-red { color: var(--accent); }
.brand-white { color: var(--text); }

.nav-list {
    display: flex;
    align-items: center;
    gap: 10px;

    margin-left: auto;
    margin-right: 24px;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.nav-list a {
    padding: 10px 18px;
    border-radius: 10px;
    color: var(--text-muted);
    font-weight: 700;
    font-size: 15px;
    transition: all 0.2s ease;
}

.nav-list a:hover {
    color: var(--text);
    background: var(--bg-3);
}

.theme-toggle {
    width: 46px;
    height: 46px;
    border-radius: 2px;
    background: var(--bg-3);
    border: 1px solid var(--border);
    color: var(--text);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 16px;
    transition:
      border-color .25s ease,
      transform .25s ease,
      background .25s ease;
}

.theme-toggle:hover {
    border-color: var(--accent);

    color: var(--accent);

    transform: translateY(-2px);
}

.hero {
    padding: 80px 0 100px;
    position: relative;
    z-index: 2;
}

.hero-right {
    position: relative;
    z-index: 3;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 460px;
    gap: 40px;
    align-items: center;
}

.hero-left {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 52px;
}

.hero-title {
    font-size: clamp(54px, 8vw, 59px);
    line-height: .92;
    letter-spacing: -3px;
    text-transform: uppercase;

    background:
      linear-gradient(
        to bottom,
        #ffffff,
        #9d9d9d
      );

    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.section-title p {
    color: var(--text-muted);
    font-size: 15px;
    letter-spacing: .4px;
}

.lead {
    color: #bdbdbd;
    font-size: 18px;
    line-height: 1.9;

    max-width: 620px;

    text-wrap: balance;
}

.btn {
    padding: 14px 32px;
    border-radius: var(--radius);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.noise {
    position: fixed;
    inset: 0;

    opacity: .035;

    pointer-events: none;

    background-image:
      url("https://grainy-gradients.vercel.app/noise.svg");

    z-index: 999;
}

.grid,
.noise,
.vignette {
    z-index: 1;
}

.grid {
    position: fixed;
    inset: 0;

    background-image:
      linear-gradient(rgba(255,255,255,.03) 1px, transparent 1px),
      linear-gradient(90deg, rgba(255,255,255,.03) 1px, transparent 1px);

    background-size: 80px 80px;

    pointer-events: none;
}

.vignette {
    position: fixed;
    inset: 0;

    background:
      radial-gradient(circle at center,
      transparent 35%,
      rgba(0,0,0,.75));

    pointer-events: none;
}

.btn-primary {
    background: var(--accent);
    color: white;
    border: none;
}

.btn-primary:hover {
    background: var(--accent-hover);
    transform: translateY(-4px);
    box-shadow: 0 0 30px rgba(74, 158, 255, 0.6);
}

.btn-primary::after {
    content: "";
    position: absolute;
    top: -50%;
    left: -150%;
    width: 60%;
    height: 300%;
    background: linear-gradient(120deg, transparent, rgba(255,255,255,0.45), transparent);
    transition: 0.75s;
}

.btn-primary:hover::after {
    left: 300%;
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text);
}

.btn-outline:hover {
    border-color: var(--accent);
    color: var(--accent);
    transform: translateY(-3px);
}

.server-card, .news-item, .banner-card, .footer-grid {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
}

.banner-card {
    margin-top: 32px;

    display: flex;
    flex-direction: column;
    gap: 26px;

    padding: 42px;

    position: relative;
    overflow: hidden;

    background:
      linear-gradient(
        145deg,
        rgba(255,255,255,.03),
        rgba(255,255,255,.01)
      );

    border: 1px solid rgba(255,255,255,.06);

    border-radius: var(--radius);

    box-shadow:
      0 20px 60px rgba(0,0,0,.35);

    transition:
      transform .35s ease,
      border-color .35s ease,
      box-shadow .35s ease;
}

.banner-card:hover {
    transform: translateY(-6px);

    border-color: rgba(74,158,255,.25);

    box-shadow:
      0 30px 80px rgba(74,158,255,.12);
}

.banner-card::before {
    content: "";

    position: absolute;
    inset: 0;

    background:
      radial-gradient(
        circle at top right,
        rgba(74,158,255,.16),
        transparent 45%
      );

    pointer-events: none;
}

.server-card {
    padding: 24px;
    min-height: 200px;
    height: auto;
    display: flex;
    flex-direction: column;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    position: relative;
        background: linear-gradient(
        145deg,
        rgba(255,255,255,0.03),
        rgba(255,255,255,0.01)
    );
    backdrop-filter: blur(10px);
    overflow: hidden;
    word-break: break-word;
}

.server-card:hover {
    transform: translateY(-6px) scale(1.01);
    border-color: var(--accent);
    box-shadow: 0 18px 40px rgba(74, 158, 255, 0.18);
}

.server-card::before {
    content: "";
    position: absolute;
    inset: 0;

    background:
      linear-gradient(
        130deg,
        transparent 20%,
        rgba(74,158,255,.12),
        transparent 80%
      );

    opacity: 0;
    transition: .45s;
}

.server-card::after {
    content: "";
    position: absolute;
    inset: 0;

    border-radius: inherit;

    padding: 1px;

    background:
      linear-gradient(
        145deg,
        rgba(255,255,255,.08),
        transparent,
        rgba(74,158,255,.18)
      );

    mask:
      linear-gradient(#fff 0 0) content-box,
      linear-gradient(#fff 0 0);

    -webkit-mask-composite: xor;
            mask-composite: exclude;

    pointer-events: none;
}

.server-card:hover::before {
    opacity: 1;
}

.artcard {
    aspect-ratio: 1 / 1.15;
    border: 1px solid rgba(74, 158, 255, 0.35);
    border-radius: 50px;
    background: #080808;
    overflow: hidden;
    position: relative;
    box-shadow:
      0 0 0 1px rgba(255, 255, 255, 0.04),
      0 0 40px rgba(74, 158, 255, 0.18);
}

.artcard-overlay {
    position: absolute;
    border-radius: 50px;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 22px;
    background:
      linear-gradient(
        to top,
        rgba(0,0,0,.88),
        rgba(0,0,0,.1)
      );
}

.artcard img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.section-title h2 {
    font-size: 28px;
    font-weight: 900;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 8px;
    position: relative;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 0;
    width: 50px;
    height: 3px;
    background: var(--accent);
}

.site-footer {
    margin-top: 140px;
    position: relative;
    overflow: hidden;
        margin-top: 100px;

    position: relative;
}

.site-footer::before {
    content: "";
    position: absolute;
    inset: 0;

    background:
      radial-gradient(
        circle at top center,
        rgba(74,158,255,.12),
        transparent 60%
      );

    pointer-events: none;
}

.footer-grid {
    display: grid;

    grid-template-columns: 1.2fr .8fr 1fr;

    gap: 50px;

    padding: 42px;

    background:
      linear-gradient(
        145deg,
        rgba(255,255,255,.025),
        rgba(255,255,255,.01)
      );

    border: 1px solid rgba(255,255,255,.06);

    border-radius: 36px;

    box-shadow:
      0 20px 60px rgba(0,0,0,.35);

    position: relative;
    overflow: hidden;
}

.footer-grid::before {
    content: "";

    position: absolute;
    inset: 0;

    background:
      radial-gradient(
        circle at bottom right,
        rgba(74,158,255,.12),
        transparent 45%
      );

    pointer-events: none;
}

.footer-left p,
.footer-mid a,
.copyright {
    color: var(--text-muted);
    font-size: 14px;
    line-height: 1.7;
}

.socials {
    display: flex;
    gap: 14px;
    margin-bottom: 20px;
}

.socials a {
    width: 52px;
    height: 52px;

    border-radius: 18px;

    display: flex;
    align-items: center;
    justify-content: center;

    background: rgba(255,255,255,.03);

    border: 1px solid rgba(255,255,255,.06);

    transition:
      transform .25s ease,
      border-color .25s ease,
      background .25s ease;
}

.socials a:hover {
    transform: translateY(-4px);
    border-color: var(--accent);
    background: rgba(74,158,255,.08);
}

.reveal {
    opacity: 0;
    transform: translateY(20px);
    transition:
      opacity .4s ease,
      transform .4s ease;
}

.reveal.section-appear {
    opacity: 1;
    transform: translateY(0);
}

.server-card-inner {
    display: flex;
    flex-direction: column;
    height: 100%;
    gap: 24px;
    min-width: 0;
}

.top-row,
.mid-row,
.bottom-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.name-main {
    font-size: 22px;
    font-weight: 900;
    line-height: 1;
}

.name-sub {
    margin-top: 8px;
    color: var(--text-muted);
    font-size: 13px;
}

.players-count {
    font-size: 26px;
    font-weight: 900;
}

.progress-bg {
    width: 180px;
    border-radius: 999px;
    height: 8px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.06);
    overflow: hidden;
}

.status-capsule {
    display: inline-flex;
    align-items: center;
    gap: 10px;

    padding: 10px 16px;

    border-radius: 999px;

    font-size: 12px;
    font-weight: 800;
    letter-spacing: 1px;
    backdrop-filter: blur(6px);
    border: 1px solid rgba(255,255,255,0.08);
}

.news-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}

@media (max-width: 1100px) {
    .news-list {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 700px) {
    .news-list {
        grid-template-columns: 1fr;
    }
}

.news-item {
    padding: 22px;
    display: flex;
    flex-direction: column;
    gap: 12px;

    transition: all 0.35s ease;
    position: relative;
    overflow: hidden;
}

.news-item:hover {
    transform: translateY(-6px);
    border-color: var(--accent);
    box-shadow: 0 20px 50px rgba(0,0,0,0.4);
}

.news-date {
    font-size: 12px;
    color: var(--accent);
    letter-spacing: 1px;
    text-transform: uppercase;
}

.news-item h3 {
    font-size: 18px;
    margin: 0;
    font-weight: 800;
}

.news-item p {
    color: var(--text-muted);
    font-size: 14px;
    line-height: 1.6;
}

.status-online {
    background: rgba(0,255,120,.12);
    color: #53ff9f;
}

.status-offline {
    background: rgba(74,158,255,.1);
    color: #8FD0FF;
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: currentColor;
}

.progress-fill {
    height: 100%;
    border-radius: inherit;

    background:
      linear-gradient(
        90deg,
        #4A9EFF,
        #7EC8FF
      );

    transition: width .45s ease;
}

.server-card:hover,
.news-item:hover {
    transform: translateY(-6px);
}

.banner-card:hover {
    transform: translateY(-6px);
}

.banner-card h3 {
    font-size: clamp(42px, 7vw, 68px);

    line-height: .9;

    text-transform: uppercase;

    letter-spacing: -2px;

    max-width: 700px;

    margin: 0;
}

.banner-card p {
    max-width: 760px;

    color: var(--text-muted);

    font-size: 17px;

    line-height: 1.85;

    margin: 0;
}

.banner-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;

    margin-top: 6px;
}

@media (max-width: 1000px) {
    .hero-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    .wrap { padding: 0 16px; }
    .hero-title { font-size: 38px; }
    .footer-grid { grid-template-columns: 1fr; text-align: center; gap: 30px; }
}

.bg-orbs, .glass, .glass-accent, .glass-soft, .glass-strong {
    display: none !important;
}

@media (max-width: 900px) {

    .nav-list {
        position: absolute;

        top: calc(100% + 12px);
        left: 0;
        right: 0;

        margin: 0;

        background: rgba(10,10,10,.96);

        backdrop-filter: blur(16px);

        border: 1px solid var(--border);

        border-radius: 24px;

        padding: 18px;

        flex-direction: column;

        opacity: 0;
        visibility: hidden;

        transform: translateY(-10px);

        transition:
          opacity .25s ease,
          transform .25s ease,
          visibility .25s ease;
    }

    .nav-list.open {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    .header-inner {
        position: relative;
    }
}

.mobile-toggle {
    width: 48px;
    height: 48px;

    border: 1px solid var(--border);
    background: var(--bg-3);

    border-radius: 14px;

    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;

    gap: 5px;

    cursor: pointer;

    transition: .25s ease;
}

.mobile-toggle span {
    width: 22px;
    height: 2px;

    background: var(--text);

    border-radius: 999px;

    transition: .3s ease;
}

.mobile-toggle.open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.mobile-toggle.open span:nth-child(2) {
    opacity: 0;
}

.mobile-toggle.open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

.loader {
  position: fixed;
  inset: 0;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 99999;
  transition: opacity .5s ease, visibility .5s ease;
}

.loader-inner {
  width: 280px;
  text-align: center;
}

.loader-logo {
  font-size: 22px;
  font-weight: 900;
  letter-spacing: 2px;
  display: flex;
  justify-content: center;
  gap: 10px;
  text-transform: uppercase;
}

.loader-line {
  width: 80px;
  height: 2px;
  margin: 12px auto 14px;
  background: linear-gradient(90deg, var(--accent), transparent);
  opacity: .8;
}

.loader-sub {
  font-size: 12px;
  color: var(--text-muted);
  letter-spacing: 1px;
  margin-bottom: 18px;
}

.servers-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
    padding-top: 10px;
}

@media (max-width: 900px) {
    .servers-grid {
        grid-template-columns: 1fr;
    }
}

.loader-bar-wrap {
  width: 100%;
  height: 4px;
  background: rgba(255,255,255,0.06);
  border-radius: 999px;
  overflow: hidden;
}

.loader-bar {
  width: 0%;
  height: 100%;
  background: var(--accent);
  transition: width .25s ease;
}

.loader-percent {
  margin-top: 10px;
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: 1px;
}

.loader-brand-red {
  color: var(--accent);
}

.loader-brand-white {
  color: var(--text);
}

.loader.hidden {
  opacity: 0;
  visibility: hidden;
}

@media (max-width: 900px) {
  .mobile-toggle {
    display: flex;
  }

  .nav-list {
    margin-right: 0;
  }
}

@media (max-width: 900px) {
  .parallax-hero {
    height: auto;
    margin-top: -120px;
    padding-top: 160px;
    padding-bottom: 40px;
  }

  .parallax-bg {
    transform: translate3d(0, 0, 0) scale(1.2);
  }

  .hero-content {
    margin-left: 0;
    padding: 40px 32px;
  }

  .hero-grid {
    gap: 28px;
  }

  .hero-right {
    max-width: 420px;
    margin: 0 auto;
    width: 100%;
  }

  .site-footer {
    margin-top: 70px;
  }

  .banner-card {
    padding: 32px 24px;
  }
}

@media (max-width: 900px) and (prefers-reduced-motion: no-preference) {
  .parallax-hero {
    height: auto;
  }
}

@media (max-width: 768px) {
  .wrap {
    padding: 0 16px;
  }

  .header-inner {
    padding: 12px 16px;
    min-height: 64px;
    border-radius: 18px;
  }

  .brand {
    font-size: 19px;
    letter-spacing: 1px;
  }

  .header-actions .profile-btn {
    padding: 10px 16px;
    font-size: 12px;
  }

  .hero-title {
    font-size: clamp(34px, 11vw, 44px);
    letter-spacing: -1px;
    line-height: 1;
  }

  .lead {
    font-size: 15px;
    line-height: 1.7;
  }

  .kicker {
    font-size: 11px;
    letter-spacing: 1.5px;
  }

  .hero-cta {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
  }

  .hero-cta .btn {
    width: 100%;
    padding: 16px 24px;
  }

  .servers.wrap,
  .news.wrap {
    margin-top: 8px;
  }

  .section-title h2 {
    font-size: 23px;
  }

  .artcard,
  .artcard-overlay {
    border-radius: 32px;
  }

  .banner-card h3 {
    font-size: clamp(32px, 10vw, 48px);
    letter-spacing: -1px;
  }

  .banner-card p {
    font-size: 15px;
    line-height: 1.7;
  }

  .banner-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .banner-actions .btn {
    width: 100%;
  }

  .socials {
    justify-content: center;
  }

  .footer-mid ul {
    padding: 0;
    list-style: none;
  }

  .players-count {
    font-size: 22px;
  }

  .name-main {
    font-size: 19px;
  }

  .progress-bg {
    width: 120px;
  }
}

@media (max-width: 420px) {
  .hero-content {
    padding: 28px 20px;
  }

  .hero-title {
    font-size: clamp(28px, 12vw, 36px);
  }

  .header-actions .profile-btn {
    padding: 9px 12px;
    font-size: 11px;
  }

  .banner-card {
    padding: 24px 18px;
  }

  .server-card .top-row,
  .server-card .mid-row,
  .server-card .bottom-row {
    flex-wrap: wrap;
    gap: 10px;
  }

  .progress-bg {
    width: 100%;
  }
}

@media (hover: none) {
  .server-card:hover,
  .news-item:hover,
  .banner-card:hover,
  .btn-primary:hover,
  .btn-outline:hover,
  .socials a:hover {
    transform: none;
  }
}

@supports (padding: max(0px)) {
  @media (max-width: 768px) {
    .wrap {
      padding-left: max(16px, env(safe-area-inset-left));
      padding-right: max(16px, env(safe-area-inset-right));
    }
  }
}

/* Light sitewide motion */
@media (prefers-reduced-motion: reduce) {
  .effect, .reveal, .reveal-soft,
  .server-card, .news-item, .lb-chip, .adm-tab, .profile-tab {
    transition: none !important;
    animation: none !important;
    transform: none !important;
    filter: none !important;
    opacity: 1 !important;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .server-card, .news-item, .clan1-member, .shop-card, .lb-row {
    transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
  }
  .lb-chip, .adm-tab, .profile-tab, .bp-tier-tab {
    transition: color .2s ease, background .2s ease, border-color .2s ease;
  }
  .reveal-soft {
    animation: soft-in .4s ease both;
  }
}

@keyframes soft-in {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: none; }
}

/* —— Nav: primary + «Ещё» —— */
.nav-more {
  position: relative;
}

.nav-more-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 18px;
  border-radius: 10px;
  color: var(--text-muted);
  font-weight: 700;
  font-size: 15px;
  font-family: inherit;
  background: transparent;
  border: 0;
  cursor: pointer;
  transition: color 0.2s ease, background 0.2s ease;
}

.nav-more-btn:hover,
.nav-more.open .nav-more-btn,
.nav-more.is-active .nav-more-btn {
  color: var(--text);
  background: var(--bg-3);
}

.nav-more-caret {
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid currentColor;
  opacity: 0.7;
  transition: transform 0.2s ease;
}

.nav-more.open .nav-more-caret {
  transform: rotate(180deg);
}

.nav-more-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 190px;
  padding: 8px;
  border-radius: 14px;
  background: rgba(12, 12, 14, 0.96);
  border: 1px solid var(--border);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(14px);
  z-index: 1200;
  display: flex;
  flex-direction: column;
  gap: 2px;
  animation: soft-in 0.22s ease both;
}

.nav-more-menu[hidden] {
  display: none !important;
}

.nav-more-menu a {
  padding: 10px 14px !important;
  border-radius: 10px !important;
  white-space: nowrap;
}

.profile-btn.is-authed {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  max-width: 200px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.profile-btn.has-avatar img {
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

/* —— Homepage Battle Pass —— */
.home-bp {
  margin-top: 48px;
  margin-bottom: 36px;
}

.home-bp-card {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1.4fr 0.6fr;
  gap: 24px;
  align-items: center;
  padding: 36px 40px;
  border-radius: 28px;
  border: 1px solid rgba(74, 158, 255, 0.22);
  background:
    linear-gradient(135deg, rgba(40, 8, 8, 0.92), rgba(14, 14, 18, 0.94)),
    radial-gradient(800px 280px at 90% 10%, rgba(74, 158, 255, 0.18), transparent 60%);
}

.home-bp-glow {
  position: absolute;
  inset: -40% -20% auto auto;
  width: 55%;
  height: 120%;
  background: radial-gradient(circle, rgba(255, 50, 50, 0.16), transparent 70%);
  pointer-events: none;
}

.home-bp-copy {
  position: relative;
  z-index: 1;
}

.home-bp-copy h2 {
  margin: 0 0 10px;
  font-size: clamp(28px, 3.4vw, 40px);
  letter-spacing: 0.02em;
}

.home-bp-copy p {
  margin: 0 0 18px;
  color: var(--text-muted);
  max-width: 46ch;
  line-height: 1.55;
}

.home-bp-meta {
  margin-bottom: 18px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 180, 180, 0.85);
}

.home-bp-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.home-bp-side {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
}

.home-bp-badge {
  font-size: 56px;
  font-weight: 900;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.92);
  text-shadow: 0 0 40px rgba(74, 158, 255, 0.35);
  line-height: 1;
}

.home-bp-levels {
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(0, 0, 0, 0.25);
}

/* —— Reveal on scroll —— */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.reveal.is-visible,
.js-ready .parallax-hero .effect {
  opacity: 1;
  transform: none;
}

.section-title,
.servers-grid .server-card,
.news-item,
.shop-card,
.clan-card,
.lb-row {
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.servers-grid .server-card:hover,
.shop-card:hover,
.news-item:hover {
  transform: translateY(-3px);
}

html {
  scroll-behavior: smooth;
}

@media (max-width: 900px) {
  .home-bp-card {
    grid-template-columns: 1fr;
    padding: 28px 22px;
  }
  .home-bp-side {
    align-items: flex-start;
    flex-direction: row;
    gap: 14px;
  }
  .home-bp-badge {
    font-size: 36px;
  }
  .nav-more-menu {
    position: static;
    min-width: 0;
    width: 100%;
    margin-top: 6px;
    box-shadow: none;
    animation: none;
  }
  .nav-more-btn {
    width: 100%;
    justify-content: space-between;
  }
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  html { scroll-behavior: auto; }
}

/* —— Polish: news block, copy buttons, card actions —— */
.news-wrapper {
  position: relative;
  display: flex;
  flex-direction: column;
}

.news-list {
  position: relative;
  z-index: 1;
}

.news-fade {
  display: none;
  pointer-events: none;
  height: 72px;
  margin-top: -72px;
  position: relative;
  z-index: 2;
  background: linear-gradient(
    to bottom,
    rgba(10, 10, 12, 0),
    rgba(10, 10, 12, 0.92) 70%,
    var(--bg, #0a0a0c)
  );
}

.news-wrapper.is-collapsed.has-more .news-fade {
  display: block;
}

.news-toggle-wrap {
  display: flex;
  justify-content: center;
  margin-top: 28px;
  padding-top: 4px;
  position: relative;
  z-index: 3;
}

.news-wrapper.is-collapsed.has-more .news-toggle-wrap {
  margin-top: 8px;
}

.news-toggle-wrap[hidden] {
  display: none !important;
}

.news-wrapper + .banner-card,
.news-toggle-wrap + .banner-card {
  margin-top: 48px;
}

.news-item .news-body {
  flex: 1 1 auto;
}

.news-item .copy-news {
  margin-top: auto;
  align-self: flex-start;
}

.copy-news,
.newbie-copy,
.server-card .copy-ip,
button.copy-ip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 18px;
  border-radius: var(--radius, 12px);
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text);
  font-family: inherit;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  line-height: 1.2;
  transition:
    border-color 0.2s ease,
    color 0.2s ease,
    background 0.2s ease,
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.copy-news:hover,
.newbie-copy:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-1px);
}

.copy-news.is-copied,
.newbie-copy.is-copied,
.copy-ip.is-copied,
.copy-ip.copied {
  border-color: rgba(29, 158, 117, 0.55);
  color: #53ff9f;
  background: rgba(29, 158, 117, 0.12);
}

.server-card .copy-ip,
button.copy-ip {
  padding: 11px 16px;
  border: none;
  background: var(--accent);
  color: #fff !important;
  box-shadow: 0 8px 22px rgba(74, 158, 255, 0.22);
  white-space: nowrap;
}

.server-card .copy-ip:hover,
button.copy-ip:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
  color: #fff !important;
}

.server-card .copy-ip.is-copied,
.server-card .copy-ip.copied,
button.copy-ip.is-copied,
button.copy-ip.copied {
  background: #1d9e75;
  box-shadow: 0 8px 22px rgba(29, 158, 117, 0.28);
  color: #fff !important;
  border: none;
}

.server-card .action-block {
  flex-shrink: 0;
  min-width: 0;
}

.server-card .bottom-row {
  gap: 12px;
  flex-wrap: wrap;
}

.server-card .progress-wrap {
  flex: 1 1 120px;
  min-width: 100px;
}

.newbie-copy.btn {
  padding: 8px 14px;
  font-size: 11px;
  border-radius: 100px;
  box-shadow: none;
  text-transform: none;
  letter-spacing: 0.02em;
  font-weight: 700;
}

@media (max-width: 700px) {
  .news-toggle-wrap {
    margin-top: 22px;
  }
  .news-wrapper + .banner-card,
  .news-toggle-wrap + .banner-card {
    margin-top: 36px;
  }
  .server-card .copy-ip,
  button.copy-ip {
    width: 100%;
  }
  .server-card .action-block {
    flex-basis: 100%;
  }
}
