:root {
  --accent: #31C3FF;
  --bg: #07111F;
  --surface: #0D2035;
  --card: #12304C;
  --muted: #86B8D6;
}

* { box-sizing: border-box; }

body {
  margin: 0 auto;
  padding: 0 16px 32px;
  max-width: 1100px;
  background: var(--bg);
  color: #E6F2FB;
  font: 16px/1.5 system-ui, -apple-system, "Segoe UI", sans-serif;
}

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

header { padding: 28px 0 4px; }
h1 { margin: 0; font-size: 1.8rem; }
.tagline { margin: 4px 0 0; color: var(--muted); }
.design-note { margin: 8px 0 0; max-width: 75ch; color: var(--muted); font-size: 0.85rem; }
.design-credit { margin: 0 0 10px; color: var(--muted); font-size: 0.85rem; }
.design-badge { display: inline-block; padding: 2px 8px; border: 1px solid currentColor; border-radius: 4px; font-size: 0.75rem; font-weight: 600; }
.design-human { color: #a9e6be; }
.design-ai { color: #d8c2ff; }

.notes {
  background: var(--surface);
  border: 1px solid var(--card);
  border-radius: 8px;
  margin: 16px 0;
  padding: 10px 16px;
  font-size: 0.9rem;
}
.notes ul { margin: 6px 0; padding-left: 20px; }
.notes li { margin: 3px 0; }

.toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 16px 0;
}
.toolbar input, .toolbar select, .kinds button {
  background: var(--surface);
  color: #E6F2FB;
  border: 1px solid var(--card);
  border-radius: 6px;
  padding: 8px 12px;
  font-size: 0.9rem;
}
.toolbar input { flex: 1 1 180px; }
.kinds { display: flex; gap: 4px; }
.kinds button { cursor: pointer; }
.kinds button.active {
  border-color: var(--accent);
  color: var(--accent);
}

#grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
}

.card {
  background: var(--card);
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.thumb {
  width: 100%;
  aspect-ratio: 16 / 9;
  height: auto;
  object-fit: cover;
  background: var(--surface);
  display: block;
}

.card .body {
  padding: 12px 14px 14px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.card h2 { margin: 0; font-size: 1.05rem; }
.badge {
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--muted);
  border: 1px solid var(--muted);
  border-radius: 4px;
  padding: 1px 5px;
  vertical-align: 2px;
}
.desc { margin: 6px 0; font-size: 0.88rem; flex: 1; }
.meta { margin: 0 0 10px; font-size: 0.78rem; color: var(--muted); }

.dl {
  display: block;
  text-align: center;
  background: var(--accent);
  color: var(--bg);
  font-weight: 700;
  text-decoration: none;
  border-radius: 6px;
  padding: 8px;
}
.dl:hover { filter: brightness(1.15); }

#empty { color: var(--muted); text-align: center; margin: 32px 0; }

footer {
  margin-top: 28px;
  font-size: 0.8rem;
  color: var(--muted);
  text-align: center;
}

.card[hidden] { display: none; }
.preview-link { display: block; text-decoration: none; }
.game-title { color: inherit; text-decoration: none; }
.game-title:hover { color: var(--accent); }
.all-versions { margin-top: 8px; font-size: 0.8rem; text-align: center; }
.game-summary { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin: 24px 0; }
.game-summary .thumb { border-radius: 8px; }
.game-summary p:first-child { margin-top: 0; }
.game-help, .version-size { color: var(--muted); font-size: 0.85rem; }
.version-history { margin-top: 32px; }
.recorded-preview video { display: block; width: 100%; max-width: 960px; border-radius: 8px; }
.version-history table { width: 100%; border-collapse: collapse; font-size: 0.85rem; }
.version-history th, .version-history td { padding: 12px 8px; border-bottom: 1px solid var(--card); text-align: left; vertical-align: top; }
.version-history code { overflow-wrap: anywhere; }
@media (max-width: 650px) {
  .game-summary { grid-template-columns: 1fr; }
  .version-history th, .version-history td { padding: 10px 4px; font-size: 0.75rem; }
}

.launcher-banner{display:flex;align-items:center;gap:2rem;justify-content:space-between;padding:1.7rem 2rem;margin:1.5rem 0;border:1px solid #42638b;border-radius:12px;background:linear-gradient(120deg,#1b324e,#101c2d)}.launcher-banner h2{margin:.3rem 0 .65rem;font-size:1.65rem}.launcher-banner>div:first-child{max-width:650px}.launcher-banner p{line-height:1.6}.launcher-kicker{font-size:.7rem;letter-spacing:.17em;color:#9bc7ff;margin:0}.launcher-meta{font-size:.75rem;color:#a8b9ce}.launcher-banner .dl{white-space:nowrap}@media(max-width:750px){.launcher-banner{flex-direction:column;align-items:start;padding:1.3rem}.launcher-banner .dl{white-space:normal}}
