:root {
  --bg: #0a0b0c;
  --bg2: #1a1b1d;
  --fog: rgba(200, 200, 200, 0.08);
  --blood: #e11212;
  --blood-dark: #7a0606;
  --blood-soft: #ff4a4a;
  --text: #e6e1dc;
  --muted: #b5b0aa;
}

* {
  box-sizing: border-box;
}

html, body {
  height: 100%;
}

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

.page {
  min-height: 100vh;
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(1200px 600px at 70% 10%, rgba(255,255,255,0.08), transparent 60%),
    linear-gradient(180deg, rgba(0,0,0,0.7) 0%, rgba(10,10,10,0.4) 40%, rgba(0,0,0,0.85) 100%),
    linear-gradient(120deg, #0b0b0c 0%, #161617 50%, #0b0b0c 100%);
}

.page::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(180deg, rgba(0,0,0,0.4), rgba(0,0,0,0.95)),
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='1600' height='900'><rect width='1600' height='900' fill='none'/><g fill='%23111111'><rect x='40' y='160' width='180' height='520'/><rect x='250' y='110' width='140' height='570'/><rect x='440' y='190' width='230' height='500'/><rect x='720' y='140' width='200' height='560'/><rect x='960' y='200' width='260' height='500'/><rect x='1280' y='150' width='200' height='550'/></g></svg>");
  background-size: cover;
  opacity: 0.55;
  filter: blur(1px);
  pointer-events: none;
}

.page::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(800px 300px at 30% 80%, rgba(212, 10, 10, 0.18), transparent 60%),
    radial-gradient(600px 200px at 60% 30%, rgba(255, 255, 255, 0.07), transparent 70%),
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='2' stitchTiles='stitch'/></filter><rect width='200' height='200' filter='url(%23n)' opacity='0.08'/></svg>");
  background-size: cover, cover, 200px 200px;
  mix-blend-mode: screen;
  pointer-events: none;
}

.nav {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 26px 6vw 10px;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  font-weight: 700;
  letter-spacing: 1.8px;
  padding: 0;
}

.brand-logo {
  width: 56px;
  height: 56px;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 10px 18px rgba(225, 18, 18, 0.28));
}

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

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

.nav a {
  color: var(--muted);
  text-decoration: none;
  letter-spacing: 0.4px;
  transition: color 0.2s ease;
}

.nav a:hover {
  color: var(--text);
}

.btn {
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 600;
  font-size: 12px;
  padding: 10px 18px;
  border-radius: 4px;
  text-decoration: none;
  display: inline-block;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

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

.btn-outline {
  border: 1px solid var(--blood);
  color: var(--text);
  box-shadow: 0 0 0 rgba(0,0,0,0);
}

.btn-solid {
  background: var(--blood);
  color: #fff;
  box-shadow: 0 10px 30px rgba(212, 10, 10, 0.25);
}

.btn-ghost {
  border: 1px solid rgba(255,255,255,0.2);
  color: var(--text);
}

.hero {
  position: relative;
  z-index: 1;
  min-height: calc(100vh - 100px);
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-content: center;
  padding: 8vh 6vw 10vh;
}

.hero-content {
  max-width: 680px;
  animation: rise 0.9s ease both;
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(0,0,0,0.4);
  border: 1px solid rgba(255,255,255,0.15);
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.tag .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--blood);
  box-shadow: 0 0 10px rgba(177, 19, 19, 0.8);
}

h1 {
  font-family: "Bebas Neue", sans-serif;
  font-size: clamp(52px, 8vw, 120px);
  letter-spacing: 6px;
  margin: 18px 0 14px;
}

.hero-title {
  color: #ffffff;
}

.hero-title .alpha {
  margin-left: 0;
  font-family: "Bebas Neue", sans-serif;
  text-shadow: 0 0 5.33854vw rgba(233, 10, 10, 0.35);
  background: linear-gradient(180deg, #e90a0a 0%, rgba(233, 10, 10, 0) 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: 16px;
  line-height: 1.6;
  max-width: 520px;
}

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

.hero-credits {
  margin-top: 16vh;
  display: flex;
  gap: 18px;
  align-items: center;
  flex-wrap: wrap;
  font-size: 12px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--muted);
  animation: rise 1.1s ease both;
  animation-delay: 0.2s;
}

.stat .value {
  display: block;
  color: var(--text);
  font-size: 14px;
  margin-top: 6px;
}

.divider {
  width: 1px;
  height: 26px;
  background: rgba(255,255,255,0.1);
}

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

@media (max-width: 1000px) {
  .nav {
    flex-direction: column;
    align-items: flex-start;
  }

  .nav-links {
    gap: 12px;
  }
}

@media (max-width: 720px) {
  .nav {
    padding: 18px 6vw 8px;
  }

  .nav-links {
    font-size: 12px;
  }

  .hero {
    padding-top: 6vh;
  }

  .divider {
    display: none;
  }
}

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

.rules {
  position: relative;
  z-index: 1;
  min-height: calc(100vh - 100px);
  padding: 6vh 12vw 8vh;
  text-align: center;
}

.rules h1 {
  font-family: "Bebas Neue", sans-serif;
  font-size: clamp(46px, 7vw, 90px);
  letter-spacing: 5px;
  margin: 10px 0 8px;
}

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

.rules-intro {
  color: var(--muted);
  max-width: 640px;
  margin: 0 auto 36px;
}

.accordion {
  max-width: 900px;
  margin: 0 auto 40px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.accordion details {
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(0, 0, 0, 0.2);
}

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

.accordion summary::marker {
  display: none;
}

.accordion summary::after {
  content: "";
  width: 10px;
  height: 10px;
  border-right: 2px solid rgba(255, 255, 255, 0.4);
  border-bottom: 2px solid rgba(255, 255, 255, 0.4);
  transform: rotate(45deg);
  margin-left: auto;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.accordion details[open] summary::after {
  transform: rotate(-135deg);
  border-color: var(--blood-soft);
}

.accordion summary.danger {
  color: var(--blood-soft);
}

.accordion .panel {
  padding: 0 22px 22px;
  color: var(--muted);
  text-align: left;
}

.rules-raw {
  margin: 0;
  white-space: pre-wrap;
  font: inherit;
  color: var(--muted);
  line-height: 1.65;
}

.team-grid {
  width: min(980px, 100%);
  margin: 0 auto 40px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 26px;
}

.team-card {
  padding: 32px 24px;
}

.team-card-center {
  grid-column: 1 / -1;
  justify-self: center;
}

.team-card-image {
  width: 120px;
  height: 120px;
  object-fit: cover;
  display: block;
  margin: 0 auto 20px;
}

.team-card-role {
  color: var(--blood-soft);
  font-family: "Bebas Neue", sans-serif;
  font-size: 34px;
  letter-spacing: 3px;
}

.team-card-name {
  margin-top: 10px;
  color: var(--text);
  font-family: "Bebas Neue", sans-serif;
  font-size: 54px;
  letter-spacing: 4px;
}

.rules-footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  font-size: 12px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--blood-soft);
}

@media (max-width: 900px) {
  .rules {
    padding: 6vh 8vw 8vh;
  }

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

  .rules-footer {
    justify-content: center;
    text-align: center;
  }
}
