
:root{font-family:Inter,ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:#f5f5f3;background:#0c0d0f}
*{box-sizing:border-box} body{margin:0;background:#0c0d0f;min-height:100vh}
button,input{font:inherit}.shell{max-width:520px;margin:auto;min-height:100vh;padding:calc(20px + env(safe-area-inset-top)) 18px 30px}
.brand{display:flex;align-items:center;gap:11px;margin:4px 2px 28px}.brand b{font-size:21px;display:block}.brand span{display:block;color:#888d93;font-size:12px;margin-top:2px}
.ball{width:38px;height:38px;border-radius:12px;background:#d7ff4f;color:#10120d;display:grid;place-items:center;font-weight:900}
.card{background:#17191d;border:1px solid #282b30;border-radius:22px;padding:20px;margin-bottom:14px}
.hero{padding:24px 20px}.eyebrow{font-size:12px;letter-spacing:.08em;text-transform:uppercase;color:#a8acb2;font-weight:700}.hero h1,h1{font-size:30px;line-height:1.08;margin:8px 0 8px}.hero p,.muted{color:#9b9fa5;line-height:1.45;margin:0}
.tabs{display:grid;grid-template-columns:1fr 1fr;background:#111316;padding:4px;border-radius:14px;margin:18px 0}.tabs button{border:0;background:transparent;color:#8f949a;padding:11px;border-radius:11px;font-weight:700}.tabs button.active{background:#282c31;color:white}
label{display:block;font-size:12px;color:#a9adb3;font-weight:700;margin:15px 0 7px}input{width:100%;border:1px solid #30343a;background:#0f1114;color:white;border-radius:14px;padding:14px 15px;outline:none}input:focus{border-color:#d7ff4f}
.btn{width:100%;border:0;border-radius:14px;padding:14px 16px;margin-top:16px;font-weight:800;background:#d7ff4f;color:#11130e}.btn.secondary{background:#272a2f;color:#fff}.btn.ghost{background:transparent;border:1px solid #34383e;color:#e7e7e4}
.row{display:flex;align-items:center;justify-content:space-between;gap:12px}.topbar{margin-bottom:20px}.topbar h1{font-size:27px;margin:0}.link{background:none;border:0;color:#b7bdc4;padding:8px}
.pool{cursor:pointer}.pool h3{margin:3px 0 5px;font-size:19px}.pill{display:inline-block;font-size:11px;font-weight:800;border-radius:999px;padding:5px 8px;background:#25292e;color:#d5d8dc}.pill.live{background:#263116;color:#d7ff4f}
.grid2{display:grid;grid-template-columns:1fr 1fr;gap:10px}.action{min-height:112px;text-align:left;margin:0}.action strong{display:block;font-size:17px;margin-bottom:6px}.action span{font-size:12px;color:#a0a4aa}
.entry{display:flex;justify-content:space-between;align-items:center;padding:14px 0;border-top:1px solid #292c31}.entry:first-of-type{border-top:0}.entry b{display:block}.entry small{color:#92979e}
.code{font-size:25px;letter-spacing:.12em;font-weight:900;color:#d7ff4f;margin-top:6px}.section-title{font-size:13px;text-transform:uppercase;letter-spacing:.08em;color:#8f949a;margin:22px 3px 9px;font-weight:800}
.empty{text-align:center;padding:28px 16px;color:#9ba0a6}.error{color:#ff9a9a;font-size:13px;margin-top:10px}.success{color:#d7ff4f;font-size:13px;margin-top:10px}
.toast{position:fixed;left:50%;bottom:30px;transform:translateX(-50%);background:#f2f2ef;color:#111;padding:12px 16px;border-radius:999px;font-weight:700;max-width:90%;z-index:10}
.loading{text-align:center;color:#888;padding:80px 0}
.joinlink{display:block;margin:6px auto 0;font-size:13px}

/* ── Pool screen ─────────────────────────────────────────────────────────── */
h2{font-size:22px;margin:4px 0 0}.small{font-size:12px}.code-inline{color:#d7ff4f;letter-spacing:.08em;font-weight:900}
.poolhead{margin:6px 0 4px}.poolhead h1{margin:6px 0 0;font-size:26px}
.alive{text-align:center;background:#17191d;border:1px solid #282b30;border-radius:16px;padding:8px 14px;min-width:64px}.alive b{display:block;font-size:24px;color:#d7ff4f;line-height:1}.alive span{font-size:11px;color:#8f949a;text-transform:uppercase;letter-spacing:.06em}
.tabs.three{grid-template-columns:repeat(auto-fit,minmax(0,1fr));margin:14px 0}
.chips{display:flex;gap:8px;flex-wrap:wrap;margin:0 0 12px}.chip{border:1px solid #30343a;background:#17191d;color:#c9cdd2;border-radius:999px;padding:8px 13px;font-weight:700;font-size:13px}.chip.active{background:#d7ff4f;color:#11130e;border-color:#d7ff4f}.chip.ghost{background:transparent}
.entrycard{padding:16px 18px}.status{font-weight:800;font-size:13px;padding:7px 11px;border-radius:999px;white-space:nowrap}.status.ok{background:#263116;color:#d7ff4f}.status.out{background:#3a1d1d;color:#ff9a9a}
.weeknav{margin:8px 0 6px}.weeknav .link{font-size:26px;line-height:1;padding:4px 14px}.weeknav .link:disabled{opacity:.25}.weeklabel{display:flex;align-items:center;gap:10px;font-size:15px;letter-spacing:.1em}
.note{padding:13px 16px;font-size:14px;color:#c9cdd2}.note.lime{border-color:#48521c;background:#1a1f10}
.day{font-size:12px;color:#8f949a;font-weight:700;margin:14px 3px 8px}
/* one card per game: away | kickoff | home. The card itself lights up when it holds your pick. */
.game{display:grid;grid-template-columns:1fr auto 1fr;align-items:stretch;margin-bottom:8px;background:#17191d;border:1px solid #282b30;border-radius:18px;overflow:hidden;transition:opacity .25s,box-shadow .25s,border-color .25s}
.game.mine{border-color:#d7ff4f;box-shadow:0 0 0 3px rgba(215,255,79,.18),0 10px 30px rgba(215,255,79,.12)}.game.mine .mid span{color:#d7ff4f;font-weight:800}
.mid{display:flex;flex-direction:column;align-items:center;justify-content:center;min-width:64px;padding:0 6px;font-size:12px;color:#a8acb2;text-align:center}.mid span{white-space:nowrap}.mid small{color:#5c6167;font-size:10px}
.team{display:flex;flex-direction:column;align-items:flex-start;gap:2px;background:transparent;border:0;padding:13px 14px;color:#f5f5f3;text-align:left;cursor:pointer;transition:background .2s,opacity .25s}
.team.home{align-items:flex-end;text-align:right}
.logo{width:36px;height:36px;object-fit:contain;display:block}.logo.sm{width:24px;height:24px;flex:none}
.team .logo{margin-bottom:6px}.team.used .logo,.team:disabled:not(.picked):not(.locked) .logo{filter:grayscale(1)}
.team:disabled{cursor:default}.team:not(:disabled):hover{background:#1e2126}.team .abbr{font-weight:900;font-size:17px;letter-spacing:.04em}.team .tname{font-size:12px;color:#9b9fa5}
.team .tag{margin-top:8px;font-size:11px;font-weight:800;letter-spacing:.06em;color:#11130e;background:#d7ff4f;border-radius:8px;padding:5px 6px;align-self:stretch;text-align:center;white-space:nowrap}.team .tag em{font-style:normal;font-size:13px}
.team.picked{background:#1a1f10}.team.picked .abbr{color:#d7ff4f}.team.picked .tag{background:#d7ff4f}
.team.selected{box-shadow:inset 0 0 0 2px #d7ff4f}
.team.current .abbr{color:#d7ff4f}.team.current .tag{background:#2a2d32;color:#d7ff4f}
/* unsaved selection: fixed bar with Save / Cancel */
.savebar{position:fixed;left:0;right:0;bottom:0;z-index:9;padding:12px 16px calc(12px + env(safe-area-inset-bottom));background:rgba(12,13,15,.94);backdrop-filter:blur(10px);-webkit-backdrop-filter:blur(10px);border-top:1px solid #2c3036}
.savebar-in{max-width:520px;margin:auto;display:flex;align-items:center;gap:10px}.savebar-txt{flex:1;min-width:0}.savebar-txt small{display:block;font-size:11px;color:#8f949a;text-transform:uppercase;letter-spacing:.06em;white-space:nowrap}.savebar-txt b{display:block;font-size:15px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.savebar .btn{width:auto;margin:0;padding:12px 18px;white-space:nowrap}.savebar .link{font-weight:700;padding:8px 6px}
.picks:has(~.savebar){padding-bottom:96px}
.team.used{opacity:.45}.team.used .tag{background:#2a2d32;color:#8f949a;text-decoration:line-through}
.team.locked .tag{background:#2a2d32;color:#8f949a}.team.locked .tag:has(em){color:#d5d8dc}
.team:not(.picked):not(.used):not(.locked):disabled{opacity:.45}.team:not(.picked):not(.used):not(.locked):disabled .tag{background:#2a2d32;color:#8f949a}
/* once a pick is made, the rest of the slate steps back so the pick is the only bright thing on screen */
.games.haspick .game:not(.mine){opacity:.35}.games.haspick .game:not(.mine):hover,.games.haspick .game:not(.mine):has(.team.current){opacity:.7}
.games.haspick .game.mine .team:not(.picked){opacity:.4}
.hist{display:flex;align-items:center;gap:12px;padding:11px 0;border-top:1px solid #292c31}.hist:first-child{border-top:0;padding-top:2px}.hist .wk{font-weight:800;color:#8f949a;min-width:34px;font-size:12px;letter-spacing:.06em}.hist .nm{flex:1}.hist b{font-size:15px}
.hist.won b{color:#d7ff4f}.hist.lost b,.hist.lost .nm,.hist.missed b,.hist.missed .nm{color:#ff9a9a}.hist.pending b,.hist.tie b,.hist.void b{color:#8f949a}.hist.future{opacity:.45}.hist.current .wk{color:#d7ff4f}
/* standings */
.standhead{margin:4px 2px 10px;font-size:13px}.table{padding:8px 6px;overflow-x:auto}
.trow{display:flex;align-items:center;gap:4px;padding:8px 6px;border-top:1px solid #23262b}.trow.head{border-top:0;padding-top:2px;padding-bottom:6px}.trow.mine{background:#141810;border-radius:10px}.trow.out .tname{opacity:.5}
.trow .tname{flex:1;min-width:120px;text-align:left}.trow .tname b{display:block;font-size:14px}.trow .tname small{color:#8f949a;font-size:11px}
.pk{display:inline-grid;place-items:center;min-width:38px;height:28px;border-radius:8px;font-size:11px;font-weight:800;background:#1f2226;color:#c9cdd2;flex:none}.trow.head .pk{background:transparent;color:#8f949a}
.pk.won{background:#263116;color:#d7ff4f}.pk.lost{background:#3a1d1d;color:#ff9a9a}.pk.tie,.pk.void{background:#2f2f22;color:#e8dc8a}.pk.pending{background:#1f2226;color:#e6e8ea;border:1px solid #3a3e44}
.pk.hidden{background:transparent;border:1px dashed #3a3e44;color:#8f949a}.pk.none{background:transparent;color:#4d5157}.pk.out{background:transparent;color:#ff9a9a}
.legend{display:flex;gap:8px;flex-wrap:wrap;margin:10px 4px;font-size:11px}.legend .pk{padding:0 8px}
label.check{display:flex;align-items:center;gap:10px;font-size:14px;color:#e7e7e4;text-transform:none;margin:14px 0 0}label.check input{width:18px;height:18px;accent-color:#d7ff4f}

/* ── Desktop / tablet (mobile-first: everything above is the phone layout) ── */
@media(min-width:768px){
  .shell{max-width:960px;padding:28px 32px 64px}
  .brand{margin:0 0 36px}.brand b{font-size:23px}
  .hero{padding:32px 30px}.hero h1{font-size:40px}h1{font-size:32px}.topbar h1{font-size:30px}.poolhead h1{font-size:32px}
  form{max-width:520px}
  .auth{display:grid;grid-template-columns:1fr 1fr;gap:20px;align-items:stretch}.auth .card{margin-bottom:0}.auth .hero{display:flex;flex-direction:column;justify-content:center}.auth form{max-width:none}
  .tabs.three{max-width:480px}
  .savebar-in{max-width:720px}
  .picks{display:grid;grid-template-columns:minmax(0,1fr) 320px;grid-template-areas:"main entry" "main side";grid-template-rows:auto 1fr;column-gap:28px;align-items:start}
  .picks>.entrycard{grid-area:entry}.picks-main{grid-area:main;min-width:0}.picks-side{grid-area:side}
  .picks-side .section-title{margin-top:8px}
  .weeknav{margin-top:0}
  .games{display:grid;grid-template-columns:1fr 1fr;column-gap:14px}.games .day,.games .empty{grid-column:1/-1}
  .table{padding:12px 14px}.trow{padding:10px 8px}.trow .tname{min-width:180px}.pk{min-width:44px;height:30px;font-size:12px}
}

/* members / admins (settings tab) */
.members{margin-top:12px}.member{display:flex;justify-content:space-between;align-items:center;gap:10px;padding:12px 0;border-top:1px solid #292c31}.member:first-child{border-top:0;padding-top:4px}
.member b{display:block}.member small{color:#8f949a;display:block;margin-top:4px}.member-actions{display:flex;gap:6px;flex:none}.member-actions .chip{padding:7px 10px;font-size:12px}
.chip.danger{color:#ff9a9a;border-color:#4a2626}.chip:disabled{opacity:.4}

/* ── Site footer (Knockout pages) + home page ──────────────────────────── */
.sitefoot{max-width:520px;margin:0 auto;padding:36px 18px calc(40px + env(safe-area-inset-bottom));text-align:center;border-top:1px solid #1c1f24}
.sitefoot-logo{width:min(100%,220px);height:auto;display:block;margin:0 auto 14px;opacity:.9}
.sitefoot p{margin:0 auto;max-width:34em;font-size:13px;line-height:1.55;color:#8f949a}.sitefoot p a,.home-blurb a{color:#d7ff4f;font-weight:700;text-decoration:none;border-bottom:2px solid rgba(215,255,79,.4)}.sitefoot p a:hover,.home-blurb a:hover{border-bottom-color:#d7ff4f}
.home{display:flex;align-items:center;justify-content:center}
.home .hero{width:100%;text-align:center;padding:40px 24px}
.home-logo{width:min(100%,420px);height:auto;display:block;margin:0 auto 22px}
.home-blurb{font-size:17px;line-height:1.55;color:#c9cdd2;max-width:34em;margin:0 auto}
.home-cta{display:flex;align-items:center;justify-content:space-between;gap:14px;text-decoration:none;color:inherit;cursor:pointer}.home-cta .ball{flex:none}.home-cta b{display:block;font-size:17px}.home-cta span{display:block;color:#9b9fa5;font-size:13px;margin-top:2px}.home-cta .arrow{font-size:22px;color:#d7ff4f}
@media(min-width:768px){.sitefoot{max-width:960px;padding-left:32px;padding-right:32px}.home .hero{padding:64px 48px}.home-logo{width:min(100%,560px)}.home-blurb{font-size:20px}}
