:root {
  --bg: #090a0d;
  --bg-2: #101218;
  --card: #161922;
  --card-2: #1c212c;
  --line: rgba(255, 244, 230, 0.1);
  --text: #f4efe6;
  --muted: #b7b0a4;
  --faint: #7d776d;
  --orange: #e86240;
  --orange-2: #ff8a55;
  --amber: #f0b429;
  --green: #8fbf6a;
  --red: #c44949;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
  --radius: 18px;
  --max: 1120px;
  --nav: 74px;
  --font: "Manrope", "Segoe UI", sans-serif;
  --display: "Oswald", "Arial Narrow", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background:
    radial-gradient(1200px 500px at 90% -10%, rgba(232, 98, 64, 0.16), transparent 55%),
    radial-gradient(900px 400px at -10% 20%, rgba(143, 191, 106, 0.08), transparent 50%),
    var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
button, input { font: inherit; }
p { margin: 0 0 0.9rem; }
h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 500;
  letter-spacing: 0.02em;
  line-height: 1.05;
  margin: 0 0 0.6rem;
}

.wrap { width: min(var(--max), calc(100% - 40px)); margin: 0 auto; }
.kicker {
  color: var(--orange-2);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 0.7rem;
}
.lead { font-size: 1.12rem; color: var(--muted); max-width: 62ch; }
.muted { color: var(--muted); }
.faint { color: var(--faint); }

.nav {
  position: sticky;
  top: 0;
  z-index: 20;
  height: var(--nav);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 0 22px;
  background: rgba(9, 10, 13, 0.86);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand img { height: 38px; width: auto; }
.brand span {
  font-family: var(--display);
  letter-spacing: 0.08em;
  font-size: 1.15rem;
}
.nav-links { display: flex; align-items: center; gap: 6px; }
.nav-links a {
  text-decoration: none;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 650;
  padding: 8px 10px;
  border-radius: 999px;
}
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--text); background: rgba(255,255,255,0.05); }
.nav-links a.nav-cta {
  background: var(--orange);
  color: #1a0c07;
  margin-left: 6px;
}
.nav-toggle {
  display: none;
  background: transparent;
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 8px 10px;
}

.hero { position: relative; min-height: calc(100vh - var(--nav)); display: grid; align-items: end; }
.hero-bg {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center 30%;
  filter: saturate(0.85);
}
.hero-shade {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(9,10,13,0.25) 0%, rgba(9,10,13,0.55) 40%, rgba(9,10,13,0.94) 100%),
    linear-gradient(90deg, rgba(9,10,13,0.75), transparent 60%);
}
.hero-inner { position: relative; padding: 72px 0 48px; }
.hero h1 { font-size: clamp(3.2rem, 8vw, 6.4rem); max-width: 12ch; text-transform: uppercase; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 1.4rem; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  text-decoration: none; border: 0; cursor: pointer;
  background: var(--orange); color: #1a0c07;
  font-weight: 800; padding: 12px 18px; border-radius: 999px;
}
.btn:hover { background: var(--orange-2); }
.btn-ghost { background: transparent; color: var(--text); border: 1px solid var(--line); }
.btn-ghost:hover { background: rgba(255,255,255,0.06); }
.btn-small { padding: 8px 12px; font-size: 0.88rem; }

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 42px;
}
.stat {
  background: rgba(16, 18, 24, 0.78);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 18px 16px;
  box-shadow: var(--shadow);
}
.stat strong {
  display: block;
  font-family: var(--display);
  font-size: 1.7rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}
.stat span { color: var(--muted); font-size: 0.95rem; }
.stat:nth-child(1) { border-top: 3px solid #1f6b32; }
.stat:nth-child(2) { border-top: 3px solid #111; box-shadow: inset 0 3px 0 #2a2a2a, var(--shadow); }
.stat:nth-child(3) { border-top: 3px solid #8b0000; }

.section { padding: 84px 0; }
.section-head { display: flex; justify-content: space-between; gap: 24px; align-items: end; margin-bottom: 28px; }
.section h2 { font-size: clamp(2.2rem, 4vw, 3.4rem); text-transform: uppercase; }

.split { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 42px; align-items: start; }
.story p:last-child { margin-bottom: 0; }
.pull {
  margin-top: 22px;
  padding: 18px 18px 8px;
  border-left: 3px solid var(--orange);
  background: linear-gradient(90deg, rgba(232,98,64,0.12), transparent);
  border-radius: 0 14px 14px 0;
}

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.cards-2 { grid-template-columns: repeat(2, 1fr); }
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
}
.card h3 { font-size: 1.55rem; text-transform: uppercase; }
.card a { color: var(--orange-2); }

.team { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 16px; }
.member {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.member-photo {
  height: 240px;
  background: #0c0e13 center top / cover no-repeat;
  border-bottom: 1px solid var(--line);
}
.member-body { padding: 16px 16px 18px; }
.member h3 { font-size: 1.45rem; text-transform: uppercase; margin-bottom: 0; }
.member .role { color: var(--amber); font-weight: 700; margin: 4px 0 12px; }
.member a { color: var(--orange-2); font-weight: 700; text-decoration: none; }

.server {
  display: grid;
  grid-template-columns: 1.2fr 280px;
  gap: 18px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  margin-bottom: 16px;
}
.server h3 { font-size: 1.8rem; text-transform: uppercase; }
.connect {
  display: flex; flex-wrap: wrap; gap: 8px; align-items: center;
  background: #0c0e13; border: 1px solid var(--line); border-radius: 12px;
  padding: 8px 8px 8px 12px; margin: 10px 0 12px;
}
.connect code { font-size: 0.95rem; color: var(--amber); }
.tracker { background: #0c0e13; border-radius: 12px; overflow: hidden; min-height: 280px; }
.tracker iframe { width: 100%; border: 0; display: block; }
.note {
  background: rgba(240, 180, 41, 0.08);
  border: 1px solid rgba(240, 180, 41, 0.28);
  color: #f3e2b8;
  border-radius: 14px;
  padding: 14px 16px;
  margin-bottom: 18px;
}
.legacy { display: grid; gap: 10px; }
.legacy img { width: 100%; height: auto; border-radius: 10px; background: #111; }

.years { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
.years a, .years button {
  background: transparent; color: var(--muted);
  border: 1px solid var(--line); border-radius: 999px;
  padding: 8px 14px; text-decoration: none; cursor: pointer; font-weight: 750;
}
.years a[aria-current="true"], .years button[aria-current="true"], .years a:hover, .years button:hover {
  color: #1a0c07; background: var(--orange); border-color: var(--orange);
}
.panel { display: none; }
.panel.active { display: block; }

.schedule { width: 100%; border-collapse: collapse; margin: 12px 0 20px; font-size: 0.95rem; }
.schedule th, .schedule td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.schedule th { color: var(--amber); font-weight: 750; width: 90px; }

.rules { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.poster { border-radius: 16px; border: 1px solid var(--line); }

.gallery { columns: 3 220px; column-gap: 10px; }
.gallery button {
  display: block; width: 100%; padding: 0; margin: 0 0 10px;
  border: 0; background: transparent; cursor: zoom-in; break-inside: avoid;
}
.gallery img { width: 100%; border-radius: 12px; }

.sponsors { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; align-items: center; }
.sponsors figure, .sponsor-row figure {
  margin: 0; background: #f6f1e8; border-radius: 14px; padding: 10px;
}
.sponsors img, .sponsor-row img { width: 100%; height: 160px; object-fit: contain; }
.sponsor-row { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 12px; margin-top: 16px; }
.sponsors figcaption, .sponsor-row figcaption { color: #3c342c; font-size: 0.75rem; text-align: center; margin-top: 6px; }

.product {
  display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 28px; align-items: center;
}
.product img { border-radius: 18px; border: 1px solid var(--line); background: #fff; }
.price { font-family: var(--display); font-size: 3rem; color: var(--amber); }
.video {
  position: relative; padding-top: 56.25%; border-radius: 18px; overflow: hidden;
  border: 1px solid var(--line); background: #000; margin: 12px 0 18px;
}
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

.links { display: flex; flex-wrap: wrap; gap: 10px; }
.footer {
  border-top: 1px solid var(--line);
  padding: 28px 0 40px;
  color: var(--faint);
  font-size: 0.92rem;
}
.footer .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.footer a { color: var(--muted); }

.lightbox {
  position: fixed; inset: 0; z-index: 40;
  background: rgba(0,0,0,0.88);
  display: none; align-items: center; justify-content: center;
  padding: 24px;
}
.lightbox.open { display: flex; }
.lightbox img { max-width: min(1100px, 100%); max-height: 88vh; border-radius: 12px; }
.lightbox button {
  position: absolute; top: 16px; right: 16px;
  background: #fff; color: #111; border: 0; border-radius: 999px;
  width: 40px; height: 40px; font-size: 1.3rem; cursor: pointer;
}

@media (max-width: 900px) {
  .nav-toggle { display: inline-flex; }
  .nav-links {
    display: none; position: absolute; top: var(--nav); left: 0; right: 0;
    flex-direction: column; align-items: stretch;
    background: #101218; border-bottom: 1px solid var(--line); padding: 10px;
  }
  .nav-links.open { display: flex; }
  .stats, .split, .cards, .cards-2, .rules, .product, .server, .sponsors { grid-template-columns: 1fr; }
  .section-head { flex-direction: column; align-items: start; }
  .hero { min-height: auto; }
  .hero h1 { font-size: 3.1rem; }
}
