/* Copyright (c) 2026 chidungface@gmail.com. All rights reserved. */

/* Theme: change the look of the whole portal by editing these variables only. */
:root {
  --bg: #0d1118;
  --surface: #151b26;
  --surface-hover: #1b2331;
  --line: rgba(241, 234, 216, 0.16);
  --text: #f1ead8;
  --muted: #a8a290;
  --accent: #e8c35a;
  --accent-ink: #1a1408;
  --radius: 6px;
  --font: Georgia, 'Times New Roman', serif;
  --max-width: 1040px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  line-height: 1.5;
}

a { color: var(--accent); }

.masthead, main, .footer {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

.masthead { padding-top: 56px; padding-bottom: 28px; }
.eyebrow { margin: 0 0 6px; font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
h1 { margin: 0 0 10px; font-size: clamp(32px, 6vw, 48px); line-height: 1.1; color: var(--accent); }
.lead { margin: 0; max-width: 60ch; font-size: 18px; }

main { flex: 1; }

.game-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 18px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.card {
  display: flex;
  flex-direction: column;
  height: 100%;
  color: inherit;
  text-decoration: none;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.15s, background 0.15s, transform 0.15s;
}
.card:hover, .card:focus-visible { border-color: var(--accent); background: var(--surface-hover); transform: translateY(-2px); }
.card:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.cover {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 16 / 9;
  font-size: 44px;
  font-weight: bold;
  color: var(--accent);
  background: linear-gradient(135deg, #24324a, #131924);
  border-bottom: 1px solid var(--line);
}
.cover img { width: 100%; height: 100%; object-fit: cover; }

.body { display: flex; flex-direction: column; gap: 8px; padding: 16px 18px 18px; flex: 1; }
.title-row { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.card h2 { margin: 0; font-size: 21px; }
.badge { flex: none; padding: 2px 8px; font-size: 12px; color: var(--accent); border: 1px solid var(--accent); border-radius: 999px; }
.description { margin: 0; color: var(--muted); flex: 1; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
.tags li { padding: 2px 8px; font-size: 12px; color: var(--muted); border: 1px solid var(--line); border-radius: 999px; }
.play { align-self: flex-start; margin-top: 6px; padding: 8px 18px; font-size: 15px; color: var(--accent-ink); background: var(--accent); border-radius: var(--radius); }

.status { margin: 18px 0 0; color: var(--muted); }
.status[hidden] { display: none; }

.footer { padding-top: 40px; padding-bottom: 28px; font-size: 13px; color: var(--muted); }
.footer p { margin: 0 0 6px; }
