:root {
  --bg: #070b16;
  --ink: #eef4ff;
  --muted: #9aa8c7;
  --line: rgba(62, 198, 255, 0.2);
  --red: #3ec6ff;
  --red-dark: #1578d4;
  --red-soft: rgba(62, 198, 255, 0.14);
  --card: #10182b;
  --sand: #162038;
  --gold: #d7c6ff;
  --shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
  --radius: 22px;
  --header: 74px;
  --max: 1180px;
  --sans: "Plus Jakarta Sans", system-ui, sans-serif;
  --display: "Space Grotesk", "Plus Jakarta Sans", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16.5px;
  line-height: 1.7;
}
img { max-width: 100%; display: block; }
a { color: var(--red); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { font-family: var(--display); line-height: 1.2; letter-spacing: -0.03em; }
p { margin: 0 0 14px; }

.skip {
  position: absolute;
  left: 12px;
  top: -40px;
  background: var(--red);
  color: #fff;
  padding: 8px 12px;
  z-index: 50;
}
.skip:focus { top: 8px; }

.container { width: min(var(--max), calc(100% - 32px)); margin: 0 auto; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(7, 11, 22, 0.94);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(23, 19, 17, 0.04);
}
.header-bar {
  min-height: var(--header);
  display: flex;
  align-items: center;
  gap: 16px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
  flex: 0 0 auto;
}
.brand:hover { text-decoration: none; }
.mark {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: linear-gradient(160deg, #3ec6ff, #7c5cff);
  color: #fff;
  display: grid;
  place-items: center;
  font-family: var(--display);
  font-weight: 700;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18);
}
.brand img { height: 40px; width: auto; }
.hero-banner::after { display: none; }
.hero-banner img { object-position: center; }

.header-panel {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
}
.nav { margin-left: auto; }
.nav ul {
  display: flex;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav a {
  color: var(--ink);
  font-size: 14px;
  font-weight: 600;
  padding: 8px 10px;
  border-radius: 999px;
  text-decoration: none;
}
.nav a:hover { background: var(--sand); }
.nav a[aria-current="page"] { color: var(--red); background: var(--red-soft); }

.header-actions { display: flex; gap: 8px; }
.nav-toggle {
  display: none;
  margin-left: auto;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--card);
  padding: 0;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 16px;
  height: 2px;
  margin: 3px auto;
  background: var(--ink);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 12px;
  padding: 10px 16px;
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: linear-gradient(180deg, #7af0ff, #2f7dff); color: #07101c; }
.btn-primary:hover { background: #7af0ff; }
.btn-ghost { background: transparent; color: var(--ink); border-color: rgba(62, 198, 255, 0.45); }
.btn-ghost:hover { border-color: #7af0ff; }

.crumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  margin: 22px 0 12px;
  color: var(--muted);
  font-size: 13.5px;
}
.crumbs a { color: var(--red); font-weight: 600; }
.crumbs span[aria-hidden] { color: #c8bfb6; }

.panel {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.hero-panel { padding: 14px; }
.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  border-radius: 18px;
  overflow: hidden;
  min-height: 0;
  background: #070b16;
}
.hero img {
  width: 100%;
  height: auto;
  aspect-ratio: auto;
  object-fit: contain;
  object-position: center;
  display: block;
}
.hero::after { display: none; }
.hero-copy {
  position: static;
  z-index: 1;
  max-width: none;
  padding: 16px 20px 18px;
  color: #fff;
  background: #10182b;
}
.hero-kicker {
  margin: 0 0 8px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
}
.hero-title {
  margin: 0;
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(52px, 7vw, 86px);
  line-height: 0.88;
  color: #fff;
}
.hero-title span { color: var(--gold); }
.hero-sub { margin: 14px 0 0; max-width: 440px; color: rgba(255, 255, 255, 0.9); }
.pills { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.pill-glass {
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 13px;
  font-weight: 600;
}

.sheet-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: end;
  padding: 18px 12px 8px;
}
.meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  align-items: center;
  color: var(--muted);
  font-size: 13.5px;
  margin-bottom: 10px;
}
.pill {
  background: #162038;
  color: #9adfff;
  border-radius: 999px;
  padding: 4px 10px;
  font-weight: 700;
  font-size: 12.5px;
}
.byline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--ink);
  font-weight: 700;
  text-decoration: none;
}
.byline img { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; object-position: center; }
.byline:hover { color: var(--red); }
h1 { margin: 0; font-size: clamp(30px, 3.5vw, 40px); max-width: 18em; }
.head-cta { display: flex; gap: 10px; padding-bottom: 4px; }

.layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 318px;
  gap: 22px;
  align-items: start;
  margin-top: 18px;
}
.stack { display: grid; gap: 16px; }

.callout, .card, .profile, .jump, .prose, .notes, .faq, .author-end {
  background: var(--card);
  border-radius: 20px;
  padding: 26px 28px;
  box-shadow: var(--shadow);
}
.callout { border-left: 5px solid var(--red); }
.callout h2, .prose h2, .faq h2, .notes h2 { margin: 0 0 10px; font-size: 28px; }
.callout h2 { color: var(--red); font-size: 22px; }
.prose h3 { margin: 18px 0 8px; font-size: 20px; }
.prose p:last-child, .callout p:last-child { margin-bottom: 0; }
.prose blockquote {
  margin: 4px 0 16px;
  padding: 16px 18px;
  background: var(--sand);
  border-left: 4px solid var(--gold);
  border-radius: 14px;
}
.prose blockquote p { margin: 0 0 10px; font-size: 17px; }
.prose blockquote footer { font-size: 14px; font-weight: 700; color: var(--red); }

.profile { background: var(--sand); box-shadow: none; }
.profile h2 { margin: 0 0 14px; font-size: 18px; }
.profile-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px 18px;
}
.profile-grid div { border-top: 1px solid var(--line); padding-top: 8px; }
.profile-grid dt { color: var(--muted); font-size: 13px; }
.profile-grid dd { margin: 4px 0 0; font-weight: 800; }

.jump h2 { margin: 0 0 12px; font-size: 16px; }
.jump ol {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 22px;
}
.jump a { font-weight: 700; }

.steps { margin: 8px 0 0; padding: 0; list-style: none; counter-reset: step; }
.steps li {
  counter-increment: step;
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 12px;
  margin: 0 0 12px;
}
.steps li::before {
  content: counter(step);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--red-soft);
  color: var(--red);
  display: grid;
  place-items: center;
  font-weight: 800;
}

.table-wrap { overflow-x: auto; margin-top: 8px; }
table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
th, td { text-align: left; padding: 12px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { color: var(--muted); font-size: 12.5px; letter-spacing: 0.04em; text-transform: uppercase; }
caption { text-align: left; font-weight: 800; margin-bottom: 8px; }

.note-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 8px; }
.note {
  background: var(--sand);
  border-radius: 16px;
  padding: 16px;
}
.note h3 { margin: 0 0 6px; font-size: 16px; }
.note p { margin: 0; color: var(--muted); font-size: 14.5px; }

details { border-top: 1px solid var(--line); padding: 12px 0; }
details:last-of-type { border-bottom: 1px solid var(--line); }
summary { cursor: pointer; font-weight: 800; list-style: none; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; float: right; color: var(--red); font-weight: 700; }
details[open] summary::after { content: "–"; }
details p { color: var(--muted); margin: 8px 0 0; }

.sidebar {
  position: sticky;
  top: 92px;
  display: grid;
  gap: 16px;
  max-height: calc(100vh - 108px);
  overflow: auto;
  padding-right: 2px;
}
.side-card {
  background: var(--card);
  border-radius: 20px;
  padding: 18px;
  box-shadow: var(--shadow);
}
.side-card h2 { margin: 0 0 6px; font-size: 18px; }
.eyebrow {
  margin: 0 0 4px;
  color: var(--red);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.author-side { display: grid; grid-template-columns: 74px 1fr; gap: 12px; align-items: center; }
.author-side img, .author-end img {
  width: 74px;
  height: 74px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center;
}
.author-side h2 { margin: 0; font-size: 18px; }
.author-side p, .side-card .bio { color: var(--muted); font-size: 14px; margin: 6px 0 8px; }
.more { font-weight: 800; font-size: 14px; }

.news-list { display: grid; margin-top: 8px; }
.news-item {
  display: grid;
  grid-template-columns: 74px 1fr;
  gap: 10px;
  padding: 12px 0;
  border-top: 1px solid var(--line);
  color: inherit;
  text-decoration: none;
}
.news-item:hover { text-decoration: none; }
.news-item:hover strong { color: var(--red); }
.news-item img { width: 74px; height: auto; aspect-ratio: 16 / 9; object-fit: contain; display: block; border-radius: 10px; background: #070b16; }
.news-item strong { display: block; font-size: 14px; line-height: 1.35; color: var(--ink); }
.news-item small { color: var(--muted); }

.author-end { display: grid; grid-template-columns: 86px 1fr; gap: 16px; align-items: center; }
.author-end h2 { margin: 0 0 6px; font-size: 22px; }
.author-end p { margin: 0 0 8px; color: var(--muted); }

.related { margin: 22px 0 10px; }
.related h2 { margin: 0 0 12px; font-size: 28px; }
.related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.related a.card-link {
  display: block;
  background: var(--card);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: var(--shadow);
  color: inherit;
  text-decoration: none;
}
.related a.card-link:hover strong { color: var(--red); }
.card-link img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: contain; display: block; background: #070b16; }
.card-link div { padding: 14px 14px 16px; }
.card-link strong { display: block; margin-bottom: 4px; }
.card-link span { color: var(--muted); font-size: 14px; }

.news-index { display: grid; gap: 14px; }
.news-feature {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 16px;
  background: var(--card);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: var(--shadow);
  color: inherit;
  text-decoration: none;
}
.news-feature:hover { text-decoration: none; }
.news-feature:hover h2 { color: var(--red); }
.news-feature img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: contain; display: block; background: #070b16; }
.news-feature div { padding: 16px 16px 16px 0; }
.news-feature h2 { margin: 4px 0 6px; font-size: 22px; }
.news-feature p { margin: 0; color: var(--muted); }

.profile-page { display: grid; grid-template-columns: 280px 1fr; gap: 22px; align-items: start; }
.portrait {
  background: var(--card);
  border-radius: 22px;
  padding: 14px;
  box-shadow: var(--shadow);
}
.portrait img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 16px; }
.portrait p { margin: 12px 8px 6px; color: var(--muted); font-size: 14px; }

.game-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; }
.game-tile {
  display: block;
  background: #0b1020;
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  color: var(--ink);
  text-decoration: none;
}
.game-tile:hover { text-decoration: none; border-color: var(--gold); }
.game-tile img { width: 100%; aspect-ratio: 1; object-fit: cover; display: block; }
.game-tile span { display: block; padding: 10px 12px 12px; font-weight: 800; font-size: 14px; }
.game-block { scroll-margin-top: 90px; padding-top: 8px; }
.game-block h3 { margin: 0 0 8px; }

.site-footer { margin-top: 36px; background: #0b1020; border-top: 1px solid var(--line); }
.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1fr;
  gap: 24px;
  padding: 36px 0 20px;
}
.site-footer h2 { font-size: 15px; margin: 0 0 10px; }
.site-footer p, .site-footer li { color: var(--muted); font-size: 14.5px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin: 0 0 8px; }
.legal {
  border-top: 1px solid var(--line);
  padding: 14px 0 22px;
  color: var(--muted);
  font-size: 13px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

@media (max-width: 980px) {
  .nav-toggle { display: inline-block; }
  .header-panel {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    background: var(--card);
    flex-direction: column;
    align-items: stretch;
    padding: 8px 16px 16px;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
  }
  .header-panel.is-open { display: flex; }
  .nav { margin: 0; }
  .nav ul { flex-direction: column; }
  .header-actions { display: grid; }
  .layout, .sheet-head, .profile-grid, .note-grid, .related-grid, .footer-grid, .profile-page, .news-feature {
    grid-template-columns: 1fr;
  }
  h1 { max-width: none; }
  .head-cta { flex-wrap: wrap; }
  .sidebar { position: static; max-height: none; overflow: visible; }
  .hero img { height: auto; }
  .hero-copy { padding: 14px 16px 16px; }
  .hero-title { font-size: 48px; }
  .game-grid { grid-template-columns: repeat(2, 1fr); }
  .jump ol { grid-template-columns: 1fr; }
  .news-feature div { padding: 14px; }
}

@media (max-width: 640px) {
  .hero img { height: auto; object-position: center; }
  .callout, .prose, .faq, .notes, .author-end, .card { padding: 18px; }
  .author-end { grid-template-columns: 64px 1fr; }
  .author-end img { width: 64px; height: 64px; }
}
