:root {
  color-scheme: dark;
  --bg: #0e1014;
  --bg-raised: #161920;
  --bg-card: #1b1f27;
  --line: #2a2f3a;
  --text: #e9e6df;
  --muted: #a3a6ae;
  --accent: #e7b25a;
  --accent-strong: #f3c879;
  --accent-ink: #1d1406;
  --radius: 14px;
  --max: 1120px;
  --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display: ui-serif, "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.65 var(--font);
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-strong); text-decoration: underline; }

h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; }
h1, h2 { font-family: var(--font-display); font-weight: 700; letter-spacing: .01em; }
h3 { font-size: 1.05rem; }

p { margin: 0 0 1em; }

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

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: rgb(14 16 20 / .85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 60px; gap: 16px; }
.brand { color: var(--text); font-family: var(--font-display); font-size: 1.25rem; font-weight: 700; }
.brand:hover { color: var(--accent-strong); text-decoration: none; }
.brand span { color: var(--accent); }
.nav { display: flex; gap: 20px; font-size: .95rem; }
.nav a { color: var(--muted); }
.nav a:hover { color: var(--text); text-decoration: none; }

/* Sections */
section { padding: 72px 0; }
section + section { border-top: 1px solid var(--line); }
.eyebrow { color: var(--accent); font-size: .8rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; margin-bottom: .6em; }
.lead { font-size: 1.2rem; color: var(--muted); max-width: 640px; }

/* Hero */
.hero { padding: 104px 0 88px; position: relative; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: -40% -10% auto auto; width: 620px; height: 620px;
  background: radial-gradient(closest-side, rgb(231 178 90 / .16), transparent);
  pointer-events: none;
}
.hero h1 { font-size: clamp(2.4rem, 6vw, 4rem); }
.hero h1 span { color: var(--accent); }

/* Buttons */
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 11px 20px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--bg-raised);
  color: var(--text); font-weight: 600; font-size: .95rem;
}
.btn:hover { border-color: var(--accent); color: var(--text); text-decoration: none; }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn.primary:hover { background: var(--accent-strong); color: var(--accent-ink); }
.btn svg { width: 20px; height: 20px; flex: none; }

/* Game cards */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 24px; margin-top: 32px; }
.card {
  display: flex; flex-direction: column;
  background: var(--bg-card); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; color: var(--text);
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
a.card:hover { transform: translateY(-4px); border-color: var(--accent); box-shadow: 0 16px 40px rgb(0 0 0 / .4); text-decoration: none; color: var(--text); }
.card img { aspect-ratio: 16 / 9; object-fit: cover; width: 100%; }
.card-body { padding: 18px 20px 22px; }
.card-body h3 { font-family: var(--font-display); font-size: 1.35rem; margin-bottom: .3em; }
.card-body p { color: var(--muted); font-size: .95rem; margin-bottom: 14px; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin: 0; padding: 0; }
.tags li { font-size: .75rem; padding: 3px 10px; border-radius: 999px; background: var(--bg-raised); border: 1px solid var(--line); color: var(--muted); }
.card.placeholder {
  justify-content: center; align-items: center; text-align: center; min-height: 260px;
  border-style: dashed; background: transparent; color: var(--muted); padding: 24px;
}

/* About */
.about { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.facts { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.facts li { background: var(--bg-card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; }
.facts strong { display: block; color: var(--accent); font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 2px; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 32px 0; color: var(--muted); font-size: .9rem; }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }
.site-footer a { color: var(--muted); }
.site-footer a:hover { color: var(--text); }
.site-footer nav { display: flex; gap: 18px; }

/* Game page */
.game-hero { padding: 32px 0 56px; }
.banner { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); box-shadow: 0 24px 60px rgb(0 0 0 / .45); }
.banner img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.game-head { display: flex; align-items: center; gap: 20px; margin-top: 32px; }
.game-head img { width: 88px; height: 88px; border-radius: 20px; border: 1px solid var(--line); flex: none; }
.game-head h1 { font-size: clamp(2rem, 5vw, 3rem); margin: 0; }
.game-head p { color: var(--muted); margin: 0; }

.video {
  position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; margin-top: 28px;
  border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line);
  background: #000; cursor: pointer; padding: 0; color: inherit; font: inherit;
}
.video img { width: 100%; height: 100%; object-fit: cover; opacity: .75; transition: opacity .2s; }
.video:hover img { opacity: .9; }
.video .play {
  position: absolute; inset: 0; margin: auto; width: 84px; height: 84px; border-radius: 50%;
  background: var(--accent); display: grid; place-items: center; box-shadow: 0 10px 30px rgb(0 0 0 / .5);
}
.video .play svg { width: 34px; height: 34px; margin-left: 5px; fill: var(--accent-ink); }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-note { font-size: .8rem; color: var(--muted); margin-top: 8px; }

.split { display: grid; grid-template-columns: 1.6fr 1fr; gap: 48px; align-items: start; }
.details { background: var(--bg-card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 24px; }
.details dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 10px 18px; font-size: .95rem; }
.details dt { color: var(--muted); }
.details dd { margin: 0; }

.features { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; margin-top: 32px; }
.feature { background: var(--bg-card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; }
.feature h3 { color: var(--accent); }
.feature ul { margin: 0; padding-left: 1.1em; color: var(--muted); font-size: .95rem; }
.feature li + li { margin-top: 4px; }

.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 32px; }
.gallery button {
  padding: 0; border: 1px solid var(--line); border-radius: 10px; overflow: hidden;
  background: var(--bg-card); cursor: zoom-in; transition: border-color .2s, transform .2s;
}
.gallery button:hover, .gallery button:focus-visible { border-color: var(--accent); transform: scale(1.02); outline: none; }
.gallery img { width: 100%; aspect-ratio: 720 / 331; object-fit: cover; }

.lightbox {
  border: 0; padding: 0; background: transparent; max-width: 96vw; max-height: 92vh; overflow: visible;
}
.lightbox::backdrop { background: rgb(5 6 8 / .92); }
.lightbox img { max-width: 96vw; max-height: 86vh; border-radius: 10px; margin: 0 auto; }
.lightbox p { color: var(--muted); text-align: center; margin: 10px 0 0; font-size: .9rem; }
.lb-btn {
  position: fixed; top: 50%; transform: translateY(-50%);
  width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--line);
  background: rgb(22 25 32 / .85); color: var(--text); font-size: 1.6rem; line-height: 1; cursor: pointer;
}
.lb-btn:hover { border-color: var(--accent); }
.lb-prev { left: 16px; }
.lb-next { right: 16px; }
.lb-close { top: 16px; right: 16px; transform: none; font-size: 1.3rem; }

.cta { text-align: center; }
.cta .actions { justify-content: center; }

@media (max-width: 820px) {
  section { padding: 56px 0; }
  .hero { padding: 72px 0 64px; }
  .about, .split { grid-template-columns: 1fr; gap: 32px; }
  .nav { gap: 14px; }
  .game-head img { width: 64px; height: 64px; border-radius: 14px; }
  .lb-prev, .lb-next { top: auto; bottom: 16px; transform: none; }
  .gallery { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .gallery button:last-child:nth-child(odd) { grid-column: span 2; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .card, .gallery button { transition: none; }
}
