:root {
  --bg: #0D1222;
  --bg-soft: #131a2f;
  --card: #151d36;
  --line: #27335a;
  --text: #F3F4F8;
  --muted: #b2bad3;
  --blue: #38BDF8;
  --purple: #A855F7;
  --gold: #f2b705;
  --gold-soft: #ffd75e;
  --radius: 14px;
  --max: 1000px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--blue); text-underline-offset: 3px; }
a:hover { color: #fff; }
a:focus-visible, button:focus-visible, summary:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 3px;
  border-radius: 4px;
}

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }

/* ---------- Header ---------- */
header.site {
  border-bottom: 1px solid var(--line);
  background: rgba(13, 18, 34, 0.94);
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(6px);
}
/* thin blue-to-purple accent line under the header */
header.site::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--blue), var(--purple), transparent);
  opacity: 0.55;
}
header.site .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 68px;
  flex-wrap: wrap;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
  text-decoration: none;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 14px;
}
.brand img {
  height: 46px;
  width: auto;
  display: block;
  /* the emblem artwork has a near-black backdrop: blend it into the page */
  mix-blend-mode: lighten;
}
nav.site a {
  color: var(--muted);
  text-decoration: none;
  margin-left: 22px;
  font-size: 15px;
  padding: 6px 0;
  border-bottom: 2px solid transparent;
  transition: color 0.15s ease, border-color 0.15s ease;
}
nav.site a:hover { color: var(--text); border-bottom-color: var(--blue); }
nav.site a[aria-current="page"] {
  color: var(--text);
  border-bottom-color: var(--purple);
}

/* ---------- Hero ---------- */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  align-items: center;
  gap: 24px 40px;
  padding: 44px 0 40px;
}
.hero-logo {
  margin: 0;
  justify-self: center;
  width: 100%;
  max-width: 440px;
  order: 2;
}
.hero-logo img {
  display: block;
  width: 100%;
  height: auto;
  mix-blend-mode: lighten;
  /* soft feathered edge so the artwork melts into the page background */
  -webkit-mask-image: radial-gradient(ellipse 70% 72% at 50% 50%, #000 62%, transparent 100%);
  mask-image: radial-gradient(ellipse 70% 72% at 50% 50%, #000 62%, transparent 100%);
}
.hero-copy { order: 1; }
.eyebrow {
  color: var(--blue);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 13px;
  margin: 0 0 14px;
}
h1 {
  font-size: clamp(2.1rem, 5.2vw, 3.3rem);
  line-height: 1.1;
  margin: 0 0 18px;
  letter-spacing: -0.015em;
}
.lead { color: var(--muted); font-size: 1.15rem; max-width: 560px; margin: 0 0 28px; }

/* Gentle "power-on" when the page loads. Runs once and settles. */
@media (prefers-reduced-motion: no-preference) {
  .hero-logo img {
    animation: bsg-power-on 1.6s ease-out 0.15s both;
  }
}
@keyframes bsg-power-on {
  0%   { opacity: 0.35; filter: brightness(0.45) saturate(0.55); }
  55%  { opacity: 0.85; filter: brightness(0.85) saturate(0.85); }
  100% { opacity: 1;    filter: brightness(1) saturate(1); }
}

.btn {
  display: inline-block;
  padding: 12px 22px;
  border-radius: 10px;
  font-weight: 700;
  text-decoration: none;
  font-size: 16px;
  transition: background 0.15s ease, border-color 0.15s ease;
}
.btn-primary { background: var(--gold); color: #1a1300; }
.btn-primary:hover { background: var(--gold-soft); color: #1a1300; }
.btn-ghost { border: 1px solid var(--line); color: var(--text); margin-left: 10px; }
.btn-ghost:hover { border-color: var(--blue); color: var(--text); }

/* ---------- Sections ---------- */
section { padding: 48px 0; border-top: 1px solid var(--line); }
h2 { font-size: 1.6rem; margin: 0 0 8px; letter-spacing: -0.005em; }
h3 { font-size: 1.1rem; margin: 28px 0 6px; }
.section-note { color: var(--muted); margin: 0 0 28px; max-width: 640px; }

/* ---------- Games ----------
   One .game card per title. Cards stack in a flexible list, so future games
   with completely different art styles can simply be added as new cards.
   Optional: add <div class="game-shots"> with <img> tags inside a card for screenshots. */
.games { display: grid; gap: 24px; }
.game {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.game:hover {
  border-color: rgba(168, 85, 247, 0.55);
  box-shadow: 0 0 0 1px rgba(168, 85, 247, 0.18), 0 8px 30px rgba(56, 189, 248, 0.06);
}
.game .tag {
  display: inline-block;
  border: 1px solid var(--gold);
  color: var(--gold-soft);
  border-radius: 999px;
  padding: 2px 12px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 14px;
}
.game h3 { font-size: 1.6rem; margin: 0 0 6px; }
.game .sub { color: var(--muted); margin: 0 0 18px; }
.game-shots {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
  margin: 22px 0 0;
}
.game-shots img { width: 100%; height: auto; border-radius: 10px; display: block; }
.features {
  list-style: none;
  padding: 0;
  margin: 20px 0 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 12px 24px;
}
.features li { padding-left: 20px; position: relative; color: var(--text); }
.features li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 8px;
  height: 8px;
  background: var(--gold);
  border-radius: 2px;
}

/* Value strip */
.values {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
}
.value {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
}
.value strong { display: block; margin-bottom: 4px; color: var(--blue); }
.value span { color: var(--muted); font-size: 15px; }

/* ---------- Prose pages ---------- */
.prose { padding: 48px 0 24px; max-width: 720px; }
.prose h1 { font-size: clamp(1.8rem, 4.5vw, 2.4rem); }
.prose p, .prose li { color: var(--text); }
.prose .meta { color: var(--muted); font-size: 15px; }
.prose .eyebrow { color: var(--blue); }
.prose ul { padding-left: 22px; }
.prose li { margin-bottom: 6px; }
.callout {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-left: 4px solid var(--purple);
  border-radius: 10px;
  padding: 16px 20px;
  margin: 24px 0;
}
details {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 14px 18px;
  margin-bottom: 10px;
}
details[open] { border-color: rgba(56, 189, 248, 0.45); }
summary { cursor: pointer; font-weight: 600; }
details p { margin: 10px 0 0; color: var(--muted); }

/* ---------- Footer ---------- */
footer.site {
  border-top: 1px solid var(--line);
  margin-top: 40px;
  padding: 28px 0 40px;
  color: var(--muted);
  font-size: 15px;
}
footer.site .wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px 24px;
  flex-wrap: wrap;
}
.foot-brand { display: flex; align-items: center; gap: 14px; }
.foot-brand img { height: 34px; width: auto; display: block; mix-blend-mode: lighten; opacity: 0.9; }
.foot-brand .name { color: var(--text); font-weight: 600; letter-spacing: 0.04em; }
.foot-brand .motto { display: block; font-size: 13px; margin-top: 2px; }
.foot-links a { color: var(--muted); margin-left: 18px; text-decoration: none; }
.foot-links a:first-child { margin-left: 0; }
.foot-links a:hover { color: var(--text); text-decoration: underline; }

/* ---------- Tablet / mobile ---------- */
@media (max-width: 820px) {
  .hero { grid-template-columns: 1fr; padding: 28px 0 32px; gap: 8px; }
  .hero-logo { order: 1; max-width: 300px; }
  .hero-copy { order: 2; text-align: left; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  nav.site a { margin-left: 14px; }
  .brand .brand-name { display: none; }   /* emblem only on small screens */
  .hero-logo { max-width: 240px; }
  .game { padding: 22px; }
  .btn-ghost { margin-left: 0; margin-top: 10px; }
  .foot-links a { margin-left: 0; margin-right: 18px; }
}
