.home-page, .home-page * { box-sizing: border-box; }
.home-page { margin: 0; min-width: 280px; min-height: 100vh; background: var(--site-bg); color: var(--site-text); font-family: var(--site-font); -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent; }
.home-shell { width: 100%; max-width: 760px; margin: 0 auto; padding: 0 24px; }
.home-intro { padding: 50px 0 32px; text-align: center; }
.home-intro h1 { margin: 0; color: var(--site-text); font-size: 30px; line-height: 1.5; font-weight: 750; letter-spacing: -.5px; overflow-wrap: anywhere; text-wrap: balance; }
.home-intro p { margin: 12px 0 0; color: var(--site-muted); font-size: 14px; line-height: 1.7; }
.games-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 14px; }
.games-toolbar h2 { margin: 0; font-size: 16px; font-weight: 650; }
#gameCount { font-size: 13px; color: var(--site-muted); }
.game-list { display: grid; gap: 12px; }
.game-card { display: flex; align-items: center; gap: 20px; min-width: 0; padding: 20px; background: var(--site-surface); border: 1px solid var(--site-line); border-radius: 16px; text-decoration: none; color: var(--site-text); transition: border-color .15s, box-shadow .15s; }
.game-card-main { display: flex; align-items: center; min-width: 0; flex: 1; gap: 18px; }
.game-cover { position: relative; flex: 0 0 68px; display: grid; place-items: center; width: 68px; height: 68px; border-radius: 17px; overflow: hidden; background: var(--site-soft); }
.game-cover-fallback { position: absolute; color: var(--site-blue); font-size: 24px; font-weight: 700; }
.game-cover img { position: relative; display: block; width: 100%; height: 100%; object-fit: cover; }
.game-card-copy { min-width: 0; }
.game-card h3 { margin: 0; font-size: 18px; line-height: 1.5; font-weight: 650; overflow-wrap: anywhere; }
.game-card-meta { margin: 7px 0 0; color: var(--site-muted); font-size: 13px; line-height: 1.5; }
.game-card-action { flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 44px; min-width: 96px; padding: 10px 16px; color: #fff; background: var(--site-blue); border-radius: 10px; font-size: 14px; font-weight: 600; }
.game-card-action span { font-size: 18px; line-height: 1; }
.game-search { display: flex; align-items: center; gap: 10px; padding: 12px 14px; margin-bottom: 14px; border: 1px solid var(--site-line); border-radius: 12px; background: #fff; }
.game-search[hidden] { display: none; }
.game-search:focus-within { outline: 2px solid #2272e533; border-color: var(--site-blue); }
.game-search svg { width: 18px; height: 18px; flex-shrink: 0; color: var(--site-muted); }
.game-search input { width: 100%; min-width: 0; padding: 0; outline: 0; border: 0; font: 16px/1.5 var(--site-font); background: transparent; color: var(--site-text); }
.game-search input::placeholder { color: var(--site-muted); }
.home-page .empty-content { display: grid; justify-items: center; gap: 10px; margin: 0; padding: 35px 20px; background: #fff; border: 1px solid var(--site-line); border-radius: 16px; color: var(--site-muted); font-size: 14px; line-height: 1.7; }
.empty-content strong { color: var(--site-text); font-weight: 600; }
.reset-search { padding: 10px 18px; margin-top: 5px; background: var(--site-soft); color: var(--site-blue); border: 0; border-radius: 9px; font: inherit; cursor: pointer; }
.home-footer { padding: 26px 8px 32px; text-align: center; color: var(--site-muted); font-size: 12px; line-height: 1.7; overflow-wrap: anywhere; }
.home-page .skip-link { position: fixed; top: -70px; left: 16px; z-index: 3500; padding: 12px 20px; color: white; background: var(--site-blue); border-radius: 10px; }
.home-page .skip-link:focus { top: 12px; }
.home-page.preview-mode .home-shell { padding-top: 40px; }
@media (hover: hover) {
  .game-card:hover { border-color: #a4c6f8; box-shadow: 0 4px 16px #2467bd0a; }
  .game-card:hover .game-card-action { background: var(--site-blue-hover); }
}
@media (max-width: 600px) {
  .home-shell { padding: 0 16px; }
  .home-intro { padding: 32px 0 27px; }
  .home-intro h1 { font-size: 25px; letter-spacing: -.5px; }
  .home-intro p { margin-top: 9px; font-size: 13px; }
  .game-card { padding: 16px; gap: 12px; }
  .game-card-main { gap: 13px; }
  .game-cover { width: 58px; height: 58px; flex-basis: 58px; border-radius: 14px; }
  .game-card h3 { font-size: 16px; }
  .game-card-meta { font-size: 12px; margin-top: 5px; }
  .game-card-action { min-width: 72px; padding: 10px 12px; gap: 7px; font-size: 13px; }
}
@media (max-width: 350px) {
  .home-shell { padding: 0 12px; }
  .home-intro h1 { font-size: 23px; }
  .game-card { padding: 13px; gap: 10px; }
  .game-card-main { gap: 10px; }
  .game-cover { width: 50px; height: 50px; flex-basis: 50px; border-radius: 12px; }
  .game-card h3 { font-size: 15px; }
  .game-card-action { min-width: 62px; padding: 10px; gap: 5px; }
}
@media (prefers-reduced-motion: reduce) { .home-page * { transition: none !important; } }