/* =======================================================
   SPLIT-SCREEN 3-LAGS STRUKTUR (HARDWARE ACCELERERET)
   ======================================================= */
.split-layer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    display: none;
    pointer-events: none;
    overflow: hidden;
}

.split-layer.active {
    display: flex !important;
}

.split-zone-bg,
.split-zone-interactive {
    flex: 1;
    height: 100%;
    position: relative;
    box-sizing: border-box;
}

/* -------------------------------------------------------
   LAG 1: BAGGRUNDSLAG (Disko skinner 100% igennem)
   ------------------------------------------------------- */
#splitBgLayer {
    z-index: 2;
}

#splitBgLayer .bg-left,
#splitBgLayer .bg-center,
#splitBgLayer .bg-right {
    background: transparent;
}

/* -------------------------------------------------------
   LAG 2: ANIMATIONERNE
   ------------------------------------------------------- */
body.split-active #stickerOverlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 10;
    pointer-events: none;
    overflow: visible;
}

/* -------------------------------------------------------
   LAG 3: INTERAKTIVT SPIL-LAG (Forrest)
   ------------------------------------------------------- */
#splitInteractiveLayer {
    z-index: 50 !important;
}

#splitInteractiveLayer #zoneLeftInteractive {
    pointer-events: auto;
}

#splitInteractiveLayer #zoneCenterInteractive {
    pointer-events: none;
}

#splitInteractiveLayer #zoneRightInteractive {
    pointer-events: auto;
    user-select: none;
    touch-action: manipulation;
}

/* DVALE EFFEKTER (Fader blødt ud) */
#zoneRightInteractive .balloon-hud {
    opacity: 1;
    transition: opacity 0.5s ease-in-out;
}

#zoneRightInteractive.sleeping .balloon-hud {
    opacity: 0 !important;
    pointer-events: none !important;
}

/* =======================================================
   BALLONSPIL HUD & ELEMENTER
   ======================================================= */
.balloon-hud {
    position: fixed;
    top: 16px;
    right: 70px;
    display: flex;
    align-items: center;
    gap: 8px;
    z-index: 1000;
    pointer-events: none;
}

.balloon-score-pill {
    height: 44px;
    padding: 0 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    background: rgba(0, 0, 0, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 12px;
    color: #ffffff;
    font-size: 15px;
    font-weight: bold;
    box-shadow: 0 4px 12px rgba(0,0,0,0.6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    box-sizing: border-box;
    white-space: nowrap;
}

.balloon-target {
    position: absolute;
    top: 0;
    left: 0;
    border-radius: 50% 50% 50% 50% / 40% 40% 60% 60%;
    cursor: pointer;
    user-select: none;
    -webkit-user-drag: none;
    z-index: 55;
    will-change: transform;
    transform: translate3d(0, 0, 0);
}

.balloon-target:active {
    transform: scale(0.9) !important;
}

/* Ballon-knude forneden */
.balloon-target::after {
    content: "";
    position: absolute;
    bottom: -6px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-bottom: 7px solid inherit;
}

/* Ballon glans-refleksion (3D look) */
.balloon-target::before {
    content: "";
    position: absolute;
    top: 15%;
    left: 18%;
    width: 22%;
    height: 35%;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    transform: rotate(-30deg);
}

.pop-particle {
    position: absolute;
    top: 0;
    left: 0;
    pointer-events: none;
    border-radius: 50%;
    z-index: 60;
    will-change: transform, opacity;
}

/* =======================================================
   KONTROLPANEL ALTID PÅ TOPPEN
   ======================================================= */
.container {
    z-index: 5000 !important;
}

.collapse-panel-btn,
.info-panel-btn,
#fullscreenBtn,
#openPanelBtn,
#floatingBoothBtn {
    z-index: 6000 !important;
    cursor: pointer !important;
}

/* =======================================================
   NEON TEGNESPIL (VENSTRE SIDE)
   ======================================================= */
#zoneLeftInteractive {
    pointer-events: auto !important;
    touch-action: none !important;
    user-select: none !important;
}

#zoneLeftInteractive canvas,
.neon-draw-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100% !important;
    height: 100% !important;
    pointer-events: auto !important;
    touch-action: none !important;
    cursor: crosshair !important;
    z-index: 55 !important;
}