/* =========================================================
   Game shelf page. Coral accent comes from <body class="personal">.
   ========================================================= */

.back { display: inline-block; color: var(--muted); text-decoration: none; font-size: 14px; margin-bottom: 14px; }
.back:hover { color: var(--accent); }

.shelf { padding-top: 48px; padding-bottom: 96px; }

/* ---------- Quick numbers ---------- */
.shelf-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 36px; }
.shelf-stats div {
  background: var(--panel);
  border: 1px solid var(--line);
  border-top: 2px solid var(--accent);
  border-radius: 4px;
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
}
.shelf-stats .big { font-family: "Space Grotesk", system-ui, sans-serif; font-size: 32px; font-weight: 700; line-height: 1.1; color: var(--accent); }
.shelf-stats .small { color: var(--muted); font-size: 14px; }

/* ---------- Sort and filter buttons ---------- */
.controls { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 18px; }
.controls .label { margin-right: 4px; }
.controls .gap { margin-left: 16px; }
.chip {
  font: inherit;
  font-size: 14px;
  color: var(--text);
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 14px;
  cursor: pointer;
}
.chip:hover { border-color: var(--accent); }
.chip.is-on { background: var(--accent); border-color: var(--accent); color: #1a0d08; font-weight: 600; }
.count { margin-left: auto; color: var(--muted); font-size: 14px; }

/* ---------- The list ---------- */
.games { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.game {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 18px;
  align-items: start;
  padding: 16px 4px;
  border-bottom: 1px solid var(--line);
}
.game[hidden] { display: none; }

/* Rating sits inside a hexagon, matching the honeycomb at the top */
.score {
  width: 48px;
  height: 54px;
  display: grid;
  place-items: center;
  font-family: "Space Grotesk", system-ui, sans-serif;
  font-weight: 700;
  font-size: 16px;
  color: var(--text);
  background: var(--panel);
  clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
}
.game.top .score { background: var(--accent); color: #1a0d08; }   /* 9 and up */
.game.unrated .score { color: var(--muted); }

.info { padding-top: 4px; }
.title { font-family: "Space Grotesk", system-ui, sans-serif; font-weight: 600; font-size: 18px; text-decoration: none; }
.title:hover { color: var(--accent); }
.year { color: var(--muted); font-size: 13px; margin-left: 6px; }
.note { margin: 6px 0 0; color: var(--muted); font-style: italic; max-width: 70ch; }

.exp { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.exp li {
  font-size: 12px;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 2px 10px;
}
.exp li::before { content: "+ "; color: var(--accent); }

.source { color: var(--muted); font-size: 14px; margin-top: 24px; }
.source a { color: var(--accent); }

/* ---------- Phones ---------- */
@media (max-width: 800px) {
  .shelf { padding-top: 28px; padding-bottom: 64px; }
  .shelf-stats { grid-template-columns: 1fr 1fr; gap: 10px; }
  .controls .gap { margin-left: 0; width: 100%; margin-top: 6px; }   /* "Show" starts its own line */
  .count { width: 100%; margin-left: 0; }
  .game { grid-template-columns: 46px 1fr; gap: 14px; }
  .score { width: 40px; height: 45px; font-size: 14px; }
  .title { font-size: 16px; }
}
