/* games.radgh.com — the game browser. Plain CSS, no framework. Dark theme with a light one for light-mode systems. */
:root {
  --bg: #121317; --panel: #1c1e24; --panel-2: #24272f; --text: #e9e6df; --muted: #a39f96;
  --accent: #e3a24a; --accent-ink: #1a1408; --line: #2f323b; --tag: #2a2d35;
  --radius: 12px; --gap: 20px;
}
@media (prefers-color-scheme: light) {
  :root { --bg: #f4f1ea; --panel: #fffdf8; --panel-2: #f7f3ea; --text: #23211d; --muted: #6b665d;
          --accent: #b4701a; --accent-ink: #fff; --line: #e2dccf; --tag: #efe9dc; }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 16px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
a { color: var(--accent); }
.top, .grid, .bottom { max-width: 1180px; margin: 0 auto; padding: 0 16px; }
.top { padding-top: 48px; padding-bottom: 28px; }
.top h1 { margin: 0 0 6px; font-size: clamp(28px, 5vw, 44px); letter-spacing: -0.01em; }
.top p { margin: 0; color: var(--muted); max-width: 62ch; }

.grid { display: grid; gap: var(--gap); grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); }
.card {
  display: flex; flex-direction: column; background: var(--panel); border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden; transition: transform .15s ease, border-color .15s ease;
}
.card:hover { transform: translateY(-2px); border-color: var(--accent); }
.card.featured:first-child { grid-column: 1 / -1; }
@media (min-width: 860px) {
  .card.featured:first-child { flex-direction: row; }
  .card.featured:first-child .shot { flex: 0 0 58%; }
  .card.featured:first-child .body { padding: 28px; }
  .card.featured:first-child h2 { font-size: 30px; }
}
.shot { display: block; aspect-ratio: 16 / 9; background: var(--panel-2); }
.shot img { display: block; width: 100%; height: 100%; object-fit: cover; }
.body { display: flex; flex-direction: column; gap: 8px; padding: 18px; flex: 1; }
.body h2 { margin: 0; font-size: 22px; }
.body h2 a { color: var(--text); text-decoration: none; }
.tagline { margin: 0; font-weight: 600; }
.desc { margin: 0; color: var(--muted); font-size: 15px; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin: 4px 0 0; padding: 0; }
.tags li { background: var(--tag); color: var(--muted); font-size: 12px; padding: 2px 9px; border-radius: 999px; }
.foot { margin-top: auto; padding-top: 10px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.status { font-size: 13px; color: var(--muted); }
.play {
  background: var(--accent); color: var(--accent-ink); text-decoration: none; font-weight: 700;
  padding: 9px 22px; border-radius: 999px; min-height: 40px; display: inline-flex; align-items: center;
}
.play:hover, .play:focus-visible { filter: brightness(1.1); }
.bottom { padding-top: 40px; padding-bottom: 48px; color: var(--muted); font-size: 14px; }
.bottom p { margin: 4px 0; }
.small { font-size: 12px; }
.notfound { max-width: 560px; margin: 18vh auto; padding: 0 16px; text-align: center; }
