
:root {
  --radius: 18px;
  --max: 1120px;
  --shadow: 0 24px 70px rgba(0,0,0,.28);
}

body[data-theme="retro"] {
  --bg: #140d24;
  --bg-soft: #1b1131;
  --panel: #22163d;
  --panel-2: #19102e;
  --text: #fff0dc;
  --muted: #d8c2c4;
  --line: #4a2f5b;
  --accent: #ffb02e;
  --accent-2: #a562ff;
  --button-text: #2a1500;
}

body[data-theme="green"] {
  --bg: #101218;
  --bg-soft: #171a22;
  --panel: #1d212b;
  --panel-2: #11151c;
  --text: #f3f5f7;
  --muted: #aab1bf;
  --line: #2d3340;
  --accent: #8ef05a;
  --accent-2: #4fd1c5;
  --button-text: #0d130a;
}

body[data-theme="contrast"] {
  --bg: #0d1020;
  --bg-soft: #13172c;
  --panel: #171d37;
  --panel-2: #10162b;
  --text: #f8fbff;
  --muted: #c8d4ea;
  --line: #31416d;
  --accent: #40e7ff;
  --accent-2: #ffd447;
  --button-text: #07131b;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at top left, color-mix(in srgb, var(--accent) 10%, transparent), transparent 22%),
    radial-gradient(circle at top right, color-mix(in srgb, var(--accent-2) 10%, transparent), transparent 28%),
    var(--bg);
  color: var(--text);
  line-height: 1.6;
}

a { color: inherit; text-decoration: none; }
img, video { max-width: 100%; display: block; }
.wrap { width: min(calc(100% - 40px), var(--max)); margin-inline: auto; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(12px);
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.header-inner {
  min-height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  letter-spacing: .02em;
}
.brand-mark {
  color: var(--accent);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}
.nav {
  display: flex;
  gap: 24px;
  color: var(--muted);
  font-size: .95rem;
}
.nav a:hover, .note a:hover, .contact a:hover, .link-card:hover h3 { color: var(--accent); }

.hero { padding: 92px 0 78px; }
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 42px;
  align-items: center;
}
.eyebrow {
  margin: 0 0 14px;
  color: var(--accent);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: .82rem;
  font-weight: 800;
  letter-spacing: .18em;
}
.hero-copy h1, h2, h3 { margin-top: 0; line-height: 1.04; }
.hero-copy h1 {
  margin-bottom: 24px;
  font-size: clamp(3rem, 6.6vw, 6rem);
  letter-spacing: -.055em;
}
.hero-copy h1 span { color: var(--accent); }
h2 {
  font-size: clamp(2rem, 4vw, 3.2rem);
  letter-spacing: -.035em;
  margin-bottom: 18px;
}
h3 {
  font-size: 1.4rem;
  margin-bottom: 8px;
}
.lead, .muted, .game-copy p, .link-card p, .contact p, .theme-panel p { color: var(--muted); }
.lead {
  max-width: 700px;
  margin-bottom: 34px;
  font-size: 1.12rem;
}
.hero-card, .game-card, .media-card, .link-card, .theme-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: var(--shadow);
}
.hero-card {
  overflow: hidden;
  background: linear-gradient(180deg, color-mix(in srgb, var(--accent) 8%, transparent), transparent 22%), var(--panel);
}
.actions { display: flex; gap: 12px; flex-wrap: wrap; }
.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
  border-radius: 10px;
  font-weight: 800;
  transition: transform .16s ease, border-color .16s ease, background .16s ease;
}
.button:hover, .theme-btn:hover, .shot:hover, .link-card:hover { transform: translateY(-2px); }
.primary { background: var(--accent); color: var(--button-text); }
.ghost {
  border: 1px solid var(--line);
  color: var(--text);
  background: rgba(255,255,255,.02);
}
.section { padding: 82px 0; border-top: 1px solid rgba(255,255,255,.05); }
.section-alt { background: rgba(255,255,255,.02); }

.theme-panel {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 28px;
  align-items: center;
}
.theme-switcher { display: flex; gap: 12px; flex-wrap: wrap; }
.theme-btn {
  appearance: none;
  border: 1px solid var(--line);
  background: var(--panel-2);
  color: var(--text);
  padding: 12px 18px;
  border-radius: 999px;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
  transition: transform .16s ease, border-color .16s ease, background .16s ease, color .16s ease;
}
.theme-btn.active {
  background: var(--accent);
  color: var(--button-text);
  border-color: var(--accent);
}

.game-card {
  display: grid;
  grid-template-columns: 1fr .95fr;
  gap: 34px;
  padding: 32px;
}
.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 22px 0;
}
.tags span {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 10px;
  color: var(--text);
  font-size: .86rem;
  background: rgba(255,255,255,.02);
}
.note { font-size: .94rem; }
.note a, .contact p a {
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-underline-offset: 4px;
}
.section-actions { margin-top: 20px; }
.game-preview {
  overflow: hidden;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--panel-2);
}

.media-grid {
  display: grid;
  grid-template-columns: 1.4fr .8fr;
  gap: 22px;
}
.media-card {
  padding: 24px;
  background: var(--panel);
}
.media-card h2 { font-size: 1.75rem; margin-bottom: 18px; }
.media-card video, .media-card img {
  width: 100%;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #000;
}
.section-intro { margin-top: -6px; margin-bottom: 24px; }
.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.shot {
  display: block;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--panel);
  transition: transform .16s ease, border-color .16s ease;
}
.shot:hover { border-color: var(--accent); }
.links-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}
.link-card {
  display: block;
  padding: 28px;
  transition: transform .16s ease, border-color .16s ease;
}
.link-card:hover { border-color: var(--accent); }
.card-eyebrow {
  display: inline-block;
  margin-bottom: 12px;
  color: var(--accent);
  font: 800 .78rem ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: .18em;
}
.contact {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 32px;
}
.footer {
  border-top: 1px solid rgba(255,255,255,.06);
  padding: 28px 0;
  color: var(--muted);
  font-size: .86rem;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 20px;
}

@media (max-width: 980px) {
  .hero-grid, .game-card, .media-grid, .links-grid, .gallery { grid-template-columns: 1fr 1fr; }
  .game-card { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .nav { display: none; }
  .hero { padding: 54px 0 64px; }
  .hero-grid, .media-grid, .links-grid, .gallery { grid-template-columns: 1fr; }
  .theme-panel, .contact, .footer-inner { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 560px) {
  .wrap { width: min(calc(100% - 28px), var(--max)); }
  .section { padding: 64px 0; }
  .theme-panel, .game-card, .media-card, .link-card { padding: 22px; }
  .button { width: 100%; }
}
