:root {
  --bg: #050706;
  --bg-elevated: rgba(10, 16, 12, 0.72);
  --bg-card: rgba(255, 255, 255, 0.06);
  --line: rgba(153, 255, 153, 0.16);
  --line-strong: rgba(124, 255, 124, 0.34);
  --accent: #32cd32;
  --accent-2: #7cff7c;
  --accent-dark: #176d17;
  --text: #f3f7f2;
  --muted: #aeb8ad;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
  --radius: 24px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }
html, body { min-height: 100%; }

body {
  margin: 0;
  font-family: "Rajdhani", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background: var(--bg);
  -webkit-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -3;
  background:
    radial-gradient(circle at 15% 15%, rgba(50, 205, 50, 0.18), transparent 34%),
    radial-gradient(circle at 82% 24%, rgba(124, 255, 124, 0.10), transparent 32%),
    linear-gradient(145deg, #030403 0%, #09100b 48%, #020302 100%);
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  opacity: 0.38;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px);
  background-size: 54px 54px;
  mask-image: linear-gradient(to bottom, transparent 0%, #000 16%, #000 76%, transparent 100%);
}

.page {
  min-height: 100vh;
  position: relative;
  overflow: hidden;
}

.page::before {
  content: "";
  position: absolute;
  inset: -20%;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(720px 420px at 72% 28%, rgba(50, 205, 50, 0.16), transparent 70%),
    radial-gradient(520px 320px at 10% 80%, rgba(124, 255, 124, 0.10), transparent 70%);
  filter: blur(8px);
}

.page::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.04), transparent 18%),
    radial-gradient(900px 160px at 50% 0%, rgba(124,255,124,0.12), transparent 70%);
}

.nav {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: min(1180px, calc(100% - 40px));
  margin: 20px auto 0;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(5, 7, 6, 0.68);
  box-shadow: 0 18px 60px rgba(0,0,0,0.32);
  backdrop-filter: blur(18px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  letter-spacing: 1.8px;
  min-width: max-content;
}

.brand-logo {
  width: 46px;
  height: 46px;
  object-fit: contain;
  display: block;
  border-radius: 14px;
  filter: drop-shadow(0 0 16px rgba(50, 205, 50, 0.35));
}

.brand-text {
  font-size: 19px;
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;
  color: #fff;
}

.nav-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  flex-wrap: wrap;
  font-size: 14px;
}

.nav a {
  color: var(--muted);
  text-decoration: none;
  letter-spacing: 0.35px;
  transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}

.nav-links a {
  padding: 10px 12px;
  border-radius: 999px;
}

.nav a:hover,
.nav a[aria-current="page"] {
  color: var(--text);
  background: rgba(255,255,255,0.07);
}

.btn {
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 700;
  font-size: 12px;
  padding: 12px 18px;
  border-radius: 999px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid transparent;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-outline {
  border-color: var(--line-strong);
  color: var(--text);
  background: rgba(50, 205, 50, 0.08);
  box-shadow: inset 0 0 24px rgba(50,205,50,0.06);
}

.btn-outline:hover { border-color: var(--accent-2); }

.btn-solid {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
  color: #031105;
  box-shadow: 0 14px 42px rgba(50, 205, 50, 0.28);
}

.btn-ghost {
  border-color: rgba(255,255,255,0.16);
  color: var(--text);
  background: rgba(255,255,255,0.045);
}

.hero {
  position: relative;
  z-index: 1;
  min-height: calc(100vh - 92px);
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: clamp(64px, 10vh, 120px) 0 72px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 52px;
  align-items: center;
}

.hero-content {
  max-width: 760px;
  animation: rise 0.9s cubic-bezier(.2,.8,.2,1) both;
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--line);
  box-shadow: inset 0 0 24px rgba(255,255,255,0.025);
  padding: 8px 13px;
  border-radius: 999px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
  backdrop-filter: blur(10px);
}

.tag .dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 5px rgba(50,205,50,0.12), 0 0 18px rgba(50, 205, 50, 0.95);
}

h1 {
  font-family: "Bebas Neue", Impact, "Arial Narrow", sans-serif;
  font-size: clamp(58px, 10vw, 142px);
  line-height: 0.86;
  letter-spacing: 7px;
  margin: 24px 0 22px;
}

.hero-title {
  color: #ffffff;
  text-shadow: 0 20px 80px rgba(0,0,0,0.45);
}

.hero-title .MEDUSA,
.hero-title .alpha {
  margin-left: 0;
  font-family: "Bebas Neue", Impact, "Arial Narrow", sans-serif;
  text-shadow: 0 0 54px rgba(50, 205, 50, 0.42);
  background: linear-gradient(180deg, #f7fff7 0%, #7cff7c 42%, #32cd32 100%);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-title .rp {
  color: #ffffff;
  background: none;
  -webkit-text-fill-color: #ffffff;
}

.hero p {
  color: var(--muted);
  font-size: clamp(16px, 1.4vw, 19px);
  line-height: 1.75;
  max-width: 620px;
}

.actions {
  margin-top: 30px;
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.hero-credits {
  display: grid;
  gap: 12px;
  width: min(100%, 320px);
  justify-self: end;
  align-self: center;
  animation: rise 1.05s cubic-bezier(.2,.8,.2,1) both;
  animation-delay: 0.15s;
}

.stat {
  position: relative;
  min-height: 94px;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(145deg, rgba(255,255,255,0.08), rgba(255,255,255,0.035));
  box-shadow: var(--shadow);
  overflow: hidden;
  backdrop-filter: blur(18px);
}

.stat::after {
  content: "";
  position: absolute;
  inset: auto -25% -55% auto;
  width: 170px;
  height: 170px;
  border-radius: 50%;
  background: rgba(50,205,50,0.14);
  filter: blur(18px);
}

.stat .label {
  display: block;
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 1.4px;
  text-transform: uppercase;
}

.stat .value {
  display: block;
  color: var(--text);
  font-family: "Bebas Neue", Impact, "Arial Narrow", sans-serif;
  font-size: clamp(26px, 4vw, 32px);
  letter-spacing: 2px;
  margin-top: 10px;
}

.divider { display: none; }

.rules-page .hero,
.rules-page .hero-credits { display: none; }

.rules {
  position: relative;
  z-index: 1;
  min-height: calc(100vh - 100px);
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  padding: clamp(56px, 8vh, 88px) 0 72px;
  text-align: center;
}

.rules h1 {
  font-family: "Bebas Neue", Impact, "Arial Narrow", sans-serif;
  font-size: clamp(52px, 8vw, 104px);
  letter-spacing: 6px;
  line-height: 0.95;
  margin: 10px 0 14px;
  background: linear-gradient(180deg, #fff 0%, #7cff7c 76%);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.rules-subtitle {
  font-family: "Bebas Neue", Impact, "Arial Narrow", sans-serif;
  font-size: clamp(34px, 5vw, 58px);
  letter-spacing: 4px;
  margin: 46px 0 18px;
}

.rules-intro {
  color: var(--muted);
  max-width: 700px;
  margin: 0 auto 38px;
  font-size: 18px;
  line-height: 1.7;
}

.accordion {
  max-width: 980px;
  margin: 0 auto 42px;
  display: grid;
  gap: 14px;
}

.accordion details {
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--bg-elevated);
  box-shadow: 0 16px 60px rgba(0,0,0,0.28);
  overflow: hidden;
  backdrop-filter: blur(16px);
}

.accordion details[open] {
  border-color: var(--line-strong);
}

.accordion summary {
  list-style: none;
  cursor: pointer;
  padding: 22px 24px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  text-align: left;
}

.accordion summary::-webkit-details-marker { display: none; }
.accordion summary::marker { display: none; }

.accordion summary::after {
  content: "";
  width: 11px;
  height: 11px;
  border-right: 2px solid var(--accent-2);
  border-bottom: 2px solid var(--accent-2);
  transform: rotate(45deg);
  transition: transform 0.22s ease;
  flex: 0 0 auto;
}

.accordion details[open] summary::after { transform: rotate(-135deg); }
.accordion summary.danger { color: var(--accent-2); }

.accordion .panel {
  padding: 0 24px 24px;
  color: var(--muted);
  text-align: left;
  border-top: 1px solid rgba(255,255,255,0.08);
}

.accordion .panel p,
.rules-raw {
  margin: 18px 0 0;
  color: var(--muted);
  line-height: 1.72;
  font-size: 16px;
}

.accordion strong { color: var(--text); }

.rules-raw {
  white-space: pre-wrap;
  font: inherit;
}

.team-grid {
  width: min(1120px, 100%);
  margin: 0 auto 42px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
  align-items: stretch;
}

.team-card {
  position: relative;
  min-height: 320px;
  padding: 30px 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(145deg, rgba(255,255,255,0.08), rgba(255,255,255,0.035));
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  backdrop-filter: blur(18px);
}

.team-card::before {
  content: "";
  position: absolute;
  inset: -1px;
  background: radial-gradient(260px 160px at 50% 8%, rgba(50,205,50,0.18), transparent 70%);
  pointer-events: none;
}

.team-card-image {
  width: 118px;
  height: 118px;
  object-fit: cover;
  border-radius: 50%;
  display: block;
  margin: 0 auto 24px;
  border: 1px solid var(--line-strong);
  box-shadow: 0 0 34px rgba(50, 205, 50, 0.18);
  overflow: hidden;
  flex-shrink: 0;
  position: relative;
}

.team-card-role {
  color: var(--accent-2);
  font-family: "Bebas Neue", Impact, "Arial Narrow", sans-serif;
  font-size: clamp(24px, 2.2vw, 30px);
  letter-spacing: 2.5px;
  margin-bottom: 8px;
  flex-shrink: 0;
  position: relative;
}

.team-card-name {
  margin-top: 6px;
  color: var(--text);
  font-family: "Bebas Neue", Impact, "Arial Narrow", sans-serif;
  font-size: clamp(38px, 4vw, 54px);
  letter-spacing: 4px;
  flex-shrink: 0;
  position: relative;
}

.team-card-center { justify-self: stretch; }

.rules-footer {
  max-width: 980px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  padding: 18px 22px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255,255,255,0.045);
  font-size: 12px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--accent-2);
  backdrop-filter: blur(12px);
}

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

@media (max-width: 1180px) {
  .team-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 1020px) {
  .nav {
    position: relative;
    border-radius: 28px;
    flex-direction: column;
    align-items: stretch;
  }

  .brand { justify-content: center; }
  .nav-links { gap: 6px; }
  .nav .btn { align-self: center; }

  .hero {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .hero-credits {
    width: 100%;
    max-width: none;
    justify-self: stretch;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .nav,
  .hero,
  .rules { width: min(100% - 28px, 1180px); }

  .nav-links { font-size: 12px; }
  .nav-links a { padding: 9px 10px; }

  h1 { letter-spacing: 4px; }

  .hero {
    padding-top: 48px;
    padding-bottom: 46px;
  }

  .hero-credits {
    grid-template-columns: 1fr;
    width: min(100%, 360px);
    justify-self: center;
  }

  .team-grid { grid-template-columns: 1fr; }

  .stat {
    min-height: 88px;
    padding: 16px 18px;
  }
  .rules-footer { justify-content: center; text-align: center; }
}
