/* Original Halloween motion: ember current, bat migration and an interactive ghost play. */
body { isolation:isolate; }
body > main, body main, .site-foot, footer { position:relative; z-index:1; }
.haunt-atmosphere { position:fixed; inset:0; overflow:hidden; pointer-events:none; z-index:0; contain:strict; }
.haunt-ember { position:absolute; bottom:-24px; left:calc(var(--i) * 7% + 2%); width:3px; height:6px; border-radius:70% 20% 80% 30%; background:#ff9757; box-shadow:0 0 9px #ff6c3c70; opacity:0; animation:ember-current calc(13s + var(--i) * .7s) linear infinite; animation-delay:calc(var(--i) * -2.3s); }
.haunt-bat { position:absolute; top:calc(9% + var(--i) * 21%); left:-10%; width:calc(34px + var(--i) * 9px); fill:#bc98d2; opacity:0; animation:bat-migration calc(29s + var(--i) * 5s) linear infinite; animation-delay:calc(var(--i) * -13s); }
.haunt-bat path { transform-origin:center; transform-box:fill-box; animation:bat-wing .65s cubic-bezier(.33,0,.2,1) infinite alternate; }
.haunt-motion-control { position:fixed; bottom:16px; left:16px; z-index:65; display:inline-flex; align-items:center; gap:7px; min-height:38px; padding:0 12px; border:1px solid #64466d; border-radius:9px; background:#1b1126; color:#e1c9ec; font:500 11px var(--font-interface,var(--body,sans-serif)); box-shadow:0 4px 20px #0005; cursor:pointer; }
.haunt-motion-control svg { width:13px; height:13px; }
.haunt-motion-control:hover { background:#34213f; border-color:#ffa66d; }
.nfl-home-hero,.hero { position:relative; isolation:isolate; box-shadow:0 15px 65px #0004; border:1px solid #57305e!important; }
html[data-season="halloween"] .nfl-home-hero::before,html[data-theme="halloween"] .hero::before { content:''; position:absolute; top:0; left:0; width:38%; height:2px; background:linear-gradient(90deg,transparent,#ff9a57,#d9b5ff,transparent); z-index:4; opacity:.8; animation:stadium-current 8s cubic-bezier(.45,0,.55,1) infinite; pointer-events:none; }
html[data-season="halloween"] .nfl-home-hero::after,html[data-theme="halloween"] .hero::after { content:''; position:absolute; right:0; top:0; z-index:3; width:138px; height:138px; opacity:.33; pointer-events:none; background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 140 140' fill='none' stroke='%23c5a0d3' stroke-width='1'%3E%3Cpath d='M140 0H0m140 0L0 140M140 0v140M140 0L10 60M140 0L80 140M140 20Q125 19 120 0m20 44Q108 40 96 0m44 74Q86 66 66 0m74 108Q58 96 28 0M124 16q3 10 16 12m-33 4q9 21 33 25m-55-2q19 34 55 39M61 79q32 51 79 59'/%3E%3C/svg%3E") center/contain no-repeat; }
.nfl-home-hero-copy,.hero-copy { position:relative; z-index:3; }
.nfl-home-title,.hero h1 { animation:night-arrival .55s cubic-bezier(.16,1,.3,1) both; }
html[data-season="halloween"] .nfl-season-art img,html[data-theme="halloween"] .hero-art img { transform-origin:50% 60%; animation:quarterback-hover 7s cubic-bezier(.45,0,.55,1) infinite; will-change:transform; }
.nfl-season-art,.hero-art { perspective:1000px; }
html[data-season="halloween"] .nfl-art-caption,html[data-theme="halloween"] .art-caption { display:none; }
.haunted-play { position:absolute; inset:0; z-index:4; pointer-events:none; }
.haunted-playfield { width:100%; height:100%; overflow:visible; opacity:0; transition:opacity 200ms; }
.haunted-play[data-running="true"] .haunted-playfield { opacity:1; }
.ghost-play-route { stroke:#ffb47c; stroke-width:2; stroke-dasharray:1; stroke-dashoffset:1; filter:drop-shadow(0 0 3px #ff934f88); }
.haunted-play[data-running="true"] .ghost-play-route { animation:ghost-route-draw 3.5s cubic-bezier(.22,1,.36,1) both; animation-delay:calc(var(--route) * .23s); }
.ghost-runner { opacity:0; filter:drop-shadow(0 2px 5px #0008); }
.haunted-play[data-running="true"] .ghost-runner { animation:ghost-route-appear 4.3s both; animation-delay:calc(var(--route) * .23s); }
.ghost-play-button { position:absolute; bottom:8px; right:8px; display:inline-flex; align-items:center; justify-content:center; gap:8px; min-height:42px; padding:0 15px; border:1px solid #ac785b; border-radius:9px; color:#ffbd8e; background:#1c1028e8; font:600 12px var(--font-interface,var(--body,sans-serif)); cursor:pointer; pointer-events:auto; }
.ghost-play-button svg { width:16px; height:16px; }
.ghost-play-button:hover { border-color:#ffc593; background:#382037; }
.ghost-play-button:disabled { color:#a78ab5; border-color:#50345f; cursor:default; }
.haunted-play[data-running="true"] .ghost-play-button svg { transform:rotate(-75deg); transition:transform 240ms cubic-bezier(.16,1,.3,1); }
/* The grid remains stationary; lighting responds to intentional browsing. */
@media(hover:hover) and (pointer:fine) {
 .team-directory .team-card:hover { border-color:#ad6d47!important; box-shadow:0 12px 32px #0004!important; }
 .league:hover { border-color:#bf744a; }
 .site-brand-mark:hover,.brand-symbol:hover { transform:skew(-7deg) rotate(-8deg); transition:transform 220ms cubic-bezier(.16,1,.3,1); }
}
html[data-motion="off"] .haunt-atmosphere *, html[data-motion="off"] .nfl-season-art img,html[data-motion="off"] .hero-art img,html[data-motion="off"] .nfl-home-hero::before,html[data-motion="off"] .hero::before { animation:none!important; transform:none!important; }
html[data-motion="off"] .haunt-atmosphere { display:none; }
html[data-motion="off"] .haunted-playfield { display:none; }
@keyframes ember-current { 0% { opacity:0; transform:translate3d(0,0,0) rotate(0); } 14% { opacity:.62; } 75% { opacity:.3; } 100% { opacity:0; transform:translate3d(110px,-110vh,0) rotate(145deg); } }
@keyframes bat-migration { 0% { opacity:0; transform:translate3d(0,20px,0) rotate(-10deg); } 10% { opacity:.19; } 50% { transform:translate3d(65vw,-75px,0) rotate(7deg); } 90% { opacity:.19; } 100% { opacity:0; transform:translate3d(120vw,-40px,0) rotate(-7deg); } }
@keyframes bat-wing { from { transform:scaleY(.5); } to { transform:scaleY(1); } }
@keyframes stadium-current { 0% { transform:translateX(-110%); } 100% { transform:translateX(375%); } }
@keyframes quarterback-hover { 0%,100% { transform:perspective(1000px) translate3d(var(--haunt-shift,0px),3px,0) rotateX(var(--haunt-tilt-x,0deg)) rotateY(var(--haunt-tilt-y,0deg)); } 50% { transform:perspective(1000px) translate3d(var(--haunt-shift,0px),-7px,0) rotateX(var(--haunt-tilt-x,0deg)) rotateY(var(--haunt-tilt-y,0deg)); } }
@keyframes night-arrival { from { opacity:.25; transform:translate3d(0,13px,0); } to { opacity:1; transform:translate3d(0,0,0); } }
@keyframes ghost-route-draw { 0% { stroke-dashoffset:1; } 85%,100% { stroke-dashoffset:0; } }
@keyframes ghost-route-appear { 0%,4% { opacity:0; } 8%,86% { opacity:1; } 100% { opacity:0; } }
@media(max-width:700px) { .haunt-bat { width:28px; }.haunt-ember:nth-child(n+8) { display:none; }.haunt-motion-control { bottom:10px; left:10px; min-height:36px; padding-inline:10px; font-size:10px; }.ghost-play-button { min-height:38px; font-size:11px; bottom:0; right:0; }.nfl-season-art,.hero-art { margin-bottom:15px; } }
@media(prefers-reduced-motion:reduce) { .haunt-atmosphere { display:none!important; }.nfl-home-title,.hero h1,.nfl-season-art img,.hero-art img,.nfl-home-hero::before,.hero::before,.ghost-play-route,.ghost-runner { animation:none!important; transform:none!important; }.haunted-play[data-running="true"] .ghost-play-route { stroke-dashoffset:0; }.haunted-play[data-running="true"] .ghost-runner { display:none; } }
