:root {
  --bg: #f4ecd8;
  --bg-deep: #eadcbc;
  --card: #fffaf0;
  --ink: #3b2f1e;
  --muted: #6f604a;
  --line: #d9c7a0;
  --accent: #b8432f;
  --shadow: 0 1px 2px rgb(59 47 30 / 0.08), 0 6px 18px rgb(59 47 30 / 0.08);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #1f1a13;
    --bg-deep: #17130e;
    --card: #2a2319;
    --ink: #f1e7d2;
    --muted: #b9aa8e;
    --line: #43392a;
    --accent: #e0765f;
    --shadow: 0 1px 2px rgb(0 0 0 / 0.3), 0 6px 18px rgb(0 0 0 / 0.25);
  }
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
}

body {
  min-height: 100vh;
  background: radial-gradient(circle at 20% 0%, var(--bg) 0%, var(--bg-deep) 100%) fixed;
  color: var(--ink);
  font: 16px/1.5 system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

.wrap {
  max-width: 880px;
  margin: 0 auto;
  padding: 48px 16px 64px;
}

.intro {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 32px;
}

.logo {
  flex: none;
  border-radius: 14px;
  box-shadow: var(--shadow);
}

h1 {
  margin: 0 0 4px;
  font: 700 2rem/1.15 Georgia, 'Times New Roman', serif;
  letter-spacing: -0.01em;
}

.intro p {
  margin: 0;
  max-width: 56ch;
  color: var(--muted);
}

.shelf {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 380px), 1fr));
  gap: 16px;
}

.game {
  display: flex;
  gap: 16px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--card);
  box-shadow: var(--shadow);
  color: inherit;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

a.game:hover,
a.game:focus-visible {
  transform: translateY(-2px);
  border-color: var(--accent);
  outline: none;
}

.icon {
  flex: none;
  width: 96px;
  height: 96px;
  border-radius: 22px;
}

.body {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.name {
  font: 700 1.25rem/1.2 Georgia, 'Times New Roman', serif;
}

.desc {
  color: var(--muted);
  font-size: 0.95rem;
}

.meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 6px;
}

.tag {
  padding: 2px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.8rem;
  color: var(--muted);
}

.soon {
  border-style: dashed;
  background: transparent;
  box-shadow: none;
  opacity: 0.7;
}

.placeholder {
  display: grid;
  place-items: center;
  border: 2px dashed var(--line);
  color: var(--muted);
  font-size: 2.5rem;
}

@media (max-width: 480px) {
  .wrap {
    padding-top: 28px;
  }
  .intro {
    flex-direction: column;
    gap: 12px;
  }
  .icon {
    width: 72px;
    height: 72px;
    border-radius: 18px;
  }
}
