/* games.css - the four mini-games (JOB GAMES, 25 Nov 2026).

   The shapes and the wording come from the published page "Sam's First Spark"
   (discover-me/recovered/first-spark.html, the "/* game */" block, lines
   126-157). What is new here: a pause for every game, the kind line under
   each game, and the laptop width rules.

   House colours only: every colour comes from the page's own tokens, so the
   games change with Bright, Midnight, Forest and Sunset without a word here.
   Nothing here is a score, a mark or a warning. */
.arcade { display: flex; flex-direction: column; gap: 14px; }

/* the four game tiles */
.gpick { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
@media (max-width: 520px) { .gpick { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.gtile { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; text-align: left;
  border: 2px solid var(--line); background: var(--card); color: var(--ink); border-radius: 16px;
  padding: 10px; min-height: 64px; font: inherit; cursor: pointer; }
.gtile svg { color: var(--pop); width: 22px; height: 22px; flex: none; }
.gtile b { font-family: var(--display); font-size: .95rem; }
.gtile span { font-size: .78rem; color: var(--soft); }
.gtile[aria-selected="true"] { border-color: var(--pop); background: var(--tint); }
.gtile.played b::after { content: " \2713"; color: var(--mint); }

/* one game at a time */
.gpane { display: flex; flex-direction: column; gap: 10px; }
.gpane > p { color: var(--soft); }
.gscore { font-family: var(--display); font-size: 1.05rem; min-height: 1.5em; color: var(--ink); }
/* the kind line: what the game uses, never a claim that it measures you */
.gkind { font-size: .95rem; color: var(--soft); border-left: 4px solid var(--line); padding-left: 10px; }

/* reaction tap */
.padbtn { min-height: 170px; border-radius: 22px; border: 0; width: 100%; color: #ffffff;
  font-family: var(--display); font-weight: 800; font-size: 1.5rem; display: grid; place-items: center;
  background: var(--soft); transition: background-color .08s; cursor: pointer; }
.padbtn.wait { background: var(--coral); }
.padbtn.go { background: var(--mint); color: #062a1f; }
.padbtn.paused { background: var(--line); color: var(--ink); }

/* paddle rally */
#rally { width: 100%; max-width: 460px; border-radius: 18px; background: var(--tint); touch-action: none; display: block; }

/* memory match */
.mgrid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; max-width: 340px; }
.mcard { aspect-ratio: 1; max-width: 100%; border-radius: 14px; border: 0; background: var(--pop);
  color: var(--pop-ink); display: grid; place-items: center; cursor: pointer; }
.mcard svg { width: 34px; height: 34px; visibility: hidden; }
.mcard.up, .mcard.done { background: var(--tint); color: var(--ink); }
.mcard.up svg, .mcard.done svg { visibility: visible; }
.mcard.done { opacity: .55; }

/* pattern copy */
.sgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; max-width: 280px; }
.spad { aspect-ratio: 1; border-radius: 20px; border: 0; background: var(--c); opacity: .35;
  transition: opacity .12s, transform .12s; cursor: pointer; }
.spad.lit { opacity: 1; transform: scale(1.04); }

/* the note under the games */
.arcade-note { font-size: .85rem; color: var(--soft); }

/* reduced motion: no fades, no growing pads */
@media (prefers-reduced-motion: reduce) {
  .spad { transition: none; }
  .spad.lit { transform: none; }
  .padbtn { transition: none; }
}

/* laptop: the arcade and the sparks card use the full width, and the game
   itself keeps a sensible size in the middle of it */
@media (min-width: 900px) {
  .wrap > #arcade-card, .wrap > #sparks-card { grid-column: 1 / -1; }
  .arcade { max-width: 40rem; }
  .gpane { max-width: 40rem; }
}
