/* Game detail sheet — full-screen slide-over, laptop-first, phone bottom-sheet.
   Follows the approved Sheet + URL pattern. */

/* ---------- scrim + shell ---------- */
.gs-scrim{position:fixed;inset:0;background:rgba(8,9,11,.72);backdrop-filter:blur(6px);z-index:90;opacity:0;transition:opacity .22s ease}
.gs-scrim.open{opacity:1}
.gs-sheet{position:fixed;z-index:91;top:0;right:0;bottom:0;width:min(560px,100%);
  background:#0e0f12;border-left:1px solid #26272c;
  transform:translateX(102%);transition:transform .28s cubic-bezier(.32,.72,.28,1);
  display:flex;flex-direction:column;overflow:hidden}
.gs-sheet.open{transform:none}
.gs-grab{display:none}

/* ---------- header ---------- */
.gs-head{padding:18px 20px 0;flex:none}
.gs-row1{display:flex;justify-content:space-between;align-items:center;gap:10px}
.gs-close{background:#1b1c21;border:1px solid #2e2f36;color:var(--ink);width:36px;height:36px;border-radius:50%;font-size:17px;cursor:pointer;line-height:1;flex:none}
.gs-close:hover{border-color:#555}
.gs-navbtns{display:flex;gap:8px;flex:none}
.gs-back{background:#1b1c21;border:1px solid #2e2f36;color:var(--ink);width:36px;height:36px;border-radius:50%;font-size:17px;cursor:pointer;line-height:1;flex:none}
.gs-back:hover{border-color:#555}
.gs-leaguemeta{font-size:11px;letter-spacing:.24em;color:var(--faint);font-weight:700}
.gs-title{font-size:22px;font-weight:800;letter-spacing:-.01em;margin-top:10px}
.gs-title small{color:var(--faint);font-weight:600;font-size:13px;letter-spacing:0}
.gs-live{display:inline-block;background:var(--red);color:#fff;font-size:10px;font-weight:800;letter-spacing:.2em;padding:4px 10px;border-radius:4px;margin-bottom:8px}
.gs-live .rdot{display:inline-block;width:7px;height:7px;border-radius:50%;background:#fff;margin-right:6px;animation:gsblink 1.4s infinite}
@keyframes gsblink{50%{opacity:.45}}
.gs-postbug{display:inline-block;font-size:10px;font-weight:800;letter-spacing:.2em;color:var(--gold);margin-bottom:8px}
.gs-prebug{display:inline-block;font-size:10px;font-weight:800;letter-spacing:.2em;color:var(--faint);margin-bottom:8px}

/* ---------- score bug ---------- */
.gs-bug{display:grid;grid-template-columns:1fr auto 1fr;gap:12px;align-items:center;margin-top:14px;padding:16px;background:#141518;border:1px solid #26272c;border-radius:12px;position:relative;overflow:hidden}
.gs-bug::before{content:"";position:absolute;top:-60px;left:-50px;width:220px;height:220px;border-radius:50%;background:var(--ha,#333);filter:blur(70px);opacity:.30;pointer-events:none}
.gs-bug::after{content:"";position:absolute;top:-60px;right:-50px;width:220px;height:220px;border-radius:50%;background:var(--hh,#333);filter:blur(70px);opacity:.30;pointer-events:none}
.gs-t{text-align:center;position:relative;z-index:1;min-width:0}
.gs-t img{width:56px;height:56px;object-fit:contain}
.gs-t .ab{font-size:12px;letter-spacing:.16em;color:var(--dim);font-weight:800;margin-top:6px}
.gs-t .rec{font-size:11px;color:var(--faint)}
.gs-t .poss{width:8px;height:8px;border-radius:50%;background:var(--gold);display:inline-block;margin-right:6px}
.gs-t.loser{opacity:.5}
.gs-mid{text-align:center;position:relative;z-index:1}
.gs-score{font-size:44px;font-weight:800;font-variant-numeric:tabular-nums;letter-spacing:-.03em}
.gs-clock{font-size:12px;color:var(--red);font-weight:700;letter-spacing:.08em;margin-top:6px}
.gs-kick{font-size:26px;font-weight:800;font-variant-numeric:tabular-nums}
.gs-kick small{font-size:12px;color:var(--dim);font-weight:600;display:block;letter-spacing:.04em;margin-top:4px}

/* ---------- win probability ---------- */
.gs-wp{margin-top:14px}
.gs-wpbar{display:flex;height:9px;border-radius:99px;overflow:hidden;background:#26272c}
.gs-wpbar i{display:block;height:100%}
.gs-wplbl{display:flex;justify-content:space-between;font-size:11.5px;color:var(--dim);margin-top:7px}
.gs-wplbl b{font-variant-numeric:tabular-nums}

/* ---------- body ---------- */
.gs-body{overflow-y:auto;padding:18px 20px 40px;flex:1;overscroll-behavior:contain;-webkit-overflow-scrolling:touch}
.gs-sec{margin-top:22px}
.gs-sec>h3{font-size:11px;letter-spacing:.24em;color:var(--faint);margin-bottom:12px;font-weight:800}
.gs-hint{font-size:11px;color:var(--faint);margin-bottom:8px}

/* ---------- where to watch ---------- */
.gs-watch{display:flex;gap:10px;align-items:center;background:#141518;border:1px solid #26272c;border-radius:12px;padding:14px 16px}
.gs-watch .tv{width:38px;height:38px;border-radius:10px;background:#1d1e23;display:grid;place-items:center;font-size:18px;flex:none}
.gs-watch .nw{font-size:16px;font-weight:800}
.gs-watch .sub{font-size:12px;color:var(--dim);margin-top:2px}
.gs-watch .gs-bell{margin-left:auto}

/* ---------- track ---------- */
.gs-bell{background:transparent;border:1px solid var(--gold);color:var(--gold);font-size:12.5px;font-weight:700;padding:10px 16px;border-radius:99px;cursor:pointer;white-space:nowrap}
.gs-bell[aria-pressed="true"]{background:var(--gold);color:#141310}
.gs-track{display:flex;gap:12px;align-items:center;background:#141518;border:1px solid #26272c;border-radius:12px;padding:14px 16px}
.gs-track .tx{font-size:13px;line-height:1.5}
.gs-track .tx b{display:block;font-size:14px}
.gs-track .gs-bell{flex:none}

/* ---------- drive chart ---------- */
.gs-chart{background:#141518;border:1px solid #26272c;border-radius:12px;padding:14px 14px 8px;position:relative}
.gs-field{position:relative;height:340px;margin-top:4px}
.gs-yticks{position:absolute;left:0;top:0;bottom:0;width:26px;pointer-events:none}
.gs-yticks span{position:absolute;left:0;font-size:9px;color:#55585f;font-variant-numeric:tabular-nums}
.gs-bars{position:absolute;left:30px;right:8px;top:0;bottom:0}
.gs-drive{position:absolute;height:20px}
.gs-drive i{position:absolute;top:6px;height:8px;border-radius:4px}
.gs-drive .glyph{position:absolute;top:2px;font-size:10px;font-weight:800;padding:2px 6px;border-radius:4px;background:#26272c;color:var(--dim);white-space:nowrap}
.gs-drive.score i{background:var(--gold)}
.gs-drive.score .glyph{background:var(--gold);color:#141310}
.gs-drive.turn{opacity:.85}
.gs-drive.turn i{background:#8e2f26}
.gs-drive.turn .glyph{background:#8e2f26;color:#fff}
.gs-legend{display:flex;gap:14px;flex-wrap:wrap;font-size:11px;color:var(--dim);margin-top:8px;padding-bottom:6px}
.gs-legend b{display:inline-block;width:10px;height:10px;border-radius:3px;margin-right:5px;vertical-align:baseline}

/* ---------- current drive ---------- */
.gs-curdrive{display:flex;gap:6px;align-items:center;background:#141518;border:1px solid #26272c;border-radius:12px;padding:14px 16px;overflow-x:auto}
.gs-play{flex:none;min-width:44px;height:44px;border-radius:8px;background:#1d1e23;display:grid;place-items:center;font-size:11px;font-weight:700;color:var(--dim);padding:0 8px;white-space:nowrap}
.gs-play.score{background:rgba(201,162,74,.18);color:var(--gold);border:1px solid var(--gold)}
.gs-play.turn{background:rgba(232,50,30,.12);color:var(--red);border:1px solid var(--red)}
.gs-play.latest{outline:2px solid var(--gold);outline-offset:2px}

/* ---------- key plays / pbp ---------- */
.gs-kp{display:flex;gap:12px;padding:12px 0;border-top:1px solid #22242a;font-size:13px;line-height:1.55}
.gs-kp:first-of-type{border-top:0}
.gs-kp .q{flex:none;width:34px;height:34px;border-radius:8px;background:#1d1e23;display:grid;place-items:center;font-size:11px;font-weight:800;color:var(--dim)}
.gs-kp .tag{flex:none;font-size:10px;font-weight:800;letter-spacing:.08em;padding:3px 8px;border-radius:4px;height:fit-content;margin-top:6px}
.gs-kp .tag.td{background:var(--gold);color:#141310}
.gs-kp .tag.fg{background:#3a3b41;color:var(--ink)}
.gs-kp .tag.turn{background:var(--red);color:#fff}
.gs-kp .tag.big{background:#26272c;color:var(--ink)}
.gs-kp .pt{flex:1;min-width:0;color:var(--dim)}
.gs-kp .pt b{color:var(--ink)}
.gs-kp .sc{font-size:11px;color:var(--faint);font-variant-numeric:tabular-nums;margin-top:2px}
.gs-toggle{background:#1b1c21;border:1px solid #2e2f36;color:var(--ink);font-size:13px;font-weight:700;padding:11px;width:100%;border-radius:10px;cursor:pointer;margin-top:10px}
.gs-toggle:hover{border-color:#555}

/* ---------- linescore ---------- */
.gs-lines{width:100%;border-collapse:collapse;font-size:12.5px;font-variant-numeric:tabular-nums}
.gs-lines th{font-size:10px;letter-spacing:.14em;color:var(--faint);font-weight:700;padding:6px 8px;text-align:center}
.gs-lines th:first-child,.gs-lines td:first-child{text-align:left;padding-left:4px}
.gs-lines td{padding:7px 8px;text-align:center;border-top:1px solid #22242a}
.gs-lines td.tm{font-weight:800}
.gs-lines td.T{font-weight:800;color:var(--gold)}

/* ---------- leaders ---------- */
.gs-lead{margin-bottom:14px}
.gs-lead .cat{font-size:11px;letter-spacing:.2em;color:var(--faint);font-weight:800;margin-bottom:8px}
.gs-lead .pl{display:flex;align-items:center;gap:10px;padding:7px 0;font-size:13px}
.gs-lead .pl+.pl{border-top:1px solid #22242a}
.gs-lead .rank{flex:none;width:22px;font-size:11px;color:var(--faint);font-weight:800}
.gs-lead .nm{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.gs-lead .nm small{color:var(--faint)}
.gs-lead .st{font-variant-numeric:tabular-nums;color:var(--dim);font-weight:600}
.gs-lead .cat2{flex:none;min-width:96px;font-size:10px;letter-spacing:.1em;color:var(--faint);font-weight:800;text-transform:uppercase}

/* ---------- markets ---------- */
.gs-sec .marketline{margin:0}

/* ---------- empty / error ---------- */
.gs-empty{font-size:13px;color:var(--dim);line-height:1.7;background:#141518;border:1px dashed #2e2f36;border-radius:12px;padding:16px}
.gs-error{font-size:13px;color:var(--dim);line-height:1.7;background:#1a1214;border:1px solid #5a2420;border-radius:12px;padding:16px}
.gs-loading{padding:60px 20px;text-align:center;color:var(--faint);font-size:13px}
.gs-loading .spin{width:34px;height:34px;border:3px solid #2c2d33;border-top-color:var(--gold);border-radius:50%;margin:0 auto 14px;animation:gsspin 1s linear infinite}
@keyframes gsspin{to{transform:rotate(360deg)}}

/* ---------- phone: bottom sheet ---------- */
@media (max-width:640px){
  .gs-sheet{top:auto;left:0;right:0;bottom:0;width:100%;max-height:92dvh;border-left:0;border-top:1px solid #26272c;border-radius:16px 16px 0 0;transform:translateY(102%)}
  .gs-sheet.open{transform:none}
  .gs-grab{display:block;width:40px;height:4px;border-radius:99px;background:#3a3b41;margin:10px auto 0;flex:none}
  .gs-head{padding:6px 16px 0}
  .gs-body{padding:14px 16px 40px}
  .gs-title{font-size:19px}
  .gs-score{font-size:38px}
}
@media (prefers-reduced-motion:reduce){
  .gs-scrim,.gs-sheet{transition:none}
  .gs-live .rdot{animation:none}
  .gs-loading .spin{animation:none}
}
