/* ---------- Base ---------- */
* { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg-0: #06100b;
  --bg-1: #0a1a13;
  --bg-2: #0d2419;
  --green-1: #1c3a2a;
  --green-2: #2a5740;
  --green-glow: #4ade80;
  --gold: #d4af37;
  --gold-soft: #c9a44a;
  --text: #e7efe9;
  --text-dim: #9fb1a6;
  --text-mute: #6f7f76;
  --border: rgba(212, 175, 55, 0.18);
  --border-strong: rgba(212, 175, 55, 0.35);
  --card-bg: rgba(10, 22, 16, 0.72);
}

html {
  background: var(--bg-0);
}
body {
  background: transparent;
  color: var(--text);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
}

a { color: inherit; text-decoration: none; }

.container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 28px;
}

/* ---------- Background layers ---------- */
/* Базовый фон страницы (везде кроме первого экрана) */
.bg-illidan {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 100vh;
  min-height: 760px;
  z-index: -3;
  background-color: #06100b;
  background-image: var(--hero-bg);
  background-position: center 20%;
  background-size: cover;
  background-repeat: no-repeat;
}

/* Затемнение поверх картинки: сильно слева (под текстом), мягче справа */
.bg-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 100vh;
  min-height: 760px;
  z-index: -2;
  background:
    linear-gradient(90deg,
      rgba(6, 16, 11, 0.92) 0%,
      rgba(6, 16, 11, 0.75) 25%,
      rgba(6, 16, 11, 0.35) 55%,
      rgba(6, 16, 11, 0.55) 100%),
    linear-gradient(180deg,
      rgba(6, 16, 11, 0.4) 0%,
      transparent 30%,
      rgba(6, 16, 11, 0.85) 85%,
      #06100b 100%);
}

/* Виньетка и однотонный фон под остальную страницу */
.bg-vignette {
  position: fixed;
  inset: 0;
  z-index: -4;
  pointer-events: none;
  background:
    radial-gradient(ellipse at 50% 30%, rgba(40, 80, 60, 0.08), transparent 60%),
    linear-gradient(180deg, #0a1a13 0%, #06100b 100%);
}

/* ---------- Topbar ---------- */
.topbar {
  position: relative;
  z-index: 10;
  padding: 22px 0;
  border-bottom: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(6, 16, 11, 0.85), rgba(6, 16, 11, 0.4));
  backdrop-filter: blur(8px);
}

.topbar-inner {
  display: flex;
  align-items: center;
  gap: 40px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-mark {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border: 1px solid var(--border-strong);
  border-radius: 4px;
  background: linear-gradient(180deg, rgba(212, 175, 55, 0.08), rgba(212, 175, 55, 0.02));
}

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1;
}
.logo-title {
  font-family: 'Cinzel', serif;
  font-weight: 900;
  font-size: 17px;
  color: var(--gold);
  letter-spacing: 2px;
}
.logo-sub {
  font-size: 10px;
  color: var(--text-mute);
  letter-spacing: 3px;
  margin-top: 4px;
}

.nav {
  display: flex;
  gap: 32px;
  flex: 1;
  justify-content: center;
}
.nav-link {
  font-size: 14px;
  color: var(--text-dim);
  letter-spacing: 0.5px;
  position: relative;
  padding: 6px 0;
  transition: color 0.2s;
}
.nav-link:hover { color: var(--text); }
.nav-link.active { color: var(--gold); }
.nav-link.active::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

.top-status {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 12px;
  letter-spacing: 0.4px;
}
/* ONLINE — зелёный */
.top-status.online {
  border: 1px solid rgba(74, 222, 128, 0.25);
  background: rgba(34, 197, 94, 0.06);
  color: var(--green-glow);
}
.top-status.online .status-dot {
  background: var(--green-glow);
  box-shadow: 0 0 10px var(--green-glow), 0 0 18px rgba(74, 222, 128, 0.6);
}
/* OFFLINE — красный */
.top-status.offline {
  border: 1px solid rgba(239, 68, 68, 0.3);
  background: rgba(239, 68, 68, 0.08);
  color: #ff7a7a;
}
.top-status.offline .status-dot {
  background: #ef4444;
  box-shadow: 0 0 10px #ef4444, 0 0 18px rgba(239, 68, 68, 0.55);
  animation: none;
}

.status-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.45; }
}

/* ---------- Hero ---------- */
.hero-wrap {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 60px;
  align-items: start;
  padding-top: 70px;
  padding-bottom: 50px;
  min-height: calc(100vh - 92px - 220px);
}

.hero { max-width: 620px; }

.welcome {
  display: inline-block;
  font-size: 12px;
  color: var(--gold-soft);
  letter-spacing: 4px;
  text-transform: uppercase;
  padding-bottom: 14px;
  position: relative;
}
.welcome::after {
  content: "";
  position: absolute;
  left: 0; bottom: 4px;
  width: 60px;
  height: 1px;
  background: linear-gradient(90deg, var(--gold), transparent);
}

.hero-title {
  font-family: 'Cinzel', serif;
  font-weight: 900;
  font-size: clamp(56px, 8vw, 104px);
  line-height: 0.95;
  letter-spacing: 1px;
  margin-top: 6px;
}
.title-burning {
  display: block;
  background: linear-gradient(180deg, #f6d97a 0%, #d4af37 45%, #8a6a1d 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 4px 30px rgba(212, 175, 55, 0.2);
  filter: drop-shadow(0 2px 0 rgba(0, 0, 0, 0.5));
}
.title-crusade {
  display: block;
  color: #f3e7c2;
  background: linear-gradient(180deg, #fff6d6 0%, #d6b870 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-top: -8px;
}

.hero-sub {
  font-family: 'Cinzel', serif;
  font-weight: 500;
  font-size: 22px;
  color: var(--text-dim);
  letter-spacing: 3px;
  margin-top: 18px;
}
.ver { color: var(--gold); margin-left: 6px; }

.hero-desc {
  margin-top: 26px;
  max-width: 520px;
  font-size: 15px;
  line-height: 1.7;
  color: var(--text-dim);
}

.hero-cta {
  margin-top: 36px;
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 26px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.25s ease;
  border: 1px solid transparent;
}

.btn-primary {
  background: linear-gradient(180deg, #e9c557 0%, #c19524 100%);
  color: #1a1305;
  box-shadow:
    0 0 0 1px rgba(255, 220, 130, 0.4) inset,
    0 8px 24px rgba(212, 175, 55, 0.35),
    0 0 30px rgba(212, 175, 55, 0.25);
}
.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow:
    0 0 0 1px rgba(255, 220, 130, 0.5) inset,
    0 12px 30px rgba(212, 175, 55, 0.5),
    0 0 40px rgba(212, 175, 55, 0.35);
}

.btn-ghost {
  background: rgba(212, 175, 55, 0.04);
  color: var(--gold);
  border-color: var(--border-strong);
}
.btn-ghost:hover {
  background: rgba(212, 175, 55, 0.1);
  border-color: var(--gold);
}

/* ---------- Status Card ---------- */
.status-card {
  position: relative;
  background: rgba(10, 22, 16, 0.12);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 24px;
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  box-shadow:
    0 20px 60px rgba(0, 0, 0, 0.25),
    inset 0 1px 0 rgba(212, 175, 55, 0.08);
}
.status-card::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: 6px;
  padding: 1px;
  background: linear-gradient(180deg, rgba(212, 175, 55, 0.5), transparent 60%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.status-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 18px;
}
.status-card-head h3 {
  font-family: 'Cinzel', serif;
  font-size: 15px;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: 2px;
}
.pulse {
  width: 10px; height: 10px;
  border-radius: 50%;
  animation: pulse 2s infinite;
}
.pulse.online {
  background: var(--green-glow);
  box-shadow: 0 0 12px var(--green-glow);
}
.pulse.offline {
  background: #ef4444;
  box-shadow: 0 0 12px #ef4444;
  animation: none;
}

.status-row.big {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 14px;
  background: linear-gradient(90deg, rgba(212, 175, 55, 0.08), transparent);
  border-left: 2px solid var(--gold);
  border-radius: 2px;
  margin-bottom: 18px;
}
.status-name {
  font-family: 'Cinzel', serif;
  font-size: 17px;
  font-weight: 700;
  color: #f3e7c2;
  letter-spacing: 1px;
}
.status-tag {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  padding: 4px 10px;
  border-radius: 3px;
  background: rgba(220, 50, 50, 0.15);
  color: #ff8585;
  border: 1px solid rgba(220, 50, 50, 0.35);
}

.status-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 4px;
  overflow: hidden;
}
.status-item {
  padding: 14px 16px;
  background: rgba(10, 22, 16, 0.15);
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.status-label {
  font-size: 11px;
  color: var(--text-mute);
  letter-spacing: 1.5px;
  text-transform: uppercase;
}
.status-value {
  font-family: 'Cinzel', serif;
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
}

.status-realmlist {
  display: block;
  margin-top: 18px;
  padding: 12px;
  text-align: center;
  color: var(--gold);
  border: 1px solid var(--border-strong);
  border-radius: 3px;
  background: rgba(212, 175, 55, 0.04);
  transition: all 0.2s;
}
.status-realmlist:hover {
  background: rgba(212, 175, 55, 0.08);
  border-color: var(--gold);
}
.status-realmlist-label {
  display: block;
  margin-bottom: 6px;
  font-size: 11px;
  color: var(--text-mute);
  letter-spacing: 1.5px;
  text-transform: uppercase;
}
.status-realmlist-value {
  display: block;
  overflow-wrap: anywhere;
  font-family: 'Cinzel', serif;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.4;
  color: var(--gold);
}

.status-link {
  display: block;
  margin-top: 18px;
  padding: 12px;
  text-align: center;
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gold);
  border: 1px solid var(--border-strong);
  border-radius: 3px;
  transition: all 0.2s;
}
.status-link:hover {
  background: rgba(212, 175, 55, 0.08);
  border-color: var(--gold);
}

/* ---------- News ---------- */
.news {
  padding-top: 10px;
  padding-bottom: 50px;
  position: relative;
  z-index: 2;
}
.news-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 22px;
  flex-wrap: wrap;
  gap: 12px;
}
.news-eyebrow {
  display: block;
  font-size: 11px;
  color: var(--gold-soft);
  letter-spacing: 4px;
  text-transform: uppercase;
  margin-bottom: 6px;
}
.news-title {
  font-family: 'Cinzel', serif;
  font-size: 26px;
  font-weight: 700;
  color: #f3e7c2;
  letter-spacing: 1px;
}
.news-all {
  font-size: 12px;
  color: var(--gold);
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 8px 14px;
  border: 1px solid var(--border-strong);
  border-radius: 3px;
  transition: all 0.2s;
}
.news-all:hover {
  background: rgba(212, 175, 55, 0.08);
  border-color: var(--gold);
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.news-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 6px;
  overflow: hidden;
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  position: relative;
}
.news-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 6px;
  padding: 1px;
  background: linear-gradient(180deg, rgba(212, 175, 55, 0.35), transparent 50%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  opacity: 0.5;
  transition: opacity 0.3s;
}
.news-card:hover {
  transform: translateY(-3px);
  border-color: var(--border-strong);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.5), 0 0 30px rgba(212, 175, 55, 0.08);
}
.news-card:hover::before { opacity: 1; }

.news-thumb {
  height: 140px;
  position: relative;
  overflow: hidden;
}
.news-thumb::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(10, 22, 16, 0.95) 100%);
}
.news-thumb-1 {
  background:
    radial-gradient(ellipse at 30% 40%, rgba(255, 90, 40, 0.6), transparent 60%),
    radial-gradient(ellipse at 70% 60%, rgba(180, 30, 30, 0.45), transparent 65%),
    linear-gradient(135deg, #2a0a0a 0%, #1a0505 100%);
}
.news-thumb-2 {
  background:
    radial-gradient(ellipse at 50% 50%, rgba(150, 60, 220, 0.5), transparent 65%),
    radial-gradient(ellipse at 80% 30%, rgba(80, 30, 180, 0.45), transparent 60%),
    linear-gradient(135deg, #1a0a2a 0%, #0a0518 100%);
}
.news-thumb-3 {
  background:
    radial-gradient(ellipse at 40% 50%, rgba(74, 222, 128, 0.4), transparent 65%),
    radial-gradient(ellipse at 70% 60%, rgba(212, 175, 55, 0.35), transparent 70%),
    linear-gradient(135deg, #0a2418 0%, #051a10 100%);
}

.news-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 2;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 5px 10px;
  border-radius: 3px;
  backdrop-filter: blur(6px);
}
.news-badge-hot {
  background: rgba(220, 50, 50, 0.2);
  color: #ff9a8a;
  border: 1px solid rgba(220, 50, 50, 0.4);
}
.news-badge-event {
  background: rgba(150, 60, 220, 0.2);
  color: #d3a8ff;
  border: 1px solid rgba(150, 60, 220, 0.4);
}
.news-badge-info {
  background: rgba(212, 175, 55, 0.15);
  color: var(--gold);
  border: 1px solid var(--border-strong);
}

.news-card-body {
  padding: 18px 20px 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}
.news-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  color: var(--text-mute);
  letter-spacing: 1.5px;
  text-transform: uppercase;
}
.news-dot {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--text-mute);
}
.news-cat { color: var(--gold-soft); }

.news-card-title {
  font-family: 'Cinzel', serif;
  font-size: 16px;
  font-weight: 700;
  color: #f3e7c2;
  letter-spacing: 0.5px;
  line-height: 1.35;
}
.news-card-desc {
  font-size: 13px;
  line-height: 1.6;
  color: var(--text-dim);
}

@media (max-width: 1000px) {
  .news-grid { grid-template-columns: 1fr; }
}

/* ---------- Features ---------- */
.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  padding-bottom: 60px;
  position: relative;
  z-index: 2;
}
.feature {
  display: flex;
  gap: 16px;
  padding: 22px;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 5px;
  backdrop-filter: blur(10px);
  transition: all 0.25s;
}
.feature:hover {
  border-color: var(--border-strong);
  transform: translateY(-2px);
  background: rgba(15, 30, 22, 0.85);
}
.feature-icon {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  border-radius: 4px;
  background: linear-gradient(180deg, rgba(212, 175, 55, 0.12), rgba(212, 175, 55, 0.02));
  color: var(--gold);
  border: 1px solid var(--border);
}
.feature-body h4 {
  font-family: 'Cinzel', serif;
  font-size: 15px;
  font-weight: 700;
  color: #f3e7c2;
  letter-spacing: 1px;
  margin-bottom: 6px;
}
.feature-body p {
  font-size: 13px;
  line-height: 1.55;
  color: var(--text-mute);
}

/* ---------- Footer ---------- */
.footer {
  border-top: 1px solid var(--border);
  padding: 24px 0;
  background: rgba(6, 16, 11, 0.8);
  backdrop-filter: blur(6px);
  position: relative;
  z-index: 2;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}
.copy {
  font-size: 12px;
  color: var(--text-mute);
}
.footer-links {
  display: flex;
  gap: 24px;
}
.footer-links a {
  font-size: 12px;
  color: var(--text-dim);
  letter-spacing: 1px;
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--gold); }

/* ---------- Register page ---------- */
.register-wrap {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 60px;
  padding-top: 60px;
  padding-bottom: 80px;
  min-height: calc(100vh - 92px - 100px);
}

.register-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 44px 48px;
  backdrop-filter: blur(14px);
  max-width: 560px;
  position: relative;
}
.register-card::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: 6px;
  padding: 1px;
  background: linear-gradient(180deg, rgba(212, 175, 55, 0.45), transparent 60%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.register-title {
  font-family: 'Cinzel', serif;
  font-size: 28px;
  font-weight: 700;
  color: #f3e7c2;
  letter-spacing: 1.5px;
  margin-bottom: 6px;
}
.register-sub {
  font-size: 13px;
  color: var(--text-mute);
  margin-bottom: 28px;
  letter-spacing: 0.5px;
}

.form-field {
  margin-bottom: 18px;
}
.form-label {
  display: block;
  font-size: 11px;
  color: var(--gold-soft);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.form-input {
  width: 100%;
  padding: 14px 16px;
  background: rgba(6, 16, 11, 0.7);
  border: 1px solid var(--border);
  border-radius: 4px;
  color: var(--text);
  font-size: 14px;
  font-family: inherit;
  transition: all 0.2s;
}
.form-input:focus {
  outline: none;
  border-color: var(--gold);
  background: rgba(6, 16, 11, 0.9);
  box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1);
}
.form-input::placeholder { color: var(--text-mute); }

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.checkbox-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 18px 0 24px;
}
.checkbox-row input {
  margin-top: 2px;
  accent-color: var(--gold);
}
.checkbox-row label {
  font-size: 12px;
  color: var(--text-dim);
  line-height: 1.5;
}
.checkbox-row a { color: var(--gold); }

.btn-full {
  width: 100%;
  justify-content: center;
  padding: 16px;
}

.alt-action {
  text-align: center;
  margin-top: 22px;
  font-size: 13px;
  color: var(--text-mute);
}
.alt-action a {
  color: var(--gold);
  margin-left: 6px;
}

.how-to {
  margin-top: 24px;
  padding: 22px;
  background: rgba(10, 22, 16, 0.5);
  border: 1px solid var(--border);
  border-radius: 6px;
}
.how-to h4 {
  font-family: 'Cinzel', serif;
  font-size: 14px;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: 2px;
  margin-bottom: 14px;
}
.how-to ol {
  padding-left: 22px;
}
.how-to li {
  font-size: 13px;
  line-height: 1.7;
  color: var(--text-dim);
  margin-bottom: 6px;
}
.how-to li::marker { color: var(--gold); font-weight: 700; }

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .hero-wrap, .register-wrap {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .features { grid-template-columns: 1fr; }
  .nav { display: none; }
}
@media (max-width: 600px) {
  .hero-title { font-size: 56px; }
  .register-card { padding: 28px 22px; }
  .form-row { grid-template-columns: 1fr; }
  .topbar-inner { flex-wrap: wrap; gap: 16px; }
}
