/* Scratchoffs — Sandbox prototype. Foil cells + rarity symbol chips
   (colours mirror the Slots rarity palette in css/slots.css). */
.scr-wrap { text-align: center; margin-top: 18px; max-width: 860px; margin-inline: auto; }
.scr-prizes { text-align: left; max-width: 560px; margin: 14px auto 4px; }
.scr-prizes summary { cursor: pointer; text-align: center; color: var(--muted); }
.scr-prize-tier { margin-top: 12px; }
.scr-prize-tier h4 { margin: 0 0 6px; }
.scr-prize-row { display: flex; justify-content: space-between; gap: 12px; padding: 3px 0; border-bottom: 1px solid var(--line); }
.scr-balance { margin: 2px 0 12px; font-size: 15px; }
.scr-tiers {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px; max-width: 720px; margin: 0 auto 8px;
}
/* Tier cards must read as identical boxes (Franklin, 2026-10-13): the grid
   stretches them to equal height, each card is a flex column, the blurb
   takes the slack, and the Buy button is full-width and pinned to the
   bottom — so a 3-line blurb (Chase) no longer pushes its button lower
   or wider than the others. */
.scr-tier { margin: 0; display: flex; flex-direction: column; }
.scr-tier h3 { margin: 0 0 6px; }
.scr-tier p { flex: 1 1 auto; }
.scr-tier .scr-buy { width: 100%; margin-top: auto; }
.scr-stage { margin: 10px auto; max-width: 360px; }
.scr-ticket-title { margin: 6px 0 10px; }
.scr-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.scr-cell {
  aspect-ratio: 1.35; border-radius: 12px; cursor: pointer;
  border: 2px solid #2c2f3a; background: #1d2027;
  display: flex; align-items: center; justify-content: center;
  font: inherit; padding: 4px;
}
.scr-cell:not(.scr-cell-open) {
  background: linear-gradient(135deg, #9aa1b1 0%, #6e7585 30%, #aeb5c4 55%, #767e90 80%, #98a0b0 100%);
  border-color: #565d6d;
}
.scr-cell:not(.scr-cell-open):hover { filter: brightness(1.12); }
.scr-foil { font-size: 22px; font-weight: 800; color: #2c2f3a; text-shadow: 0 1px 0 rgba(255,255,255,.35); }
.scr-cell-open { cursor: default; }
.scr-sym {
  font-weight: 700; font-size: 11px; padding: 6px 10px; border-radius: 999px;
  white-space: nowrap; border: 2px solid transparent;
}
.scr-sym-common    { color: #c8ccd4; border-color: #6b7280; background: #1d2027; }
.scr-sym-uncommon  { color: #7ee787; border-color: #2ea043; background: #12241a; }
.scr-sym-rare      { color: #79c0ff; border-color: #1f6feb; background: #0e1c33; }
.scr-sym-epic      { color: #d2a8ff; border-color: #8957e5; background: #1e1433; }
.scr-sym-legendary { color: #ffdf5d; border-color: #d4a017; background: #2b2111; }
.scr-sym-chase     { color: #ff9ecd; border-color: #ec4899; background: #2c1220; }
.scr-stage-btns { margin-top: 10px; display: flex; gap: 12px; align-items: center; justify-content: center; }
.scr-result { min-height: 40px; margin: 8px 0; }
.scr-win {
  display: inline-block; font-weight: 800; font-size: 16px;
  color: #ffdf5d; background: #2b2111; border: 2px solid #d4a017;
  border-radius: 12px; padding: 9px 16px;
}
.scr-sim { margin-top: 8px; }
@media (max-width: 480px) {
  .scr-sym { font-size: 10px; padding: 5px 8px; }
}

/* Back to Arcade row (2026-10-14) */

/* Phones: keep the three tier boxes in one row instead of a stacked
   tower (Franklin, 2026-10-14) — the same 3-across look desktop gets
   from the auto-fit grid, with compact type to fit ~110px boxes. */
@media (max-width: 640px) {
  .scr-tiers { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .scr-tier { padding: 10px 7px; min-width: 0; }
  .scr-tier h3 { font-size: 12.5px; letter-spacing: 0.04em; }
  .scr-tier p { font-size: 11px; line-height: 1.4; }
  .scr-tier .scr-buy { font-size: 12.5px; padding: 8px 2px; white-space: normal; line-height: 1.25; }
}
