/* ═══════════════════════════════════════════
   Desktop / PC — lighter GPU path (live tests)
   Scoped: body.platform-desktop (≥769px, not handset)
   ═══════════════════════════════════════════ */

/* 1 — Video overlay: flat dim in preview; fully off during live test (match handset) */
body.platform-desktop .smart-dark-overlay.active::before,
body.platform-desktop .smart-dark-overlay.active::after {
    display: none !important;
    animation: none !important;
    opacity: 0 !important;
}

body.platform-desktop .smart-dark-overlay.active {
    background: rgba(0, 0, 0, 0.18) !important;
    transition: opacity 0.2s ease !important;
}

body.platform-desktop.app-mode-jump .smart-dark-overlay.active,
body.platform-desktop.app-mode-sidejump .smart-dark-overlay.active,
body.platform-desktop.app-mode-reaction .smart-dark-overlay.active {
    background: rgba(0, 0, 0, 0.16) !important;
}

body.platform-desktop.video-test-session-active .smart-dark-overlay,
body.platform-desktop.video-test-session-active .smart-dark-overlay.active,
body.platform-desktop.video-test-session-active .smart-dark-overlay.active::before,
body.platform-desktop.video-test-session-active .smart-dark-overlay.active::after {
    display: none !important;
    opacity: 0 !important;
    pointer-events: none !important;
    background: transparent !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
}

/* 2 — Static page background (no shimmer / blurred orbs) */
body.platform-desktop::after {
    animation: none !important;
    opacity: 0.42 !important;
}

body.platform-desktop .bg-orbs,
body.platform-desktop .orb {
    display: none !important;
}

body.platform-desktop .app-wrapper.blurred {
    filter: none !important;
    transform: none !important;
}

/* 3 — No backdrop-filter on chrome (solid panels instead) */
body.platform-desktop .app-header {
    background: rgba(20, 24, 36, 0.94) !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.28) !important;
}

body.platform-desktop .sidebar-card,
body.platform-desktop .sidebar-card-main,
body.platform-desktop .sidebar-right .sidebar-card {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    background: rgba(20, 24, 36, 0.94) !important;
}

body.platform-desktop.app-mode-reaction .sidebar-right {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    background: rgba(10, 14, 26, 0.96) !important;
}

body.platform-desktop .fps-badge,
body.platform-desktop .mobile-test-time-badge,
body.platform-desktop #mobileJumpCountBadge,
body.platform-desktop #mobileTestTimeBadge,
body.platform-desktop #mpInferenceBadge,
body.platform-desktop .frame-label,
body.platform-desktop .overlay-label-fancy,
body.platform-desktop .header-chips .chip:not(.chip-action) {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    filter: none !important;
}

body.platform-desktop .fps-badge,
body.platform-desktop .mobile-test-time-badge {
    background: rgba(10, 14, 26, 0.92) !important;
    box-shadow: 0 0 0 1px rgba(0, 230, 118, 0.15) !important;
}

body.platform-desktop .test-select-backdrop {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    background: rgba(3, 6, 18, 0.94) !important;
}

/* 4 — Countdown: static number (no pulse / scale loop) */
body.platform-desktop .test-countdown-overlay.visible,
body.platform-desktop.app-mode-jump .test-countdown-overlay.visible,
body.platform-desktop.app-mode-sidejump .test-countdown-overlay.visible {
    animation: none !important;
    transform: none !important;
}

/* 5 — Decorative infinite loops off */
body.platform-desktop .app-header::before {
    animation: none !important;
    opacity: 0.7 !important;
}

body.platform-desktop .brand-glow-ring {
    animation: none !important;
    box-shadow: none !important;
}

body.platform-desktop .group-test-bar__tag-dot,
body.platform-desktop .test-select-session-status--coach .test-select-session-status-dot {
    animation: none !important;
    opacity: 1 !important;
}

body.platform-desktop .btn-connect-dot,
body.platform-desktop .btn-connect--loading .btn-connect-dot {
    animation: none !important;
}

body.platform-desktop .btn-disconnect-dot {
    animation: none !important;
}

body.platform-desktop .chip-dot.active {
    animation: none !important;
    opacity: 1 !important;
}

body.platform-desktop .frame-label-dot.active,
body.platform-desktop .overlay-label-fancy .label-live.active {
    animation: none !important;
    opacity: 1 !important;
}

body.platform-desktop .jump-status-indicator.status-calibrating .status-dot,
body.platform-desktop .jump-status-indicator.status-jumping .status-dot {
    animation: none !important;
}

body.platform-desktop .video-merged-frame .video-placeholder .cam-icon,
body.platform-desktop .video-merged-frame .video-placeholder .placeholder-icon {
    animation: none !important;
    filter: none !important;
}

/* Jump analysis panel: drop heavy inset shadow during live pose */
body.platform-desktop.app-mode-jump .video-skeleton-frame.video-merged-frame,
body.platform-desktop.app-mode-sidejump .video-skeleton-frame.video-merged-frame {
    box-shadow: 0 0 0 1px rgba(0, 217, 255, 0.1) !important;
}

/* Post-start stand gate overlay (live camera — desktop) */
body.platform-desktop.app-mode-jump .jump-mobile-ready-prompt,
body.platform-desktop.app-mode-sidejump .jump-mobile-ready-prompt {
    position: absolute;
    inset: 0;
    z-index: 21;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    box-sizing: border-box;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.25s ease;
}

body.platform-desktop.app-mode-jump .jump-mobile-ready-prompt.is-visible,
body.platform-desktop.app-mode-sidejump .jump-mobile-ready-prompt.is-visible {
    opacity: 1;
}

body.platform-desktop.app-mode-jump .jump-mobile-ready-prompt[hidden],
body.platform-desktop.app-mode-sidejump .jump-mobile-ready-prompt[hidden] {
    display: none !important;
}

body.platform-desktop.app-mode-jump .jump-mobile-ready-prompt__card,
body.platform-desktop.app-mode-sidejump .jump-mobile-ready-prompt__card {
    max-width: min(360px, 92%);
    padding: 14px 16px 16px;
    border-radius: 14px;
    text-align: center;
    border: 1px solid rgba(0, 217, 255, 0.42);
    background: rgba(8, 12, 24, 0.92);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.55);
}

body.platform-desktop.app-mode-jump .jump-mobile-ready-prompt--calibrating .jump-mobile-ready-prompt__card,
body.platform-desktop.app-mode-sidejump .jump-mobile-ready-prompt--calibrating .jump-mobile-ready-prompt__card {
    border-color: rgba(52, 211, 153, 0.55);
}

body.platform-desktop.app-mode-jump .jump-mobile-ready-prompt__tick,
body.platform-desktop.app-mode-sidejump .jump-mobile-ready-prompt__tick {
    display: block;
    width: 2.5rem;
    height: 2.5rem;
    margin: 0 auto 8px;
    border-radius: 50%;
    line-height: 2.5rem;
    font-size: 1.35rem;
    font-weight: 800;
    color: #052e1a;
    background: linear-gradient(135deg, #34d399, #6ee7b7);
    box-shadow: 0 0 18px rgba(52, 211, 153, 0.45);
}

body.platform-desktop.app-mode-jump .jump-mobile-ready-prompt__tick[hidden],
body.platform-desktop.app-mode-sidejump .jump-mobile-ready-prompt__tick[hidden] {
    display: none !important;
}

body.platform-desktop.app-mode-jump .jump-mobile-ready-prompt__meter,
body.platform-desktop.app-mode-sidejump .jump-mobile-ready-prompt__meter {
    margin-top: 12px;
    height: 8px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.12);
    overflow: hidden;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.35);
}

body.platform-desktop.app-mode-jump .jump-mobile-ready-prompt__meter-bar,
body.platform-desktop.app-mode-sidejump .jump-mobile-ready-prompt__meter-bar {
    display: block;
    height: 100%;
    width: 10%;
    border-radius: inherit;
    background: linear-gradient(90deg, #00d9ff 0%, #22d3ee 45%, #34d399 100%);
    background-size: 200% 100%;
    transition: width 0.32s cubic-bezier(0.22, 1, 0.36, 1);
    box-shadow: 0 0 10px rgba(0, 217, 255, 0.45);
    animation: jump-mobile-ready-meter-shimmer 1.6s ease-in-out infinite;
}

body.platform-desktop.app-mode-jump .jump-mobile-ready-prompt--calibrating .jump-mobile-ready-prompt__meter-bar,
body.platform-desktop.app-mode-sidejump .jump-mobile-ready-prompt--calibrating .jump-mobile-ready-prompt__meter-bar {
    animation: jump-mobile-ready-meter-shimmer 1.2s ease-in-out infinite;
}

body.platform-desktop.app-mode-jump .jump-mobile-ready-prompt__meter--done .jump-mobile-ready-prompt__meter-bar,
body.platform-desktop.app-mode-sidejump .jump-mobile-ready-prompt__meter--done .jump-mobile-ready-prompt__meter-bar {
    background: linear-gradient(90deg, #22c55e 0%, #4ade80 55%, #86efac 100%);
    background-size: 100% 100%;
    animation: none;
    box-shadow: 0 0 12px rgba(52, 211, 153, 0.55);
}

body.platform-desktop.app-mode-jump .jump-mobile-ready-prompt__tick--done,
body.platform-desktop.app-mode-sidejump .jump-mobile-ready-prompt__tick--done {
    animation: jump-mobile-ready-tick-pop 0.45s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes jump-mobile-ready-meter-shimmer {
    0% { background-position: 100% 0; }
    100% { background-position: -100% 0; }
}

@keyframes jump-mobile-ready-tick-pop {
    0% {
        opacity: 0;
        transform: scale(0.55);
    }
    70% {
        transform: scale(1.08);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}
