/* smoothBrain Studios. Colours sampled from the logo: near-black ground, a lavender-to-violet
   brain, and the violet of the "Brain" in the wordmark. */
:root {
  --bg: #070707;
  --surface: #0f0d13;
  --surface-2: #15121b;
  --line: rgba(152, 90, 251, 0.16);
  --text: #f5f3f8;
  --muted: #a39cae;
  --violet: #985afb;
  --lavender: #d898f9;
  --brain-gradient: linear-gradient(160deg, #d898f9 0%, #b57af6 45%, #8f4fee 100%);
  --radius: 16px;
}

* { box-sizing: border-box; }

/* clip, not hidden: the hero glow may spill sideways without making the page scroll. */
html { background: var(--bg); overflow-x: clip; }

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.65 "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--lavender); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: #fff; }

.wrap { width: 100%; max-width: 1000px; margin: 0 auto; padding: 0 24px; }

/* ---------------------------------------------------------------- header */
.site-header { position: relative; z-index: 2; padding: 22px 0; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--text); }
.brand img { width: 38px; height: auto; display: block; }
.wordmark { font-weight: 700; font-size: 20px; letter-spacing: -0.3px; }
.wordmark .accent { color: var(--violet); }
.nav { display: flex; gap: 26px; font-size: 15px; font-weight: 500; }
.nav a { color: var(--muted); text-decoration: none; transition: color 0.15s; }
.nav a:hover { color: var(--text); }

/* ---------------------------------------------------------------- hero: just the logo */
.hero { position: relative; display: grid; place-items: center; min-height: 62vh; padding-top: 40px; padding-bottom: 60px; }
.hero::before {
  content: "";
  position: absolute; left: 50%; top: 50%;
  width: 760px; height: 760px; max-width: 160vw;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(152, 90, 251, 0.20) 0%, rgba(152, 90, 251, 0.05) 42%, transparent 70%);
  pointer-events: none;
}
.hero-logo { position: relative; display: flex; align-items: center; gap: clamp(14px, 2.5vw, 26px); margin: 0; }
.hero-logo img { width: clamp(72px, 13vw, 136px); height: auto; filter: drop-shadow(0 16px 44px rgba(152, 90, 251, 0.45)); }
.hero-logo .wordmark { font-size: clamp(28px, 6.2vw, 64px); font-weight: 700; letter-spacing: -0.03em; line-height: 1; white-space: nowrap; }
/* The header logo would just repeat the hero on the home page. */
.home .site-header .brand { display: none; }
.home .site-header .wrap { justify-content: flex-end; }

/* ---------------------------------------------------------------- games */
.section { padding-top: 10px; padding-bottom: 90px; }
.section h2.title { font-size: 15px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: var(--muted); margin: 0 0 22px; }

.games-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; }
.game-card {
  display: flex; flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  text-decoration: none; color: var(--text);
  transition: transform 0.18s, border-color 0.18s, box-shadow 0.18s;
}
.game-card:hover { color: var(--text); transform: translateY(-3px); border-color: rgba(152, 90, 251, 0.5); box-shadow: 0 16px 40px rgba(152, 90, 251, 0.18); }
.game-art { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: var(--surface-2); }
/* Pixel-art screenshot: keep the chunky pixels crisp when scaled. */
.game-art .shot { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; image-rendering: pixelated; transition: transform 0.4s; }
.game-card:hover .game-art .shot { transform: scale(1.04); }
.game-art::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(7, 7, 7, 0.78) 0%, rgba(7, 7, 7, 0.15) 45%, transparent 70%); }
.game-art .game-logo { position: absolute; z-index: 1; left: 50%; bottom: 12px; width: 78%; transform: translateX(-50%); image-rendering: pixelated; filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.6)); }
.game-body { padding: 18px 20px 20px; }
.game-body h3 { font-size: 19px; margin: 0 0 6px; letter-spacing: -0.2px; }
.game-body p { color: var(--muted); font-size: 15px; margin: 0 0 14px; }
.platform { font-size: 14px; font-weight: 700; color: var(--violet); }
.game-card:hover .platform { color: var(--lavender); }

@media (max-width: 760px) {
  .nav { gap: 18px; }
  .hero { min-height: 48vh; }
}

@media (max-width: 560px) {
  .hero-logo { flex-direction: column; gap: 16px; }
  .hero-logo img { width: 104px; }
  .hero-logo .wordmark { font-size: 34px; }
}

/* ---------------------------------------------------------------- legal pages */
.legal { max-width: 760px; padding: 36px 24px 70px; }
.legal h1 { font-size: clamp(32px, 5vw, 44px); letter-spacing: -1px; margin: 0 0 6px; }
.legal .updated { color: var(--muted); margin: 0 0 32px; }
.legal h2 { font-size: 20px; margin: 38px 0 8px; color: var(--text); }
.legal h2::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--violet); margin: 0 10px 3px 0; }
.legal p, .legal li { color: #cfc9d8; }
.legal li { margin: 5px 0; }
.legal code { background: var(--surface-2); padding: 1px 6px; border-radius: 6px; font-size: 0.9em; }

/* ---------------------------------------------------------------- footer */
.site-footer { margin-top: auto; padding: 28px 0 36px; color: var(--muted); font-size: 14px; border-top: 1px solid var(--line); }
.site-footer .wrap { display: flex; justify-content: space-between; align-items: center; gap: 14px; flex-wrap: wrap; }
.site-footer a { color: var(--muted); text-decoration: none; }
.site-footer a:hover { color: var(--text); }
.site-footer .brand img { width: 26px; }
.site-footer .wordmark { font-size: 15px; }
