:root {
  --bg: #0d0b10; --panel: #17131a; --text: #efe8dc; --muted: #a89d8e;
  --gold: #e3b45c; --ember: #e0703a; --line: #2c2430;
  --pixel: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; font-size: 17px; line-height: 1.6; }
a { color: var(--gold); }
a:hover { color: #f3d08c; }
img { image-rendering: pixelated; }
.wrap { max-width: 960px; margin: 0 auto; padding: 0 16px; }
header { border-bottom: 1px solid var(--line); background: rgba(13,11,16,.92); position: sticky; top: 0; z-index: 2; backdrop-filter: blur(6px); }
header .wrap { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 60px; }
.brand { font-family: var(--pixel); font-weight: 700; font-size: 16px; color: var(--gold); text-decoration: none; letter-spacing: .04em; white-space: nowrap; }
nav { display: flex; gap: 18px; }
nav a { font-family: var(--pixel); font-size: 15px; color: var(--muted); text-decoration: none; }
nav a:hover, nav a[aria-current] { color: var(--text); }
.hero { position: relative; min-height: min(78vh, 640px); display: flex; align-items: flex-end; background: #2a1830 url("img/reef.png") center 30% / cover no-repeat; image-rendering: pixelated; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(13,11,16,0) 40%, rgba(13,11,16,.92) 100%); }
.hero .wrap { position: relative; z-index: 1; width: 100%; padding-bottom: 40px; }
.hero h1 { font-family: var(--pixel); font-weight: 700; font-size: clamp(32px, 6vw, 56px); line-height: 1.1; margin: 0 0 12px; text-shadow: 0 3px 0 #000; }
.hero p { margin: 0; max-width: 560px; color: #e6dccd; text-shadow: 0 2px 4px #000; }
section { padding: 56px 0; border-top: 1px solid var(--line); }
h2 { font-family: var(--pixel); font-weight: 700; font-size: 26px; line-height: 1.3; color: var(--gold); margin: 0 0 20px; }
.game { display: grid; grid-template-columns: 160px 1fr; gap: 28px; align-items: start; }
.game img { width: 160px; height: 160px; border-radius: 34px; border: 1px solid var(--line); }
.game h3 { font-family: var(--pixel); font-weight: 700; font-size: 26px; line-height: 1.3; margin: 0 0 6px; }
.tag { color: var(--ember); font-style: italic; margin: 0 0 14px; }
.facts { list-style: none; padding: 0; margin: 18px 0; color: var(--muted); font-size: 16px; }
.facts li { margin: 4px 0; }
.btns { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 18px; }
.btn { display: inline-block; font-family: var(--pixel); font-weight: 600; font-size: 15px; padding: 12px 20px; border: 1px solid var(--gold); color: var(--gold); text-decoration: none; border-radius: 6px; }
.btn.solid { background: var(--gold); color: #120d08; }
.btn.off { border-color: var(--line); color: var(--muted); }
.doc { padding-top: 48px; padding-bottom: 56px; max-width: 760px; }
.doc h1 { font-family: var(--pixel); font-weight: 700; font-size: clamp(30px, 5vw, 42px); line-height: 1.15; margin: 0 0 10px; }
.doc h2 { font-size: 20px; margin: 36px 0 10px; }
.meta { color: var(--muted); margin: 0 0 28px; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 20px; margin: 20px 0; }
.card p { margin: 0; }
.doc ul { padding-left: 22px; }
.doc li { margin: 6px 0; }
footer { border-top: 1px solid var(--line); padding: 28px 0; color: var(--muted); font-size: 15px; }
footer nav { margin-bottom: 10px; }
@media (max-width: 600px) {
  body { font-size: 16px; }
  .brand { font-size: 14px; }
  nav { gap: 12px; }
  nav a { font-size: 14px; }
  .hero { min-height: 72vh; background-position: 22% 30%; }
  .game { grid-template-columns: 1fr; }
  .game img { width: 120px; height: 120px; border-radius: 26px; }
}
.hero.studio { background-image: url("img/studio-lake.png"); background-position: center 25%; min-height: min(70vh, 560px); }
.small { font-size: 14px; margin: 0 0 8px; }
.shelf { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
.tile { display: flex; flex-direction: column; gap: 8px; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 18px; text-decoration: none; color: var(--text); }
.tile:hover { border-color: var(--gold); color: var(--text); }
.tile img { width: 96px; height: 96px; border-radius: 22px; }
.tname { font-family: var(--pixel); font-weight: 700; font-size: 19px; line-height: 1.3; color: var(--gold); }
.tsub { color: var(--muted); font-size: 15px; }
@media (max-width: 600px) { .hero.studio { background-position: 68% 60%; } }
@media (max-width: 600px) {
  header .wrap { flex-wrap: wrap; justify-content: center; padding-top: 10px; padding-bottom: 10px; row-gap: 8px; }
  nav { flex-wrap: wrap; justify-content: center; }
  nav a { padding: 6px 0; }
}
.brand { display: inline-flex; align-items: center; gap: 10px; }
.brand img { width: 28px; height: 28px; image-rendering: auto; }
.hero .mark { display: block; width: 96px; height: 96px; margin: 0 0 14px; image-rendering: auto; filter: drop-shadow(0 3px 6px rgba(0,0,0,.6)); }
@media (max-width: 600px) { .hero .mark { width: 72px; height: 72px; } }
section { scroll-margin-top: 72px; }
