:root {
  --bg: #151a1a;
  --panel: #1c2323;
  --line: #2c3736;
  --text: #dde2df;
  --muted: #8b9894;
  --link: #8fc1b5;
  --accent: #8fc1b5;
}
* { box-sizing: border-box; }
html { background: var(--bg); }
body { margin: 0; color: var(--text); font: 17px/1.6 system-ui, -apple-system, "Segoe UI", sans-serif; }
img { display: block; max-width: 100%; }
a { color: var(--link); }
a:hover { color: #fff; }
button { font: inherit; color: inherit; }
h1, h2, h3 { line-height: 1.2; margin: 0; font-weight: 600; }
h1 { font-size: 2rem; }
h2 { font-size: 1.05rem; margin: 2rem 0 0.6rem; }

.wrap { width: min(1080px, 100% - 2rem); margin-inline: auto; }
.bar { border-bottom: 1px solid var(--line); }
.bar .wrap { display: flex; justify-content: space-between; align-items: center; padding-block: 0.8rem; }
.brand { display: flex; align-items: center; gap: 0.6rem; color: var(--text); text-decoration: none; font-weight: 600; }
.brand img { image-rendering: pixelated; }
.bar a:not(.brand) { color: var(--muted); text-decoration: none; font-size: 0.95rem; }
.bar a:not(.brand):hover { color: var(--text); }
.foot { margin-block: 4rem 2rem; color: var(--muted); font-size: 0.9rem; }

main { padding-top: 2.5rem; }
.intro { color: var(--muted); margin: 0.5rem 0 0; max-width: 60ch; }
.crumbs { margin: 0 0 0.4rem; font-size: 0.9rem; color: var(--muted); }
.crumbs a { color: var(--muted); }

/* library */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 1.75rem 1.5rem; }
section > h2 { margin-top: 2.5rem; }
.card { display: block; color: var(--text); text-decoration: none; }
.card img { aspect-ratio: 16 / 9; width: 100%; height: auto; object-fit: cover; border: 1px solid var(--line); margin-bottom: 0.7rem; }
.card:hover img { border-color: var(--accent); }
.card h3 { font-size: 1.15rem; }
.card:hover h3 { color: var(--accent); }
.card p { margin: 0.2rem 0 0.4rem; color: var(--muted); font-size: 0.95rem; }
.card small { color: var(--muted); font-size: 0.85rem; }

/* game page */
.stage { margin-top: 1.75rem; max-width: 960px; }
.poster { position: relative; display: grid; place-content: center; justify-items: center; gap: 0.8rem; background: #000 center / cover; border: 1px solid var(--line); }
.poster::before { content: ""; position: absolute; inset: 0; background: rgb(0 0 0 / 0.5); }
.poster > * { position: relative; }
.poster p { margin: 0; font-size: 0.95rem; }
.play { background: var(--accent); color: #111; border: 0; padding: 0.7rem 1.6rem; font-weight: 600; font-size: 1.05rem; cursor: pointer; text-decoration: none; }
.play:hover { filter: brightness(1.12); color: #111; }
.frame { display: block; width: 100%; border: 1px solid var(--line); background: #000; }
.stagebar { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-top: 0.6rem; color: var(--muted); font-size: 0.9rem; }
.stagebar button { background: none; border: 0; padding: 0; color: var(--link); cursor: pointer; text-decoration: underline; }
.note { max-width: 70ch; margin: 1.5rem 0 0; padding-left: 0.9rem; border-left: 2px solid var(--line); color: var(--muted); font-size: 0.95rem; }

.cols { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 3rem; margin-top: 2rem; }
.cols > div:first-child p { max-width: 62ch; margin: 0 0 1rem; }
.shots { display: grid; gap: 1.25rem; margin-top: 2rem; max-width: 62ch; }
.shots figure { margin: 0; }
.shots img { border: 1px solid var(--line); }
.shots figcaption { margin-top: 0.3rem; color: var(--muted); font-size: 0.9rem; }
.side h2:first-child { margin-top: 0; }
.side dl { display: grid; grid-template-columns: auto 1fr; gap: 0.3rem 1rem; margin: 0; font-size: 0.95rem; }
.side dt { color: var(--muted); }
.side dd { margin: 0; }
.side ul { margin: 0; padding-left: 1.1rem; font-size: 0.95rem; }

@media (max-width: 860px) {
  .cols { grid-template-columns: 1fr; gap: 1rem; }
  h1 { font-size: 1.7rem; }
}
