/* meburns.net — shared styles. Each game page sets --accent / --accent-ink on <body>. */
:root {
  --bg: #0f1218;
  --surface: #171b24;
  --surface-2: #1f2430;
  --line: #2a3040;
  --text: #e9ecf2;
  --muted: #9aa3b5;
  --accent: #f59a32;
  --accent-ink: #1a1206;
  --radius: 16px;
  --max: 1080px;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --display: "Space Grotesk", var(--font);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
}
img, video { max-width: 100%; display: block; }
a { color: var(--accent); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
h1, h2, h3 { font-family: var(--display); line-height: 1.15; margin: 0 0 .5em; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.2rem, 6vw, 3.6rem); }
h2 { font-size: clamp(1.5rem, 3.5vw, 2rem); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }

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

/* Header / footer */
.site-header { border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 16px; }
.brand { font-family: var(--display); font-weight: 700; font-size: 1.1rem; color: var(--text); text-decoration: none; }
.nav { display: flex; gap: 20px; }
.nav a { color: var(--muted); text-decoration: none; font-weight: 500; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--text); }
.site-footer { border-top: 1px solid var(--line); margin-top: 96px; 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); }

/* Home hero */
.hero { padding: 96px 0 56px; }
.hero p { color: var(--muted); font-size: 1.2rem; max-width: 36em; }
.section { padding: 32px 0; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.section-head a { font-weight: 500; }

/* Game cards */
.games { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; }
.game-card {
  display: flex; flex-direction: column;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; color: var(--text); text-decoration: none;
  transition: transform .15s ease, border-color .15s ease;
}
.game-card:hover { transform: translateY(-3px); border-color: var(--card-accent, var(--accent)); }
.game-card .cover { aspect-ratio: 16 / 9; background: var(--card-bg, var(--surface-2)); display: grid; place-items: center; overflow: hidden; }
.game-card .cover img.icon { width: 38%; border-radius: 22%; box-shadow: 0 10px 30px rgb(0 0 0 / .35); image-rendering: pixelated; }
.game-card .body { padding: 18px 20px 22px; }
.game-card h3 { margin-bottom: .25em; }
.game-card p { color: var(--muted); margin: 0 0 14px; font-size: .97rem; }

.badge {
  display: inline-block; padding: 3px 10px; border-radius: 999px;
  font-size: .78rem; font-weight: 600; letter-spacing: .02em;
  background: var(--surface-2); color: var(--muted); border: 1px solid var(--line);
}
.badge.live { background: color-mix(in srgb, var(--card-accent, var(--accent)) 18%, transparent); color: var(--card-accent, var(--accent)); border-color: transparent; }
.badges { display: flex; flex-wrap: wrap; gap: 6px; }

/* Game page */
.game-hero { padding: 64px 0 40px; display: grid; grid-template-columns: 1fr; gap: 40px; align-items: center; }
@media (min-width: 860px) { .game-hero { grid-template-columns: 1.05fr 1fr; } }
.game-title { display: flex; align-items: center; gap: 18px; margin-bottom: 18px; }
.game-title img { width: 84px; height: 84px; border-radius: 22%; image-rendering: pixelated; flex: none; }
.game-title h1 { margin: 0; }
.tagline { font-size: 1.25rem; color: var(--muted); margin-bottom: 24px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 24px 0 12px; }
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 22px; border-radius: 12px; font-weight: 600; text-decoration: none;
  background: var(--accent); color: var(--accent-ink); border: 2px solid var(--accent);
}
.btn:hover { filter: brightness(1.08); }
.btn.ghost { background: transparent; color: var(--text); border-color: var(--line); }
.btn.disabled { background: var(--surface-2); color: var(--muted); border-color: var(--line); cursor: default; pointer-events: none; }
.note { color: var(--muted); font-size: .92rem; }

.media-frame { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: var(--surface-2); }

.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px; margin: 0; padding: 0; list-style: none; }
.features li { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.features strong { display: block; font-family: var(--display); font-size: 1.05rem; margin-bottom: 4px; }
.features span { color: var(--muted); font-size: .96rem; }

.shots { display: flex; gap: 16px; overflow-x: auto; padding-bottom: 8px; scroll-snap-type: x mandatory; }
.shots img { flex: none; scroll-snap-align: start; border-radius: 14px; border: 1px solid var(--line); }
.shots.portrait img { width: min(240px, 62vw); }
.shots.landscape img { width: min(520px, 85vw); }

.callout {
  background: color-mix(in srgb, var(--accent) 10%, var(--surface));
  border: 1px solid color-mix(in srgb, var(--accent) 35%, var(--line));
  border-radius: var(--radius); padding: 22px 24px;
}
.callout h3 { color: var(--accent); }
.callout p:last-child { margin: 0; }

.prose { max-width: 720px; }
.prose h2 { margin-top: 1.6em; font-size: 1.4rem; }
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: .4em; }

@media (max-width: 520px) {
  .hero { padding: 56px 0 32px; }
  .game-hero { padding: 40px 0 24px; }
  .game-title img { width: 64px; height: 64px; }
  .nav { gap: 14px; }
}

/* App info facts (developer, platforms, privacy …) */
.facts { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; margin: 0; }
.facts div { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; }
.facts dt { color: var(--muted); font-size: .82rem; margin-bottom: 2px; }
.facts dd { margin: 0; font-weight: 600; }

/* Sub-navigation between a game's pages */
.subnav { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 8px; }
.subnav a { padding: 6px 14px; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); text-decoration: none; font-size: .92rem; font-weight: 500; }
.subnav a:hover { color: var(--text); }
.subnav a[aria-current="page"] { color: var(--accent-ink); background: var(--accent); border-color: var(--accent); }

/* FAQ */
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 14px 18px; margin-bottom: 10px; }
.faq summary { cursor: pointer; font-weight: 600; }
.faq details p { margin: 10px 0 0; color: var(--muted); }
