
:root{font-family:Inter,Arial,sans-serif;color:#fff;color-scheme:dark}
*{box-sizing:border-box}html,body{margin:0;width:100%;height:100%;overflow:hidden;background:transparent!important}body{background:transparent!important}
.scene{position:relative;width:100%;height:100%;min-height:100vh;overflow:hidden;background:transparent;isolation:isolate}
.scene-minimal{padding:70px 80px 56px}
.scene-copy{position:absolute;left:80px;right:80px;bottom:56px;display:flex;align-items:flex-end;justify-content:space-between;gap:42px}
.scene-main{min-width:0;max-width:70%}.scene-main.full{max-width:100%}
.scene-kicker{display:inline-block;color:#8fd5ff;letter-spacing:.33em;font-weight:900;font-size:clamp(10px,.9vw,16px);margin-bottom:12px;text-transform:uppercase;text-shadow:0 0 16px rgba(31,143,255,.28)}
.scene-title{margin:0;color:#fff;font-size:clamp(54px,6.1vw,124px);line-height:.92;letter-spacing:-.07em;font-weight:900;text-transform:uppercase;text-shadow:0 0 24px rgba(24,114,255,.18),0 8px 28px rgba(0,0,0,.25)}
.scene-subtitle{margin:18px 0 0;color:#dff2ff;font-size:clamp(15px,1.18vw,24px);letter-spacing:.16em;font-weight:800;text-transform:uppercase;text-shadow:0 0 14px rgba(35,138,255,.15)}
.scene-logo-wrap{position:absolute;top:60px;right:78px;display:flex;align-items:center;justify-content:center;z-index:3;animation:logoFloat 4.8s ease-in-out infinite}
.scene-logo{display:block;max-width:140px;max-height:140px;width:auto;height:auto;filter:drop-shadow(0 0 20px rgba(71,182,255,.35)) drop-shadow(0 8px 22px rgba(0,0,0,.22))}
.timer-panel{flex:none;min-width:280px;text-align:right}
.timer-tag{color:#86cfff;font-size:clamp(10px,.82vw,14px);font-weight:900;letter-spacing:.22em;text-transform:uppercase;text-shadow:0 0 18px rgba(40,147,255,.22)}
.timer-value{font-size:clamp(58px,4.6vw,92px);font-weight:900;line-height:1;letter-spacing:-.06em;font-variant-numeric:tabular-nums;text-shadow:0 0 24px rgba(47,163,255,.34),0 0 42px rgba(38,104,255,.18)}
.timer-progress{height:5px;margin-top:10px;border-radius:99px;background:rgba(255,255,255,.16);overflow:hidden;box-shadow:0 0 18px rgba(69,176,255,.15)}
.timer-progress div{width:100%;height:100%;background:linear-gradient(90deg,#3a8cff,#83edff);transition:width .35s linear;border-radius:99px;box-shadow:0 0 15px rgba(130,234,255,.6)}
.timer-status{margin-top:12px;color:#b7ddff;font-size:clamp(10px,.72vw,13px);font-weight:800;letter-spacing:.16em;text-transform:uppercase;text-shadow:0 0 16px rgba(37,144,255,.15)}
.ending-copy{left:80px;right:80px;bottom:74px;display:block}.scene.ending .scene-title{font-size:clamp(50px,5.8vw,110px)}
.animated-title{animation:titleGlow 3.2s ease-in-out infinite, titleShift 6s ease-in-out infinite}
.animated-subtitle{animation:subtitlePulse 2.8s ease-in-out infinite}
.animated-timer{animation:timerPulse 2.1s ease-in-out infinite}
@keyframes titleGlow{0%,100%{opacity:1;text-shadow:0 0 18px rgba(24,114,255,.15),0 8px 28px rgba(0,0,0,.25)}50%{opacity:1;text-shadow:0 0 34px rgba(104,204,255,.45),0 0 64px rgba(46,123,255,.22),0 8px 28px rgba(0,0,0,.15)}}
@keyframes titleShift{0%,100%{transform:translateY(0)}50%{transform:translateY(-4px)}}
@keyframes subtitlePulse{0%,100%{opacity:.92;transform:translateY(0)}50%{opacity:1;transform:translateY(-2px)}}
@keyframes timerPulse{0%,100%{transform:scale(1)}50%{transform:scale(1.03)}}
@keyframes logoFloat{0%,100%{transform:translateY(0)}50%{transform:translateY(-6px)}}
.debug{position:absolute;left:10px;top:10px;z-index:30;display:none;background:#002448;border:1px solid #3cc5ff;border-radius:5px;padding:8px 12px;color:#fff;font-family:monospace;font-size:15px}.debug.visible{display:block}
@media(max-width:1150px){.scene-minimal{padding:38px 34px 34px}.scene-copy,.ending-copy{left:34px;right:34px;bottom:34px;display:block}.scene-main{max-width:100%}.timer-panel{text-align:left;margin-top:22px;min-width:0}.scene-logo-wrap{top:34px;right:34px}.scene-logo{max-width:90px;max-height:90px}.scene-title{font-size:clamp(38px,8vw,72px)}}
@media(prefers-reduced-motion:reduce){.animated-title,.animated-subtitle,.animated-timer,.scene-logo-wrap{animation:none}.timer-progress div{transition:none}}

/* Sponsor ufficiali: testo e soli loghi, senza card o sfondi. */
.sponsor-zone{position:absolute;z-index:4;top:60px;left:50%;transform:translateX(-50%);width:min(900px,65vw);display:flex;align-items:center;flex-direction:column;gap:22px;text-align:center;pointer-events:none;}
.sponsor-zone[hidden],.scene-logo-wrap[hidden],.timer-panel[hidden]{display:none!important}
.sponsor-heading{color:#e2f5ff;font-size:19px;letter-spacing:.31em;font-weight:900;text-transform:uppercase;text-shadow:0 0 24px rgba(99,198,255,.45);animation:sponsorHeadingBreath 4.2s ease-in-out infinite}
.sponsor-logos{width:100%;display:flex;align-items:center;justify-content:center;gap:48px;min-height:104px}
.sponsor-logo{display:block;max-width:195px;max-height:98px;width:auto;height:auto;object-fit:contain;filter:drop-shadow(0 5px 18px rgba(0,0,0,.28)) drop-shadow(0 0 10px rgba(63,155,255,.1));animation:sponsorReveal .8s ease-out both,sponsorFloat 5s ease-in-out infinite}
.sponsor-logo:nth-child(2){animation-delay:.15s,.55s}.sponsor-logo:nth-child(3){animation-delay:.3s,1.1s}
@keyframes sponsorReveal{from{opacity:0;transform:translateY(14px) scale(.96)}to{opacity:1;transform:translateY(0) scale(1)}}
@keyframes sponsorFloat{0%,100%{transform:translateY(0)}50%{transform:translateY(-5px)}}
@keyframes sponsorHeadingBreath{0%,100%{opacity:.78;letter-spacing:.28em}50%{opacity:1;letter-spacing:.32em}}
@media(max-width:1150px){.sponsor-zone{top:35px;width:min(90vw,700px);gap:12px}.sponsor-heading{font-size:14px}.sponsor-logos{gap:20px;min-height:70px}.sponsor-logo{max-width:130px;max-height:70px}}
@media(prefers-reduced-motion:reduce){.sponsor-heading,.sponsor-logo{animation:none}}


/* V3.2.5: original intro video behind BOTH Starting and Ending. */
.scene:is(.starting,.ending,.showcase).with-video{background:#040a16!important}
.scene:is(.starting,.ending,.showcase) .league-video-layer{position:absolute;inset:0;z-index:-2;pointer-events:none;overflow:hidden;background:#040a16}
.scene:is(.starting,.ending,.showcase) .league-background-video,.scene:is(.starting,.ending,.showcase) .league-poster{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:center center;display:block}
.scene:is(.starting,.ending,.showcase) .league-background-video{z-index:0;opacity:1}
.scene:is(.starting,.ending,.showcase) .league-poster{z-index:-1;opacity:0}
.scene:is(.starting,.ending,.showcase) .league-video-shade{position:absolute;z-index:1;inset:0;background:linear-gradient(180deg,rgba(2,8,23,.68) 0%,rgba(1,7,22,.22) 30%,rgba(2,7,20,.16) 44%,rgba(2,6,18,.79) 82%,rgba(1,6,15,.93) 100%)}
.scene:is(.starting,.ending,.showcase).video-fallback .league-background-video{display:none}
.scene:is(.starting,.ending,.showcase).video-fallback .league-poster{z-index:0;opacity:1}
.scene:is(.starting,.ending,.showcase):not(.with-video) .league-video-layer,.scene:is(.starting,.ending,.showcase):not(.with-video) .league-frame,.scene:is(.starting,.ending,.showcase):not(.with-video) .league-header{display:none}
.scene:is(.starting,.ending,.showcase) .league-frame{position:absolute;inset:2.5%;border:1px solid rgba(109,190,255,.19);border-radius:14px;pointer-events:none;z-index:1}
.scene:is(.starting,.ending,.showcase) .league-header{position:absolute;left:5%;top:6%;z-index:2;color:#f1f8ff;letter-spacing:.25em;font-weight:800;font-size:16px;text-shadow:0 4px 24px rgba(0,0,0,.8)}
.scene:is(.starting,.ending,.showcase) .league-header span:before{content:"";display:inline-block;width:4px;height:28px;background:linear-gradient(#8ceaff,#3488ff);margin-right:15px;vertical-align:middle;border-radius:3px;box-shadow:0 0 17px #278cff}
.scene:is(.starting,.ending,.showcase).with-video .scene-copy{z-index:2}
.scene:is(.starting,.ending,.showcase).with-video .sponsor-zone{z-index:3}
.scene:is(.starting,.ending,.showcase).with-video .scene-logo-wrap{z-index:4}
.scene:is(.starting,.ending,.showcase).with-video .scene-title{text-shadow:0 0 24px rgba(24,114,255,.28),0 7px 40px rgba(0,0,0,.85)}
.scene:is(.starting,.ending,.showcase).with-video .scene-kicker,.scene:is(.starting,.ending,.showcase).with-video .scene-subtitle,.scene:is(.starting,.ending,.showcase).with-video .timer-tag,.scene:is(.starting,.ending,.showcase).with-video .timer-status{text-shadow:0 3px 18px rgba(0,0,0,.8)}
.scene:is(.starting,.ending,.showcase).with-video .sponsor-heading{text-shadow:0 3px 22px rgba(0,0,0,.82),0 0 24px rgba(99,198,255,.4)}
@media(max-width:1150px){.scene:is(.starting,.ending,.showcase) .league-header{left:35px;top:26px;font-size:11px}.scene:is(.starting,.ending,.showcase) .league-header span:before{height:20px;width:3px;margin-right:8px}.scene:is(.starting,.ending,.showcase) .league-frame{inset:1.8%}}

/* Site-only League presentation. Same video/graphics, not an OBS source. */
.scene.showcase .scene-copy{bottom:56px}.scene.showcase .scene-main{max-width:85%}
.scene.showcase .scene-title{font-size:clamp(54px,6vw,112px)}
.scene.showcase .league-video-shade{background:linear-gradient(180deg,rgba(2,8,23,.57) 0%,rgba(1,7,22,.08) 32%,rgba(2,7,20,.1) 48%,rgba(2,6,18,.58) 84%,rgba(1,6,15,.9) 100%)}
.scene.showcase .scene-logo{max-height:132px;max-width:132px}
.web-audio-unlock{position:absolute;z-index:20;left:50%;top:50%;transform:translate(-50%,-50%);text-align:center;max-width:min(420px,85vw);padding:18px 24px;background:rgba(5,15,34,.95);border:1px solid rgba(115,195,255,.6);border-radius:12px;color:#ebf7ff;font-size:14px;font-weight:800;cursor:pointer;box-shadow:0 10px 30px #0008}
.web-audio-unlock[hidden]{display:none!important}
.web-audio-feedback{position:absolute;bottom:18px;right:26px;z-index:9;color:#d6edff;letter-spacing:.1em;font-size:11px;font-weight:900;opacity:0;transition:opacity .25s}.web-audio-feedback.visible{opacity:1}
@media(max-width:1150px){.scene.showcase .scene-title{font-size:clamp(32px,7vw,72px)}.scene.showcase .scene-copy{bottom:35px}.scene.showcase .scene-main{max-width:100%}}
