:root {
  color-scheme: dark;
  --bg: #100d15;
  --panel: #191520;
  --ink: #f7f0e5;
  --muted: #beb4c3;
  --gold: #f5c66f;
  --line: #393040;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: radial-gradient(ellipse at 80% 6%, #23162c 0%, transparent 45%), var(--bg); color: var(--ink); }
a { color: inherit; }
a:focus-visible, summary:focus-visible { outline: 2px solid var(--gold); outline-offset: 4px; }
.skip { position: fixed; z-index: 10; top: 8px; left: 8px; padding: 12px; background: var(--gold); color: var(--bg); transform: translateY(-150%); }
.skip:focus { transform: none; }
.wrap { width: min(1200px, calc(100% - 48px)); margin-inline: auto; }
.site-header { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 19px 0; border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 10px; white-space: nowrap; text-decoration: none; font-weight: 850; letter-spacing: .07em; }
.brand img { width: 38px; height: 38px; object-fit: contain; }
.brand b { color: var(--gold); }
nav { display: flex; align-items: center; gap: clamp(12px,3vw,32px); }
nav a { text-decoration: none; font-size: .86rem; font-weight: 650; color: var(--muted); }
nav a:hover, nav a:focus-visible { color: var(--gold); }
.hero { display: grid; grid-template-columns: .83fr 1.17fr; align-items: center; gap: clamp(20px,5vw,68px); padding-block: clamp(48px,8vw,98px); }
.kicker { display: flex; align-items: center; gap: 8px; color: var(--gold); font-size: .68rem; font-weight: 800; letter-spacing: .16em; }
.kicker span { width: 16px; height: 2px; background: var(--gold); }
h1,h2,h3,p { margin-top: 0; }
h1 { font-size: clamp(4rem,8.4vw,8rem); letter-spacing: -.085em; line-height: .82; margin: 20px 0 25px; font-weight: 950; }
h1 em { color: var(--gold); font-style: normal; }
.intro, .game-copy > p:not(.genre), .help p:not(.kicker) { color: var(--muted); line-height: 1.55; }
.intro { max-width: 35ch; margin-bottom: 22px; }
.button { display: inline-flex; align-items: center; justify-content: space-between; gap: 14px; min-height: 44px; border: 1px solid var(--line); border-radius: 6px; padding: 9px 13px; background: #211927; text-decoration: none; font-size: .84rem; font-weight: 750; }
.button:hover { border-color: var(--gold); }
.button.gold { color: #1d1521; background: var(--gold); border-color: var(--gold); }
.hero-art { position: relative; display: block; min-width: 0; overflow: hidden; border: 1px solid #806049; border-radius: 14px; text-decoration: none; background: #211929; }
.hero-art img { display: block; width: 100%; height: auto; }
.hero-art div { position: absolute; inset: auto 0 0; padding: 42px 20px 16px; background: linear-gradient(transparent,#0c0910 68%); }
.feature-tag, .hero-art small { display: block; font-size: .68rem; letter-spacing: .11em; font-weight: 800; }
.feature-tag { color: var(--gold); }
.hero-art strong { display: block; font-size: clamp(1.3rem,3vw,2.3rem); margin: 2px 0 4px; }
.hero-art small { color: var(--muted); }
.lineup { padding-top: 18px; scroll-margin-top: 20px; }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 16px; margin-bottom: 20px; }
.section-head span { color: var(--muted); font-size: .72rem; letter-spacing: .12em; }
h2 { font-size: clamp(1.9rem,4vw,3.2rem); line-height: 1.05; letter-spacing: -.055em; margin-bottom: 0; }
.games { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 16px; }
.game { display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--line); border-radius: 10px; background: var(--panel); }
.cover { overflow: hidden; }
.cover img { display: block; width: 100%; height: auto; aspect-ratio: 16/9; object-fit: cover; }
.game-copy { display: flex; flex-direction: column; flex: 1; align-items: start; padding: 16px; }
.genre { margin: 0 0 6px; color: var(--gold); font-size: .67rem; font-weight: 800; letter-spacing: .12em; }
h3 { margin-bottom: 6px; font-size: 1.35rem; letter-spacing: -.035em; }
.game-copy > p:not(.genre) { font-size: .88rem; margin-bottom: 14px; }
.game-copy .button { margin-top: auto; }
.help { display: grid; grid-template-columns: 1.25fr 1fr; align-items: start; gap: clamp(20px,5vw,60px); padding: 26px; margin-block: 44px; border: 1px solid var(--line); border-radius: 10px; background: var(--panel); }
.help h2 { font-size: clamp(1.55rem,3vw,2.25rem); margin-bottom: 12px; }
.help details { border-top: 1px solid var(--line); padding-top: 11px; }
.help summary { cursor: pointer; font-weight: 750; }
.help details p { margin-top: 12px; font-size: .9rem; }
.help details a, .install-links a { color: var(--gold); text-underline-offset: 3px; }
.install-links { display: flex; gap: 10px 16px; flex-wrap: wrap; list-style: none; padding: 0; margin: 0; font-size: .84rem; }
.footer { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; border-top: 1px solid var(--line); padding: 20px 0 max(20px,env(safe-area-inset-bottom)); color: var(--muted); font-size: .72rem; letter-spacing: .07em; }
@media (max-width: 780px) { .hero { grid-template-columns: 1fr 1fr; gap: 20px; } .games { grid-template-columns: repeat(2,minmax(0,1fr)); } }
@media (max-width: 580px) {
  .wrap { width: calc(100% - 32px); }
  .site-header { align-items: start; gap: 10px; }
  .brand { font-size: .8rem; }
  .brand img { width: 31px; height: 31px; }
  nav { flex-wrap: wrap; justify-content: end; gap: 6px 11px; padding-top: 5px; }
  nav a { font-size: .73rem; }
  .hero, .help { grid-template-columns: 1fr; }
  .hero { padding-block: 38px 30px; }
  .hero-art div { padding: 30px 12px 9px; }
  .games { grid-template-columns: 1fr; gap: 14px; }
  .help { padding: 18px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
