/* Chase home FX layer v1. Additive: loads after home.css, JS adds .cx-fx to <html>. */
@property --cx-a{syntax:'<angle>';inherits:false;initial-value:0deg}
@keyframes cx-spin{to{--cx-a:360deg}}
@keyframes cx-float{0%,100%{translate:0 0}50%{translate:0 -10px}}
@keyframes cx-shimmer{to{background-position:200% 0}}
@keyframes cx-pulse{0%,100%{opacity:.55;scale:1}50%{opacity:1;scale:1.08}}
@keyframes cx-flicker{0%,100%{opacity:.03}4%{opacity:.5}6%{opacity:.04}9%{opacity:.7}12%{opacity:.03}60%{opacity:.03}62%{opacity:.35}64%{opacity:.03}}
@keyframes cx-sweep{from{translate:-130% 0}to{translate:230% 0}}
@keyframes cx-scan{from{background-position:0 0}to{background-position:0 6px}}
@keyframes cx-drift{0%{translate:0 0}50%{translate:30px -24px}100%{translate:0 0}}
@keyframes cx-rule{from{scale:0 1}to{scale:1 1}}

/* ---------- global overlays ---------- */
.cx-fx-progress{position:fixed;left:0;top:0;height:3px;width:100%;z-index:9999;transform-origin:0 50%;transform:scaleX(0);background:linear-gradient(90deg,var(--cx-pink),#fff,var(--cx-cyan));box-shadow:0 0 14px var(--cx-pink),0 0 24px rgba(31,213,255,.6);pointer-events:none}
.cx-fx-cursor{position:fixed;left:0;top:0;width:480px;height:480px;margin:-240px 0 0 -240px;border-radius:50%;z-index:1;pointer-events:none;opacity:0;transition:opacity .4s;background:radial-gradient(circle,rgba(255,45,180,.13),rgba(31,213,255,.06) 40%,transparent 68%);mix-blend-mode:screen;will-change:transform}
.cx-fx-cursor.is-on{opacity:1}
.cx-fx-noise{position:fixed;inset:0;z-index:2;pointer-events:none;opacity:.07;mix-blend-mode:overlay;background-image:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>")}
.cx-fx-canvas{position:absolute;inset:0;width:100%;height:100%;z-index:1;pointer-events:none}

/* ---------- scroll reveal ---------- */
.cx-fx .cx-rv{opacity:0;translate:0 38px;transition:opacity .8s cubic-bezier(.2,.7,.2,1) var(--d,0s),translate .8s cubic-bezier(.2,.7,.2,1) var(--d,0s),transform .28s ease,border-color .28s ease,box-shadow .28s ease}
.cx-fx .cx-rv.is-in{opacity:1;translate:0 0}
.cx-fx .cx-section-rule span{animation:none;scale:0 1;transform-origin:100% 50%}
.cx-fx .cx-section-rule span:last-child{transform-origin:0 50%}
.cx-fx .cx-section-rule.is-in span{animation:cx-rule 1s cubic-bezier(.2,.7,.2,1) .1s both}
.cx-fx .cx-section-rule strong{text-shadow:0 0 18px rgba(255,45,180,.65),0 0 40px rgba(31,213,255,.3)}

/* ---------- hero ---------- */
.cx-fx .cx-arena__atmosphere{animation:cx-pulse 7s ease-in-out infinite}
.cx-fx .cx-arena::before{content:"";position:absolute;inset:0;z-index:2;pointer-events:none;opacity:.35;background:repeating-linear-gradient(0deg,rgba(255,255,255,.035) 0 1px,transparent 1px 3px);animation:cx-scan .6s linear infinite;mix-blend-mode:overlay}
.cx-fx-spot{position:absolute;inset:0;z-index:2;pointer-events:none;background:radial-gradient(520px circle at var(--mx,50%) var(--my,30%),rgba(255,255,255,.09),rgba(255,45,180,.07) 35%,transparent 65%);mix-blend-mode:screen;opacity:0;transition:opacity .5s}
.cx-arena:hover .cx-fx-spot{opacity:1}
.cx-fx .cx-arena__beam{will-change:translate;transition:translate .5s ease-out}
.cx-fx .cx-arena__beam--1{translate:calc(var(--px,0) * -26px) calc(var(--py,0) * -8px)}
.cx-fx .cx-arena__beam--2{translate:calc(var(--px,0) * -14px) calc(var(--py,0) * -5px)}
.cx-fx .cx-arena__beam--3{translate:calc(var(--px,0) * 6px) calc(var(--py,0) * -4px)}
.cx-fx .cx-arena__beam--4{translate:calc(var(--px,0) * 16px) calc(var(--py,0) * -6px)}
.cx-fx .cx-arena__beam--5{translate:calc(var(--px,0) * 28px) calc(var(--py,0) * -8px)}
.cx-fx .cx-arena__speed{animation:cx-drift 9s ease-in-out infinite}
.cx-fx .cx-arena__speed--two{animation-duration:12s;animation-direction:reverse}
.cx-fx .cx-arena__peek{transition:translate .6s ease-out,opacity .4s}
.cx-fx .cx-arena__peek--left{translate:calc(var(--px,0) * 14px) 0}
.cx-fx .cx-arena__peek--right{translate:calc(var(--px,0) * 14px) 0}
.cx-fx .cx-arena-slide.is-active .cx-arena-slide__art{animation:cx-float 6s ease-in-out infinite;box-shadow:0 50px 110px rgba(0,0,0,.7),0 0 90px rgba(255,45,180,.28),0 0 140px rgba(31,213,255,.14)}
.cx-fx .cx-arena-slide__art::after{content:"";position:absolute;inset:0;z-index:5;pointer-events:none;background:linear-gradient(115deg,transparent 35%,rgba(255,255,255,.22) 48%,rgba(255,255,255,.04) 52%,transparent 62%);translate:-130% 0;animation:cx-sweep 5.5s ease-in-out 1.2s infinite}
.cx-fx .cx-arena-slide__art::before{content:"";position:absolute;inset:0;z-index:6;border-radius:inherit;padding:2px;pointer-events:none;background:conic-gradient(from var(--cx-a),transparent 0 55%,var(--cx-pink) 72%,#fff 80%,var(--cx-cyan) 90%,transparent);-webkit-mask:linear-gradient(#000 0 0) content-box,linear-gradient(#000 0 0);-webkit-mask-composite:xor;mask-composite:exclude;animation:cx-spin 5s linear infinite}
.cx-fx .cx-arena-slide h1{background:linear-gradient(100deg,#fff 0%,#fff 35%,var(--cx-pink-hi) 50%,var(--cx-cyan) 65%,#fff 80%);background-size:200% 100%;-webkit-background-clip:text;background-clip:text;color:transparent;animation:cx-shimmer 6s linear infinite;filter:drop-shadow(0 0 22px rgba(255,45,180,.45))}
.cx-fx .cx-arena-slide__instant{animation:cx-pulse 2.4s ease-in-out infinite}
.cx-fx .cx-arena-slide__progress i{position:relative;background-image:linear-gradient(90deg,var(--cx-pink),var(--cx-cyan));box-shadow:0 0 14px var(--cx-pink)}
.cx-fx .cx-arena-slide__live i{animation:cx-pulse 1.4s ease-in-out infinite}
.cx-fx .cx-arena__dots button.is-active{box-shadow:0 0 14px var(--cx-pink),0 0 24px var(--cx-cyan)}

/* ---------- side slides: solid, bright, tucked in behind the main card ---------- */
.cx-fx .cx-arena .cx-arena__peek{width:440px!important;height:560px!important;top:128px!important;opacity:1!important;filter:saturate(1.1) brightness(1)!important;cursor:pointer;border:1px solid rgba(255,255,255,.3)!important;background-size:cover;transition:background-image .25s ease,filter .3s ease,box-shadow .3s ease,translate .6s ease-out,scale .3s ease!important}
.cx-fx .cx-arena .cx-arena__peek:after{background:linear-gradient(180deg,rgba(5,4,8,0),rgba(5,4,8,.22))!important}
.cx-fx .cx-arena .cx-arena__peek--left{left:calc(50% - 735px)!important;transform:rotate(-4deg);-webkit-mask-image:linear-gradient(90deg,rgba(0,0,0,.7),#000 18%);mask-image:linear-gradient(90deg,rgba(0,0,0,.7),#000 18%);box-shadow:0 30px 80px rgba(0,0,0,.6),-10px 0 60px rgba(255,45,180,.35)}
.cx-fx .cx-arena .cx-arena__peek--right{left:auto!important;right:calc(50% - 735px)!important;transform:rotate(4deg);-webkit-mask-image:linear-gradient(270deg,rgba(0,0,0,.7),#000 18%);mask-image:linear-gradient(270deg,rgba(0,0,0,.7),#000 18%);box-shadow:0 30px 80px rgba(0,0,0,.6),10px 0 60px rgba(31,213,255,.35)}
.cx-fx .cx-arena .cx-arena__peek:hover{filter:saturate(1.25) brightness(1.1)!important;scale:1.03}
@media(max-width:1500px){.cx-fx .cx-arena .cx-arena__peek{width:380px!important;height:500px!important;top:150px!important}.cx-fx .cx-arena .cx-arena__peek--left{left:calc(50% - 680px)!important}.cx-fx .cx-arena .cx-arena__peek--right{right:calc(50% - 680px)!important}}
@media(max-width:1200px){.cx-fx .cx-arena .cx-arena__peek{display:none!important}}

/* ---------- winners runner ---------- */
.cx-fx .cx-win-runner__viewport{-webkit-mask-image:linear-gradient(90deg,transparent,#000 8%,#000 92%,transparent);mask-image:linear-gradient(90deg,transparent,#000 8%,#000 92%,transparent)}
.cx-fx .cx-win-runner{box-shadow:0 0 40px rgba(255,45,180,.12) inset,0 -1px 0 rgba(255,45,180,.4),0 1px 0 rgba(31,213,255,.4)}
.cx-fx .cx-win-runner__track:hover{animation-play-state:paused}
.cx-fx .cx-win-runner__label i{animation:cx-pulse 1.2s ease-in-out infinite}

/* ---------- command deck ---------- */
.cx-fx .cx-command-pot{position:relative;overflow:hidden;transition:transform .3s ease,box-shadow .3s ease}
.cx-fx .cx-command-pot:hover{box-shadow:0 0 50px rgba(255,45,180,.25)}
.cx-fx .cx-command-pot--cyan:hover{box-shadow:0 0 50px rgba(31,213,255,.25)}
.cx-fx .cx-command-pot__glow{animation:cx-pulse 4s ease-in-out infinite}
.cx-fx .cx-command-pot strong,.cx-fx .cx-command__scoreboard strong{font-variant-numeric:tabular-nums;text-shadow:0 0 22px currentColor}
.cx-fx .cx-command__trust>div,.cx-fx .cx-command__scoreboard>div,.cx-fx .cx-category-nav__item,.cx-fx .cx-golden__grid>div,.cx-fx .cx-winner-card{transition:transform .3s cubic-bezier(.2,.7,.2,1),box-shadow .3s,border-color .3s,background .3s}
.cx-fx .cx-command__trust>div:hover,.cx-fx .cx-command__scoreboard>div:hover,.cx-fx .cx-category-nav__item:hover,.cx-fx .cx-golden__grid>div:hover,.cx-fx .cx-winner-card:hover{transform:translateY(-5px);border-color:rgba(31,213,255,.5);box-shadow:0 18px 40px rgba(0,0,0,.5),0 0 28px rgba(31,213,255,.18)}
.cx-fx .cx-command__draw-label i{animation:cx-pulse 1.2s ease-in-out infinite}

/* ---------- live section ---------- */
.cx-fx .cx-live__glow{animation:cx-pulse 8s ease-in-out infinite}
.cx-fx .cx-live__glow--cyan{animation-delay:-4s}
.cx-fx .cx-live__bolt{animation:cx-flicker 7s linear infinite;opacity:.03}
.cx-fx .cx-live__head h2,.cx-fx .cx-ending__head h2,.cx-fx .cx-ending--v3 h2,.cx-fx .cx-winners__head h2,.cx-fx .cx-picker__copy h2,.cx-fx .cx-final-cta h2{background:linear-gradient(100deg,#fff 0%,#fff 40%,var(--cx-pink-hi) 52%,var(--cx-cyan) 62%,#fff 74%);background-size:220% 100%;-webkit-background-clip:text;background-clip:text;color:transparent;animation:cx-shimmer 7s linear infinite;filter:drop-shadow(0 0 18px rgba(255,45,180,.3))}
.cx-fx .cx-live-filters button{transition:transform .2s,box-shadow .2s,background .2s,border-color .2s}
.cx-fx .cx-live-filters button:hover{transform:translateY(-2px)}
.cx-fx .cx-live-filters button.is-active{box-shadow:0 0 22px rgba(255,45,180,.55),0 0 0 1px rgba(255,255,255,.25) inset}

/* RaffMaster owns competition-card hover/tilt/border effects in 4.3. */

/* ---------- buttons ---------- */
.cx-fx-btn{position:relative;overflow:hidden}
.cx-fx-shine{position:absolute;inset:0;pointer-events:none;overflow:hidden;border-radius:inherit}
.cx-fx-shine::after{content:"";position:absolute;top:0;bottom:0;width:45%;background:linear-gradient(100deg,transparent,rgba(255,255,255,.55),transparent);translate:-130% 0;animation:cx-sweep 3.8s ease-in-out infinite}
.cx-fx-btn:hover .cx-fx-shine::after{animation-duration:1.2s}
.cx-fx .cx-arena-slide__cta,.cx-fx .cx-button,.cx-fx .cx-picker__actions button{box-shadow:0 0 26px rgba(255,45,180,.45),0 8px 24px rgba(0,0,0,.4);transition:transform .2s,box-shadow .25s,filter .2s}
.cx-fx .cx-arena-slide__cta:hover,.cx-fx .cx-button:hover,.cx-fx .cx-picker__actions button:hover{transform:translateY(-2px) scale(1.02);filter:brightness(1.12);box-shadow:0 0 40px rgba(255,45,180,.7),0 0 70px rgba(31,213,255,.25),0 12px 30px rgba(0,0,0,.5)}

/* ---------- picker + final cta ---------- */
.cx-fx .cx-picker__panel,.cx-fx .cx-final-cta__panel{position:relative}
.cx-fx .cx-picker__panel::before,.cx-fx .cx-final-cta__panel::before{content:"";position:absolute;inset:0;z-index:0;border-radius:inherit;padding:1.5px;pointer-events:none;background:conic-gradient(from var(--cx-a),transparent 0 50%,var(--cx-pink) 70%,#fff 78%,var(--cx-cyan) 90%,transparent);-webkit-mask:linear-gradient(#000 0 0) content-box,linear-gradient(#000 0 0);-webkit-mask-composite:xor;mask-composite:exclude;animation:cx-spin 6s linear infinite}
.cx-fx .cx-picker__focus{animation:cx-pulse 2s ease-in-out infinite;box-shadow:0 0 40px rgba(255,45,180,.5)}
.cx-fx .cx-picker.has-result .cx-picker__result,.cx-fx .cx-picker__result{text-shadow:0 0 16px rgba(31,213,255,.5)}
.cx-fx .cx-final-cta__mark{animation:cx-float 5s ease-in-out infinite;filter:drop-shadow(0 0 24px rgba(255,45,180,.7))}

@media (hover:none),(pointer:coarse){.cx-fx-cursor,.cx-fx-glare,.cx-fx-spot{display:none}}
@media (max-width:700px){.cx-fx-noise{opacity:.04}.cx-fx .cx-arena::before{display:none}.cx-fx .cx-arena-slide.is-active .cx-arena-slide__art{animation:none}}
@media (prefers-reduced-motion:reduce){
  .cx-fx *,.cx-fx *::before,.cx-fx *::after{animation:none!important}
  .cx-fx .cx-rv{opacity:1;translate:none;transition:none}
  .cx-fx-cursor,.cx-fx-canvas,.cx-fx-spot{display:none}
}

/* Chase 4.7: the picker is a console, not a hard neon box. */
.cx-fx .cx-picker--v4 .cx-picker__panel::before{display:none!important}
.cx-fx .cx-picker--v4 .cx-picker__focus{animation:none;box-shadow:0 0 36px rgba(31,213,255,.13)}
.cx-fx .cx-picker--v4.is-spinning .cx-picker__focus{animation:cx-pulse 1s ease-in-out infinite;box-shadow:0 0 46px rgba(255,45,180,.18),0 0 62px rgba(31,213,255,.10)}
.cx-fx .cx-picker--v4 .cx-picker__result{text-shadow:none}
.cx-fx .cx-picker--v4.has-result .cx-picker__result>strong{text-shadow:0 0 16px rgba(31,213,255,.22)}
