:root {
  color-scheme: dark;
  --background: #0c101c;
  --panel: #141a2a;
  --text: #f7f3ec;
  --muted: #b8bfd1;
  --accent: #ffbc91;
  --line: #2a3144;
  font-family: "Segoe UI", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--background); color: var(--text); }
a { color: inherit; text-decoration: none; }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 5px; }
p { color: var(--muted); margin: 0; line-height: 1.6; }
h1, h2, h3 { margin: 0; letter-spacing: -.045em; }
.shell { width: min(100% - 3rem, 1180px); margin-inline: auto; }
.skip { position: absolute; left: 1rem; top: 1rem; z-index: 2; padding: .75rem; background: var(--background); transform: translateY(-150%); }
.skip:focus { transform: none; }
.top, .footer { display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.top { min-height: 76px; }
.brand { display: inline-flex; align-items: center; gap: .55rem; font-size: 1.14rem; font-weight: 750; }
.mark { color: var(--accent); font-size: 1.55rem; line-height: 1; }
.studio { color: var(--muted); font-size: .75rem; letter-spacing: .13em; }
nav { display: flex; gap: clamp(1rem, 3vw, 2.3rem); color: var(--muted); }
nav a:hover, .footer a:hover { color: var(--accent); }
.hero {
  display: grid;
  align-items: center;
  min-height: clamp(460px, 56vw, 650px);
  background: linear-gradient(90deg, #0c1020ed 0%, #10152882 45%, #10152818 83%),
              linear-gradient(0deg, var(--background), transparent 29%),
              #151e35 url("assets/hero.webp") center 52% / cover no-repeat;
  border-top: 1px solid var(--line);
}
.hero-content { padding-block: 4rem; }
h1 { font-size: clamp(3.2rem, 7.5vw, 7.2rem); line-height: .94; font-weight: 800; }
h1 em { font-style: normal; color: var(--accent); }
.hero p { margin-block: 1.5rem 1.8rem; max-width: 32ch; color: #e0dfeb; font-size: clamp(1rem, 2vw, 1.25rem); }
.button { display: inline-flex; justify-content: center; padding: .85rem 1.3rem; border-radius: .65rem; background: var(--accent); color: #221510; font-weight: 750; }
.button:hover { background: #ffcfb1; }
.games { padding-block: 3rem 4.5rem; }
.section-heading { display: flex; justify-content: space-between; align-items: baseline; gap: .75rem; margin-bottom: 1.4rem; }
h2 { font-size: clamp(2rem, 4.6vw, 3.4rem); line-height: 1.1; }
.game-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.1rem; }
.game { overflow: hidden; border: 1px solid var(--line); border-radius: 1.05rem; background: var(--panel); }
.game img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; }
.game-copy { padding: 1.2rem 1.25rem 1.4rem; }
.genre { font-size: .875rem; color: var(--accent); }
h3 { font-size: 1.65rem; margin-block: .22rem .4rem; }
.support { display: flex; justify-content: space-between; align-items: center; gap: 1.5rem; padding: clamp(1.3rem, 4vw, 3rem); background: var(--panel); border: 1px solid var(--line); border-radius: 1.05rem; }
.support p { margin-top: .65rem; max-width: 49ch; }
.secondary { background: transparent; color: var(--text); border: 1px solid #77788c; overflow-wrap: anywhere; }
.secondary:hover { background: #252c40; }
.footer { min-height: 100px; color: var(--muted); }

@media (max-width: 720px) {
  .game-grid { grid-template-columns: 1fr; }
  .game img { aspect-ratio: 16 / 9; }
  .hero { background-position: center, center, 60% center; }
  .support { align-items: flex-start; flex-direction: column; }
}

@media (max-width: 420px) {
  .shell { width: calc(100% - 2rem); }
  .top { gap: .55rem; }
  .studio { display: none; }
  nav { gap: .8rem; }
  .section-heading { align-items: flex-start; flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
