/* Noggin — the shelf the games sit on.
   Shares Spectrum's palette and type so stepping into a game feels continuous. */

:root {
  --bg: #f6f7f9;
  --surface: #ffffff;
  --card: #ffffff;
  --card-border: #d9dee5;
  --ink: #131720;
  --ink-soft: #5c6673;
  --ink-faint: #97a1ae;
  --accent: #2f6df6;
  --shadow: 0 1px 2px rgba(16, 22, 34, .08), 0 4px 14px rgba(16, 22, 34, .06);
  --shadow-lift: 0 6px 22px rgba(16, 22, 34, .13);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0e1116;
    --surface: #171c23;
    --card: #1c222b;
    --card-border: #2c3540;
    --ink: #eef2f7;
    --ink-soft: #9aa5b3;
    --ink-faint: #6b7684;
    --accent: #5c8dff;
    --shadow: 0 1px 2px rgba(0, 0, 0, .4);
    --shadow-lift: 0 6px 22px rgba(0, 0, 0, .5);
  }
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: ui-rounded, "SF Pro Rounded", system-ui, -apple-system, "Segoe UI",
               Roboto, "Helvetica Neue", sans-serif;
  -webkit-text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
}

body {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  padding: env(safe-area-inset-top) env(safe-area-inset-right)
           env(safe-area-inset-bottom) env(safe-area-inset-left);
}

/* ---------- hero ---------- */
.hero {
  max-width: 520px;
  width: 100%;
  margin: 0 auto;
  padding: 40px 20px 24px;
  text-align: center;
}

.wordmark {
  margin: 0;
  font-size: 26px;
  font-weight: 800;
  letter-spacing: .24em;
  text-indent: .24em;
}

.tagline {
  margin: 10px 0 0;
  font-size: 14px;
  color: var(--ink-soft);
}

/* ---------- the shelf ---------- */
.shelf {
  flex: 1;
  max-width: 520px;
  width: 100%;
  margin: 0 auto;
  padding: 0 16px 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.game {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 16px;
  background: var(--card);
  border: 1.5px solid var(--card-border);
  border-radius: 16px;
  box-shadow: var(--shadow);
  color: inherit;
  text-decoration: none;
  transition: transform .16s cubic-bezier(.2, .8, .3, 1), box-shadow .16s, border-color .16s;
}

.game:active { transform: scale(.985); }

@media (hover: hover) {
  .game:not(.soon):hover {
    border-color: var(--accent);
    box-shadow: var(--shadow-lift);
  }
}

.game:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.game-icon {
  flex: none;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  font-size: 24px;
  background: var(--bg);
  border-radius: 12px;
}

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

.game-name { font-size: 17px; font-weight: 700; }

.game-blurb {
  font-size: 13px;
  line-height: 1.45;
  color: var(--ink-soft);
}

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

.tag {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .09em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--accent) 16%, transparent);
  color: var(--accent);
}
.tag.quiet {
  background: transparent;
  border: 1px solid var(--card-border);
  color: var(--ink-faint);
}

.game-go { flex: none; color: var(--ink-faint); font-size: 20px; }

/* a placeholder slot, so the shelf reads as having room */
.game.soon {
  border-style: dashed;
  box-shadow: none;
  opacity: .55;
}
.game.soon .game-icon { color: var(--ink-faint); }

/* ---------- foot ---------- */
.foot {
  max-width: 520px;
  width: 100%;
  margin: 0 auto;
  padding: 0 20px calc(28px + env(safe-area-inset-bottom));
  text-align: center;
}
.foot p {
  margin: 0;
  font-size: 12px;
  color: var(--ink-faint);
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
