:root {
  --egl-bg-0: #070912;
  --egl-bg-1: #11152a;
  --egl-bg-2: #1f1242;
  --egl-card: rgba(16, 20, 34, 0.68);
  --egl-card-strong: rgba(18, 22, 40, 0.86);
  --egl-line: rgba(167, 139, 250, 0.3);
  --egl-neon-1: #8b5cf6;
  --egl-neon-2: #3b82f6;
  --egl-text: #edf1ff;
  --egl-muted: #a4add0;
  --egl-success: #22c55e;
  --egl-warn: #f59e0b;
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body {
  font-family: 'Inter', sans-serif;
  color: var(--egl-text);
  background: linear-gradient(160deg, var(--egl-bg-0), var(--egl-bg-1) 45%, var(--egl-bg-2));
  position: relative;
}

body::before {
  content: '';
  position: fixed;
  inset: -8px;
  z-index: -2;
  background-image: url('../images/bg.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  filter: blur(5px) brightness(0.68);
  transform: scale(1.03);
}

body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(900px 480px at 12% 10%, rgba(139, 92, 246, 0.2), transparent 70%),
    radial-gradient(1100px 520px at 88% 4%, rgba(59, 130, 246, 0.14), transparent 70%),
    linear-gradient(160deg, rgba(7, 9, 18, 0.22), rgba(17, 21, 42, 0.3) 45%, rgba(31, 18, 66, 0.35));
}

#egl-particles {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: 0.6;
  z-index: 0;
}

.egl-shell {
  position: relative;
  z-index: 1;
  width: min(1160px, calc(100% - 2rem));
  margin: 2rem auto;
  min-height: calc(100vh - 4rem);
  display: grid;
  grid-template-columns: 0.82fr 1.35fr;
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 26px 60px rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(10px);
}

.egl-left,
.egl-right {
  padding: clamp(1rem, 2.1vw, 2rem);
}

.egl-left {
  background:
    linear-gradient(130deg, rgba(255, 255, 255, 0.05), transparent 50%),
    repeating-linear-gradient(125deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.04) 1px, transparent 1px, transparent 12px),
    linear-gradient(140deg, rgba(139, 92, 246, 0.15), rgba(59, 130, 246, 0.08));
  border-right: 1px solid rgba(255, 255, 255, 0.08);
}

.egl-right {
  background: linear-gradient(160deg, rgba(10, 10, 26, 0.9), rgba(23, 19, 48, 0.88));
}

.egl-brand {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  margin-bottom: 1.4rem;
}

.egl-discord-btn {
  margin-left: auto;
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 11px;
  color: #e8edff;
  text-decoration: none;
  border: 1px solid rgba(139, 92, 246, 0.5);
  background: linear-gradient(135deg, rgba(88, 101, 242, 0.35), rgba(59, 130, 246, 0.25));
  box-shadow: 0 0 18px rgba(88, 101, 242, 0.28);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.egl-discord-btn i {
  font-size: 1rem;
}

.egl-discord-btn:hover {
  transform: translateY(-2px);
  border-color: rgba(88, 101, 242, 0.8);
  box-shadow: 0 0 24px rgba(88, 101, 242, 0.42);
}

.egl-logo {
  width: 42px;
  height: 42px;
  object-fit: contain;
}

.egl-kicker {
  margin: 0;
  letter-spacing: 0.22em;
  font-size: 0.62rem;
  color: var(--egl-muted);
}

.egl-title {
  margin: 0.2rem 0;
  font-family: 'Orbitron', sans-serif;
  font-size: clamp(1.2rem, 1.9vw, 1.6rem);
  color: #ffffff;
  text-shadow: 0 0 14px rgba(139, 92, 246, 0.4);
}

.egl-subtitle {
  margin: 0;
  font-weight: 600;
  font-size: 0.86rem;
  color: #d7ddff;
}

.egl-intro-card {
  margin: 1.2rem 0 1.5rem;
  padding: 1rem;
  border-radius: 18px;
  background: var(--egl-card);
  border: 1px solid var(--egl-line);
}

.egl-season {
  display: inline-block;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  font-weight: 700;
  color: #d1bbff;
  background: rgba(139, 92, 246, 0.2);
  border: 1px solid rgba(139, 92, 246, 0.45);
  border-radius: 999px;
  padding: 0.32rem 0.6rem;
}

.egl-intro-card h2 {
  margin: 0.9rem 0 0.7rem;
  font-size: clamp(1.3rem, 2.1vw, 2rem);
  line-height: 1.08;
}

.egl-intro-card p {
  margin: 0;
  color: #c7cdec;
  line-height: 1.5;
  font-size: 0.92rem;
}

.egl-news {
  margin-top: 1rem;
}

.egl-news h3 {
  margin: 0 0 0.7rem;
  font-size: 1rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #dce3ff;
}

.egl-news-list {
  display: grid;
  gap: 0.65rem;
}

.egl-news-item {
  display: grid;
  grid-template-columns: 78px 1fr;
  gap: 0.65rem;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.11);
  background: rgba(11, 14, 26, 0.58);
  overflow: hidden;
}

.egl-news-thumb {
  width: 100%;
  height: 100%;
  min-height: 86px;
  object-fit: cover;
}

.egl-news-body {
  padding: 0.55rem 0.6rem 0.6rem 0;
}

.egl-news-body h4 {
  margin: 0;
  font-size: 0.86rem;
}

.egl-news-body p {
  margin: 0.35rem 0 0.5rem;
  color: #b8c3eb;
  font-size: 0.8rem;
  line-height: 1.35;
}

.egl-news-btn {
  display: inline-block;
  text-decoration: none;
  border-radius: 999px;
  border: 1px solid rgba(139, 92, 246, 0.55);
  padding: 0.22rem 0.6rem;
  font-size: 0.72rem;
  color: #d9ceff;
  background: rgba(139, 92, 246, 0.16);
}

.egl-news-btn:hover {
  border-color: rgba(139, 92, 246, 0.85);
  box-shadow: 0 0 14px rgba(139, 92, 246, 0.25);
}

.egl-panel-head p {
  margin: 0;
  letter-spacing: 0.25em;
  font-size: 0.72rem;
  color: var(--egl-muted);
}

.egl-panel-head h3 {
  margin: 0.35rem 0 1rem;
  font-size: clamp(1.55rem, 2.4vw, 2.2rem);
}

.egl-panel-head--focus {
  text-align: center;
  margin-bottom: 1rem;
}

.egl-focus-sub {
  margin: -0.2rem 0 0;
  color: #aeb8e0;
  font-size: 0.82rem;
}

.egl-server-list {
  display: grid;
  gap: 1rem;
}

.egl-server-card {
  display: grid;
  grid-template-columns: 132px 1fr;
  gap: 0.95rem;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: var(--egl-card-strong);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.34);
  overflow: hidden;
  transition: transform 0.26s ease, box-shadow 0.26s ease, border-color 0.26s ease;
  transform-style: preserve-3d;
}

.egl-server-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 25%, rgba(255, 255, 255, 0.14) 45%, transparent 65%);
  transform: translateX(-120%);
  transition: transform 0.55s ease;
  pointer-events: none;
}

.egl-server-card:hover {
  transform: translateY(-5px) scale(1.01);
  border-color: rgba(139, 92, 246, 0.6);
  box-shadow: 0 18px 36px rgba(59, 130, 246, 0.26), 0 0 0 1px rgba(139, 92, 246, 0.25);
}

.egl-server-card:hover::before {
  transform: translateX(130%);
}

.egl-server-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 132px;
  transition: transform 0.35s ease, filter 0.35s ease;
}

.egl-server-card:hover .egl-server-thumb {
  transform: scale(1.06);
  filter: saturate(1.08) brightness(1.04);
}

.egl-server-body { padding: 0.75rem 0.8rem 0.8rem 0; }

.egl-server-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.egl-server-top h4 {
  margin: 0;
  font-size: 1rem;
}

.egl-tag {
  font-size: 0.66rem;
  letter-spacing: 0.09em;
  font-weight: 700;
  border-radius: 999px;
  padding: 0.25rem 0.5rem;
  border: 1px solid;
}

.is-online .egl-tag {
  color: #adffd0;
  border-color: rgba(34, 197, 94, 0.5);
  background: rgba(34, 197, 94, 0.18);
}

.is-offline .egl-tag {
  color: #ffd9a8;
  border-color: rgba(245, 158, 11, 0.48);
  background: rgba(245, 158, 11, 0.14);
}

.egl-server-body p {
  margin: 0.55rem 0 0.8rem;
  color: #b9c0e0;
  font-size: 0.9rem;
  line-height: 1.45;
}

.egl-open-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.9rem;
  padding: 0.62rem 0.85rem;
  color: #eef2ff;
  background: linear-gradient(135deg, var(--egl-neon-1), var(--egl-neon-2));
  box-shadow: 0 0 20px rgba(139, 92, 246, 0.35);
  transition: filter 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.egl-open-btn:hover {
  filter: brightness(1.1);
  transform: translateY(-1px);
  box-shadow: 0 0 26px rgba(139, 92, 246, 0.55);
}

.is-offline .egl-open-btn {
  background: linear-gradient(135deg, #51456f, #3c4d77);
  box-shadow: none;
}

.egl-focus-note {
  margin: 1rem 0 0;
  font-size: 0.86rem;
  color: #b5c0eb;
  text-align: center;
  letter-spacing: 0.02em;
}

@media (max-width: 980px) {
  .egl-shell {
    grid-template-columns: 1fr;
    margin: 1rem auto;
  }

  .egl-left {
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }
}

@media (max-width: 640px) {
  .egl-brand { flex-wrap: wrap; }
  .egl-discord-btn { margin-left: 0; }
  .egl-server-card { grid-template-columns: 1fr; }
  .egl-server-thumb { height: 150px; }
  .egl-server-body { padding: 0.85rem; }
  .egl-intro-card p { font-size: 0.86rem; }
  .egl-focus-sub { font-size: 0.76rem; }
  .egl-news-item { grid-template-columns: 1fr; }
  .egl-news-thumb { height: 120px; }
  .egl-news-body { padding: 0.65rem; }
}
