/* Games: daily reverse puzzle. Split from the single original stylesheet; zero visual change. */

#puzzle-guess {
  width: 100%; font: inherit; font-size: 1.05rem; letter-spacing: 0.08em;
  border: 1px solid var(--line); border-radius: 8px; padding: 0.6rem 0.75rem;
  background: #fff; color: var(--ink);
}

.puzzle-row { display: flex; gap: 0.3rem; margin: 0.4rem 0; }

.tile {
  display: inline-flex; align-items: center; justify-content: center;
  width: 2rem; height: 2rem; border-radius: 6px; font-weight: 700;
  background: #ececea; color: var(--ink);
}

.tile-correct { background: #4a7c59; color: #fff; }

.tile-present { background: #c9a227; color: #fff; }

.tile-absent { background: #ddd; color: var(--muted); }

/* Phone fix (2026-11-05): a 9-tile row measured 326px in a 283px
   card — it overflowed the card and stretched the whole Games grid
   past the viewport (11-letter words are worse). On phones the tiles
   flex to share the row (square via aspect-ratio, capped at the
   desktop 2rem), so any word length fits the card. Desktop unchanged.
   This alone does NOT hold the layout: the row's intrinsic width
   still grew the 1fr grid track (440px card, scrollWidth 473 for
   11 tiles). The track itself is constrained by minmax(0, 1fr) in
   shell.css — the two fixes work together: track holds the row,
   tiles shrink inside it. */
@media (max-width: 640px) {
  .puzzle-row { gap: 0.25rem; }
  .puzzle-row .tile {
    flex: 1 1 0; min-width: 0; max-width: 2rem;
    height: auto; aspect-ratio: 1; font-size: 0.9rem;
  }
}
