/* Live calibration banner — scoped */
.sg-live-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 1200 / 630;
    overflow: hidden;
    background: #070b10;
    border-radius: inherit;
}
.sg-live {
    --void: #070b10;
    --ice: #5fe4f4;
    --ice-hi: #bdf6fd;
    --ice-deep: #0f6d7e;
    --amber: #f5a94e;
    --frost: #eaf6f9;
    --steel: #7d8f9c;
    position: absolute;
    top: 0;
    left: 0;
    width: 1200px;
    height: 630px;
    overflow: hidden;
    background: var(--void);
    color: var(--frost);
    font-family: Manrope, "DejaVu Sans", sans-serif;
    transform-origin: 0 0;
    will-change: transform;
}
.sg-live-atmo {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(90% 80% at 85% 30%, rgba(245, 169, 78, .10), transparent 55%),
        radial-gradient(120% 100% at 78% 62%, rgba(15, 109, 126, .38), transparent 62%),
        radial-gradient(100% 120% at 0% 100%, rgba(12, 26, 36, .9), transparent 60%),
        linear-gradient(115deg, #05080c 0%, #0a1017 45%, #0b141d 100%);
}
.sg-live-hex {
    position: absolute;
    inset: 0;
    opacity: .55;
    mask-image: radial-gradient(80% 80% at 70% 45%, #000 30%, transparent 78%);
    pointer-events: none;
}
.sg-live-scrim {
    position: absolute;
    inset: 0;
    z-index: 4;
    pointer-events: none;
    background: linear-gradient(90deg, rgba(7, 11, 16, .94) 0%, rgba(7, 11, 16, .82) 34%, rgba(7, 11, 16, .35) 52%, transparent 62%);
}
.sg-live-scan {
    position: absolute;
    inset: 0;
    z-index: 4;
    opacity: .06;
    pointer-events: none;
    background: repeating-linear-gradient(0deg, #fff 0 1px, transparent 1px 4px);
    animation: sgLiveScan 7s linear infinite;
}
.sg-live-vign {
    position: absolute;
    inset: 0;
    z-index: 4;
    pointer-events: none;
    box-shadow: inset 0 0 180px 40px rgba(0, 0, 0, .85);
}
.sg-live-frame {
    position: absolute;
    inset: 14px;
    z-index: 5;
    border: 1px solid rgba(95, 228, 244, .16);
    pointer-events: none;
}
.sg-live-corner {
    position: absolute;
    z-index: 5;
    width: 26px;
    height: 26px;
    border: 2px solid var(--ice);
    filter: drop-shadow(0 0 6px rgba(95, 228, 244, .8));
    pointer-events: none;
}
.sg-live-c-tl { top: 8px; left: 8px; border-right: none; border-bottom: none; }
.sg-live-c-tr { top: 8px; right: 8px; border-left: none; border-bottom: none; }
.sg-live-c-bl { bottom: 8px; left: 8px; border-right: none; border-top: none; }
.sg-live-c-br { bottom: 8px; right: 8px; border-left: none; border-top: none; }

/* CRT feeds */
.sg-live-feeds { position: absolute; inset: 0; z-index: 2; overflow: hidden; }
.sg-live-feed {
    position: absolute;
    overflow: hidden;
    border-radius: 8px;
    background: #04080c;
    box-shadow:
        0 0 0 1px rgba(95, 228, 244, .3),
        0 24px 60px -20px rgba(0, 0, 0, .9),
        0 0 46px rgba(95, 228, 244, .10);
    animation: sgLiveFlick 3.8s linear infinite;
}
.sg-live-feed img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.sg-live-chG { filter: url(#sgCalibOnlyG) brightness(.72) contrast(1.06); }
.sg-live-chR { filter: url(#sgCalibOnlyR) brightness(.72) contrast(1.06); transform: translateX(3px); mix-blend-mode: screen; }
.sg-live-chB { filter: url(#sgCalibOnlyB) brightness(.72) contrast(1.06); transform: translateX(-3px); mix-blend-mode: screen; }
.sg-live-noise { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .13; mix-blend-mode: screen; pointer-events: none; }
.sg-live-lines {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: repeating-linear-gradient(0deg, rgba(0, 0, 0, .38) 0 2px, transparent 2px 4px);
}
.sg-live-roll {
    position: absolute;
    left: 0;
    right: 0;
    height: 72px;
    top: -90px;
    pointer-events: none;
    background: linear-gradient(180deg, transparent, rgba(189, 246, 253, .16), rgba(189, 246, 253, .05), transparent);
    animation: sgLiveRoll 4.6s linear infinite;
}
.sg-live-tear {
    position: absolute;
    left: 0;
    right: 0;
    height: 10px;
    pointer-events: none;
    background: rgba(4, 8, 12, .85);
    transform: skewX(-20deg);
    animation: sgLiveTear 5.2s ease-in-out infinite;
}
.sg-live-tag {
    position: absolute;
    left: 10px;
    top: 8px;
    font-family: ui-monospace, "DejaVu Sans Mono", monospace;
    font-size: 10px;
    letter-spacing: .22em;
    color: #bdf6fd;
    text-shadow: 0 0 8px rgba(95, 228, 244, .9);
}
.sg-live-tag b { color: var(--amber); font-weight: normal; }
.sg-live-f1 { right: -34px; top: -22px; width: 470px; height: 300px; transform: rotate(4deg); }
.sg-live-f2 { right: 150px; bottom: -34px; width: 440px; height: 285px; transform: rotate(-4deg); opacity: .8; animation-duration: 4.7s; }
.sg-live-f2 .sg-live-roll { animation-delay: 1.7s; animation-duration: 5.4s; }
.sg-live-f3 { right: 436px; top: 116px; width: 300px; height: 200px; transform: rotate(2deg); opacity: .6; animation-duration: 4.7s; }
.sg-live-f3 .sg-live-roll { animation-delay: 3s; }

.sg-live-scene { position: absolute; inset: 0; z-index: 3; pointer-events: none; }
.sg-live-halo { transform-origin: 885px 315px; animation: sgLiveHalo 3.2s ease-in-out infinite; }
.sg-live-pillar { animation: sgLivePillar 2.4s ease-in-out infinite; transform-origin: 885px 46px; }
.sg-live-rings { animation: sgLiveSpin 28s linear infinite; transform-box: fill-box; transform-origin: center; }
.sg-live-crystal { animation: sgLiveCrystal 3.6s ease-in-out infinite; transform-origin: 885px 300px; }
.sg-live-tip { animation: sgLiveTip 1.8s ease-in-out infinite; }

.sg-live-wave-rough {
    stroke-dasharray: 14 10;
    animation: sgLiveDash 1.1s linear infinite;
}
.sg-live-wave-clean path {
    stroke-dasharray: 18 8;
    animation: sgLiveDash 0.85s linear infinite reverse;
}

/* Lightning */
.sg-live-bolt {
    opacity: 0;
    stroke-dasharray: 220;
    stroke-dashoffset: 220;
}
.sg-live-bolt--a { animation: sgLiveBolt 4.8s ease-in-out infinite; }
.sg-live-bolt--b { animation: sgLiveBolt 4.8s ease-in-out 1.6s infinite; }
.sg-live-bolt--c { animation: sgLiveBolt 4.8s ease-in-out 3.1s infinite; }

.sg-live-p:nth-child(odd) { animation: sgLiveFloat 5s ease-in-out infinite; }
.sg-live-p:nth-child(even) { animation: sgLiveFloat 6.4s ease-in-out 1.2s infinite reverse; }

.sg-live-anno {
    position: absolute;
    right: 36px;
    top: 82px;
    z-index: 6;
    text-align: right;
    font-family: ui-monospace, "DejaVu Sans Mono", monospace;
    font-size: 12px;
    letter-spacing: .26em;
    color: var(--ice-hi);
    text-shadow: 0 0 10px rgba(95, 228, 244, .6);
    background: rgba(4, 9, 13, .62);
    padding: 6px 10px;
    border-radius: 4px;
    border: 1px solid rgba(95, 228, 244, .2);
    animation: sgLiveAnno 3s ease-in-out infinite;
}
.sg-live-anno small {
    display: block;
    color: var(--steel);
    letter-spacing: .14em;
    font-size: 10px;
    margin-top: 4px;
}

.sg-live-content {
    position: absolute;
    left: 64px;
    top: 0;
    bottom: 0;
    width: 600px;
    z-index: 5;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 18px;
}
.sg-live-eyebrow {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: ui-monospace, "DejaVu Sans Mono", monospace;
    font-size: 13px;
    letter-spacing: .42em;
    color: var(--ice);
    text-transform: uppercase;
}
.sg-live-eyebrow::before {
    content: "";
    width: 30px;
    height: 2px;
    background: var(--ice);
    box-shadow: 0 0 10px var(--ice);
}
.sg-live-eyebrow em { font-style: normal; color: var(--amber); letter-spacing: .2em; }
.sg-live-h1 {
    margin: 0;
    font-weight: 800;
    line-height: .92;
    letter-spacing: -1px;
    font-size: 78px;
    transform: scaleY(1.08);
    transform-origin: left center;
    text-shadow: 0 4px 40px rgba(0, 0, 0, .7);
}
.sg-live-w1 { color: var(--frost); }
.sg-live-w2 {
    color: var(--ice);
    text-shadow: 0 0 18px rgba(95, 228, 244, .65), 0 0 60px rgba(95, 228, 244, .35);
    animation: sgLiveTitleGlow 3.2s ease-in-out infinite;
}
.sg-live-sub { max-width: 520px; margin: 0; font-size: 19px; line-height: 1.5; color: #bccfd8; }
.sg-live-sub b { color: var(--frost); }
.sg-live-chips { display: flex; gap: 10px; margin-top: 2px; flex-wrap: wrap; }
.sg-live-chip {
    font-family: ui-monospace, "DejaVu Sans Mono", monospace;
    font-size: 13px;
    letter-spacing: .04em;
    color: var(--frost);
    background: rgba(13, 20, 28, .8);
    border: 1px solid rgba(95, 228, 244, .28);
    border-radius: 999px;
    padding: 7px 15px;
}
.sg-live-chip .n { color: var(--ice); font-weight: bold; }
.sg-live-chip.warm { border-color: rgba(245, 169, 78, .42); }
.sg-live-chip.warm .n { color: var(--amber); }

.sg-live-ladder { display: flex; align-items: flex-end; gap: 11px; margin-top: 14px; height: 96px; }
.sg-live-step { display: flex; flex-direction: column; align-items: center; gap: 7px; }
.sg-live-step .b {
    width: 30px;
    border-radius: 3px;
    background: linear-gradient(180deg, rgba(125, 143, 156, .55), rgba(125, 143, 156, .10));
    border: 1px solid rgba(125, 143, 156, .4);
}
.sg-live-step .l {
    font-family: ui-monospace, "DejaVu Sans Mono", monospace;
    font-size: 12px;
    color: var(--steel);
}
.sg-live-step.hot .b {
    background: linear-gradient(180deg, var(--ice-hi), var(--ice) 40%, var(--ice-deep));
    border-color: var(--ice);
    box-shadow: 0 0 22px rgba(95, 228, 244, .75), 0 0 60px rgba(95, 228, 244, .3);
    animation: sgLiveBarPulse 2.2s ease-in-out infinite;
}
.sg-live-step.hot .l { color: var(--ice); font-weight: bold; }
.sg-live-arrow {
    align-self: center;
    font-family: ui-monospace, "DejaVu Sans Mono", monospace;
    font-size: 12px;
    letter-spacing: .3em;
    color: var(--amber);
    margin-left: 10px;
    text-shadow: 0 0 12px rgba(245, 169, 78, .6);
    animation: sgLiveArrow 1.6s ease-in-out infinite;
}

.sg-live-bottom {
    position: absolute;
    left: 64px;
    right: 64px;
    bottom: 30px;
    z-index: 6;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid rgba(95, 228, 244, .18);
    padding-top: 12px;
    font-family: ui-monospace, "DejaVu Sans Mono", monospace;
    font-size: 14px;
    letter-spacing: .08em;
}
.sg-live-url { color: var(--frost); }
.sg-live-url b { color: var(--ice); font-weight: bold; }
.sg-live-srv { color: var(--steel); font-size: 12px; letter-spacing: .22em; }
.sg-live-srv b { color: var(--frost); font-weight: normal; }

@keyframes sgLiveRoll { to { top: 110%; } }
@keyframes sgLiveFlick {
    0%, 100% { filter: brightness(1); }
    11% { filter: brightness(.8); }
    12% { filter: brightness(1); }
    38% { filter: brightness(.9); }
    39% { filter: brightness(1); }
    67% { filter: brightness(.82); }
    68% { filter: brightness(1); }
}
@keyframes sgLiveTear {
    0%, 70%, 100% { opacity: .9; transform: skewX(-20deg) translateX(0); }
    72% { opacity: .4; transform: skewX(-20deg) translateX(8px); }
    74% { opacity: 1; transform: skewX(-28deg) translateX(-12px); }
    76% { opacity: .85; transform: skewX(-20deg) translateX(0); }
}
@keyframes sgLiveScan {
    from { transform: translateY(0); }
    to { transform: translateY(4px); }
}
@keyframes sgLiveHalo {
    0%, 100% { opacity: .85; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.06); }
}
@keyframes sgLivePillar {
    0%, 100% { opacity: .7; }
    50% { opacity: 1; }
}
@keyframes sgLiveSpin { to { transform: rotate(360deg); } }
@keyframes sgLiveCrystal {
    0%, 100% { filter: brightness(1); transform: translateY(0); }
    50% { filter: brightness(1.12); transform: translateY(-3px); }
}
@keyframes sgLiveTip {
    0%, 100% { opacity: .7; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.35); }
}
@keyframes sgLiveDash { to { stroke-dashoffset: -48; } }
@keyframes sgLiveBolt {
    0%, 8%, 100% { opacity: 0; stroke-dashoffset: 220; }
    10% { opacity: 1; stroke-dashoffset: 0; }
    14% { opacity: .25; }
    16% { opacity: 1; }
    22% { opacity: 0; stroke-dashoffset: -40; }
}
@keyframes sgLiveFloat {
    0%, 100% { transform: translateY(0); opacity: .45; }
    50% { transform: translateY(-10px); opacity: .9; }
}
@keyframes sgLiveAnno {
    0%, 100% { box-shadow: 0 0 0 rgba(95, 228, 244, 0); }
    50% { box-shadow: 0 0 18px rgba(95, 228, 244, .25); }
}
@keyframes sgLiveTitleGlow {
    0%, 100% { filter: brightness(1); }
    50% { filter: brightness(1.18); }
}
@keyframes sgLiveBarPulse {
    0%, 100% { box-shadow: 0 0 16px rgba(95, 228, 244, .55), 0 0 40px rgba(95, 228, 244, .2); }
    50% { box-shadow: 0 0 28px rgba(95, 228, 244, .9), 0 0 70px rgba(95, 228, 244, .4); }
}
@keyframes sgLiveArrow {
    0%, 100% { transform: translateX(0); opacity: .85; }
    50% { transform: translateX(6px); opacity: 1; }
}

/* Mobile caption — hidden on desktop */
.sg-live-mobile-caption {
    display: none;
}

@media (max-width: 720px) {
    .sg-live-wrap {
        aspect-ratio: 1 / 1.12;
        min-height: 300px;
        max-height: min(78vh, 520px);
    }

    /* Zoom stage: hide desktop typography, keep crystal + lightning */
    .sg-live-content,
    .sg-live-bottom,
    .sg-live-scrim {
        visibility: hidden;
        opacity: 0;
        pointer-events: none;
    }
    .sg-live-anno {
        display: none;
    }
    .sg-live-f1,
    .sg-live-f2,
    .sg-live-f3 {
        opacity: .28;
        filter: blur(1px);
    }

    .sg-live-mobile-caption {
        display: block;
        position: absolute;
        left: 0;
        right: 0;
        top: 0;
        bottom: auto;
        z-index: 8;
        padding: 1.05rem 1.15rem 2.8rem;
        background: linear-gradient(180deg, rgba(5, 10, 16, .94) 0%, rgba(5, 10, 16, .72) 55%, transparent 100%);
        pointer-events: none;
        text-align: left;
    }
    .sg-live-mobile-eyebrow {
        margin: 0 0 0.45rem;
        font-family: ui-monospace, "DejaVu Sans Mono", monospace;
        font-size: 0.68rem;
        letter-spacing: 0.16em;
        text-transform: uppercase;
        color: var(--amber);
        font-weight: 650;
    }
    .sg-live-mobile-title {
        margin: 0;
        font-size: clamp(1.85rem, 9vw, 2.45rem);
        font-weight: 800;
        line-height: 0.95;
        letter-spacing: -0.02em;
        color: #fff;
        text-shadow: 0 4px 28px rgba(0, 0, 0, .65);
    }
    .sg-live-mobile-title span {
        color: var(--ice-hi);
        text-shadow: 0 0 22px rgba(95, 228, 244, .55), 0 4px 28px rgba(0, 0, 0, .5);
        animation: sgLiveTitleGlow 3.2s ease-in-out infinite;
    }
    .sg-live-mobile-sub {
        margin: 0.55rem 0 0;
        font-size: 0.82rem;
        line-height: 1.4;
        color: #bccfd8;
        max-width: 22rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .sg-live-feed,
    .sg-live-roll,
    .sg-live-tear,
    .sg-live-scan,
    .sg-live-halo,
    .sg-live-pillar,
    .sg-live-rings,
    .sg-live-crystal,
    .sg-live-tip,
    .sg-live-wave-rough,
    .sg-live-wave-clean path,
    .sg-live-bolt,
    .sg-live-p,
    .sg-live-anno,
    .sg-live-w2,
    .sg-live-step.hot .b,
    .sg-live-arrow,
    .sg-live-mobile-title span {
        animation: none !important;
    }
    .sg-live-bolt { opacity: .55; stroke-dashoffset: 0; }
}

/* ——— Home slider: live calibration slide ——— */
.mech-slider-slide--live {
    overflow: hidden;
    background: #070b10;
}
.mech-slider-live-stage {
    position: absolute;
    inset: 0;
}
.mech-slider-slide--live .sg-live-wrap {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    aspect-ratio: auto;
    min-height: 0;
    max-height: none;
    border-radius: 0;
}
/* Desktop: no extra caption — banner typography is readable */
.mech-slider-slide--live .sg-live-mobile-caption {
    display: none !important;
}
/* Mobile home slider: show title overlay (scaled stage crops desktop copy) */
@media (max-width: 768px) {
    .mech-slider-slide--live .sg-live-mobile-caption {
        display: block !important;
        z-index: 5;
        top: 0;
        bottom: auto;
        padding: 0.7rem 2.75rem 2.2rem 0.75rem;
        background: linear-gradient(180deg, rgba(5, 10, 16, .95) 0%, rgba(5, 10, 16, .7) 58%, transparent 100%);
    }
    .mech-slider-slide--live .sg-live-mobile-title {
        font-size: clamp(1.35rem, 6.5vw, 1.85rem);
    }
    .mech-slider-slide--live .sg-live-mobile-sub {
        display: block;
        margin: 0.4rem 0 0;
        font-size: 0.72rem;
        line-height: 1.35;
        letter-spacing: 0.02em;
        color: #bccfd8;
        max-width: 18rem;
    }
}
.mech-slider-live-hit {
    position: absolute;
    inset: 0;
    z-index: 4;
    display: block;
    text-indent: -9999px;
    overflow: hidden;
}
.mech-slider-slide--live:not(.is-active) .sg-live *,
.mech-slider-slide--live.is-live-paused .sg-live * {
    animation-play-state: paused !important;
}
.home-slider-section .mech-slider-hud-overlay.is-hidden {
    display: none !important;
}
/* Keep HUD / controls above the clickable hit area */
.home-slider-section .mech-slider-hud-overlay,
.home-slider-section .mech-slider-controls-overlay {
    z-index: 6;
}
.home-slider-section .mech-slider-scanlines {
    z-index: 5;
    pointer-events: none;
}
