/* Shared by the games hub and every game. */
.intro { padding: 1rem 0 1.5rem; }
.intro h1 { font-size: clamp(2.3rem, 6vw, 4rem); }
.lead { color: var(--muted); font-size: 1.25rem; margin: .75rem 0 0; }
.games-grid { grid-auto-rows: minmax(190px, auto); }
.games-grid .tile.feature { grid-row: span 2; }
.games-grid .badge { right: auto; left: 1.4rem; }
.games-grid .tile[aria-disabled="true"] { min-height: 150px; }
@media (max-width: 900px) { .games-grid .tile.feature { grid-row: span 1; } }

.game-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .9rem; margin-bottom: 1.4rem; }
.levels, .actions { display: flex; flex-wrap: wrap; gap: .6rem; }
.pill {
  min-height: 3rem; padding: .4rem 1.15rem;
  border: 1px solid var(--line); border-radius: 999px;
  background: rgba(255, 255, 255, .06); color: var(--ink);
  font: 600 1rem var(--body); cursor: pointer;
  transition: background .2s, color .2s, border-color .2s, transform .2s;
}
@media (hover: hover) { .pill:hover { border-color: var(--line-hi); } }
.pill:disabled { opacity: .45; cursor: default; }
.pill[aria-pressed="true"] { background: linear-gradient(180deg, var(--gold-hi), var(--gold)); color: var(--gold-ink); border-color: transparent; }
.pill:focus-visible { outline: 3px solid var(--gold-hi); outline-offset: 3px; }
.stat { color: var(--muted); font-weight: 600; font-size: 1.05rem; }
.stat b { color: var(--gold-hi); font-variant-numeric: tabular-nums; }

.win {
  margin: 1.5rem auto 0; max-width: 560px; padding: 1.6rem; text-align: center;
  animation: win-in .5s cubic-bezier(.2, 1.1, .4, 1);
}
.win h2 { font-size: 2rem; margin-bottom: .4rem; }
.win p { margin: 0 0 1rem; color: var(--muted); }
.win .actions { justify-content: center; }
@keyframes win-in { from { opacity: 0; transform: translateY(14px) scale(.96); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .win { animation: none; } }
