:root {
  color-scheme: dark;
  --bg: #050505;
  --panel: #111111;
  --panel-strong: #181818;
  --text: #f5f5f5;
  --muted: #b7b7b7;
  --red: #e50914;
  --red-dark: #8d050c;
  --line: rgba(255, 255, 255, 0.12);
  --shadow: 0 22px 70px rgba(0, 0, 0, 0.55);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}

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

.site-header {
  position: fixed;
  z-index: 20;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 14px clamp(18px, 4vw, 56px);
  background: rgba(5, 5, 5, 0.78);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.brand,
.site-nav {
  display: flex;
  align-items: center;
}

.brand {
  gap: 10px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.brand img {
  width: 42px;
  height: 42px;
  object-fit: contain;
}

.site-nav {
  gap: 8px;
}

.site-nav a,
.nav-toggle {
  border: 1px solid transparent;
  border-radius: 8px;
  color: var(--muted);
  font: inherit;
  font-weight: 700;
  padding: 10px 12px;
}

.site-nav a:hover,
.site-nav a:focus-visible,
.nav-toggle:hover {
  color: var(--text);
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.06);
}

.nav-toggle {
  display: none;
  background: var(--panel);
  cursor: pointer;
}

.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: 110px 20px 64px;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.94), rgba(0, 0, 0, 0.65), rgba(120, 0, 7, 0.28)),
    linear-gradient(0deg, rgba(5, 5, 5, 1), rgba(5, 5, 5, 0) 42%),
    url("banner.jpg") center / cover;
  transform: scale(1.02);
}

.hero-content {
  position: relative;
  width: min(920px, 100%);
  text-align: center;
}

.hero-logo {
  width: clamp(94px, 14vw, 150px);
  height: auto;
  filter: drop-shadow(0 18px 26px rgba(0, 0, 0, 0.55));
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--red);
  font-size: 0.8rem;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 12px;
  font-size: clamp(3.4rem, 10vw, 7.8rem);
  line-height: 0.9;
  text-transform: uppercase;
  text-shadow: 0 12px 32px rgba(0, 0, 0, 0.7);
}

h2 {
  margin-bottom: 14px;
  font-size: clamp(2rem, 4vw, 3.6rem);
  line-height: 1;
}

h3 {
  margin-bottom: 4px;
}

.hero-copy {
  width: min(680px, 100%);
  margin: 0 auto 28px;
  color: var(--muted);
  font-size: clamp(1rem, 2vw, 1.2rem);
}

.ip-box,
.hero-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.ip-box {
  width: min(560px, 100%);
  margin: 0 auto 18px;
  padding: 8px;
  border: 1px solid rgba(229, 9, 20, 0.4);
  border-radius: 8px;
  background: rgba(8, 8, 8, 0.82);
  box-shadow: var(--shadow);
}

.ip-box span {
  flex: 1 1 230px;
  display: grid;
  place-items: center;
  min-height: 48px;
  font-family: "Consolas", "Courier New", monospace;
  font-size: clamp(1.1rem, 3vw, 1.45rem);
  font-weight: 800;
}

button,
.button {
  border: 0;
  border-radius: 8px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  font: inherit;
  font-weight: 900;
}

.primary,
#copy-ip {
  color: white;
  background: linear-gradient(135deg, var(--red), var(--red-dark));
}

.secondary {
  color: var(--text);
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid var(--line);
}

.full {
  width: 100%;
}

.quick-links,
.split-section,
.map-section {
  width: min(1160px, calc(100% - 36px));
  margin: 0 auto;
}

.quick-links {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  padding: 42px 0 24px;
}

.link-card {
  min-height: 132px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(145deg, var(--panel-strong), #090909);
}

.link-card:hover {
  border-color: rgba(229, 9, 20, 0.6);
  transform: translateY(-2px);
}

.link-card span {
  display: block;
  color: var(--red);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.78rem;
}

.link-card strong {
  display: block;
  margin-top: 12px;
  font-size: 1.35rem;
  line-height: 1.15;
}

.split-section {
  display: grid;
  grid-template-columns: 1fr minmax(280px, 390px);
  gap: clamp(24px, 5vw, 76px);
  align-items: center;
  padding: 74px 0;
}

.split-section p {
  color: var(--muted);
  font-size: 1.08rem;
}

.discord-embed {
  display: grid;
  place-items: center;
  padding: 12px;
  border: 1px solid rgba(229, 9, 20, 0.42);
  border-radius: 8px;
  background:
    radial-gradient(circle at top right, rgba(229, 9, 20, 0.24), transparent 38%),
    var(--panel);
  box-shadow: var(--shadow);
}

.discord-embed iframe {
  display: block;
  width: 100%;
  max-width: 350px;
  height: 500px;
  border: 0;
}

.map-section {
  padding: 40px 0 82px;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

.section-heading a {
  color: var(--red);
  font-weight: 900;
}

.map-frame {
  height: min(72vh, 720px);
  min-height: 430px;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.map-frame iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.rules-page {
  min-height: 100svh;
  padding-top: 92px;
}

.page-hero,
.markdown-body {
  width: min(900px, calc(100% - 36px));
  margin: 0 auto;
}

.page-hero {
  padding: 72px 0 28px;
}

.page-hero h1 {
  margin-bottom: 14px;
}

.page-hero p:not(.eyebrow) {
  color: var(--muted);
  font-size: 1.12rem;
}

.markdown-body {
  margin-bottom: 84px;
  padding: clamp(22px, 4vw, 42px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(145deg, var(--panel-strong), #090909);
  box-shadow: var(--shadow);
}

.markdown-body h1 {
  margin-bottom: 24px;
  font-size: clamp(2.5rem, 6vw, 4.8rem);
}

.markdown-body h2 {
  margin: 42px 0 14px;
  color: var(--text);
  font-size: clamp(1.5rem, 3vw, 2.35rem);
}

.markdown-body h2:first-child {
  margin-top: 0;
}

.markdown-body h3 {
  margin: 24px 0 10px;
  color: var(--text);
  font-size: 1.28rem;
}

.markdown-body p,
.markdown-body li {
  color: var(--muted);
  font-size: 1.05rem;
}

.markdown-body p {
  margin-bottom: 20px;
}

.markdown-body ul {
  display: grid;
  gap: 10px;
  margin: 0 0 28px;
  padding-left: 22px;
}

.markdown-body li::marker {
  color: var(--red);
}

.markdown-body code {
  padding: 2px 5px;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
}

.rules-status {
  margin: 0;
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  padding: 30px 18px;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.site-footer span {
  color: var(--text);
  font-weight: 900;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 22px;
  z-index: 40;
  transform: translate(-50%, 20px);
  opacity: 0;
  pointer-events: none;
  padding: 12px 16px;
  border-radius: 8px;
  background: var(--red);
  color: white;
  font-weight: 900;
  transition: opacity 160ms ease, transform 160ms ease;
}

.toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

@media (max-width: 760px) {
  .nav-toggle {
    display: inline-flex;
  }

  .site-nav {
    position: absolute;
    top: calc(100% + 1px);
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 12px 18px;
    background: rgba(5, 5, 5, 0.96);
    border-bottom: 1px solid var(--line);
  }

  .site-nav.open {
    display: flex;
  }

  .quick-links,
  .split-section {
    grid-template-columns: 1fr;
  }

  .section-heading {
    display: block;
  }

  .map-frame {
    min-height: 360px;
  }
}
