:root {
  color-scheme: dark;
  --bg: #0c0f0d;
  --side: #0a0c0b;
  --panel: #141915;
  --line: #232b25;
  --text: #e9efe9;
  --muted: #92a095;
  --accent: #9bd36b;
  --accent-ink: #0e1a06;
  --glow: rgba(155, 211, 107, .13);
  --serif: "Iowan Old Style", Palatino, "Palatino Linotype", Georgia, serif;
}

* { box-sizing: border-box; margin: 0; }
body { background: var(--bg); color: var(--text); font: 14px/1.45 ui-sans-serif, -apple-system, "SF Pro Text", Inter, "Segoe UI", system-ui, sans-serif; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.app { display: grid; grid-template-columns: 220px 1fr; min-height: 100vh; }

/* Sidebar */
.side { position: sticky; top: 0; height: 100vh; background: var(--side); border-right: 1px solid var(--line); padding: 22px 14px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 18px; letter-spacing: -.015em; padding: 0 8px 24px; }
.brand svg { width: 30px; height: 30px; flex: none; }
.brand .nut { fill: var(--accent); }
.brand .grain { fill: none; stroke: var(--bg); stroke-width: 1.7; stroke-linecap: round; }
nav { display: flex; flex-direction: column; gap: 4px; }
.nav { display: flex; align-items: center; gap: 11px; padding: 9px 10px; border-radius: 8px; color: var(--muted); font-weight: 550; }
.nav svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 1.8; }
.nav:hover { color: var(--text); }
.nav.on { background: var(--panel); color: var(--text); box-shadow: inset 2px 0 0 var(--accent); }

/* Main column */
main { padding: 26px 40px 56px; min-width: 0; background: radial-gradient(900px 380px at 30% -140px, var(--glow), transparent 70%) no-repeat; }

/* Featured banner */
.hero { position: relative; display: flex; align-items: flex-end; aspect-ratio: 21 / 8; min-height: 300px; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; background: #1a1f1b var(--banner) 70% 60% / cover; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(5, 6, 5, .9) 0%, rgba(5, 6, 5, .5) 38%, rgba(5, 6, 5, 0) 64%), linear-gradient(0deg, rgba(5, 6, 5, .55), transparent 45%); }
.hero-copy { position: relative; z-index: 1; max-width: 480px; padding: 38px 42px; }
.hero h1 { font-family: var(--serif); font-size: 50px; line-height: 1.02; letter-spacing: -.01em; margin-bottom: 12px; }
.hero p { color: #d2d6d1; font-size: 15px; margin-bottom: 22px; }
.btn { display: inline-flex; align-items: center; gap: 9px; padding: 12px 22px; border-radius: 10px; background: var(--accent); color: var(--accent-ink); font-weight: 700; font-size: 15px; transition: filter .15s; }
.btn:hover { filter: brightness(1.08); }
.btn svg { width: 13px; height: 13px; fill: currentColor; }

/* Game cards */
.section { font-size: 18px; font-weight: 650; letter-spacing: -.01em; margin: 40px 0 16px; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; }
.card { display: block; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; transition: transform .15s, border-color .15s; }
.card:hover { transform: translateY(-3px); border-color: var(--accent); }
.card img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; background: #111; }
.card-body { padding: 13px 15px 15px; }
.card h3 { font-size: 15.5px; font-weight: 650; }
.card small { color: var(--muted); font-size: 12.5px; }

/* Phones: the sidebar becomes a top bar */
@media (max-width: 760px) {
  .app { grid-template-columns: 1fr; }
  .side { position: static; height: auto; display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; border-right: 0; border-bottom: 1px solid var(--line); }
  .brand { padding: 0; }
  nav { flex-direction: row; }
  main { padding: 16px 16px 40px; }
  /* The banner's subject sits right of centre, under where the text would go, so the picture goes above it. */
  .hero { aspect-ratio: auto; min-height: 0; padding-top: 210px; background-color: var(--panel); background-size: auto 260px; background-position: 74% top; background-repeat: no-repeat; }
  .hero::after { background: linear-gradient(180deg, transparent 150px, var(--panel) 260px); }
  .hero-copy { padding: 0 22px 24px; }
  .hero h1 { font-size: 38px; }
  .section { margin-top: 28px; }
}

@media (prefers-reduced-motion: reduce) {
  .card, .btn { transition: none; }
  .card:hover { transform: none; }
}
