body {
    background-color: #fbfbfd;
    color: #0c0c0e;
    margin: 0;
    overflow-x: hidden;
    overflow-y: auto;
}

body::before {
    content: "";
    position: fixed;
    inset: -20%; /* חריגה כדי שהאנימציה לא תחשוף קצוות */
    background-image: radial-gradient(circle at 50% 50%, rgba(255, 208, 0, 0.06) 0%, rgba(251, 251, 253, 0) 60%);
    z-index: -2;
    pointer-events: none;
    animation: breatheLight 8s ease-in-out infinite alternate;
}

@keyframes breatheLight {
    0% { transform: scale(0.9); opacity: 0.7; }
    100% { transform: scale(1.1); opacity: 1; }
}


.fixed-ui { pointer-events: none; }
.fixed-ui > * { pointer-events: auto; }

.viewport-3d-container {
    position: fixed;
    top: 0; left: 0; width: 100vw; height: 100vh;
    perspective: 1500px;
    overflow: hidden;
    z-index: 0;
    pointer-events: none;
}

.world-3d {
    position: absolute;
    width: 100%; height: 100%;
    transform-style: preserve-3d;
    will-change: transform;
}

.space-node {
    position: absolute;
    top: 50%; left: 50%;
    width: 100%;
    padding: 24px;
    transform-style: preserve-3d;
    transform: translate(-50%, -50%);
    display: flex;
    justify-content: center;
    align-items: center;
    pointer-events: auto;
    will-change: transform, opacity;
}

.glass-panel {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.04),
        0 1px 3px rgba(0, 0, 0, 0.05),
        inset 0 0 0 1px rgba(255, 255, 255, 1);
    border-radius: 32px;
    width: 100%;
    max-width: 900px;
}

.hand-drawn-line {
    stroke-dasharray: 1000;
    stroke-dashoffset: 0;
    animation: draw 2s ease-out forwards;
}

@keyframes draw {
    from { stroke-dashoffset: 1000; }
    to { stroke-dashoffset: 0; }
}

@keyframes shrink-progress {
    from { transform: scaleX(1); }
    to { transform: scaleX(0); }
}

.animate-shrink {
    animation: shrink-progress 5s linear forwards;
}

::-webkit-scrollbar { width: 0px; }