  :root {
    --bg: #fdf6ec;
    --bg-alt: #f4e8d6;
    --ink: #2b2233;
    --ink-soft: #5d5368;
    --card: #ffffff;
    --line: #2b2233;
    --accent: #ff6b5b;
    --hollow: #6c5ce7;
    --fluff: #ff8fc7;
    --delve: #2f9e8f;
    --shadow: 4px 4px 0 var(--line);
  }
  @media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) {
      --bg: #1c1724; --bg-alt: #251e30; --ink: #f6eee3; --ink-soft: #b9aec6;
      --card: #2c2438; --line: #0d0a12; --shadow: 4px 4px 0 #0d0a12;
    }
  }
  :root[data-theme="dark"] {
    --bg: #1c1724; --bg-alt: #251e30; --ink: #f6eee3; --ink-soft: #b9aec6;
    --card: #2c2438; --line: #0d0a12; --shadow: 4px 4px 0 #0d0a12;
  }

  * { box-sizing: border-box; }
  html { scroll-behavior: smooth; }
  body {
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font-family: "Nunito", system-ui, sans-serif;
    font-size: 17px;
    line-height: 1.6;
    background-image: radial-gradient(var(--bg-alt) 1.5px, transparent 1.5px);
    background-size: 22px 22px;
  }
  a { color: inherit; }
  .wrap { max-width: 1040px; margin: 0 auto; padding: 0 16px; }
  .pixel { font-family: "Press Start 2P", monospace; letter-spacing: .02em; }

  /* Nav */
  nav { padding: 18px 0; }
  nav .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
  .logo { display: flex; align-items: center; gap: 10px; text-decoration: none; font-size: 14px; }
  .logo-mark { width: 36px; height: auto; image-rendering: pixelated; }
  .px { image-rendering: pixelated; image-rendering: crisp-edges; }
  .hero-logo { width: min(358px, 80vw); height: auto; margin: 0 auto 28px; display: block; }
  .nav-links { display: flex; gap: 18px; font-weight: 800; font-size: 15px; }
  .nav-links a { text-decoration: none; }
  .nav-links a:hover { color: var(--accent); }

  /* Hero */
  .hero { padding: 56px 0 72px; text-align: center; }
  .hero h1 { font-size: clamp(22px, 6vw, 46px); line-height: 1.35; margin: 0 0 20px; }
  .hero h1 span { color: var(--accent); }
  .hero p { font-size: clamp(17px, 2.4vw, 20px); color: var(--ink-soft); max-width: 600px; margin: 0 auto 32px; }
  .btn {
    display: inline-block; text-decoration: none; font-weight: 800;
    padding: 14px 22px; border: 3px solid var(--line); border-radius: 12px;
    background: var(--accent); color: #fff; box-shadow: var(--shadow);
    transition: transform .1s, box-shadow .1s;
  }
  .btn:hover { transform: translate(-2px,-2px); box-shadow: 6px 6px 0 var(--line); }
  .btn:active { transform: translate(2px,2px); box-shadow: 2px 2px 0 var(--line); }
  .btn.ghost { background: var(--card); color: var(--ink); }
  .btn-row { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

  .blink { animation: blink 1.1s steps(1) infinite; }
  @keyframes blink { 50% { opacity: 0; } }

  /* Sections */
  section { padding: 56px 0; }
  .section-title { font-size: clamp(15px, 3vw, 20px); margin: 0 0 8px; }
  .section-sub { color: var(--ink-soft); margin: 0 0 32px; }

  /* Game cards */
  .games { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; }
  .game {
    background: var(--card); border: 3px solid var(--line); border-radius: 16px;
    box-shadow: var(--shadow); overflow: hidden; display: flex; flex-direction: column;
  }
  .game-art {
    aspect-ratio: 16 / 9; display: grid; place-items: center; border-bottom: 3px solid var(--line);
    font-size: 56px; position: relative; overflow: hidden;
  }
  .game-art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
  .game-art .tag { z-index: 1; }
  a.game-art { text-decoration: none; }
  .game-art .tag {
    position: absolute; top: 12px; right: 12px; font-size: 9px; padding: 6px 8px;
    background: var(--card); color: var(--ink); border: 2px solid var(--line); border-radius: 6px;
  }
  .game.hollow .game-art { background: var(--hollow); }
  .game.fluff  .game-art { background: var(--fluff); }
  .game.delve  .game-art { background: #2a1e3d; }
  .game-body { padding: 20px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
  .game-body h3 { margin: 0; font-size: 14px; line-height: 1.5; }
  .game-body p { margin: 0; color: var(--ink-soft); flex: 1; }
  .game-body .btn { align-self: flex-start; margin-top: 8px; padding: 10px 18px; font-size: 15px; }
  .game.hollow .btn { background: var(--hollow); }
  .game.fluff  .btn { background: var(--fluff); color: #2b2233; }
  .game.delve  .btn { background: #ffd36b; color: #2b2233; }

  /* About */
  .about {
    display: grid; grid-template-columns: 200px 1fr; gap: 36px; align-items: center;
    background: var(--card); border: 3px solid var(--line); border-radius: 20px;
    box-shadow: var(--shadow); padding: 32px;
  }
  .avatar {
    width: 200px; height: 200px; border: 3px solid var(--line); border-radius: 50%;
    background: var(--bg-alt); display: grid; place-items: center; overflow: hidden;
  }
  .avatar img { width: 72%; height: auto; margin-top: 18%; }
  .about h2 { margin: 0 0 12px; }
  .about p { margin: 0 0 12px; }
  .about p:last-child { margin: 0; }

  .values { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; margin-top: 28px; }
  .value {
    border: 3px dashed var(--ink-soft); border-radius: 14px; padding: 18px;
  }
  .value strong { display: block; margin-bottom: 4px; font-size: 18px; }
  .value span { color: var(--ink-soft); }

  /* Footer */
  footer { padding: 48px 0 40px; text-align: center; color: var(--ink-soft); }
  .socials { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; margin-bottom: 20px; }
  .socials a {
    text-decoration: none; font-weight: 800; padding: 8px 14px; border: 3px solid var(--line);
    border-radius: 10px; background: var(--card); color: var(--ink); box-shadow: 2px 2px 0 var(--line);
  }
  .socials a:hover { background: var(--accent); color: #fff; }
  footer small { font-size: 13px; }

  @media (max-width: 640px) {
    .nav-links { gap: 12px; font-size: 14px; }
    .nav-links .hide-sm { display: none; }
    .about { grid-template-columns: 1fr; text-align: center; padding: 24px; }
    .avatar { width: 140px; height: 140px; font-size: 56px; margin: 0 auto; }
  }
  @media (prefers-reduced-motion: reduce) {
    .blink { animation: none; }
    .btn { transition: none; }
  }

  /* ---------- Game pages ---------- */
  .crumbs { font-size: 14px; color: var(--ink-soft); margin: 8px 0 20px; }
  .crumbs a { text-decoration: none; font-weight: 800; }
  .crumbs a:hover { color: var(--accent); }
  .gp-hero { padding: 12px 0 40px; }
  .gp-art {
    border: 3px solid var(--line); border-radius: 20px; overflow: hidden;
    box-shadow: 6px 6px 0 var(--line); aspect-ratio: 16 / 9; background: var(--bg-alt);
  }
  .gp-art img { width: 100%; height: 100%; object-fit: cover; display: block; }
  .gp-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 20px; margin-top: 32px; }
  .gp-head h1 { font-size: clamp(22px, 5vw, 38px); line-height: 1.3; margin: 0 0 10px; }
  .gp-head .kicker { color: var(--ink-soft); font-weight: 800; margin: 0; }
  .gp-head .btn-row { justify-content: flex-start; }
  .btn.game-c { background: var(--game); color: var(--game-ink); font-size: 18px; }
  .gp-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 28px; align-items: start; }
  .panel {
    background: var(--card); border: 3px solid var(--line); border-radius: 18px;
    box-shadow: var(--shadow); padding: 28px;
  }
  .panel h2 { margin: 0 0 14px; }
  .panel p { margin: 0 0 12px; }
  .panel p:last-child { margin: 0; }
  .features { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
  .features li { display: flex; gap: 12px; align-items: baseline; font-weight: 600; }
  .features li::before {
    content: ""; flex: none; width: 10px; height: 10px; background: var(--game);
    border: 2px solid var(--line); transform: translateY(1px);
  }
  .facts { margin: 22px 0 0; display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; font-size: 15px; }
  .facts dt { color: var(--ink-soft); font-weight: 800; }
  .facts dd { margin: 0; }
  .shots { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; }
  .shots img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border: 3px solid var(--line); border-radius: 14px; display: block; }
  .cta-band {
    text-align: center; background: var(--game); color: var(--game-ink);
    border: 3px solid var(--line); border-radius: 20px; box-shadow: var(--shadow); padding: 40px 20px;
  }
  .cta-band h2 { margin: 0 0 18px; font-size: clamp(16px, 3vw, 22px); line-height: 1.5; }
  .cta-band .btn { background: var(--card); color: var(--ink); font-size: 18px; }
  .more .game-body p { display: none; }
  @media (max-width: 760px) {
    .gp-grid { grid-template-columns: 1fr; }
    .panel { padding: 22px; }
  }
  .game-body h3 a { text-decoration: none; }
  .game-body h3 a:hover { color: var(--accent); }
