/* ==============================
   Minestates — Redesign (vNext)
   ============================== */

:root{
  --bg: #070A12;
  --bg2:#0B1020;
  --surface: rgba(255,255,255,.06);
  --surface2: rgba(255,255,255,.09);
  --stroke: rgba(255,255,255,.12);

  --text: rgba(255,255,255,.92);
  --muted: rgba(255,255,255,.70);
  --soft: rgba(255,255,255,.55);

  --accent: #8B5CF6;   /* purple */
  --accent2:#22D3EE;   /* cyan */
  --good: #4ADE80;
  --bad: #FB7185;

  --shadow: 0 24px 60px rgba(0,0,0,.55);
  --shadow-soft: 0 14px 30px rgba(0,0,0,.35);

  --radius: 18px;
  --radius-sm: 12px;

  --container: 1180px;

  color-scheme: dark;
}

:root[data-theme="light"]{
  --bg: #f6f8ff;
  --bg2:#e9eefc;
  --surface: rgba(255,255,255,.92);
  --surface2: #ffffff;
  --stroke: rgba(15,23,42,.12);

  --text: #0f172a;
  --muted: #334155;
  --soft: #475569;

  --accent: #7c3aed;
  --accent2:#0ea5e9;
  --good: #16a34a;
  --bad: #dc2626;

  --shadow: 0 18px 40px rgba(15,23,42,.12);
  --shadow-soft: 0 12px 24px rgba(15,23,42,.08);

  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body{
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, "Noto Sans", "Helvetica Neue", sans-serif;
  line-height: 1.55;
  color: var(--text);
  background: radial-gradient(1200px 900px at 20% 10%, rgba(139,92,246,.20), transparent 60%),
              radial-gradient(900px 700px at 80% 20%, rgba(34,211,238,.14), transparent 55%),
              linear-gradient(180deg, var(--bg), var(--bg2));
  min-height: 100vh;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
}

img{ max-width: 100%; display:block; }
a{ color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }

.container{
  width: min(var(--container), calc(100% - 40px));
  margin: 0 auto;
}

/* Decorative background */
.bg{
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}
.bg__blob{
  position: absolute;
  filter: blur(50px);
  opacity: .75;
  transform: translateZ(0);
}
.bg__blob--a{
  width: 520px; height: 520px;
  left: -140px; top: 60px;
  background: radial-gradient(circle at 30% 30%, rgba(139,92,246,.7), transparent 60%);
}
.bg__blob--b{
  width: 540px; height: 540px;
  right: -200px; top: 220px;
  background: radial-gradient(circle at 40% 30%, rgba(34,211,238,.55), transparent 62%);
}
.bg__grid{
  position: absolute;
  inset: 0;
  opacity: .35;
  background:
    linear-gradient(rgba(255,255,255,.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.08) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(600px 420px at 50% 0%, black, transparent 75%);
}

/* Topbar */
.topbar{
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 30;
  background: rgba(8,10,18,.72);
  border-bottom: 1px solid rgba(255,255,255,.08);
  backdrop-filter: blur(10px);
}
.topbar__wrap{
  height: 68px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 14px;
}
.topbar__actions{
  display:flex;
  align-items:center;
  gap: 12px;
  margin-left: auto;
}
.logo{
  display:flex;
  align-items:center;
  gap: 10px;
  font-weight: 800;
  letter-spacing: .2px;
}
.logo__mark{
  width: 28px; height: 28px;
  border-radius: 10px;
  display:grid; place-items:center;
  background: linear-gradient(135deg, rgba(139,92,246,.85), rgba(34,211,238,.55));
  box-shadow: 0 10px 26px rgba(139,92,246,.25);
}
.logo__text{ font-size: 1.04rem; }

.nav{
  display:flex;
  align-items:center;
  gap: 18px;
}
.nav a{
  font-weight: 700;
  font-size: .95rem;
  color: rgba(255,255,255,.78);
  padding: 10px 10px;
  border-radius: 12px;
  transition: background .2s ease, color .2s ease, transform .2s ease;
}
.nav a:hover,
.nav a:focus-visible{
  background: rgba(255,255,255,.08);
  color: rgba(255,255,255,.95);
  outline: none;
  transform: translateY(-1px);
}

.theme-toggle{
  display:inline-flex;
  align-items:center;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.08);
  cursor:pointer;
  font-weight: 800;
  letter-spacing: .01em;
  box-shadow: var(--shadow-soft);
  transition: transform .2s ease, background .2s ease, border-color .2s ease;
}
.theme-toggle:hover,
.theme-toggle:focus-visible{
  outline:none;
  transform: translateY(-1px);
  background: rgba(255,255,255,.12);
  border-color: rgba(255,255,255,.18);
}
.theme-toggle__dot{
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(139,92,246,.9), rgba(34,211,238,.65));
  box-shadow: 0 0 0 6px rgba(139,92,246,.18);
}
.theme-toggle__text{
  font-size: .9rem;
  font-weight: 900;
}

.nav-toggle{
  display:none;
  width: 44px; height: 44px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.06);
  box-shadow: var(--shadow-soft);
  cursor:pointer;
}
.nav-toggle__line{
  display:block;
  width: 18px;
  height: 2px;
  background: rgba(255,255,255,.88);
  border-radius: 999px;
  margin: 4px auto;
}

/* Sections */
.section{
  padding: 92px 0;
}
.section--muted{
  background: linear-gradient(180deg, rgba(255,255,255,.03), rgba(255,255,255,.02));
  border-top: 1px solid rgba(255,255,255,.06);
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.section__title{
  font-size: clamp(1.6rem, 2.8vw, 2.3rem);
  margin: 0 0 10px;
  letter-spacing: -.02em;
}
.section__text{
  margin: 0;
  color: var(--muted);
  font-size: 1.03rem;
}
.section__text--muted{ color: rgba(255,255,255,.62); }
.center{ text-align:center; max-width: 820px; margin: 0 auto 28px; }

.eyebrow{
  display:inline-flex;
  gap: 8px;
  align-items:center;
  margin: 0 0 8px;
  font-size: .78rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  font-weight: 800;
  color: rgba(34,211,238,.9);
}
.eyebrow::before{
  content:"";
  width: 10px; height: 10px;
  border-radius: 999px;
  background: rgba(139,92,246,.9);
  box-shadow: 0 0 0 6px rgba(139,92,246,.18);
}

/* HERO */
.hero{
  min-height: 100vh;
  padding-top: 88px; /* room for header */
  display:flex;
  align-items: center;
  position: relative;
  overflow:hidden;
}
.hero__wrap{
  display:grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 34px;
  align-items: center;
}
.hero__title{
  font-size: clamp(2.2rem, 4.2vw, 3.4rem);
  margin: 0 0 12px;
  line-height: 1.05;
  letter-spacing: -.03em;
}
.hero__subtitle{
  margin: 0;
  font-size: 1.08rem;
  color: rgba(255,255,255,.76);
  max-width: 58ch;
}
.hero__cta{
  margin-top: 22px;
  display:flex;
  gap: 12px;
  flex-wrap: wrap;
}
.hero__meta{
  margin-top: 18px;
  display:flex;
  gap: 12px;
  flex-wrap: wrap;
}

.hero__visual{
  justify-self: end;
}

/* Buttons */
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap: 10px;
  padding: 12px 18px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.06);
  color: rgba(255,255,255,.92);
  font-weight: 800;
  letter-spacing: .02em;
  cursor:pointer;
  transition: transform .2s ease, background .2s ease, border-color .2s ease, box-shadow .2s ease;
  box-shadow: var(--shadow-soft);
}
.btn:hover,
.btn:focus-visible{
  transform: translateY(-2px);
  background: rgba(255,255,255,.09);
  border-color: rgba(255,255,255,.16);
  outline: none;
}

.btn--primary{
  background: linear-gradient(135deg, rgba(139,92,246,.9), rgba(34,211,238,.6));
  border-color: rgba(255,255,255,.10);
  box-shadow: 0 18px 40px rgba(139,92,246,.18);
}
.btn--primary:hover,
.btn--primary:focus-visible{
  background: linear-gradient(135deg, rgba(139,92,246,.98), rgba(34,211,238,.75));
}

.btn--map{
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(34,211,238,.92), rgba(139,92,246,.95));
  border-color: rgba(255,255,255,.22);
  box-shadow: 0 18px 44px rgba(34,211,238,.22), 0 12px 28px rgba(139,92,246,.18);
}
.btn--map::after{
  content:"";
  position:absolute;
  inset:-50% -40%;
  background: linear-gradient(120deg, transparent 35%, rgba(255,255,255,.45) 50%, transparent 65%);
  transform: translateX(-55%) rotate(6deg);
  transition: transform .6s ease;
  opacity: .7;
}
.btn--map:hover::after,
.btn--map:focus-visible::after{
  transform: translateX(55%) rotate(6deg);
}
.btn--ghost{
  background: transparent;
  border-color: rgba(255,255,255,.22);
  box-shadow: none;
}
.btn--soft{
  background: rgba(255,255,255,.08);
}
.btn--danger{
  background: rgba(251,113,133,.14);
  border-color: rgba(251,113,133,.28);
  box-shadow: none;
}
.btn--danger:hover,
.btn--danger:focus-visible{
  background: rgba(251,113,133,.22);
}
.btn--discord{
  background: rgba(88, 101, 242, .22);
  border-color: rgba(88, 101, 242, .34);
}
.btn--discord:hover{ background: rgba(88, 101, 242, .30); }
.btn--mods{
  background: rgba(52, 168, 83, .18);
  border-color: rgba(52, 168, 83, .30);
}
.btn--mods:hover{ background: rgba(52, 168, 83, .25); }

/* Pills */
.pill{
  display:inline-flex;
  align-items:center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.10);
}
.pill--soft{ background: rgba(255,255,255,.05); }
.pill__label{
  font-size: .78rem;
  font-weight: 900;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(255,255,255,.62);
}
.pill__value{
  font-size: .95rem;
  font-weight: 900;
  color: rgba(255,255,255,.92);
}
.pill__action{
  padding: 8px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.06);
  cursor:pointer;
  font-weight: 900;
  font-size: .86rem;
}
.pill__action:hover,
.pill__action:focus-visible{
  outline:none;
  background: rgba(255,255,255,.10);
}

/* Hero Card */
.hero-card{
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255,255,255,.08), rgba(255,255,255,.05));
  border: 1px solid rgba(255,255,255,.12);
  box-shadow: var(--shadow);
  padding: 18px 18px 16px;
  position: relative;
  overflow:hidden;
}
.hero-card::before{
  content:"";
  position:absolute;
  inset:-2px;
  background: radial-gradient(600px 240px at 20% 0%, rgba(139,92,246,.32), transparent 55%),
              radial-gradient(520px 240px at 90% 10%, rgba(34,211,238,.22), transparent 60%);
  opacity: .8;
  pointer-events:none;
}
.hero-card > *{ position: relative; }
.hero-card__top{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 10px;
  margin-bottom: 12px;
}
.hero-card__badge{
  font-weight: 900;
  font-size: .78rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  padding: 8px 10px;
  border-radius: 999px;
  background: rgba(34,211,238,.12);
  border: 1px solid rgba(34,211,238,.24);
}
.hero-card__muted{
  color: rgba(255,255,255,.62);
  font-weight: 800;
}
.hero-card__title{
  margin: 0 0 8px;
  font-size: 1.1rem;
  letter-spacing: -.01em;
}
.hero-card__text{
  margin: 0 0 14px;
  color: rgba(255,255,255,.70);
}
.hero-card__stats{
  display:grid;
  gap: 10px;
}
.stat{
  display:flex;
  align-items:baseline;
  justify-content:space-between;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(0,0,0,.18);
  border: 1px solid rgba(255,255,255,.08);
}
.stat__label{
  font-weight: 900;
  color: rgba(255,255,255,.86);
}
.stat__value{
  color: rgba(255,255,255,.62);
  font-weight: 800;
}

/* Scroll indicator */
.scroll-indicator{
  position:absolute;
  left: 50%;
  bottom: 26px;
  transform: translateX(-50%);
  width: 40px;
  height: 56px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.28);
  background: rgba(255,255,255,.05);
  cursor:pointer;
  box-shadow: var(--shadow-soft);
}
.scroll-indicator::before{
  content:"";
  position:absolute;
  left: 50%;
  top: 14px;
  transform: translateX(-50%);
  width: 6px;
  height: 12px;
  border-radius: 999px;
  background: rgba(255,255,255,.85);
  animation: scrollDot 1.7s ease-in-out infinite;
}
@keyframes scrollDot{
  0%{ opacity: 1; transform: translateX(-50%) translateY(0); }
  70%{ opacity: .15; transform: translateX(-50%) translateY(20px); }
  100%{ opacity: 1; transform: translateX(-50%) translateY(0); }
}

/* Split layout */
.split{
  display:grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 30px;
  align-items: start;
}
.split__copy{ padding-right: 8px; }
.split__media{ justify-self: end; width: 100%; max-width: 520px; }

.media{
  border-radius: var(--radius);
  overflow:hidden;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.05);
  box-shadow: var(--shadow);
}
.media img{
  width: 100%;
  height: auto;
}
.media figcaption{
  padding: 12px 14px;
  color: rgba(255,255,255,.62);
  font-weight: 700;
  border-top: 1px solid rgba(255,255,255,.10);
}

/* Feature list */
.features{
  margin-top: 18px;
  display:grid;
  gap: 12px;
}
.feature{
  display:flex;
  gap: 12px;
  padding: 12px 12px;
  border-radius: 16px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.10);
}
.feature__icon{
  width: 38px;
  height: 38px;
  border-radius: 14px;
  display:grid;
  place-items:center;
  background: rgba(139,92,246,.18);
  border: 1px solid rgba(139,92,246,.24);
}
.feature strong{ display:block; margin-bottom: 2px; }
.feature p{ margin: 0; color: rgba(255,255,255,.66); font-weight: 650; }

/* Photo week */
.photo{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  align-items: center;
}
.photo__media{
  border-radius: var(--radius);
  overflow:hidden;
  border: 1px solid rgba(255,255,255,.12);
  box-shadow: var(--shadow);
}
.photo__media img{ width:100%; height:auto; }
.photo__title{
  margin: 10px 0 6px;
  font-size: 1.25rem;
}
.photo__note{
  margin-top: 16px;
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(34,211,238,.10);
  border: 1px solid rgba(34,211,238,.18);
  color: rgba(255,255,255,.82);
  font-weight: 700;
}

/* Status */
.status{
  scroll-margin-top: 88px;
}
.status__wrap{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 22px;
  padding: 18px 18px;
  border-radius: var(--radius);
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.05);
  box-shadow: var(--shadow-soft);
}
.status__line{ margin: 0; color: rgba(255,255,255,.90); font-weight: 900; font-size: 1.08rem; }
.status__players{ margin: 8px 0 0; color: rgba(255,255,255,.66); font-weight: 750; }
.status__hint{ margin: 8px 0 0; color: rgba(255,255,255,.50); font-size: .95rem; }
.status__signal{ display:grid; place-items:center; width: 80px; height: 80px; border-radius: 22px; background: rgba(0,0,0,.18); border: 1px solid rgba(255,255,255,.10); }
.status__dot{
  width: 16px;
  height: 16px;
  border-radius: 999px;
  background: var(--bad);
  box-shadow: 0 0 0 10px rgba(251,113,133,.10), 0 0 26px rgba(251,113,133,.35);
}
.status__dot--ok{
  background: var(--good);
  box-shadow: 0 0 0 10px rgba(74,222,128,.10), 0 0 26px rgba(74,222,128,.35);
}
.status__dot--down{
  background: var(--bad);
  box-shadow: 0 0 0 10px rgba(251,113,133,.10), 0 0 26px rgba(251,113,133,.35);
}

/* News */
.news{
  scroll-margin-top: 88px;
}
.news__head{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap: 18px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.news__subtitle{ margin: 0; color: rgba(255,255,255,.62); font-weight: 650; }
.news-grid{
  display:grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
}
.news-empty{
  grid-column: 1 / -1;
  text-align:center;
  padding: 26px 16px;
  border-radius: var(--radius);
  border: 1px dashed rgba(255,255,255,.20);
  background: rgba(255,255,255,.05);
  color: rgba(255,255,255,.62);
  font-weight: 750;
}
.news-card{
  overflow:hidden;
  border-radius: var(--radius);
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.05);
  box-shadow: var(--shadow-soft);
  display:flex;
  flex-direction: column;
  min-height: 100%;
  transition: transform .2s ease, border-color .2s ease, background .2s ease;
}
.news-card:hover{
  transform: translateY(-4px);
  border-color: rgba(255,255,255,.18);
  background: rgba(255,255,255,.06);
}
.news-card__img{
  width:100%;
  height: 170px;
  object-fit: cover;
}
.news-card__body{
  padding: 14px 14px 16px;
  display:flex;
  flex-direction: column;
  gap: 10px;
}
.news-card__top{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap: 12px;
}
.news-meta{
  display:flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items:center;
  color: rgba(255,255,255,.62);
  font-weight: 750;
  font-size: .92rem;
}
.badge{
  display:inline-flex;
  align-items:center;
  gap: 8px;
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(139,92,246,.12);
  border: 1px solid rgba(139,92,246,.22);
  color: rgba(255,255,255,.88);
  font-weight: 900;
  font-size: .84rem;
}
.badge-dot{
  width: 8px; height: 8px;
  border-radius: 999px;
  background: rgba(34,211,238,.9);
  box-shadow: 0 0 0 6px rgba(34,211,238,.15);
}
.news-menu-btn{
  width: 40px; height: 40px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(0,0,0,.18);
  cursor:pointer;
  display:grid;
  place-items:center;
  font-size: 18px;
  color: rgba(255,255,255,.88);
  transition: transform .2s ease, background .2s ease;
}
.news-menu-btn:hover,
.news-menu-btn:focus-visible{
  transform: translateY(-1px);
  background: rgba(0,0,0,.25);
  outline:none;
}
.news-card h3{
  margin: 0;
  font-size: 1.12rem;
  line-height: 1.25;
}
.news-card p{
  margin: 0;
  color: rgba(255,255,255,.70);
}

/* Countries */
.countries{
  scroll-margin-top: 88px;
}
.countries-grid{
  display:grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
  margin-top: 18px;
}
.country-card{
  padding: 18px 16px;
  border-radius: var(--radius);
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.05);
  box-shadow: var(--shadow-soft);
  transition: transform .2s ease, background .2s ease, border-color .2s ease;
  text-align:center;
}
.country-card:hover{
  transform: translateY(-4px);
  border-color: rgba(255,255,255,.18);
  background: rgba(255,255,255,.06);
}
.country-flag{
  width: 96px;
  height: 138px;
  margin: 0 auto 12px;
  border-radius: 16px;
  overflow:hidden;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(0,0,0,.18);
}
.country-flag img{
  width:100%;
  height:100%;
  object-fit: cover;
}
.country-card h3{
  margin: 0 0 6px;
  font-size: 1.12rem;
}
.country-card p{
  margin: 0;
  color: rgba(255,255,255,.64);
  font-style: italic;
}
.info-btn{
  width: 100%;
  margin-top: 12px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.06);
  cursor:pointer;
  font-weight: 900;
  transition: background .2s ease, transform .2s ease;
}
.info-btn:hover,
.info-btn:focus-visible{
  outline:none;
  transform: translateY(-1px);
  background: rgba(255,255,255,.09);
}
.country-details{
  margin-top: 10px;
  text-align:left;
  border-top: 1px solid rgba(255,255,255,.10);
  padding-top: 10px;
  color: rgba(255,255,255,.70);
  font-weight: 650;
  font-size: .96rem;
  max-height: 0;
  overflow:hidden;
  opacity: 0;
  transition: max-height .25s ease, opacity .25s ease;
}
.country-details.open{
  max-height: 520px;
  opacity: 1;
}
.country-details ul{
  list-style:none;
  padding: 0;
  margin: 0;
}
.country-details li + li{ margin-top: 6px; }

/* Map */
.world-map{
  scroll-margin-top: 88px;
}
.map-container{
  position: relative;
  width: 100%;
  height: 560px;
  border-radius: var(--radius);
  overflow:hidden;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(0,0,0,.18);
  box-shadow: var(--shadow);
}
.map-image{
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform-origin: center center;
  will-change: transform;
  user-select: none;
}
.map-overlay{
  position:absolute;
  left: 0; right:0; bottom:0;
  padding: 18px 16px;
  background: linear-gradient(transparent, rgba(0,0,0,.55));
  pointer-events:none;
}
.map-overlay h3{
  margin: 0 0 4px;
  font-size: 1.2rem;
}
.map-overlay p{
  margin: 0;
  color: rgba(255,255,255,.70);
  font-weight: 650;
}

/* Optional magnifier styling kept for compatibility */
.magnifier{ display:none; }

.map-controls{
  position: absolute;
  top: 14px;
  right: 14px;
  display:flex;
  gap: 8px;
  z-index: 20;
}
.map-controls button{
  border-radius: 14px;
  padding: 10px 12px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(0,0,0,.24);
  cursor:pointer;
  font-weight: 900;
  color: rgba(255,255,255,.90);
  transition: transform .2s ease, background .2s ease;
}
.map-controls button:hover,
.map-controls button:focus-visible{
  outline:none;
  transform: translateY(-1px);
  background: rgba(0,0,0,.34);
}

/* Join */
.join{
  scroll-margin-top: 88px;
}
.join__wrap{
  border-radius: var(--radius);
  border: 1px solid rgba(255,255,255,.12);
  background: linear-gradient(135deg, rgba(139,92,246,.16), rgba(34,211,238,.10));
  box-shadow: var(--shadow);
  padding: 20px 18px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 18px;
  flex-wrap: wrap;
}
.join-buttons{
  display:flex;
  gap: 10px;
  flex-wrap: wrap;
}

/* Footer */
.site-footer{
  margin-top: auto;
  padding: 18px 0 24px;
  border-top: 1px solid rgba(255,255,255,.08);
  background: rgba(8,10,18,.55);
  backdrop-filter: blur(10px);
}
.site-footer__wrap{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap: 12px;
  color: rgba(255,255,255,.60);
  font-weight: 700;
}
.admin-btn{
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid rgba(34,211,238,.25);
  background: rgba(34,211,238,.10);
  color: rgba(255,255,255,.86);
  cursor:pointer;
  font-weight: 900;
}
.admin-btn:hover,
.admin-btn:focus-visible{
  outline:none;
  background: rgba(34,211,238,.14);
}

/* Maintenance banner */
.maintenance-banner{
  position: fixed;
  top: 68px;
  left: 0; right: 0;
  z-index: 40;
  background: rgba(17, 24, 39, .88);
  border-bottom: 1px solid rgba(255,255,255,.10);
  backdrop-filter: blur(10px);
}
.maintenance-banner.is-hidden{ display:none; }
.maintenance-banner__wrap{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 12px;
  padding: 10px 0;
}
.maintenance-banner__text{
  display:flex;
  gap: 10px;
  align-items:baseline;
  flex-wrap: wrap;
}
.maintenance-banner__text strong{
  color: rgba(255,255,255,.92);
}
.maintenance-banner__text span{
  color: rgba(255,255,255,.72);
  font-weight: 650;
}
.maintenance-banner__close{
  width: 40px; height: 40px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(0,0,0,.20);
  cursor:pointer;
  font-size: 20px;
  line-height: 1;
  display:grid;
  place-items:center;
}
.maintenance-banner__close:hover{ background: rgba(0,0,0,.28); }

/* Modals */
.modal-overlay{
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.62);
  display:flex;
  align-items:center;
  justify-content:center;
  padding: 20px;
  z-index: 50;
  transition: opacity .22s ease, visibility .22s ease;
}
.modal-overlay.is-hidden{
  opacity: 0;
  visibility: hidden;
  pointer-events:none;
}
.modal-window{
  width: min(560px, 100%);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255,255,255,.08), rgba(255,255,255,.06));
  border: 1px solid rgba(255,255,255,.14);
  box-shadow: var(--shadow);
  padding: 18px 18px 16px;
  position: relative;
}
.modal-title{
  margin: 0 0 10px;
  font-size: 1.2rem;
}
.modal-close{
  position:absolute;
  top: 12px;
  right: 12px;
  width: 44px; height: 44px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(0,0,0,.20);
  cursor:pointer;
  font-size: 20px;
}
.modal-close:hover{ background: rgba(0,0,0,.28); }
.modal-form{
  display:flex;
  flex-direction: column;
  gap: 10px;
}
.field-label{
  font-weight: 900;
  color: rgba(255,255,255,.88);
  margin-top: 4px;
}
.modal-form input,
.modal-form select,
.modal-form textarea{
  width: 100%;
  padding: 12px 12px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(0,0,0,.22);
  outline: none;
}
.modal-form textarea{ min-height: 110px; resize: vertical; }
.modal-form input:focus,
.modal-form select:focus,
.modal-form textarea:focus{
  border-color: rgba(34,211,238,.35);
  box-shadow: 0 0 0 4px rgba(34,211,238,.10);
}
.modal-actions{
  display:flex;
  justify-content:flex-end;
  gap: 10px;
  margin-top: 8px;
  flex-wrap: wrap;
}
.helper-text{
  color: rgba(255,255,255,.60);
  font-weight: 650;
  font-size: .92rem;
}
.error-text{
  color: rgba(251,113,133,.95);
  font-weight: 850;
}
.error-text.is-hidden{ display:none; }

/* Toast */
.toast{
  position: fixed;
  right: 18px;
  bottom: 18px;
  width: min(380px, calc(100% - 36px));
  padding: 14px 14px;
  border-radius: var(--radius);
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(17, 24, 39, .90);
  box-shadow: var(--shadow);
  display:grid;
  gap: 6px;
  z-index: 60;
  transition: transform .22s ease, opacity .22s ease, visibility .22s ease;
}
.toast.is-hidden{
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
}
.toast strong{ font-weight: 950; }
.toast span{ color: rgba(255,255,255,.70); font-weight: 650; }

/* Reveal animation */
[data-reveal]{
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .6s ease, transform .6s ease;
}
[data-reveal].is-visible{
  opacity: 1;
  transform: translateY(0);
}

/* Responsive */
@media (max-width: 960px){
  .hero__wrap{ grid-template-columns: 1fr; }
  .hero__visual{ justify-self: start; }
  .split{ grid-template-columns: 1fr; }
  .split__media{ justify-self: start; max-width: 640px; }
  .photo{ grid-template-columns: 1fr; }
  .map-container{ height: 440px; }
}
@media (max-width: 820px){
  .nav-toggle{ display:block; }
  .nav{
    position: fixed;
    top: 76px;
    right: 16px;
    left: 16px;
    display:none;
    flex-direction: column;
    gap: 8px;
    padding: 12px;
    border-radius: var(--radius);
    background: rgba(8,10,18,.92);
    border: 1px solid rgba(255,255,255,.10);
    box-shadow: var(--shadow);
  }
  .nav.is-open{ display:flex; }
  .nav a{ padding: 12px 12px; }
  .status__wrap{ flex-direction: column; align-items: flex-start; }
  .status__signal{ width: 100%; height: 64px; justify-self: stretch; }
  .join__wrap{ flex-direction: column; align-items: flex-start; }
}
@media (max-width: 520px){
  .section{ padding: 72px 0; }
  .map-container{ height: 340px; }
  .hero__meta{ gap: 10px; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce){
  *{ animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* Light theme overrides */
:root[data-theme="light"] body{
  color: var(--text);
  background: radial-gradient(1200px 900px at 18% 8%, rgba(124,58,237,.16), transparent 60%),
              radial-gradient(900px 700px at 82% 16%, rgba(14,165,233,.12), transparent 55%),
              linear-gradient(180deg, var(--bg), var(--bg2));
}
:root[data-theme="light"] .bg__grid{
  opacity: .45;
  background:
    linear-gradient(rgba(15,23,42,.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15,23,42,.06) 1px, transparent 1px);
}
:root[data-theme="light"] .topbar{
  background: rgba(255,255,255,.92);
  border-bottom: 1px solid rgba(15,23,42,.08);
  box-shadow: var(--shadow-soft);
}
:root[data-theme="light"] .nav{
  background: transparent;
}
:root[data-theme="light"] .nav a{
  color: #0f172a;
}
:root[data-theme="light"] .nav a:hover,
:root[data-theme="light"] .nav a:focus-visible{
  background: rgba(15,23,42,.06);
  color: #0b1224;
}
:root[data-theme="light"] .nav-toggle{
  border-color: rgba(15,23,42,.14);
  background: rgba(255,255,255,.92);
}
:root[data-theme="light"] .nav-toggle__line{
  background: #0f172a;
}
:root[data-theme="light"] .section--muted{
  background: linear-gradient(180deg, rgba(15,23,42,.03), rgba(15,23,42,.02));
  border-top: 1px solid rgba(15,23,42,.08);
  border-bottom: 1px solid rgba(15,23,42,.08);
}
:root[data-theme="light"] .hero__subtitle,
:root[data-theme="light"] .section__text,
:root[data-theme="light"] .news__subtitle,
:root[data-theme="light"] .country-card p,
:root[data-theme="light"] .status__players,
:root[data-theme="light"] .status__hint,
:root[data-theme="light"] .news-card p,
:root[data-theme="light"] .photo__note,
:root[data-theme="light"] .map-overlay p,
:root[data-theme="light"] .site-footer__wrap,
:root[data-theme="light"] .helper-text,
:root[data-theme="light"] .toast span,
:root[data-theme="light"] .maintenance-banner__text span{
  color: var(--muted);
}
:root[data-theme="light"] .status__line,
:root[data-theme="light"] .stat__label,
:root[data-theme="light"] .maintenance-banner__text strong{
  color: var(--text);
}
:root[data-theme="light"] .eyebrow{
  color: var(--accent2);
}
:root[data-theme="light"] .eyebrow::before{
  background: var(--accent);
  box-shadow: 0 0 0 6px rgba(124,58,237,.18);
}
:root[data-theme="light"] :is(.hero-card, .status__wrap, .news-card, .country-card, .join__wrap, .map-container, .modal-window, .toast, .maintenance-banner, .pill, .pill--soft, .feature, .media, .photo__media, .info-btn, .stat, .country-flag, .badge, .news-menu-btn, .scroll-indicator){
  background: #ffffff;
  border-color: rgba(15,23,42,.10);
  color: var(--text);
}
:root[data-theme="light"] .news-card:hover,
:root[data-theme="light"] .country-card:hover{
  background: #f8f9ff;
  border-color: rgba(15,23,42,.16);
}
:root[data-theme="light"] .hero-card{
  background: linear-gradient(180deg, #ffffff, #f2f4ff);
}
:root[data-theme="light"] .hero-card::before{
  background: radial-gradient(600px 240px at 20% 0%, rgba(124,58,237,.20), transparent 55%),
              radial-gradient(520px 240px at 90% 10%, rgba(14,165,233,.18), transparent 60%);
}
:root[data-theme="light"] .pill__label{
  color: #475569;
}
:root[data-theme="light"] .pill__value{
  color: #0f172a;
}
:root[data-theme="light"] .pill__action{
  background: rgba(15,23,42,.04);
  border-color: rgba(15,23,42,.10);
  color: #0f172a;
}
:root[data-theme="light"] .hero-card__muted,
:root[data-theme="light"] .stat__value{
  color: #475569;
}
:root[data-theme="light"] .stat{
  background: rgba(15,23,42,.02);
}
:root[data-theme="light"] .photo__note{
  background: rgba(14,165,233,.10);
  border-color: rgba(14,165,233,.22);
  color: #0f172a;
}
:root[data-theme="light"] .status__signal,
:root[data-theme="light"] .map-controls button{
  background: rgba(15,23,42,.04);
  border-color: rgba(15,23,42,.10);
  color: var(--text);
}
:root[data-theme="light"] .news-meta,
:root[data-theme="light"] .badge{
  color: #0f172a;
}
:root[data-theme="light"] .badge{
  background: rgba(124,58,237,.12);
  border: 1px solid rgba(124,58,237,.22);
}
:root[data-theme="light"] .badge-dot{
  background: var(--accent2);
  box-shadow: 0 0 0 6px rgba(14,165,233,.18);
}
:root[data-theme="light"] .news-menu-btn,
:root[data-theme="light"] .maintenance-banner__close,
:root[data-theme="light"] .modal-close{
  background: rgba(15,23,42,.04);
  color: #0f172a;
}
:root[data-theme="light"] .map-overlay{
  background: linear-gradient(transparent, rgba(255,255,255,.92));
}
:root[data-theme="light"] .btn{
  color: #0f172a;
  background: rgba(15,23,42,.04);
  border-color: rgba(15,23,42,.12);
  box-shadow: var(--shadow-soft);
}
:root[data-theme="light"] .btn:hover,
:root[data-theme="light"] .btn:focus-visible{
  background: rgba(15,23,42,.08);
}
:root[data-theme="light"] .btn--primary{
  color: #ffffff;
}

:root[data-theme="light"] .btn--map{
  border-color: rgba(15,23,42,.15);
  box-shadow: 0 14px 30px rgba(14,165,233,.18), 0 10px 24px rgba(124,58,237,.16);
}
:root[data-theme="light"] .btn--ghost{
  background: transparent;
  border-color: rgba(15,23,42,.18);
  box-shadow: none;
}
:root[data-theme="light"] .btn--soft{
  background: rgba(15,23,42,.06);
}
:root[data-theme="light"] .btn--discord{
  background: rgba(88, 101, 242, .16);
  border-color: rgba(88, 101, 242, .28);
}
:root[data-theme="light"] .btn--mods{
  background: rgba(52, 168, 83, .16);
  border-color: rgba(52, 168, 83, .26);
}
:root[data-theme="light"] .btn--danger{
  background: rgba(220,38,38,.12);
  border-color: rgba(220,38,38,.22);
  color: #991b1b;
}
:root[data-theme="light"] .theme-toggle{
  background: rgba(15,23,42,.05);
  border-color: rgba(15,23,42,.10);
  color: #0f172a;
}
:root[data-theme="light"] .theme-toggle__dot{
  box-shadow: 0 0 0 6px rgba(14,165,233,.18);
}
:root[data-theme="light"] .scroll-indicator{
  border-color: rgba(15,23,42,.12);
}
:root[data-theme="light"] .scroll-indicator::before{
  background: var(--text);
}
:root[data-theme="light"] .site-footer{
  background: rgba(255,255,255,.90);
  border-top: 1px solid rgba(15,23,42,.08);
}
:root[data-theme="light"] .admin-btn{
  border-color: rgba(14,165,233,.26);
  background: rgba(14,165,233,.12);
  color: #0f172a;
}
:root[data-theme="light"] .maintenance-banner{
  background: rgba(255,255,255,.95);
  border-bottom: 1px solid rgba(15,23,42,.08);
}
:root[data-theme="light"] .modal-window{
  background: linear-gradient(180deg, #ffffff, #f5f7ff);
}
:root[data-theme="light"] .modal-form input,
:root[data-theme="light"] .modal-form select,
:root[data-theme="light"] .modal-form textarea{
  background: rgba(15,23,42,.04);
  border-color: rgba(15,23,42,.12);
  color: var(--text);
}
:root[data-theme="light"] .modal-form input:focus,
:root[data-theme="light"] .modal-form select:focus,
:root[data-theme="light"] .modal-form textarea:focus{
  border-color: rgba(14,165,233,.40);
  box-shadow: 0 0 0 4px rgba(14,165,233,.14);
}
:root[data-theme="light"] .toast{
  background: #ffffff;
}
:root[data-theme="light"] .error-text{
  color: #b91c1c;
}
:root[data-theme="light"] .news-empty{
  background: #ffffff;
  border-color: rgba(15,23,42,.14);
  color: var(--muted);
}
:root[data-theme="light"] .country-details{
  border-top: 1px solid rgba(15,23,42,.10);
  color: var(--muted);
}
:root[data-theme="light"] .nav.is-open{
  background: rgba(255,255,255,.96);
  border: 1px solid rgba(15,23,42,.10);
  box-shadow: var(--shadow);
}

:root{
    --bg:#070A12;
    --text:#fff;
    --muted:rgba(255,255,255,.7);
    --accent:#8B5CF6;
}

*{box-sizing:border-box}
body{
    margin:0;
    font-family:system-ui, sans-serif;
    background:linear-gradient(180deg,#070A12,#0B1020);
    color:var(--text);
}

.container{
    width:min(1180px,calc(100% - 40px));
    margin:0 auto;
}

.center{
    text-align:center;
    max-width:800px;
    margin:0 auto;
}

.section{
    padding:96px 0;
}

.section__title{
    font-size:2.2rem;
    margin-bottom:12px;
}

.section__text{
    color:var(--muted);
    font-size:1.05rem;
}

/* ===== КНОПКИ ===== */
.btn{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    padding:14px 22px;
    border-radius:999px;
    font-weight:800;
    border:1px solid rgba(255,255,255,.15);
    background:rgba(255,255,255,.08);
    color:white;
    cursor:pointer;
    text-decoration:none;
    transition:.2s;
}

.btn:hover{
    transform:translateY(-2px);
    background:rgba(255,255,255,.12);
}

/* ГЛАВНАЯ КНОПКА КАРТЫ */
.btn--map{
    background:linear-gradient(135deg,#22D3EE,#8B5CF6);
    border:none;
    box-shadow:0 18px 40px rgba(34,211,238,.25);
    font-size:1.05rem;
}

.btn--map:hover{
    box-shadow:0 22px 48px rgba(34,211,238,.35);
}

/* Footer */
.site-footer{
    padding:20px 0;
    border-top:1px solid rgba(255,255,255,.08);
    text-align:center;
    color:var(--muted);
}
