:root{--bg:#05080d;--panel:#0e1721;--line:#263849;--text:#f6f8fb;--muted:#95a5b5;--gold:#f3bd4b;--blue:#27a8ff;--green:#54d775}
*{box-sizing:border-box}body{margin:0;color:var(--text);font-family:Segoe UI,Arial,sans-serif;background:radial-gradient(circle at top,#15283a,#071019 38%,#05080d 75%);min-height:100vh}.shell{max-width:760px;margin:auto;padding:18px}.brand{text-align:center;margin:8px 0 18px}.brand h1{margin:0;font-size:clamp(32px,10vw,56px);line-height:.95}.gold{color:var(--gold)}.brand p{color:var(--blue);font-weight:800;letter-spacing:.12em}.card{background:linear-gradient(180deg,#12202c,#081016);border:1px solid var(--line);border-radius:16px;padding:18px;margin-bottom:14px}h2{margin:0 0 12px}.muted{color:var(--muted)}input[type=text],input[type=number],select{width:100%;font-size:17px;padding:13px;border-radius:10px;border:1px solid #3a5064;color:white;background:#07111a}.title{font-weight:700;display:block;margin:12px 0 7px}.btn{display:inline-flex;justify-content:center;align-items:center;min-height:46px;padding:11px 15px;border-radius:10px;border:1px solid #31516b;background:#152638;color:white;font-weight:800;text-decoration:none;cursor:pointer}.primary{background:#075185;border-color:#1790d4}.goldbtn{background:#654912;border-color:#bd8d2b}.full{width:100%}.error{padding:12px;background:#401419;border:1px solid #a33c46;border-radius:10px;margin-bottom:12px}.pool{display:flex;justify-content:space-between;align-items:center;border:1px solid var(--line);border-radius:11px;padding:12px;margin:9px 0;background:#0b151e}.count{font-size:22px;font-weight:900}.ticketHead{display:flex;justify-content:space-between;gap:10px;align-items:center}.status{border:1px solid var(--green);color:#82f09b;padding:6px 8px;border-radius:7px;font-size:12px;font-weight:900}.game{border-top:1px solid #243746;padding:14px 0}.game:first-child{border:0}.gameTop{display:flex;justify-content:space-between;gap:8px;margin-bottom:9px}.gameNo{color:var(--gold);font-weight:900}.teams{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-bottom:8px}.team{border:1px solid #375066;border-radius:10px;padding:12px 8px;text-align:center;font-weight:900;background:#101f2d}.totalBox{position:sticky;bottom:8px;background:#0b1b28;border:1px solid #346587;border-radius:12px;padding:12px;display:flex;justify-content:space-between;align-items:center;margin:12px 0}.totalBox strong{font-size:26px;color:var(--gold)}.confirm{display:grid;grid-template-columns:50px 1fr 60px;gap:8px;padding:9px 0;border-bottom:1px solid #243746}.host{max-width:1200px;margin:auto;padding:18px}.hostGrid{display:grid;grid-template-columns:340px 1fr;gap:14px}table{width:100%;border-collapse:collapse}th,td{text-align:left;padding:10px;border-bottom:1px solid #223342}th{font-size:12px;color:var(--muted);text-transform:uppercase}@media(max-width:780px){.hostGrid{grid-template-columns:1fr}}

/* PHASE 3 LIVE DISPLAY */
.host{max-width:1500px}.hostGrid{grid-template-columns:330px 1fr 420px}.actions{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:14px}.resultGrid{display:grid;grid-template-columns:repeat(auto-fit,minmax(228px,1fr));gap:10px}/* auto-fit + a real minimum means the grid drops to fewer columns on a narrow host laptop instead of squeezing cards until the team code and the VS divider visually collide. */.resultCard{border:1px solid var(--line);background:#0a151e;border-radius:12px;padding:10px}.resultTeams{display:grid;grid-template-columns:1fr 1fr;gap:7px;margin-top:7px}.resultTeams button{min-height:38px;border:1px solid #35516a;background:#112334;color:#fff;border-radius:8px;font-weight:800}.resultTeams button.winner{background:#174b28;border-color:#4da265}.scorepair{display:grid;grid-template-columns:1fr 1fr;gap:6px;margin-top:7px}.scorepair input{padding:8px;font-size:14px}.tiny{font-size:12px}.topLeader{font-size:20px;font-weight:900}
.liveBody{background:radial-gradient(circle at 50% 0,#16304a 0,#07111b 37%,#030609 80%);min-height:100vh;position:relative;overflow-x:hidden}.liveWrap{max-width:1700px;margin:auto;padding:18px}.liveHeader{display:flex;justify-content:space-between;align-items:flex-end;gap:18px;flex-wrap:wrap;border-bottom:1px solid #284158;padding-bottom:13px}.liveTitle{font-size:clamp(34px,5vw,78px);font-weight:1000;line-height:.9}.liveSub{color:var(--blue);font-weight:900;letter-spacing:.18em;margin-top:8px}.liveStatus{display:grid;grid-template-columns:repeat(3,minmax(90px,1fr));gap:9px}.stat{background:#0c1823;border:1px solid var(--line);border-radius:12px;padding:11px 14px;text-align:center}.stat b{display:block;font-size:clamp(22px,3vw,40px);color:var(--gold)}.stat span{font-size:11px;color:var(--muted);text-transform:uppercase}.liveGrid{display:grid;grid-template-columns:1.25fr .75fr;gap:14px;margin-top:14px}.hero{background:linear-gradient(135deg,#10283c,#07121c);border:1px solid #31506a;border-radius:16px;padding:18px;min-height:235px}.heroLabel{color:var(--blue);font-weight:900;letter-spacing:.16em;font-size:12px}.matchup{display:grid;grid-template-columns:1fr auto 1fr;align-items:center;gap:18px;margin-top:22px;text-align:center}.teamBig{font-size:clamp(42px,6vw,90px);font-weight:1000}.vs{font-size:24px;color:var(--muted);font-weight:900}.scoreBig{font-size:clamp(34px,5vw,70px);color:var(--gold);font-weight:1000}.finalTag{display:inline-block;margin-top:10px;padding:7px 10px;border:1px solid var(--green);border-radius:999px;color:#89f1a1;font-weight:900}.livePanel{background:linear-gradient(180deg,#101c28,#071017);border:1px solid var(--line);border-radius:16px;overflow:hidden}.panelHead{padding:13px 15px;border-bottom:1px solid var(--line);display:flex;justify-content:space-between;gap:12px}.poolBadge{color:var(--gold);font-weight:900}.liveTable td{padding:12px 13px}.rank{font-size:24px;font-weight:1000}.points{font-size:26px;font-weight:1000;color:var(--gold)}.movement{font-size:12px;color:var(--muted)}/* A fixed 5-column grid with minmax(0,...) let tiles shrink until the team
   code and the VS divider had no room left and visually ran together — the
   same bug as the host page's result cards. A real minimum tile width,
   auto-fit for the column count, fixes it the same way. */
.gamesStrip{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:10px;padding:12px}
.miniGame{border-radius:12px;padding:11px;text-align:center;border:1px solid var(--tone-line,#26394a);background:linear-gradient(160deg,var(--tone-a,#0a151f),var(--tone-b,#08111a))}
.miniGame .mteams{font-weight:900}
.miniGame .mresult{font-size:11px;margin-top:7px;color:var(--muted);letter-spacing:.04em}
.miniGame.done{border-color:#335f40}
.miniGame.live{border-color:#ffae3d;box-shadow:0 0 0 1px rgba(255,174,61,.35) inset}
.miniGame[data-tone="0"]{--tone-a:#0d2a36;--tone-b:#081b23;--tone-line:#1c5a70}
.miniGame[data-tone="1"]{--tone-a:#33131a;--tone-b:#1e0b0f;--tone-line:#7a2c37}
.miniGame[data-tone="2"]{--tone-a:#101c38;--tone-b:#0a1226;--tone-line:#2c4a86}
.miniGame[data-tone="3"]{--tone-a:#132a1c;--tone-b:#0b1a12;--tone-line:#2e6b45}
.miniGame[data-tone="4"]{--tone-a:#241436;--tone-b:#150c20;--tone-line:#5a2e82}.ticker{margin-top:14px;border:1px solid #284158;background:#0a151e;border-radius:12px;padding:12px;text-align:center;font-weight:900;letter-spacing:.12em;color:var(--gold)}.remoteNote{display:none}body.remote .remoteNote{display:block;margin-top:10px;color:var(--muted);font-size:13px;text-align:center}body.remote .liveWrap{max-width:1200px}
@media(max-width:1100px){.hostGrid{grid-template-columns:1fr}.resultGrid{grid-template-columns:repeat(2,1fr)}.liveGrid{grid-template-columns:1fr}}@media(max-width:700px){.liveWrap{padding:10px}.matchup{gap:7px}.teamBig{font-size:38px}.scoreBig{font-size:31px}.resultGrid{grid-template-columns:1fr}}


/* Phase 3.1 supplied BIG TIX skin + team-logo integration
   (Phase 3.4: the skin PNG is the HOST control-center frame, labeled for
   host-only sections. Pasting it behind the GUEST screen only ever showed
   unreadable ghost text. Replaced with a stadium-at-night treatment built
   from gradients: soft light spots top corners, a hint of a yard-lined
   field along the bottom third. No image asset needed.) */
.liveBody{position:relative;background:#02060a;overflow-x:hidden}
.skinBackdrop{
  position:fixed;inset:0;pointer-events:none;z-index:0;
  background:
    radial-gradient(ellipse 60% 40% at 12% 0%, rgba(39,168,255,.14), transparent 60%),
    radial-gradient(ellipse 60% 40% at 88% 0%, rgba(243,189,75,.10), transparent 60%),
    repeating-linear-gradient(0deg, rgba(255,255,255,.05) 0 2px, transparent 2px 46px),
    linear-gradient(180deg, transparent 0%, transparent 62%, rgba(10,30,16,.55) 78%, rgba(6,20,11,.75) 100%);
}
.liveWrap{position:relative;z-index:1}
.liveHeader,.hero,.livePanel,.ticker{backdrop-filter:blur(8px)}
.liveTitle{font-family:Impact,'Arial Black',Segoe UI,sans-serif;text-shadow:0 3px 18px #000}
.hero{box-shadow:inset 0 0 70px rgba(39,168,255,.08)}
.featuredTeam{display:flex;flex-direction:column;align-items:center;min-width:0}
.featuredLogo{width:min(150px,13vw);height:min(120px,10vw);object-fit:contain;filter:drop-shadow(0 10px 14px rgba(0,0,0,.55));margin-bottom:4px}
.miniMatch{display:grid;grid-template-columns:32px 1fr auto 32px 1fr;align-items:center;gap:5px;margin-top:6px}.miniMatch img{width:30px;height:30px;object-fit:contain}.miniMatch span{font-size:10px;color:var(--muted)}
.hostMatchup{display:grid;grid-template-columns:1fr auto 1fr;gap:7px;align-items:center;margin-top:5px}.hostMatchup span{display:flex;align-items:center;gap:6px;font-weight:900}.hostMatchup span:last-child{justify-content:flex-end}.hostMatchup img{width:32px;height:32px;object-fit:contain}
.skinReference img{display:block;width:100%;height:auto;border:1px solid var(--line);border-radius:10px}
@media(max-width:700px){.featuredLogo{width:88px;height:74px}.miniMatch{grid-template-columns:26px 1fr auto 26px 1fr}.miniMatch img{width:25px;height:25px}}


/* Phase 3.2 layout fixes for right-side teams */
.hostMatchup{display:grid;grid-template-columns:1fr auto 1fr;gap:10px;align-items:center;margin-top:8px}
.hostMatchup .awaySide,.hostMatchup .homeSide{display:flex;align-items:center;gap:7px;font-weight:900;min-width:0;overflow:hidden;font-size:15px}
.hostMatchup .awaySide b,.hostMatchup .homeSide b{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.hostMatchup .awaySide{justify-content:flex-start}
.hostMatchup .homeSide{justify-content:flex-end;text-align:right}
.hostMatchup img{width:26px;height:26px;object-fit:contain;flex:0 0 26px}
/* The VS itself is now a small pill, so it reads as a divider even when two team codes are only a few pixels away from it. */
.hostMatchup > b{justify-self:center;font-size:10px;letter-spacing:.08em;color:var(--muted);background:#0a151f;border:1px solid #263849;border-radius:999px;padding:3px 7px;flex:0 0 auto}

.miniMatch{display:grid;grid-template-columns:1fr auto 1fr;align-items:center;gap:8px;margin-top:9px}
.miniSide{display:flex;align-items:center;gap:7px;min-width:0;font-weight:900;overflow:hidden;font-size:15px}
.miniSide.away{justify-content:flex-start;text-align:left}
.miniSide.home{justify-content:flex-end;text-align:right}
.miniSide img{width:26px;height:26px;object-fit:contain;flex:0 0 26px;filter:drop-shadow(0 3px 6px rgba(0,0,0,.5))}
.miniSide b{display:block;line-height:1;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.miniMatch > span{justify-self:center;font-size:8.5px;letter-spacing:.06em;color:var(--muted);
  background:rgba(0,0,0,.35);border:1px solid rgba(255,255,255,.12);border-radius:999px;padding:2px 5px;flex:0 0 auto}
.featuredTeam{display:flex;flex-direction:column;align-items:center;min-width:0}
.awayTeamBlock{text-align:left}
.homeTeamBlock{text-align:right}
.teams{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-bottom:8px}
.team{display:flex;align-items:center;justify-content:center;gap:8px;border:1px solid #375066;border-radius:10px;padding:12px 10px;text-align:center;font-weight:900;background:#101f2d;cursor:pointer}
.team img{width:28px;height:28px;object-fit:contain;flex:0 0 28px}
.team input{display:none}
.team.homeChoice{justify-content:flex-end;text-align:right}
.team.awayChoice{justify-content:flex-start;text-align:left}
.team.homeChoice span,.team.awayChoice span{display:block;min-width:0}
.team input:checked + img, .team input:checked + span + img{filter:drop-shadow(0 0 6px rgba(243,189,75,.85))}
.team:has(input:checked){border-color:var(--gold);box-shadow:0 0 0 1px rgba(243,189,75,.35) inset}
@media(max-width:700px){.hostMatchup img{width:28px;height:28px}.miniSide img,.team img{width:24px;height:24px;flex-basis:24px}}

/* Phase 3.3 NFL Schedule Manager */
.schedulePage{max-width:1500px}.weekPicker{display:grid;grid-template-columns:repeat(9,minmax(42px,1fr));gap:7px}.weekBtn{display:flex;align-items:center;justify-content:center;min-height:44px;text-decoration:none;color:var(--text);background:#0c1823;border:1px solid var(--line);border-radius:9px;font-weight:900}.weekBtn.selected{border-color:var(--gold);color:var(--gold);background:#2a210f}.scheduleSummary{display:grid;grid-template-columns:repeat(4,1fr);gap:10px;margin-bottom:14px}.scheduleSummary div{background:#0a151e;border:1px solid var(--line);border-radius:10px;padding:12px;text-align:center}.scheduleSummary span{display:block;color:var(--muted);font-size:12px;text-transform:uppercase}.scheduleSummary b{display:block;font-size:26px;color:var(--gold);margin-top:4px}.scheduleWarning{padding:12px;border:1px solid #8b6a24;background:#30250e;border-radius:10px;color:#ffe3a3}.scheduleGames{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px}.scheduleGame{background:#0a151e;border:1px solid var(--line);border-radius:11px;padding:11px}.scheduleGame.mondayGame{border-color:var(--gold);background:#201a0b}.schedMatch{display:grid;grid-template-columns:1fr auto 1fr;gap:8px;align-items:center;margin-top:8px}.schedMatch span{display:flex;align-items:center;gap:7px;font-size:18px}.schedMatch span:last-child{justify-content:flex-end;text-align:right}.schedMatch img{width:34px;height:34px;object-fit:contain}.schedMatch em{font-style:normal;color:var(--muted);font-size:11px}.tbLabel{text-align:center;color:var(--gold);font-size:11px;font-weight:900;margin-top:8px}.scheduleImageWrap{overflow:auto;border:1px solid var(--line);border-radius:10px;background:white}.scheduleImageWrap img{display:block;width:100%;min-width:950px;height:auto}.schedulePage .brand{text-align:left}@media(max-width:900px){.scheduleGames{grid-template-columns:1fr 1fr}.scheduleSummary{grid-template-columns:1fr 1fr}.weekPicker{grid-template-columns:repeat(6,1fr)}}@media(max-width:600px){.scheduleGames{grid-template-columns:1fr}.weekPicker{grid-template-columns:repeat(3,1fr)}}

/* Phase 3.5 — welcome/QR join screen and live-score status panel */
.welcomeWrap{max-width:1400px;margin:auto;padding:40px 24px;position:relative;z-index:1;min-height:100vh;display:flex;flex-direction:column;justify-content:center;gap:36px}
.welcomeBrand{text-align:center}
.welcomeBrand .liveTitle{font-size:clamp(38px,6vw,76px)}
.welcomeGrid{display:grid;grid-template-columns:auto 1fr;gap:40px;align-items:center;justify-content:center}
.qrCard{background:linear-gradient(180deg,#12202c,#081016);border:1px solid var(--line);border-radius:20px;padding:26px;text-align:center;justify-self:center}
.qrBox{background:#fff;border-radius:14px;padding:18px;display:inline-block;max-width:min(48vw,420px)}
.qrBox svg{display:block;width:100%;height:auto}
.qrUrl{margin-top:16px;font-weight:800;font-size:15px;letter-spacing:.02em;word-break:break-all}
.qrHint{margin-top:6px;color:var(--muted);font-size:13px;letter-spacing:.06em;text-transform:uppercase}
.poolCardsWrap{max-width:460px}
.welcomeHeading{font-size:13px;letter-spacing:.14em;text-transform:uppercase;color:var(--blue);font-weight:900;margin-bottom:12px}
@media(max-width:860px){.welcomeGrid{grid-template-columns:1fr;justify-content:stretch}.qrBox{max-width:70vw}.poolCardsWrap{max-width:none}}

.liveScorePanel{display:flex;align-items:center;gap:14px;flex-wrap:wrap;padding:14px 16px;border:1px solid var(--line);border-radius:12px;background:#0a151e;margin-bottom:14px}
.liveScorePanel .dot{width:10px;height:10px;border-radius:50%;background:#3a5064;flex:0 0 auto}
.liveScorePanel.on .dot{background:var(--green);box-shadow:0 0 8px var(--green)}
.liveScorePanel .lbl{font-weight:900}
.liveScorePanel .lastRun{color:var(--muted);font-size:12.5px}
.autoTag{font-size:9.5px;letter-spacing:.06em;text-transform:uppercase;padding:2px 7px;border-radius:999px;border:1px solid #3a5064;color:var(--muted);margin-left:6px}
.autoTag.live{border-color:var(--green);color:#82f09b}
.autoTag.off{border-color:#a33c46;color:#ff9aa4}


/* v3.7 production polish */
.playerLiveWrap{max-width:1150px;margin:auto;padding:18px}.playerLiveHeader{display:flex;justify-content:space-between;gap:16px;align-items:end;flex-wrap:wrap;margin-bottom:16px}.smallLiveTitle{font-size:clamp(38px,7vw,64px)}
.playerStats{display:grid;grid-template-columns:repeat(4,1fr);gap:10px;margin-bottom:14px}.playerPickGrid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;padding:14px}.playerPick{border:1px solid var(--line);border-radius:12px;padding:11px;background:#0a151e}.playerPick.correct{border-color:#347948;background:linear-gradient(180deg,#10251a,#09150f)}.playerPick.wrong{border-color:#7d343a;background:linear-gradient(180deg,#271115,#15090b)}.playerPick.pending{border-color:#314a60}.pickTop,.pickBottom{display:flex;justify-content:space-between;gap:8px;align-items:center}.pickTop{font-size:12px;color:var(--muted);margin-bottom:9px}.pickBottom{margin-top:9px;font-size:12px}.pickBottom span{font-weight:900}.playerPick.correct .pickBottom span{color:#7bea96}.playerPick.wrong .pickBottom span{color:#ff858c}.pickMatch{display:grid;grid-template-columns:1fr auto 1fr;gap:7px;align-items:center}.pickMatch div{display:flex;align-items:center;gap:5px;font-weight:900}.pickMatch div:last-child{justify-content:flex-end}.pickMatch img{width:32px;height:32px;object-fit:contain}.pickMatch em{font-size:11px;color:var(--muted);font-style:normal}.emptyState{grid-column:1/-1;padding:30px;text-align:center;color:var(--muted)}
.revealWrap{max-width:1500px;margin:auto;padding:30px 20px;text-align:center}.revealEyebrow{letter-spacing:.35em;color:var(--blue);font-weight:900}.revealTitle{font-size:clamp(68px,12vw,170px);font-weight:1000;line-height:.82;margin:12px 0}.revealBoard{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin:30px 0}.revealPool{background:linear-gradient(180deg,rgba(16,31,44,.96),rgba(5,12,18,.96));border:1px solid #314a60;border-radius:18px;padding:24px;min-height:240px;display:flex;flex-direction:column;justify-content:center}.revealPool h2{font-size:24px;color:var(--blue);letter-spacing:.08em}.revealStatus{font-size:18px;font-weight:900;letter-spacing:.08em}.winnerBurst{font-size:18px;color:var(--gold);font-weight:1000;letter-spacing:.22em}.revealNames{font-size:clamp(24px,4vw,52px);font-weight:1000;margin:14px 0}.winnerName{color:#fff;text-shadow:0 0 24px rgba(243,189,75,.5)}.revealNames small{font-size:.48em;color:var(--gold)}.revealPoints{font-size:25px;color:var(--gold);font-weight:1000}.tbResult{margin-top:8px;color:var(--muted)}.revealLoading{grid-column:1/-1;padding:40px;color:var(--muted)}
.compactHost{max-width:1100px}.weekAdminGrid{display:grid;grid-template-columns:1.2fr .8fr;gap:14px}.successBox{background:#10351d;border:1px solid #397e4d;color:#8ef2a5;border-radius:10px;padding:12px;margin-bottom:14px}.adminStatus{font-size:34px;font-weight:1000;padding:10px 0;color:#ff7f87}.adminStatus.good{color:#70e68c}.tinyBtn{min-height:34px;padding:6px 9px;font-size:12px}
@media(max-width:900px){.playerPickGrid{grid-template-columns:repeat(2,1fr)}.playerStats{grid-template-columns:repeat(2,1fr)}.revealBoard{grid-template-columns:1fr}.weekAdminGrid{grid-template-columns:1fr}}
@media(max-width:560px){.playerPickGrid{grid-template-columns:1fr}.playerLiveWrap{padding:10px}.revealWrap{padding:20px 10px}.playerStats{grid-template-columns:1fr 1fr}.stat{padding:9px}.stat b{font-size:22px}}
