/* MODO BIBLIA - Proyector (escenario fijo 1920x1080, escalado al tamaño de la ventana) */
body.screen { overflow: hidden; background: #000; cursor: none; }
body.screen.show-cursor { cursor: default; }
#confetti { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 50; pointer-events: none; }

#stage { position: absolute; left: 50%; top: 50%; width: 1920px; height: 1080px; margin: -540px 0 0 -960px; transform: scale(var(--sc, 1)); transform-origin: center; z-index: 5; overflow: hidden; }

/* ------------------------------------------------ marcador / cabecera */
.hdr { position: absolute; top: 26px; left: 48px; right: 48px; height: 176px; display: flex; align-items: center; justify-content: space-between; z-index: 6; }
.tcard {
    --c: var(--t1-a); --c2: var(--t1-b); --c-rgb: var(--t1-a-rgb);
    position: relative; width: 590px; height: 172px; border-radius: 30px; padding: 0 40px; display: flex; align-items: center; justify-content: space-between;
    background: linear-gradient(135deg, rgba(var(--c-rgb), .42), rgba(9, 13, 46, .78) 70%);
    border: 2px solid rgba(var(--c-rgb), .95); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
    box-shadow: 0 0 46px rgba(var(--c-rgb), .5), inset 0 0 50px rgba(var(--c-rgb), .22), 0 18px 40px rgba(0, 0, 0, .4);
    transition: transform .5s cubic-bezier(.2, 1.4, .4, 1), box-shadow .4s;
}
.tcard.t2 { --c: var(--t2-a); --c2: var(--t2-b); --c-rgb: var(--t2-a-rgb); flex-direction: row-reverse; }
.tcard::before { content: ''; position: absolute; inset: 0; border-radius: 30px; background: linear-gradient(115deg, transparent 35%, rgba(255, 255, 255, .16) 50%, transparent 65%); transform: translateX(-130%); animation: cardshine 6s ease-in-out infinite; pointer-events: none; }
.tcard.t2::before { animation-delay: 3s; }
@keyframes cardshine { 0%, 60% { transform: translateX(-130%); } 100% { transform: translateX(130%); } }
.tcard .nm { font-family: var(--f-display); font-size: 66px; line-height: 1.3; margin-top: -.12em; letter-spacing: .03em; background: linear-gradient(180deg, #fff, rgba(255, 255, 255, .8)); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 0 14px rgba(var(--c-rgb), .9)); }
.tcard.t2 .nmw { text-align: right; }
.tcard .cn { display: inline-flex; align-items: center; gap: 9px; margin-top: 8px; font-size: 19px; font-weight: 700; letter-spacing: .16em; color: var(--txt-2); }
.tcard .cn i { width: 13px; height: 13px; border-radius: 50%; background: #666b8c; }
.tcard.on .cn { color: #b8ffe0; }
.tcard.on .cn i { background: var(--ok); box-shadow: 0 0 12px var(--ok); }
.tcard .sc { position: relative; font-family: var(--f-display); font-size: 156px; line-height: 1; min-width: 150px; text-align: center; text-shadow: 0 0 30px rgba(var(--c-rgb), 1), 0 6px 0 rgba(0, 0, 0, .25); }
.tcard .sc b { font-weight: 400; display: inline-block; }
.tcard .sc b.bump { animation: scorebump .9s cubic-bezier(.2, 1.7, .4, 1); }
@keyframes scorebump { 0% { transform: scale(1); } 35% { transform: scale(1.55); color: var(--gold); text-shadow: 0 0 50px var(--gold); } 100% { transform: scale(1); } }
.tcard .plus { position: absolute; left: 50%; top: -6px; font-size: 96px; color: var(--ok); opacity: 0; text-shadow: 0 0 30px var(--ok); pointer-events: none; }
.tcard .plus.go { animation: plusfloat 1.6s ease-out forwards; }
.tcard .plus.neg { color: var(--bad); text-shadow: 0 0 30px var(--bad); }
@keyframes plusfloat { 0% { opacity: 0; transform: translate(-50%, 30px) scale(.4); } 20% { opacity: 1; transform: translate(-50%, -20px) scale(1.2); } 100% { opacity: 0; transform: translate(-50%, -150px) scale(1); } }
.tcard .pill { position: absolute; top: -18px; left: 50%; transform: translateX(-50%) scale(0); font-family: var(--f-display); font-size: 26px; letter-spacing: .1em; padding: 6px 22px; border-radius: 999px; background: linear-gradient(135deg, var(--c), var(--c2)); box-shadow: 0 0 24px rgba(var(--c-rgb), .9); transition: transform .4s cubic-bezier(.2, 1.8, .4, 1); white-space: nowrap; }
.tcard.turn { transform: scale(1.06); box-shadow: 0 0 90px rgba(var(--c-rgb), .95), inset 0 0 60px rgba(var(--c-rgb), .4), 0 18px 40px rgba(0, 0, 0, .4); animation: turnpulse 1.2s ease-in-out infinite; }
.tcard.turn .pill { transform: translateX(-50%) scale(1); }
@keyframes turnpulse { 50% { box-shadow: 0 0 130px rgba(var(--c-rgb), 1), inset 0 0 70px rgba(var(--c-rgb), .5), 0 18px 40px rgba(0, 0, 0, .4); } }

.hmid { text-align: center; }
.hmid .logo { font-family: var(--f-display); font-size: 74px; line-height: 1; letter-spacing: .05em; background: linear-gradient(180deg, #fff 25%, #b9c3ff); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 0 20px rgba(130, 150, 255, .55)); }
.hmid .logo em, .hero-logo em, .w-logo em, .gate-logo em, .f2 em { font-style: normal; background: linear-gradient(180deg, #ffe27a, #ff9b1f); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 0 22px rgba(255, 170, 40, .6)); }
.hmid .counter { margin-top: 12px; display: inline-block; padding: 7px 26px; border-radius: 999px; font-weight: 800; letter-spacing: .22em; font-size: 24px; color: #fff; background: rgba(255, 255, 255, .1); border: 1px solid var(--line); }
.hmid .counter b { color: var(--gold); font-family: var(--f-display); font-weight: 400; font-size: 30px; }
.hmid .counter:empty { visibility: hidden; }

/* ------------------------------------------------------------- vistas */
.view { position: absolute; left: 0; right: 0; top: 226px; bottom: 0; display: none; }
#stage[data-estado="lobby"] .v-lobby { display: flex; }
#stage[data-estado="entre"] .v-entre { display: flex; }
#stage[data-estado="pregunta"] .v-game, #stage[data-estado="abierto"] .v-game, #stage[data-estado="respondiendo"] .v-game,
#stage[data-estado="tiempo"] .v-game, #stage[data-estado="correcta"] .v-game, #stage[data-estado="sinpuntos"] .v-game, #stage[data-estado="anulada"] .v-game { display: block; }
#stage[data-estado="lobby"] .counter, #stage[data-estado="final"] .counter { visibility: hidden; }
.view.in { animation: viewin .7s cubic-bezier(.2, .9, .3, 1); }
@keyframes viewin { from { opacity: 0; transform: translateY(40px) scale(.97); } to { opacity: 1; transform: none; } }

.v-lobby { flex-direction: column; align-items: center; justify-content: center; gap: 30px; padding-bottom: 60px; }
.hero-logo { font-family: var(--f-display); font-size: 300px; line-height: .9; letter-spacing: .04em; background: linear-gradient(180deg, #fff 20%, #aab6ff); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 0 40px rgba(130, 150, 255, .6)); animation: heroFloat 5s ease-in-out infinite; }
@keyframes heroFloat { 50% { transform: translateY(-14px); } }
.hero-vs { display: flex; align-items: center; gap: 56px; font-family: var(--f-display); font-size: 120px; }
.hero-vs span { line-height: 1.4; }
.hero-vs i { font-style: normal; font-size: 70px; color: var(--gold); text-shadow: 0 0 30px rgba(255, 200, 61, .8); }
.hero-vs .n1 { background: linear-gradient(135deg, var(--t1-a), var(--t1-b)); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 0 26px rgba(var(--t1-a-rgb), .9)); }
.hero-vs .n2 { background: linear-gradient(135deg, var(--t2-a), var(--t2-b)); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 0 26px rgba(var(--t2-a-rgb), .9)); }
.hero-wait { font-size: 34px; font-weight: 800; letter-spacing: .4em; color: var(--txt-2); animation: blink 2s ease-in-out infinite; }
@keyframes blink { 50% { opacity: .35; } }

.v-entre { flex-direction: column; align-items: center; justify-content: center; gap: 20px; padding-bottom: 80px; }
.entre-n { font-family: var(--f-display); font-size: 210px; line-height: 1; letter-spacing: .03em; background: linear-gradient(180deg, #fff 20%, var(--gold)); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 0 40px rgba(255, 190, 60, .55)); animation: heroFloat 4s ease-in-out infinite; text-align: center; }
.entre-t { font-size: 54px; font-weight: 800; letter-spacing: .3em; color: var(--txt-2); animation: blink 1.6s ease-in-out infinite; }

/* ---------------------------------------------------------- pregunta */
.v-game { padding: 0 60px; }
.qcard {
    position: absolute; left: 60px; top: 10px; width: 1210px; height: 640px; border-radius: 36px; padding: 44px 56px; display: flex; flex-direction: column; justify-content: center;
    background: linear-gradient(160deg, rgba(255, 255, 255, .13), rgba(255, 255, 255, .04)); border: 2px solid rgba(255, 255, 255, .22); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
    box-shadow: 0 30px 70px rgba(0, 0, 0, .5), inset 0 0 70px rgba(130, 150, 255, .1);
}
.qcard::before { content: '“'; position: absolute; top: -24px; left: 28px; font-family: var(--f-display); font-size: 260px; line-height: 1; color: rgba(255, 200, 61, .22); }
.qnum { position: absolute; top: -26px; left: 56px; font-family: var(--f-display); font-size: 40px; letter-spacing: .12em; padding: 6px 30px; border-radius: 999px; background: linear-gradient(135deg, var(--gold), var(--gold-2)); color: #2a1600; box-shadow: 0 0 30px rgba(255, 170, 40, .6); }
.qcard.tb .qnum { background: linear-gradient(135deg, #ff5ea8, #8a5cff); color: #fff; box-shadow: 0 0 30px rgba(190, 90, 255, .7); }
.qtext { font-weight: 800; font-size: 70px; line-height: 1.16; text-align: center; text-wrap: balance; position: relative; text-shadow: 0 4px 24px rgba(0, 0, 0, .45); }
.qcard.enter { animation: qenter .8s cubic-bezier(.2, .9, .3, 1); }
@keyframes qenter { from { opacity: 0; transform: translateX(-80px) scale(.95); } to { opacity: 1; transform: none; } }

.side { position: absolute; right: 60px; top: 10px; width: 540px; height: 640px; display: flex; align-items: center; justify-content: center; }
.timer { position: absolute; left: 0; top: 50px; display: none; align-items: center; justify-content: center; width: 540px; height: 540px; }
.timer svg { position: absolute; inset: 0; width: 100%; height: 100%; filter: drop-shadow(0 0 22px rgba(var(--tc-rgb, 255, 255, 255), .75)); }
.timer .trk { fill: rgba(5, 8, 36, .72); stroke: rgba(255, 255, 255, .14); stroke-width: 24; }
.timer .arc { fill: none; stroke: var(--tc, #fff); stroke-width: 24; stroke-linecap: round; stroke-dasharray: 1106; stroke-dashoffset: 0; transition: stroke .3s; }
.timer .num { position: relative; font-family: var(--f-display); font-size: 270px; line-height: 1; color: #fff; text-shadow: 0 0 40px var(--tc, #fff); }
.timer .num.beat { animation: beat .55s ease-out; }
@keyframes beat { 0% { transform: scale(1.28); } 100% { transform: scale(1); } }
#stage.timing .timer { display: flex; }
#stage.timing .idle { display: none; }
#stage[data-estado="tiempo"] .timer .num { color: var(--bad); text-shadow: 0 0 50px var(--bad); animation: shake .5s 2; }
#stage.danger .timer .num { color: #ff5470; text-shadow: 0 0 50px #ff1744; }
@keyframes shake { 0%, 100% { transform: translateX(0); } 25% { transform: translateX(-14px); } 75% { transform: translateX(14px); } }

.idle { text-align: center; }
.idle .ic { position: relative; width: 340px; height: 340px; margin: 0 auto 26px; }
.idle .ic i { position: absolute; inset: 0; border-radius: 50%; border: 8px solid rgba(255, 200, 61, .85); animation: idlering 2.4s ease-out infinite; }
.idle .ic i:nth-child(2) { animation-delay: .8s; } .idle .ic i:nth-child(3) { animation-delay: 1.6s; }
.idle .ic::after { content: ''; position: absolute; inset: 70px; border-radius: 50%; background: radial-gradient(circle at 50% 30%, #fff 0, var(--gold) 35%, var(--gold-2)); box-shadow: 0 0 80px rgba(255, 170, 40, .9); animation: breathe 1.2s ease-in-out infinite; }
@keyframes idlering { 0% { transform: scale(.45); opacity: 1; } 100% { transform: scale(1.1); opacity: 0; } }
@keyframes breathe { 50% { transform: scale(1.1); } }
.idle .it { font-family: var(--f-display); font-size: 62px; letter-spacing: .06em; color: var(--gold); text-shadow: 0 0 30px rgba(255, 190, 60, .8); }
#stage[data-estado="abierto"] .idle .ic i { border-color: rgba(25, 230, 140, .9); animation-duration: 1.2s; }
#stage[data-estado="abierto"] .idle .ic::after { background: radial-gradient(circle at 50% 30%, #fff 0, #2cf5a0 35%, #05a867); box-shadow: 0 0 90px rgba(25, 230, 140, .95); animation-duration: .6s; }
#stage[data-estado="abierto"] .idle .it { color: var(--ok); text-shadow: 0 0 30px rgba(25, 230, 140, .8); }
#stage[data-estado="correcta"] .idle, #stage[data-estado="sinpuntos"] .idle, #stage[data-estado="anulada"] .idle { display: none; }

.status { position: absolute; left: 60px; right: 60px; top: 676px; height: 120px; display: flex; align-items: center; justify-content: center; text-align: center; font-family: var(--f-display); font-size: 74px; letter-spacing: .06em; text-shadow: 0 0 30px currentColor; }
.status.pulse { animation: statuspulse 1s ease-in-out infinite; }
@keyframes statuspulse { 50% { transform: scale(1.04); opacity: .85; } }

/* --------------------------------------------------------- overlays */
.ov { position: absolute; inset: 0; z-index: 20; display: none; align-items: center; justify-content: center; text-align: center; pointer-events: none; }
.ov.show { display: flex; }
.ov-in { position: relative; z-index: 2; }

.ov-first { --c: #fff; --c-rgb: 255, 255, 255; background: radial-gradient(ellipse at center, rgba(var(--c-rgb), .5), rgba(5, 8, 30, .93) 72%); }
.ov-first.show { animation: ovin .35s ease-out; }
.ov-first .sweep { position: absolute; inset: -20%; background: conic-gradient(from 0deg, transparent 0 20deg, rgba(var(--c-rgb), .4) 40deg, transparent 70deg 180deg, rgba(var(--c-rgb), .4) 220deg, transparent 250deg); animation: spin 3s linear infinite; mix-blend-mode: screen; }
.ov-first .o-sub { font-family: var(--f-display); font-size: 64px; letter-spacing: .12em; color: #fff; opacity: .9; margin-bottom: 8px; animation: slideup .5s .15s both; }
.ov-first .o-big { font-family: var(--f-display); font-size: 230px; line-height: .95; letter-spacing: .02em; color: #fff; text-shadow: 0 0 60px rgba(var(--c-rgb), 1), 0 0 140px rgba(var(--c-rgb), .9), 0 10px 0 rgba(0, 0, 0, .3); animation: slam .55s cubic-bezier(.2, 1.7, .4, 1) both; padding: 0 60px; }
.ov-first .o-small { font-family: var(--f-display); font-size: 100px; letter-spacing: .08em; color: var(--gold); text-shadow: 0 0 40px rgba(255, 190, 60, .9); animation: slideup .5s .35s both; }
.ov-first.opp .o-big { font-size: 170px; }
@keyframes ovin { from { opacity: 0; } to { opacity: 1; } }
@keyframes slam { 0% { transform: scale(3.2); opacity: 0; filter: blur(14px); } 100% { transform: scale(1); opacity: 1; filter: blur(0); } }
@keyframes slideup { from { transform: translateY(50px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes spin { to { transform: rotate(360deg); } }

.ov-result { background: rgba(4, 7, 28, .72); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.ov-result.show { animation: ovin .4s ease-out; }
.ov-result .ov-in { padding: 54px 90px; border-radius: 44px; min-width: 1100px; background: linear-gradient(160deg, rgba(var(--rc-rgb, 25, 230, 140), .35), rgba(8, 12, 40, .92)); border: 3px solid rgba(var(--rc-rgb, 25, 230, 140), .95); box-shadow: 0 0 120px rgba(var(--rc-rgb, 25, 230, 140), .65), 0 30px 80px rgba(0, 0, 0, .6); animation: slam .6s cubic-bezier(.2, 1.5, .4, 1) both; }
.r-icon { font-size: 150px; line-height: 1; margin-bottom: 4px; filter: drop-shadow(0 0 30px rgba(var(--rc-rgb), 1)); animation: jump 1.2s ease-in-out infinite; }
@keyframes jump { 50% { transform: scale(1.12); } }
.r-title { font-family: var(--f-display); font-size: 170px; line-height: 1; color: #fff; text-shadow: 0 0 50px rgba(var(--rc-rgb), 1); }
.r-team { font-family: var(--f-display); font-size: 84px; letter-spacing: .06em; margin-top: 8px; color: var(--gold); text-shadow: 0 0 30px rgba(255, 190, 60, .8); }
.r-ans { margin-top: 26px; font-size: 44px; font-weight: 700; color: #dfe4ff; max-width: 1200px; line-height: 1.25; }
.r-ans b { display: block; font-size: 30px; letter-spacing: .3em; color: var(--txt-2); margin-bottom: 6px; }
.r-ans em { display: block; font-style: normal; font-size: 32px; color: var(--gold); margin-top: 10px; }
.ov-result.neutral .r-title { font-size: 130px; }

.ov-time { background: radial-gradient(ellipse at center, rgba(255, 40, 70, .35), rgba(20, 0, 8, .82) 75%); }
.ov-time.show { animation: ovin .25s ease-out, redflash 1s ease-in-out infinite; }
.ov-time .t-big { font-family: var(--f-display); font-size: 400px; line-height: 1; color: #fff; text-shadow: 0 0 70px #ff1744, 0 0 160px #ff1744; animation: slam .5s cubic-bezier(.2, 1.7, .4, 1) both, shake .5s .5s 3; }
@keyframes redflash { 50% { background-color: rgba(255, 0, 40, .12); } }

.ov-pause { background: rgba(4, 7, 28, .82); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); z-index: 30; }
.ov-pause .p-big { font-family: var(--f-display); font-size: 300px; line-height: 1; letter-spacing: .1em; color: #fff; text-shadow: 0 0 60px rgba(130, 150, 255, .9); animation: blink 1.6s infinite; }
.ov-pause .p-sub { font-size: 44px; font-weight: 700; letter-spacing: .2em; color: var(--txt-2); }

.dangerfx { position: absolute; inset: 0; z-index: 15; pointer-events: none; opacity: 0; box-shadow: inset 0 0 220px 60px rgba(255, 20, 60, .85); }
#stage.danger .dangerfx { animation: dangerpulse .8s ease-in-out infinite; }
@keyframes dangerpulse { 0%, 100% { opacity: .15; } 50% { opacity: 1; } }

/* ------------------------------------------------------------- FINAL */
#finale { position: absolute; inset: 0; z-index: 40; display: none; overflow: hidden; background: transparent; }
#finale.on { display: block; }
#finale > div { position: absolute; }
.f-dark { inset: 0; background: #000; opacity: 0; transition: opacity 3s ease-in; }
#finale.dark .f-dark { opacity: .96; }
.f-spot { inset: -30%; background: conic-gradient(from 0deg at 50% 60%, transparent 0 160deg, rgba(255, 255, 255, .16) 175deg, transparent 190deg 340deg, rgba(255, 255, 255, .1) 352deg, transparent 360deg); opacity: 0; transition: opacity 1.5s; mix-blend-mode: screen; }
#finale.spot .f-spot { opacity: 1; animation: spin 8s linear infinite; }
.f-text { left: 0; right: 0; top: 0; bottom: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; opacity: 0; transition: opacity 1.4s; font-family: var(--f-display); letter-spacing: .06em; }
.f-text.show { opacity: 1; }
.f1 { font-size: 150px; line-height: 1.15; text-shadow: 0 0 40px rgba(130, 150, 255, .7); }
.f2 .l1 { font-size: 78px; color: var(--txt-2); opacity: 0; transition: opacity 1s; }
.f2 .l2 { font-size: 270px; line-height: 1; opacity: 0; transform: scale(.8); transition: opacity 1s, transform 1s; margin: 10px 0; }
.f2 .l3 { font-size: 190px; color: var(--gold); text-shadow: 0 0 60px rgba(255, 190, 60, .9); opacity: 0; transition: opacity .6s; }
.f2.show .l1 { opacity: 1; } .f2.show .l2.on { opacity: 1; transform: none; } .f2.show .l3.on { opacity: 1; animation: blink 1s infinite; }
.f-flash { inset: 0; background: #fff; opacity: 0; pointer-events: none; }
.f-flash.go { animation: bigflash 1.4s ease-out; }
@keyframes bigflash { 0% { opacity: 1; } 100% { opacity: 0; } }

.f-win { inset: 0; display: none; align-items: center; justify-content: center; text-align: center; overflow: hidden; --wc: var(--t1-a); --wc2: var(--t1-b); --wc-rgb: var(--t1-a-rgb); background: radial-gradient(ellipse at 50% 55%, rgba(var(--wc-rgb), .95), rgba(var(--wc-rgb), .45) 45%, #05071f 95%), #05071f; }
.f-win.on { display: flex; animation: winin 1.2s cubic-bezier(.2, .9, .3, 1) both; }
@keyframes winin { from { transform: scale(1.35); opacity: 0; filter: brightness(3); } to { transform: none; opacity: 1; filter: none; } }
.f-win .rays { position: absolute; left: 50%; top: 50%; width: 3400px; height: 3400px; margin: -1700px 0 0 -1700px; background: repeating-conic-gradient(from 0deg, rgba(255, 255, 255, .22) 0 6deg, transparent 6deg 18deg); -webkit-mask-image: radial-gradient(circle, #000 5%, transparent 55%); mask-image: radial-gradient(circle, #000 5%, transparent 55%); animation: spin 40s linear infinite; }
.f-win .rays.r2 { animation-direction: reverse; animation-duration: 60s; opacity: .6; transform: scale(.8); }
.f-win .glowball { position: absolute; left: 50%; top: 52%; width: 1300px; height: 1300px; margin: -650px 0 0 -650px; border-radius: 50%; background: radial-gradient(circle, rgba(255, 255, 255, .55), rgba(var(--wc-rgb), .0) 65%); animation: breathe 3s ease-in-out infinite; }
.w-in { position: relative; z-index: 3; display: flex; flex-direction: column; align-items: center; }
.w-trophy { width: 250px; height: 275px; animation: trophydrop 1.4s cubic-bezier(.25, 1.6, .4, 1) .3s both, trophyfloat 3.5s ease-in-out 1.8s infinite; filter: drop-shadow(0 0 50px rgba(255, 200, 61, .95)) drop-shadow(0 20px 20px rgba(0, 0, 0, .5)); }
.w-trophy svg { width: 100%; height: 100%; }
@keyframes trophydrop { from { transform: translateY(-900px) scale(.4) rotate(-20deg); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes trophyfloat { 50% { transform: translateY(-16px) rotate(2deg); } }
.w-name { font-family: var(--f-display); font-size: 330px; line-height: 1.12; letter-spacing: .02em; margin-top: 0; color: #fff; text-shadow: 0 0 60px rgba(var(--wc-rgb), 1), 0 0 160px rgba(var(--wc-rgb), 1), 0 14px 0 rgba(0, 0, 0, .35); animation: slam .8s cubic-bezier(.2, 1.7, .4, 1) .9s both; max-width: 1840px; white-space: nowrap; }
.w-sub { font-family: var(--f-display); font-size: 58px; letter-spacing: .3em; color: #fff; margin-top: 10px; animation: slideup .7s 1.5s both; padding-left: .3em; }
.w-logo { font-family: var(--f-display); font-size: 112px; line-height: 1; letter-spacing: .05em; animation: slideup .7s 1.7s both; }
.w-score { margin-top: 6px; font-family: var(--f-display); font-size: 130px; line-height: 1; color: var(--gold); text-shadow: 0 0 50px rgba(255, 190, 60, .9); animation: slam .7s 2.1s cubic-bezier(.2, 1.7, .4, 1) both; }
.f-win .w-trophy, .f-win .w-name, .f-win .w-sub, .f-win .w-logo, .f-win .w-score { animation-play-state: running; }

.f-tie { background: #05071f; }
.f-tie .tie-l, .f-tie .tie-r { position: absolute; top: -10%; bottom: -10%; width: 70%; }
.f-tie .tie-l { left: -10%; background: linear-gradient(120deg, rgba(var(--t1-a-rgb), .95), rgba(var(--t1-b-rgb), .35) 70%, transparent); transform: skewX(-12deg); animation: tieL 1.2s cubic-bezier(.2, .9, .3, 1) both; }
.f-tie .tie-r { right: -10%; background: linear-gradient(240deg, rgba(var(--t2-a-rgb), .95), rgba(var(--t2-b-rgb), .35) 70%, transparent); transform: skewX(-12deg); animation: tieR 1.2s cubic-bezier(.2, .9, .3, 1) both; }
@keyframes tieL { from { transform: translateX(-100%) skewX(-12deg); } to { transform: skewX(-12deg); } }
@keyframes tieR { from { transform: translateX(100%) skewX(-12deg); } to { transform: skewX(-12deg); } }
.tie-name { font-family: var(--f-display); font-size: 340px; line-height: 1.1; color: #fff; text-shadow: 0 0 60px #fff, 0 0 150px rgba(255, 255, 255, .6), 0 14px 0 rgba(0, 0, 0, .35); animation: slam .8s cubic-bezier(.2, 1.7, .4, 1) .5s both; }
.tie-teams { display: flex; align-items: center; gap: 60px; font-family: var(--f-display); font-size: 96px; line-height: 1.3; margin-top: 0; animation: slideup .7s 1.2s both; }
.tie-teams b { font-weight: 400; color: var(--gold); font-size: 150px; text-shadow: 0 0 50px rgba(255, 190, 60, .9); }
.tie-sub { font-size: 40px; font-weight: 800; letter-spacing: .3em; color: var(--gold); margin-top: 14px; animation: slideup .7s 2s both, blink 1.4s 2.7s infinite; }
.f-tie .w-sub { color: #fff; }

/* ---------------------------------------------------- compuerta / HUD */
#gate { position: fixed; inset: 0; z-index: 100; display: flex; align-items: center; justify-content: center; background: rgba(4, 6, 24, .88); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); text-align: center; }
#gate.hide { display: none; }
.gate-in { display: flex; flex-direction: column; align-items: center; gap: 26px; }
.gate-logo { font-family: var(--f-display); font-size: 120px; line-height: 1; background: linear-gradient(180deg, #fff 25%, #b9c3ff); -webkit-background-clip: text; background-clip: text; color: transparent; }
#gateBtn { cursor: pointer; border: 0; border-radius: 999px; padding: 22px 54px; font-family: var(--f-display); font-size: 28px; letter-spacing: .1em; color: #2a1600; background: linear-gradient(135deg, #ffe27a, #ff9b1f); box-shadow: 0 0 50px rgba(255, 170, 40, .6); animation: breathe 1.6s infinite; }
.gate-in small { color: var(--txt-2); letter-spacing: .1em; }
#hud { position: fixed; left: 12px; bottom: 8px; z-index: 90; display: flex; gap: 14px; font-size: 12px; font-weight: 800; letter-spacing: .12em; opacity: .55; }
#hud .ok { color: var(--ok); } #hud .bad { color: var(--warn); animation: blink .8s infinite; }
#hud:hover { opacity: 1; }
body.no-anim .hero-logo, body.no-anim .entre-n { animation: none; }

/* ---- opciones A-D en el proyector ---- */
.opts { display: none; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 26px; position: relative; }
.qcard.hasopts .opts { display: grid; }
.qcard.hasopts { justify-content: center; padding-top: 50px; }
.qcard.hasopts .qtext { font-size: 56px; }
.opt { display: flex; align-items: center; gap: 18px; padding: 14px 22px; min-height: 112px; border-radius: 22px; background: rgba(255, 255, 255, .09); border: 2px solid rgba(255, 255, 255, .22); font-size: 42px; font-weight: 800; line-height: 1.12; transition: background .4s, opacity .4s, border-color .4s; }
.opt b { flex: none; width: 62px; height: 62px; border-radius: 16px; display: grid; place-items: center; font-family: var(--f-display); font-weight: 400; font-size: 40px; color: #2a1600; background: linear-gradient(135deg, #ffe27a, #ff9b1f); box-shadow: 0 0 20px rgba(255, 170, 40, .55); }
.opt.ok { background: linear-gradient(135deg, rgba(25, 230, 140, .5), rgba(5, 80, 50, .6)); border-color: #2cf5a0; box-shadow: 0 0 40px rgba(25, 230, 140, .7); animation: jump 1s ease-in-out infinite; }
.opt.ok b { background: linear-gradient(135deg, #7dffc8, #05a867); color: #fff; }
.opt.bad { background: rgba(255, 59, 92, .28); border-color: var(--bad); text-decoration: line-through; opacity: .85; }
.opt.bad b { background: var(--bad); color: #fff; }
.opts.done .opt:not(.ok):not(.bad) { opacity: .35; }
.r-next { margin-top: 22px; font-size: 32px; font-weight: 800; letter-spacing: .22em; color: var(--txt-2); }
.r-next:empty { display: none; }
.v-stop { display: none; flex-direction: column; align-items: center; justify-content: center; gap: 24px; padding-bottom: 90px; }
#stage[data-estado="detenido"] .v-stop { display: flex; }
.stop-t { font-family: var(--f-display); font-size: 230px; line-height: 1.1; letter-spacing: .04em; background: linear-gradient(180deg, #fff 20%, #8d98d6); -webkit-background-clip: text; background-clip: text; color: transparent; animation: blink 2.4s ease-in-out infinite; }
.stop-s { font-size: 46px; font-weight: 800; letter-spacing: .2em; color: var(--txt-2); }

.bign { display: block; font-family: var(--f-display); font-weight: 400; font-size: 150px; line-height: 1.05; color: #fff; text-shadow: 0 0 40px rgba(255, 190, 60, .9); }

.slogo { position: absolute; right: 52px; bottom: 26px; width: 330px; height: auto; z-index: 7; opacity: .9; pointer-events: none; filter: drop-shadow(0 3px 14px rgba(0, 0, 0, .6)); }
#stage[data-estado="lobby"] .slogo { right: 50%; margin-right: -230px; bottom: 54px; width: 460px; opacity: .95; }

/* ---- pausa de etapa ---- */
.v-etapa { display: none; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 6px; padding: 0 140px 70px; }
#stage[data-estado="etapa"] .v-etapa { display: flex; }
.et-n { font-size: 38px; font-weight: 800; letter-spacing: .35em; color: var(--gold); padding-left: .35em; }
.et-big { font-family: var(--f-display); font-size: 330px; line-height: 1.05; background: linear-gradient(180deg, #fff 15%, var(--gold) 60%, var(--gold-2)); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 0 50px rgba(255, 170, 40, .7)); animation: slam .8s cubic-bezier(.2, 1.6, .4, 1) both; }
.et-big.practice { font-size: 230px; background: linear-gradient(180deg, #fff 15%, #8fd0ff 70%, #3a8dff); -webkit-background-clip: text; background-clip: text; filter: drop-shadow(0 0 50px rgba(60, 140, 255, .7)); }
.et-t { font-family: var(--f-display); font-size: 92px; letter-spacing: .04em; line-height: 1.1; }
.et-d { font-size: 46px; font-weight: 700; line-height: 1.3; color: #dfe4ff; max-width: 1500px; margin-top: 10px; text-wrap: balance; }
.et-c { margin-top: 26px; font-size: 38px; font-weight: 800; letter-spacing: .2em; color: var(--txt-2); text-transform: uppercase; }
.et-c b { font-family: var(--f-display); font-weight: 400; font-size: 64px; color: #fff; letter-spacing: 0; margin-left: 12px; vertical-align: middle; }

/* ---- respuesta correcta destacada ---- */
.opt.ok { transform: scale(1.04); background: linear-gradient(135deg, #19e68c, #05914f); border-color: #b8ffe0; color: #fff; box-shadow: 0 0 60px rgba(25, 230, 140, .95), 0 0 0 4px rgba(184, 255, 224, .45); }
.opts.done .opt:not(.ok):not(.bad) { opacity: .22; }
.opt .pk { margin-left: auto; display: flex; gap: 8px; flex: none; }
.opt .pk i { font-style: normal; font-family: var(--f-body); font-size: 20px; font-weight: 800; letter-spacing: .08em; padding: 5px 12px; border-radius: 999px; color: #fff; background: linear-gradient(135deg, var(--pc), var(--pc2)); box-shadow: 0 0 16px var(--pc); white-space: nowrap; }
.r-correct { margin: 22px auto 0; display: inline-flex; align-items: center; gap: 22px; padding: 16px 40px 16px 20px; border-radius: 26px; background: linear-gradient(135deg, #19e68c, #05914f); box-shadow: 0 0 70px rgba(25, 230, 140, .9); animation: jump 1.2s ease-in-out infinite; }
.r-correct b { width: 88px; height: 88px; border-radius: 22px; display: grid; place-items: center; font-family: var(--f-display); font-weight: 400; font-size: 64px; color: #05914f; background: #fff; }
.r-correct span { font-size: 64px; font-weight: 800; line-height: 1.1; color: #fff; text-shadow: 0 3px 12px rgba(0, 0, 0, .35); }
.r-label { font-size: 28px; letter-spacing: .32em; font-weight: 800; color: #b8ffe0; margin-top: 18px; }
.r-picks { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px 30px; margin-top: 22px; }
.r-picks div { font-size: 32px; font-weight: 800; padding: 8px 22px; border-radius: 16px; background: rgba(255, 255, 255, .08); border: 2px solid var(--pc); }
.r-picks div.good { box-shadow: 0 0 24px rgba(25, 230, 140, .7); }
.r-picks div.bad { opacity: .9; }
.r-picks em { font-style: normal; color: var(--pc2); }

/* Sin marcador en el proyector: la tarjeta de cada equipo muestra solo nombre, conexión y turno */
.tcard { justify-content: center; text-align: center; }
.tcard .nmw, .tcard.t2 .nmw { text-align: center; }
.tcard .nm { font-size: 80px; }
.tcard .cn { justify-content: center; font-size: 22px; }
.tie-teams b { font-size: 110px; }

/* ---- Bienvenida con código QR ---- */
.qrs { position: absolute; inset: 0; z-index: 35; display: none; align-items: center; justify-content: center; background: radial-gradient(ellipse at 50% 40%, rgba(24, 30, 90, 1), rgba(5, 8, 32, 1) 75%), #050820; }
.qrs.show { display: flex; animation: ovin .5s ease-out; }
.qrs.leaving { animation: qrleave .8s ease-in forwards; }
@keyframes qrleave { to { opacity: 0; transform: scale(1.06); } }
.qrs-in { display: flex; align-items: center; gap: 110px; }
.qrs-left { text-align: center; }
.qrs-card { padding: 34px; border-radius: 40px; background: #fff; box-shadow: 0 0 120px rgba(120, 150, 255, .55), 0 30px 80px rgba(0, 0, 0, .6); animation: heroFloat 5s ease-in-out infinite; }
#qrBox { width: 620px; height: 620px; }
#qrBox svg { width: 100%; height: 100%; display: block; }
.qrs-url { margin-top: 28px; font-size: 30px; font-weight: 700; letter-spacing: .04em; color: var(--txt-2); max-width: 700px; word-break: break-all; }
.qrs-right { width: 840px; }
.qrs-logo { width: 380px; height: auto; display: block; margin-bottom: 18px; opacity: .95; }
.qrs-title { font-family: var(--f-display); font-size: 150px; line-height: 1; background: linear-gradient(180deg, #fff 20%, #aab6ff); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 0 30px rgba(130, 150, 255, .5)); }
.qrs-title em { font-style: normal; background: linear-gradient(180deg, #ffe27a, #ff9b1f); -webkit-background-clip: text; background-clip: text; color: transparent; }
.qrs-sub { font-family: var(--f-display); font-size: 84px; letter-spacing: .06em; color: var(--gold); text-shadow: 0 0 40px rgba(255, 190, 60, .7); margin: 8px 0 26px; }
.qrs-steps { list-style: none; margin: 0 0 34px; padding: 0; display: grid; gap: 14px; font-size: 42px; font-weight: 700; color: #e6e9ff; }
.qrs-steps li { display: flex; align-items: center; gap: 22px; }
.qrs-steps b { flex: none; width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; font-family: var(--f-display); font-weight: 400; font-size: 38px; color: #2a1600; background: linear-gradient(135deg, #ffe27a, #ff9b1f); box-shadow: 0 0 24px rgba(255, 170, 40, .6); }
.qrs-steps u { text-decoration: none; color: var(--gold); font-family: var(--f-display); letter-spacing: .06em; }
.qrs-teams { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.qt { --c-rgb: var(--t1-a-rgb); --c: var(--t1-a); --c2: var(--t1-b); padding: 20px 26px; border-radius: 26px; text-align: center; background: linear-gradient(135deg, rgba(var(--c-rgb), .32), rgba(10, 14, 48, .8)); border: 2px solid rgba(var(--c-rgb), .75); transition: box-shadow .5s, background .5s, border-color .5s; }
.qt.t2 { --c-rgb: var(--t2-a-rgb); --c: var(--t2-a); --c2: var(--t2-b); }
.qt .qn { display: block; font-family: var(--f-display); font-size: 62px; line-height: 1.25; }
.qt .qs { display: inline-flex; align-items: center; gap: 12px; font-size: 26px; font-weight: 800; letter-spacing: .14em; color: var(--txt-2); }
.qt .qs i { width: 18px; height: 18px; border-radius: 50%; background: #666b8c; animation: blink 1.2s infinite; }
.qt.on { border-color: var(--ok); box-shadow: 0 0 60px rgba(25, 230, 140, .65); background: linear-gradient(135deg, rgba(25, 230, 140, .28), rgba(10, 14, 48, .8)); }
.qt.on .qs { color: #b8ffe0; } .qt.on .qs i { background: var(--ok); box-shadow: 0 0 16px var(--ok); animation: none; }
.qrs-ready { margin-top: 24px; font-family: var(--f-display); font-size: 80px; letter-spacing: .08em; color: var(--ok); text-shadow: 0 0 40px rgba(25, 230, 140, .9); opacity: 0; transform: scale(.8); transition: opacity .4s, transform .4s; }
.qrs.ready .qrs-ready { opacity: 1; transform: none; }
