/* Live Games home — same visual language as the game and archive pages */
.home-page .live-games-section, .home-page .recent-games-section { max-width: 1400px; margin: 0 auto; padding: 22px 24px 8px; }
.home-page .section-header { display: flex; align-items: baseline; gap: 14px; margin: 0 0 14px; border: 0; padding: 0; }
.home-page .section-header h2 { margin: 0; font: normal 1.4rem var(--font-heading); letter-spacing: .02em; color: var(--text); }
.home-page .game-count { color: var(--text-muted); font-size: .88rem; background: none; border: 0; padding: 0; }
.home-page .connection-status { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; font-size: .8rem; color: var(--text-muted); background: none; border: 0; padding: 0; }
.home-page .connection-status .status-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--text-muted); box-shadow: none; animation: none; }
.home-page .connection-status.connected .status-dot { background: var(--green); }

/* Live cards */
.home-page .active-games-list { grid-auto-rows: max-content; display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 14px; }
.lv-card { display: flex; flex-direction: column; background: var(--bg-card); border: 1px solid rgba(255,255,255,.07); border-radius: 4px; overflow: hidden; color: inherit; text-decoration: none; }
.lv-card:hover { border-color: rgba(255,255,255,.18); }
.lv-card > * { flex-shrink: 0; }
.lv-banner { position: relative; height: 120px; background: var(--bg-surface) center / cover no-repeat; display: flex; align-items: flex-end; padding: 12px 14px; }
.lv-banner::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.1) 30%, rgba(0,0,0,.85)); }
.lv-title .version-badge { margin-right: 6px; vertical-align: 2px; }
.lv-title { position: relative; z-index: 1; font: normal 1.15rem var(--font-heading); letter-spacing: .02em; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lv-live { position: absolute; top: 10px; left: 12px; z-index: 1; font: 600 .7rem var(--font); color: var(--green); background: rgba(0,0,0,.55); border: 1px solid var(--green); border-radius: 3px; padding: 1px 7px; }
.lv-meta { padding: 10px 14px 4px; font-size: .82rem; color: var(--text-dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lv-players { list-style: none; margin: 0; padding: 4px 14px 8px; }
.lv-players li { display: grid; grid-template-columns: 14px minmax(0, 1fr) 32px 32px; align-items: center; gap: 6px; padding: 4px 0; font-size: .9rem; }
.lv-players li + li { border-top: 1px solid rgba(255,255,255,.04); }
.lv-players .lv-head { font-size: .72rem; color: var(--text-muted); border: 0; padding-bottom: 2px; }
.lv-players .lv-head span:nth-child(n+3), .lv-k, .lv-d { text-align: right; font-family: var(--mono); }
.lv-dot { width: 8px; height: 8px; border-radius: 50%; }
.lv-name { font-family: var(--font-heading); letter-spacing: .02em; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lv-k { color: var(--text); font-weight: 700; }
.lv-d { color: var(--text-muted); }
.lv-foot { margin-top: auto; padding: 9px 14px; border-top: 1px solid rgba(255,255,255,.06); font-size: .82rem; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lv-foot b { font-weight: 600; }
.lv-arrow { color: var(--text-dim); }
.lv-quiet { color: var(--text-muted); }

/* Empty state */
.home-page .no-games-message { background: var(--bg-card); border: 1px solid rgba(255,255,255,.07); border-radius: 4px; padding: 28px; text-align: center; }
.home-page .no-games-message h3 { font: normal 1.1rem var(--font-heading); letter-spacing: .02em; margin: 10px 0 4px; }
.home-page .no-games-message p { color: var(--text-dim); }
.home-page .setup-info { text-align: left; max-width: 640px; margin: 14px auto 0; color: var(--text-dim); font-size: .88rem; }
.home-page .setup-info summary { cursor: pointer; color: var(--text); }

/* Recent games */
.home-page .recent-games-list { background: var(--bg-card); border: 1px solid rgba(255,255,255,.07); border-radius: 4px; overflow: hidden; display: block; }
.lv-row { display: grid; grid-template-columns: 64px minmax(140px, 1.1fr) minmax(0, 2fr) minmax(120px, 1fr) 80px; align-items: center; gap: 14px; padding: 8px 14px; color: var(--text-dim); text-decoration: none; font-size: .88rem; }
.lv-row + .lv-row { border-top: 1px solid rgba(255,255,255,.04); }
.lv-row:hover { background: rgba(255,255,255,.035); color: var(--text); }
.lv-thumb { width: 64px; height: 36px; object-fit: cover; border-radius: 2px; background: var(--bg-surface); display: block; }
.lv-row-map { font-family: var(--font-heading); letter-spacing: .02em; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lv-row-map small { display: block; font-family: var(--font); letter-spacing: 0; font-size: .74rem; color: var(--text-muted); }
.lv-row-players { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lv-row-win { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--text); font-family: var(--font-heading); letter-spacing: .02em; }
.lv-row-win b { font: 700 .82rem var(--mono); color: var(--green); margin-left: 6px; }
.lv-row-time { text-align: right; font-size: .8rem; color: var(--text-muted); white-space: nowrap; }
.lv-empty { text-align: center; color: var(--text-muted); padding: 28px; margin: 0; }

@media (max-width: 760px) {
  .home-page .live-games-section, .home-page .recent-games-section { padding: 16px 12px 4px; }
  .lv-row { grid-template-columns: 56px minmax(0, 1fr) auto; }
  .lv-row-players, .lv-row-win { display: none; }
  .lv-thumb { width: 56px; height: 32px; }
}

/* v2 — one screen: live games | last 24 hours, aligned, each column scrolls */
.home-page .live-games-section, .home-page .recent-games-section { margin: 0; max-width: none; }
.home-page .section-header { height: 34px; align-items: center; }
@media (min-width: 1100px) {
  body.home-page { display: grid; grid-template-columns: minmax(0, 1fr) 560px; grid-template-rows: auto minmax(0, 1fr) auto;
    height: 100vh; overflow: hidden; column-gap: 0; }
  body.home-page > nav, body.home-page > footer { grid-column: 1 / -1; }
  .home-page .live-games-section, .home-page .recent-games-section { min-height: 0; display: flex; flex-direction: column; padding: 18px 24px 16px; }
  .home-page .recent-games-section { padding-left: 0; }
  .home-page .active-games-list, .home-page .no-games-message, .home-page .recent-games-list { min-height: 0; overflow-y: auto; }
  .home-page .active-games-list { align-content: start; flex: 1; padding-right: 4px; }
  .home-page .recent-games-list { flex: 1; }
  .home-page .no-games-message { flex: 1; display: flex; flex-direction: column; justify-content: center; align-items: center; }
  .lv-row { grid-template-columns: 64px minmax(0, 1fr) minmax(0, 1fr) 64px; }
  .lv-row-players { display: none; }
  .home-page ::-webkit-scrollbar { width: 6px; }
  .home-page ::-webkit-scrollbar-thumb { background: var(--border-light); border-radius: 3px; }
}
