/* Home page. Tokens come from theme.css. */
main{max-width:1120px;margin:0 auto;padding:48px 24px 56px}

/* Hero: greeting on the left, player picker on the right */
.hero{display:flex;align-items:flex-end;justify-content:space-between;gap:24px 40px;flex-wrap:wrap;padding-bottom:32px;border-bottom:1px solid var(--line)}
.eyebrow{display:flex;align-items:center;gap:10px;margin:0 0 16px;font-size:14px;font-weight:600;color:var(--muted)}
.title{margin:0;font-size:clamp(28px,4.5vw,40px);line-height:1.15;font-weight:700;letter-spacing:-.025em}
.lede{margin:8px 0 0;font-size:16px;color:var(--muted)}

.who-title{margin:0 0 8px;font-size:13px;font-weight:600;color:var(--muted)}
.players{display:flex;flex-wrap:wrap;gap:4px;padding:4px;border:1px solid var(--line);border-radius:var(--r-lg);background:var(--surface);box-shadow:var(--shadow-sm)}
.player{font:inherit;font-size:14px;font-weight:600;display:flex;align-items:center;gap:8px;min-height:40px;padding:4px 14px 4px 4px;border:0;border-radius:var(--r-md);background:transparent;color:var(--ink);cursor:pointer;transition:background .15s,color .15s}
.player:hover{background:var(--surface-2)}
.player[aria-pressed=true]{background:var(--accent);color:var(--accent-ink)}
.player .face{width:32px;height:32px;border-radius:var(--r-sm);display:grid;place-items:center;font-size:13px;font-weight:700}
.player[aria-pressed=true] .face{background:rgba(255,255,255,.18)!important;color:inherit!important}
.player.nobody{padding:4px 14px;color:var(--muted)}

/* Section heading */
.section-head{display:flex;align-items:baseline;gap:10px;margin:36px 0 16px}
.section-head h2{margin:0;font-size:18px;font-weight:650;letter-spacing:-.01em}
.count{font-size:13px;font-weight:600;color:var(--muted)}

/* Game cards */
.games{display:grid;grid-template-columns:repeat(auto-fill,minmax(250px,1fr));gap:16px}
.game{position:relative;display:flex;flex-direction:column;min-height:196px;padding:20px;border:1px solid var(--line);border-radius:var(--r-lg);background:var(--surface);color:var(--ink);text-decoration:none;box-shadow:var(--shadow-sm);transition:box-shadow .2s,border-color .2s,transform .2s}
.game:hover{color:var(--ink);border-color:var(--line-strong);box-shadow:var(--shadow-lg);transform:translateY(-2px)}
.game:focus-visible{outline:2px solid var(--accent);outline-offset:3px}
.game .icon{width:44px;height:44px;border-radius:10px;display:grid;place-items:center;margin-bottom:16px}
.game .icon svg{width:22px;height:22px}
.game strong{font-size:16px;font-weight:650;line-height:1.3}
.game .desc{margin-top:4px;color:var(--muted);font-size:14px;line-height:1.5}
.game .foot-row{margin-top:auto;padding-top:16px;display:flex;align-items:center;justify-content:space-between;gap:8px;font-size:13px;font-weight:600}
.game .state{display:inline-flex;align-items:center;gap:6px;color:var(--muted)}
.game .state::before{content:"";width:7px;height:7px;border-radius:50%;background:var(--good)}
.game .play{display:inline-flex;align-items:center;gap:4px;color:var(--accent)}
.game .play svg{width:16px;height:16px;transition:transform .2s}
.game:hover .play svg{transform:translateX(3px)}
.game.off{background:var(--surface-2);box-shadow:none;border-style:dashed}
.game.off:hover{transform:none;box-shadow:none;border-color:var(--line-strong)}
.game.off .state::before{background:var(--line-strong)}
.game.off .icon{filter:grayscale(1)}
.loading,.error{color:var(--muted);margin:0}

.foot{width:calc(min(1120px,100%) - 48px);margin:0 auto;padding:20px 0 32px;display:flex;justify-content:space-between;gap:12px;border-top:1px solid var(--line);font-size:13px;color:var(--muted)}
.foot a{font-weight:600;text-decoration:none}
.foot a:hover{text-decoration:underline}

@media (max-width:640px){
  main{padding:28px 16px 40px}
  .hero{padding-bottom:24px}
  .who{width:100%}
  .foot{width:calc(100% - 32px);padding:16px 0 24px}
  .game{min-height:0}
}
