*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --red: #c0392b;
  --red-dark: #922b21;
  --orange: #e05c2a;
  --orange-light: #f07030;
  --bg: #090909;
  --bg2: #0f0f0f;
  --bg3: #151515;
  --bg4: #1c1c1c;
  --border: #242424;
  --border-hot: #c0392b55;
  --text: #efefef;
  --text-muted: #777;
  --text-dim: #444;
}

html { scroll-behavior: smooth; }

body {
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: 'Nunito', sans-serif;
  font-size: 15px;
  line-height: 1.6;
  overflow-x: hidden;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(0,0,0,0.03) 2px,
    rgba(0,0,0,0.03) 4px
  );
  pointer-events: none;
  z-index: 1000;
}

.accent-bar {
  height: 3px;
  background: linear-gradient(90deg, var(--red-dark), var(--red), var(--orange), var(--orange-light), transparent 80%);
}

nav {
  background: var(--bg2);
  border-bottom: 1px solid var(--border);
  padding: 0 32px;
  display: flex;
  align-items: center;
  height: 64px;
  position: sticky;
  top: 0;
  z-index: 100;
  gap: 0;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 13px;
  text-decoration: none;
  flex-shrink: 0;
}

.nav-logo img {
  width: 44px;
  height: 44px;
  object-fit: contain;
  image-rendering: pixelated;
  border-radius: 8px;
}

.nav-brand-name {
  font-family: 'Rajdhani', sans-serif;
  font-size: 21px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: 0.06em;
  line-height: 1;
}

.nav-brand-sub {
  font-size: 10px;
  color: var(--orange);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-top: 1px;
}

.nav-divider {
  width: 1px;
  height: 28px;
  background: var(--border);
  margin: 0 24px;
}

.nav-links {
  display: flex;
  gap: 4px;
}

.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 6px;
  transition: all 0.15s;
  letter-spacing: 0.03em;
}

.nav-links a:hover {
  color: var(--orange);
  background: rgba(255,255,255,0.04);
}

.nav-status {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--text-muted);
}

.pulse {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--orange);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(224,92,42,0.4); }
  50% { opacity: 0.8; box-shadow: 0 0 0 5px rgba(224,92,42,0); }
}

.hero {
  background: var(--bg2);
  border-bottom: 1px solid var(--border);
  padding: 36px 32px;
  display: flex;
  align-items: center;
  gap: 28px;
  position: relative;
  overflow: hidden;
}

.hero::after {
  content: '';
  position: absolute;
  right: -60px;
  top: -60px;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(192,57,43,0.06) 0%, transparent 70%);
  pointer-events: none;
}

.hero-logo {
  width: 88px;
  height: 88px;
  object-fit: contain;
  image-rendering: pixelated;
  flex-shrink: 0;
  border-radius: 12px;
  border: 1px solid var(--border-hot);
  padding: 4px;
  background: var(--bg3);
}

.hero-text h1 {
  font-family: 'Rajdhani', sans-serif;
  font-size: 30px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: 0.03em;
  line-height: 1.1;
}

.hero-text h1 span { color: var(--orange); }

.hero-text p {
  font-size: 14px;
  color: var(--text-muted);
  margin-top: 5px;
}

.hero-stats {
  margin-left: auto;
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}

.stat-pill {
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 20px;
  text-align: center;
  min-width: 76px;
  position: relative;
  overflow: hidden;
}

.stat-pill::before {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--red), var(--orange));
}

.stat-num {
  font-family: 'Rajdhani', sans-serif;
  font-size: 28px;
  font-weight: 700;
  color: var(--orange);
  line-height: 1;
}

.stat-lbl {
  font-size: 10px;
  color: var(--text-dim);
  margin-top: 3px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.main {
  max-width: 1080px;
  margin: 0 auto;
  padding: 28px 32px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.full { grid-column: 1 / -1; }

.section-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.section-label::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, var(--border) 60%, transparent);
}

.card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px 22px;
}

.server-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}

.server-row:last-child { border-bottom: none; }

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.dot-on {
  background: var(--orange);
  box-shadow: 0 0 8px rgba(224,92,42,0.6);
  animation: pulse 2.5s infinite;
}

.dot-off { background: #2a2a2a; }

.srv-info { flex: 1; min-width: 0; }

.srv-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.srv-meta {
  font-size: 11px;
  color: var(--text-dim);
  margin-top: 1px;
}

.srv-bar-wrap {
  height: 3px;
  background: var(--bg4);
  border-radius: 2px;
  margin-top: 6px;
  overflow: hidden;
}

.srv-bar {
  height: 3px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--red), var(--orange));
  width: 0%;
  transition: width 0.4s ease;
}

.srv-right { text-align: right; flex-shrink: 0; }

.srv-players {
  font-family: 'Rajdhani', sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: var(--orange);
}

.srv-players.off { color: var(--text-dim); }

.badge {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 4px;
  margin-top: 2px;
  letter-spacing: 0.04em;
}

.badge-on {
  background: rgba(192,57,43,0.12);
  color: var(--orange);
  border: 1px solid rgba(192,57,43,0.3);
}

.badge-off {
  background: rgba(255,255,255,0.03);
  color: var(--text-dim);
  border: 1px solid var(--border);
}

.news-row {
  padding: 11px 0;
  border-bottom: 1px solid var(--border);
}

.news-row:last-child { border-bottom: none; }

.news-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 3px;
}

.news-date {
  font-size: 10px;
  color: var(--text-dim);
  letter-spacing: 0.04em;
}

.news-tag {
  font-size: 9px;
  font-weight: 700;
  padding: 1px 7px;
  border-radius: 3px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.tag-update { background: rgba(192,57,43,0.12); color: var(--orange); border: 1px solid rgba(192,57,43,0.3); }
.tag-warn   { background: rgba(212,160,23,0.1); color: #d4a017; border: 1px solid rgba(212,160,23,0.3); }
.tag-new    { background: rgba(92,184,92,0.1); color: #5cb85c; border: 1px solid rgba(92,184,92,0.3); }

.news-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  line-height: 1.3;
}

.news-body {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 3px;
  line-height: 1.5;
}

.links-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 220px));
  gap: 10px;
  justify-content: center;
}

.link-card {
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 13px 15px;
  display: flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}

.link-card:hover {
  border-color: var(--red);
  background: rgba(192,57,43,0.05);
}

.link-icon {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: var(--bg4);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
  flex-shrink: 0;
}

.link-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.link-desc {
  font-size: 11px;
  color: var(--text-dim);
  margin-top: 1px;
}

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

.dnd-session {
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 14px;
  transition: border-color 0.15s;
}

.dnd-session.next {
  border-color: var(--border-hot);
  background: rgba(192,57,43,0.04);
}

.dnd-date-block {
  background: var(--bg4);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 8px 12px;
  text-align: center;
  flex-shrink: 0;
  min-width: 48px;
}

.dnd-session.next .dnd-date-block {
  border-color: rgba(192,57,43,0.4);
  background: rgba(192,57,43,0.08);
}

.dnd-day {
  font-family: 'Rajdhani', sans-serif;
  font-size: 24px;
  font-weight: 700;
  color: var(--orange);
  line-height: 1;
}

.dnd-month {
  font-size: 10px;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: 1px;
}

.dnd-info { flex: 1; min-width: 0; }

.dnd-campaign {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dnd-time {
  font-size: 11px;
  color: var(--text-dim);
  margin-top: 2px;
}

.dnd-note {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 2px;
  font-style: italic;
}

.dnd-badge-wrap { flex-shrink: 0; }

.badge-next {
  background: rgba(192,57,43,0.15);
  color: var(--orange);
  border: 1px solid rgba(192,57,43,0.4);
}

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

footer {
  text-align: center;
  padding: 20px 32px;
  color: var(--text-dim);
  font-size: 12px;
  border-top: 1px solid var(--border);
  margin-top: 8px;
}

footer span { color: var(--red); }

.admin-link {
  color: var(--text-dim);
  font-size: 11px;
  text-decoration: none;
  opacity: 0.5;
  transition: opacity 0.15s;
}
.admin-link:hover { opacity: 1; color: var(--orange); }

@media (max-width: 680px) {
  nav { padding: 0 16px; }
  .hero { padding: 24px 16px; flex-wrap: wrap; }
  .hero-stats { margin-left: 0; }
  .main { grid-template-columns: 1fr; padding: 16px; gap: 14px; }
  .full { grid-column: 1; }
  .links-grid { grid-template-columns: 1fr 1fr; }
  .nav-divider, .nav-status { display: none; }
}

.card { animation: fadeUp 0.3s ease both; }
.card:nth-child(1) { animation-delay: 0.05s; }
.card:nth-child(2) { animation-delay: 0.10s; }
.card:nth-child(3) { animation-delay: 0.15s; }

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}
