/* NeuralRun Playable — catalog shell */
:root {
  --bg: #14110e;
  --bg2: #1c1814;
  --ink: #f3ebe0;
  --muted: #a89a88;
  --line: rgba(243, 235, 224, 0.12);
  --accent: #d4a574;
  --accent-ink: #1a120a;
  --card: #221c17;
  --radius: 14px;
  --font: "Iowan Old Style", "Palatino Linotype", "Songti SC", "STSong", "Noto Serif SC", Georgia, serif;
  --sans: "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

* { box-sizing: border-box; }
html, body {
  margin: 0; padding: 0; min-height: 100%;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
}
body {
  background:
    radial-gradient(1200px 600px at 10% -10%, rgba(212,165,116,.16), transparent 55%),
    radial-gradient(900px 500px at 100% 0%, rgba(90,120,110,.12), transparent 50%),
    var(--bg);
}

.wrap {
  width: min(1100px, calc(100% - 2.5rem));
  margin: 0 auto;
  padding: 2.4rem 0 4rem;
}

.top {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: 2.2rem;
  border-bottom: 1px solid var(--line);
  padding-bottom: 1.4rem;
}
.brand {
  font-family: var(--font);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 600;
  letter-spacing: 0.04em;
  margin: 0;
  line-height: 1.15;
}
.brand span {
  display: block;
  margin-top: 0.45rem;
  font-family: var(--sans);
  font-size: 0.92rem;
  font-weight: 400;
  color: var(--muted);
  letter-spacing: 0.02em;
}
.meta {
  color: var(--muted);
  font-size: 0.85rem;
  text-align: right;
  line-height: 1.5;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.15rem;
}

.card {
  display: flex;
  flex-direction: column;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.card:hover, .card:focus-visible {
  transform: translateY(-3px);
  border-color: rgba(212,165,116,.45);
  box-shadow: 0 16px 40px rgba(0,0,0,.35);
  outline: none;
}
.cover {
  aspect-ratio: 3 / 4;
  background: var(--bg2) center/cover no-repeat;
  position: relative;
}
.cover::after {
  content: "";
  position: absolute; inset: auto 0 0 0; height: 42%;
  background: linear-gradient(transparent, rgba(20,17,14,.85));
}
.body {
  padding: 0.95rem 1rem 1.15rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  flex: 1;
}
.name {
  font-family: var(--font);
  font-size: 1.2rem;
  margin: 0;
  letter-spacing: 0.03em;
}
.tag {
  display: inline-block;
  width: fit-content;
  font-size: 0.72rem;
  color: var(--accent);
  border: 1px solid rgba(212,165,116,.35);
  border-radius: 999px;
  padding: 0.15rem 0.55rem;
}
.blurb {
  margin: 0.25rem 0 0;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.45;
  flex: 1;
}
.cta {
  margin-top: 0.7rem;
  font-size: 0.82rem;
  color: var(--accent);
  letter-spacing: 0.06em;
}

.foot {
  margin-top: 2.5rem;
  padding-top: 1.2rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.6;
}
.foot a { color: var(--accent); }

@media (max-width: 640px) {
  .wrap { width: calc(100% - 1.4rem); padding-top: 1.4rem; }
  .top { flex-direction: column; align-items: flex-start; }
  .meta { text-align: left; }
}
