/* Live "last play" field on the NFL games cards + the expanded field sheet (app/static/gamecast.js).
   Kept out of style.css on purpose: the turf, TV lines and team colours are the same in every theme, and the
   text/surfaces use the theme variables (--card, --ink, --muted, --line), so Day / Night / T3 / DP / Auto all work. */
.gcw{display:flex;flex-direction:column;min-width:0}
.gcw.on>.gcard{border-bottom-left-radius:0;border-bottom-right-radius:0;border-bottom-style:dashed}
.gcw.on .gc-sit{display:none}
.gcast{display:block;width:100%;text-align:left;font:inherit;color:var(--ink);background:var(--card,#fff);border:1px solid var(--line);border-top:0;
  border-left:4px solid #d62d20;border-radius:0 0 10px 10px;padding:6px 8px 8px;cursor:pointer;-webkit-tap-highlight-color:transparent}
.gcast.replay{border-left-color:#7a5af8}
.gcast:hover .gcf{box-shadow:0 0 0 2px rgba(255,212,0,.55),0 4px 14px rgba(0,0,0,.25)}
.gcast:focus-visible{outline:2px solid #ffd400;outline-offset:2px}
.gcf{position:relative;display:block;border-radius:7px;overflow:hidden;line-height:0;isolation:isolate;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 .55 -.18'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"),
    radial-gradient(120% 140% at 50% 40%,rgba(255,255,255,.10),rgba(0,0,0,.30)),
    linear-gradient(180deg,rgba(255,255,255,.08),rgba(0,0,0,.16)),
    repeating-linear-gradient(90deg,#2f8a3a 0 4.16667%,#277a32 4.16667% 8.33333%);
  box-shadow:inset 0 0 0 1px rgba(0,0,0,.35),0 2px 8px rgba(0,0,0,.18);transition:box-shadow .2s}
.gcf-svg{display:block;width:100%;height:auto;font-family:"Arial Narrow","Roboto Condensed",system-ui,sans-serif}
.gcf-yl{stroke:#fff;stroke-opacity:.42;stroke-width:.7}
.gcf-yl10{stroke:#fff;stroke-opacity:.75;stroke-width:1}
.gcf-goal{stroke:#fff;stroke-width:1.8}
.gcf-hash{stroke:#fff;stroke-opacity:.6;stroke-width:.6}
.gcf-num{fill:#fff;fill-opacity:.88;font-size:15px;font-weight:800;text-anchor:middle;letter-spacing:.5px;paint-order:stroke;stroke:rgba(0,0,0,.18);stroke-width:1px}
.gcf-num.s{font-size:7.5px;fill-opacity:.7;stroke:none}
.gcf-ezt{fill:#fff;font-size:17px;font-weight:900;letter-spacing:4px;text-anchor:middle;dominant-baseline:middle;paint-order:stroke;stroke:rgba(0,0,0,.35);stroke-width:2px}
.gcf-ezs{fill:#fff;font-size:9px;font-weight:800;text-anchor:middle}
.gcf-ezl{filter:drop-shadow(0 1px 1px rgba(0,0,0,.5))}
.gcf-rz{fill:#ff1f3d;fill-opacity:.24;animation:gcf-rz 1.6s ease-in-out infinite alternate}
.gcf-rzb{fill:#ff1f3d}
@keyframes gcf-rz{to{fill-opacity:.4}}
.gcf-los{stroke:#2f7dff;stroke-width:2}.gcf-los-g{stroke:#2f7dff;stroke-opacity:.35;stroke-width:6}
.gcf-fd{stroke:#ffd400;stroke-width:2}.gcf-fd-g{stroke:#ffd400;stroke-opacity:.35;stroke-width:6}
.gcf-trail{fill:none;stroke:#fff;stroke-width:2.2;stroke-linecap:round;stroke-linejoin:round}
.gcf-trail.glow{stroke:#fff;stroke-opacity:.28;stroke-width:6.5;filter:none}
.gcf-trail.inc{stroke-dasharray:3 3;stroke-opacity:.85}
.gcf-trail.kick{stroke:#ffe9a0}.gcf-trail.kick.glow{stroke:#ffe9a0}
.gcf-trail.pen{stroke:#ffd400;stroke-dasharray:4 3}
.gcf-trail.to:not(.glow){stroke:#ff5a4a}.gcf-trail.to.glow{stroke:#ff5a4a;stroke-opacity:.35}
.gcf-trail.sc.glow{stroke:#ffd400;stroke-opacity:.45}
.gcf-x{stroke:#ff5a4a;stroke-width:1.8;stroke-linecap:round}
.gcf-ghost{fill:#fff;filter:drop-shadow(0 0 3px #fff)}
.gcf-halo{transform-box:fill-box;transform-origin:center;animation:gcf-pulse 1.4s ease-in-out infinite}
@keyframes gcf-pulse{0%,100%{transform:scale(.8);opacity:.75}50%{transform:scale(1.15);opacity:1}}
/* text under the strip */
.gcf-info{display:block;margin-top:6px;font-size:13px;line-height:1.35}
.gcf-row{display:flex;align-items:center;gap:6px;min-width:0}
.gcf-dd{display:inline-flex;align-items:center;gap:5px;min-width:0;flex:0 1 auto}
.gcf-dd span{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.gcf-dd img{flex:none}
.gcf-exp{margin-left:auto;flex:none;color:var(--muted);font-size:11.5px;white-space:nowrap}
.gcf-rp{display:block;font-size:11.5px;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;margin-bottom:3px}
.gcf-last{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;color:var(--muted);font-size:12.5px;margin-top:2px}
.gcf-last.mine{color:var(--ink)}
.gcf-replay{display:inline-block;flex:none;background:#7a5af8;color:#fff;font-size:10px;font-weight:800;letter-spacing:.6px;border-radius:4px;padding:1px 5px;white-space:nowrap}
.gcast .rz-badge{flex:none}
.gcp-tag{display:inline-block;font-size:10px;font-weight:800;letter-spacing:.4px;border-radius:4px;padding:0 4px;margin-right:4px;vertical-align:1px;color:#fff;background:#59606b}
.gcp-tag.sc{background:#1f9e6e}.gcp-tag.to{background:#d62d20}.gcp-tag.pen{background:#e0b400;color:#1b1b1b}
.gcp-tag.mine{background:#ffd400;color:#1b1b1b}
/* celebration: TOUCHDOWN / FIELD GOAL / turnover */
.gcf-fx{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;pointer-events:none;z-index:2;line-height:1}
.gcf-burst{position:absolute;left:50%;top:50%;width:140%;aspect-ratio:1;border-radius:50%;transform:translate(-50%,-50%) scale(.05);
  background:radial-gradient(circle,#fff 0,color-mix(in srgb,var(--tc) 85%,#fff) 18%,var(--tc) 38%,transparent 66%);opacity:.95;animation:gcf-burst 2.4s cubic-bezier(.15,.8,.25,1) forwards}
.gcf-rays{position:absolute;left:50%;top:50%;width:160%;aspect-ratio:1;transform:translate(-50%,-50%);opacity:0;
  background:repeating-conic-gradient(from 0deg,rgba(255,255,255,.38) 0 6deg,transparent 6deg 22deg);
  -webkit-mask:radial-gradient(circle,transparent 8%,#000 30%,transparent 62%);mask:radial-gradient(circle,transparent 8%,#000 30%,transparent 62%);
  animation:gcf-rays 2.4s ease-out forwards}
.gcf-banner{position:relative;color:#fff;font-weight:900;font-style:italic;letter-spacing:2px;font-size:clamp(15px,5.4vw,24px);padding:5px 14px;
  background:linear-gradient(90deg,transparent,var(--tc) 12%,var(--tc) 88%,transparent);text-shadow:0 2px 0 rgba(0,0,0,.45),0 0 14px rgba(255,255,255,.55);
  transform:skewX(-10deg);animation:gcf-ban 2.4s cubic-bezier(.2,1.4,.3,1) forwards;white-space:nowrap}
.gcf-banner small{font-size:.55em;letter-spacing:1px;margin-left:8px;opacity:.9;font-style:normal}
.gcf.big .gcf-banner{font-size:clamp(22px,8vw,36px)}
.gcf-fx.turn{--tc:#d62d20}
.gcf-fx.turn .gcf-banner{background:linear-gradient(90deg,transparent,#d62d20 12%,#ff7a1a 50%,#d62d20 88%,transparent)}
.gcf-fx.turn .gcf-burst{background:radial-gradient(circle,rgba(255,255,255,.9) 0,rgba(255,122,26,.75) 22%,rgba(214,45,32,.5) 40%,transparent 64%)}
@keyframes gcf-burst{0%{transform:translate(-50%,-50%) scale(.05);opacity:1}35%{opacity:.9}100%{transform:translate(-50%,-50%) scale(1.25);opacity:0}}
@keyframes gcf-rays{0%{opacity:0;transform:translate(-50%,-50%) rotate(0) scale(.6)}20%{opacity:1}100%{opacity:0;transform:translate(-50%,-50%) rotate(40deg) scale(1.1)}}
@keyframes gcf-ban{0%{transform:skewX(-10deg) scale(.2);opacity:0}14%{transform:skewX(-10deg) scale(1.12);opacity:1}24%{transform:skewX(-10deg) scale(1)}82%{opacity:1}100%{transform:skewX(-10deg) scale(1.04);opacity:0}}
/* expanded sheet */
.gcx{padding:0;border:0;margin:auto auto 0;width:100%;max-width:640px;max-height:88dvh;border-radius:20px 20px 0 0;background:var(--card,#fff);color:var(--ink);
  overflow-y:auto;overscroll-behavior:contain;box-shadow:0 -8px 30px rgba(0,0,0,.3)}
.gcx[open]{animation:gcx-up .24s ease-out}
@keyframes gcx-up{from{transform:translateY(40px);opacity:.4}}
.gcx::backdrop{background:rgba(6,10,20,.6)}
@media (min-width:761px){.gcx{margin:auto;border-radius:20px}}
.gcx-head{position:sticky;top:0;z-index:3;display:flex;align-items:center;gap:8px;padding:12px 14px 10px;background:var(--card,#fff);border-bottom:1px solid var(--line)}
.gcx-t{display:flex;align-items:center;gap:6px;font-size:15px;flex:1;min-width:0}.gcx-t.r{justify-content:flex-end}
.gcx-s{font-size:22px;font-weight:800;font-variant-numeric:tabular-nums}
.gcx-mid{display:flex;flex-direction:column;align-items:center;gap:2px;font-size:12px;color:var(--muted);white-space:nowrap}
.gcx-x{border:0;background:transparent;color:var(--muted);font-size:18px;padding:4px 6px;cursor:pointer;margin-left:2px}
.gcx-note{margin:8px 14px 0;font-size:12px;color:var(--muted)}
.gcx .gcf.big{margin:10px 10px 0}
.gcx-info{padding:8px 14px 0}.gcx-info .gcf-info{font-size:14px}.gcx-info .gcf-last{-webkit-line-clamp:4;font-size:13.5px}
.gcx-legend{display:flex;gap:12px;flex-wrap:wrap;padding:6px 14px 0;font-size:11.5px;color:var(--muted)}
.gcx-legend i{display:inline-block;width:14px;height:3px;border-radius:2px;margin-right:5px;vertical-align:middle}
.lg-los{background:#2f7dff}.lg-fd{background:#ffd400}.lg-tr{background:#9aa6bf}
.gcx-h{margin:12px 14px 4px;font-size:13px;text-transform:uppercase;letter-spacing:.6px;color:var(--muted)}
.gcx-list{list-style:none;margin:0;padding:0 10px 4px;max-height:42dvh;overflow-y:auto}
.gcx-list li{border-left:4px solid var(--tc);background:color-mix(in srgb,var(--tc) 7%,transparent);border-radius:6px;padding:6px 9px;margin:0 0 6px}
.gcx-list li.now{box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--tc) 55%,transparent)}
.gcx-list li.mine{background:color-mix(in srgb,#ffd400 14%,transparent)}
.gcp-top{display:flex;align-items:center;gap:5px;font-size:11.5px;color:var(--muted);flex-wrap:wrap}
.gcp-top img{flex:none}.gcp-yd{margin-left:auto;font-weight:700;color:var(--ink);font-variant-numeric:tabular-nums}
.gcp-txt{font-size:13px;margin-top:2px}
.gcx-more{display:block;text-align:center;padding:10px 14px 16px;font-weight:600}
@media (prefers-reduced-motion:reduce){
  .gcf-halo,.gcf-rz,.gcx[open]{animation:none}
  .gcf-burst,.gcf-rays{display:none}
  .gcf-banner{animation:gcf-fade 1.6s linear forwards}
  @keyframes gcf-fade{0%,85%{opacity:1}100%{opacity:0}}
}
