:root {
    --bg-color: #050505;
    --text-color: #e0e0e0;
    --accent-color: #00ff88;
    --hub-size: 300px;
    --pulse-duration: 4s;
    --pulse-ease: cubic-bezier(0.4, 0, 0.6, 1);
    
    /* Lens colors */
    --color-emulation: #00f2ff;
    --color-poetry: #ff00ff;
    --color-skeleton: #27ae60;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    overflow: hidden;
    height: 100vh;
    width: 100vw;
}

#app {
    position: relative;
    height: 100%;
    width: 100%;
    display: block;
}

#lens-container {
    padding-top: 60px; /* HUD height */
    height: 100%;
    width: 100%;
}

@media (max-width: 768px) {
    body {
        overflow-y: auto;
    }
    #app {
        height: auto;
        min-height: 100vh;
    }
}

.lens {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    pointer-events: none;
    transition: opacity 1.2s var(--pulse-ease), transform 1.2s var(--pulse-ease), filter 1.2s var(--pulse-ease);
    transform: scale(1.5) rotate(5deg);
    filter: blur(20px);
    overflow-x: hidden;
    overflow-y: auto;
}

.lens.active {
    opacity: 1;
    pointer-events: auto;
    transform: scale(1) rotate(0deg);
    filter: blur(0px);
    z-index: 50;
}

/* Playground Split View Layout */
body.playground-open #lens-container {
    display: flex;
}

body.playground-open .lens.active:not(#playground) {
    display: none;
}

body.playground-open #playground.active {
    width: 100%;
    position: relative;
    opacity: 1;
    pointer-events: auto;
    transform: none;
    filter: none;
    transition: width 0.8s var(--pulse-ease);
}

#playground {
    z-index: 100;
}

/* Ensure other lenses are hidden when playground is full screen */
body:not(.playground-open) #playground.active {
    width: 100%;
}

/* Resonance Pulse Animation */
@keyframes breathe {
    0%, 100% { opacity: 0.8; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.02); }
}

.pulse {
    animation: breathe var(--pulse-duration) var(--pulse-ease) infinite;
}
