/* SolidStart Memory Match — Large Layout V2 (STANDALONE REVIEW ONLY)
   The six original games, assets, scoring and menus are unchanged.
   Remove V1's 1,100px shell / 630px desktop board caps, and let the
   board use available desktop space without overflowing short screens. */
@media (min-width: 900px) {
  .game-shell {
    width: min(calc(100% - 12px), 1600px) !important;
    max-width: 1600px !important;
    grid-template-columns: minmax(148px, 1fr) minmax(0, 940px) minmax(148px, 1fr);
    column-gap: clamp(12px, 1.25vw, 24px);
    padding: 37px clamp(14px, 1.4vw, 24px) 18px;
  }
  .game-header { margin: 0 0 0; }
  .game-header::before { padding: 4px 12px; margin-bottom: 2px; }
  .game-header h1 { font-size: clamp(36px, 3vw, 52px); margin-bottom: 3px; }
  .game-header p { font-size: clamp(15px, 1.2vw, 19px); }
  .progress { margin: 0 1px 5px; }
  .progress__row { margin-bottom: 2px; }
  .board-scene { width: 100%; min-width: 0; margin: 0; justify-self: center; }
  .board-panel {
    width: min(100%, calc(100dvh - 212px), 940px) !important;
    max-width: 100%;
    padding: clamp(10px, 1vw, 16px);
    border-radius: 22px;
  }
  .board { width: 100%; max-width: none; gap: clamp(8px, 0.9vw, 15px); }
  .memory-card__cover::after { font-size: clamp(38px, 4.2vw, 77px); }
  .memory-card__word { font-size: clamp(21px, 2vw, 38px); }
  .scoreboard { gap: clamp(11px, 1.1vw, 17px); }
  .desktop-records { grid-template-rows: repeat(3, minmax(105px, 122px)); gap: clamp(11px, 1.1vw, 17px); }
  .stat, .desktop-record { height: clamp(105px, 11vh, 122px); min-height: 105px; }
  .desktop-records { grid-template-rows: repeat(3, clamp(105px, 11vh, 122px)); }
  .stat__label, .desktop-record__label { font-size: clamp(13px, 1.1vw, 17px); }
  .stat__value, .desktop-record__value { font-size: clamp(31px, 2.4vw, 45px); }
  .stat--time .stat__value,
  .desktop-record:last-child .desktop-record__value { font-size: clamp(26px, 2.1vw, 37px); }
  .game-actions { margin-top: 12px; }
  .game-actions .action { font-size: clamp(14px, 1vw, 18px); }
  .memory-set-nav { top: 12px; left: clamp(14px, 1.4vw, 24px); right: clamp(14px, 1.4vw, 24px); }
}
/* At tablet widths the board already fills the available width. Maintain
   the existing mobile/tablet order and only remove the old outer cap. */
@media (min-width: 600px) and (max-width: 899px) {
  .game-shell { width: min(calc(100% - 10px), 860px); max-width: none; }
  .board-panel { width: min(100%, 820px); }
  .board { max-width: none; }
}
@media (max-width: 599px) {
  /* Approved mobile arrangements are unchanged. */
  .game-shell { width: 100%; }
}
