:root {
  --bg: #080808;
  --surface: #111111;
  --surface-2: #181818;
  --surface-3: #211a17;
  --text: #f4efe8;
  --muted: #a99f93;
  --line: rgba(255, 255, 255, 0.12);
  --red: #b22522;
  --red-bright: #e03a2f;
  --gold: #c09a4a;
  --green: #4ee48b;
  --blue: #57b8ff;
  --danger: #ff6961;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.62);
}

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

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  color: var(--text);
  font-family: Arial, Helvetica, sans-serif;
  background:
    linear-gradient(rgba(8, 8, 8, 0.94), rgba(8, 8, 8, 0.96)),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.035) 0 1px, transparent 1px 54px),
    #080808;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(90deg, rgba(178, 37, 34, 0.16), transparent 32%, rgba(192, 154, 74, 0.11));
}

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

button,
a {
  font: inherit;
}

.site-wrap {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(8, 8, 8, 0.94);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.42);
  backdrop-filter: blur(14px);
}

.top-strip {
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: #0c0c0c;
  color: var(--muted);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.top-strip-inner {
  min-height: 34px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.server-pulse {
  display: inline-flex;
  align-items: center;
  gap: 9px;
}

.status-dot {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  display: inline-block;
}

.status-online {
  background: var(--green);
  box-shadow: 0 0 18px rgba(78, 228, 139, 0.85);
}

.status-warning {
  background: var(--gold);
  box-shadow: 0 0 18px rgba(192, 154, 74, 0.85);
}

.nav-shell {
  min-height: 86px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 13px;
  min-width: 0;
}

.brand-mark {
  width: 58px;
  height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, var(--red-bright), #741714);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: #fff;
  font-weight: 900;
  letter-spacing: 0.08em;
  box-shadow: inset 0 0 0 2px rgba(0, 0, 0, 0.22), 0 12px 26px rgba(178, 37, 34, 0.32);
}

.brand-copy {
  display: grid;
  line-height: 1.05;
}

.brand-copy strong {
  font-size: 1.15rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.brand-copy small {
  color: var(--gold);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.nav-links a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  padding: 0 13px;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border-left: 1px solid rgba(255, 255, 255, 0.07);
}

.nav-links a:first-child {
  border-left: 0;
}

.nav-links a:hover {
  color: #fff;
  background: var(--red);
}

.account-link {
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid rgba(192, 154, 74, 0.45);
  background: linear-gradient(180deg, rgba(192, 154, 74, 0.2), rgba(192, 154, 74, 0.08));
  color: #f1d69a;
  font-weight: 900;
  text-transform: uppercase;
  cursor: not-allowed;
}

.hero {
  position: relative;
  min-height: 640px;
  display: flex;
  align-items: stretch;
  isolation: isolate;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  overflow: hidden;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: -2;
  background-image: url("/assets/community-hero.png");
  background-size: cover;
  background-position: center;
  transform: scale(1.02);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(8, 8, 8, 0.96) 0%, rgba(8, 8, 8, 0.78) 42%, rgba(8, 8, 8, 0.48) 100%),
    linear-gradient(0deg, #080808 0%, transparent 28%, transparent 72%, rgba(8, 8, 8, 0.92) 100%);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 28px;
  align-items: end;
  padding: 48px 0 64px;
}

.hero-copy {
  max-width: 790px;
}

.section-label,
.news-type {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  min-height: 26px;
  padding: 0 10px;
  background: rgba(178, 37, 34, 0.78);
  color: #fff;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: none;
}

h1 {
  max-width: 850px;
  margin: 18px 0 18px;
  font-size: clamp(2.25rem, 4.8vw, 4.6rem);
  line-height: 1.02;
  letter-spacing: 0;
  text-shadow: 0 8px 34px rgba(0, 0, 0, 0.72);
}

.hero-copy p,
.section-heading p,
.news-card p,
.login-panel p,
.match-card small,
.forum-row small,
.stat-box span,
.server-row small {
  color: var(--muted);
  line-height: 1.65;
}

.hero-copy p {
  max-width: 650px;
  margin-bottom: 28px;
  font-size: clamp(1rem, 1.8vw, 1.18rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.btn {
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 22px;
  border: 1px solid transparent;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.btn-primary {
  background: linear-gradient(180deg, var(--red-bright), var(--red));
  color: #fff;
  box-shadow: 0 16px 38px rgba(178, 37, 34, 0.36);
}

.btn-primary:hover {
  filter: brightness(1.12);
}

.btn-ghost {
  color: #f1d69a;
  border-color: rgba(192, 154, 74, 0.5);
  background: rgba(0, 0, 0, 0.32);
}

.login-panel,
.server-console,
.news-card,
.match-card,
.forum-list,
.stat-box {
  border: 1px solid var(--line);
  background: rgba(17, 17, 17, 0.88);
  box-shadow: var(--shadow);
}

.login-panel {
  padding: 22px;
  border-top: 4px solid var(--red);
}

.panel-title {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.panel-title strong {
  color: var(--gold);
}

.fake-form {
  display: grid;
  gap: 10px;
  margin-bottom: 16px;
}

.fake-form span,
.fake-form button {
  min-height: 44px;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.11);
  background: rgba(0, 0, 0, 0.34);
  color: var(--muted);
  text-align: left;
}

.fake-form button {
  border-color: rgba(192, 154, 74, 0.4);
  color: #f1d69a;
  text-align: center;
  font-weight: 900;
  text-transform: uppercase;
  cursor: not-allowed;
}

.portal-band {
  position: relative;
  padding: 66px 0;
}

.dark-band {
  background: rgba(255, 255, 255, 0.035);
  border-top: 1px solid rgba(255, 255, 255, 0.09);
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
}

.stats-band {
  padding: 0;
  margin-top: -34px;
  z-index: 5;
}

.stat-rack {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.stat-box {
  min-height: 112px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 20px;
  border-top: 4px solid var(--red);
}

.stat-box strong {
  margin-bottom: 6px;
  font-size: 1.35rem;
  text-transform: uppercase;
}

.two-column,
.forum-layout {
  display: grid;
  grid-template-columns: 0.36fr 1fr;
  gap: 30px;
  align-items: start;
}

.section-heading {
  position: sticky;
  top: 132px;
}

.wide-heading {
  position: static;
  margin-bottom: 22px;
}

.section-heading h2 {
  margin: 14px 0 12px;
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 0.98;
  text-transform: uppercase;
}

.server-console {
  padding: 8px 22px 12px;
}

.console-head {
  min-height: 58px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.server-row {
  min-height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 16px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
}

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

.server-row strong {
  display: block;
  margin-bottom: 4px;
  text-transform: uppercase;
}

.pill,
.match-status {
  flex: 0 0 auto;
  padding: 7px 10px;
  border: 1px solid var(--line);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.pill-online {
  color: var(--green);
  border-color: rgba(78, 228, 139, 0.42);
  background: rgba(78, 228, 139, 0.1);
}

.pill-offline {
  color: #ffaaa6;
  border-color: rgba(255, 105, 97, 0.48);
  background: rgba(255, 105, 97, 0.12);
}

.pill-neutral {
  color: #a9dfff;
  border-color: rgba(87, 184, 255, 0.42);
  background: rgba(87, 184, 255, 0.1);
}

.news-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.9fr 0.9fr;
  gap: 14px;
}

.news-card {
  min-height: 260px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 22px;
  background:
    linear-gradient(180deg, rgba(8, 8, 8, 0.22), rgba(8, 8, 8, 0.9)),
    repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.045) 0 1px, transparent 1px 18px),
    var(--surface-2);
}

.featured-news {
  min-height: 330px;
  border-top: 4px solid var(--red);
}

.news-card h3 {
  margin: 16px 0 10px;
  font-size: clamp(1.35rem, 2.4vw, 2rem);
  line-height: 1.08;
  text-transform: uppercase;
}

.event-board {
  display: grid;
  gap: 12px;
}

.match-card {
  min-height: 92px;
  display: grid;
  grid-template-columns: 72px 1fr auto;
  align-items: center;
  gap: 16px;
  padding: 16px;
  border-left: 4px solid var(--red);
}

.match-card strong {
  display: block;
  margin-bottom: 5px;
  text-transform: uppercase;
}

.match-date {
  min-height: 58px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--red);
  color: #fff;
  font-weight: 900;
  text-transform: uppercase;
}

.match-status {
  color: #f1d69a;
  border-color: rgba(192, 154, 74, 0.4);
}

.muted-match {
  border-left-color: var(--gold);
}

.forum-list {
  display: grid;
}

.forum-row {
  min-height: 86px;
  display: grid;
  grid-template-columns: 56px 1fr auto;
  align-items: center;
  gap: 16px;
  padding: 16px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
}

.forum-row:last-child {
  border-bottom: 0;
}

.forum-icon {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(192, 154, 74, 0.36);
  color: var(--gold);
  font-weight: 900;
}

.forum-row strong {
  display: block;
  margin-bottom: 4px;
  text-transform: uppercase;
}

.forum-row > span:last-child {
  color: var(--gold);
  font-size: 0.75rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.site-footer {
  position: relative;
  padding: 26px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  background: #080808;
  color: var(--muted);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 18px;
}

@media (max-width: 1020px) {
  .nav-shell {
    align-items: flex-start;
    flex-direction: column;
    padding: 16px 0;
  }

  .nav-links {
    width: 100%;
    overflow-x: auto;
  }

  .account-link {
    width: 100%;
  }

  .hero-grid,
  .two-column,
  .forum-layout {
    grid-template-columns: 1fr;
  }

  .section-heading {
    position: static;
  }

  .login-panel {
    max-width: 460px;
  }

  .stat-rack,
  .news-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .site-wrap {
    width: min(100% - 22px, 1180px);
  }

  .top-strip-inner,
  .footer-inner,
  .server-row,
  .console-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .hero {
    min-height: auto;
  }

  .hero-grid {
    padding: 36px 0 42px;
  }

  .stat-rack,
  .news-grid {
    grid-template-columns: 1fr;
  }

  .match-card,
  .forum-row {
    grid-template-columns: 1fr;
  }

  .match-date,
  .forum-icon {
    width: fit-content;
    min-width: 58px;
    padding: 0 14px;
  }

  .btn {
    width: 100%;
  }
}

@media (max-width: 460px) {
  .brand-copy strong {
    font-size: 0.95rem;
  }

  .hero-copy h1 {
    font-size: 2.65rem;
  }

  .login-panel,
  .server-console,
  .news-card,
  .match-card,
  .forum-row,
  .stat-box {
    padding: 16px;
  }
}



.discord-layout {
  display: grid;
  grid-template-columns: 0.42fr 1fr;
  gap: 30px;
  align-items: start;
}

.discord-card {
  min-height: 300px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 24px;
  border: 1px solid var(--line);
  border-top: 4px solid var(--red);
  background:
    linear-gradient(180deg, rgba(8, 8, 8, 0.22), rgba(8, 8, 8, 0.9)),
    repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.045) 0 1px, transparent 1px 18px),
    var(--surface-2);
  box-shadow: var(--shadow);
}

.discord-card h3 {
  margin: 16px 0 10px;
  font-size: clamp(1.45rem, 2.5vw, 2.2rem);
  line-height: 1.08;
}

.discord-card p {
  max-width: 650px;
  margin-bottom: 18px;
  color: var(--muted);
  line-height: 1.65;
}

@media (max-width: 1020px) {
  .discord-layout {
    grid-template-columns: 1fr;
  }
}


.hero-grid {
  grid-template-columns: minmax(0, 1fr);
}

.hero-copy {
  max-width: 760px;
}

.stat-rack {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

@media (max-width: 720px) {
  .stat-rack {
    grid-template-columns: 1fr;
  }
}
