/* games.cvc.opik.net: soft dark theme, one stylesheet for the list and the game pages */
:root {
  --bg: #15171d;
  --panel: #1e2129;
  --panel-2: #262a34;
  --line: #2f3440;
  --text: #e4e6eb;
  --muted: #9aa1ad;
  --accent: #2cc3c7;
  --radius: 16px;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { background: var(--bg); }
body {
  margin: 0;
  color: var(--text);
  font: 16px/1.55 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  background: radial-gradient(1200px 500px at 50% -200px, #232837 0%, var(--bg) 70%) no-repeat;
  min-height: 100vh;
}
a { color: var(--accent); }
.wrap { max-width: 1040px; margin: 0 auto; padding: 0 20px; }

header.top { padding-top: 44px; padding-bottom: 18px; }
header.top h1 { margin: 0; font-size: 30px; letter-spacing: .2px; }
header.top h1 a { color: inherit; text-decoration: none; }
header.top p { margin: 6px 0 0; color: var(--muted); max-width: 640px; }

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 22px;
  padding-top: 18px;
  padding-bottom: 40px;
}
.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 .shot { display: block; aspect-ratio: 1024 / 500; background: var(--panel-2); }
.card .shot img { width: 100%; height: 100%; object-fit: cover; display: block; }
.card .body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.card h2 { margin: 0; font-size: 22px; }
.card h2 a { color: inherit; text-decoration: none; }
.tagline { color: var(--accent); font-weight: 600; font-size: 14px; margin-top: -4px; }
.desc { color: var(--muted); margin: 0; flex: 1; }

.meta { display: flex; flex-wrap: wrap; gap: 6px; font-size: 13px; color: var(--muted); }
.chip { background: var(--panel-2); border: 1px solid var(--line); border-radius: 999px; padding: 2px 10px; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: var(--accent);
  color: #0e1014;
  font-weight: 700;
  font-size: 17px;
  padding: 12px 20px;
  border-radius: 12px;
  text-decoration: none;
  transition: filter .15s ease;
}
.btn:hover { filter: brightness(1.08); }
.btn svg { width: 20px; height: 20px; }
.btn.alt { background: transparent; color: var(--accent); box-shadow: inset 0 0 0 2px var(--accent); }
.btn.off { background: var(--panel-2); color: var(--muted); pointer-events: none; }
.actions { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-top: 6px; }
.card .actions .btn { flex: 1 1 auto; font-size: 16px; padding: 11px 14px; }
.card > .body > .link { margin-top: 2px; }
.side .btn + .btn { margin-top: -2px; }
.link { color: var(--muted); font-size: 14px; }

/* game page */
.hero { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); margin-top: 8px; }
.hero img { display: block; width: 100%; height: auto; }
.detail { display: grid; grid-template-columns: 1fr 300px; gap: 28px; padding: 26px 0 50px; }
.detail h2 { margin: 0 0 4px; font-size: 32px; }
.detail .desc { font-size: 17px; margin: 12px 0 0; }
.side { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; align-self: start; display: flex; flex-direction: column; gap: 12px; }
.side .btn { width: 100%; }
.side small { color: var(--muted); }
.box { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 18px; margin-top: 22px; }
.box h3 { margin: 0 0 6px; font-size: 16px; }
.box ol, .box p { margin: 0; color: var(--muted); padding-left: 20px; }
.box p { padding-left: 0; }
.notes { white-space: pre-wrap; color: var(--muted); font: 14px/1.5 ui-monospace, Consolas, monospace; margin: 0; }

footer { color: #6d7380; font-size: 13px; padding-top: 20px; padding-bottom: 40px; }
footer::before { content: ""; display: block; border-top: 1px solid var(--line); margin-bottom: 16px; }
.empty { color: var(--muted); padding-top: 40px; padding-bottom: 40px; }

@media (max-width: 760px) {
  .detail { grid-template-columns: 1fr; }
  .detail .side { order: -1; }
  header.top { padding-top: 28px; }
  .detail h2 { font-size: 26px; }
}
