/* Homepage uses the shared warm-paper palette and typography. */
.home-shell { width: min(960px, calc(100% - 64px)); margin: auto; padding-bottom: env(safe-area-inset-bottom); }
.home-skip { position: fixed; z-index: 10; top: 8px; left: 8px; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; background: var(--invite-surface); color: var(--ink); }
.home-skip:focus { width: auto; height: auto; padding: 12px; overflow: visible; clip-path: none; }
.home-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 88px; border-bottom: 1px solid var(--line); }
.home-header .brand { display: inline-flex; align-items: center; min-height: 44px; font-size: 28px; }
.home-shell main { padding-top: 32px; }
.home-description { max-width: 60ch; margin: 36px 0 0; font-size: 15px; line-height: 1.6; color: var(--ink-soft); }
.catalog-heading { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 16px; }
.catalog-heading h2, .home-saved h2 { margin: 0; font: 600 16px/1.4 var(--sans); }
.home-storage-note { color: var(--muted); font-size: 14px; line-height: 1.5; margin: -4px 0 20px; }
.home-beta-catalog { margin-top: 36px; }
.home-games { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px 20px; list-style: none; padding: 0; margin: 0; }
.home-games li { min-width: 0; }
.home-game { position: relative; display: flex; flex-direction: column; height: 100%; overflow: hidden; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); color: var(--ink); text-decoration: none; transition: border-color 140ms; }
.home-game:hover { border-color: var(--invite-action); }
/* A bounded grid track prevents intrinsic SVG ratios from expanding into the title. */
.home-game-preview { display: grid; grid-template: minmax(0, 1fr) / minmax(0, 1fr); place-items: center; flex-shrink: 0; height: 160px; padding: 8px; overflow: hidden; background: var(--paper-deep); }
.home-game-preview img { display: block; width: 100%; height: 100%; min-width: 0; min-height: 0; max-width: 240px; object-fit: contain; }
.home-game-copy { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 8px; padding: 17px 36px 17px 18px; }
.home-game-name { font: 600 15px/1.4 var(--sans); }
.home-game-meta { color: var(--muted); font-size: 12px; line-height: 1.5; }
.home-game-arrow { position: absolute; right: 16px; bottom: 18px; color: var(--muted); font-size: 18px; }
.home-game:hover .home-game-arrow { color: var(--invite-action); }
.home-saved { margin: 0 0 26px; }
.home-saved ul { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; padding: 0; margin: 12px 0 0; list-style: none; }
.home-saved .room-open { display: flex; flex-direction: column; justify-content: center; gap: 5px; min-height: 76px; height: 100%; padding: 14px 18px; border: 1px solid var(--invite-line); border-radius: 12px; background: var(--invite-surface); color: var(--ink); text-decoration: none; }
.home-saved .room-open:hover { border-color: var(--invite-action); }
.home-saved .room-open strong { font-size: 14px; line-height: 1.5; }
.home-saved .room-open small { font-size: 12px; line-height: 1.5; color: var(--muted); }
.home-footer { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: 32px 0 20px; }
.home-footer .language-footer-utilities { width: 100%; margin: 0; justify-content: space-between; }
.home-footer nav { display: flex; flex-wrap: wrap; gap: 22px; }
.home-footer a { display: inline-flex; align-items: center; min-height: 44px; color: var(--muted); font-size: 13px; text-decoration: none; }
.home-footer a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 4px; }
@media (max-width: 650px) {
  .home-shell { width: calc(100% - 32px); }
  .home-header { min-height: 68px; }
  .home-header .brand { font-size: 26px; }
  .home-shell main { padding-top: 24px; }
  .home-description { margin-top: 28px; }
  .catalog-heading { flex-direction: column; align-items: flex-start; gap: 0; margin-bottom: 10px; }
  .home-games { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .home-game-preview { height: 132px; }
  .home-game-copy { flex-direction: column; gap: 2px; padding: 12px 12px 14px; }
  .home-game-name { font-size: 15px; }
  .home-game-arrow { display: none; }
  .home-saved ul { grid-template-columns: 1fr; }
  .home-saved .room-open { min-height: 72px; padding: 12px 16px; }
  .home-footer { flex-direction: column; align-items: flex-start; gap: 8px; margin-top: 28px; }
  .home-footer .language-footer-utilities { width: 100%; justify-content: space-between; }
  .home-footer nav { gap: 24px; }
}
@media (prefers-reduced-motion: reduce) { .home-game { transition: none; } }
.home-footer .trust-links { margin: 0; justify-content: flex-start; }
.home-footer .trust-links a { padding: 0; }
