:root {
  --bg: #07080c;
  --bg-2: #0d1018;
  --bg-3: #141925;
  --ink: #e8edf7;
  --muted: #8b95ab;
  --line: rgba(232, 237, 247, 0.08);
  --lime: #c8ff3d;
  --cyan: #5ce1ff;
  --pink: #ff4d9a;
  --warn: #ffd36b;
  --radius: 18px;
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
  --max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "IBM Plex Sans", system-ui, sans-serif;
  background:
    radial-gradient(1200px 600px at 10% -10%, rgba(92, 225, 255, 0.08), transparent 50%),
    radial-gradient(900px 500px at 110% 0%, rgba(200, 255, 61, 0.07), transparent 45%),
    var(--bg);
  color: var(--ink);
  min-height: 100vh;
  line-height: 1.55;
}

a { color: inherit; }
img { max-width: 100%; }

.wrap { width: min(var(--max), calc(100% - 40px)); margin-inline: auto; }

/* Header */
.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(16px);
  background: rgba(7, 8, 12, 0.78);
  border-bottom: 1px solid var(--line);
}
.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 72px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-family: Syne, sans-serif;
  font-weight: 800;
  letter-spacing: -0.04em;
  font-size: 1.2rem;
}
.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--lime), var(--cyan));
  color: #08100a;
  display: grid;
  place-items: center;
  font-weight: 800;
}
nav { display: flex; gap: 18px; align-items: center; }
nav a {
  text-decoration: none;
  color: var(--muted);
  font-size: 0.92rem;
}
nav a:hover, nav a.active { color: var(--ink); }
.cta-mini {
  background: var(--lime);
  color: #0a1208 !important;
  padding: 8px 12px;
  border-radius: 999px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

/* Promo ribbon */
.promo {
  background: linear-gradient(90deg, rgba(200,255,61,0.16), rgba(92,225,255,0.1));
  border-bottom: 1px solid var(--line);
}
.promo-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 0;
  font-size: 0.95rem;
}
.code {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  background: #11161f;
  border: 1px dashed rgba(200,255,61,0.5);
  color: var(--lime);
  padding: 4px 10px;
  border-radius: 8px;
  letter-spacing: 0.12em;
  font-weight: 700;
}
.copy-btn {
  border: 0;
  background: var(--ink);
  color: #0b0d12;
  border-radius: 999px;
  padding: 7px 12px;
  font-weight: 700;
  cursor: pointer;
}

/* Hero */
.hero { padding: 64px 0 28px; }
.kicker {
  color: var(--cyan);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 0.74rem;
  font-weight: 700;
}
h1, h2, h3 { font-family: Syne, sans-serif; letter-spacing: -0.04em; margin: 0 0 12px; }
h1 { font-size: clamp(2.2rem, 6vw, 4.4rem); line-height: 0.95; max-width: 16ch; }
.lede { color: var(--muted); max-width: 62ch; font-size: 1.08rem; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 24px; }
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  border-radius: 999px;
  padding: 12px 16px;
  font-weight: 700;
}
.btn-primary { background: var(--lime); color: #08110a; }
.btn-ghost { border: 1px solid var(--line); background: rgba(255,255,255,0.03); }

/* Directory controls */
.controls {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
  margin: 18px 0 22px;
}
.search {
  flex: 1;
  min-width: 220px;
  background: var(--bg-3);
  border: 1px solid var(--line);
  color: var(--ink);
  border-radius: 12px;
  padding: 12px 14px;
  font: inherit;
}
.letters {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.letters a, .letters button {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
  text-decoration: none;
  display: grid;
  place-items: center;
  font-size: 0.78rem;
  cursor: pointer;
}
.letters a:hover, .letters button:hover, .letters a.on { color: #08110a; background: var(--lime); border-color: var(--lime); }

/* Cards */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 18px;
  padding-bottom: 70px;
}
.card {
  background: linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0.015));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  min-height: 100%;
  transition: transform .18s ease, border-color .18s ease;
}
.card:hover { transform: translateY(-4px); border-color: rgba(200,255,61,0.35); }
.card-media {
  aspect-ratio: 16/9;
  background: #10151f center/cover no-repeat;
  position: relative;
}
.card-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(7,8,12,0.55));
}
.badge {
  position: absolute;
  z-index: 1;
  top: 10px;
  left: 10px;
  background: rgba(7,8,12,0.8);
  border: 1px solid var(--line);
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 0.72rem;
  color: var(--cyan);
}
.card-body { padding: 16px 16px 18px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.card-body h3 { font-size: 1.15rem; }
.meta { color: var(--muted); font-size: 0.86rem; }
.card-body p { margin: 0; color: #c5ccd9; font-size: 0.95rem; }

/* Game page */
.game-hero { padding: 36px 0 10px; }
.crumbs { color: var(--muted); font-size: 0.86rem; margin-bottom: 16px; }
.crumbs a { color: var(--cyan); text-decoration: none; }
.layout {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr;
  gap: 28px;
  padding-bottom: 80px;
}
.video {
  position: relative;
  padding-top: 56.25%;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #000;
}
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.panel {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 18px;
}
.panel h3 { font-size: 1rem; }
.buy {
  display: block;
  text-align: center;
  background: var(--lime);
  color: #08110a;
  text-decoration: none;
  font-weight: 800;
  padding: 13px 14px;
  border-radius: 12px;
  margin-top: 12px;
}
.note { color: var(--muted); font-size: 0.86rem; }
.prose p { color: #d5dbe7; }
.prose a { color: var(--cyan); }
.related { list-style: none; padding: 0; margin: 0; }
.related li { border-top: 1px solid var(--line); }
.related a { display: block; padding: 10px 0; text-decoration: none; color: var(--ink); }
.related a:hover { color: var(--lime); }
.related .meta { display: block; }
.pager {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 28px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}
.pager a { color: var(--cyan); text-decoration: none; max-width: 46%; }
.letter-block { margin: 28px 0 10px; }
.letter-block h2 {
  font-size: 1.4rem;
  color: var(--lime);
  border-bottom: 1px solid var(--line);
  padding-bottom: 6px;
}
.seo-block { padding: 10px 0 28px; max-width: 70ch; color: #c5ccd9; }
.seo-block h2 { font-size: 1.35rem; }
.seo-block a { color: var(--cyan); }
details { border-top: 1px solid var(--line); padding: 12px 0; }
details summary { cursor: pointer; font-weight: 700; }
details p { color: var(--muted); margin: 8px 0 0; }

footer {
  border-top: 1px solid var(--line);
  padding: 28px 0 40px;
  color: var(--muted);
  font-size: 0.88rem;
}
.foot-grid { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
footer a { color: var(--cyan); text-decoration: none; }

.hidden { display: none !important; }
.toast {
  position: fixed;
  bottom: 18px;
  right: 18px;
  background: var(--lime);
  color: #08110a;
  padding: 10px 14px;
  border-radius: 10px;
  font-weight: 700;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease;
}
.toast.show { opacity: 1; }

@media (max-width: 860px) {
  .layout { grid-template-columns: 1fr; }
  nav { display: none; }
  h1 { max-width: none; }
}
