@import url("https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&display=swap");

:root {
    --white: #ffffff;
    --canvas: #f5fbfe;
    --sky-50: #effaff;
    --sky-100: #dff4fc;
    --sky-300: #8dd7ef;
    --sky-500: #36add5;
    --sky-700: #157b9e;
    --ink: #16313c;
    --muted: #6e858e;
    --line: #d9e9ef;
    --green: #37a96b;
    --green-soft: #e8f7ee;
    --red: #d95757;
    --red-soft: #fff0f0;
    --shadow: 0 18px 50px rgba(29, 99, 123, 0.1);
}

* { box-sizing: border-box; }

body {
    margin: 0;
    color: var(--ink);
    font-family: "Manrope", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: var(--canvas);
}

/* Immersive home — II Trivia Cientifica JBG */
.home-page { background: #f7fbff; }
.home-page main { overflow: hidden; }
.home-page .corner-menu__toggle { width: 42px; height: 42px; border-color: rgba(8, 42, 99, .1); border-radius: 50%; color: #082a63; background: rgba(255,255,255,.7); box-shadow: 0 10px 30px rgba(8,42,99,.08); }

.home-hero { --navy: #082a63; position: relative; min-height: 100svh; padding: 24px clamp(22px, 5.2vw, 84px) 42px; overflow: hidden; color: var(--navy); background: linear-gradient(138deg, #f7fcff 0%, #eaf8fe 50%, #eaf8f1 100%); isolation: isolate; }
.home-atmosphere { position: absolute; inset: 0; z-index: -3; pointer-events: none; }
.home-orb { position: absolute; border-radius: 50%; filter: blur(105px); transform: scale(1.14); }
.home-orb--blue { top: -24vw; right: -12vw; width: 58vw; height: 58vw; background: radial-gradient(circle at 35% 45%, rgba(24,181,225,.5), rgba(24,181,225,0) 68%); }
.home-orb--blue-lower { right: -24vw; bottom: -32vw; width: 64vw; height: 64vw; background: radial-gradient(circle, rgba(24,181,225,.4), rgba(24,181,225,0) 68%); }
.home-orb--green { bottom: -32vw; left: -24vw; width: 64vw; height: 64vw; background: radial-gradient(circle, rgba(73,184,77,.4), rgba(73,184,77,0) 68%); }
.home-grid { position: absolute; inset: 0; opacity: .21; background-image: linear-gradient(rgba(8,42,99,.07) 1px, transparent 1px), linear-gradient(90deg, rgba(8,42,99,.07) 1px, transparent 1px); background-size: 78px 78px; mask-image: linear-gradient(to right, transparent 35%, black); }
.home-topbar { position: relative; z-index: 5; display: flex; min-height: 42px; align-items: center; justify-content: flex-end; padding-right: 58px; }
.home-brand { display: flex; align-items: center; gap: 17px; color: var(--navy); text-decoration: none; }
.home-brand__logo { display: grid; width: 132px; height: 132px; flex: 0 0 132px; place-items: center; }
.home-brand__logo img { width: 132px; height: 132px; object-fit: contain; }
.home-brand > span:last-child { display: grid; }
.home-brand strong { font-size: 1.18rem; letter-spacing: .12em; }
.home-brand small { margin-top: 3px; color: #6e829c; font-size: .76rem; font-weight: 700; }
.home-edition { display: flex; align-items: center; gap: 9px; color: #5e7892; font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.home-edition span { width: 7px; height: 7px; border-radius: 50%; background: #49b84d; box-shadow: 0 0 0 5px rgba(73,184,77,.12); }

.home-hero__content { position: relative; z-index: 2; width: min(820px, 67vw); margin-top: clamp(14px, 2.2vh, 26px); }
.home-hero h1 { margin: 0; max-width: 850px; font-size: clamp(4rem, 8.7vw, 9rem); font-weight: 800; line-height: .83; letter-spacing: -.075em; }
.home-hero h1 em { color: transparent; font-style: normal; -webkit-text-stroke: clamp(1.3px, .13vw, 2.2px) var(--navy); }
.home-lead { margin: 34px 0 0 8px; color: #627991; font-size: clamp(1rem, 1.3vw, 1.25rem); line-height: 1.55; }
.home-lead strong { color: var(--navy); font-weight: 700; }
.home-actions { display: flex; align-items: center; gap: 30px; margin: 34px 0 0 8px; }
.home-cta { position: relative; display: inline-flex; width: clamp(305px, 28vw, 410px); min-height: 64px; padding: 0 52px 0 28px; align-items: center; overflow: visible; border: 1.5px solid rgba(54,173,213,.46); border-right: 0; border-radius: 999px 12px 12px 999px; color: var(--navy); text-decoration: none; background: linear-gradient(180deg, rgba(255,255,255,.82), rgba(235,248,251,.72)); box-shadow: 0 16px 38px rgba(8,42,99,.1), inset 0 1px 0 #fff; backdrop-filter: blur(14px); isolation: isolate; transition: transform .3s cubic-bezier(.2,.8,.2,1), box-shadow .3s ease; }
.home-cta::after { content: ""; position: absolute; z-index: 4; top: 8px; right: 64px; left: 26px; height: 5px; border-radius: 50%; opacity: .7; background: linear-gradient(90deg, #fff, rgba(255,255,255,.15) 72%, transparent); pointer-events: none; }
.home-cta__label { position: relative; z-index: 5; display: block; width: 100%; color: #123464; font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Manrope", sans-serif; font-size: clamp(1.14rem, 1.65vw, 1.55rem); font-weight: 680; line-height: 1; letter-spacing: -.045em; text-align: center; white-space: nowrap; font-feature-settings: "kern" 1; }
.home-cta__liquid { position: absolute; z-index: 1; right: -1px; bottom: 4px; left: 4px; height: 29%; overflow: hidden; border-radius: 0 0 6px 999px; background: linear-gradient(180deg, #79de76, #29ad68); box-shadow: 0 -2px 9px rgba(78,205,108,.17); }
.home-cta__liquid::before { content: ""; position: absolute; top: -5px; right: -5%; left: -5%; height: 9px; border-radius: 50%; background: #91e587; animation: home-liquid-wave 4.2s ease-in-out infinite alternate; }
.home-cta__liquid::after { display: none; }
.home-cta__bubbles { position: absolute; z-index: 3; inset: 7px 55px 7px 12px; overflow: hidden; border-radius: 999px 0 0 999px; pointer-events: none; }
.home-cta__bubbles i { position: absolute; bottom: 7px; width: 6px; height: 6px; border: 1px solid rgba(45,159,101,.45); border-radius: 50%; background: rgba(255,255,255,.44); animation: home-cta-bubble var(--bubble-speed, 3.8s) ease-in infinite; }
.home-cta__bubbles i:nth-child(1) { left: 13%; --bubble-speed: 2.8s; animation-delay: -1.2s; }
.home-cta__bubbles i:nth-child(2) { left: 31%; width: 5px; height: 5px; --bubble-speed: 2.2s; animation-delay: -.3s; }
.home-cta__bubbles i:nth-child(3) { left: 56%; width: 8px; height: 8px; --bubble-speed: 4.2s; animation-delay: -2.6s; }
.home-cta__bubbles i:nth-child(4), .home-cta__bubbles i:nth-child(5) { display: none; }
.home-cta__rim { position: absolute; z-index: 7; top: 50%; right: -11px; width: 22px; height: 58px; border: 2px solid rgba(54,173,213,.58); border-radius: 50%; background: rgba(247,253,254,.72); box-shadow: inset 3px 0 6px rgba(23,143,181,.12), 4px 7px 18px rgba(8,42,99,.08); transform: translateY(-50%); }
.home-cta__rim::after { content: ""; position: absolute; top: 7px; bottom: 7px; left: 5px; width: 5px; border-radius: 50%; background: linear-gradient(180deg, rgba(255,255,255,.9), rgba(67,190,139,.3)); }
.home-cta__spill { position: absolute; z-index: 8; top: -50px; right: -72px; width: 90px; height: 105px; pointer-events: none; }
.home-cta__spill::before { display: none; }
.home-cta__spill i { position: absolute; right: 54px; bottom: 24px; display: block; border: 1.5px solid rgba(39,174,105,.48); border-radius: 50%; background: radial-gradient(circle at 30% 25%, rgba(255,255,255,.9), rgba(121,222,118,.42) 48%, rgba(41,173,104,.2)); box-shadow: 0 7px 16px rgba(41,173,104,.12); animation: home-out-bubble var(--out-speed, 3.8s) ease-out infinite; }
.home-cta__spill i:nth-child(1) { width: 9px; height: 9px; --out-x: 10px; --out-y: -55px; --out-speed: 3.3s; animation-delay: -.4s; }
.home-cta__spill i:nth-child(2) { width: 16px; height: 16px; --out-x: 35px; --out-y: -68px; --out-speed: 4.4s; animation-delay: -2.6s; }
.home-cta__spill i:nth-child(3) { width: 24px; height: 24px; --out-x: 62px; --out-y: -45px; --out-speed: 5.2s; animation-delay: -1.5s; }
.home-cta:hover { transform: translateY(-3px); box-shadow: 0 22px 48px rgba(8,42,99,.14), 0 8px 22px rgba(43,190,111,.1), inset 0 1px 0 #fff; }
.home-cta:focus-visible { outline: 4px solid rgba(54,173,213,.25); outline-offset: 6px; }
.home-cta:hover .home-cta__liquid::before { animation-duration: 1.4s; }
.home-cta:hover .home-cta__bubbles i { animation-duration: calc(var(--bubble-speed, 3s) * .72); }
.home-sponsor { display: grid; width: min(900px, 76vw); gap: 14px; margin: clamp(28px, 4vh, 44px) 0 0 8px; }
.home-sponsor > span { display: flex; align-items: center; gap: 14px; color: #6e829c; font-size: .64rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
.home-sponsor > span::after { width: min(220px, 24vw); height: 1px; background: rgba(8,42,99,.12); content: ""; }
.home-sponsor__brands { display: grid; grid-template-columns: minmax(290px,.95fr) 1px minmax(360px,1.2fr); align-items: center; gap: clamp(24px, 2.8vw, 42px); }
.home-sponsor__brands .home-brand { justify-content: flex-start; }
.home-sponsor__brands > i { width: 1px; height: 112px; background: rgba(8,42,99,.14); }
.home-sponsor__jbg { display: block; width: min(410px, 35vw); height: 132px; object-fit: contain; object-position: left center; }
.home-sponsor__organizer { margin: 2px 0 0; padding-top: 13px; border-top: 1px solid rgba(8,42,99,.1); color: #6e829c; font-size: .86rem; font-weight: 700; letter-spacing: .025em; text-align: center; }
@keyframes home-liquid-wave { from { transform: translateX(-2%) rotate(-1deg) scaleY(.86); } to { transform: translateX(3%) rotate(1deg) scaleY(1.08); } }
@keyframes home-cta-bubble { 0% { opacity: 0; transform: translateY(10px) scale(.75); } 25% { opacity: .7; } 82% { opacity: .55; } 100% { opacity: 0; transform: translate(4px, -25px) scale(1.05); } }
@keyframes home-spill-drop { 0%, 24% { opacity: 0; transform: translateY(-8px) scale(.6); } 38% { opacity: .9; } 78%, 100% { opacity: 0; transform: translate(5px, 31px) scale(1); } }
@keyframes home-out-bubble { 0% { opacity: 0; transform: translate3d(0, 0, 0) scale(.55); } 18% { opacity: .88; } 72% { opacity: .68; } 100% { opacity: 0; transform: translate3d(var(--out-x), var(--out-y), 0) scale(1.08); } }

.home-lottie { position: absolute; z-index: 1; pointer-events: none; filter: drop-shadow(0 38px 55px rgba(8,42,99,.1)); }
.home-lottie--atom { top: 10%; right: -3%; width: min(48vw, 780px); height: min(76vh, 760px); transform: rotate(4deg); }
.home-round { position: absolute; z-index: 2; right: clamp(34px, 5.3vw, 86px); bottom: clamp(43px, 7vh, 72px); display: grid; grid-template-columns: auto auto; align-items: end; column-gap: 12px; }
.home-round span { align-self: center; color: #6b8298; font-size: .68rem; font-weight: 800; letter-spacing: .17em; text-transform: uppercase; writing-mode: vertical-rl; transform: rotate(180deg); }
.home-round strong { font-size: clamp(4rem, 7vw, 7rem); line-height: .72; letter-spacing: -.09em; }
.home-round__trophy { width: clamp(92px, 9vw, 142px); height: clamp(92px, 9vw, 142px); margin-bottom: -12px; filter: drop-shadow(0 14px 22px rgba(8,42,99,.18)); }
.home-round i { grid-column: 2; width: 100%; height: 1px; margin: 16px 0 8px; background: rgba(8,42,99,.22); }
.home-round small { grid-column: 2; color: #678099; font-size: .66rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }

.home-disciplines { padding: clamp(92px, 12vw, 180px) clamp(22px, 5.2vw, 84px) clamp(80px, 10vw, 140px); color: #eef7ff; background: #071f43; }
.home-disciplines__intro { display: grid; grid-template-columns: .7fr 1.1fr 1fr; align-items: end; gap: clamp(24px, 5vw, 90px); margin-bottom: 70px; }
.home-disciplines__intro > p { align-self: start; margin: 7px 0 0; color: #54c6e7; font-size: .7rem; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; }
.home-disciplines__intro h2 { margin: 0; font-size: clamp(3rem, 6vw, 6.5rem); line-height: .93; letter-spacing: -.065em; }
.home-disciplines__intro > span { max-width: 390px; color: #91a8bf; font-size: .9rem; line-height: 1.8; }
.home-subjects { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid rgba(255,255,255,.16); border-bottom: 1px solid rgba(255,255,255,.16); }
.home-subject { position: relative; min-height: 360px; padding: 26px; overflow: hidden; border-right: 1px solid rgba(255,255,255,.16); transition: background .35s ease, transform .35s ease; }
.home-subject:last-child { border-right: 0; }
.home-subject:hover { transform: translateY(-8px); background: rgba(255,255,255,.05); }
.home-subject__number { color: #6e88a1; font-size: .68rem; font-weight: 800; letter-spacing: .12em; }
.home-subject__symbol { position: absolute; top: 42%; left: 50%; color: rgba(255,255,255,.07); font-family: Georgia, serif; font-size: clamp(6rem, 10vw, 10rem); font-weight: 700; transform: translate(-50%, -50%); }
.home-subject h3 { position: absolute; bottom: 55px; margin: 0; font-size: clamp(1.15rem, 1.8vw, 1.7rem); letter-spacing: -.04em; }
.home-subject p { position: absolute; bottom: 25px; margin: 0; color: #7f98b1; font-size: .7rem; }
.home-subject::after { content: ""; position: absolute; right: 26px; bottom: 29px; width: 8px; height: 8px; border-radius: 50%; }
.home-subject--math::after { background: #4ec9eb; box-shadow: 0 0 20px #4ec9eb; }
.home-subject--physics::after { background: #ffd54f; box-shadow: 0 0 20px #ffd54f; }
.home-subject--biology::after { background: #65cd69; box-shadow: 0 0 20px #65cd69; }
.home-subject--chemistry::after { background: #ff6f91; box-shadow: 0 0 20px #ff6f91; }
.home-bottom-cta { display: flex; align-items: center; justify-content: space-between; margin-top: 65px; padding: 30px 0; color: white; text-decoration: none; }
.home-bottom-cta > span { color: #7f98b1; font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.home-bottom-cta strong { display: flex; align-items: center; gap: 22px; font-size: clamp(1.1rem, 2vw, 1.6rem); }
.home-bottom-cta i { display: grid; width: 50px; height: 50px; place-items: center; border: 1px solid rgba(255,255,255,.3); border-radius: 50%; color: #56c9e8; font-style: normal; transition: color .25s ease, background .25s ease; }
.home-bottom-cta:hover i { color: #071f43; background: #56c9e8; }

@media (max-width: 900px) {
    .home-hero { min-height: max(760px, 100svh); padding-inline: clamp(24px, 6vw, 54px); }
    .home-hero__content { width: min(78vw, 680px); margin-top: clamp(18px, 3vh, 30px); }
    .home-hero h1 { font-size: clamp(4.5rem, 11.5vw, 7.2rem); }
    .home-lottie--atom { top: 20%; right: -24%; width: 70vw; opacity: 1; }
    .home-round { right: clamp(28px, 6vw, 54px); bottom: 44px; }
    .home-disciplines__intro { grid-template-columns: 1fr 1.4fr; }
    .home-disciplines__intro > span { grid-column: 2; }
    .home-subjects { grid-template-columns: repeat(2, 1fr); }
    .home-subject { border-bottom: 1px solid rgba(255,255,255,.16); }
    .home-subject:nth-child(2) { border-right: 0; }
}
@media (max-width: 600px) {
    .home-hero { min-height: max(760px, 100svh); padding: 17px 20px 30px; }
    .home-topbar { padding-right: 50px; }
    .home-brand { gap: 11px; }
    .home-brand__logo, .home-brand__logo img { width: 86px; height: 86px; }
    .home-brand strong { font-size: 1rem; }
    .home-brand small, .home-edition { display: none; }
    .home-hero__content { width: 100%; margin-top: 24px; }
    .home-hero h1 { max-width: 100%; font-size: clamp(3.25rem, 16.8vw, 4.8rem); line-height: .88; letter-spacing: -.068em; }
    .home-lead { max-width: calc(100% - 16px); margin: 24px 0 0 2px; font-size: .92rem; line-height: 1.5; }
    .home-actions { align-items: flex-start; flex-direction: column; gap: 18px; }
    .home-cta { width: min(calc(100% - 42px), 360px); min-height: 62px; padding: 0 34px 0 18px; }
    .home-cta::after { right: 38px; left: 20px; }
    .home-cta__label { font-size: clamp(.9rem, 4.35vw, 1.08rem); letter-spacing: -.045em; }
    .home-cta__rim { right: -9px; width: 19px; height: 56px; }
    .home-cta__spill { top: -39px; right: -58px; transform: scale(.78); transform-origin: left bottom; }
    .home-sponsor { width: calc(100% - 8px); margin: 30px 0 0 2px; }
    .home-sponsor__brands { grid-template-columns: minmax(0,1fr) 1px minmax(0,1.2fr); gap: 12px; }
    .home-sponsor .home-brand { min-width: 0; gap: 8px; }
    .home-sponsor .home-brand__logo, .home-sponsor .home-brand__logo img { width: 86px; height: 86px; }
    .home-sponsor .home-brand strong { font-size: .82rem; }
    .home-sponsor .home-brand small { display: block; font-size: .58rem; }
    .home-sponsor__brands > i { height: 66px; }
    .home-sponsor__jbg { width: min(48vw, 240px); height: 86px; }
    .home-sponsor__organizer { padding-top: 10px; font-size: .72rem; text-align: left; }
    .home-lottie--atom { top: auto; right: -34%; bottom: 54px; width: 104vw; height: 39vh; opacity: .48; }
    .home-round { right: 22px; bottom: 34px; }
    .home-round strong { font-size: clamp(4rem, 20vw, 5.5rem); }
    .home-disciplines { padding: 82px 20px 70px; }
    .home-disciplines__intro { margin-bottom: 46px; }
    .home-disciplines__intro { grid-template-columns: 1fr; gap: 22px; }
    .home-disciplines__intro > span { grid-column: 1; }
    .home-disciplines__intro h2 { font-size: clamp(2.8rem, 14vw, 4rem); }
    .home-subjects { grid-template-columns: 1fr; }
    .home-subject { min-height: 205px; border-right: 0; }
    .home-subject__symbol { top: 50%; left: 78%; }
    .home-bottom-cta { align-items: flex-start; flex-direction: column; gap: 20px; margin-top: 44px; }
}
@media (max-width: 380px) {
    .home-hero { padding-inline: 16px; }
    .home-topbar { padding-right: 44px; }
    .home-brand { gap: 8px; }
    .home-brand__logo, .home-brand__logo img { width: 58px; height: 58px; }
    .home-brand strong { font-size: .88rem; }
    .home-hero h1 { font-size: clamp(3rem, 16.5vw, 3.75rem); }
    .home-cta { width: calc(100% - 34px); min-height: 60px; padding-left: 14px; }
    .home-cta__label { font-size: clamp(.84rem, 4.15vw, .96rem); }
    .home-round { right: 17px; }
}
@media (min-width: 601px) and (max-height: 720px) {
    .home-hero { min-height: 680px; padding-top: 16px; }
    .home-sponsor .home-brand__logo, .home-sponsor .home-brand__logo img { width: 108px; height: 108px; }
    .home-sponsor__jbg { width: min(370px, 35vw); height: 108px; }
    .home-sponsor__brands > i { height: 96px; }
    .home-brand strong { font-size: 1rem; }
    .home-hero__content { margin-top: 8px; }
    .home-hero h1 { font-size: clamp(4rem, 9.5vw, 6.4rem); }
    .home-lead { margin-top: 22px; }
    .home-actions { margin-top: 24px; }
    .home-cta { min-height: 58px; }
    .home-sponsor { width: min(850px, 78vw); margin-top: 22px; }
    .home-round { bottom: 24px; }
    .home-lottie--atom { top: 12%; height: 72vh; opacity: 1; }
}
@media (hover: none) {
    .home-cta:hover, .home-subject:hover { transform: none; }
}
@media (prefers-reduced-motion: reduce) {
    .home-lottie { display: none; }
    .home-cta__liquid::before, .home-cta__bubbles i, .home-cta__spill::before, .home-cta__spill i { animation: none; }
    .round-card { transition: none; }
    .round-card.is-unlock-reveal::before { animation: none; }
    .home-cta, .home-subject, .home-bottom-cta i { transition: none; }
}

button { font: inherit; }

.corner-menu {
    position: fixed;
    top: 12px;
    right: 12px;
    z-index: 1000;
}

.corner-menu__toggle {
    display: grid;
    width: 36px;
    height: 36px;
    padding: 9px;
    place-content: center;
    gap: 4px;
    border: 1px solid rgba(217, 233, 239, 0.72);
    border-radius: 11px;
    color: var(--ink);
    background: rgba(255, 255, 255, 0.7);
    box-shadow: 0 5px 16px rgba(29, 99, 123, 0.06);
    backdrop-filter: blur(10px);
    cursor: pointer;
    transition: background 160ms ease, border-color 160ms ease, opacity 160ms ease;
}

.corner-menu__toggle:hover,
.corner-menu__toggle:focus-visible,
.corner-menu.is-open .corner-menu__toggle {
    border-color: var(--sky-300);
    background: var(--white);
}

.corner-menu__toggle:focus-visible { outline: 3px solid rgba(54, 173, 213, 0.22); outline-offset: 2px; }
.corner-menu__toggle span { width: 16px; height: 1.5px; border-radius: 999px; background: currentColor; transition: transform 160ms ease, opacity 160ms ease; }
.corner-menu.is-open .corner-menu__toggle span:first-child { transform: translateY(5.5px) rotate(45deg); }
.corner-menu.is-open .corner-menu__toggle span:nth-child(2) { opacity: 0; }
.corner-menu.is-open .corner-menu__toggle span:last-child { transform: translateY(-5.5px) rotate(-45deg); }

.corner-menu__panel {
    position: absolute;
    top: 43px;
    right: 0;
    width: 210px;
    padding: 7px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 14px 36px rgba(29, 99, 123, 0.14);
    backdrop-filter: blur(14px);
}

.corner-menu__panel a,
.corner-menu__panel button {
    display: block;
    width: 100%;
    padding: 9px 11px;
    border: 0;
    border-radius: 9px;
    color: var(--ink);
    font-family: inherit;
    font-size: 0.82rem;
    font-weight: 700;
    text-align: left;
    text-decoration: none;
    background: transparent;
    cursor: pointer;
}

.corner-menu__panel a:hover,
.corner-menu__panel a:focus-visible,
.corner-menu__panel button:hover,
.corner-menu__panel button:focus-visible { color: var(--sky-700); background: var(--sky-50); outline: none; }
.corner-menu__panel .corner-menu__reset { color: var(--red); }

.reset-dialog {
    width: min(440px, calc(100% - 32px));
    padding: 32px;
    border: 1px solid var(--line);
    border-radius: 28px;
    color: var(--ink);
    text-align: center;
    background: var(--white);
    box-shadow: 0 28px 90px rgba(29, 99, 123, 0.24);
}
.reset-dialog::backdrop { background: rgba(16, 42, 52, 0.48); backdrop-filter: blur(5px); }
.reset-dialog__icon {
    display: grid;
    width: 58px;
    height: 58px;
    margin: 0 auto 18px;
    place-items: center;
    border-radius: 18px;
    color: var(--red);
    font-size: 2rem;
    font-weight: 800;
    background: var(--red-soft);
}
.reset-dialog h2 { margin: 0; font-size: 1.65rem; letter-spacing: -0.04em; }
.reset-dialog > p:not(.eyebrow) { margin: 12px auto 26px; color: var(--muted); font-size: 0.9rem; line-height: 1.6; }
.reset-dialog__actions { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.reset-dialog__actions form { margin: 0; }
.reset-dialog__cancel,
.reset-dialog__confirm {
    width: 100%;
    padding: 13px 16px;
    border: 0;
    border-radius: 14px;
    font-weight: 800;
    cursor: pointer;
}
.reset-dialog__cancel { color: var(--sky-700); background: var(--sky-100); }
.reset-dialog__confirm { color: var(--white); background: var(--red); }
.reset-dialog__cancel:hover { background: var(--sky-300); }
.reset-dialog__confirm:hover { filter: brightness(0.92); }
.draw-reset-dialog {
    width: min(440px, calc(100% - 32px));
    padding: 32px;
    border-color: var(--line);
    border-radius: 28px;
    box-shadow: 0 28px 90px rgba(29,99,123,.24);
}
.draw-reset-dialog::backdrop {
    background: rgba(16,42,52,.48);
    backdrop-filter: blur(5px);
}
.draw-reset-dialog .reset-dialog__icon {
    width: 58px;
    height: 58px;
    margin-bottom: 18px;
    border-radius: 18px;
    color: #dc575b;
    font-size: 2rem;
    background: #fff0f0;
}
.draw-reset-dialog .eyebrow {
    color: var(--sky-700);
}
.draw-reset-dialog h2 {
    font-size: 1.65rem;
    line-height: normal;
}
.draw-reset-dialog > p:not(.eyebrow) {
    max-width: none;
    margin: 12px auto 26px;
    font-size: .9rem;
    line-height: 1.6;
}
.draw-reset-dialog .reset-dialog__actions { gap: 12px; }
.draw-reset-dialog .reset-dialog__cancel,
.draw-reset-dialog .reset-dialog__confirm {
    min-height: 0;
    border-radius: 14px;
    font-size: inherit;
}
.draw-reset-dialog .reset-dialog__cancel {
    color: #147b9d;
    background: #dff4fc;
}
.draw-reset-dialog .reset-dialog__confirm {
    background: #dc575b;
    box-shadow: 0 12px 26px rgba(220,87,91,.22);
}
.draw-reset-dialog button:disabled { opacity: .58; cursor: wait; }
.draw-reset-dialog .reset-dialog__cancel:focus-visible {
    outline: 3px solid rgba(54,173,213,.22);
    outline-offset: 2px;
}

.simple-page { min-height: 100vh; padding: clamp(70px, 8vw, 110px) clamp(18px, 5vw, 72px); }
.simple-page__content { width: min(920px, 100%); margin: 0 auto; }
.simple-page h1 { margin: 0; font-size: clamp(2rem, 5vw, 4rem); letter-spacing: -0.05em; }
.simple-page__intro { max-width: 600px; margin: 12px 0 30px; color: var(--muted); }
.scoreboard-empty {
    padding: clamp(28px, 5vw, 54px);
    border: 1px solid var(--line);
    border-radius: 24px;
    color: var(--muted);
    text-align: center;
    background: var(--white);
    box-shadow: var(--shadow);
}
.scoreboard-empty strong { display: block; margin-bottom: 6px; color: var(--ink); }

.trivia-page {
    min-height: 100vh;
    background:
        radial-gradient(circle at 9% 7%, rgba(141, 215, 239, 0.2), transparent 22rem),
        linear-gradient(135deg, #f9fdff 0%, #f2fafd 100%);
}

.timer-page {
    min-height: 100vh;
    overflow: hidden;
    background:
        radial-gradient(circle at 15% 12%, rgba(141, 215, 239, 0.3), transparent 30rem),
        radial-gradient(circle at 85% 88%, rgba(55, 169, 107, 0.12), transparent 26rem),
        linear-gradient(135deg, #f9fdff 0%, #eff9fd 100%);
}
.timer-shell { display: grid; min-height: 100vh; grid-template-rows: auto 1fr auto; padding: clamp(24px, 3vw, 50px); }
.timer-header { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.timer-brand { display: flex; align-items: center; gap: 14px; }
.timer-brand__mark { display: grid; width: 66px; height: 66px; place-items: center; background: transparent; }
.timer-brand__mark img { width: 64px; height: 64px; object-fit: contain; filter: drop-shadow(0 8px 14px rgba(29,99,123,.14)); }
.timer-brand strong { font-size: clamp(0.9rem, 1.2vw, 1.2rem); }
.timer-question { display: flex; align-items: center; gap: 18px; padding: 11px 22px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); background: rgba(255, 255, 255, 0.78); box-shadow: var(--shadow); }
.timer-question__item { display: flex; align-items: baseline; gap: 10px; }
.timer-question span { font-size: 0.8rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; }
.timer-question strong { color: var(--sky-700); font-size: 1.8rem; font-variant-numeric: tabular-nums; }
.timer-question > i { width: 1px; height: 30px; background: var(--line); }
.timer-stage { display: grid; place-content: center; justify-items: center; min-height: 0; }
.timer-orbit { position: relative; width: min(58vh, 54vw, 650px); aspect-ratio: 1; filter: drop-shadow(0 28px 55px rgba(29, 99, 123, 0.13)); }
.timer-ring { width: 100%; height: 100%; transform: rotate(-90deg); }
.timer-ring circle { fill: rgba(255, 255, 255, 0.82); stroke-width: 13; }
.timer-ring__track { stroke: var(--sky-100); }
.timer-ring__progress { stroke: var(--sky-500); stroke-linecap: round; transition: stroke 220ms ease; }
.timer-ring .timer-ring__bonus-track, .timer-ring .timer-ring__bonus { fill: none; stroke-linecap: butt; }
.timer-ring__bonus-track { stroke: #b5e7c9; }
.timer-ring__bonus { stroke: #25985b; }
.timer-ring__threshold { stroke: #17693e; stroke-width: 3; }
.timer-shell.is-bonus .timer-unit { color: #17693e; }
.timer-points { margin-top: clamp(14px, 2vh, 24px); padding: 8px 20px; border: 1px solid #b5ddea; border-radius: 999px; color: var(--sky-700); background: #e9f6fb; font-size: clamp(1rem, 2.2vw, 1.7rem); font-weight: 800; }
.timer-shell.is-bonus .timer-points { color: #17693e; border-color: #99d4b2; background: #e1f5e9; }
.timer-shell.is-finished .timer-points { color: var(--red); }
.timer-display {
    position: absolute;
    inset: 24px;
    display: grid;
    place-content: center;
    justify-items: center;
    padding: 0;
    border: 0;
    border-radius: 50%;
    color: inherit;
    font: inherit;
    background: transparent;
    cursor: pointer;
    transition: background 180ms ease, box-shadow 180ms ease;
}
.timer-display:hover { background: radial-gradient(circle, rgba(82,193,239,.08), transparent 66%); }
.timer-display:focus-visible { outline: 5px solid rgba(21,123,158,.24); outline-offset: -5px; }
.timer-display:disabled { cursor: wait; }
.timer-value { font-size: clamp(9rem, 25vh, 19rem); font-weight: 800; line-height: 0.82; letter-spacing: -0.09em; font-variant-numeric: tabular-nums; }
.timer-unit { margin-top: clamp(22px, 3vh, 38px); color: var(--sky-700); font-size: clamp(0.85rem, 1.5vw, 1.3rem); font-weight: 800; letter-spacing: 0.2em; text-transform: uppercase; }
.timer-status { min-height: 1.5em; margin: clamp(12px, 2vh, 24px) 0 0; color: var(--muted); font-size: clamp(1rem, 1.7vw, 1.45rem); font-weight: 700; }
.timer-controls { display: flex; justify-content: center; gap: 12px; }
.timer-control { min-width: 150px; padding: 13px 22px; border: 1px solid var(--sky-300); border-radius: 999px; color: var(--sky-700); font-weight: 800; background: rgba(255, 255, 255, 0.82); cursor: pointer; }
.timer-control:hover { background: var(--sky-100); }
.timer-control--primary { border-color: var(--sky-700); color: var(--white); background: var(--sky-700); }
.timer-control--primary:hover { background: var(--sky-500); }
.timer-shell.is-warning .timer-ring__progress { stroke: #e7a62b; }
.timer-shell.is-warning .timer-value, .timer-shell.is-warning .timer-unit { color: #b67809; }
.timer-shell.is-critical .timer-ring__progress { stroke: var(--red); }
.timer-shell.is-critical .timer-value, .timer-shell.is-critical .timer-unit { color: var(--red); animation: timer-pulse 900ms ease-in-out infinite; }
.timer-shell.is-finished .timer-ring__progress { stroke: var(--red); }
.timer-shell.is-finished .timer-value, .timer-shell.is-finished .timer-unit, .timer-shell.is-finished .timer-status { color: var(--red); }
@keyframes timer-pulse { 50% { opacity: 0.55; transform: scale(0.97); } }
@media (max-width: 640px) {
    .timer-shell { padding: 20px 16px; }
    .timer-brand > div { display: none; }
    .timer-orbit { width: min(78vw, 55vh); }
    .timer-value { font-size: clamp(6rem, 28vw, 10rem); }
    .timer-controls { flex-wrap: wrap; }
    .timer-control { min-width: 0; flex: 1 1 42%; }
}
@media (prefers-reduced-motion: reduce) { .timer-shell.is-critical .timer-value, .timer-shell.is-critical .timer-unit { animation: none; } }

.draw-page {
    min-height: 100vh;
    background:
        radial-gradient(circle at 50% 25%, rgba(141, 215, 239, 0.18), transparent 25rem),
        #f7fbfd;
}
.draw-shell { width: min(1180px, 100%); min-height: 100vh; margin: 0 auto; padding: clamp(32px, 4vw, 58px); }
.draw-header { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; }
.draw-header h1 { margin: 0; font-size: clamp(2rem, 4vw, 3.6rem); line-height: 1; letter-spacing: -0.055em; }
.draw-live-status { display: grid; gap: 3px; min-width: 250px; padding: 0 0 3px; color: var(--sky-700); text-align: right; }
.draw-live-status span { font-size: 0.68rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; }
.draw-live-status strong { color: var(--ink); font-size: 0.9rem; }
.draw-stage { position: relative; display: grid; grid-template-columns: minmax(470px, 1fr) 280px; min-height: 560px; align-items: center; justify-items: center; gap: clamp(24px, 4vw, 64px); overflow: hidden; }
.draw-glow { position: absolute; width: 390px; height: 390px; border-radius: 50%; background: rgba(54, 173, 213, 0.1); filter: blur(50px); }
.draw-machine { position: relative; width: 470px; height: 525px; transform-origin: center; }
.draw-drum { position: absolute; z-index: 3; top: 8px; left: 50%; width: 390px; height: 390px; transform: translateX(-50%); overflow: hidden; border: 2px solid rgba(21, 123, 158, 0.2); border-radius: 50%; background: radial-gradient(circle at 29% 17%, rgba(255, 255, 255, 0.94), transparent 21%), rgba(255, 255, 255, 0.3); box-shadow: inset -16px -20px 36px rgba(21, 123, 158, 0.08), 0 24px 60px rgba(21, 123, 158, 0.1); backdrop-filter: blur(3px); }
.draw-drum::before { content: ""; position: absolute; inset: 8px; z-index: 8; pointer-events: none; border: 1px solid rgba(255, 255, 255, 0.9); border-radius: inherit; }
.draw-glass-shine { position: absolute; z-index: 7; top: 35px; left: 58px; width: 50px; height: 130px; border-radius: 50%; background: linear-gradient(90deg, rgba(255, 255, 255, 0.75), transparent); transform: rotate(31deg); filter: blur(4px); pointer-events: none; }
.draw-brand { position: absolute; z-index: 2; top: 112px; left: 50%; display: grid; place-items: center; gap: 5px; transform: translateX(-50%); color: rgba(21, 123, 158, 0.17); font-size: 0.62rem; font-weight: 800; letter-spacing: 0.24em; pointer-events: none; }
.draw-crest { display: grid; width: 46px; height: 51px; place-items: center; border: 1.5px solid currentColor; border-radius: 48% 48% 55% 55% / 38% 38% 62% 62%; font-family: Georgia, serif; font-size: 1.55rem; letter-spacing: 0; }
.draw-balls { position: absolute; inset: 0; z-index: 4; }
.draw-ball, .draw-winner { display: grid; width: 66px; height: 66px; place-items: center; overflow: hidden; border: 1px solid rgba(171, 81, 5, 0.28); border-radius: 50%; color: #9d3d00; background: radial-gradient(circle at 29% 20%, #fffbd2 0 5%, #ffd85a 13%, #ffab18 43%, #f37408 72%, #b93900 100%); box-shadow: inset -7px -9px 13px rgba(125, 35, 0, 0.24), inset 4px 5px 8px rgba(255, 250, 184, 0.48), 0 0 15px rgba(255, 147, 13, 0.34), 0 8px 14px rgba(118, 55, 0, 0.2); font-weight: 800; }
.draw-ball { position: absolute; top: 0; left: 0; transition: opacity 180ms ease; will-change: transform; }
.draw-ball::after, .draw-winner::after { content: ""; position: absolute; top: 8px; left: 12px; width: 15px; height: 8px; border-radius: 50%; background: rgba(255, 255, 255, 0.62); filter: blur(1px); transform: rotate(-28deg); pointer-events: none; }
.draw-ball-logo { display: grid; width: 43px; height: 43px; place-items: center; overflow: hidden; border: 1px solid rgba(137, 50, 0, 0.14); border-radius: 50%; background: rgba(255, 243, 188, 0.76); box-shadow: inset 0 0 8px rgba(255, 255, 255, 0.48), 0 2px 7px rgba(121, 42, 0, 0.12); backdrop-filter: blur(2px); }
.draw-ball-logo img, .draw-winner > img { position: relative; z-index: 1; width: 80%; height: 80%; object-fit: contain; }
.draw-ball-logo b { display: none; }
.draw-ball.has-missing-logo .draw-ball-logo img { display: none; }
.draw-ball.has-missing-logo .draw-ball-logo b { display: block; }
.draw-winner span { display: grid; width: 40px; height: 40px; place-items: center; border-radius: 50%; color: #9d3d00; background: rgba(255, 243, 188, 0.78); }
.draw-air { position: absolute; z-index: 2; width: 90px; height: 90px; border: 2px solid rgba(54, 173, 213, 0.35); border-left-color: transparent; border-radius: 50%; opacity: 0; }
.draw-air--left { left: 65px; bottom: 68px; }
.draw-air--right { top: 66px; right: 65px; transform: rotate(180deg); }
.draw-machine.is-mixing .draw-air { opacity: 1; animation: draw-air-spin 0.75s linear infinite; }
.draw-neck { position: absolute; z-index: 2; top: 366px; left: calc(50% - 38px); width: 76px; height: 70px; border: 1px solid rgba(21, 123, 158, 0.18); background: rgba(255, 255, 255, 0.5); }
.draw-track { position: absolute; z-index: 9; top: 408px; left: calc(50% - 6px); width: 150px; height: 78px; border-bottom: 8px solid #a9c8d2; border-radius: 0 0 70px 15px; transform: rotate(8deg); }
.draw-winner { position: absolute; right: 18px; bottom: 2px; width: 70px; height: 70px; transform: rotate(-8deg); animation: draw-winner-out 0.75s cubic-bezier(0.2, 0.8, 0.3, 1.15) both, draw-winner-glow 1.8s ease-in-out 0.75s infinite alternate; }
.draw-winner[hidden] { display: none; }
.draw-base { position: absolute; z-index: 1; bottom: 4px; left: calc(50% - 105px); display: grid; width: 210px; height: 48px; place-items: center; border-radius: 6px 6px 16px 16px; color: #658590; font-size: 0.62rem; font-weight: 800; letter-spacing: 0.14em; background: linear-gradient(180deg, #e6f0f3, #bfd2d9); box-shadow: 0 12px 24px rgba(16, 42, 52, 0.1); }
.draw-selected { z-index: 4; display: grid; width: 100%; min-height: 340px; padding: 30px 24px; place-items: center; align-content: center; gap: 14px; border-left: 1px solid var(--line); text-align: center; opacity: 0.32; transform: translateX(10px); transition: opacity 420ms ease, transform 420ms ease; }
.draw-selected.is-visible { opacity: 1; transform: translateX(0); }
.draw-selected p { margin: 0; color: var(--sky-700); font-size: 0.66rem; font-weight: 800; letter-spacing: 0.14em; }
.draw-selected__logo { display: grid; width: 178px; height: 178px; margin: 5px 0 8px; place-items: center; overflow: hidden; border-radius: 50%; background: var(--white); box-shadow: 0 20px 50px rgba(21, 123, 158, 0.13), inset 0 0 0 1px var(--line); }
.draw-selected__logo img { width: 82%; height: 82%; object-fit: contain; }
.draw-selected__logo img[hidden], .draw-selected__logo span[hidden] { display: none; }
.draw-selected__logo span { display: grid; width: 100%; height: 100%; place-items: center; color: var(--sky-700); font-size: 3.5rem; font-weight: 800; background: var(--sky-50); }
.draw-selected strong { font-size: 1.35rem; letter-spacing: -0.03em; }
.draw-selected small { color: var(--muted); font-weight: 700; }
.draw-button { display: flex; align-items: center; justify-content: center; gap: 10px; min-width: 210px; margin: -4px auto 0; padding: 13px 22px; border: 1px solid var(--sky-700); border-radius: 999px; color: var(--sky-700); font-weight: 800; background: transparent; cursor: pointer; }
.draw-button:hover { color: var(--white); background: var(--sky-700); transform: translateY(-1px); }
.draw-button:disabled { opacity: 0.55; cursor: wait; transform: none; }
@keyframes draw-air-spin { to { transform: rotate(360deg); } }
@keyframes draw-winner-out { from { opacity: 0; transform: translate(-55px, -80px) rotate(-8deg) scale(0.88); } to { opacity: 1; transform: translate(0, 0) rotate(-8deg) scale(1); } }
@keyframes draw-winner-glow { from { box-shadow: inset -7px -9px 13px rgba(125, 35, 0, 0.24), 0 0 12px rgba(255, 147, 13, 0.4); } to { box-shadow: inset -7px -9px 13px rgba(125, 35, 0, 0.2), 0 0 28px rgba(255, 147, 13, 0.78); } }
@media (max-width: 680px) {
    .draw-header { align-items: flex-start; flex-direction: column; }
    .draw-live-status { width: 100%; min-width: 0; text-align: left; }
    .draw-stage { grid-template-columns: 1fr; min-height: 480px; gap: 8px; }
    .draw-machine { transform: scale(0.82); margin-bottom: -80px; }
    .draw-selected { min-height: 270px; border-top: 1px solid var(--line); border-left: 0; transform: translateY(8px); }
    .draw-selected.is-visible { transform: translateY(0); }
    .draw-selected__logo { width: 145px; height: 145px; }
}
@media (max-width: 420px) {
    .draw-shell { padding-inline: 18px; }
    .draw-machine { transform: scale(0.72); margin-bottom: -130px; }
}
@media (prefers-reduced-motion: reduce) {
    .draw-machine *, .draw-button { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition: none !important; }
}

.trivia-shell {
    width: min(1920px, 100%);
    min-height: 100vh;
    margin: 0 auto;
    padding: clamp(18px, 2vw, 34px);
}

.round-progress-strip {
    display: grid;
    grid-template-columns: auto minmax(220px, 1fr) auto;
    align-items: center;
    gap: 22px;
    margin-bottom: 14px;
    padding: 13px 18px;
    border: 1px solid rgba(217, 233, 239, 0.9);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 8px 28px rgba(29, 99, 123, 0.06);
}
.round-progress-strip > div:first-child { display: flex; align-items: baseline; gap: 10px; white-space: nowrap; }
.round-progress-strip > div:first-child span { color: var(--sky-700); font-size: 0.75rem; font-weight: 800; text-transform: uppercase; }
.round-progress-strip > div:first-child strong { font-size: 0.88rem; }
.round-progress-strip > a { color: var(--sky-700); font-size: 0.78rem; font-weight: 800; text-decoration: none; }
.round-progress-dots { display: grid; grid-template-columns: repeat(var(--progress-count, 12), 1fr); gap: 6px; }
.round-progress-dots--tiebreaker { grid-template-columns: repeat(4, 1fr); }
.round-progress-dots span { height: 7px; border-radius: 999px; background: var(--line); }
.round-progress-dots .is-complete { background: var(--green); }
.round-progress-dots .is-current { background: var(--sky-500); box-shadow: 0 0 0 3px rgba(54, 173, 213, 0.16); }

.rounds-page { min-height: 100vh; background: radial-gradient(circle at 12% 5%, rgba(141, 215, 239, 0.22), transparent 27rem), var(--canvas); }
.rounds-shell { width: min(1160px, 100%); min-height: 100vh; margin: 0 auto; padding: 18px clamp(18px, 4vw, 60px) 48px; }
.rounds-overview { display: grid; grid-template-columns: minmax(260px, auto) 1fr; align-items: center; gap: 28px; margin-bottom: 22px; padding: 18px 26px; border: 1px solid rgba(217, 233, 239, 0.9); border-radius: 24px; background: rgba(255, 255, 255, 0.72); box-shadow: 0 12px 34px rgba(29, 99, 123, 0.07); }
.rounds-header { margin: 0; }
.rounds-header .eyebrow { margin-bottom: 3px; font-size: 0.66rem; }
.rounds-header h1 { margin: 0; font-size: clamp(2.6rem, 4vw, 3.6rem); line-height: 0.9; letter-spacing: -0.06em; }
.rounds-header > p:last-child { margin: 8px 0 0; color: var(--muted); font-size: 0.76rem; font-weight: 650; white-space: nowrap; }
.rounds-overview__actions { display: flex; min-width: 0; align-items: center; justify-content: flex-end; gap: 18px; }
.rounds-current-link, .round-card__action { padding: 12px 18px; border-radius: 999px; color: var(--white); font-size: 0.8rem; font-weight: 800; text-decoration: none; background: var(--sky-700); }
.tournament-tabs { position: relative; display: flex; width: fit-content; gap: 6px; margin: 0; padding: 6px; overflow: hidden; border: 1px solid var(--line); border-radius: 18px; background: rgba(255, 255, 255, 0.86); box-shadow: 0 8px 24px rgba(29, 99, 123, 0.07); }
.tournament-tabs__liquid { position: absolute; z-index: 0; top: 6px; left: 0; width: 0; height: calc(100% - 12px); overflow: hidden; border-radius: 13px; background: linear-gradient(135deg, #1687a8, var(--sky-700) 58%, #126f91); box-shadow: 0 7px 16px rgba(29, 99, 123, .22), inset 0 1px 0 rgba(255,255,255,.2); transform: translateX(0); transition: width .62s cubic-bezier(.22,.8,.25,1), transform .62s cubic-bezier(.22,.8,.25,1); }
.tournament-tabs__liquid::after { content: ""; position: absolute; top: -13px; left: -8%; width: 116%; height: 25px; border-radius: 45%; background: rgba(255,255,255,.2); transform: rotate(-2deg); }
.tournament-tabs__liquid i { position: absolute; bottom: -12px; display: block; border: 1px solid rgba(255,255,255,.5); border-radius: 50%; background: rgba(255,255,255,.2); opacity: 0; }
.tournament-tabs__liquid i:nth-child(1) { left: 20%; width: 10px; height: 10px; }
.tournament-tabs__liquid i:nth-child(2) { left: 51%; width: 7px; height: 7px; }
.tournament-tabs__liquid i:nth-child(3) { left: 74%; width: 12px; height: 12px; }
.tournament-tabs.is-flowing .tournament-tabs__liquid { animation: tournament-liquid-squish .62s ease both; }
.tournament-tabs.is-flowing .tournament-tabs__liquid i { animation: tournament-liquid-bubble .72s ease-out both; }
.tournament-tabs.is-flowing .tournament-tabs__liquid i:nth-child(2) { animation-delay: .08s; }
.tournament-tabs.is-flowing .tournament-tabs__liquid i:nth-child(3) { animation-delay: .15s; }
.tournament-tabs.is-initializing .tournament-tabs__liquid { transition: none; }
.tournament-tab { position: relative; z-index: 1; display: flex; min-height: 46px; align-items: center; gap: 10px; padding: 0 16px; border: 0; border-radius: 13px; color: var(--muted); font: inherit; font-size: 0.8rem; font-weight: 800; background: transparent; cursor: pointer; transition: color .3s ease; }
.tournament-tab strong { display: grid; min-width: 23px; height: 23px; padding: 0 6px; place-items: center; border-radius: 999px; color: var(--sky-700); font-size: 0.68rem; background: var(--sky-100); }
.tournament-tab:hover { color: var(--sky-700); background: var(--sky-50); }
.tournament-tab.is-active { color: var(--white); background: transparent; box-shadow: none; }
.tournament-tab.is-active strong { color: var(--sky-700); background: var(--white); }
.tournament-tab:focus-visible { outline: 3px solid rgba(54, 173, 213, 0.28); outline-offset: 2px; }
@keyframes tournament-liquid-squish {
    0%, 100% { border-radius: 13px; filter: saturate(1); }
    45% { border-radius: 20px 10px 20px 10px; filter: saturate(1.18); }
}
@keyframes tournament-liquid-bubble {
    0% { opacity: 0; transform: translateY(0) scale(.5); }
    25% { opacity: .9; }
    100% { opacity: 0; transform: translateY(-48px) scale(1.15); }
}
.tournament-phase[hidden] { display: none; }
.tournament-phase__heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin: 0 0 18px; }
.tournament-phase__heading h2 { margin: 2px 0 0; font-size: clamp(1.55rem, 3vw, 2.2rem); letter-spacing: -0.045em; }
.tournament-phase__meta { display: flex; min-width: min(460px, 48%); align-items: flex-end; flex-direction: column; gap: 9px; }
.tournament-phase__meta > p { margin: 0 0 4px; color: var(--muted); font-size: 0.78rem; font-weight: 700; }
.phase-messages { width: 100%; }
.phase-message { margin: 0; padding: 10px 14px; border: 1px solid rgba(55, 169, 107, 0.16); border-radius: 14px; color: var(--green); font-size: 0.75rem; font-weight: 800; background: rgba(232, 247, 237, 0.88); box-shadow: 0 7px 18px rgba(55, 169, 107, 0.08); }
.phase-message--error { border-color: rgba(207, 74, 74, 0.15); color: var(--red); background: rgba(255, 240, 240, 0.92); }
.rounds-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(16px, 2vw, 24px); }
.rounds-grid--final { grid-template-columns: minmax(0, 1fr); }
.final-confetti { position: fixed; z-index: 850; inset: 0; overflow: hidden; pointer-events: none; }
.final-confetti i {
    position: absolute;
    top: -18px;
    left: 0;
    width: var(--confetti-size);
    height: calc(var(--confetti-size) * 1.65);
    border-radius: 1px;
    background: var(--confetti-color);
    box-shadow: 0 1px 2px rgba(10,45,61,.12);
    transform: translateX(var(--confetti-x));
    animation: final-confetti-fall var(--confetti-duration) cubic-bezier(.18,.7,.34,1) var(--confetti-delay) forwards;
}
.final-confetti i.is-round { height: var(--confetti-size); border-radius: 50%; }
.tournament-match-card--final.is-final-glowing { animation: final-card-celebration 2.5s ease-out both; }
@keyframes final-confetti-fall {
    0% { opacity: 0; transform: translate3d(var(--confetti-x),-20px,0) rotate(0); }
    8% { opacity: 1; }
    100% { opacity: 1; transform: translate3d(calc(var(--confetti-x) + var(--confetti-drift)),calc(100vh + 60px),0) rotate(var(--confetti-rotation)); }
}
@keyframes final-card-celebration {
    0% { box-shadow: 0 18px 44px rgba(188,124,29,.16), inset 0 1px 0 rgba(255,255,255,.72); }
    18%, 42% { box-shadow: 0 24px 64px rgba(239,177,48,.38), 0 0 0 7px rgba(255,202,77,.14), inset 0 1px 0 rgba(255,255,255,.8); }
    100% { box-shadow: 0 20px 48px rgba(188,124,29,.16), inset 0 1px 0 rgba(255,255,255,.72); }
}
@media (prefers-reduced-motion: reduce) {
    .final-confetti { display: none; }
    .tournament-match-card--final.is-final-glowing { animation-duration: .01ms; }
}
.round-card {
    --round-card-border: rgba(82, 193, 239, .38);
    --round-unlock-gradient: radial-gradient(circle at 88% 12%, rgba(82, 193, 239, .42), transparent 46%), linear-gradient(135deg, #e2f2ff, #c4e5f8);
    position: relative; display: flex; min-height: 370px; overflow: hidden; flex-direction: column; padding: clamp(22px, 2.5vw, 30px);
    border: 1px solid var(--round-card-border); border-radius: 28px; background: var(--round-unlock-gradient);
    box-shadow: 0 18px 44px rgba(29, 99, 123, .13), inset 0 1px 0 rgba(255, 255, 255, .7);
    transition: border-color .65s ease, background .65s ease, box-shadow .65s ease;
}
.round-card.is-current { border-color: var(--sky-300); box-shadow: 0 22px 58px rgba(54, 173, 213, 0.18); transform: translateY(-5px); }
.round-card[data-round-card="1"] {
    --round-card-border: rgba(82, 193, 239, .45);
    --round-unlock-gradient: radial-gradient(circle at 88% 12%, rgba(82, 193, 239, .46), transparent 44%), linear-gradient(135deg, #dcefff, #b9def5);
    --round-unlock-flash-gradient: radial-gradient(circle at 88% 12%, rgba(67, 181, 234, .46), transparent 45%), linear-gradient(135deg, #dcefff, #bfe3f9);
}
.round-card[data-round-card="2"] {
    --round-card-border: rgba(84, 190, 103, .43);
    --round-unlock-gradient: radial-gradient(circle at 88% 12%, rgba(112, 210, 112, .44), transparent 44%), linear-gradient(135deg, #e0f4e6, #c3e7ca);
    --round-unlock-flash-gradient: radial-gradient(circle at 88% 12%, rgba(91, 199, 101, .42), transparent 45%), linear-gradient(135deg, #dcf3e5, #c2e9c8);
}
.round-card[data-round-card="3"] {
    --round-card-border: rgba(231, 164, 42, .43);
    --round-unlock-gradient: radial-gradient(circle at 88% 12%, rgba(249, 190, 65, .46), transparent 44%), linear-gradient(135deg, #fff0c9, #ffdbab);
    --round-unlock-flash-gradient: radial-gradient(circle at 88% 12%, rgba(245, 177, 50, .42), transparent 45%), linear-gradient(135deg, #fff0c4, #ffd9ad);
}
.round-card[data-round-card="4"] {
    --round-card-border: rgba(48, 166, 116, .42);
    --round-unlock-gradient: radial-gradient(circle at 88% 12%, rgba(70, 190, 139, .43), transparent 44%), linear-gradient(135deg, #dbf2e7, #bce2d0);
    --round-unlock-flash-gradient: radial-gradient(circle at 88% 12%, rgba(53, 174, 124, .4), transparent 45%), linear-gradient(135deg, #d9f1e5, #bfe4d2);
}
.round-card:not(.round-card--pending) { background: var(--round-unlock-gradient); }
.round-card::before {
    content: "";
    position: absolute;
    z-index: 0;
    inset: 0;
    opacity: 0;
    background: var(--round-unlock-flash-gradient, transparent);
    pointer-events: none;
}
.round-card > :not(.jury-unlock-dialog):not(.round-card__lock) { position: relative; z-index: 1; }
.round-card.is-unlock-reveal::before { animation: round-card-unlock-reveal 2s ease-in-out both; }
@keyframes round-card-unlock-reveal {
    0%, 100% { opacity: 0; }
    18%, 72% { opacity: 1; }
}
.round-card.is-arrival-highlight {
    z-index: 3;
    border-color: #e7ad24;
    background: linear-gradient(90deg, #fff7d8, #fffdf5 68%, #ffffff);
    box-shadow: 0 8px 28px rgba(203, 143, 15, 0.24), inset 0 0 0 1px rgba(255, 218, 105, 0.34);
}
.round-card > header { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.round-card h2 { margin: 0; font-size: 1.75rem; letter-spacing: -0.045em; }
.round-status { flex: 0 0 auto; padding: 7px 10px; border-radius: 999px; color: var(--muted); font-size: 0.65rem; font-weight: 800; background: var(--sky-50); }
.round-status--active { color: var(--sky-700); background: var(--sky-100); }
.round-status--completed { color: var(--green); background: var(--green-soft); }
.round-card__count { display: flex; align-items: baseline; justify-content: space-between; margin-top: 46px; }
.round-card__count strong { font-size: 2.35rem; letter-spacing: -0.055em; }
.round-card__count span { color: var(--muted); font-size: 0.75rem; font-weight: 700; }
.round-card__bar { height: 9px; margin: 12px 0 24px; overflow: hidden; border-radius: 999px; background: var(--sky-100); }
.round-card__bar span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--sky-500), var(--green)); }
.round-question-list { display: grid; grid-template-columns: repeat(6, minmax(42px, 1fr)); gap: 10px; margin: 0 0 28px; padding: 0; list-style: none; }
.round-question-list li { display: grid; min-height: 48px; place-items: center; border: 1px solid var(--line); border-radius: 12px; color: var(--muted); font-size: 0.82rem; font-weight: 800; background: var(--canvas); }
.round-question-list li a,
.round-question-list li span { display: grid; width: 100%; height: 100%; min-height: inherit; place-items: center; border-radius: inherit; color: inherit; text-decoration: none; }
.round-question-list li:has(a):hover { border-color: var(--sky-300); transform: translateY(-2px); box-shadow: 0 8px 18px rgba(54, 173, 213, 0.14); }
.round-question-list li.is-complete { border-color: transparent; color: var(--green); background: var(--green-soft); }
.round-question-list li.is-current { border-color: var(--sky-500); color: var(--white); background: var(--sky-500); box-shadow: 0 5px 14px rgba(54, 173, 213, 0.25); }
.round-card__action, .round-card__summary { margin-top: auto; align-self: flex-start; }
.round-card__summary { color: var(--muted); font-size: 0.72rem; line-height: 1.5; }
.round-card--completed .round-card__summary { color: var(--green); font-weight: 700; }
.round-card__footer { display: flex; width: 100%; margin-top: auto; align-items: center; justify-content: space-between; gap: 16px; }
.round-card__footer .round-card__action, .round-card__footer .round-card__summary { margin-top: 0; }
.tournament-match-card { min-height: 520px; }
#phase-semifinals .tournament-match-card:first-child {
    --round-card-border: rgba(82, 193, 239, .45);
    --round-unlock-gradient: radial-gradient(circle at 88% 12%, rgba(82, 193, 239, .46), transparent 44%), linear-gradient(135deg, #dcefff, #b9def5);
}
#phase-semifinals .tournament-match-card:nth-child(2) {
    --round-card-border: rgba(84, 190, 103, .43);
    --round-unlock-gradient: radial-gradient(circle at 88% 12%, rgba(112, 210, 112, .44), transparent 44%), linear-gradient(135deg, #e0f4e6, #c3e7ca);
}
.tournament-match-card--final {
    --round-card-border: rgba(231, 164, 42, .48);
    --round-unlock-gradient: radial-gradient(circle at 88% 12%, rgba(249, 190, 65, .5), transparent 44%), linear-gradient(135deg, #fff0c9, #ffd5a0);
    width: min(720px, 100%); justify-self: center;
    box-shadow: 0 20px 48px rgba(188, 124, 29, .16), inset 0 1px 0 rgba(255, 255, 255, .72);
}
.tournament-versus { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: stretch; gap: 14px; margin: 38px 0 28px; }
.tournament-versus > div { display: flex; min-height: 138px; align-items: center; justify-content: center; gap: 12px; flex-direction: column; padding: 10px; text-align: center; }
.tournament-versus > div span { display: grid; width: 31px; height: 31px; place-items: center; border-radius: 10px; color: var(--sky-700); font-size: 0.7rem; font-weight: 900; background: var(--sky-100); }
.tournament-versus > div strong { color: var(--muted); font-size: 0.78rem; }
.tournament-vs-animation { display: block; width: 76px; height: 76px; align-self: center; overflow: visible; background: transparent; }
.tournament-versus--compact { margin: 24px 0 0; }
.tournament-versus--compact > div { min-height: 138px; padding: 11px; }
.tournament-versus--compact + .round-card__count { margin-top: 28px; }
.tournament-versus--quarters { margin: 26px 0 0; }
.tournament-versus--quarters > div { min-height: 138px; padding: 10px; }
.tournament-versus--quarters + .round-card__count { margin-top: 28px; }
.tournament-versus--direct { grid-template-columns: minmax(0, 1fr) auto; align-items: center; }
.tournament-versus--direct > div { min-height: 138px; }
.tournament-direct-badge { display: flex; align-items: center; flex-direction: column; gap: 7px; padding: 13px 15px !important; border: 1px solid rgba(231,164,42,.35); border-radius: 18px; background: rgba(255,255,255,.42); }
.tournament-direct-badge strong { color: #8b671e !important; font-size: .72rem !important; }
.tournament-direct-badge small { color: #a07b32; font-size: .62rem; font-weight: 800; }
.tournament-school-logo { display: grid; width: 112px !important; height: 112px !important; overflow: hidden; padding: 0 !important; place-items: center; border: 4px solid var(--white); border-radius: 50% !important; color: var(--sky-700); background: var(--sky-100) !important; box-shadow: 0 10px 24px rgba(29, 99, 123, 0.17); }
.tournament-school-logo img { width: 100%; height: 100%; object-fit: contain; }
.tournament-school-logo b { font-size: 0.72rem; }
.tournament-school-logo--pending { border: 2px dashed var(--sky-300); box-shadow: none; }
.tournament-school-logo--pending b { color: var(--sky-700); font-size: 1rem; }
.round-card__lock { position: absolute; z-index: 5; inset: 0; display: grid; width: 100%; padding: 24px; border: 0; place-items: center; color: var(--white); background: rgba(16, 42, 52, 0.48); backdrop-filter: blur(5px); -webkit-backdrop-filter: blur(5px); cursor: pointer; }
.round-card__lock:disabled { cursor: not-allowed; }
.round-card__lock:not(:disabled):hover .round-card__lock-panel { transform: translateY(-3px); box-shadow: 0 27px 65px rgba(16, 42, 52, 0.3); }
.round-card__lock-panel { display: flex; width: min(245px, 100%); align-items: center; flex-direction: column; padding: 24px 20px; border: 1px solid rgba(255, 255, 255, 0.72); border-radius: 24px; text-align: center; color: var(--ink); background: rgba(255, 255, 255, 0.94); box-shadow: 0 22px 55px rgba(16, 42, 52, 0.22); }
.round-card__lock-icon { display: grid; width: 62px; height: 62px; margin-bottom: 15px; place-items: center; border-radius: 19px; color: var(--sky-700); background: var(--sky-100); }
.round-card__lock-icon svg { width: 31px; height: 31px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.round-card__lock-panel strong { font-size: 1.05rem; letter-spacing: -0.025em; }
.round-card__lock-panel small { margin-top: 7px; color: var(--muted); font-size: 0.7rem; font-weight: 650; line-height: 1.45; }
.scoreboard-subtitle { margin: 6px 0 0; color: var(--muted); font-weight: 600; }

.page-messages { width: 100%; margin: 0 0 20px; }
.page-message { margin: 8px 0; padding: 12px 16px; border-radius: 14px; color: var(--sky-700); font-weight: 750; background: var(--sky-100); }
.page-message--error { color: var(--red); background: #fff0f0; }
.page-message--success { color: var(--green); background: var(--green-soft); }
.jury-unlock-dialog { width: min(470px, calc(100% - 32px)); overflow: visible; padding: 34px; border: 1px solid var(--line); border-radius: 28px; text-align: center; color: var(--ink); background: var(--white); box-shadow: 0 30px 90px rgba(16, 42, 52, 0.28); }
.jury-unlock-dialog[open] { position: fixed; inset: 0; margin: auto; animation: jury-dialog-heartbeat 2.45s ease-in-out infinite; }
.jury-unlock-dialog[open] .round-card__lock-icon { animation: jury-lock-pressure 2.45s ease-in-out infinite; }
.jury-unlock-dialog .round-card__lock-icon { position: relative; z-index: 2; }
.jury-unlock-dialog .round-card__lock-icon > svg { position: relative; z-index: 2; }
.jury-lock-number-burst { position: absolute; z-index: 1; inset: 50%; overflow: visible; pointer-events: none; }
.jury-lock-number-burst i { position: absolute; top: 0; left: 0; color: var(--sky-700); font-size: 1.05rem; font-style: normal; font-weight: 900; opacity: 0; text-shadow: 0 0 8px rgba(54,173,213,0.38); }
.jury-lock-number-burst i:nth-child(3n) { color: var(--green); }
.jury-lock-number-burst i:nth-child(4n) { color: var(--ink); }
.jury-unlock-dialog[open] .jury-lock-number-burst i { animation: lock-number-burst 2.45s var(--lock-burst-delay) ease-out infinite; }
.jury-unlock-dialog__number-burst { position: fixed; z-index: 0; inset: 0; overflow: hidden; pointer-events: none; -webkit-mask-image: radial-gradient(circle at center, transparent 0 18vmin, #000 29vmin); mask-image: radial-gradient(circle at center, transparent 0 18vmin, #000 29vmin); }
.jury-unlock-dialog__number-burst span { position: absolute; top: 50%; left: 50%; color: var(--sky-700); font-size: 1.5rem; font-weight: 850; opacity: 0; text-shadow: 0 0 9px rgba(54,173,213,0.28); }
.jury-unlock-dialog[open] .jury-unlock-dialog__number-burst span { animation: dialog-number-burst 2.45s var(--burst-delay) ease-out infinite; }
.jury-unlock-dialog__number-burst span:nth-child(3n) { color: var(--green); }
.jury-unlock-dialog__number-burst span:nth-child(4n) { color: var(--ink); }
.jury-unlock-dialog::backdrop { background: rgba(16, 42, 52, 0.48); backdrop-filter: blur(5px); }
.jury-unlock-dialog .round-card__lock-icon { margin: 0 auto 18px; }
.jury-unlock-dialog h2 { margin: 0; font-size: 1.7rem; }
.jury-unlock-dialog > p:not(.eyebrow) { color: var(--muted); }
.jury-unlock-dialog form, .jury-access-card form { display: grid; gap: 14px; margin-top: 24px; text-align: left; }
.jury-unlock-dialog label, .jury-access-card label { display: grid; gap: 7px; color: var(--muted); font-size: 0.75rem; font-weight: 750; }
.jury-unlock-dialog input, .jury-access-card input { padding: 13px 15px; border: 1px solid var(--line); border-radius: 13px; font: inherit; color: var(--ink); background: var(--canvas); }
.jury-unlock-dialog .jury-authorization-code { letter-spacing: 0.18em; }
.jury-unlock-dialog form button, .jury-access-card form button, .jury-toolbar button, .credential-reveal__actions button { padding: 13px 18px; border: 0; border-radius: 999px; color: var(--white); font-weight: 800; background: var(--sky-700); cursor: pointer; }
.jury-unlock-dialog__close { position: absolute; top: 15px; right: 18px; padding: 4px; border: 0; outline: 0; color: var(--muted); font-size: 1.5rem; line-height: 1; background: transparent; box-shadow: none; appearance: none; -webkit-appearance: none; cursor: pointer; }
.jury-unlock-dialog__close:focus, .jury-unlock-dialog__close:focus-visible { border: 0; outline: 0; box-shadow: none; }

.jury-calculator { position: relative; width: 150px; height: 190px; margin: -8px auto 24px; }
.jury-calculator__body { position: relative; z-index: 2; box-sizing: border-box; width: 150px; padding: 13px; border: 1px solid rgba(27,64,79,.25); border-radius: 24px; background: linear-gradient(145deg, #294655, #183441); box-shadow: inset 0 1px 0 rgba(255,255,255,.16), inset 0 -6px 12px rgba(5,24,32,.2), 0 14px 28px rgba(16,42,52,.2); }
.jury-calculator__display { display: flex; align-items: flex-end; justify-content: flex-end; height: 42px; margin-bottom: 11px; padding: 6px 10px; overflow: hidden; border: 1px solid rgba(7,33,42,.22); border-radius: 10px; color: #17323c; background: linear-gradient(180deg, #eaf7f8, #cfe3e5); box-shadow: inset 0 2px 5px rgba(24,65,74,.12); font-variant-numeric: tabular-nums; }
.jury-calculator__display span { margin-right: auto; color: rgba(34,75,84,.5); font-size: .65rem; font-weight: 800; }
.jury-calculator__display b { font-size: 1.45rem; line-height: 1; letter-spacing: -.06em; }
.jury-calculator__keys { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.jury-calculator__keys i { display: grid; height: 25px; border: 1px solid rgba(13,46,57,.12); border-radius: 7px; place-items: center; color: #233a43; font-size: .78rem; font-style: normal; font-weight: 800; background: linear-gradient(180deg, #fff, #e8f0f1); box-shadow: 0 2px 0 rgba(4,25,33,.22); }
.jury-calculator__keys .is-operation { color: #0f6078; background: #dff3f7; }
.jury-calculator__keys .is-equals { color: #fff; background: linear-gradient(180deg, #42b57c, #24955f); }
.jury-calculator__number-burst { z-index: 1; }
.jury-calculator ~ * { position: relative; z-index: 2; }
.jury-calculator__number-burst i { width: max-content; color: #157b9e; font-family: Georgia, "Times New Roman", serif; font-size: var(--math-bug-size); text-shadow: 0 2px 8px rgba(21,123,158,.2); }
.jury-calculator__number-burst i:nth-child(3n) { color: #2b9f6b; }
.jury-calculator__number-burst i:nth-child(4n) { color: #223f4b; }
.jury-unlock-dialog[open] .jury-calculator__number-burst .is-math-peeker { animation: calculator-math-peek 5.4s var(--lock-burst-delay) cubic-bezier(.2,.72,.28,1) infinite; }
.jury-unlock-dialog[open] .jury-calculator__number-burst .is-math-crawler { animation: calculator-math-crawl 8.6s var(--lock-burst-delay) ease-in-out infinite; }
.jury-unlock-dialog[open] .jury-calculator__body { animation: calculator-arrive 560ms cubic-bezier(.2,.82,.24,1.12) both; }
.jury-unlock-dialog[open] .jury-calculator__keys i { animation: calculator-key-tap 2.8s ease-in-out infinite; }
.jury-unlock-dialog[open] .jury-calculator__keys i:nth-child(3n) { animation-delay: .18s; }
.jury-unlock-dialog[open] .jury-calculator__keys i:nth-child(4n) { animation-delay: .36s; }
.jury-unlock-dialog[open] .jury-calculator__display b { animation: calculator-display-pulse 2.8s ease-in-out infinite; }

.jury-physics { position: relative; width: 250px; height: 230px; margin: -10px auto 28px; }
.jury-physics__pendulum { position: absolute; z-index: 2; top: 5px; left: 50%; width: 210px; height: 190px; transform: translateX(-50%); }
.jury-physics__bar { position: absolute; top: 15px; left: 14px; width: 182px; height: 8px; border-radius: 999px; background: linear-gradient(180deg,#7794a1,#294a58 52%,#173641); box-shadow: 0 4px 9px rgba(16,42,52,.2); }
.jury-physics__leg { position: absolute; top: 20px; width: 5px; height: 153px; border-radius: 999px; background: linear-gradient(90deg,#9eb1b9,#365664); transform-origin: top; }
.jury-physics__leg--left { left: 17px; transform: rotate(8deg); }.jury-physics__leg--right { right: 17px; transform: rotate(-8deg); }
.jury-physics__leg::after { position: absolute; bottom: 0; left: -12px; width: 29px; height: 6px; border-radius: 999px; background: #294a58; content: ""; }
.jury-physics__ball { position: absolute; top: 22px; width: 2px; height: 105px; background: #78909a; transform-origin: 50% 0; }
.jury-physics__ball i { position: absolute; bottom: -17px; left: 50%; width: 34px; height: 34px; border: 1px solid #284752; border-radius: 50%; background: radial-gradient(circle at 32% 25%,#f5fbfc 0 8%,#a9bec6 22%,#536f7b 58%,#213f4b 100%); box-shadow: inset -5px -6px 8px rgba(10,37,47,.22),0 5px 8px rgba(16,42,52,.2); transform: translateX(-50%); }
.jury-physics__ball--one { left: 72px; }.jury-physics__ball--two { left: 89px; }.jury-physics__ball--three { left: 106px; }.jury-physics__ball--four { left: 123px; }.jury-physics__ball--five { left: 140px; }
.jury-unlock-dialog[open] .jury-physics__ball--one { animation: physics-ball-left 3.2s cubic-bezier(.36,.05,.64,.95) infinite; }
.jury-unlock-dialog[open] .jury-physics__ball--five { animation: physics-ball-right 3.2s cubic-bezier(.36,.05,.64,.95) infinite; }
.jury-physics__motion { position: absolute; top: 67px; color: #1c95c1; font-size: 1.35rem; font-weight: 900; opacity: 0; text-shadow: 0 0 10px rgba(28,149,193,.25); }
.jury-physics__motion--left { left: 24px; transform: rotate(38deg); }.jury-physics__motion--right { right: 20px; transform: rotate(-38deg); }
.jury-unlock-dialog[open] .jury-physics__motion--left { animation: physics-vector-left 3.2s ease-in-out infinite; }.jury-unlock-dialog[open] .jury-physics__motion--right { animation: physics-vector-right 3.2s ease-in-out infinite; }
.jury-physics__energy { position: absolute; z-index: 4; top: 125px; left: 66px; width: 82px; height: 4px; border-radius: 999px; background: rgba(67,195,232,.16); opacity: 0; }
.jury-physics__energy i { position: absolute; top: -4px; left: 0; width: 12px; height: 12px; border-radius: 50%; background: #7ce7ff; box-shadow: 0 0 7px #52cfee,0 0 16px rgba(82,207,238,.65); }
.jury-unlock-dialog[open] .jury-physics__energy { animation: physics-energy-line 3.2s ease-in-out infinite; }.jury-unlock-dialog[open] .jury-physics__energy i { animation: physics-energy-transfer 3.2s ease-in-out infinite; }
.jury-physics__law { position: absolute; z-index: 3; bottom: 5px; left: 50%; padding: 4px 12px; border: 1px solid rgba(33,137,176,.2); border-radius: 999px; color: #176f91; font-family: Georgia,serif; font-size: .82rem; letter-spacing: .04em; background: rgba(236,249,253,.92); box-shadow: 0 5px 14px rgba(21,123,158,.1); transform: translateX(-50%); }
.jury-physics__impact { position: absolute; top: 126px; width: 34px; height: 34px; border: 2px solid rgba(39,155,200,.55); border-radius: 50%; opacity: 0; }
.jury-physics__impact--left { left: 38px; }.jury-physics__impact--right { right: 35px; }
.jury-unlock-dialog[open] .jury-physics__impact--left { animation: physics-impact-left 3.2s ease-out infinite; }.jury-unlock-dialog[open] .jury-physics__impact--right { animation: physics-impact-right 3.2s ease-out infinite; }
.jury-physics__formulas { position: absolute; z-index: 1; inset: 0; pointer-events: none; }
.jury-physics__formulas span { position: absolute; color: rgba(21,123,158,.78); font-family: Georgia,serif; font-size: .88rem; font-weight: 700; opacity: 0; white-space: nowrap; }
.jury-physics__formulas span:nth-child(1) { top: 17%; left: -22%; }.jury-physics__formulas span:nth-child(2) { top: 53%; left: -30%; }.jury-physics__formulas span:nth-child(3) { bottom: 3%; left: -13%; }
.jury-physics__formulas span:nth-child(4) { top: 14%; right: -22%; }.jury-physics__formulas span:nth-child(5) { top: 51%; right: -38%; }.jury-physics__formulas span:nth-child(6) { right: -15%; bottom: 3%; }
.jury-unlock-dialog[open] .jury-physics__formulas span { animation: physics-formula-pulse 3.2s ease-in-out infinite; }.jury-unlock-dialog[open] .jury-physics__formulas span:nth-child(even) { animation-delay: 1.55s; }
@keyframes physics-ball-left { 0%,8% { transform: rotate(28deg); } 28%,100% { transform: rotate(0); } }
@keyframes physics-ball-right { 0%,28% { transform: rotate(0); } 43% { transform: rotate(-28deg); } 63%,100% { transform: rotate(0); } }
@keyframes physics-vector-left { 0%,8% { opacity: .9; transform: rotate(38deg) translateX(-5px); } 24%,100% { opacity: 0; transform: rotate(38deg) translateX(8px); } }
@keyframes physics-vector-right { 0%,30% { opacity: 0; transform: rotate(-38deg) translateX(-7px); } 42% { opacity: .9; transform: rotate(-38deg) translateX(5px); } 60%,100% { opacity: 0; transform: rotate(-38deg) translateX(12px); } }
@keyframes physics-energy-line { 0%,22% { opacity: 0; } 29%,46% { opacity: 1; } 54%,100% { opacity: 0; } }
@keyframes physics-energy-transfer { 0%,24% { opacity: 0; transform: translateX(0) scale(.6); } 29% { opacity: 1; } 46% { opacity: 1; transform: translateX(70px) scale(1); } 54%,100% { opacity: 0; transform: translateX(78px) scale(.45); } }
@keyframes physics-impact-left { 0%,61% { opacity: 0; transform: scale(.25); } 64% { opacity: .8; } 78%,100% { opacity: 0; transform: scale(1.9); } }
@keyframes physics-impact-right { 0%,27% { opacity: 0; transform: scale(.25); } 31% { opacity: .8; } 45%,100% { opacity: 0; transform: scale(1.9); } }
@keyframes physics-formula-pulse { 0%,20% { opacity: 0; transform: translateY(8px) scale(.82); } 34%,50% { opacity: .86; transform: translateY(0) scale(1); } 66%,100% { opacity: 0; transform: translateY(-12px) scale(.9); } }

.jury-tesla { position: absolute; z-index: 2; inset: 0; }
.jury-tesla__arcs { position: absolute; z-index: 3; top: -5px; left: -40px; width: 330px; height: 170px; overflow: visible; filter: drop-shadow(0 0 5px rgba(102,190,255,.8)); }
.jury-tesla__arc { fill: none; stroke: #91dcff; stroke-width: 2.3; stroke-linecap: round; stroke-linejoin: round; opacity: 0; stroke-dasharray: 14 7 30 9; }
.jury-tesla__arc--branch { stroke-width: 1.15; stroke-dasharray: 8 4 17 6; filter: drop-shadow(0 0 3px rgba(114,211,255,.9)); }
.jury-tesla__arc--two,.jury-tesla__arc--four,.jury-tesla__arc--six,.jury-tesla__arc--eight { stroke: #b7a2ff; }
.jury-tesla__arc--five,.jury-tesla__arc--seven { stroke: #63d7ff; stroke-width: 1.8; }.jury-tesla__arc--nine { stroke: #effcff; stroke-width: 2.8; }
.jury-unlock-dialog[open] .jury-tesla__arc { animation: tesla-arc 2.7s ease-in-out infinite; }.jury-unlock-dialog[open] .jury-tesla__arc--two { animation-delay: .43s; }.jury-unlock-dialog[open] .jury-tesla__arc--three { animation-delay: 1.08s; }.jury-unlock-dialog[open] .jury-tesla__arc--four { animation-delay: 1.62s; }
.jury-unlock-dialog[open] .jury-tesla__arc--five { animation-delay: .2s; animation-duration: 2.15s; }.jury-unlock-dialog[open] .jury-tesla__arc--six { animation-delay: .82s; animation-duration: 2.35s; }.jury-unlock-dialog[open] .jury-tesla__arc--seven { animation-delay: 1.35s; animation-duration: 2.1s; }.jury-unlock-dialog[open] .jury-tesla__arc--eight { animation-delay: 1.9s; animation-duration: 2.45s; }.jury-unlock-dialog[open] .jury-tesla__arc--nine { animation-delay: .56s; animation-duration: 1.85s; }
.jury-unlock-dialog[open] .jury-tesla__arc--bulb { animation: tesla-bulb-arc 2.7s ease-in-out infinite; }
.jury-tesla__drawing { position: absolute; z-index: 2; top: 0; left: 50%; width: 160px; height: 230px; overflow: visible; filter: drop-shadow(0 8px 8px rgba(16,42,52,.13)); transform: translateX(-50%); }
.jury-tesla__vector-shadow { fill: rgba(25,53,63,.14); }
.jury-tesla__vector-base { fill: url(#tesla-base); stroke: #1d333c; stroke-width: 2.4; stroke-linejoin: round; }
.jury-tesla__vector-base-top { fill: #53666d; stroke: #1d333c; stroke-width: 2.4; }
.jury-tesla__vector-platform { fill: url(#tesla-metal); stroke: #263e47; stroke-width: 2; }
.jury-tesla__primary ellipse { fill: none; stroke: #b95714; stroke-width: 5; }
.jury-tesla__primary ellipse:nth-child(even) { stroke: #f18a24; stroke-width: 3; }
.jury-tesla__posts { fill: #f2a72f; stroke: #764112; stroke-width: 2.4; stroke-linecap: round; }
.jury-tesla__secondary { fill: url(#tesla-winding); stroke: #263e47; stroke-width: 2.4; }
.jury-tesla__secondary-shine { fill: none; stroke: rgba(255,221,137,.55); stroke-width: 4; stroke-linecap: round; }
.jury-tesla__collar { fill: #344b54; stroke: #1d333c; stroke-width: 2.4; }
.jury-tesla__neck { fill: url(#tesla-metal); stroke: #344d57; stroke-width: 2; }
.jury-tesla__toroid-vector { fill: url(#tesla-metal); stroke: #263f49; stroke-width: 2.6; }
.jury-tesla__toroid-hole { fill: #324952; stroke: #1d333c; stroke-width: 2; }
.jury-tesla__toroid-highlight { fill: none; stroke: rgba(255,255,255,.75); stroke-width: 3; stroke-linecap: round; }
.jury-tesla__terminals { fill: #f0a532; stroke: #603813; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.jury-unlock-dialog[open] .jury-tesla__drawing { animation: tesla-drawing-current 2.7s ease-in-out infinite; }
.jury-tesla__field { position: absolute; z-index: 0; top: 49px; left: 50%; width: 118px; height: 118px; border: 1px solid rgba(78,190,239,.3); border-radius: 50%; opacity: 0; transform: translateX(-50%) scale(.5); }.jury-tesla__field--two { width: 158px; height: 158px; top: 28px; border-color: rgba(157,124,255,.24); }
.jury-unlock-dialog[open] .jury-tesla__field { animation: tesla-field 2.7s ease-out infinite; }.jury-unlock-dialog[open] .jury-tesla__field--two { animation-delay: .5s; }
.jury-tesla__bulb { position: absolute; z-index: 4; top: 82px; right: 8px; width: 36px; height: 45px; border: 2px solid #748f99; border-radius: 50% 50% 45% 45%; background: rgba(235,248,250,.72); box-shadow: inset 4px 3px 8px rgba(255,255,255,.8); transform: rotate(9deg); }
.jury-tesla__bulb::after { position: absolute; right: 5px; bottom: -13px; width: 25px; height: 17px; border-radius: 3px 3px 7px 7px; background: repeating-linear-gradient(0deg,#536d77 0 3px,#a1b2b8 3px 5px); content: ""; }
.jury-tesla__bulb i { position: absolute; top: 20px; left: 9px; width: 15px; height: 10px; border: 2px solid #7d6841; border-top: 0; border-radius: 0 0 50% 50%; }
.jury-tesla__bulb b { position: absolute; inset: 8px; border-radius: 50%; opacity: 0; background: #fff5ad; filter: blur(4px); }
.jury-unlock-dialog[open] .jury-tesla__bulb { animation: tesla-bulb-glass 2.7s ease-in-out infinite; }.jury-unlock-dialog[open] .jury-tesla__bulb b { animation: tesla-bulb-filament 2.7s ease-in-out infinite; }
.jury-unlock-dialog--physics[open] { animation: physics-dialog-illuminate 2.7s ease-in-out infinite; }.jury-unlock-dialog--physics[open]::backdrop { animation: physics-backdrop-illuminate 2.7s ease-in-out infinite; }
@keyframes tesla-arc { 0%,16%,100% { opacity: 0; stroke-dashoffset: 45; } 19% { opacity: 1; } 23% { opacity: .22; } 27%,36% { opacity: .95; stroke-dashoffset: 0; } 45% { opacity: 0; } }
@keyframes tesla-bulb-arc { 0%,28%,100% { opacity: 0; stroke-dashoffset: 60; } 32% { opacity: 1; } 35% { opacity: .18; } 38%,44% { opacity: 1; stroke-dashoffset: 0; } 49% { opacity: 0; } }
@keyframes tesla-drawing-current { 0%,16%,62%,100% { filter: drop-shadow(0 8px 8px rgba(16,42,52,.13)); } 27%,52% { filter: drop-shadow(0 8px 8px rgba(16,42,52,.13)) drop-shadow(0 0 9px rgba(84,198,255,.45)); } }
@keyframes tesla-field { 0% { opacity: .55; transform: translateX(-50%) scale(.45); } 72%,100% { opacity: 0; transform: translateX(-50%) scale(1.35); } }
@keyframes tesla-bulb-glass { 0%,31%,62%,100% { border-color: #748f99; background: rgba(235,248,250,.72); box-shadow: inset 4px 3px 8px rgba(255,255,255,.8); } 39%,52% { border-color: #efcf62; background: rgba(255,249,193,.95); box-shadow: inset 0 0 12px #fff,0 0 18px #ffe87d,0 0 38px rgba(255,226,87,.75); } }
@keyframes tesla-bulb-filament { 0%,31%,62%,100% { opacity: 0; transform: scale(.5); } 39%,52% { opacity: 1; transform: scale(1.25); } }
@keyframes physics-dialog-illuminate { 0%,31%,62%,100% { background: #fff; box-shadow: 0 30px 90px rgba(16,42,52,.28); } 40%,52% { background: #fffef4; box-shadow: 0 30px 100px rgba(16,42,52,.25),0 0 70px rgba(255,228,100,.5),inset 0 0 55px rgba(255,244,179,.18); } }
@keyframes physics-backdrop-illuminate { 0%,31%,62%,100% { background: rgba(16,42,52,.48); backdrop-filter: blur(5px) brightness(.82); } 40%,52% { background: rgba(24,50,55,.34); backdrop-filter: blur(5px) brightness(1.2); } }

.jury-unlock-dialog--dna { width: min(520px, calc(100% - 24px)); overflow: hidden; background: linear-gradient(180deg, #fbfdff, #f5f8ff); }
.jury-unlock-dialog--dna[open] { animation: biology-dialog-glow 7.2s ease-in-out infinite; }
.jury-unlock-dialog--dna > :not(.jury-microscope) { position: relative; z-index: 3; }
.jury-microscope { position: relative; z-index: 2; width: min(410px, 100%); margin: -25px auto 10px; }
.jury-microscope__stage { position: relative; width: 100%; aspect-ratio: 1.45; overflow: hidden; background: transparent; }
.jury-microscope__instrument { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; filter: saturate(1.08) contrast(1.03); }
.jury-microscope__bubble-cover { position: absolute; z-index: 2; top: 1%; left: 53%; width: 34%; aspect-ratio: 1; border-radius: 50%; background: #f9fbff; }
.jury-microscope__bubble-cover::after { position: absolute; bottom: -17%; left: 8%; width: 28%; height: 36%; background: #f9fbff; clip-path: polygon(0 0,100% 0,0 100%); content: ""; }
.jury-microscope__reveal { position: absolute; z-index: 3; top: 1.7%; left: 53.3%; width: 32%; aspect-ratio: 1; overflow: hidden; border: 2px solid #1d2430; border-radius: 50%; opacity: 0; background: radial-gradient(circle at 35% 28%, #f5f8ff, #dde8ff 72%); box-shadow: inset 0 0 18px rgba(79,73,156,.12), 0 8px 20px rgba(43,35,72,.12); filter: blur(8px) saturate(.75); transform: scale(.08); }
.jury-microscope__reveal::after { position: absolute; top: 12%; left: 15%; width: 35%; height: 17%; border-radius: 50%; background: rgba(255,255,255,.55); transform: rotate(-25deg); content: ""; }
.jury-microscope__reveal img { position: absolute; top: -8%; left: -193%; width: 320%; height: 320%; max-width: none; object-fit: contain; }
.jury-virus { position: absolute; top: 50%; left: 50%; width: 55%; aspect-ratio: 1; transform: translate(-50%,-50%); }
.jury-virus__body { position: absolute; z-index: 2; inset: 8%; overflow: hidden; border: 2px solid #17331c; border-radius: 50%; background: radial-gradient(circle at 34% 28%, #a9e42b 0 16%, #72c51c 42%, #3e9c18 100%); box-shadow: inset -7px -8px 0 rgba(34,107,20,.2), inset 5px 5px 0 rgba(215,247,68,.28), 0 4px 8px rgba(35,92,21,.2); }
.jury-virus__spike { position: absolute; z-index: 1; top: 50%; left: 50%; width: 13%; height: 57%; transform: translate(-50%,-50%) rotate(var(--spike)); }
.jury-virus__spike::before { position: absolute; top: -6%; left: 50%; width: 44%; height: 31%; border: 2px solid #17331c; border-radius: 55% 45% 48% 52%; background: #42a91c; transform: translateX(-50%); content: ""; }
.jury-virus__spike::after { position: absolute; top: 16%; left: 50%; width: 24%; height: 28%; border: 2px solid #17331c; border-width: 0 2px; background: #52b91c; transform: translateX(-50%); content: ""; }
.jury-virus__spot { position: absolute; border-radius: 50%; background: rgba(188,232,42,.62); }
.jury-virus__spot--one { top: 18%; left: 17%; width: 22%; height: 13%; transform: rotate(-18deg); }
.jury-virus__spot--two { right: 14%; bottom: 20%; width: 18%; height: 12%; }
.jury-virus__spot--three { bottom: 11%; left: 27%; width: 13%; height: 9%; }
.jury-virus__face { position: absolute; z-index: 3; top: 38%; left: 50%; display: flex; gap: 7%; width: 72%; height: 40%; transform: translateX(-50%); }
.jury-virus__face b { position: relative; width: 46%; height: 48%; overflow: hidden; border: 2px solid #18201c; border-radius: 48% 48% 55% 55%; background: #fff; transform: rotate(8deg); }
.jury-virus__face b:first-child { transform: rotate(-8deg); }
.jury-virus__face b::after { position: absolute; right: 14%; bottom: -7%; width: 35%; aspect-ratio: 1; border-radius: 50%; background: #ed6d35; box-shadow: 0 0 0 3px #17221c; content: ""; }
.jury-virus__face b:first-child::after { right: auto; left: 14%; }
.jury-virus__face > i { position: absolute; bottom: 0; left: 50%; width: 28%; height: 18%; border: 2px solid #17221c; border-radius: 50%; background: repeating-linear-gradient(90deg,#fff 0 3px,#29342e 3px 5px); transform: translateX(-50%); }
.jury-microscope__sample { position: absolute; z-index: 4; top: 50%; left: 48%; width: 11px; height: 9px; border-radius: 50%; background: #69c91e; box-shadow: 0 0 0 4px rgba(120,211,39,.17), 0 0 15px rgba(83,184,19,.7); }
.jury-microscope__focus-knob { position: absolute; z-index: 5; top: 58%; left: 29%; width: 34px; aspect-ratio: 1; border: 4px dashed rgba(255,196,44,.72); border-radius: 50%; opacity: 0; box-shadow: 0 0 12px rgba(255,178,22,.3); }
.jury-microscope__scan-ring { position: absolute; z-index: 6; top: 20%; left: 69%; width: 15%; aspect-ratio: 1; border: 2px solid rgba(120,214,43,.62); border-radius: 50%; opacity: 0; transform: translate(-50%,-50%) scale(.3); }
.jury-microscope__scan-ring--two { border-color: rgba(79,73,156,.35); }
.jury-microscope-microbes { position: absolute; z-index: 7; inset: 0; overflow: hidden; pointer-events: none; }
.jury-microscope-microbes img { position: absolute; top: 51%; left: 49%; width: var(--size); max-height: 38px; object-fit: contain; opacity: 0; filter: drop-shadow(0 3px 3px rgba(35,42,49,.2)); transform: translate(-50%,-50%) scale(.12); transform-origin: 50% 100%; }
.jury-unlock-dialog--dna[open] .jury-microscope-microbes img { animation: microscope-microbe-emerge var(--duration) calc(3.35s + var(--delay)) cubic-bezier(.2,.75,.28,1) both, microscope-microbe-idle 2.4s calc(3.35s + var(--delay) + var(--duration)) ease-in-out infinite alternate; }
.jury-unlock-dialog--dna[open] .jury-microscope-microbes img:nth-child(3n) { animation-timing-function: cubic-bezier(.14,.82,.3,1), ease-in-out; }
@keyframes microscope-microbe-emerge { 0% { opacity: 0; transform: translate(-50%,-50%) scale(.12) rotate(0); } 12% { opacity: 1; } 48% { opacity: 1; transform: translate(calc(-50% + var(--dx)),calc(-50% + var(--dy) - 10px)) scale(.9) rotate(var(--tilt)); } 66% { transform: translate(calc(-50% + var(--dx)),calc(-50% + var(--dy))) scale(.78,.7) rotate(0); } 78% { transform: translate(calc(-50% + var(--dx)),calc(-50% + var(--dy) - 4px)) scale(.8,.86) rotate(var(--tilt)); } 90%,100% { opacity: 1; transform: translate(calc(-50% + var(--dx)),calc(-50% + var(--dy))) scale(.82) rotate(0); } }
@keyframes microscope-microbe-idle { from { opacity: 1; transform: translate(calc(-50% + var(--dx)),calc(-50% + var(--dy))) scale(.82) rotate(-1deg); } to { opacity: 1; transform: translate(calc(-50% + var(--dx)),calc(-50% + var(--dy) - 2px)) scale(.84) rotate(1.5deg); } }
.jury-microscope__status { display: block; min-height: 1.3em; margin-top: 8px; color: #604a87; font-size: 0; font-weight: 850; letter-spacing: .14em; text-transform: uppercase; }
.jury-microscope__status::after { font-size: .72rem; content: "Ajustando enfoque…"; }
.jury-unlock-dialog--dna[open] .jury-microscope__instrument { animation: microscope-adjust 7.2s cubic-bezier(.36,.05,.22,1) infinite; }
.jury-unlock-dialog--dna[open] .jury-microscope__reveal { animation: microscope-reveal 7.2s cubic-bezier(.2,.72,.22,1) infinite; }
.jury-unlock-dialog--dna[open] .jury-microscope__sample { animation: microscope-sample 7.2s ease-in-out infinite; }
.jury-unlock-dialog--dna[open] .jury-microscope__focus-knob { animation: microscope-knob 7.2s ease-in-out infinite; }
.jury-unlock-dialog--dna[open] .jury-microscope__scan-ring { animation: microscope-scan 7.2s 4.7s ease-out infinite; }
.jury-unlock-dialog--dna[open] .jury-microscope__scan-ring--two { animation-delay: 5.15s; }
.jury-unlock-dialog--dna[open] .jury-microscope__status::after { animation: microscope-status 7.2s steps(1,end) infinite; }
.jury-unlock-dialog--dna[open] .jury-virus { animation: virus-hover 1.8s 4.65s ease-in-out infinite alternate; }
.jury-unlock-dialog--dna[open] .jury-virus__body { animation: virus-breathe 1.35s 4.65s ease-in-out infinite alternate; }
.jury-unlock-dialog--dna[open] .jury-virus__spike { animation: virus-spike 1.35s 4.65s ease-in-out infinite alternate; }
.jury-unlock-dialog--dna[open] .jury-virus__face b::after { animation: virus-look 2.3s 4.8s ease-in-out infinite; }
.jury-unlock-dialog--dna[open] .jury-virus__face > i { animation: virus-grumble .55s 4.8s ease-in-out infinite alternate; }
@keyframes microscope-adjust { 0%,8%,100% { transform: translate(0,0) rotate(0); filter: blur(0) saturate(1.08); } 14% { transform: translate(-3px,2px) rotate(-.35deg); filter: blur(1.8px) saturate(.9); } 22% { transform: translate(2px,-2px) rotate(.28deg); filter: blur(.5px) saturate(1); } 30% { transform: translate(-1px,1px) rotate(-.15deg); filter: blur(1.1px) saturate(.95); } 40%,88% { transform: translate(0,0) rotate(0); filter: blur(0) saturate(1.08); } }
@keyframes microscope-reveal { 0%,35% { opacity: 0; filter: blur(9px) saturate(.65); transform: scale(.08); } 47% { opacity: .75; filter: blur(6px) saturate(.8); transform: scale(.28); } 58% { opacity: 1; filter: blur(2.5px) saturate(1); transform: scale(.72); } 68%,88% { opacity: 1; filter: blur(0) saturate(1.1); transform: scale(1); } 100% { opacity: 0; filter: blur(8px) saturate(.7); transform: scale(.08); } }
@keyframes microscope-sample { 0%,38% { opacity: 1; transform: scale(.65); } 15%,32% { transform: scale(1.05); } 48% { opacity: .85; transform: scale(1.35); } 64%,88% { opacity: 0; transform: scale(2.2); } 100% { opacity: 1; transform: scale(.65); } }
@keyframes microscope-knob { 0%,7%,43%,100% { opacity: 0; transform: rotate(0) scale(.8); } 11%,36% { opacity: 1; } 18% { transform: rotate(115deg) scale(1); } 27% { transform: rotate(235deg) scale(.9); } 38% { opacity: .25; transform: rotate(360deg) scale(1); } }
@keyframes microscope-scan { 0% { opacity: .8; transform: translate(-50%,-50%) scale(.2); } 34% { opacity: .35; } 65%,100% { opacity: 0; transform: translate(-50%,-50%) scale(3.5); } }
@keyframes microscope-status { 0%,40%,100% { content: "Ajustando enfoque…"; } 41%,58% { color: #458d23; content: "Muestra detectada"; } 59%,88% { color: #458d23; content: "Virus identificado"; } }
@keyframes biology-dialog-glow { 0%,38%,100% { box-shadow: 0 30px 90px rgba(16,42,52,.28); } 65%,86% { box-shadow: 0 30px 95px rgba(16,42,52,.25), 0 0 52px rgba(124,210,57,.3); } }
@keyframes virus-hover { to { transform: translate(-50%,-56%) rotate(3deg); } }
@keyframes virus-breathe { to { transform: scale(1.06); filter: saturate(1.13); } }
@keyframes virus-spike { to { height: 62%; } }
@keyframes virus-look { 0%,32%,100% { transform: translateX(0); } 42%,65% { transform: translateX(-80%); } }
@keyframes virus-grumble { to { width: 31%; transform: translateX(-50%) rotate(3deg); } }
@media (prefers-reduced-motion: reduce) { .jury-unlock-dialog--dna .jury-microscope * { animation: none !important; } .jury-unlock-dialog--dna .jury-microscope__reveal { opacity: 1; filter: none; transform: scale(1); } .jury-unlock-dialog--dna .jury-microscope__sample, .jury-unlock-dialog--dna .jury-microscope__focus-knob, .jury-unlock-dialog--dna .jury-microscope__scan-ring, .jury-unlock-dialog--dna .jury-microscope-microbes { display: none; } .jury-unlock-dialog--dna .jury-microscope__status::after { color: #458d23; content: "Virus identificado"; } }

.jury-unlock-dialog--dna { width: min(470px, calc(100% - 32px)); max-height: calc(100vh - 32px); overflow-x: hidden; overflow-y: auto; background: linear-gradient(180deg,#fff 0%,#f8fbf7 100%); }
.jury-unlock-dialog--dna[open] { animation: virus-dialog-arrive 560ms cubic-bezier(.2,.82,.24,1.08) both; }
.jury-biology { position: relative; width: 260px; height: 230px; margin: -10px auto 18px; }
.jury-petri { position: absolute; top: 0; left: 50%; width: 210px; aspect-ratio: 1; overflow: hidden; border: 8px solid rgba(172,222,229,.64); border-radius: 50%; background: radial-gradient(circle at 38% 31%,rgba(241,255,250,.96),rgba(195,239,225,.88) 55%,rgba(134,210,203,.78)); box-shadow: inset 0 0 0 3px rgba(255,255,255,.82),inset 0 -18px 28px rgba(63,169,159,.13),0 16px 28px rgba(40,111,111,.15); transform: translateX(-50%); }
.jury-petri::before { position: absolute; inset: 7px; border: 1px solid rgba(43,137,142,.22); border-radius: 50%; content: ""; }
.jury-petri__shine { position: absolute; z-index: 4; top: 12%; left: 17%; width: 32%; height: 12%; border-radius: 50%; background: rgba(255,255,255,.48); transform: rotate(-32deg); }
.jury-petri__speck { position: absolute; top: 28%; left: 28%; width: 10px; height: 7px; border-radius: 50%; background: rgba(60,166,134,.3); transform: rotate(28deg); }
.jury-petri__speck--two { top: 67%; left: 70%; width: 7px; height: 11px; transform: rotate(-18deg); }
.jury-petri__speck--three { top: 24%; left: 72%; width: 6px; height: 6px; }
.jury-petri__cell { position: absolute; z-index: 2; top: 50%; left: 50%; width: 82px; height: 76px; border: 2px solid #268e70; border-radius: 48% 52% 46% 54% / 52% 47% 53% 48%; background: radial-gradient(circle at 33% 27%,rgba(181,245,107,.96),#68ce68 58%,#36a968); box-shadow: inset -8px -8px 12px rgba(28,126,84,.2),inset 7px 5px 9px rgba(224,255,157,.3),0 5px 9px rgba(37,115,87,.18); transform: translate(-50%,-50%) scale(1.12,1); }
.jury-petri__cell i { position: absolute; top: 31%; left: 50%; width: 28px; height: 26px; border: 2px solid rgba(73,63,142,.66); border-radius: 50%; background: radial-gradient(circle at 35% 28%,#c5a9f0,#8069bd 70%); transform: translateX(-50%); }
.jury-petri__cell b { position: absolute; top: 20%; left: 19%; width: 9px; height: 7px; border-radius: 50%; background: rgba(242,255,177,.5); box-shadow: 43px 33px 0 -2px rgba(27,135,91,.25),15px 42px 0 -3px rgba(27,135,91,.2); }
.jury-petri__cell--right { opacity: 0; }
.jury-petri__bridge { position: absolute; z-index: 3; top: 50%; left: 50%; width: 30px; height: 34px; border-radius: 50%; opacity: 0; background: #57c463; transform: translate(-50%,-50%) scaleX(.2); }
.jury-biology__label { position: absolute; right: 0; bottom: 0; left: 0; color: #27866e; font-size: .7rem; font-weight: 850; letter-spacing: .14em; text-transform: uppercase; }
.jury-unlock-dialog--dna[open] .jury-petri__cell--left { animation: biology-cell-left 5.2s .35s ease-in-out infinite; }
.jury-unlock-dialog--dna[open] .jury-petri__cell--right { animation: biology-cell-right 5.2s .35s ease-in-out infinite; }
.jury-unlock-dialog--dna[open] .jury-petri__cell i { animation: biology-nucleus 5.2s .35s ease-in-out infinite; }
.jury-unlock-dialog--dna[open] .jury-petri__bridge { animation: biology-bridge 5.2s .35s ease-in-out infinite; }
.jury-unlock-dialog--dna[open] .jury-petri { animation: biology-dish-glow 5.2s .35s ease-in-out infinite; }
@keyframes biology-cell-left { 0%,19% { transform: translate(-50%,-50%) scale(1.12,1); } 32% { transform: translate(-50%,-50%) scale(1.32,.86); } 53%,87% { transform: translate(calc(-50% - 36px),-50%) scale(.78); } 100% { transform: translate(-50%,-50%) scale(1.12,1); } }
@keyframes biology-cell-right { 0%,28% { opacity: 0; transform: translate(-50%,-50%) scale(.35); } 38% { opacity: .82; } 53%,87% { opacity: 1; transform: translate(calc(-50% + 36px),-50%) scale(.78); } 100% { opacity: 0; transform: translate(-50%,-50%) scale(.35); } }
@keyframes biology-nucleus { 0%,20%,100% { transform: translateX(-50%) scale(1); } 32% { transform: translateX(-50%) scale(.65,1.28); } 48%,88% { transform: translateX(-50%) scale(.9); } }
@keyframes biology-bridge { 0%,27%,100% { opacity: 0; transform: translate(-50%,-50%) scaleX(.2); } 38%,49% { opacity: 1; transform: translate(-50%,-50%) scaleX(1); } 61%,88% { opacity: 0; transform: translate(-50%,-50%) scaleX(.2); } }
@keyframes biology-dish-glow { 0%,23%,100% { box-shadow: inset 0 0 0 3px rgba(255,255,255,.82),inset 0 -18px 28px rgba(63,169,159,.13),0 16px 28px rgba(40,111,111,.15); } 48%,78% { box-shadow: inset 0 0 0 3px rgba(255,255,255,.82),inset 0 -18px 28px rgba(63,169,159,.13),0 16px 30px rgba(40,111,111,.17),0 0 25px rgba(104,218,130,.27); } }
@media (prefers-reduced-motion: reduce) { .jury-unlock-dialog--dna .jury-petri, .jury-unlock-dialog--dna .jury-petri * { animation: none !important; } .jury-petri__cell--left { transform: translate(calc(-50% - 36px),-50%) scale(.78); } .jury-petri__cell--right { opacity: 1; transform: translate(calc(-50% + 36px),-50%) scale(.78); } }

.jury-unlock-dialog--chemistry[open] { animation: none; }
.jury-unlock-dialog--chemistry > :not(.jury-chemistry-ooze) { position: relative; z-index: 2; }
.jury-chemistry-ooze { position: absolute; z-index: 1; inset: 0; overflow: visible; border-radius: inherit; pointer-events: none; }
.jury-chemistry-ooze__spot { position: absolute; border: 1px solid rgba(65,154,23,.25); opacity: 0; background: radial-gradient(circle at 34% 28%, rgba(220,255,137,.98), rgba(145,229,49,.96) 40%, rgba(65,169,24,.9) 100%); box-shadow: inset 4px 4px 9px rgba(255,255,255,.38), 0 9px 24px rgba(72,158,27,.2); transform: scale(.18); }
.jury-chemistry-ooze__spot::after { position: absolute; width: 12px; height: 12px; border-radius: 50%; background: rgba(183,246,89,.86); box-shadow: 0 0 0 1px rgba(64,143,24,.2), 12px 9px 0 -3px rgba(126,214,44,.78); content: ""; }
.jury-chemistry-ooze__spot--top-left { top: -9px; left: 9%; width: 38px; height: 19px; border-radius: 62% 38% 54% 46%; --ooze-x: 2px; --ooze-y: -10px; --ooze-delay: .1s; }
.jury-chemistry-ooze__spot--top-mid { top: -11px; left: 43%; width: 62px; height: 24px; border-radius: 44% 56% 38% 62%; --ooze-x: 0; --ooze-y: -13px; --ooze-delay: .55s; }
.jury-chemistry-ooze__spot--top-right { top: -7px; right: 4%; width: 27px; height: 18px; border-radius: 67% 33% 48% 52%; --ooze-x: 4px; --ooze-y: -9px; --ooze-delay: 1s; }
.jury-chemistry-ooze__spot--left-high { top: 12%; left: -10px; width: 22px; height: 45px; border-radius: 48% 52% 62% 38%; --ooze-x: -12px; --ooze-y: 0; --ooze-delay: .8s; }
.jury-chemistry-ooze__spot--left-mid { top: 38%; left: -8px; width: 19px; height: 32px; border-radius: 58% 42% 45% 55%; --ooze-x: -10px; --ooze-y: 2px; --ooze-delay: 1.5s; }
.jury-chemistry-ooze__spot--left-low { bottom: 16%; left: -12px; width: 27px; height: 64px; border-radius: 45% 55% 63% 37%; --ooze-x: -14px; --ooze-y: 4px; --ooze-delay: 2.2s; }
.jury-chemistry-ooze__spot--right-high { top: 12%; right: -9px; width: 21px; height: 31px; border-radius: 52% 48% 38% 62%; --ooze-x: 11px; --ooze-y: -2px; --ooze-delay: 1.25s; }
.jury-chemistry-ooze__spot--right-mid { top: 35%; right: -11px; width: 27px; height: 51px; border-radius: 43% 57% 65% 35%; --ooze-x: 13px; --ooze-y: 2px; --ooze-delay: 1.85s; }
.jury-chemistry-ooze__spot--right-low { bottom: 20%; right: -10px; width: 23px; height: 70px; border-radius: 55% 45% 36% 64%; --ooze-x: 12px; --ooze-y: 5px; --ooze-delay: 2.55s; }
.jury-chemistry-ooze__spot--top-left::after { right: -13px; bottom: -5px; }.jury-chemistry-ooze__spot--top-mid::after { left: -16px; bottom: 1px; }.jury-chemistry-ooze__spot--top-right::after { left: -14px; bottom: -7px; }
.jury-chemistry-ooze__spot--left-high::after, .jury-chemistry-ooze__spot--left-mid::after, .jury-chemistry-ooze__spot--left-low::after { right: -6px; bottom: -14px; }
.jury-chemistry-ooze__spot--right-high::after, .jury-chemistry-ooze__spot--right-mid::after, .jury-chemistry-ooze__spot--right-low::after { top: -13px; left: -5px; }
.jury-unlock-dialog--chemistry[open] .jury-chemistry-ooze__spot { animation: chemistry-edge-ooze 5.6s var(--ooze-delay) cubic-bezier(.2,.8,.3,1) infinite; }
.jury-chemistry-lock { position: relative; width: 180px; height: 190px; margin: -12px auto 7px; }
.jury-chemistry-lock__vessel { position: relative; z-index: 2; width: 180px; height: 180px; }
.jury-chemistry-lock__glass { position: absolute; z-index: 3; inset: 0; width: 100%; height: 100%; overflow: visible; }
.jury-chemistry-lock__glass-fill { fill: rgba(159,231,239,0.22); }
.jury-chemistry-lock__glass-line, .jury-chemistry-lock__rim { fill: none; stroke: rgba(16,42,52,0.76); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.jury-chemistry-lock__rim { stroke-width: 5; }
.jury-chemistry-lock__highlight { fill: none; stroke: rgba(255,255,255,0.9); stroke-width: 5; stroke-linecap: round; }
.jury-chemistry-lock__liquid-body { transform: scaleY(0.38); transform-box: fill-box; transform-origin: center bottom; animation: chemistry-liquid-grow 5.2s cubic-bezier(.42,.04,.3,1) infinite; }
.jury-chemistry-lock__liquid-surface { transform: translateY(68px); animation: chemistry-liquid-surface-rise 5.2s cubic-bezier(.42,.04,.3,1) infinite; }
.jury-chemistry-lock__liquid-wave { fill: #a1ec30; animation: chemistry-liquid-wave 1.45s ease-in-out infinite alternate; }
.jury-chemistry-lock__foam { fill: rgba(190,255,70,0.9); transform-box: fill-box; transform-origin: center bottom; animation: chemistry-foam-breathe 1.2s ease-in-out infinite alternate; }
.jury-chemistry-lock__inner-bubbles circle { fill: rgba(255,255,255,0.24); stroke: rgba(38,112,25,0.45); stroke-width: 1.5; transform-box: fill-box; transform-origin: center; animation: chemistry-inner-bubble 2.5s ease-in infinite; }
.jury-chemistry-lock__inner-bubbles circle:nth-of-type(2) { animation-delay: 0.65s; }
.jury-chemistry-lock__inner-bubbles circle:nth-of-type(3) { animation-delay: 1.15s; }
.jury-chemistry-lock__inner-bubbles circle:nth-of-type(4) { animation-delay: 1.7s; }
.jury-chemistry-lock__padlock { position: absolute; z-index: 4; top: 91px; left: 50%; width: 52px; height: 58px; fill: rgba(255,255,255,0.22); stroke: #101820; stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; transform: translateX(-50%); filter: drop-shadow(0 3px 5px rgba(16,24,32,0.13)); }
.jury-chemistry-lock__lava { position: absolute; z-index: 6; top: -18px; left: 50%; width: 96px; height: 78px; pointer-events: none; transform: translateX(-50%); }
.jury-chemistry-lock__lava i { position: absolute; bottom: 7px; left: 50%; width: 20px; height: 20px; border: 1.5px solid rgba(44,119,22,0.55); border-radius: 48% 52% 45% 55%; background: linear-gradient(145deg, #b4f43e, #72ce16 72%); opacity: 0; box-shadow: inset 3px 3px 0 rgba(255,255,255,0.28), 0 3px 7px rgba(74,157,20,0.18); animation: chemistry-lava-bubble 5.2s cubic-bezier(.2,.75,.3,1) infinite; }
.jury-chemistry-lock__lava i:nth-child(1) { --lava-x: -29px; --lava-y: -22px; width: 24px; height: 24px; }
.jury-chemistry-lock__lava i:nth-child(2) { --lava-x: -12px; --lava-y: -39px; width: 18px; height: 18px; animation-delay: 80ms; }
.jury-chemistry-lock__lava i:nth-child(3) { --lava-x: 8px; --lava-y: -31px; width: 27px; height: 27px; animation-delay: 150ms; }
.jury-chemistry-lock__lava i:nth-child(4) { --lava-x: 25px; --lava-y: -16px; width: 17px; height: 17px; animation-delay: 230ms; }
.jury-chemistry-lock__lava i:nth-child(5) { --lava-x: -3px; --lava-y: -57px; width: 14px; height: 14px; animation-delay: 310ms; }
.jury-chemistry-lock__lava i:nth-child(6) { --lava-x: 19px; --lava-y: -50px; width: 11px; height: 11px; animation-delay: 390ms; }
.jury-chemistry-lock__lava i:nth-child(7) { --lava-x: -24px; --lava-y: -51px; width: 13px; height: 13px; animation-delay: 470ms; }
.jury-chemistry-lock__lava i:nth-child(8) { --lava-x: 2px; --lava-y: -24px; width: 22px; height: 22px; animation-delay: 550ms; }
.jury-chemistry-lock__lava i:nth-child(9) { --lava-x: -40px; --lava-y: -13px; width: 29px; height: 25px; animation-delay: 120ms; }
.jury-chemistry-lock__lava i:nth-child(10) { --lava-x: 39px; --lava-y: -7px; width: 25px; height: 31px; animation-delay: 260ms; }
.jury-chemistry-lock__lava i:nth-child(11) { --lava-x: -34px; --lava-y: -38px; width: 18px; height: 20px; animation-delay: 410ms; }
.jury-chemistry-lock__lava i:nth-child(12) { --lava-x: 34px; --lava-y: -35px; width: 21px; height: 18px; animation-delay: 610ms; }
.jury-chemistry-lock__drop { position: absolute; z-index: 5; top: 21px; width: 8px; height: 13px; border: 1px solid rgba(44,119,22,0.45); border-radius: 65% 45% 65% 45%; background: #78d616; opacity: 0; animation: chemistry-drop 5.2s ease-in infinite; }
.jury-chemistry-lock__drop--one { left: 55px; }
.jury-chemistry-lock__drop--two { right: 54px; width: 6px; height: 10px; animation-delay: 220ms; }
.jury-chemistry-lock__bubble { position: absolute; z-index: 7; border: 1.5px solid rgba(71,160,31,0.82); border-radius: 50%; background: rgba(167,239,43,0.48); opacity: 0; box-shadow: inset 2px 2px 0 rgba(255,255,255,0.35); animation: chemistry-outer-bubble 5.2s ease-out infinite; }
.jury-chemistry-lock__bubble--one { top: -8px; left: 66px; width: 11px; height: 11px; }
.jury-chemistry-lock__bubble--two { top: -3px; right: 61px; width: 19px; height: 19px; animation-delay: 320ms; }
.jury-chemistry-lock__bubble--three { top: -17px; right: 83px; width: 7px; height: 7px; animation-delay: 620ms; }
@keyframes chemistry-liquid-grow { 0%, 12% { transform: scaleY(0.38); } 24% { transform: scaleY(0.45); } 44% { transform: scaleY(0.9); } 63%, 79% { transform: scaleY(1.68); } 100% { transform: scaleY(0.38); } }
@keyframes chemistry-liquid-surface-rise { 0%, 12% { transform: translateY(68px); } 24% { transform: translateY(61px); } 44% { transform: translateY(24px); } 63%, 79% { transform: translateY(-66px); } 100% { transform: translateY(68px); } }
@keyframes chemistry-liquid-wave { from { transform: translateX(-5px) rotate(-1deg); } to { transform: translateX(5px) rotate(1deg); } }
@keyframes chemistry-foam-breathe { from { transform: scaleY(0.78) scaleX(0.98); } to { transform: scaleY(1.08) scaleX(1.025); } }
@keyframes chemistry-inner-bubble { 0%, 12% { opacity: 0; transform: translateY(18px) scale(0.55); } 28% { opacity: 0.9; } 100% { opacity: 0; transform: translateY(-58px) scale(1.18); } }
@keyframes chemistry-lava-bubble { 0%, 55% { opacity: 0; transform: translate(-50%, 10px) scale(0.25); } 65% { opacity: 1; } 78% { opacity: 0.96; transform: translate(calc(-50% + var(--lava-x)), var(--lava-y)) scale(1); } 100% { opacity: 0; transform: translate(calc(-50% + var(--lava-x)), calc(var(--lava-y) - 14px)) scale(0.72); } }
@keyframes chemistry-drop { 0%, 68% { opacity: 0; transform: translateY(0) rotate(45deg) scale(0.6); } 75% { opacity: 0.95; } 94%, 100% { opacity: 0; transform: translateY(46px) rotate(45deg) scale(1); } }
@keyframes chemistry-outer-bubble { 0%, 64% { opacity: 0; transform: translateY(0) translateX(0) scale(0.45); } 73% { opacity: 0.92; } 100% { opacity: 0; transform: translateY(-64px) translateX(11px) scale(1.16); } }
@keyframes chemistry-edge-ooze { 0%, 14% { opacity: 0; transform: translate(calc(var(--ooze-x) * -.25), calc(var(--ooze-y) * -.25)) scale(.18); } 32% { opacity: .98; transform: translate(calc(var(--ooze-x) * 1.35), calc(var(--ooze-y) * 1.35)) scale(1.38); } 52%, 82% { opacity: .9; transform: translate(calc(var(--ooze-x) * 1.12), calc(var(--ooze-y) * 1.12)) scale(1.22); } 100% { opacity: 0; transform: translate(calc(var(--ooze-x) * 1.7), calc(var(--ooze-y) * 1.7)) scale(.82); } }
@keyframes calculator-arrive { from { opacity: 0; transform: translateY(14px) scale(.9); } to { opacity: 1; transform: none; } }
@keyframes calculator-key-tap { 0%, 72%, 100% { transform: translateY(0); box-shadow: 0 2px 0 rgba(4,25,33,.22); } 76% { transform: translateY(2px); box-shadow: 0 0 0 rgba(4,25,33,.22); } }
@keyframes calculator-display-pulse { 0%, 66%, 100% { opacity: 1; transform: translateY(0); } 72% { opacity: .42; transform: translateY(-1px); } }
@keyframes calculator-math-peek {
    0%, 12% { opacity: 0; transform: translate(-50%,-50%) rotate(var(--lock-burst-angle)) translateX(42px) rotate(calc(-1 * var(--lock-burst-angle))) scale(.3); }
    22% { opacity: .95; transform: translate(-50%,-50%) rotate(var(--lock-burst-angle)) translateX(var(--lock-burst-distance)) rotate(calc(-1 * var(--lock-burst-angle))) rotate(-6deg) scale(1); }
    34% { opacity: .8; transform: translate(-50%,-50%) rotate(var(--lock-burst-angle)) translateX(calc(var(--lock-burst-distance) + 9px)) rotate(calc(-1 * var(--lock-burst-angle))) rotate(5deg) scale(1.05); }
    45%, 100% { opacity: 0; transform: translate(-50%,-50%) rotate(var(--lock-burst-angle)) translateX(48px) rotate(calc(-1 * var(--lock-burst-angle))) scale(.35); }
}
@keyframes calculator-math-crawl {
    0%, 8% { opacity: 0; transform: translate(-50%,-50%) translate(0,0) rotate(-12deg) scale(.35); }
    15% { opacity: 1; transform: translate(-50%,-50%) translate(var(--math-crawl-x1),var(--math-crawl-y1)) rotate(7deg) scale(1); }
    38% { opacity: .92; transform: translate(-50%,-50%) translate(var(--math-crawl-x2),var(--math-crawl-y2)) rotate(-9deg) scale(1.08); }
    62% { opacity: .96; transform: translate(-50%,-50%) translate(var(--math-crawl-x3),var(--math-crawl-y3)) rotate(11deg) scale(.96); }
    78% { opacity: .85; transform: translate(-50%,-50%) translate(var(--math-crawl-x1),var(--math-crawl-y3)) rotate(-5deg) scale(1.03); }
    92%, 100% { opacity: 0; transform: translate(-50%,-50%) translate(0,10px) rotate(14deg) scale(.3); }
}

.jury-credentials-page { min-height: 100vh; background: var(--canvas); }
.jury-credentials-shell { width: min(1060px, 100%); min-height: 100vh; margin: 0 auto; padding: clamp(56px, 6vw, 92px) clamp(18px, 4vw, 60px); }
.jury-credentials-shell > header { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 32px; }
.jury-credentials-shell h1 { margin: 0; font-size: clamp(2.6rem, 5vw, 4.8rem); letter-spacing: -0.06em; }
.jury-access-card { width: min(500px, 100%); margin: 60px auto; padding: 34px; border: 1px solid var(--line); border-radius: 28px; background: var(--white); box-shadow: var(--shadow); }
.jury-access-card h2 { margin: 0; }
.jury-access-card > p:not(.eyebrow), .jury-toolbar p, .credential-reveal > p { color: var(--muted); line-height: 1.55; }
.jury-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin: 24px 0; padding: 20px 24px; border-radius: 20px; background: var(--white); box-shadow: var(--shadow); }
.jury-toolbar p { margin: 0; }
.jury-toolbar__actions, .credential-reveal__actions { display: flex; align-items: center; gap: 10px; }
.jury-toolbar__actions form, .credential-reveal__actions form { margin: 0; }
.jury-toolbar .jury-test-button { color: #795500; background: #fff3bf; }
.jury-toolbar .jury-test-button:hover { background: #ffe58a; }
.jury-toolbar .jury-danger-outline { border: 1px solid #e8a2a2; color: var(--red); background: #fff5f5; }
.jury-unlock-dialog form .jury-danger { background: var(--red); }
.jury-secondary { padding: 11px 16px; border: 1px solid var(--sky-300); border-radius: 999px; color: var(--sky-700); font-weight: 800; background: var(--sky-50); cursor: pointer; }
.jury-credential-grid, .credential-print-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.credential-phase-heading { display: flex; grid-column: 1 / -1; align-items: center; gap: 14px; margin: 18px 0 -2px; color: var(--ink); font-size: 1.15rem; letter-spacing: -0.03em; }
.credential-phase-heading:first-child { margin-top: 4px; }
.credential-phase-heading::after { content: ""; height: 1px; flex: 1; background: linear-gradient(90deg, var(--sky-300), transparent); }
.credential-phase-heading span { order: 2; padding: 6px 9px; border-radius: 999px; color: var(--sky-700); font-size: 0.62rem; font-weight: 850; letter-spacing: 0; text-transform: uppercase; background: var(--sky-100); }
.credential-phase-heading::after { order: 1; }
.jury-credential-grid .jury-phase-heading { display: flex; grid-column: 1 / -1; align-items: baseline; justify-content: space-between; margin: 18px 0 -4px; padding: 0 4px; font-size: 1.25rem; letter-spacing: -0.035em; }
.jury-phase-heading:first-child { margin-top: 0; }
.jury-phase-heading span { color: var(--muted); font-size: 0.7rem; font-weight: 750; letter-spacing: 0; text-transform: uppercase; }
.jury-credential-grid article, .credential-print-grid article { padding: 25px; border: 1px solid var(--line); border-radius: 22px; background: var(--white); box-shadow: var(--shadow); }
.jury-credential-grid h2 { margin: 8px 0; }
.jury-visible-key { display: grid; gap: 4px; margin: 14px 0; padding: 13px 15px; border-radius: 14px; color: var(--ink); background: var(--sky-50); }
.jury-visible-key span, .jury-visible-key small { color: var(--muted); font-size: .7rem; }
.jury-visible-key strong { font-size: 1.15rem; letter-spacing: .08em; }
.jury-credential-grid p { color: var(--muted); }
.jury-credential-grid p small { display: block; margin-top: 6px; font-size: 0.66rem; }
.credential-status { display: inline-flex; padding: 5px 9px; border-radius: 999px; font-size: 0.7rem; font-weight: 800; }
.credential-status--ready { color: var(--green); background: var(--green-soft); }
.credential-status--pending { color: #946600; background: #fff5d5; }
.jury-rename-form { display: grid; gap: 7px; margin: 16px 0 12px; }
.jury-rename-form label { color: var(--muted); font-size: 0.7rem; font-weight: 750; }
.jury-rename-form > div { display: flex; gap: 8px; }
.jury-rename-form input { min-width: 0; flex: 1; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; font: inherit; }
.jury-rename-form .jury-secondary { flex: 0 0 auto; }
.jury-number { color: var(--sky-700); font-size: 0.72rem; font-weight: 800; text-transform: uppercase; }
.credential-reveal { margin-bottom: 26px; padding: 28px; border: 2px solid var(--green); border-radius: 26px; background: var(--green-soft); }
.credential-reveal h2 { margin: 0; }
.credential-print-grid { margin: 22px 0; }
.credential-print-grid article { display: grid; gap: 9px; text-align: center; }
.credential-print-grid article span { color: var(--sky-700); font-size: 0.7rem; font-weight: 800; text-transform: uppercase; }
.credential-print-grid article strong { font-size: 1.35rem; }
.credential-print-grid article b { font-size: 1.1rem; letter-spacing: 0.08em; }
@media (max-width: 680px) { .jury-toolbar, .jury-credentials-shell > header { align-items: stretch; flex-direction: column; } .jury-toolbar__actions, .credential-reveal__actions { align-items: stretch; flex-direction: column; } .jury-credential-grid, .credential-print-grid { grid-template-columns: 1fr; } }
@media print { body * { visibility: hidden; } .credential-reveal, .credential-reveal * { visibility: visible; } .credential-reveal { position: absolute; inset: 0; border: 0; background: white; } .credential-reveal > button, .credential-reveal > p, .credential-reveal > .eyebrow { display: none; } }

body.has-unlock-ceremony { overflow: hidden; }
.unlock-ceremony { position: fixed; z-index: 1000; inset: 0; display: grid; overflow: hidden; place-items: center; color: var(--ink); text-align: center; opacity: 0; background: radial-gradient(circle at center, #ffffff 0%, #f8fdff 54%, #eef9fc 100%); transition: opacity 350ms ease; }
.unlock-ceremony.is-playing { opacity: 1; }
.unlock-ceremony.is-finished { opacity: 0; pointer-events: none; }
.unlock-ceremony__glow { position: absolute; width: min(78vw, 720px); aspect-ratio: 1; border-radius: 50%; opacity: 0; background: radial-gradient(circle, rgba(85, 200, 224, 0.22), transparent 66%); transform: scale(0.35); }
.unlock-ceremony.is-playing .unlock-ceremony__glow { animation: unlock-glow 3.5s 400ms ease-out both; }
.unlock-ceremony__seal { position: absolute; top: 50%; left: 50%; width: min(220px, 42vw); aspect-ratio: 1; transform: translate(-50%, -58%); }
.unlock-ceremony__seal dotlottie-player { width: 100%; height: 100%; filter: drop-shadow(0 8px 15px rgba(16,24,32,0.14)); }
.unlock-ceremony__seal > span { position: absolute; inset: -22px; border: 1px solid rgba(21,123,158,0.38); border-radius: 50%; opacity: 0; }
.unlock-ceremony.is-playing .unlock-ceremony__seal { animation: unlock-seal-arrive 700ms 250ms cubic-bezier(.2,.8,.2,1) both, unlock-seal-leave 650ms 7.15s ease-in both; }
.unlock-ceremony.is-playing .unlock-ceremony__seal > span { animation: unlock-ring 900ms 1.65s ease-out both; }
.unlock-ceremony__number-canvas { position: absolute; z-index: 1; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.unlock-ceremony__particles { position: absolute; z-index: 1; inset: 0; overflow: hidden; pointer-events: none; }
.unlock-ceremony__particles span { position: absolute; top: 46%; left: 50%; color: #c5f4ff; font-size: clamp(0.72rem, 1.4vw, 1.2rem); font-weight: 750; white-space: nowrap; opacity: 0; text-shadow: 0 0 12px rgba(133, 227, 255, 0.65); transform: translate(-50%, -50%) scale(0.2); }
.unlock-ceremony__particles span:nth-child(3n) { color: #82e0b0; }
.unlock-ceremony__particles span:nth-child(4n) { color: rgba(255,255,255,0.9); }
.unlock-ceremony.is-playing .unlock-ceremony__particles span { animation: science-particle 1.85s var(--particle-delay) cubic-bezier(.16,.72,.35,1) both; }
.unlock-ceremony__copy { position: relative; z-index: 2; width: min(720px, calc(100% - 42px)); margin-top: 24px; opacity: 0; transform: translateY(26px); }
.unlock-ceremony.is-playing .unlock-ceremony__copy { animation: unlock-copy 620ms 7.9s ease-out both; }
.unlock-ceremony__copy h2 { margin: 0; font-size: clamp(2.2rem, 6vw, 5.2rem); line-height: 0.98; letter-spacing: -0.06em; text-transform: uppercase; }
.unlock-ceremony__copy .unlock-ceremony__status { margin: 12px 0 20px; color: var(--green); font-size: clamp(1.35rem, 3vw, 2.25rem); font-weight: 800; }
.unlock-ceremony__copy .unlock-ceremony__juror { margin: 0; color: var(--muted); font-size: clamp(0.9rem, 1.7vw, 1.1rem); }
.unlock-ceremony__juror span { margin: 0 0.25em; }
.unlock-ceremony__juror strong { color: var(--ink); }
.unlock-ceremony--chemistry { background: #f8faf9; }
.unlock-ceremony__seal--hidden { display: none; }
.unlock-ceremony--chemistry .unlock-ceremony__glow { width: min(92vw, 900px); background: radial-gradient(circle, rgba(164,239,43,0.5), rgba(100,198,26,0.16) 48%, transparent 72%); }
.unlock-ceremony--chemistry .unlock-ceremony__seal { z-index: 3; width: min(430px, 68vw); transform: translate(-50%, -54%); }
.unlock-ceremony--chemistry .unlock-ceremony__seal dotlottie-player { filter: drop-shadow(0 20px 30px rgba(54,112,20,0.24)); }
.unlock-ceremony__chemistry-lock { position: absolute; z-index: 5; top: 50%; left: 50%; width: min(104px, 22vw); fill: rgba(255,255,255,0.28); stroke: #173321; stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; filter: drop-shadow(0 7px 10px rgba(20,55,14,0.3)); transform: translate(-50%, -40%); }
.unlock-ceremony--chemistry.is-playing .unlock-ceremony__chemistry-lock { animation: chemistry-ceremony-lock 6.9s 500ms cubic-bezier(.2,.75,.25,1) both; }
.unlock-ceremony--chemistry .unlock-ceremony__number-canvas { z-index: 4; }
.unlock-ceremony--chemistry .unlock-ceremony__copy { z-index: 6; padding: 30px 38px; border: 1px solid rgba(86,146,33,0.2); border-radius: 32px; background: rgba(251,255,244,0.88); box-shadow: 0 24px 70px rgba(52,100,19,0.2); backdrop-filter: blur(12px); }
.unlock-ceremony--chemistry .unlock-ceremony__copy .unlock-ceremony__status { color: #4b991a; }
.chemistry-lab { position: absolute; z-index: 1; inset: 0; overflow: hidden; perspective: 900px; }
.chemistry-lab__wall { position: absolute; inset: 0 0 31%; background: linear-gradient(180deg, #fbfcfc, #f3f6f5); }
.chemistry-lab__bench { position: absolute; right: -3%; bottom: -5%; left: -3%; height: 39%; border-top: 3px solid #d6dcda; background: linear-gradient(180deg, #fff 0 72%, #edf1ef); box-shadow: 0 -12px 35px rgba(30,52,44,.06); transform: rotateX(8deg); transform-origin: bottom; }
.unlock-ceremony--chemistry .chemistry-lab__overflow { z-index: 1; opacity: .78; mix-blend-mode: multiply; }
.chemistry-prop { position: absolute; z-index: 2; bottom: 23%; overflow: visible; opacity: 0; filter: drop-shadow(0 14px 9px rgba(24,45,36,.15)); transform-origin: 50% 100%; }
.chemistry-prop--cup { left: 8%; width: clamp(76px, 9vw, 125px); }
.chemistry-prop--bottle-white { left: 24%; width: clamp(70px, 8vw, 110px); }
.chemistry-prop--bottle-amber { left: 35%; width: clamp(66px, 7.5vw, 102px); }
.chemistry-prop--dropper { left: 41%; width: clamp(38px, 4vw, 55px); }
.chemistry-prop--beaker { left: 50%; width: clamp(125px, 14vw, 190px); transform: translateX(-50%); }
.chemistry-prop--goggles { right: 5%; bottom: 25%; width: clamp(180px, 23vw, 330px); }
.unlock-ceremony--chemistry.is-playing .chemistry-prop { animation: chemistry-prop-arrive 900ms cubic-bezier(.16,.84,.28,1.2) both; }
.unlock-ceremony--chemistry.is-playing .chemistry-prop--beaker { animation-name: chemistry-beaker-arrive; }
.unlock-ceremony--chemistry.is-playing .chemistry-prop--cup { animation-delay: .3s; }
.unlock-ceremony--chemistry.is-playing .chemistry-prop--bottle-white { animation-delay: .55s; }
.unlock-ceremony--chemistry.is-playing .chemistry-prop--bottle-amber { animation-delay: .75s; }
.unlock-ceremony--chemistry.is-playing .chemistry-prop--dropper { animation-delay: .95s; }
.unlock-ceremony--chemistry.is-playing .chemistry-prop--beaker { animation-delay: 1.15s; }
.unlock-ceremony--chemistry.is-playing .chemistry-prop--goggles { animation-delay: 1.4s; }
.chemistry-slime { position: absolute; z-index: 4; bottom: 19%; left: -18%; width: clamp(105px, 12vw, 175px); aspect-ratio: 1.2; border: 3px solid #287733; border-radius: 54% 46% 48% 52% / 58% 52% 48% 42%; opacity: 0; background: radial-gradient(circle at 37% 25%, #d6ff8d 0 7%, #8be84f 17%, #42b83e 50%, #207a31 100%); box-shadow: inset -14px -18px 22px rgba(10,84,33,.3), 0 18px 13px rgba(25,81,36,.2); }
.chemistry-slime::before, .chemistry-slime::after { position: absolute; bottom: -12%; width: 30%; height: 34%; border: 3px solid #287733; border-top: 0; border-radius: 0 0 55% 55%; background: #258b35; content: ""; }
.chemistry-slime::before { left: 12%; transform: rotate(12deg); }.chemistry-slime::after { right: 12%; transform: rotate(-10deg); }
.chemistry-slime__shine { position: absolute; top: 15%; left: 20%; width: 18%; height: 12%; border-radius: 50%; background: rgba(255,255,255,.55); transform: rotate(-28deg); }
.chemistry-slime__eye { position: absolute; top: 32%; width: 17%; aspect-ratio: 1; border: 3px solid #174524; border-radius: 50%; background: #faffef; }
.chemistry-slime__eye::after { position: absolute; top: 28%; left: 35%; width: 35%; aspect-ratio: 1; border-radius: 50%; background: #142d1b; content: ""; }
.chemistry-slime__eye--left { left: 25%; }.chemistry-slime__eye--right { right: 25%; }
.chemistry-slime__mouth { position: absolute; top: 61%; left: 39%; width: 23%; height: 11%; border-bottom: 4px solid #174524; border-radius: 50%; }
.unlock-ceremony--chemistry.is-playing .chemistry-slime { animation: chemistry-slime-wander 4.7s 6.3s ease-in-out both; }
.unlock-ceremony--chemistry.is-playing .chemistry-slime__eye::after { animation: chemistry-slime-look 1.1s 6.3s ease-in-out 4 alternate; }
.unlock-ceremony--chemistry .unlock-ceremony__copy { position: absolute; z-index: 6; top: 8%; margin: 0; padding: 20px 30px; border: 0; background: rgba(255,255,255,.9); box-shadow: 0 15px 45px rgba(33,64,51,.08); }
.unlock-ceremony--chemistry.is-playing .unlock-ceremony__copy { animation-delay: 2.35s; }
.chemistry-atmosphere { position: absolute; z-index: 1; inset: 0; overflow: hidden; pointer-events: none; }
.chemistry-atmosphere__orb { position: absolute; border-radius: 50%; opacity: 0; mix-blend-mode: multiply; filter: blur(3px); }
.chemistry-atmosphere__orb--one { top: -12vw; left: -9vw; width: 42vw; height: 42vw; background: radial-gradient(circle at 62% 65%, rgba(162,242,55,.62), rgba(75,179,18,.22) 48%, transparent 70%); }
.chemistry-atmosphere__orb--two { right: -12vw; bottom: -16vw; width: 48vw; height: 48vw; background: radial-gradient(circle at 35% 30%, rgba(206,255,105,.7), rgba(83,177,22,.2) 52%, transparent 72%); }
.chemistry-atmosphere__orb--three { top: 18%; right: 8%; width: 22vw; height: 22vw; background: radial-gradient(circle, rgba(194,255,84,.48), transparent 68%); }
.unlock-ceremony--chemistry.is-playing .chemistry-atmosphere__orb--one { animation: chemistry-orb-bloom 6.8s 400ms ease-out both; }
.unlock-ceremony--chemistry.is-playing .chemistry-atmosphere__orb--two { animation: chemistry-orb-bloom 7.4s 900ms ease-out both reverse; }
.unlock-ceremony--chemistry.is-playing .chemistry-atmosphere__orb--three { animation: chemistry-orb-pulse 5.6s 1.6s ease-in-out both; }
.chemistry-atmosphere__formula { position: absolute; color: rgba(45,105,20,.38); font-family: Georgia, serif; font-size: clamp(1rem, 2.2vw, 2rem); font-style: italic; font-weight: 700; opacity: 0; }
.chemistry-atmosphere__formula--one { top: 12%; left: 8%; transform: rotate(-5deg); }
.chemistry-atmosphere__formula--two { top: 20%; right: 12%; transform: rotate(7deg); }
.chemistry-atmosphere__formula--three { right: 16%; bottom: 17%; transform: rotate(-5deg); }
.unlock-ceremony--chemistry.is-playing .chemistry-atmosphere__formula { animation: chemistry-formula-float 5.4s 2.8s ease-out both; }
.unlock-ceremony--chemistry.is-playing .chemistry-atmosphere__formula--two { animation-delay: 3.3s; }
.unlock-ceremony--chemistry.is-playing .chemistry-atmosphere__formula--three { animation-delay: 3.7s; }
@keyframes chemistry-ceremony-lock { 0% { opacity: 0; transform: translate(-50%, -35%) scale(.55); } 14%, 58% { opacity: 1; transform: translate(-50%, -40%) scale(1); } 70% { opacity: 1; transform: translate(-50%, -40%) rotate(-12deg) scale(1.08); } 100% { opacity: 0; transform: translate(-50%, -115%) rotate(-34deg) scale(.82); } }
@keyframes chemistry-orb-bloom { 0% { opacity: 0; transform: scale(.35); } 42% { opacity: .85; } 100% { opacity: .42; transform: scale(1.15) rotate(22deg); } }
@keyframes chemistry-orb-pulse { 0% { opacity: 0; transform: scale(.4); } 45% { opacity: .75; transform: scale(1.18); } 100% { opacity: .24; transform: scale(.92); } }
@keyframes chemistry-formula-float { 0% { opacity: 0; translate: 0 28px; filter: blur(4px); } 28%, 72% { opacity: .8; filter: blur(0); } 100% { opacity: 0; translate: 16px -70px; filter: blur(2px); } }
@keyframes chemistry-prop-arrive { 0% { opacity: 0; transform: translateY(-90px) rotate(-7deg) scale(.78); } 68% { opacity: 1; transform: translateY(7px) rotate(2deg) scale(1.03); } 100% { opacity: 1; transform: none; } }
@keyframes chemistry-beaker-arrive { 0% { opacity: 0; transform: translate(-50%, -90px) rotate(-5deg) scale(.78); } 68% { opacity: 1; transform: translate(-50%, 7px) rotate(1deg) scale(1.03); } 100% { opacity: 1; transform: translateX(-50%); } }
@keyframes chemistry-slime-wander { 0% { left: -18%; opacity: 0; transform: translateY(0) rotate(-8deg) scale(.75); } 8% { opacity: 1; } 25% { left: 15%; transform: translateY(-26px) rotate(7deg) scale(1,.92); } 46% { left: 42%; transform: translateY(12px) rotate(-5deg) scale(.94,1.06); } 65% { left: 57%; transform: translateY(-34px) rotate(10deg) scale(1.04,.94); } 82% { left: 74%; opacity: 1; transform: translateY(6px) rotate(-4deg); } 100% { left: 112%; opacity: 0; transform: translateY(-20px) rotate(13deg) scale(.78); } }
@keyframes chemistry-slime-look { to { transform: translateX(55%); } }
@keyframes unlock-seal-arrive { from { opacity: 0; transform: translate(-50%, -58%) scale(0.55); filter: blur(9px); } to { opacity: 1; transform: translate(-50%, -58%) scale(1); filter: blur(0); } }
@keyframes unlock-shackle { 0% { transform: rotate(0) translateY(0); } 35% { transform: rotate(-4deg) translateY(3px); } 100% { transform: rotate(-30deg) translate(-8px, -13px); } }
@keyframes unlock-ring { from { opacity: 0.9; transform: scale(0.65); } to { opacity: 0; transform: scale(1.9); } }
@keyframes unlock-seal-leave { to { opacity: 0; transform: translate(-50%, -72%) scale(1.12); filter: blur(8px); } }
@keyframes unlock-copy { to { opacity: 1; transform: translateY(0); } }
@keyframes unlock-glow { 0% { opacity: 0; transform: scale(0.35); } 45% { opacity: 1; } 100% { opacity: 0.72; transform: scale(1); } }

/* Ronda 2: la misma vista de rondas permanece detrás mientras el líquido la cubre. */
.unlock-ceremony--chemistry { opacity: 1; background: transparent; transition: none; }
.unlock-ceremony--chemistry .unlock-ceremony__glow { display: none; }
.unlock-ceremony--chemistry .unlock-ceremony__copy {
    z-index: 8;
    top: 50%;
    width: min(720px, calc(100% - 42px));
    padding: 0;
    color: #fff;
    background: transparent;
    border: 0;
    box-shadow: none;
    text-shadow: 0 4px 24px rgba(2,49,24,.5);
    transform: translateY(calc(-50% + 28px));
}
.unlock-ceremony--chemistry.is-playing .unlock-ceremony__copy { animation: chemistry-flood-copy 700ms 9.35s ease-out both; }
.unlock-ceremony--chemistry .unlock-ceremony__copy .unlock-ceremony__status,
.unlock-ceremony--chemistry .unlock-ceremony__juror,
.unlock-ceremony--chemistry .unlock-ceremony__juror strong { color: #fff; }
.unlock-ceremony--chemistry .unlock-ceremony__copy .unlock-ceremony__status { color: #caffda; }

.chemistry-flood { position: absolute; z-index: 2; inset: 0; overflow: hidden; pointer-events: none; }
.chemistry-flood__liquid { position: absolute; z-index: 3; bottom: -8%; left: -3%; width: 106%; height: 114%; background: linear-gradient(180deg,rgba(31,214,109,.72),rgba(12,172,83,.78) 48%,rgba(5,119,55,.82)); box-shadow: inset 0 22px 35px rgba(217,255,228,.22); backdrop-filter: blur(7px) saturate(1.18); -webkit-backdrop-filter: blur(7px) saturate(1.18); transform: translateY(100%); }
.chemistry-flood__wave { position: absolute; top: -53px; left: -7%; width: 114%; height: 92px; overflow: visible; }
.chemistry-flood__wave path { fill: rgba(7,154,71,.68); }
.chemistry-flood__wave--front { top: -43px; filter: drop-shadow(0 -9px 12px rgba(21,187,88,.2)); }
.chemistry-flood__wave--front path { fill: rgba(34,220,112,.72); }
.chemistry-flood__bubble { position: absolute; bottom: 2%; border: 2px solid rgba(211,255,227,.48); border-radius: 50%; box-shadow: inset 3px 3px 7px rgba(255,255,255,.25); }
.chemistry-flood__bubble--one { left: 18%; width: 32px; height: 32px; }.chemistry-flood__bubble--two { left: 47%; width: 14px; height: 14px; }.chemistry-flood__bubble--three { left: 68%; width: 20px; height: 20px; }.chemistry-flood__bubble--four { left: 84%; width: 48px; height: 48px; }
.chemistry-flood__bubble--five { left: 7%; width: 18px; height: 18px; }.chemistry-flood__bubble--six { left: 29%; width: 45px; height: 45px; }.chemistry-flood__bubble--seven { left: 56%; width: 27px; height: 27px; }.chemistry-flood__bubble--eight { left: 75%; width: 12px; height: 12px; }.chemistry-flood__bubble--nine { left: 91%; width: 25px; height: 25px; }.chemistry-flood__bubble--ten { left: 39%; width: 10px; height: 10px; }
.chemistry-flood__bubble-line { position: absolute; z-index: 2; bottom: 0; left: 0; width: min(38vw,420px); height: 82%; }
.chemistry-flood__bubble-line i { position: absolute; bottom: -35px; left: var(--aquarium-x,12%); width: var(--line-bubble-size,18px); height: var(--line-bubble-size,18px); border: 2px solid rgba(224,255,235,.68); border-radius: 50%; opacity: 0; box-shadow: inset 3px 3px 6px rgba(255,255,255,.28); }
.chemistry-flood__bubble-line i:nth-child(1) { --aquarium-x: 7%; --aquarium-drift: 82px; }.chemistry-flood__bubble-line i:nth-child(2) { --line-bubble-size: 11px; --aquarium-x: 18%; --aquarium-drift: 145px; }.chemistry-flood__bubble-line i:nth-child(3) { --line-bubble-size: 25px; --aquarium-x: 31%; --aquarium-drift: 58px; }.chemistry-flood__bubble-line i:nth-child(4) { --line-bubble-size: 14px; --aquarium-x: 45%; --aquarium-drift: 120px; }.chemistry-flood__bubble-line i:nth-child(5) { --line-bubble-size: 21px; --aquarium-x: 12%; --aquarium-drift: 185px; }.chemistry-flood__bubble-line i:nth-child(6) { --line-bubble-size: 9px; --aquarium-x: 57%; --aquarium-drift: 68px; }.chemistry-flood__bubble-line i:nth-child(7) { --line-bubble-size: 28px; --aquarium-x: 25%; --aquarium-drift: 155px; }.chemistry-flood__bubble-line i:nth-child(8) { --line-bubble-size: 13px; --aquarium-x: 68%; --aquarium-drift: 42px; }
.unlock-ceremony--chemistry.is-playing .chemistry-flood__bubble-line i { animation: chemistry-bubble-line 4.8s 2.4s linear infinite; }.unlock-ceremony--chemistry.is-playing .chemistry-flood__bubble-line i:nth-child(2) { animation-delay: 3s; }.unlock-ceremony--chemistry.is-playing .chemistry-flood__bubble-line i:nth-child(3) { animation-delay: 3.6s; }.unlock-ceremony--chemistry.is-playing .chemistry-flood__bubble-line i:nth-child(4) { animation-delay: 4.2s; }.unlock-ceremony--chemistry.is-playing .chemistry-flood__bubble-line i:nth-child(5) { animation-delay: 4.8s; }.unlock-ceremony--chemistry.is-playing .chemistry-flood__bubble-line i:nth-child(6) { animation-delay: 5.4s; }.unlock-ceremony--chemistry.is-playing .chemistry-flood__bubble-line i:nth-child(7) { animation-delay: 6s; }.unlock-ceremony--chemistry.is-playing .chemistry-flood__bubble-line i:nth-child(8) { animation-delay: 6.6s; }
.chemistry-flood__lock { position: absolute; z-index: 5; bottom: -190px; left: 50%; width: clamp(94px,11vw,142px); opacity: 0; filter: drop-shadow(0 18px 18px rgba(1,49,23,.34)); transform: translateX(-50%) rotate(-8deg); }
.chemistry-flood__lock svg { display: block; width: 100%; overflow: visible; }
.chemistry-flood__shackle { transform-box: fill-box; transform-origin: 19% 100%; }
.chemistry-flood__shackle path { fill: none; stroke: #f1f7f3; stroke-width: 13; stroke-linecap: round; }
.chemistry-flood__lock-body { fill: rgba(246,252,248,.92); stroke: rgba(9,91,43,.72); stroke-width: 4; }
.chemistry-flood__keyhole { fill: #087a3d; }.chemistry-flood__keyhole-stem { fill: none; stroke: #087a3d; stroke-width: 8; stroke-linecap: round; }
.chemistry-flood__lock-shine { fill: none; stroke: rgba(255,255,255,.9); stroke-width: 6; stroke-linecap: round; }
.chemistry-flood__unlock-ring { position: absolute; top: 48%; left: 50%; width: 135%; aspect-ratio: 1; border: 3px solid rgba(220,255,232,.86); border-radius: 50%; opacity: 0; transform: translate(-50%,-50%) scale(.35); }
.unlock-ceremony--chemistry.is-playing .chemistry-flood__lock { animation: chemistry-lock-float 7.2s 1s cubic-bezier(.32,.04,.25,1) both; }
.unlock-ceremony--chemistry.is-playing .chemistry-flood__shackle { animation: chemistry-shackle-open 1s 6.65s cubic-bezier(.2,.8,.2,1.15) both; }
.unlock-ceremony--chemistry.is-playing .chemistry-flood__unlock-ring { animation: chemistry-unlock-ring 1.1s 6.7s ease-out both; }
.unlock-ceremony--chemistry.is-playing .chemistry-flood__liquid { animation: chemistry-screen-fill 7.2s 1s cubic-bezier(.35,.02,.28,1) forwards; }
.unlock-ceremony--chemistry.is-playing .chemistry-flood__wave--back { animation: chemistry-wave-back 2.6s 1s ease-in-out infinite alternate; }.unlock-ceremony--chemistry.is-playing .chemistry-flood__wave--front { animation: chemistry-wave-front 1.9s 1s ease-in-out infinite alternate; }
.unlock-ceremony--chemistry.is-playing .chemistry-flood__bubble { animation: chemistry-bubble-up 3.8s 2.2s ease-in infinite; }.unlock-ceremony--chemistry.is-playing .chemistry-flood__bubble--two { animation-delay: 3.2s; }.unlock-ceremony--chemistry.is-playing .chemistry-flood__bubble--three { animation-delay: 2.7s; }.unlock-ceremony--chemistry.is-playing .chemistry-flood__bubble--four { animation-delay: 4.2s; }
.unlock-ceremony--chemistry.is-playing .chemistry-flood__bubble--five { animation-delay: 2.45s; }.unlock-ceremony--chemistry.is-playing .chemistry-flood__bubble--six { animation-delay: 4.65s; }.unlock-ceremony--chemistry.is-playing .chemistry-flood__bubble--seven { animation-delay: 3.8s; }.unlock-ceremony--chemistry.is-playing .chemistry-flood__bubble--eight { animation-delay: 5.1s; }.unlock-ceremony--chemistry.is-playing .chemistry-flood__bubble--nine { animation-delay: 2.95s; }.unlock-ceremony--chemistry.is-playing .chemistry-flood__bubble--ten { animation-delay: 5.55s; }
@keyframes chemistry-screen-fill { 0% { transform: translateY(100%); } 12% { transform: translateY(88%); } 100% { transform: translateY(0); } }
@keyframes chemistry-wave-back { from { transform: translateX(-1.5%) scaleX(1.02); } to { transform: translate(1.5%,7px) scaleX(1.05); } }
@keyframes chemistry-wave-front { from { transform: translateX(1.5%) scaleX(1.04); } to { transform: translate(-1.5%,-7px) scaleX(1.01); } }
@keyframes chemistry-bubble-up { 0% { opacity: 0; transform: translateY(0) scale(.8); } 18% { opacity: 1; } 100% { opacity: 0; transform: translate(30px,-95vh) scale(1.1); } }
@keyframes chemistry-bubble-line { 0% { bottom: -35px; opacity: 0; transform: translateX(0) scale(.65); } 12% { opacity: .9; } 38% { transform: translateX(32px) scale(.92); } 68% { opacity: .78; transform: translateX(calc(var(--aquarium-drift) - 35px)) scale(1); } 100% { bottom: 78%; opacity: 0; transform: translateX(var(--aquarium-drift)) scale(1.08); } }
@keyframes chemistry-lock-float { 0% { bottom: -190px; opacity: 0; transform: translateX(-50%) rotate(-9deg) scale(.82); } 12% { opacity: 1; } 48% { bottom: calc(50% - 75px); opacity: 1; transform: translateX(-50%) rotate(5deg) scale(1); } 70% { bottom: calc(50% - 69px); opacity: 1; transform: translateX(-50%) rotate(-3deg) scale(1.03); } 86% { bottom: calc(50% - 75px); opacity: 1; transform: translateX(-50%) rotate(2deg) scale(1); } 100% { bottom: calc(50% - 55px); opacity: 0; transform: translateX(-50%) rotate(4deg) scale(1.12); } }
@keyframes chemistry-shackle-open { 0%, 28% { transform: rotate(0) translate(0); } 100% { transform: rotate(-34deg) translate(-9px,-9px); } }
@keyframes chemistry-unlock-ring { 0% { opacity: 0; transform: translate(-50%,-50%) scale(.35); } 25% { opacity: .95; } 100% { opacity: 0; transform: translate(-50%,-50%) scale(1.55); } }
@keyframes chemistry-flood-copy { from { opacity: 0; transform: translateY(calc(-50% + 28px)); filter: blur(5px); } to { opacity: 1; transform: translateY(-50%); filter: blur(0); } }
@media (prefers-reduced-motion: reduce) { .unlock-ceremony--chemistry .chemistry-flood__liquid { transform: translateY(0); } .unlock-ceremony--chemistry .unlock-ceremony__copy { opacity: 1; transform: translateY(-50%); } }
@keyframes jury-dialog-heartbeat { 0%, 28%, 100% { transform: scale(1); box-shadow: 0 30px 90px rgba(16, 42, 52, 0.28), 0 0 0 0 rgba(54, 173, 213, 0); } 38% { transform: scale(1.009); box-shadow: 0 34px 100px rgba(16, 42, 52, 0.34), 0 0 0 9px rgba(54, 173, 213, 0.08); } 47% { transform: scale(1.002); } 54% { transform: scale(1.012); box-shadow: 0 35px 105px rgba(16, 42, 52, 0.35), 0 0 0 14px rgba(54, 173, 213, 0.035); } 66% { transform: scale(1); } }
@keyframes jury-lock-pressure { 0%, 28%, 100% { transform: scale(0.98); filter: drop-shadow(0 0 0 rgba(54,173,213,0)); } 42%, 57% { transform: scale(1.07); filter: drop-shadow(0 0 10px rgba(54,173,213,0.35)); } 68% { transform: scale(1); } }
@keyframes dialog-number-burst { 0%, 26% { opacity: 0; transform: translate(-50%, -50%) rotate(var(--burst-angle)) translateX(14vmin) rotate(calc(-1 * var(--burst-angle))) scale(0.45); } 40% { opacity: 0.95; } 76% { opacity: 0; transform: translate(-50%, -50%) rotate(var(--burst-angle)) translateX(var(--burst-distance)) rotate(calc(-1 * var(--burst-angle))) scale(1.25); } 100% { opacity: 0; } }
@keyframes lock-number-burst { 0%, 27% { opacity: 0; transform: translate(-50%, -50%) rotate(var(--lock-burst-angle)) translateX(8px) rotate(calc(-1 * var(--lock-burst-angle))) scale(0.35); } 39% { opacity: 1; } 68% { opacity: 0; transform: translate(-50%, -50%) rotate(var(--lock-burst-angle)) translateX(var(--lock-burst-distance)) rotate(calc(-1 * var(--lock-burst-angle))) scale(1.15); } 100% { opacity: 0; } }
@keyframes unlock-round-number { 0% { opacity: 0; transform: translateX(-50%) scale(0.55); } 55% { opacity: 1; transform: translateX(-50%) scale(1.08); } 100% { opacity: 0; transform: translateX(-50%) scale(1.28); } }
@keyframes science-particle { 0% { opacity: 0; transform: translate(-50%, -50%) rotate(0) scale(0.2); filter: blur(2px); } 18% { opacity: 0.95; } 72% { opacity: 0.78; } 100% { opacity: 0; transform: translate(-50%, -50%) rotate(var(--particle-angle)) translateX(var(--particle-distance)) rotate(calc(-1 * var(--particle-angle))) rotate(var(--particle-rotation)) scale(var(--particle-scale)); filter: blur(0.7px); } }
@media (prefers-reduced-motion: reduce) { .jury-unlock-dialog[open], .jury-unlock-dialog[open] .round-card__lock-icon, .jury-chemistry-lock *, .unlock-ceremony *, .unlock-ceremony { animation: none !important; transition-duration: 0.01ms !important; } .jury-chemistry-lock__liquid-body { transform: scaleY(0.58); } .jury-chemistry-lock__liquid-surface { transform: translateY(48px); } .unlock-ceremony { opacity: 1; } .unlock-ceremony__seal, .unlock-ceremony__particles, .unlock-ceremony__number-canvas, .chemistry-slime { display: none; } .unlock-ceremony__copy { margin-top: 0; opacity: 1; transform: none; } .chemistry-prop { opacity: 1; transform: none; } }

@media (max-width: 620px) {
    .chemistry-prop--cup { left: 2%; }
    .chemistry-prop--bottle-white { left: 18%; }
    .chemistry-prop--bottle-amber { left: 34%; }
    .chemistry-prop--dropper { left: 48%; }
    .chemistry-prop--beaker { left: 55%; }
    .chemistry-prop--goggles { right: 0; bottom: 15%; }
    .unlock-ceremony--chemistry .unlock-ceremony__copy { top: 5%; width: calc(100% - 28px); padding: 16px 20px; }
}

@media (max-width: 760px) {
    .rounds-overview { display: block; padding: 18px; border-radius: 22px; }
    .rounds-header { margin-bottom: 16px; }
    .rounds-header > p:last-child { white-space: normal; }
    .rounds-overview__actions { align-items: stretch; flex-direction: column; gap: 14px; }
    .rounds-current-link { align-self: flex-start; }
    .tournament-tabs { width: 100%; overflow-x: auto; }
    .tournament-tab { flex: 1 0 auto; justify-content: center; padding: 0 12px; }
    .tournament-phase__heading { align-items: flex-start; flex-direction: column; gap: 10px; }
    .tournament-phase__meta { width: 100%; min-width: 0; align-items: flex-start; }
    .rounds-grid { grid-template-columns: 1fr; }
    .round-card { min-height: 360px; }
    .round-question-list { grid-template-columns: repeat(6, minmax(36px, 1fr)); gap: 8px; }
    .round-question-list li { min-height: 44px; font-size: 0.78rem; }
    .round-progress-strip { grid-template-columns: 1fr auto; gap: 10px; }
    .round-progress-dots { grid-column: 1 / -1; grid-row: 2; }
}

@media (min-width: 761px) and (max-width: 1080px) {
    .rounds-overview { grid-template-columns: 1fr; gap: 16px; }
    .rounds-overview__actions { justify-content: space-between; }
}

@media (max-width: 480px) {
    .tournament-versus { grid-template-columns: 1fr; }
    .tournament-vs-animation { width: 64px; height: 64px; }
    .tournament-school-logo { width: 96px !important; height: 96px !important; }
}

.trivia-header {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    min-height: 78px;
    margin-bottom: 20px;
    padding: 12px 18px;
    border: 1px solid rgba(217, 233, 239, 0.88);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.88);
    box-shadow: 0 10px 35px rgba(29, 99, 123, 0.06);
    backdrop-filter: blur(14px);
}

.brand-lockup { display: flex; align-items: center; gap: 12px; }
.brand-mark {
    display: grid;
    width: 48px;
    height: 48px;
    place-items: center;
    border-radius: 16px;
    color: var(--white);
    font-size: 1.3rem;
    font-weight: 800;
    background: linear-gradient(145deg, var(--sky-300), var(--sky-500));
}
.eyebrow {
    margin: 0 0 4px;
    color: var(--sky-700);
    font-size: clamp(0.66rem, 0.7vw, 0.78rem);
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}
.brand-name { margin: 0; font-size: 1rem; font-weight: 800; }
.question-progress { display: flex; align-items: baseline; gap: 8px; color: var(--muted); }
.question-progress strong { color: var(--ink); font-size: 1.8rem; }
.category-pill {
    justify-self: end;
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 10px 15px;
    border-radius: 999px;
    color: var(--sky-700);
    font-size: 0.86rem;
    font-weight: 700;
    background: var(--sky-50);
}
.category-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); }

.trivia-layout {
    display: grid;
    grid-template-columns: minmax(480px, 1.55fr) minmax(390px, 1fr);
    gap: clamp(14px, 1.25vw, 24px);
    min-height: calc(100vh - 70px);
}
.trivia-layout--text-only {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
    width: min(1380px, 100%);
    min-height: 0;
    margin: 0 auto;
    overflow: hidden;
    border: 1px solid rgba(217, 233, 239, 0.9);
    border-radius: 30px;
    background: var(--white);
    box-shadow: var(--shadow);
}
.trivia-layout--text-only .question-panel,
.trivia-layout--text-only .answers-panel {
    border: 0;
    border-radius: 0;
    box-shadow: none;
}
.trivia-layout--text-only .question-panel {
    padding-bottom: clamp(12px, 1.5vw, 22px);
}
.trivia-layout--text-only .panel-heading h1 {
    max-width: 1200px;
    font-size: clamp(2rem, 3.1vw, 3.65rem);
    line-height: 1.12;
}
.trivia-layout--text-only .answers-panel {
    padding-top: 0;
    padding-inline: clamp(24px, 2.3vw, 44px);
    padding-bottom: clamp(24px, 2.3vw, 38px);
}
.trivia-layout--text-only .answer-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(12px, 1.3vw, 18px);
}
.trivia-layout--text-only .answer-card {
    min-height: clamp(108px, 13vh, 142px);
}
.trivia-layout--text-only .answer-letter {
    width: clamp(54px, 4vw, 68px);
    height: clamp(54px, 4vw, 68px);
    font-size: clamp(1.5rem, 2vw, 2rem);
}
.trivia-layout--text-only .answer-text {
    font-size: clamp(1.7rem, 2.65vw, 2.8rem);
    line-height: 1.12;
}
.trivia-layout--text-only .submit-response { width: min(420px, 100%); margin-left: auto; }
.trivia-layout--text-only .lifelines {
    display: grid;
    grid-template-columns: auto minmax(420px, 640px) auto;
    align-items: center;
    gap: 18px;
    margin-top: 16px;
    border-top: 1px solid var(--line);
}
.trivia-layout--text-only .lifelines-heading { display: contents; }
.trivia-layout--text-only .lifelines-heading > div { white-space: nowrap; }
.trivia-layout--text-only .lifelines-heading > span {
    justify-self: end;
    white-space: nowrap;
}
.trivia-layout--text-only .lifeline-list {
    grid-template-columns: repeat(2, minmax(190px, 1fr));
    gap: 10px;
    margin-top: 0;
}
.trivia-layout--text-only .lifeline-card {
    min-height: 62px;
    padding: 9px 12px;
    border-radius: 15px;
}
.trivia-layout--text-only .lifeline-icon {
    width: 38px;
    height: 38px;
    border-radius: 12px;
}

.question-panel,
.answers-panel,
.schools-panel {
    border: 1px solid rgba(217, 233, 239, 0.9);
    border-radius: 28px;
    background: var(--white);
    box-shadow: var(--shadow);
}

.question-panel { display: flex; min-width: 0; flex-direction: column; padding: clamp(24px, 2.3vw, 44px); }
.panel-heading { display: flex; align-items: flex-start; gap: 18px; }
.panel-number {
    flex: 0 0 auto;
    display: grid;
    width: clamp(80px, 7vw, 112px);
    height: clamp(80px, 7vw, 112px);
    place-items: center;
    border-radius: 22px;
    color: var(--sky-700);
    font-size: clamp(2.75rem, 4vw, 4rem);
    font-weight: 800;
    line-height: 1;
    font-variant-numeric: tabular-nums;
    background: var(--sky-100);
}
.panel-heading h1 {
    max-width: 900px;
    margin: 0;
    font-size: clamp(calc(1.35rem + 2px), calc(2vw + 2px), calc(2.3rem + 2px));
    line-height: 1.2;
    letter-spacing: -0.035em;
}
.question-stage {
    flex: 1;
    display: grid;
    min-height: 340px;
    margin: clamp(28px, 3vh, 48px) 0;
    place-items: center;
    overflow: hidden;
    border: 2px solid var(--sky-100);
    border-radius: 28px;
    background:
        linear-gradient(rgba(141, 215, 239, 0.06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(141, 215, 239, 0.06) 1px, transparent 1px),
        var(--sky-50);
    background-size: 28px 28px;
}
.function-graph-crop {
    position: relative;
    width: min(100%, 620px);
    aspect-ratio: 1;
    overflow: hidden;
}
.function-graph-crop img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
}
.formula {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: clamp(14px, 2vw, 30px);
    padding: 40px;
    color: #102a34;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(2.2rem, 4.3vw, 5.4rem);
    font-weight: 600;
    text-align: center;
}
.formula-divider {
    color: var(--sky-700);
    font-family: "Manrope", sans-serif;
    font-size: 0.3em;
    font-weight: 700;
    text-transform: uppercase;
}

.answers-panel { display: flex; flex-direction: column; padding: clamp(20px, 1.7vw, 30px); }
.section-heading,
.lifelines-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.section-heading h2,
.lifelines-heading h2,
.schools-heading h2 { margin: 0; font-size: clamp(1.1rem, 1.25vw, 1.45rem); letter-spacing: -0.025em; }
.answer-key-button,
.reset-schools {
    border: 0;
    color: var(--sky-700);
    font-size: 0.72rem;
    font-weight: 800;
    background: none;
    cursor: pointer;
}
.answer-key-button:hover,
.reset-schools:hover { text-decoration: underline; }
.answer-list { display: grid; gap: clamp(10px, 1.25vh, 15px); margin-top: 20px; }
.submit-response,
.select-school-prompt { display: block; width: 100%; margin-top: 16px; padding: 13px 16px; border: 0; border-radius: 14px; font-weight: 800; text-align: center; }
.submit-response { color: var(--white); background: var(--sky-700); cursor: pointer; }
.submit-response:disabled { color: var(--muted); background: var(--line); cursor: not-allowed; }
.select-school-prompt { color: var(--sky-700); text-decoration: none; background: var(--sky-100); }
.response-notice { display: flex; align-items: center; gap: 8px; margin: -6px 0 14px; padding: 12px 18px; border: 1px solid var(--sky-300); border-radius: 16px; color: var(--sky-700); font-size: 0.85rem; background: var(--sky-50); }
.response-notice a { margin-left: auto; color: inherit; font-weight: 800; }
.response-notice--correct { border-color: var(--green); color: var(--green); background: var(--green-soft); }
.response-notice--incorrect { border-color: #f3caca; color: var(--red); background: var(--red-soft); }
.response-notice[hidden],
.response-notice.is-empty { display: none; }

.scoreboard-page { min-height: 100vh; padding: clamp(18px, 2vw, 32px) clamp(14px, 4vw, 56px) 40px; background: var(--canvas); }
.streak-page { min-height: 100vh; background: radial-gradient(circle at 85% 8%, rgba(255, 187, 70, .3) 0, rgba(255, 224, 164, .24) 20%, transparent 40%), var(--canvas); }
.streak-ranking { width: min(1120px, calc(100% - 28px)); margin: 0 auto; padding: clamp(24px, 4vw, 48px) 0 56px; }
.streak-ranking__header { display: grid; gap: 24px; margin-bottom: 34px; }
.streak-ranking h1 { margin: 0; font-size: clamp(3.8rem, 8vw, 7rem); line-height: .86; letter-spacing: -.07em; }
.streak-ranking__intro { max-width: 610px; margin: 24px 0 0; padding-left: 1.25em; color: var(--muted); font-size: clamp(.9rem, 1.3vw, 1.05rem); line-height: 1.65; }
.streak-ranking__intro li::marker { color: #e56725; }
.streak-ranking__tabs { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.streak-ranking__tabs a { display: inline-flex; min-height: 44px; align-items: center; justify-content: center; padding: 0 20px; border: 1px solid rgba(21, 54, 65, .11); border-radius: 999px; color: var(--muted); font-weight: 850; text-decoration: none; background: rgba(255,255,255,.82); box-shadow: 0 8px 18px rgba(29, 99, 123, .06); }
.streak-ranking__tabs a.is-active { border-color: #e56725; color: #fff; background: #e56725; box-shadow: 0 12px 24px rgba(229, 103, 37, .2); }
.streak-ranking__record { display: grid; grid-template-columns: 76px auto; grid-template-rows: auto auto auto; min-width: 250px; padding: 18px 26px 18px 14px; border: 1px solid #ffd3aa; border-radius: 28px; color: #a84616; background: rgba(255, 249, 239, .92); box-shadow: 0 18px 50px rgba(185, 91, 24, .13); }
.streak-ranking__record dotlottie-player { grid-row: 1 / 4; align-self: center; width: 72px; height: 72px; }
.streak-ranking__record span { color: #bd622e; font-size: .68rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.streak-ranking__record strong { font-size: 2.7rem; line-height: 1; }
.streak-ranking__record small { color: #b26d46; font-weight: 700; }
.streak-ranking__list { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.streak-card { display: grid; grid-template-columns: 82px minmax(0, 1fr) 150px; align-items: center; gap: 18px; min-height: 104px; padding: 10px 20px; border: 1px solid var(--line); border-radius: 26px; background: rgba(255, 255, 255, .94); box-shadow: 0 10px 30px rgba(29, 99, 123, .07); }
.streak-card--leader { grid-template-columns: 104px minmax(0, 1fr) 180px; min-height: 136px; padding: 16px 26px; border-color: #f0bc56; border-width: 2px; background: linear-gradient(100deg, #fff7dd, #fffdf7 68%, #fff); box-shadow: 0 18px 46px rgba(190, 125, 14, .18); }
.streak-card--legendary,
.streak-card--leader.streak-card--legendary { border-color: #f4b942; background: linear-gradient(110deg, #0b2f4a, #243b72 72%, #172d5d); box-shadow: 0 18px 46px rgba(19, 43, 91, .3), inset 0 0 0 1px rgba(255, 215, 120, .18); }
.streak-card--legendary .streak-card__school strong { color: #fff; }
.streak-card--legendary .streak-card__school small { color: #bdd7ef; }
.streak-card--legendary .streak-card__score { color: #ffc14d; }
.streak-card--legendary .streak-card__score small { color: #ffe0a1; }
.streak-card__logo { display: grid; width: 76px; height: 76px; place-items: center; overflow: hidden; border: 4px solid #fff; border-radius: 50%; color: var(--sky-700); font-weight: 800; background: var(--sky-100); box-shadow: 0 6px 18px rgba(54, 173, 213, .18); }
.streak-card--leader .streak-card__logo { width: 96px; height: 96px; border-width: 5px; box-shadow: 0 10px 26px rgba(190, 125, 14, .18); }
.streak-card__logo img { width: 100%; height: 100%; object-fit: contain; }
.streak-card__school { display: grid; min-width: 0; gap: 5px; }
.streak-card__school strong { overflow: hidden; font-size: clamp(1.25rem, 2.2vw, 1.9rem); text-overflow: ellipsis; white-space: nowrap; }
.streak-card--leader .streak-card__school strong { font-size: clamp(1.65rem, 3vw, 2.45rem); }
.streak-card--leader .streak-card__school small { font-size: .95rem; }
.streak-card__school small { color: var(--muted); font-weight: 700; }
.streak-card__school i { display: inline-block; width: 7px; height: 7px; margin-right: 3px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px rgba(55, 169, 107, .12); }
.streak-card__score { display: grid; grid-template-columns: 48px 1fr; grid-template-rows: 1fr 1fr; align-items: center; justify-items: end; color: #e96725; }
.streak-card__score dotlottie-player { grid-row: 1 / 3; width: 48px; height: 48px; }
.streak-card--leader .streak-card__score dotlottie-player { width: 62px; height: 62px; }
.streak-card__score strong { align-self: end; font-size: 2.5rem; line-height: .9; }
.streak-card--leader .streak-card__score strong { font-size: 3.35rem; }
.streak-card__score small { align-self: start; color: #b67854; font-size: .7rem; font-weight: 800; }
.streak-ranking__empty { padding: clamp(50px, 9vw, 100px) 20px; border: 1px dashed #efbd87; border-radius: 32px; text-align: center; background: rgba(255,255,255,.7); }
.streak-ranking__empty dotlottie-player { width: 120px; height: 120px; margin: 0 auto; }
.streak-ranking__empty h2 { margin: 4px 0 10px; font-size: clamp(1.7rem, 4vw, 2.7rem); }
.streak-ranking__empty p { margin: 0; color: var(--muted); }
.live-scoreboard { width: min(1100px, 100%); margin: 0 auto; padding: clamp(28px, 3vw, 46px); border: 1px solid var(--line); border-radius: 34px; background: var(--white); box-shadow: var(--shadow); }
.scoreboard-result-layout { width: min(1100px, 100%); margin: 0 auto; }
.scoreboard-result-layout .live-scoreboard { width: 100%; margin: 0; }
.scoreboard-result-layout--with-actions { width: min(1100px, 100%); }
.scoreboard-result-layout--duel { width: min(1420px, 100%); }
.live-scoreboard__header { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 22px; }
.live-scoreboard__heading { display: flex; min-width: 0; align-items: center; gap: 18px; }
.live-scoreboard__header h1 { margin: 0; font-size: clamp(3rem, 5vw, 5.2rem); letter-spacing: -0.055em; }
.score-result { display: flex; align-items: center; gap: 14px; padding: 12px 22px 12px 12px; border-radius: 999px; color: var(--green); font-size: clamp(1rem, 1.4vw, 1.3rem); font-weight: 800; background: var(--green-soft); }
.score-result span { display: grid; width: 58px; height: 58px; place-items: center; border-radius: 50%; color: var(--white); font-size: 1.3rem; background: var(--green); }
.score-result--incorrect { color: var(--red); background: var(--red-soft); }
.score-result--incorrect span { background: var(--red); }
.live-scoreboard__heading .score-result { flex: 0 1 auto; gap: 8px; padding: 7px 12px 7px 7px; font-size: 0.75rem; white-space: nowrap; }
.live-scoreboard__heading .score-result span { width: 38px; height: 38px; font-size: 0.9rem; }
.score-result__streak { color: #e96725; font-weight: 900; }
.streak-badge {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 1px;
    margin-left: 6px;
    padding: 1px 6px 1px 1px;
    border-radius: 999px;
    background: #fff3e8;
    color: #f06c28;
    vertical-align: middle;
}
.streak-badge__fire { width: 36px; height: 36px; }
.streak-badge strong {
    font-size: 1rem;
    font-weight: 800;
}
.streak-badge--large { padding-right: 8px; background: #ffe9d5; }
.streak-badge--large .streak-badge__fire { width: 39px; height: 39px; }
.streak-badge--large strong { font-size: 0.9rem; }
.streak-badge--after-dragon { opacity: 0; animation: reveal-streak 450ms ease 3s forwards; }
.dragon-celebration {
    position: fixed;
    inset: 50% auto auto 50%;
    z-index: 900;
    display: flex;
    align-items: center;
    gap: clamp(8px, 2vw, 28px);
    width: min(760px, calc(100% - 32px));
    padding: clamp(74px, 7vw, 94px) clamp(18px, 3vw, 34px) clamp(18px, 3vw, 34px);
    border: 2px solid #ffca79;
    border-radius: 36px;
    background: rgba(255, 250, 240, 0.97);
    box-shadow: 0 28px 100px rgba(120, 57, 8, 0.32);
    transform: translate(-50%, -50%);
    animation: dragon-entrance 3.4s ease both;
    pointer-events: none;
}
.dragon-celebration__title {
    position: absolute;
    top: clamp(22px, 3vw, 34px);
    left: 50%;
    width: calc(100% - 40px);
    margin: 0;
    color: #000;
    font-size: clamp(1.7rem, 4vw, 3rem);
    line-height: 1;
    letter-spacing: -0.04em;
    text-align: center;
    transform: translateX(-50%);
}
.dragon-celebration__school-logo {
    flex: 0 1 280px;
    display: grid;
    width: min(280px, 38vw);
    height: clamp(180px, 26vw, 280px);
    place-items: center;
}
.dragon-celebration__school-logo img {
    width: 88%;
    height: 88%;
    object-fit: contain;
    object-position: center;
    transform: translateY(-7%);
}
.dragon-celebration__logo-placeholder {
    display: grid;
    width: 100%;
    height: 100%;
    place-items: center;
    border: 3px dashed var(--sky-300);
    border-radius: 28px;
    color: var(--sky-700);
    font-size: 1rem;
    font-weight: 900;
    letter-spacing: 0.16em;
    background: var(--sky-100);
}
.dragon-celebration__logo-placeholder[hidden] { display: none; }
.dragon-celebration__dragon { flex: 0 0 auto; width: clamp(180px, 32vw, 330px); height: clamp(180px, 32vw, 330px); }
@keyframes dragon-entrance {
    0% { opacity: 0; transform: translate(-50%, -43%) scale(0.76); }
    12%, 78% { opacity: 1; transform: translate(-50%, -50%) scale(1); }
    100% { opacity: 0; transform: translate(-50%, -54%) scale(0.94); visibility: hidden; }
}
@keyframes reveal-streak {
    from { opacity: 0; transform: scale(0.65); }
    to { opacity: 1; transform: scale(1); }
}
.ranking-list { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.ranking-row { display: grid; grid-template-columns: 36px 80px 72px minmax(0, 1fr) 120px; align-items: center; gap: 12px; min-height: 84px; padding: 7px 16px; border: 1px solid var(--sky-100); border-radius: 21px; background: linear-gradient(90deg, rgba(239, 250, 255, 0.86), var(--white)); animation: ranking-move 3.2s cubic-bezier(0.22, 0.72, 0.24, 1) both; animation-delay: calc(900ms + var(--row-delay) * 40ms); }
.ranking-row.is-current { z-index: 2; border-color: var(--sky-500); box-shadow: 0 8px 24px rgba(54, 173, 213, 0.14); animation-name: ranking-move-current; }
.ranking-row.is-golden-streak {
    border-color: #e7ad24;
    background: linear-gradient(90deg, #fff7d8, #fffdf5 68%, #ffffff);
    box-shadow: 0 8px 28px rgba(203, 143, 15, 0.24), inset 0 0 0 1px rgba(255, 218, 105, 0.34);
}
.ranking-row.is-golden-streak .ranking-bubble {
    color: #9b6a00;
    background: #fff0b8;
    box-shadow: 0 4px 16px rgba(203, 143, 15, 0.24);
}
.ranking-position { color: var(--muted); font-size: 1.15rem; font-weight: 800; text-align: center; }
.ranking-lifelines { display: flex; align-items: center; gap: 6px; }
.ranking-lifeline { display: grid; width: 34px; height: 34px; place-items: center; overflow: hidden; border: 1px solid #bfe7d0; border-radius: 50%; color: var(--green); font-size: 0.8rem; font-weight: 800; background: var(--green-soft); }
.ranking-lifeline img { width: 31px; height: 31px; object-fit: contain; }
.ranking-lifeline--fifty img { width: 44px; height: 44px; }
.ranking-lifeline.is-used { opacity: 0.3; filter: grayscale(1); background: #e5e9ec; border-color: #cbd2d8; }
.ranking-bubble { display: grid; width: 68px; height: 68px; place-items: center; overflow: hidden; border: 4px solid var(--white); border-radius: 50%; color: var(--sky-700); font-size: 1.05rem; font-weight: 800; background: var(--sky-100); box-shadow: 0 6px 18px rgba(54, 173, 213, 0.22); }
.ranking-bubble img { width: 100%; height: 100%; object-fit: contain; }
.ranking-school { display: flex; min-width: 0; align-items: center; overflow: hidden; font-size: clamp(1.35rem, 2.1vw, 2rem); font-weight: 800; white-space: nowrap; }
.ranking-school > span:first-child { overflow: hidden; text-overflow: ellipsis; }
.ranking-score { color: var(--ink); font-size: clamp(1.8rem, 3vw, 2.6rem); text-align: right; }
.ranking-score--calculation {
    position: relative;
    display: grid;
    min-height: 1.15em;
    align-items: center;
    justify-items: end;
}
.ranking-score__operation,
.ranking-score__final { grid-area: 1 / 1; white-space: nowrap; }
.ranking-score__operation {
    display: flex;
    align-items: baseline;
    gap: .16em;
    color: var(--ink);
    font-size: .82em;
    animation: score-operation-out 3.2s ease both;
}
.ranking-score__operation i { font-style: normal; }
.ranking-score__operation--subtract i,
.ranking-score__operation--subtract span:last-child { color: var(--red); }
.ranking-score__operation--add i,
.ranking-score__operation--add span:last-child { color: var(--green); }
.ranking-score__final {
    color: var(--ink);
    opacity: 0;
    animation: score-final-in 3.2s cubic-bezier(.2,.8,.2,1) both;
}
@keyframes score-operation-out {
    0%, 55% { opacity: 1; filter: blur(0); transform: scale(1); }
    72%, 100% { opacity: 0; filter: blur(5px); transform: scale(.86); }
}
@keyframes score-final-in {
    0%, 62% { opacity: 0; transform: scale(.72); }
    78% { opacity: 1; transform: scale(1.13); }
    100% { opacity: 1; transform: scale(1); }
}
.live-scoreboard--duel { width: min(1420px, 100%); padding: clamp(34px, 4vw, 62px); }
.scoreboard-result-layout .live-scoreboard--duel { width: 100%; }
.live-scoreboard--duel .live-scoreboard__header { margin-bottom: clamp(28px, 3vw, 44px); }
.ranking-list--duel { gap: clamp(18px, 2vw, 28px); }
.ranking-list--duel .ranking-row {
    grid-template-columns: 54px 116px 132px minmax(0, 1fr) minmax(270px, 320px);
    gap: clamp(16px, 2vw, 30px);
    min-height: clamp(170px, 16vw, 220px);
    padding: clamp(18px, 2vw, 30px);
    border-width: 2px;
    border-radius: 32px;
}
.ranking-list--duel .ranking-position { font-size: clamp(1.35rem, 2vw, 1.8rem); }
.ranking-list--duel .ranking-lifelines { gap: 10px; }
.ranking-list--duel .ranking-lifeline { width: 50px; height: 50px; border-width: 2px; }
.ranking-list--duel .ranking-lifeline img { width: 46px; height: 46px; }
.ranking-list--duel .ranking-lifeline--fifty img { width: 64px; height: 64px; }
.ranking-list--duel .ranking-bubble {
    width: clamp(104px, 10vw, 132px);
    height: clamp(104px, 10vw, 132px);
    border-width: 7px;
    font-size: clamp(1.7rem, 3vw, 2.6rem);
}
.ranking-list--duel .ranking-school { font-size: clamp(2.2rem, 4vw, 4rem); letter-spacing: -.045em; }
.ranking-list--duel .ranking-score {
    justify-self: stretch;
    width: 100%;
    box-sizing: border-box;
    padding-right: clamp(20px, 2.5vw, 48px);
    font-size: clamp(3.8rem, 6vw, 6.4rem);
    letter-spacing: -.055em;
    text-align: center;
}
.scoreboard-actions { display: flex; flex: 0 0 auto; align-items: center; justify-content: flex-end; flex-wrap: nowrap; gap: 7px; }
.scoreboard-actions > a,
.scoreboard-actions button { display: block; width: auto; padding: 8px 12px; border: 0; border-radius: 999px; color: var(--white); font-size: 0.68rem; font-weight: 800; line-height: 1; text-align: center; text-decoration: none; background: var(--sky-700); cursor: pointer; }
.scoreboard-actions form { width: auto; margin: 0; }
.scoreboard-actions .scoreboard-actions__secondary { color: var(--sky-700); background: var(--sky-100); }
.scoreboard-actions .scoreboard-actions__revert { color: #8a3a00; background: #fff1d8; }
.scoreboard-actions .scoreboard-actions__sound { padding: 7px 9px; color: var(--muted); font-size: 0.64rem; background: var(--sky-50); opacity: 0.75; }
.scoreboard-actions .scoreboard-actions__sound:hover,
.scoreboard-actions .scoreboard-actions__sound.is-needed { color: var(--sky-700); background: var(--sky-50); opacity: 1; }
@keyframes ranking-move {
    0% { opacity: 0.72; transform: translateY(calc(var(--movement) * 92px)); }
    18% { opacity: 1; transform: translateY(calc(var(--movement) * 92px)); }
    100% { opacity: 1; transform: translateY(0); }
}
@keyframes ranking-move-current {
    0% { transform: translateY(calc(var(--movement) * 92px)) scale(1); }
    18% { transform: translateY(calc(var(--movement) * 92px)) scale(1.035); box-shadow: 0 10px 30px rgba(54, 173, 213, 0.2); }
    82% { transform: translateY(0) scale(1.035); box-shadow: 0 10px 30px rgba(54, 173, 213, 0.2); }
    100% { transform: translateY(0) scale(1); }
}
.answer-card {
    display: grid;
    grid-template-columns: clamp(52px, 4vw, 66px) 1fr 22px;
    align-items: center;
    min-height: clamp(88px, 10vh, 116px);
    padding: clamp(14px, 1.4vh, 20px) clamp(18px, 1.5vw, 26px);
    border: 1.5px solid var(--line);
    border-radius: 20px;
    color: var(--ink);
    text-align: left;
    background: var(--white);
    cursor: pointer;
    transition: transform 160ms ease, border-color 160ms ease, background 160ms ease, box-shadow 160ms ease;
}
.answer-card:hover { transform: translateY(-2px); border-color: var(--sky-300); box-shadow: 0 10px 24px rgba(54, 173, 213, 0.1); }
.answer-card.is-selected { border-color: var(--sky-500); background: var(--sky-50); box-shadow: 0 0 0 3px rgba(54, 173, 213, 0.1); }
.answer-card.is-correct { border-color: var(--green); background: var(--green-soft); }
.answer-card.is-review-wrong { border-color: var(--red); background: var(--red-soft); }
.answer-card.is-review-wrong .answer-letter { color: var(--white); background: var(--red); }
.answer-card.is-review-wrong .answer-status { background: var(--red); box-shadow: 0 0 0 5px rgba(207, 74, 74, 0.12); }
.answer-card:disabled { cursor: default; }
.review-badge { padding: 7px 11px; border-radius: 999px; color: var(--muted); font-size: 0.7rem; font-weight: 800; background: #f1f5f6; }
.review-actions { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-top: 14px; padding: 4px 2px; color: var(--muted); font-size: 0.76rem; }
.review-actions a { flex: 0 0 auto; color: var(--sky-700); font-weight: 800; text-decoration: none; }
.review-actions a:hover { text-decoration: underline; }
.answer-card.is-eliminated { visibility: hidden; pointer-events: none; }
.answer-card.is-fifty-eliminating {
    z-index: 1;
    pointer-events: none;
    animation: fifty-answer-disappears .9s cubic-bezier(.2,.8,.2,1) both;
}
@keyframes fifty-answer-disappears {
    0% { opacity: 1; filter: grayscale(0); transform: scale(1); }
    16% { transform: scale(1.045); }
    31% { transform: scale(.985); }
    46% { transform: scale(1.055); }
    61% { opacity: 1; filter: grayscale(.45); transform: scale(1); }
    100% { opacity: 0; filter: grayscale(1); transform: scale(.72); }
}
@media (prefers-reduced-motion: reduce) {
    .answer-card.is-fifty-eliminating { animation-duration: .01ms; }
}
.answer-letter {
    display: grid;
    width: clamp(44px, 3vw, 54px);
    height: clamp(44px, 3vw, 54px);
    place-items: center;
    border-radius: 15px;
    color: var(--sky-700);
    font-size: clamp(1.25rem, 1.5vw, 1.65rem);
    font-weight: 800;
    background: var(--sky-100);
}
.answer-card.is-correct .answer-letter { color: var(--white); background: var(--green); }
.answer-text {
    font-size: clamp(1.35rem, 2.2vw, 2.1rem);
    line-height: 1.2;
}
.answer-status { width: 10px; height: 10px; border-radius: 50%; background: var(--line); }
.answer-card.is-selected .answer-status { background: var(--sky-500); }
.answer-card.is-correct .answer-status { background: var(--green); box-shadow: 0 0 0 5px rgba(55, 169, 107, 0.12); }

.lifelines { margin-top: 0; padding-top: clamp(14px, 2vh, 22px); }
.lifelines-heading > span { color: var(--muted); font-size: 0.7rem; font-weight: 700; }
.lifeline-list { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 14px; }
.lifeline-slot { position: relative; min-height: 71px; }
.lifeline-card {
    display: flex;
    width: 100%;
    min-height: 71px;
    align-items: center;
    gap: 10px;
    padding: 13px;
    border: 1px solid var(--line);
    border-radius: 18px;
    color: var(--ink);
    text-align: left;
    background: var(--white);
    cursor: pointer;
}
.lifeline-card:hover { border-color: var(--sky-300); background: var(--sky-50); }
.lifeline-card.is-used { opacity: 0.42; filter: grayscale(1); color: #667078; background: #e9edf0; border-color: #cbd2d8; cursor: not-allowed; }
.lifeline-used-card {
    display: none;
    width: 100%;
    min-height: 71px;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 1px dashed #bdc8ce;
    border-radius: 18px;
    color: #6d797f;
    font-size: .72rem;
    background: #edf1f3;
    animation: lifeline-used-arrives .28s ease-out both;
}
.lifeline-used-card b {
    display: grid;
    width: 23px;
    height: 23px;
    place-items: center;
    border-radius: 50%;
    color: var(--white);
    background: #839198;
}
.lifeline-slot.is-used .lifeline-card { display: none; }
.lifeline-slot.is-used .lifeline-used-card { display: flex; }
@keyframes lifeline-used-arrives {
    from { opacity: 0; transform: scale(.96); }
    to { opacity: 1; transform: scale(1); }
}
.lifeline-card:disabled:not(.is-used) { opacity: 0.58; cursor: not-allowed; }
.lifeline-icon { display: grid; flex: 0 0 auto; width: 43px; height: 43px; place-items: center; overflow: hidden; border-radius: 14px; background: var(--green-soft); }
.lifeline-icon img { width: 40px; height: 40px; object-fit: contain; }
.lifeline-card[data-lifeline="fifty"] .lifeline-icon img { width: 56px; height: 56px; }
.lifeline-fallback { color: var(--green); font-size: 1.35rem; font-weight: 800; }
.lifeline-fifty { font-size: 0.9rem; }

body.has-call-lifeline-overlay { overflow: hidden; }
.call-lifeline-overlay {
    position: fixed;
    z-index: 1000;
    inset: 0;
    display: grid;
    place-items: center;
    padding: 24px;
    visibility: hidden;
    opacity: 0;
    background: rgba(9, 30, 35, .28);
    backdrop-filter: blur(13px) saturate(.85);
    -webkit-backdrop-filter: blur(13px) saturate(.85);
    transition: opacity .35s ease, visibility .35s ease;
}
.call-lifeline-overlay.is-visible { visibility: visible; opacity: 1; }
.call-lifeline-dialog {
    display: grid;
    width: min(92vw, 440px);
    justify-items: center;
    padding: 38px 34px 32px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,.72);
    border-radius: 34px;
    text-align: center;
    background: rgba(255,255,255,.92);
    box-shadow: 0 30px 90px rgba(1, 28, 17, .26);
    transform: translateY(14px) scale(.94);
    transition: transform .42s cubic-bezier(.2,.8,.2,1);
}
.call-lifeline-overlay.is-visible .call-lifeline-dialog { transform: translateY(0) scale(1); }
.call-lifeline-pulse {
    position: relative;
    display: grid;
    width: 210px;
    height: 210px;
    place-items: center;
    margin-bottom: 15px;
}
.call-lifeline-ring {
    position: absolute;
    inset: 21px;
    border: 2px solid rgba(37,211,102,.58);
    border-radius: 50%;
    animation: call-lifeline-wave 1.35s ease-out infinite;
}
.call-lifeline-ring:nth-child(2) { animation-delay: .45s; }
.call-lifeline-ring:nth-child(3) { animation-delay: .9s; }
.call-lifeline-lottie {
    position: relative;
    z-index: 2;
    display: grid;
    width: 146px;
    height: 146px;
    place-items: center;
    overflow: hidden;
    border: 5px solid rgba(255,255,255,.92);
    border-radius: 50%;
    background: radial-gradient(circle at 34% 26%, #61ed91, #25d366 55%, #128c4a);
    box-shadow: 0 0 0 10px rgba(37,211,102,.12), 0 18px 38px rgba(18,140,74,.3);
    animation: call-lifeline-heartbeat 1.35s ease-in-out infinite;
}
.call-lifeline-lottie dotlottie-player { width: 118px; height: 118px; filter: drop-shadow(0 8px 10px rgba(3,86,36,.18)); }
.call-lifeline-dialog > .eyebrow { margin: 0; color: #128c4a; }
.call-lifeline-dialog h2 { margin: 7px 0 8px; font-size: 1.55rem; }
.call-lifeline-dialog > p:last-of-type { max-width: 315px; margin: 0; color: var(--muted); line-height: 1.5; }
@keyframes call-lifeline-wave {
    0% { opacity: .72; transform: scale(.72); }
    72%, 100% { opacity: 0; transform: scale(1.34); }
}
@keyframes call-lifeline-heartbeat {
    0%, 100% { transform: scale(1); }
    12% { transform: scale(1.045); }
    24% { transform: scale(1); }
    36% { transform: scale(1.075); }
    55% { transform: scale(1); }
}
@media (prefers-reduced-motion: reduce) {
    .call-lifeline-ring, .call-lifeline-lottie { animation: none; }
}
.lifeline-card strong,
.lifeline-card small { display: block; }
.lifeline-card strong { font-size: 0.78rem; }
.lifeline-card small { margin-top: 2px; color: var(--muted); font-size: 0.58rem; }

.schools-panel { display: flex; min-width: 0; flex-direction: column; padding: clamp(16px, 1.35vw, 24px); }
.schools-heading { padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.schools-heading > p:last-child { margin: 7px 0 0; color: var(--muted); font-size: 0.68rem; line-height: 1.4; }
.school-list { display: grid; gap: 8px; margin: 14px 0; }
.school-card {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr) 8px;
    align-items: center;
    gap: 9px;
    min-height: 58px;
    padding: 7px;
    border: 1px solid var(--line);
    border-radius: 16px;
    color: var(--ink);
    text-align: left;
    background: var(--white);
    cursor: pointer;
    transition: border-color 150ms ease, background 150ms ease, opacity 150ms ease;
}
.school-card:hover { border-color: var(--sky-300); }
.school-logo { display: grid; width: 42px; height: 42px; place-items: center; overflow: hidden; border-radius: 13px; background: var(--sky-100); }
.school-logo img { width: 100%; height: 100%; object-fit: contain; }
.school-initials { color: var(--sky-700); font-size: 0.78rem; font-weight: 800; }
.school-name { overflow: hidden; font-size: clamp(0.62rem, 0.72vw, 0.78rem); font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.school-indicator { width: 7px; height: 7px; border-radius: 50%; background: var(--line); }
.school-card.is-first { border-color: var(--green); background: var(--green-soft); box-shadow: 0 8px 18px rgba(55, 169, 107, 0.12); }
.school-card.is-first .school-indicator { background: var(--green); }
.school-card.is-late { border-color: #f3caca; color: #9c5d5d; background: var(--red-soft); opacity: 0.78; }
.school-card.is-late .school-logo { background: #ffe0e0; }
.school-card.is-late .school-indicator { background: var(--red); }
.school-card.is-late:hover { border-color: #e9aaaa; background: #ffeaea; opacity: 0.9; }
.reset-schools { margin-top: auto; padding-top: 8px; }

.control-page {
    min-height: 100vh;
    background:
        radial-gradient(circle at 8% 4%, rgba(141, 215, 239, 0.22), transparent 25rem),
        var(--canvas);
}
.control-shell { width: min(1440px, 100%); margin: 0 auto; padding: 24px clamp(16px, 4vw, 56px) 40px; }
.control-header { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 26px; }
.control-header h1 { margin: 0; font-size: clamp(2rem, 4vw, 3.6rem); letter-spacing: -0.05em; }
.control-header p:last-child { margin: 10px 0 0; color: var(--muted); }
.control-back { flex: 0 0 auto; padding: 11px 16px; border-radius: 999px; color: var(--sky-700); font-size: 0.8rem; font-weight: 800; text-decoration: none; background: var(--sky-100); }
.control-back:hover { background: #cceefa; }
.control-schools { min-height: 0; padding: clamp(22px, 3vw, 38px); }
.control-schools .school-list { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin: 24px 0; }
.control-schools .school-list form { min-width: 0; }
.control-schools .school-card { position: relative; min-height: 170px; grid-template-columns: 1fr; justify-items: center; padding: 14px; border-radius: 20px; }
.control-schools .school-logo {
    width: min(100%, 142px);
    height: auto;
    aspect-ratio: 1;
    padding: 6px;
    overflow: visible;
    border-radius: 0;
    background: transparent;
}
.control-schools .school-logo img {
    display: block;
    width: 100%;
    height: 100%;
    padding: 0;
    object-fit: contain;
    object-position: center;
}
.control-schools .school-indicator { position: absolute; right: 12px; bottom: 12px; }
.school-image-placeholder { display: grid; width: 100%; height: 100%; place-content: center; border: 2px dashed var(--sky-300); border-radius: 14px; color: var(--sky-700); text-align: center; background: var(--sky-100); }
.school-image-placeholder[hidden] { display: none; }
.school-image-placeholder span { font-size: 0.72rem; font-weight: 900; letter-spacing: 0.12em; }
.school-image-placeholder small { margin-top: 4px; color: var(--muted); font-size: 0.62rem; font-weight: 700; }
.control-schools .school-name { font-size: clamp(0.78rem, 1.1vw, 1rem); }
.control-schools .reset-schools { align-self: center; padding: 12px; }
.control-selection { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-top: 8px; padding: 14px 18px; border: 1px solid var(--green); border-radius: 16px; color: var(--green); font-size: 0.85rem; background: var(--green-soft); }
.control-selection a { flex: 0 0 auto; padding: 9px 14px; border-radius: 999px; color: var(--white); font-weight: 800; text-decoration: none; background: var(--green); }
.control-selection__actions { display: flex; align-items: center; gap: 8px; }
.control-selection__actions form { margin: 0; }
.control-selection__actions button { padding: 9px 14px; border: 1px solid var(--green); border-radius: 999px; color: var(--green); font-weight: 800; background: var(--white); cursor: pointer; }
.school-card.is-steal-excluded { opacity: 0.32; filter: grayscale(1); cursor: not-allowed; }
.control-steal-status, .steal-notice { margin: 16px auto; padding: 14px 18px; border: 1px solid #e7a62b; border-radius: 16px; color: #8a5a00; background: #fff7df; }
.question-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
.steal-button { padding: 10px 16px; border: 0; border-radius: 999px; color: var(--white); font-weight: 800; background: #d48a00; cursor: pointer; }

@media (max-width: 1180px) {
    .trivia-layout { grid-template-columns: minmax(440px, 1.45fr) minmax(350px, 1fr); }
    .control-schools .school-list { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 820px) {
    .streak-ranking__header { grid-template-columns: 1fr; }
    .streak-ranking__record { justify-self: start; }
    .trivia-header { grid-template-columns: 1fr auto; }
    .category-pill { display: none; }
    .trivia-layout { grid-template-columns: 1fr; }
    .trivia-layout--text-only .answer-list { grid-template-columns: 1fr; }
    .trivia-layout--text-only .lifelines {
        display: block;
    }
    .trivia-layout--text-only .lifelines-heading { display: flex; }
    .trivia-layout--text-only .lifeline-list {
        grid-template-columns: 1fr 1fr;
        margin-top: 12px;
    }
    .question-stage { min-height: 300px; }
    .control-header { align-items: flex-start; flex-direction: column; }
    .live-scoreboard__header { align-items: flex-start; }
    .live-scoreboard__heading { align-items: flex-start; flex-direction: column; gap: 8px; }
    .scoreboard-actions { flex-wrap: wrap; }
}

@media (max-width: 520px) {
    .streak-ranking { width: min(100% - 20px, 1080px); padding-top: 34px; }
    .streak-ranking h1 { font-size: 3.55rem; }
    .streak-ranking__record { width: 100%; }
    .streak-card { grid-template-columns: 56px minmax(0, 1fr) 70px; gap: 8px; min-height: 80px; padding: 8px 12px; border-radius: 20px; }
    .streak-card--leader { grid-template-columns: 68px minmax(0, 1fr) 82px; gap: 10px; min-height: 102px; padding: 12px 14px; border-radius: 24px; }
    .streak-card__logo { width: 52px; height: 52px; border-width: 3px; }
    .streak-card--leader .streak-card__logo { width: 64px; height: 64px; border-width: 4px; }
    .streak-card__school strong { font-size: 1rem; }
    .streak-card--leader .streak-card__school strong { font-size: 1.22rem; }
    .streak-card__school small { font-size: .63rem; }
    .streak-card--leader .streak-card__school small { font-size: .7rem; }
    .streak-card__score { grid-template-columns: 1fr; }
    .streak-card__score dotlottie-player, .streak-card__score small { display: none; }
    .streak-card__score strong { align-self: center; font-size: 2rem; }
    .streak-card--leader .streak-card__score strong { font-size: 2.65rem; }
    .corner-menu { top: 8px; right: 8px; }
    .trivia-shell { padding: 10px; }
    .trivia-header { min-height: 68px; padding-right: 44px; border-radius: 18px; }
    .brand-lockup .eyebrow { display: none; }
    .question-progress > span:last-child { display: none; }
    .question-panel,
    .answers-panel,
    .schools-panel { border-radius: 22px; }
    .panel-heading { gap: 12px; }
    .trivia-layout--text-only .panel-heading h1 { font-size: clamp(1.75rem, 8vw, 2.35rem); }
    .panel-number { width: 64px; height: 64px; border-radius: 18px; font-size: 2.25rem; }
    .question-stage { min-height: 240px; }
    .formula { padding: 20px; font-size: 2.25rem; }
    .answer-card {
        grid-template-columns: 48px 1fr 16px;
        min-height: 78px;
        padding: 12px 14px;
    }
    .answer-letter { width: 40px; height: 40px; font-size: 1.15rem; }
    .answer-text { font-size: clamp(1.15rem, 6vw, 1.45rem); }
    .trivia-layout--text-only .answer-text { font-size: clamp(1.4rem, 7vw, 1.9rem); }
    .review-actions { align-items: flex-start; flex-direction: column; }
    .lifeline-list { grid-template-columns: 1fr; }
    .control-shell { padding-inline: 10px; }
    .control-schools .school-list { grid-template-columns: 1fr; }
    .control-selection { align-items: stretch; flex-direction: column; }
    .control-selection a { text-align: center; }
    .live-scoreboard { padding: 18px 12px; border-radius: 22px; }
    .live-scoreboard__header { align-items: stretch; flex-direction: column; }
    .live-scoreboard__header h1 { font-size: 2.8rem; }
    .score-result { font-size: 0.85rem; }
    .score-result span { width: 44px; height: 44px; font-size: 1rem; }
    .ranking-list { gap: 7px; }
    .ranking-row { grid-template-columns: 20px 54px 42px minmax(0, 1fr) 62px; gap: 6px; min-height: 62px; padding: 6px 7px; border-radius: 19px; }
    .ranking-position { font-size: 0.78rem; }
    .ranking-lifelines { gap: 3px; }
    .ranking-lifeline { width: 25px; height: 25px; font-size: 0.65rem; }
    .ranking-lifeline img { width: 23px; height: 23px; }
    .ranking-lifeline--fifty img { width: 34px; height: 34px; }
    .ranking-bubble { width: 42px; height: 42px; }
    .ranking-school { font-size: 1rem; }
    .ranking-score { font-size: 1.25rem; }
    .streak-badge { display: none; }
    .scoreboard-actions { justify-content: flex-start; max-width: none; }
    .dragon-celebration { flex-direction: column; }
}

@media (max-width: 760px) {
    .live-scoreboard--duel { padding: 22px 14px; }
    .ranking-list--duel .ranking-row {
        grid-template-columns: 25px 58px 58px minmax(0, 1fr) 108px;
        gap: 7px;
        min-height: 88px;
        padding: 9px;
        border-radius: 22px;
    }
    .ranking-list--duel .ranking-position { font-size: .85rem; }
    .ranking-list--duel .ranking-lifelines { gap: 3px; }
    .ranking-list--duel .ranking-lifeline { width: 27px; height: 27px; }
    .ranking-list--duel .ranking-lifeline img { width: 25px; height: 25px; }
    .ranking-list--duel .ranking-lifeline--fifty img { width: 36px; height: 36px; }
    .ranking-list--duel .ranking-bubble { width: 56px; height: 56px; border-width: 4px; }
    .ranking-list--duel .ranking-school { font-size: clamp(1.05rem, 5vw, 1.45rem); }
    .ranking-list--duel .ranking-score { padding-right: 8px; font-size: clamp(1.8rem, 8vw, 2.5rem); }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
    .ranking-score__operation { display: none; animation: none !important; }
    .ranking-score__final { opacity: 1; animation: none !important; }
    .dragon-celebration { animation-duration: 3.4s !important; }
    .streak-badge--after-dragon { animation-duration: 1ms !important; }
}
.math-fraction {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    line-height: 1.25;
}

.math-fraction > span:first-child {
    border-bottom: 2px solid currentColor;
    padding: 0 0.2em 0.12em;
}

.math-fraction > span:last-child {
    padding-top: 0.12em;
}

/* Sorteo público del cuadro de cuartos */
.tournament-draw-page {
    min-height: 100vh;
    background:
        radial-gradient(circle at 7% 8%, rgba(82, 193, 239, .2), transparent 29rem),
        radial-gradient(circle at 94% 88%, rgba(70, 190, 139, .14), transparent 31rem),
        radial-gradient(circle at 76% 5%, rgba(249, 190, 65, .09), transparent 24rem),
        #f7fbfd;
}
.tournament-draw { width: min(1500px, 100%); min-height: 100vh; margin: 0 auto; padding: clamp(26px, 3.5vw, 54px); }
.tournament-draw__header { display: flex; align-items: flex-end; justify-content: space-between; gap: 30px; padding-right: 62px; }
.tournament-draw__header h1 { margin: 3px 0 0; font-size: clamp(2.3rem, 4.6vw, 4.7rem); line-height: .96; letter-spacing: -.065em; }
.tournament-draw__header > div > p:last-child { margin: 14px 0 0; color: var(--muted); }
.tournament-draw__counter { display: flex; align-items: baseline; gap: 8px; color: var(--muted); white-space: nowrap; }
.tournament-draw__counter strong { color: var(--sky-700); font-size: 2.2rem; letter-spacing: -.05em; }
.tournament-draw__counter span { font-size: .78rem; font-weight: 700; }
.tournament-draw__layout { display: grid; grid-template-columns: minmax(480px, .88fr) minmax(570px, 1.12fr); gap: clamp(24px, 4vw, 64px); margin-top: clamp(28px, 4vw, 58px); }
.tournament-wheel-panel, .quarterfinal-board { min-width: 0; }
.tournament-wheel-panel {
    padding: clamp(20px, 2.2vw, 30px);
    border: 1px solid rgba(141, 215, 239, .38);
    border-radius: 30px;
    background:
        radial-gradient(circle at 15% 10%, rgba(82, 193, 239, .16), transparent 42%),
        linear-gradient(145deg, rgba(255,255,255,.9), rgba(230,243,255,.68));
    box-shadow: 0 20px 48px rgba(29,99,123,.09);
}
.tournament-wheel-copy, .quarterfinal-board__heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; }
.tournament-wheel-copy { align-items: center; gap: 12px; }
.tournament-wheel-copy > div { display: flex; min-width: 0; align-items: center; gap: 12px; }
.tournament-wheel-copy .eyebrow { flex: 0 0 auto; margin: 0; font-size: .55rem; white-space: nowrap; }
.tournament-wheel-copy h2, .quarterfinal-board__heading h2 { margin: 3px 0 0; font-size: clamp(1.4rem, 2.2vw, 2rem); letter-spacing: -.04em; }
.tournament-wheel-copy h2 { flex: 0 0 auto; margin: 0; font-size: 1rem; white-space: nowrap; }
.tournament-wheel-copy > p { flex: 1 1 auto; margin: 0; color: var(--green); font-size: .58rem; font-weight: 800; line-height: 1.3; text-align: right; }
.tournament-wheel-stage { position: relative; left: 50%; width: min(560px, 88vw); aspect-ratio: 1; margin: 26px 0 18px; filter: drop-shadow(0 28px 34px rgba(16, 71, 91, .16)); transform: translateX(-50%); }
.tournament-wheel {
    position: absolute; inset: 18px; border: 9px solid white; border-radius: 50%;
    background: conic-gradient(
        from -22.5deg,
        #dcefff 0, #b9def5 45deg,
        #e0f4e6 45deg, #c3e7ca 90deg,
        #fff0c9 90deg, #ffdbab 135deg,
        #dbf2e7 135deg, #bce2d0 180deg,
        #dcefff 180deg, #b9def5 225deg,
        #e0f4e6 225deg, #c3e7ca 270deg,
        #fff0c9 270deg, #ffdbab 315deg,
        #dbf2e7 315deg, #bce2d0 360deg
    );
    box-shadow: inset 0 0 34px rgba(21,123,158,.12), inset 0 0 0 2px rgba(21,123,158,.16), 0 0 0 2px rgba(21,123,158,.12);
    transition: transform 4.8s cubic-bezier(.12,.72,.08,1);
}
.tournament-wheel[data-segment-count="6"] {
    background: conic-gradient(
        from -30deg,
        #dcefff 0, #b9def5 60deg,
        #e0f4e6 60deg, #c3e7ca 120deg,
        #fff0c9 120deg, #ffdbab 180deg,
        #dbf2e7 180deg, #bce2d0 240deg,
        #dcefff 240deg, #b9def5 300deg,
        #e0f4e6 300deg, #c3e7ca 360deg
    );
}
.tournament-wheel[data-segment-count="5"] {
    background: conic-gradient(
        from -36deg,
        #dcefff 0, #b9def5 72deg,
        #e0f4e6 72deg, #c3e7ca 144deg,
        #fff0c9 144deg, #ffdbab 216deg,
        #dbf2e7 216deg, #bce2d0 288deg,
        #dcefff 288deg, #b9def5 360deg
    );
}
.tournament-wheel::after { content: ""; position: absolute; z-index: 1; inset: 0; border-radius: inherit; background: radial-gradient(circle at 50% 45%, rgba(255,255,255,.2), transparent 54%, rgba(18,102,127,.06) 100%); pointer-events: none; }
.tournament-wheel__hub { position: absolute; z-index: 6; top: 50%; left: 50%; display: grid; width: 20%; aspect-ratio: 1; padding: 0; place-items: center; overflow: hidden; border: 7px solid white; border-radius: 50%; background: #fff; box-shadow: 0 8px 25px rgba(8,42,99,.18); transform: translate(-50%,-50%); cursor: pointer; }
.tournament-wheel__hub:focus-visible { outline: 5px solid var(--sky-700); outline-offset: 5px; }
.tournament-wheel__hub:disabled { cursor: default; }
.tournament-wheel__hub img { display: block; width: 80%; height: 80%; max-width: none; object-fit: contain; }
.tournament-wheel__school { position: absolute; z-index: 2; top: 50%; left: 50%; width: 112px; margin: -48px 0 0 -56px; text-align: center; transform: rotate(var(--school-angle)) translateY(-166px) rotate(calc(-1 * var(--school-angle))); transition: opacity .3s ease, filter .3s ease; }
.tournament-wheel__school > span { display: grid; width: 82px; height: 82px; margin: 0 auto; place-items: center; overflow: hidden; border: 3px solid rgba(255,255,255,.78); border-radius: 50%; background: #dcefff; box-shadow: 0 7px 20px rgba(8,42,99,.14); }
.tournament-wheel__school[data-wheel-school="1"] > span,
.tournament-wheel__school[data-wheel-school="5"] > span { background: linear-gradient(145deg, #e7f5ff, #b8dcf5); }
.tournament-wheel__school[data-wheel-school="2"] > span,
.tournament-wheel__school[data-wheel-school="6"] > span { background: linear-gradient(145deg, #e8f8eb, #bce5c7); }
.tournament-wheel__school[data-wheel-school="3"] > span,
.tournament-wheel__school[data-wheel-school="7"] > span { background: linear-gradient(145deg, #fff1dc, #ffd39d); }
.tournament-wheel__school[data-wheel-school="4"] > span,
.tournament-wheel__school[data-wheel-school="8"] > span { background: linear-gradient(145deg, #e6f7ee, #b6dfca); }
.tournament-wheel__school img { width: 116%; height: 116%; max-width: none; object-fit: contain; }
.tournament-wheel__school[data-wheel-school="1"] img { width: 128%; height: 128%; }
.tournament-wheel__school[data-wheel-school="2"] img { width: 114%; height: 114%; }
.tournament-wheel__school[data-wheel-school="3"] img { width: 112%; height: 112%; }
.tournament-wheel__school b { display: none; color: var(--sky-700); font-size: 1.4rem; }
.tournament-wheel__school.has-missing-logo img { display: none; }
.tournament-wheel__school.has-missing-logo b { display: block; }
.tournament-wheel__school small { display: block; margin-top: 7px; color: #143d51; font-size: .65rem; font-weight: 800; white-space: nowrap; }
.tournament-wheel__school.is-selected { opacity: .28; filter: grayscale(.65); }
.tournament-wheel__school.is-selected > span { border-color: #8acba8; box-shadow: 0 0 0 4px rgba(55,169,107,.14); }
.tournament-wheel-pointer { position: absolute; z-index: 8; top: 0; left: 50%; width: 0; height: 0; border-right: 20px solid transparent; border-left: 20px solid transparent; border-top: 46px solid #ef8354; filter: drop-shadow(0 5px 5px rgba(73,39,20,.24)); transform: translateX(-50%); }
.tournament-wheel-pointer::before { content: ""; position: absolute; top: -55px; left: -10px; width: 20px; height: 20px; border: 5px solid white; border-radius: 50%; background: #ef8354; }
.tournament-wheel.is-spinning + * { pointer-events: none; }
.tournament-wheel-actions { display: flex; align-items: center; justify-content: center; gap: 12px; }
.tournament-wheel-button { display: flex; min-width: 245px; min-height: 54px; align-items: center; justify-content: space-between; gap: 18px; padding: 0 8px 0 23px; border: 0; border-radius: 999px; color: white; font: inherit; font-weight: 800; background: #0b315e; box-shadow: 0 13px 28px rgba(8,42,99,.17); cursor: pointer; }
.tournament-wheel-button b { display: grid; width: 39px; height: 39px; place-items: center; border-radius: 50%; color: #0b315e; background: white; }
.tournament-wheel-button:disabled { opacity: .56; cursor: wait; }
.tournament-draw-reset { border: 0; color: var(--muted); font: inherit; font-size: .72rem; font-weight: 800; text-decoration: underline; background: transparent; cursor: pointer; }
.quarterfinal-board__heading > span { margin-bottom: 4px; color: var(--muted); font-size: .72rem; font-weight: 700; }
.quarterfinal-matches { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 26px; }
.quarterfinal-match {
    --match-accent: var(--sky-700);
    --match-soft: var(--sky-50);
    --match-border: var(--sky-300);
    --match-glow-rgb: 82, 193, 239;
    position: relative;
    padding: 16px;
    overflow: hidden;
    border: 1px solid var(--sky-300);
    border-radius: 23px;
    background:
        radial-gradient(circle at 88% 12%, rgba(82, 193, 239, .46), transparent 44%),
        linear-gradient(135deg, #dcefff, #b9def5);
    box-shadow: 0 16px 38px rgba(29, 99, 123, .14), inset 0 1px 0 rgba(255, 255, 255, .7);
}
.quarterfinal-match:nth-child(2) {
    --match-accent: #278c57;
    --match-soft: #e8f7ed;
    --match-border: rgba(84, 190, 103, .43);
    --match-glow-rgb: 112, 210, 112;
    border-color: rgba(84, 190, 103, .43);
    background:
        radial-gradient(circle at 88% 12%, rgba(112, 210, 112, .44), transparent 44%),
        linear-gradient(135deg, #e0f4e6, #c3e7ca);
}
.quarterfinal-match:nth-child(3) {
    --match-accent: #b27316;
    --match-soft: #fff5da;
    --match-border: rgba(231, 164, 42, .43);
    --match-glow-rgb: 249, 190, 65;
    border-color: rgba(231, 164, 42, .43);
    background:
        radial-gradient(circle at 88% 12%, rgba(249, 190, 65, .46), transparent 44%),
        linear-gradient(135deg, #fff0c9, #ffdbab);
}
.quarterfinal-match:nth-child(4) {
    --match-accent: #22835d;
    --match-soft: #e4f6ed;
    --match-border: rgba(48, 166, 116, .42);
    --match-glow-rgb: 70, 190, 139;
    border-color: rgba(48, 166, 116, .42);
    background:
        radial-gradient(circle at 88% 12%, rgba(70, 190, 139, .43), transparent 44%),
        linear-gradient(135deg, #dbf2e7, #bce2d0);
}
.quarterfinal-match--direct {
    --match-accent: #b27316;
    --match-border: rgba(231, 164, 42, .43);
    border-color: var(--match-border);
    background:
        radial-gradient(circle at 88% 12%, rgba(249, 190, 65, .46), transparent 44%),
        linear-gradient(135deg, #fff0c9, #ffdbab);
}
.quarterfinal-slot--direct { color: var(--ink); }
.quarterfinal-slot--direct .quarterfinal-slot__position { color: white; background: var(--match-accent); }
.quarterfinal-slot--direct .quarterfinal-slot__logo { border-style: solid; border-color: rgba(255,255,255,.9); background: white; }
.quarterfinal-direct-note { margin: 8px 0 0 34px; color: #8b671e; font-size: .65rem; font-weight: 800; }
.quarterfinal-match.is-ready {
    cursor: pointer;
    transition: transform .22s ease, box-shadow .22s ease, filter .22s ease;
}
.quarterfinal-match.is-ready:hover {
    filter: saturate(1.06);
    transform: translateY(-3px);
    box-shadow: 0 20px 44px rgba(29, 99, 123, .2), inset 0 1px 0 rgba(255, 255, 255, .76);
}
.quarterfinal-match.is-ready:focus-visible {
    outline: 4px solid rgba(21, 123, 158, .25);
    outline-offset: 4px;
}
.quarterfinal-match header { display: flex; justify-content: space-between; padding: 0 3px 12px; border-bottom: 1px solid var(--line); }
.quarterfinal-match > * { position: relative; z-index: 1; }
.quarterfinal-match header span { color: var(--match-accent); font-size: .66rem; font-weight: 900; letter-spacing: .09em; text-transform: uppercase; }
.quarterfinal-match header small { color: var(--muted); font-size: .62rem; font-weight: 700; }
.quarterfinal-slot { display: grid; grid-template-columns: 25px 52px minmax(0,1fr); min-height: 76px; align-items: center; gap: 9px; color: #8ba0a8; transition: color .3s ease, transform .3s ease; }
.quarterfinal-slot__position { display: grid; width: 23px; height: 23px; place-items: center; border-radius: 50%; color: var(--match-accent); font-size: .65rem; font-weight: 900; background: rgba(255,255,255,.7); }
.quarterfinal-slot__logo { display: grid; width: 49px; height: 49px; place-items: center; overflow: hidden; border: 1px dashed color-mix(in srgb, var(--match-accent) 38%, white); border-radius: 15px; background: rgba(255,255,255,.56); }
.quarterfinal-slot__logo img { width: 88%; height: 88%; object-fit: contain; }
.quarterfinal-slot__logo b { color: var(--sky-300); }
.quarterfinal-slot strong { overflow: hidden; font-size: .74rem; text-overflow: ellipsis; white-space: nowrap; }
.quarterfinal-slot.is-revealed { color: var(--ink); }
.quarterfinal-slot.is-revealed .quarterfinal-slot__position { color: white; background: var(--match-accent); }
.quarterfinal-slot.is-revealed .quarterfinal-slot__logo { border-style: solid; border-color: rgba(255,255,255,.9); background: white; box-shadow: 0 5px 14px rgba(21,123,158,.12); }
.quarterfinal-slot.is-new { animation: quarterfinal-slot-reveal .85s cubic-bezier(.2,.85,.25,1.15); }
.quarterfinal-versus { display: flex; align-items: center; gap: 7px; color: var(--match-accent); font-size: .62rem; }
.quarterfinal-versus span { flex: 1; height: 1px; background: color-mix(in srgb, var(--match-accent) 18%, white); }
.quarterfinal-save { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-top: 18px; padding: 15px 16px 15px 20px; border: 1px solid rgba(55,169,107,.25); border-radius: 21px; background: rgba(232,247,237,.82); }
.quarterfinal-save p { margin: 0; color: #56806a; font-size: .7rem; font-weight: 750; line-height: 1.45; }
.quarterfinal-save button { display: flex; flex: 0 0 auto; min-width: 190px; min-height: 48px; align-items: center; justify-content: space-between; gap: 16px; padding: 0 7px 0 19px; border: 0; border-radius: 999px; color: white; font: inherit; font-size: .78rem; font-weight: 850; background: var(--green); box-shadow: 0 10px 22px rgba(55,169,107,.2); cursor: pointer; }
.quarterfinal-save button:not(.is-locked) { justify-content: center; padding: 0 22px; }
.draw-save-lock-animation { display: block; width: 38px; height: 38px; flex: 0 0 38px; overflow: hidden; border-radius: 50%; background: white; }
.draw-save-lock-animation[hidden] { display: none; }
.draw-save-complete { display: grid; width: 38px; height: 38px; flex: 0 0 38px; place-items: center; border-radius: 50%; color: var(--green); background: white; animation: draw-save-complete-in .45s cubic-bezier(.2, .9, .25, 1.2) both; }
.draw-save-complete[hidden] { display: none; }
.draw-save-complete svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 2.8; stroke-linecap: round; stroke-linejoin: round; }
.quarterfinal-save button:disabled { color: #8da69a; background: #dce9e1; box-shadow: none; cursor: not-allowed; }
.draw-scroll-cue { display: flex; width: fit-content; align-items: center; gap: 10px; margin: clamp(50px, 8vh, 95px) auto 24px; color: var(--sky-700); font-size: .66rem; font-weight: 850; letter-spacing: .09em; text-decoration: none; text-transform: uppercase; }
.draw-scroll-cue b { display: grid; width: 32px; height: 32px; place-items: center; border: 1px solid var(--sky-300); border-radius: 50%; background: white; animation: draw-scroll-cue 1.8s ease-in-out infinite; }
.public-draw-table { display: flex; min-height: calc(100svh - clamp(32px, 5vw, 72px)); flex-direction: column; justify-content: center; padding: clamp(36px, 4.5vw, 72px); scroll-margin-top: 18px; border: 1px solid rgba(217,233,239,.92); border-radius: 42px; background: rgba(255,255,255,.86); box-shadow: 0 22px 55px rgba(29,99,123,.09); }
.public-draw-table > header { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 26px; }
.public-draw-table h2 { margin: 4px 0 0; font-size: clamp(3rem, 5.3vw, 5.8rem); line-height: .96; letter-spacing: -.065em; }
.tournament-bracket__intro { max-width: 660px; margin: 15px 0 0; color: var(--muted); font-size: clamp(.78rem, 1vw, .94rem); font-weight: 650; line-height: 1.55; }
.public-draw-table > header > p { max-width: 360px; margin: 0 0 7px; color: var(--muted); font-size: .78rem; line-height: 1.6; text-align: right; }
.draw-scoring-guide { margin-top: clamp(28px,4vw,56px); padding: clamp(30px,4.5vw,64px); border: 1px solid rgba(217,233,239,.92); border-radius: 38px; background: rgba(255,255,255,.88); box-shadow: 0 22px 55px rgba(29,99,123,.09); }
.draw-scoring-guide > header { display: flex; align-items: flex-end; justify-content: space-between; gap: 28px; margin-bottom: 28px; }
.draw-scoring-guide h2 { margin: 5px 0 0; font-size: clamp(2rem,4vw,4rem); line-height: 1; letter-spacing: -.055em; }
.draw-scoring-guide > header > p { max-width: 390px; margin: 0; color: var(--muted); line-height: 1.6; text-align: right; }
.draw-scoring-guide__grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 22px; margin-top: 52px; }
.draw-scoring-card { position: relative; min-height: 230px; padding: 24px; border: 1px solid rgba(82,193,239,.4); border-radius: 26px; background: radial-gradient(circle at 88% 12%,rgba(82,193,239,.44),transparent 45%),linear-gradient(135deg,#dcefff,#b9def5); cursor: pointer; transition: transform .25s ease, box-shadow .25s ease; }
.draw-scoring-card:hover { z-index: 1; box-shadow: 0 18px 38px rgba(29,99,123,.16); transform: translateY(-5px); }
.draw-scoring-card:focus-visible { outline: 4px solid rgba(54,173,213,.3); outline-offset: 4px; }
.draw-scoring-card[data-scoring-pair="correct-incorrect"] {
    box-shadow: 10px -10px 0 -2px #dcefff, 10px -10px 0 1px rgba(82,193,239,.52), 18px -18px 0 -2px #edf7df, 18px -18px 0 1px rgba(116,173,65,.35);
}
.draw-scoring-card[data-scoring-pair="steal-correct-incorrect"] {
    box-shadow: 10px -10px 0 -2px #fff0f1, 10px -10px 0 1px rgba(221,112,118,.5);
}
.draw-scoring-card[data-scoring-pair="correct-incorrect"]:hover {
    box-shadow: 12px -12px 0 -2px #dcefff, 12px -12px 0 1px rgba(82,193,239,.58), 21px -21px 0 -2px #edf7df, 21px -21px 0 1px rgba(116,173,65,.44), 0 18px 38px rgba(29,99,123,.16);
}
.draw-scoring-card[data-scoring-pair="steal-correct-incorrect"]:hover {
    box-shadow: 12px -12px 0 -2px #fff0f1, 12px -12px 0 1px rgba(221,112,118,.56), 0 18px 38px rgba(29,99,123,.16);
}
.draw-scoring-card__flip-hint { position: absolute; right: 18px; bottom: 16px; display: flex; align-items: center; gap: 8px; padding: 7px 10px; border: 1px solid rgba(255,255,255,.7); border-radius: 999px; color: #446976; font-size: .6rem; letter-spacing: .03em; background: rgba(255,255,255,.6); backdrop-filter: blur(8px); }
.draw-scoring-card__flip-hint i { position: relative; display: block; width: 16px; height: 12px; border: 1px solid #3d91ad; border-radius: 4px; background: #e8f7fc; transform: rotate(-5deg); }
.draw-scoring-card__flip-hint i::after { position: absolute; z-index: -1; inset: -4px 2px 2px -4px; border: 1px solid #d56a72; border-radius: 4px; background: #fff0f1; content: ""; transform: rotate(-5deg); }
.draw-scoring-card[data-scoring-pair="correct-incorrect"] .draw-scoring-card__flip-hint i::before { position: absolute; z-index: -2; inset: -7px 4px 4px -7px; border: 1px solid #79ad4b; border-radius: 4px; background: #edf7df; content: ""; transform: rotate(-8deg); }
.draw-scoring-card__flip-hint b { font-weight: 850; }
.draw-scoring-card[data-scoring-pair]:hover .draw-scoring-card__flip-hint i { animation: scoring-hint-card .7s ease-in-out; }
@keyframes scoring-hint-card {
    50% { transform: translateX(-3px) rotate(-10deg); }
}
.draw-scoring-card--correct { border-color: rgba(84,190,103,.43); background: radial-gradient(circle at 88% 12%,rgba(112,210,112,.44),transparent 45%),linear-gradient(135deg,#e0f4e6,#c3e7ca); }
.draw-scoring-card--fast { border-color: rgba(146,99,190,.42); background: radial-gradient(circle at 88% 12%,rgba(183,132,224,.36),transparent 45%),linear-gradient(135deg,#f6ebff,#e4cefa); }
.draw-scoring-card--fast .draw-scoring-card__icon { color: #75469e; }
.draw-scoring-card--fast > strong { color: #563177; }
.draw-scoring-card--incorrect { border-color: rgba(82,193,239,.4); background: radial-gradient(circle at 88% 12%,rgba(82,193,239,.44),transparent 45%),linear-gradient(135deg,#dcefff,#b9def5); }
.draw-scoring-card--no-answer { border-color: rgba(116,173,65,.42); background: radial-gradient(circle at 88% 12%,rgba(160,207,103,.4),transparent 45%),linear-gradient(135deg,#edf7df,#cde8ad); }
.draw-scoring-card--no-answer .draw-scoring-card__icon { color: #56842f; }
.draw-scoring-card--no-answer > strong { color: #3f6822; }
.draw-scoring-card--steal { border-color: rgba(84,190,103,.43); background: radial-gradient(circle at 88% 12%,rgba(112,210,112,.44),transparent 45%),linear-gradient(135deg,#e0f4e6,#c3e7ca); }
.draw-scoring-card--steal-incorrect { border-color: rgba(221,112,118,.4); background: radial-gradient(circle at 88% 12%,rgba(232,125,132,.36),transparent 45%),linear-gradient(135deg,#fff0f1,#ffd7dc); }
.draw-scoring-card--steal-incorrect .draw-scoring-card__icon { color: #bd454e; }
.draw-scoring-card--steal-incorrect > strong { color: #922e38; }
.draw-scoring-card--penalty { border-color: rgba(231,164,42,.43); background: radial-gradient(circle at 88% 12%,rgba(249,190,65,.46),transparent 45%),linear-gradient(135deg,#fff0c9,#ffdbab); }
.draw-scoring-card__icon { display: grid; width: 44px; height: 44px; margin-bottom: 22px; place-items: center; border-radius: 14px; color: var(--sky-700); font-size: 1.3rem; font-weight: 900; background: rgba(255,255,255,.72); }
.draw-scoring-card small { display: block; color: var(--muted); font-size: .68rem; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.draw-scoring-card > strong { display: block; margin: 7px 0 12px; color: #123d51; font-size: 2.8rem; line-height: 1; }
.draw-scoring-card p { margin: 0; color: #52717e; font-size: .78rem; line-height: 1.55; }
.draw-scoring-card ul { display: grid; gap: 8px; margin: 14px 0 0; padding: 0; list-style: none; }
.draw-scoring-card li { display: flex; justify-content: space-between; gap: 12px; padding-bottom: 7px; border-bottom: 1px solid rgba(178,115,22,.16); color: #75551f; font-size: .74rem; }
.draw-scoring-card li strong { color: #9b5f0c; font-size: .85rem; }
.draw-scoring-detail { width: min(520px,calc(100% - 36px)); padding: 0; overflow: visible; border: 0; border-radius: 32px; outline: none; background: transparent; box-shadow: 0 34px 100px rgba(16,42,52,.3); }
.draw-scoring-detail::backdrop { background: rgba(16,42,52,.42); backdrop-filter: blur(12px) saturate(.82); }
.draw-scoring-detail .draw-scoring-card { box-sizing: border-box; width: 100%; min-height: 430px; padding: clamp(34px,6vw,54px); border-radius: 32px; box-shadow: none; cursor: pointer; transform: none; }
.draw-scoring-detail .draw-scoring-card__icon { width: 68px; height: 68px; margin-bottom: 32px; border-radius: 21px; font-size: 2rem; }
.draw-scoring-detail .draw-scoring-card small { font-size: .82rem; }
.draw-scoring-detail .draw-scoring-card > strong { margin: 12px 0 20px; font-size: 5rem; }
.draw-scoring-detail .draw-scoring-card p { max-width: 390px; font-size: 1rem; line-height: 1.7; }
.draw-scoring-detail .draw-scoring-card__flip-hint { right: 28px; bottom: 26px; padding: 9px 13px; font-size: .72rem; }
.draw-scoring-detail .draw-scoring-card ul { gap: 14px; margin-top: 24px; }
.draw-scoring-detail .draw-scoring-card li { padding-bottom: 12px; font-size: 1rem; }
.draw-scoring-detail .draw-scoring-card li strong { font-size: 1.1rem; }
.draw-scoring-detail .draw-scoring-card.is-leaving { pointer-events: none; animation: scoring-card-leave .22s ease-in both; }
.draw-scoring-detail .draw-scoring-card.is-entering { animation: scoring-card-enter .42s cubic-bezier(.2,.8,.2,1) both; }
@keyframes scoring-card-leave {
    to { opacity: 0; filter: blur(4px); transform: translateX(-38px) scale(.97); }
}
@keyframes scoring-card-enter {
    0% { opacity: 0; filter: blur(5px); transform: translateX(48px) scale(.96); }
    68% { opacity: 1; filter: blur(0); transform: translateX(-5px) scale(1.01); }
    100% { opacity: 1; filter: none; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
    .draw-scoring-detail .draw-scoring-card.is-leaving,
    .draw-scoring-detail .draw-scoring-card.is-entering { animation-duration: .01ms; }
}
@media (max-width: 760px) { .draw-scoring-detail .draw-scoring-card { min-height: 360px; } }
.tournament-bracket__scroll { overflow-x: auto; padding: 12px 6px 22px; scrollbar-color: var(--sky-300) transparent; }
.tournament-bracket__board { display: grid; grid-template-columns: repeat(3, minmax(300px, 1fr)); grid-template-rows: 42px repeat(8, 78px); min-width: 980px; column-gap: clamp(64px, 6vw, 108px); }
.tournament-bracket__head { display: contents; }
.tournament-bracket__head span { align-self: start; color: var(--sky-700); font-size: .82rem; font-weight: 900; letter-spacing: .11em; text-align: center; text-transform: uppercase; }
.tournament-bracket__round { display: contents; }
.bracket-match {
    --bracket-card-border: var(--sky-300);
    --bracket-card-background: radial-gradient(circle at 88% 12%, rgba(82, 193, 239, .46), transparent 44%), linear-gradient(135deg, #dcefff, #b9def5);
    position: relative; display: grid; grid-template-rows: 28px repeat(2, 1fr); min-width: 0; padding: 12px 16px 15px;
    border: 1px solid var(--bracket-card-border); border-radius: 24px; background: var(--bracket-card-background);
    box-shadow: 0 12px 28px rgba(29, 99, 123, .13), inset 0 1px 0 rgba(255, 255, 255, .7);
}
.tournament-bracket__round--quarters .bracket-match:nth-child(1) { grid-area: 2 / 1 / 4 / 2; }
.tournament-bracket__round--quarters .bracket-match:nth-child(2) {
    --bracket-card-border: rgba(84, 190, 103, .43);
    --bracket-card-background: radial-gradient(circle at 88% 12%, rgba(112, 210, 112, .44), transparent 44%), linear-gradient(135deg, #e0f4e6, #c3e7ca);
    grid-area: 4 / 1 / 6 / 2;
    margin-bottom: 6px;
}
.tournament-bracket__round--quarters .bracket-match:nth-child(3) {
    --bracket-card-border: rgba(231, 164, 42, .43);
    --bracket-card-background: radial-gradient(circle at 88% 12%, rgba(249, 190, 65, .46), transparent 44%), linear-gradient(135deg, #fff0c9, #ffdbab);
    grid-area: 6 / 1 / 8 / 2;
    margin-top: 6px;
}
.tournament-bracket__round--quarters .bracket-match:nth-child(4) {
    --bracket-card-border: rgba(48, 166, 116, .42);
    --bracket-card-background: radial-gradient(circle at 88% 12%, rgba(70, 190, 139, .43), transparent 44%), linear-gradient(135deg, #dbf2e7, #bce2d0);
    grid-area: 8 / 1 / 10 / 2;
}
.tournament-bracket__round--semis .bracket-match:nth-child(1) { grid-area: 3 / 2 / 6 / 3; align-self: center; }
.tournament-bracket__round--semis .bracket-match:nth-child(2) { grid-area: 7 / 2 / 10 / 3; align-self: center; }
.tournament-bracket__round--final .bracket-match { grid-area: 5 / 3 / 8 / 4; align-self: center; }
.bracket-match__label { align-self: start; color: var(--sky-700); font-size: .7rem; font-weight: 900; letter-spacing: .09em; text-transform: uppercase; }
.public-draw-school, .bracket-future-slot { display: grid; grid-template-columns: 48px minmax(0,1fr); grid-template-rows: auto auto; align-items: center; gap: 0 12px; min-width: 0; border-top: 1px solid rgba(29,99,123,.09); color: #849aa3; }
.public-draw-school > span { grid-row: 1 / 3; display: grid; width: 43px; height: 43px; place-items: center; overflow: hidden; border: 1px dashed var(--sky-300); border-radius: 13px; background: rgba(255,255,255,.7); }
.public-draw-school img { width: 90%; height: 90%; object-fit: contain; }
.public-draw-school > span b { color: var(--sky-300); font-size: .85rem; }
.public-draw-school strong, .bracket-future-slot strong { align-self: end; overflow: hidden; font-size: .84rem; text-overflow: ellipsis; white-space: nowrap; }
.public-draw-school small { align-self: start; color: var(--muted); font-size: .61rem; font-weight: 750; }
.public-draw-school.is-revealed { color: var(--ink); }
.public-draw-school.is-revealed > span { border-style: solid; border-color: rgba(141,215,239,.5); background: white; box-shadow: 0 6px 16px rgba(29,99,123,.08); }
.bracket-match--future { grid-template-rows: 30px repeat(2, 62px); align-self: center; padding: 14px 17px; }
.tournament-bracket__round--semis .bracket-match:first-child {
    --bracket-card-border: var(--sky-300);
    --bracket-card-background: radial-gradient(circle at 88% 12%, rgba(82, 193, 239, .46), transparent 44%), linear-gradient(135deg, #dcefff, #b9def5);
}
.tournament-bracket__round--semis .bracket-match:nth-child(2) {
    --bracket-card-border: rgba(84, 190, 103, .43);
    --bracket-card-background: radial-gradient(circle at 88% 12%, rgba(112, 210, 112, .44), transparent 44%), linear-gradient(135deg, #e0f4e6, #c3e7ca);
}
.bracket-match--final {
    --bracket-card-border: rgba(231, 164, 42, .48);
    --bracket-card-background: radial-gradient(circle at 88% 12%, rgba(249, 190, 65, .5), transparent 44%), linear-gradient(135deg, #fff0c9, #ffd5a0);
    box-shadow: 0 15px 36px rgba(188, 124, 29, .16), inset 0 1px 0 rgba(255, 255, 255, .72);
}
.bracket-future-slot { grid-template-columns: 38px minmax(0,1fr); }
.bracket-future-slot i { grid-row: 1 / 3; display: grid; width: 33px; height: 33px; place-items: center; border-radius: 50%; color: white; font-size: .65rem; font-style: normal; font-weight: 900; background: var(--green); }
.bracket-future-slot.is-decided { color: var(--ink); }
.bracket-future-slot.is-decided i { overflow: hidden; border: 2px solid white; background: white; box-shadow: 0 6px 16px rgba(29,99,123,.18); }
.bracket-future-slot.is-decided i img { width: 100%; height: 100%; object-fit: contain; }
.bracket-match.is-replayable { cursor: pointer; }
.bracket-match.is-replayable:focus-visible { outline: 3px solid var(--sky-700); outline-offset: 4px; }
.bracket-future-slot.is-replayable { margin-inline: -7px; padding-inline: 7px; border-radius: 14px; cursor: pointer; transition: background .25s ease, box-shadow .25s ease, transform .25s ease; }
.bracket-future-slot.is-replayable:hover { background: rgba(255,255,255,.5); box-shadow: 0 8px 22px rgba(29,99,123,.11); transform: translateY(-2px); }
.bracket-future-slot.is-replayable:focus-visible { outline: 3px solid rgba(25,137,177,.34); outline-offset: 3px; background: rgba(255,255,255,.56); }
.tournament-bracket__round--semis .bracket-match:first-child .bracket-future-slot i { background: var(--sky-700); }
.bracket-match--final .bracket-future-slot i { background: #d89420; }
.bracket-match::after { content: ""; position: absolute; top: 50%; left: 100%; width: clamp(64px, 6vw, 108px); border-top: 2px solid #a8d6e5; }
.tournament-bracket__round--quarters .bracket-match:nth-child(odd)::before,
.tournament-bracket__round--semis .bracket-match:first-child::before { content: ""; position: absolute; top: 50%; left: calc(100% + clamp(64px, 6vw, 108px)); width: 2px; height: 156px; background: #a8d6e5; }
.tournament-bracket__round--quarters .bracket-match:nth-child(odd)::before { height: 153px; }
.tournament-bracket__round--semis .bracket-match:first-child::before { height: 312px; }
.tournament-bracket__round--semis .bracket-match::after { border-color: #8dcaaa; }
.tournament-bracket__round--semis .bracket-match:first-child::before { background: #8dcaaa; }
.tournament-bracket__round--final .bracket-match::after { display: none; }
.has-bracket-advancement { overflow: hidden; }
.has-bracket-advancement::before {
    content: "";
    position: fixed;
    z-index: 1099;
    inset: 0;
    background: rgb(239, 249, 252);
}
.bracket-advancement {
    position: fixed; z-index: 1100; inset: 0; display: grid; padding: clamp(18px, 4vw, 54px); place-items: center;
    opacity: 0; transition: opacity .45s ease;
}
.bracket-advancement.is-visible { opacity: 1; }
.bracket-advancement.is-closing { opacity: 0; transition-duration: .65s; }
.bracket-advancement__backdrop {
    position: absolute; inset: 0; background: rgba(239, 249, 252, .91); backdrop-filter: blur(14px);
}
.bracket-advancement__stage {
    position: relative; width: min(1380px, 96vw); overflow: hidden; padding: clamp(28px, 4vw, 62px);
    border: 1px solid rgba(141, 215, 239, .7); border-radius: clamp(28px, 4vw, 52px);
    background: radial-gradient(circle at 48% 0, rgba(112, 210, 112, .15), transparent 42%), #fff;
    box-shadow: 0 34px 100px rgba(29, 99, 123, .2);
    transform: translateY(24px) scale(.97); transition: transform .7s cubic-bezier(.2,.85,.25,1);
}
.bracket-advancement.is-visible .bracket-advancement__stage { transform: translateY(0) scale(1); }
.bracket-advancement__stage > header { margin-bottom: clamp(25px, 4vh, 48px); text-align: center; }
.bracket-advancement__stage h2 { margin: 5px 0 0; font-size: clamp(2.2rem, 5vw, 5.3rem); line-height: .95; letter-spacing: -.06em; }
.bracket-advancement__route { display: grid; grid-template-columns: minmax(0,1fr) clamp(100px, 11vw, 180px) minmax(0,1fr); align-items: center; }
.bracket-advancement__match {
    display: grid; grid-template-rows: auto repeat(2, minmax(92px, 1fr)); min-height: clamp(300px, 39vh, 440px);
    padding: clamp(22px, 3vw, 38px); border: 2px solid var(--sky-300); border-radius: 34px;
    background: radial-gradient(circle at 88% 12%, rgba(82,193,239,.45), transparent 45%), linear-gradient(135deg,#e5f4ff,#c7e7f8);
    box-shadow: 0 18px 42px rgba(29,99,123,.14);
}
.bracket-advancement__match > span { color: var(--sky-700); font-size: clamp(.85rem, 1.35vw, 1.15rem); font-weight: 900; letter-spacing: .1em; text-transform: uppercase; }
.bracket-advancement__school, .bracket-advancement__destination, .bracket-advancement__waiting {
    display: grid; grid-template-columns: clamp(62px, 7vw, 90px) minmax(0,1fr); grid-template-rows: auto auto;
    align-items: center; gap: 0 18px; border-top: 1px solid rgba(29,99,123,.13);
}
.bracket-advancement__school i, .bracket-advancement__destination i, .bracket-advancement__waiting i {
    grid-row: 1 / 3; display: grid; width: clamp(58px, 6vw, 82px); height: clamp(58px, 6vw, 82px);
    place-items: center; overflow: hidden; border: 3px solid white; border-radius: 22px; background: rgba(255,255,255,.84);
    box-shadow: 0 10px 24px rgba(29,99,123,.13); font-style: normal;
}
.bracket-advancement__school img, .bracket-advancement__destination img { width: 90%; height: 90%; object-fit: contain; }
.bracket-advancement__school strong, .bracket-advancement__destination strong, .bracket-advancement__waiting strong {
    align-self: end; overflow: hidden; font-size: clamp(1.1rem, 2.2vw, 2rem); text-overflow: ellipsis; white-space: nowrap;
}
.bracket-advancement__school small, .bracket-advancement__destination small { align-self: start; color: var(--muted); font-size: clamp(.72rem, 1vw, .92rem); font-weight: 750; }
.bracket-advancement__school.is-winner {
    position: relative; z-index: 1; border-radius: 20px; background: rgba(255,255,255,.55);
    animation: advancement-winner-focus 1.7s .45s ease-in-out both;
}
.bracket-advancement--quarterfinal .bracket-advancement__school.is-winner,
.bracket-advancement--semifinal .bracket-advancement__school.is-winner {
    overflow: hidden;
    border: 2px solid rgba(25, 174, 232, .88);
    background:
        radial-gradient(circle at 82% 18%, rgba(111, 239, 255, .9), transparent 36%),
        linear-gradient(105deg, rgba(230, 250, 255, .98), rgba(71, 207, 255, .72) 45%, rgba(43, 132, 237, .58) 72%, rgba(111, 238, 255, .78));
    box-shadow:
        0 0 0 4px rgba(40, 196, 255, .2),
        0 0 34px rgba(15, 150, 235, .46),
        inset 0 0 24px rgba(255, 255, 255, .4);
    animation: advancement-quarter-gamer 1.7s .35s ease-in-out both;
}
.bracket-advancement--quarterfinal .bracket-advancement__school.is-winner::after,
.bracket-advancement--semifinal .bracket-advancement__school.is-winner::after {
    content: ""; position: absolute; inset: 0; pointer-events: none;
    background: linear-gradient(110deg, transparent 25%, rgba(255,255,255,.9) 46%, rgba(101,238,255,.52) 53%, transparent 68%);
    transform: translateX(-120%); animation: advancement-quarter-shine 1.05s .72s ease-out both;
}
.bracket-advancement--quarterfinal .bracket-advancement__school.is-winner i,
.bracket-advancement--semifinal .bracket-advancement__school.is-winner i {
    border-color: rgba(117, 232, 255, 1);
    box-shadow: 0 0 0 4px rgba(34, 188, 255, .22), 0 0 25px rgba(15, 123, 232, .48);
}
.bracket-advancement--quarterfinal .bracket-advancement__school.is-winner strong,
.bracket-advancement--semifinal .bracket-advancement__school.is-winner strong {
    color: #053f68; text-shadow: 0 1px 0 rgba(255,255,255,.75), 0 0 18px rgba(67,215,255,.48);
}
.bracket-advancement__path { position: relative; display: flex; align-items: center; justify-content: center; }
.bracket-advancement__path span { position: absolute; width: 100%; height: 3px; overflow: hidden; background: #abd9e8; }
.bracket-advancement__path span::after { content: ""; position: absolute; inset: 0; background: var(--green); transform: scaleX(0); transform-origin: left; }
.bracket-advancement__path b { position: relative; padding: 9px 14px; border-radius: 99px; color: white; background: var(--sky-700); font-size: .7rem; letter-spacing: .08em; text-transform: uppercase; }
.bracket-advancement__match--destination { border-color: rgba(84,190,103,.5); background: radial-gradient(circle at 88% 12%,rgba(112,210,112,.44),transparent 45%),linear-gradient(135deg,#e8f7ec,#c9eace); }
.bracket-advancement__destination { opacity: 0; transform: translateY(12px) scale(.96); }
.bracket-advancement__waiting { color: #839aa2; }
.bracket-advancement__waiting i { border-radius: 50%; color: white; background: var(--green); }
.bracket-advancement__status { margin: clamp(22px, 3vh, 38px) 0 0; color: var(--sky-700); font-size: clamp(.8rem, 1.2vw, 1rem); font-weight: 850; letter-spacing: .06em; text-align: center; text-transform: uppercase; }
.bracket-advancement.is-leaving-source [data-advancement-winner] { opacity: .15; transform: scale(.94); transition: opacity .75s ease, transform .75s ease; }
.bracket-advancement--quarterfinal.is-leaving-source [data-advancement-winner],
.bracket-advancement--semifinal.is-leaving-source [data-advancement-winner] { animation: none; opacity: .15; transform: scale(.94); }
.bracket-advancement.is-leaving-source .bracket-advancement__path span::after { transform: scaleX(1); transition: transform .9s cubic-bezier(.2,.75,.2,1); }
.bracket-advancement.is-leaving-source .bracket-advancement__path b { color: var(--green); background: white; box-shadow: 0 6px 20px rgba(48,166,116,.2); transition: .5s ease; }
.bracket-advancement.is-arriving .bracket-advancement__destination { opacity: 1; transform: none; transition: opacity .7s ease, transform .8s cubic-bezier(.2,.9,.25,1); animation: advancement-destination-glow 1.8s .55s ease-in-out both; }
.bracket-advancement--quarterfinal.is-arriving .bracket-advancement__destination {
    position: relative; overflow: hidden; border: 1px solid rgba(224,164,36,.55); border-radius: 20px;
    background: linear-gradient(105deg, rgba(255,252,229,.92), rgba(255,215,105,.66), rgba(255,246,203,.9));
    animation: advancement-quarter-destination 2s .4s ease-in-out both;
}
.bracket-advancement--quarterfinal.is-arriving .bracket-advancement__destination::after {
    content: ""; position: absolute; inset: 0; pointer-events: none;
    background: linear-gradient(110deg, transparent 25%, rgba(255,255,255,.82) 46%, rgba(255,232,143,.38) 53%, transparent 68%);
    transform: translateX(-125%); animation: advancement-gold-shine 1.15s .72s ease-out both;
}
.bracket-advancement--quarterfinal.is-arriving .bracket-advancement__destination i {
    border-color: #ffd76a;
    background: linear-gradient(145deg, #fffdf0, #ffedb1);
    box-shadow: 0 0 0 4px rgba(246,190,48,.16), 0 0 25px rgba(226,158,24,.34);
}
.bracket-advancement--quarterfinal.is-arriving .bracket-advancement__destination strong {
    color: #76510b; text-shadow: 0 1px 0 white, 0 0 18px rgba(231,170,37,.25);
}
.bracket-advancement--quarterfinal.is-arriving .bracket-advancement__destination small { color: #a06c0c; }
.bracket-advancement--quarterfinal.is-arriving .bracket-advancement__path b { color: #73500d; background: #ffe39a; box-shadow: 0 0 20px rgba(226,158,24,.25); }
@keyframes advancement-winner-focus {
    0% { box-shadow: 0 0 0 0 rgba(48,166,116,0); }
    45%, 80% { box-shadow: 0 0 0 8px rgba(48,166,116,.16), 0 14px 34px rgba(48,166,116,.2); }
    100% { box-shadow: 0 0 0 3px rgba(48,166,116,.12); }
}
@keyframes advancement-destination-glow {
    45% { border-radius: 20px; background: rgba(255,255,255,.65); box-shadow: 0 0 0 9px rgba(48,166,116,.16), 0 18px 38px rgba(48,166,116,.23); }
}
@keyframes advancement-quarter-gamer {
    0% { opacity: .72; transform: scale(.985); filter: saturate(.9); }
    45% { opacity: 1; transform: scale(1.025); filter: saturate(1.3); box-shadow: 0 0 0 8px rgba(40,196,255,.25), 0 0 42px rgba(15,150,235,.56), inset 0 0 26px rgba(255,255,255,.46); }
    100% { opacity: 1; transform: scale(1); filter: saturate(1.16); box-shadow: 0 0 0 4px rgba(40,196,255,.2), 0 0 34px rgba(15,150,235,.46), inset 0 0 24px rgba(255,255,255,.4); }
}
@keyframes advancement-quarter-shine {
    to { transform: translateX(120%); }
}
@keyframes advancement-quarter-destination {
    0% { filter: saturate(.75); box-shadow: 0 0 0 0 rgba(226,158,24,0); }
    42% { filter: saturate(1.18); box-shadow: 0 0 0 9px rgba(246,190,48,.16), 0 0 38px rgba(226,158,24,.38), 0 18px 38px rgba(188,124,29,.2); }
    72% { box-shadow: 0 0 0 5px rgba(255,213,93,.12), 0 0 25px rgba(226,158,24,.28); }
    100% { filter: saturate(1.04); box-shadow: 0 0 0 3px rgba(246,190,48,.09), 0 10px 26px rgba(188,124,29,.17); }
}
@keyframes advancement-gold-shine { to { transform: translateX(125%); } }
@media (max-width: 760px) {
    .bracket-advancement { padding: 12px; }
    .bracket-advancement__stage { max-height: 96svh; overflow-y: auto; padding: 24px 18px; }
    .bracket-advancement__route { grid-template-columns: 1fr; }
    .bracket-advancement__match { min-height: 235px; }
    .bracket-advancement__path { height: 64px; }
    .bracket-advancement__path span { width: 3px; height: 100%; }
    .bracket-advancement__path span::after { transform: scaleY(0); transform-origin: top; }
    .bracket-advancement.is-leaving-source .bracket-advancement__path span::after { transform: scaleY(1); }
}
.match-ready-popup { position: fixed; z-index: 1000; inset: 0; display: grid; padding: clamp(14px, 2.5vw, 42px); place-items: center; }
.match-ready-popup[hidden] { display: none; }
.match-ready-popup__backdrop { position: absolute; inset: 0; background: rgba(13, 38, 49, .38); backdrop-filter: blur(5px); opacity: 0; transition: opacity .25s ease; }
.match-ready-popup__card {
    --ready-color: 82, 193, 239;
    position: relative;
    box-sizing: border-box;
    width: min(92vw, 1560px);
    min-height: min(88vh, 920px);
    overflow: hidden;
    padding: clamp(42px, 6vh, 86px) clamp(30px, 6vw, 110px);
    border: 1px solid rgba(var(--ready-color), .62);
    border-radius: 32px;
    text-align: center;
    background: radial-gradient(circle at 82% 12%, rgba(var(--ready-color), .72), transparent 48%), linear-gradient(135deg, #dcefff, #b9def5);
    box-shadow: 0 30px 80px rgba(42, 66, 75, .32), inset 0 1px 0 rgba(255, 255, 255, .72);
    opacity: 0;
    transform: scale(.84);
}
.match-ready-popup.is-quarter-2 .match-ready-popup__card { --ready-color: 112, 210, 112; background: radial-gradient(circle at 82% 12%, rgba(var(--ready-color), .72), transparent 48%), linear-gradient(135deg, #e0f4e6, #c3e7ca); }
.match-ready-popup.is-quarter-3 .match-ready-popup__card { --ready-color: 249, 190, 65; background: radial-gradient(circle at 82% 12%, rgba(var(--ready-color), .76), transparent 48%), linear-gradient(135deg, #fff0c9, #ffdbab); }
.match-ready-popup.is-quarter-4 .match-ready-popup__card { --ready-color: 70, 190, 139; background: radial-gradient(circle at 82% 12%, rgba(var(--ready-color), .72), transparent 48%), linear-gradient(135deg, #dbf2e7, #bce2d0); }
.match-ready-popup.is-visible .match-ready-popup__backdrop { opacity: 1; }
.match-ready-popup.is-visible .match-ready-popup__card { animation: match-ready-popup-pulse 5s ease-in-out both; }
.match-ready-popup__card > * { position: relative; z-index: 1; }
.match-ready-popup__card h2 { margin: 0 0 clamp(34px, 6vh, 72px); font-size: clamp(3.8rem, 7vw, 8rem); line-height: .95; letter-spacing: -.065em; }
.match-ready-popup__schools { display: grid; grid-template-columns: minmax(0,1fr) clamp(150px, 18vw, 300px) minmax(0,1fr); align-items: center; gap: clamp(16px, 3vw, 54px); }
.match-ready-popup__schools > div { display: flex; min-width: 0; align-items: center; flex-direction: column; gap: clamp(16px, 2.5vh, 30px); }
.match-ready-popup__schools > div > span { display: grid; width: clamp(190px, 20vw, 330px); height: clamp(190px, 20vw, 330px); place-items: center; overflow: hidden; border: clamp(6px, .6vw, 10px) solid white; border-radius: 50%; background: rgba(255,255,255,.76); box-shadow: 0 24px 58px rgba(29,99,123,.22); }
.match-ready-popup__schools img { width: 100%; height: 100%; object-fit: contain; }
.match-ready-popup__schools strong { overflow: hidden; max-width: 100%; font-size: clamp(1.35rem, 2.25vw, 2.75rem); line-height: 1.05; text-overflow: ellipsis; white-space: nowrap; }
.match-ready-popup__vs { display: block; width: 100%; aspect-ratio: 1; }
.round-scoreboard-modal { width: min(1120px, calc(100vw - 42px)); max-height: calc(100vh - 42px); padding: 0; overflow: visible; border: 0; border-radius: 36px; outline: none; background: transparent; }
.round-scoreboard-modal::backdrop { background: rgba(8,31,67,.55); backdrop-filter: blur(10px); }
.round-scoreboard-modal__content { max-height: calc(100vh - 42px); overflow: auto; padding: clamp(18px,2.4vw,34px); border: 1px solid rgba(118,202,228,.5); border-radius: 36px; background: radial-gradient(circle at 88% 10%, rgba(112,210,112,.2), transparent 34%), linear-gradient(145deg, rgba(255,255,255,.98), rgba(234,248,253,.96)); box-shadow: 0 30px 100px rgba(8,31,67,.28); }
.round-scoreboard-modal__close { position: absolute; z-index: 3; top: -14px; right: -14px; display: grid; width: 46px; height: 46px; place-items: center; border: 0; border-radius: 50%; color: #0b315e; font: inherit; font-size: 1.7rem; font-weight: 900; line-height: 1; background: #fff; box-shadow: 0 12px 28px rgba(8,42,99,.2); cursor: pointer; }
.round-scoreboard-modal__status { margin: 0; padding: 34px; color: #0b315e; font-weight: 900; text-align: center; }
.round-scoreboard-modal .scoreboard-result-layout,
.round-scoreboard-modal .scoreboard-result-layout--duel { width: 100%; margin: 0; }
.round-scoreboard-modal .live-scoreboard {
    width: 100%;
    box-sizing: border-box;
    padding: clamp(22px,3vw,38px);
    border: 1px solid rgba(54,173,213,.22);
    border-radius: 30px;
    background: rgba(255,255,255,.86);
    box-shadow: inset 0 1px #fff;
}
.round-scoreboard-modal .live-scoreboard__header {
    align-items: flex-start;
    margin-bottom: clamp(18px,2.6vw,30px);
}
.round-scoreboard-modal .live-scoreboard__heading {
    display: grid;
    gap: 8px;
}
.round-scoreboard-modal .live-scoreboard__header h1 {
    color: #082a63;
    font-size: clamp(2.15rem,4vw,4.25rem);
    line-height: .92;
    letter-spacing: -.055em;
}
.round-scoreboard-modal .scoreboard-subtitle {
    margin: 0;
    color: #6e858e;
    font-size: clamp(.86rem,1.3vw,1.05rem);
    font-weight: 800;
}
.round-scoreboard-modal .ranking-list--duel {
    gap: clamp(12px,1.8vw,20px);
}
.round-scoreboard-modal .ranking-list--duel .ranking-row {
    grid-template-columns: 44px 92px 104px minmax(0,1fr) minmax(150px,210px);
    min-height: clamp(112px,12vw,154px);
    gap: clamp(12px,1.6vw,22px);
    padding: clamp(13px,1.8vw,22px);
    border: 1px solid rgba(54,173,213,.22);
    border-radius: 26px;
    background: linear-gradient(100deg, rgba(232,247,252,.9), rgba(255,255,255,.94));
    box-shadow: 0 12px 30px rgba(29,99,123,.08);
}
.round-scoreboard-modal .ranking-list--duel .ranking-position { font-size: clamp(1rem,1.7vw,1.45rem); }
.round-scoreboard-modal .ranking-list--duel .ranking-lifeline { width: 38px; height: 38px; }
.round-scoreboard-modal .ranking-list--duel .ranking-lifeline img { width: 35px; height: 35px; }
.round-scoreboard-modal .ranking-list--duel .ranking-lifeline--fifty img { width: 49px; height: 49px; }
.round-scoreboard-modal .ranking-list--duel .ranking-bubble {
    width: clamp(82px,8vw,104px);
    height: clamp(82px,8vw,104px);
    border-width: 6px;
}
.round-scoreboard-modal .ranking-list--duel .ranking-school {
    color: #102f3d;
    font-size: clamp(1.55rem,3vw,2.7rem);
    letter-spacing: -.03em;
}
.round-scoreboard-modal .ranking-list--duel .ranking-score {
    padding-right: clamp(8px,1.5vw,20px);
    color: #082a63;
    font-size: clamp(2.75rem,5vw,5rem);
    text-align: right;
}
@media (max-width: 760px) {
    .match-ready-popup__card { width: 96vw; min-height: 90vh; padding: 34px 18px; }
    .match-ready-popup__card h2 { margin-bottom: 26px; font-size: clamp(3rem, 15vw, 5rem); }
    .match-ready-popup__schools { grid-template-columns: minmax(0,1fr) 86px minmax(0,1fr); gap: 8px; }
    .match-ready-popup__schools > div > span { width: min(30vw, 150px); height: min(30vw, 150px); }
    .match-ready-popup__schools strong { font-size: clamp(.85rem, 3.5vw, 1.25rem); white-space: normal; }
    .round-scoreboard-modal { width: calc(100vw - 18px); max-height: calc(100vh - 18px); }
    .round-scoreboard-modal__content { max-height: calc(100vh - 18px); padding: 9px; border-radius: 24px; }
    .round-scoreboard-modal__close { top: 6px; right: 6px; }
    .round-scoreboard-modal .live-scoreboard { padding: 18px 12px; border-radius: 22px; }
    .round-scoreboard-modal .ranking-list--duel .ranking-row {
        grid-template-columns: 30px 60px 64px minmax(0,1fr) 84px;
        min-height: 84px;
        gap: 7px;
        padding: 9px;
        border-radius: 18px;
    }
    .round-scoreboard-modal .ranking-list--duel .ranking-school { font-size: clamp(.95rem,4.4vw,1.3rem); }
    .round-scoreboard-modal .ranking-list--duel .ranking-score { font-size: clamp(1.8rem,8vw,2.5rem); }
}
@keyframes draw-scroll-cue { 50% { transform: translateY(5px); } }
@keyframes draw-save-complete-in {
    0% { opacity: 0; transform: scale(.55); }
    70% { opacity: 1; transform: scale(1.1); }
    100% { opacity: 1; transform: scale(1); }
}
@keyframes match-ready-popup-pulse {
    0% { opacity: 0; transform: scale(.84); }
    14% { opacity: 1; transform: scale(1.035); filter: saturate(1.18); }
    28% { opacity: 1; transform: scale(1); filter: saturate(1.08); }
    86% { opacity: 1; transform: scale(1); }
    100% { opacity: 0; transform: scale(.96); }
}
@keyframes quarterfinal-slot-reveal { 0% { opacity: 0; transform: translateX(-22px) scale(.94); } 100% { opacity: 1; transform: none; } }
@media (min-width: 1101px) {
    .tournament-wheel-panel { position: relative; z-index: 2; overflow: visible; }
    .quarterfinal-board { position: relative; z-index: 1; }
    .tournament-wheel-stage { left: calc(50% + 8px); }
}
@media (max-width: 1100px) {
    .tournament-draw__layout { grid-template-columns: 1fr; }
    .tournament-wheel-panel { max-width: 620px; margin: auto; }
    .draw-scoring-guide__grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 650px) {
    .tournament-draw { padding: 22px 14px 40px; }
    .tournament-draw__header { align-items: flex-start; flex-direction: column; padding-right: 50px; }
    .tournament-draw__layout { margin-top: 32px; }
    .tournament-wheel-copy { align-items: flex-start; flex-direction: column; }
    .tournament-wheel-copy > div { flex-wrap: wrap; }
    .tournament-wheel-copy > p { align-self: flex-start; text-align: left; }
    .draw-scoring-guide { padding: 28px 18px; border-radius: 28px; }
    .draw-scoring-guide > header { align-items: flex-start; flex-direction: column; }
    .draw-scoring-guide > header > p { text-align: left; }
    .draw-scoring-guide__grid { grid-template-columns: 1fr; }
    .draw-scoring-card { min-height: 0; }
    .tournament-wheel-stage { left: auto; width: min(430px, 100%); margin-right: auto; margin-left: auto; transform: none; }
    .tournament-wheel__school { width: 88px; margin: -40px 0 0 -44px; transform: rotate(var(--school-angle)) translateY(calc(-1 * (min(86vw, 430px) * .3))) rotate(calc(-1 * var(--school-angle))); }
    .tournament-wheel__school > span { width: 64px; height: 64px; border-width: 3px; }
    .tournament-wheel__school small { font-size: .52rem; }
    .quarterfinal-matches { grid-template-columns: 1fr; }
    .quarterfinal-save, .public-draw-table > header { align-items: stretch; flex-direction: column; }
    .quarterfinal-save button { width: 100%; }
    .public-draw-table > header > p { max-width: none; text-align: left; }
    .public-draw-table { min-height: calc(100svh - 28px); padding: 30px 16px; border-radius: 28px; }
    .public-draw-table h2 { font-size: 2.25rem; }
    .tournament-bracket__intro { font-size: .72rem; }
    .tournament-bracket__scroll { margin-right: -16px; padding-right: 16px; }
}
@media (prefers-reduced-motion: reduce) {
    .tournament-wheel { transition-duration: .01ms; }
    .match-ready-popup.is-visible .match-ready-popup__card { opacity: 1; transform: none; animation: none; }
}

/* Ceremonia del campeón */
body.has-champion-ceremony { overflow: hidden; }
.champion-ceremony {
    position: fixed;
    z-index: 80;
    inset: 0;
    display: grid;
    overflow: hidden;
    place-items: center;
    padding: clamp(20px, 4vw, 52px);
    color: var(--ink);
    background:
        radial-gradient(circle at 10% 90%, rgba(55, 169, 107, .25), transparent 34%),
        radial-gradient(circle at 90% 10%, rgba(54, 173, 213, .28), transparent 34%),
        radial-gradient(circle at 50% 70%, rgba(245, 201, 90, .13), transparent 34%),
        linear-gradient(138deg, #f7fcff 0%, #eaf8fe 52%, #eaf8f1 100%);
}
.champion-ceremony__stage { position: relative; z-index: 2; width: min(1050px, 100%); text-align: center; }
.champion-ceremony__eyebrow {
    margin: 0 0 8px;
    color: var(--green);
    font-size: clamp(.7rem, 1.2vw, .86rem);
    font-weight: 900;
    letter-spacing: .2em;
    text-transform: uppercase;
    opacity: 0;
}
.champion-ceremony h2 {
    margin: 0;
    color: #082a63;
    font-size: clamp(2rem, 6vw, 5rem);
    line-height: .95;
    opacity: 0;
}
.champion-ceremony__subtitle {
    margin: 13px 0 0;
    color: #627991;
    font-size: clamp(.82rem, 1.6vw, 1.1rem);
    opacity: 0;
}
.champion-finalists {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: clamp(14px, 3vw, 34px);
    align-items: center;
    margin: clamp(28px, 5vh, 48px) auto 0;
}
.champion-finalist {
    position: relative;
    display: grid;
    min-height: 205px;
    place-items: center;
    padding: 22px;
    border: 1px solid rgba(217, 233, 239, .95);
    border-radius: 28px;
    background: rgba(255,255,255,.82);
    box-shadow: var(--shadow), inset 0 1px #fff;
    backdrop-filter: blur(14px);
    opacity: 0;
}
.champion-finalist img {
    width: clamp(82px, 10vw, 118px);
    height: clamp(82px, 10vw, 118px);
    object-fit: contain;
    filter: drop-shadow(0 14px 20px rgba(29,99,123,.2));
}
.champion-finalist strong { display: block; margin-top: 10px; font-size: clamp(.9rem, 2vw, 1.22rem); }
.champion-finalist small { display: block; margin-top: 5px; color: var(--muted); }
.champion-finalist__score {
    position: absolute;
    top: 16px;
    right: 16px;
    display: grid;
    width: 53px;
    height: 53px;
    place-items: center;
    border-radius: 50%;
    color: var(--white);
    font-size: 1.12rem;
    font-weight: 900;
    background: var(--sky-500);
}
.champion-versus { color: var(--sky-700); font-size: clamp(1rem, 2vw, 1.4rem); font-weight: 900; opacity: 0; }
.champion-winner {
    position: absolute;
    z-index: 4;
    top: 50%;
    left: 50%;
    display: grid;
    width: min(460px, 88vw);
    min-height: 390px;
    place-items: center;
    padding: 25px;
    border: 2px solid rgba(245, 201, 90, .7);
    border-radius: 36px;
    background:
        radial-gradient(circle at 50% 15%, rgba(255, 241, 184, .48), transparent 38%),
        linear-gradient(155deg, rgba(255,255,255,.98), rgba(239,250,255,.97) 60%, rgba(232,247,238,.98));
    box-shadow:
        0 0 0 8px rgba(245, 201, 90, .13),
        0 35px 100px rgba(29, 99, 123, .22),
        0 0 90px rgba(245, 201, 90, .25);
    opacity: 0;
    pointer-events: none;
    transform: translate(-50%, -42%) scale(.65);
}
.champion-trophy {
    position: absolute;
    top: -42px;
    display: grid;
    width: 84px;
    height: 84px;
    place-items: center;
    border: 4px solid #ffe99c;
    border-radius: 50%;
    color: #6e4b00;
    font-size: 2.4rem;
    background: linear-gradient(145deg, #fff3ba, #e7ad24);
    box-shadow: 0 12px 34px rgba(245, 201, 90, .35);
}
.champion-winner__logo {
    width: 142px;
    height: 142px;
    margin-top: 24px;
    object-fit: contain;
    filter: drop-shadow(0 20px 24px rgba(29, 99, 123, .2));
}
.champion-winner__label {
    margin: 3px 0 6px;
    color: #c28c13;
    font-size: .72rem;
    font-weight: 900;
    letter-spacing: .18em;
    text-transform: uppercase;
}
.champion-winner h3 { margin: 0; color: #082a63; font-size: clamp(1.65rem, 4vw, 2.55rem); line-height: 1; }
.champion-winner h3 + p { margin: 10px 0 0; color: var(--muted); }
.champion-actions {
    position: relative;
    z-index: 6;
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 26px;
    opacity: 0;
    pointer-events: none;
}
.champion-actions button {
    padding: 12px 18px;
    border: 1px solid var(--sky-300);
    border-radius: 999px;
    color: var(--sky-700);
    font-weight: 800;
    background: rgba(255,255,255,.86);
    box-shadow: 0 10px 24px rgba(29, 99, 123, .09);
    cursor: pointer;
}
.champion-actions .champion-actions__primary { border-color: #f5c95a; color: #152538; background: #f5c95a; }
.champion-confetti {
    position: fixed;
    z-index: 5;
    top: -18px;
    width: 10px;
    height: 18px;
    border-radius: 2px;
    opacity: 0;
    pointer-events: none;
}
.champion-ceremony.is-playing .champion-ceremony__eyebrow { animation: champion-appear .5s .2s forwards; }
.champion-ceremony.is-playing h2 { animation: champion-appear .55s .35s forwards; }
.champion-ceremony.is-playing .champion-ceremony__subtitle { animation: champion-appear .5s .5s forwards; }
.champion-ceremony.is-playing .champion-finalist:first-child { animation: champion-school-left .7s .9s forwards; }
.champion-ceremony.is-playing .champion-finalist:last-child { animation: champion-school-right .7s .9s forwards; }
.champion-ceremony.is-playing .champion-versus { animation: champion-appear .4s 1.25s forwards; }
.champion-ceremony.is-playing .champion-finalist.is-champion { animation: champion-card-fades .65s 2.15s forwards; }
.champion-ceremony.is-playing .champion-finalist.is-runner-up { animation: champion-runner-fades .55s 2.15s forwards; }
.champion-ceremony.is-playing .champion-winner { animation: champion-arrives .8s 2.75s cubic-bezier(.2,.85,.25,1.2) forwards; }
.champion-ceremony.is-playing .champion-actions { animation: champion-appear .5s 3.75s forwards; pointer-events: auto; }
.champion-ceremony.is-playing .champion-confetti { animation: champion-confetti-falls var(--duration) var(--delay) linear forwards; }
@keyframes champion-appear { to { opacity: 1; } }
@keyframes champion-school-left { from { opacity: 0; transform: translateX(-45px); } to { opacity: 1; transform: none; } }
@keyframes champion-school-right { from { opacity: 0; transform: translateX(45px); } to { opacity: 1; transform: none; } }
@keyframes champion-card-fades { to { opacity: .18; transform: scale(.92); filter: blur(2px); } }
@keyframes champion-runner-fades { to { opacity: .12; transform: scale(.92); filter: grayscale(1); } }
@keyframes champion-arrives { to { opacity: 1; transform: translate(-50%, -50%) scale(1); } }
@keyframes champion-confetti-falls {
    0% { opacity: 1; transform: translate3d(0,-20px,0) rotate(0); }
    100% { opacity: .9; transform: translate3d(var(--drift),105vh,0) rotate(var(--spin)); }
}
@media (max-width: 650px) {
    .champion-finalists { grid-template-columns: 1fr 1fr; }
    .champion-versus { display: none; }
    .champion-finalist { min-height: 180px; padding: 16px; }
    .champion-winner { min-height: 360px; }
    .champion-actions { flex-direction: column; align-items: center; }
}
@media (prefers-reduced-motion: reduce) {
    .champion-ceremony * { animation-duration: .01ms !important; animation-delay: 0ms !important; }
}

.data-settings-page {
    background: #fff;
    color: #14212d;
}

.data-settings-shell {
    width: min(1180px, calc(100% - 40px));
    margin: 0 auto;
    padding: 64px 0 90px;
}

.data-settings-shell > header {
    margin-bottom: 28px;
}

.data-settings-shell h1 {
    margin: 4px 0 10px;
    font-size: clamp(2.5rem, 7vw, 5rem);
}

.data-settings-card {
    margin: 22px 0;
    padding: 26px;
    border: 1px solid #dce5ec;
    border-radius: 24px;
    background: #f7fafc;
    box-shadow: 0 16px 42px rgba(25, 56, 76, .08);
}

.data-settings-card__heading {
    display: flex;
    align-items: start;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 18px;
}

.data-settings-card__heading h2,
.data-settings-card__heading p { margin: 0; }

.data-settings-card__heading p {
    margin-top: 6px;
    color: #60778b;
    font-size: .86rem;
}

.data-round-review {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    border-color: rgba(54, 173, 213, .35);
    background: linear-gradient(135deg, #eef9fd, #dff3fb);
}

.data-round-review.is-unlocked {
    border-color: rgba(31, 143, 103, .4);
    background: linear-gradient(135deg, #eefbf5, #d8f5e8);
}

.data-round-review h2,
.data-round-review p { margin-top: 0; }

.data-round-review .data-settings-save {
    flex: 0 0 auto;
    margin-top: 0;
}

.data-schools-grid,
.data-rules-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 18px;
}

.data-school {
    padding: 18px;
    border: 1px solid rgba(0, 0, 0, .08);
    border-radius: 18px;
    background: linear-gradient(145deg, #e9f8ff, #ccecff);
    color: #12334a;
}

.data-school legend {
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    font-weight: 900;
}

.data-school__delete {
    padding: 7px 11px;
    border: 0;
    border-radius: 999px;
    color: #9b2533;
    font: inherit;
    font-size: .72rem;
    font-weight: 900;
    background: rgba(255, 240, 241, .9);
    cursor: pointer;
}

.data-school:nth-child(4n + 2) {
    background: linear-gradient(145deg, #fff4d5, #ffe3a8);
}

.data-school:nth-child(4n + 3) {
    background: linear-gradient(145deg, #ebf9ec, #ccefd1);
}

.data-school:nth-child(4n + 4) {
    background: linear-gradient(145deg, #f6ebff, #e4cefa);
}

.data-school__logo {
    display: grid;
    place-items: center;
    min-height: 100px;
    margin-bottom: 12px;
    border-radius: 14px;
    background: rgba(255, 255, 255, .72);
}

.data-school__logo img {
    width: 86px;
    height: 86px;
    object-fit: contain;
}

.data-wheel-image-setting {
    display: flex;
    max-width: 680px;
    align-items: center;
    gap: 24px;
    margin-top: 18px;
    padding: 18px;
    border: 1px solid rgba(82, 193, 239, .3);
    border-radius: 20px;
    background:
        radial-gradient(circle at 88% 12%, rgba(82,193,239,.36), transparent 46%),
        linear-gradient(135deg, #e9f7ff, #cae8f7);
}

.data-wheel-image-preview {
    display: grid;
    width: 126px;
    aspect-ratio: 1;
    flex: 0 0 auto;
    place-items: center;
    overflow: hidden;
    border: 7px solid #fff;
    border-radius: 50%;
    background: rgba(255,255,255,.76);
    box-shadow: 0 12px 28px rgba(8,42,99,.16);
}

.data-wheel-image-preview img {
    width: 78%;
    height: 78%;
    object-fit: contain;
}

.data-wheel-image-controls { flex: 1; min-width: 0; }

.data-settings-card label {
    display: grid;
    gap: 7px;
    margin-top: 12px;
    font-weight: 700;
}

.data-rules-grid label {
    margin: 0;
    padding: 16px;
    border: 1px solid rgba(0, 0, 0, .07);
    border-radius: 16px;
    background: linear-gradient(145deg, #e9f8ff, #ccecff);
    color: #12334a;
}

.data-rules-grid label:nth-child(4n + 2) {
    background: linear-gradient(145deg, #fff4d5, #ffe3a8);
    color: #593d06;
}

.data-rules-grid label:nth-child(4n + 3) {
    background: linear-gradient(145deg, #ebf9ec, #ccefd1);
    color: #164f24;
}

.data-rules-grid label:nth-child(4n + 4) {
    background: linear-gradient(145deg, #f6ebff, #e4cefa);
    color: #492167;
}

.data-rules-grid label:nth-last-child(-n + 3) {
    border-color: rgba(173, 38, 54, .16);
    background: linear-gradient(145deg, #fff0f1, #ffd7dc);
    color: #711c29;
}

.data-settings-card input {
    width: 100%;
    box-sizing: border-box;
    padding: 11px 12px;
    border: 1px solid rgba(255, 255, 255, .2);
    border-radius: 10px;
    background: #fff;
    color: #10202e;
}

.data-settings-card .data-checkbox {
    display: flex;
    align-items: center;
    font-weight: 500;
}

.data-checkbox input {
    width: auto;
}

.data-settings-save {
    margin-top: 22px;
    padding: 14px 24px;
    border: 0;
    border-radius: 999px;
    background: #f5c84c;
    color: #14212d;
    font-weight: 900;
    cursor: pointer;
}

.data-settings-save--secondary {
    flex: 0 0 auto;
    margin-top: 0;
    background: #0b315e;
    color: #fff;
}

.data-settings-message {
    padding: 12px 16px;
    border-radius: 12px;
    background: #1f8f67;
}

@media (max-width: 560px) {
    .data-round-review { align-items: stretch; flex-direction: column; }
    .data-wheel-image-setting { align-items: stretch; flex-direction: column; }
    .data-wheel-image-preview { align-self: center; }
}

.question-selector { position: fixed; z-index: 10000; inset: 0; display: grid; padding: 3vh 3vw; place-items: center; visibility: hidden; opacity: 0; background: rgba(5, 22, 37, .88); backdrop-filter: blur(14px); transition: opacity .2s ease; }
.question-selector--sudden-death { background: rgba(0, 0, 0, .94); }
.question-selector.is-open { visibility: visible; opacity: 1; }
.question-selector__dialog { box-sizing: border-box; width: min(94vw, 1500px); min-height: 88vh; padding: clamp(28px, 5vh, 70px) clamp(20px, 4vw, 64px); overflow: hidden; border: 1px solid rgba(255,255,255,.38); border-radius: 34px; text-align: center; background: radial-gradient(circle at 50% 0, rgba(75,196,235,.28), transparent 38%), #f5fbfd; box-shadow: 0 40px 120px rgba(0,0,0,.42); }
.question-selector__dialog h2 { margin: 8px 0 clamp(40px, 8vh, 90px); color: #123464; font-size: clamp(2rem, 4.2vw, 4.8rem); }
.question-selector__viewport { position: relative; height: clamp(210px, 32vh, 350px); overflow: hidden; border-block: 2px solid rgba(54,173,213,.24); background: linear-gradient(90deg, rgba(245,251,253,1), transparent 20% 80%, rgba(245,251,253,1)); }
.question-selector__marker { position: absolute; z-index: 3; top: 0; bottom: 0; left: 50%; width: 5px; border-radius: 5px; background: #f2b51d; box-shadow: 0 0 24px rgba(242,181,29,.75); transform: translateX(-50%); }
.question-selector__track { position: absolute; top: 50%; left: 0; display: flex; gap: 18px; align-items: center; width: max-content; transform: translate(65vw,-50%); }
.question-selector__track.is-spinning { animation: question-selector-spin 2s cubic-bezier(.08,.72,.16,1) forwards; }
.question-selector__card { display: grid; width: clamp(130px, 12vw, 190px); aspect-ratio: .78; flex: none; place-content: center; border: 2px solid #cce7f0; border-radius: 24px; color: #176f91; background: #fff; box-shadow: 0 18px 40px rgba(29,99,123,.14); transition: transform .3s ease, border-color .3s ease; }
.question-selector__card small { font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.question-selector__card strong { font-size: clamp(3.4rem, 7vw, 7rem); line-height: 1; }
.question-selector__card.is-selected { border-color: #f2b51d; transform: scale(1.08); box-shadow: 0 20px 55px rgba(242,181,29,.3); }
.question-selector__status { margin-top: 34px; color: #176f91; font-size: clamp(1.2rem,2vw,2rem); font-weight: 850; }
.question-selector--sudden-death .question-selector__dialog {
    display: grid;
    align-content: center;
    width: min(96vw, 1660px);
    min-height: 94vh;
    padding-block: clamp(30px, 4vh, 54px);
    border-color: rgba(242,181,29,.36);
    background:
        radial-gradient(circle at 50% 6%, rgba(242,181,29,.18), transparent 34%),
        radial-gradient(circle at 50% 104%, rgba(54,173,213,.16), transparent 38%),
        #06131c;
}
.question-selector--sudden-death .question-selector__dialog h2 {
    margin: 0 0 clamp(20px, 3vh, 36px);
    color: #fff;
    font-size: clamp(3.8rem, 7vw, 8.5rem);
    line-height: .9;
}
.sudden-death-versus {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: center;
    gap: clamp(14px, 3vw, 46px);
    margin: 0 auto clamp(22px, 3.6vh, 42px);
    width: min(1180px, 100%);
}
.sudden-death-school {
    display: grid;
    min-width: 0;
    justify-items: center;
    gap: clamp(12px, 2vh, 20px);
}
.sudden-death-school__logo {
    display: grid;
    width: clamp(130px, 15vw, 230px);
    aspect-ratio: 1;
    place-items: center;
    overflow: hidden;
    border: 6px solid #fff;
    border-radius: 50%;
    color: var(--sky-700);
    font-weight: 900;
    background: var(--sky-100);
    box-shadow: 0 18px 48px rgba(29,99,123,.18);
}
.sudden-death-school__logo img { width: 100%; height: 100%; object-fit: contain; }
.sudden-death-school strong {
    max-width: 100%;
    overflow-wrap: anywhere;
    color: #fff;
    font-size: clamp(1.35rem, 2.4vw, 2.6rem);
    line-height: 1;
}
.sudden-death-vs {
    display: grid;
    width: clamp(92px, 8.5vw, 150px);
    aspect-ratio: 1;
    place-items: center;
    filter: drop-shadow(0 18px 32px rgba(242,181,29,.32));
}
.sudden-death-vs dotlottie-player { width: 100%; height: 100%; }
.sudden-death-draw-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    justify-self: center;
    width: auto;
    min-width: 0;
    max-width: calc(100% - 40px);
    padding: 16px 30px;
    border: 0;
    border-radius: 16px;
    color: #06131c;
    font-size: clamp(1.05rem, 1.6vw, 1.45rem);
    font-weight: 900;
    background: #f2b51d;
    box-shadow: 0 18px 42px rgba(242,181,29,.22);
    cursor: pointer;
}
.sudden-death-draw-button:disabled { opacity: .58; cursor: wait; }
.question-selector--sudden-death .question-selector__viewport {
    height: 0;
    margin: 0;
    border-block-width: 0;
    opacity: 0;
    pointer-events: none;
    transition: height .28s ease, margin .28s ease, opacity .28s ease;
}
.question-selector--sudden-death.is-drawing .question-selector__viewport {
    height: clamp(210px, 32vh, 350px);
    margin-top: clamp(22px, 3.4vh, 42px);
    border-block-width: 2px;
    opacity: 1;
}
.question-selector--sudden-death .question-selector__card {
    background: #fff;
    border-color: rgba(242,181,29,.62);
}
.question-selector--sudden-death .question-selector__status { margin-top: clamp(18px, 3vh, 34px); color: #f2b51d; }
.question-selector--sudden-death:not(.is-drawing) .question-selector__status { display: none; }
@keyframes question-selector-spin { 0% { transform: translate(65vw,-50%); } 72% { transform: translate(calc(var(--selector-final-x) - 6vw),-50%); } 100% { transform: translate(var(--selector-final-x),-50%); } }

.tiebreaker-settings { margin: 16px 0; border: 1px solid rgba(255,255,255,.2); border-radius: 16px; background: rgba(255,255,255,.08); }
.tiebreaker-settings summary { padding: 18px; cursor: pointer; font-weight: 850; }
.tiebreaker-settings__grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px; padding: 0 18px 18px; }
.tiebreaker-question { min-width: 0; padding: 16px; border: 1px solid rgba(255,255,255,.18); border-radius: 14px; }
.tiebreaker-options { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.data-settings-card textarea,.data-settings-card select { box-sizing: border-box; width: 100%; padding: 11px 12px; border: 0; border-radius: 10px; }
@media(max-width:760px){.tiebreaker-settings__grid{grid-template-columns:1fr}.question-selector__dialog{min-height:92vh}.question-selector--sudden-death .question-selector__dialog{min-height:94vh}.question-selector--sudden-death .sudden-death-versus{grid-template-columns:1fr;gap:14px}.question-selector--sudden-death .question-selector__dialog h2{font-size:clamp(3rem,15vw,5rem)}.sudden-death-vs{width:clamp(78px,24vw,118px)}}

.media-diagnostics-shell { width: min(1180px, calc(100% - 32px)); margin: 0 auto; padding: 46px 0 72px; color: #fff; }
.media-diagnostics-shell > header { display: grid; gap: 12px; margin-bottom: 28px; }
.media-diagnostics-shell h1 { margin: 0; font-size: clamp(2rem, 4vw, 4.2rem); line-height: 1; }
.media-diagnostics-shell h2 { margin: 0; color: #102a34; font-size: 1.4rem; }
.media-diagnostics-shell p { margin: 0; color: rgba(255,255,255,.78); line-height: 1.55; }
.media-diagnostics-meta { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 12px; margin: 12px 0 0; }
.media-diagnostics-meta div { min-width: 0; padding: 12px 14px; border: 1px solid rgba(255,255,255,.18); border-radius: 12px; background: rgba(255,255,255,.08); }
.media-diagnostics-meta dt { color: rgba(255,255,255,.62); font-size: .68rem; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; }
.media-diagnostics-meta dd { margin: 4px 0 0; overflow-wrap: anywhere; font-size: .82rem; font-weight: 750; }
.media-diagnostics-section { margin-top: 22px; padding: 22px; border: 1px solid rgba(255,255,255,.14); border-radius: 20px; background: rgba(255,255,255,.9); }
.media-diagnostics-heading { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 16px; }
.media-diagnostics-heading span { color: #607884; font-size: .78rem; font-weight: 850; }
.media-diagnostics-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(260px,1fr)); gap: 14px; }
.media-diagnostics-card { position: relative; display: grid; grid-template-columns: 96px minmax(0,1fr); gap: 14px; align-items: center; min-width: 0; padding: 12px; border: 1px solid #d8ecf2; border-radius: 16px; color: #102a34; background: #fff; }
.media-diagnostics-card.is-missing { border-color: #f1b7b7; background: #fff5f5; }
.media-diagnostics-preview { display: grid; width: 96px; aspect-ratio: 1; place-items: center; overflow: hidden; border-radius: 12px; color: #9a3c3c; text-align: center; text-decoration: none; background: #eaf8fc; }
.media-diagnostics-preview img { width: 100%; height: 100%; object-fit: contain; }
.media-diagnostics-card strong { display: block; margin-bottom: 6px; font-size: .92rem; }
.media-diagnostics-card code, .media-file-list code { display: block; overflow-wrap: anywhere; color: #3f6471; font-size: .75rem; }
.media-diagnostics-card a:not(.media-diagnostics-preview), .media-file-list a { color: #13799d; font-size: .78rem; font-weight: 850; text-decoration: none; }
.media-diagnostics-status { position: absolute; top: 10px; right: 10px; padding: 5px 8px; border-radius: 999px; color: #1f7258; font-size: .62rem; font-weight: 900; background: #ddf6e9; }
.media-diagnostics-card.is-missing .media-diagnostics-status { color: #a03c3c; background: #ffe2e2; }
.media-diagnostics-empty { grid-column: 1 / -1; color: #607884 !important; }
.media-file-list { display: grid; gap: 8px; }
.media-file-list a { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 10px 12px; border: 1px solid #d8ecf2; border-radius: 12px; background: #fff; }
.media-file-list span { flex: none; color: #607884; font-size: .7rem; }
@media (max-width: 760px) {
    .media-diagnostics-meta { grid-template-columns: 1fr; }
    .media-diagnostics-section { padding: 16px; }
    .media-diagnostics-card { grid-template-columns: 76px minmax(0,1fr); }
    .media-diagnostics-preview { width: 76px; }
    .media-file-list a { align-items: flex-start; flex-direction: column; }
}
