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

body {
    overflow: hidden;
    background: #050a0e;
    font-family: 'Nunito Sans', sans-serif;
    color: #fff;
    cursor: default;
}

#scene-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

#scene-container canvas {
    display: block;
}

#ui-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10;
    pointer-events: none;
}

#title-area {
    position: absolute;
    top: 24px;
    left: 28px;
    display: flex;
    align-items: center;
    gap: 10px;
    opacity: 0.85;
}

#title-icon {
    font-size: 18px;
    filter: drop-shadow(0 0 6px rgba(100, 220, 120, 0.6));
}

#title-text {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 300;
    font-size: 22px;
    letter-spacing: 2px;
    text-shadow: 0 0 20px rgba(255,255,255,0.15);
    color: rgba(255,255,255,0.8);
}

#center-prompt {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, 80px);
    text-align: center;
    pointer-events: none;
    animation: promptPulse 3s ease-in-out infinite;
}

#center-prompt span {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 300;
    font-size: 20px;
    letter-spacing: 3px;
    color: rgba(255,255,255,0.6);
    text-shadow: 0 0 30px rgba(255,255,255,0.2);
}

@keyframes promptPulse {
    0%, 100% { opacity: 0.4; }
    50% { opacity: 1; }
}

#nav-hint {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 12px;
    letter-spacing: 1.5px;
    color: rgba(255,255,255,0.35);
    text-shadow: 0 0 10px rgba(0,0,0,0.5);
    opacity: 0;
    transition: opacity 0.8s;
    white-space: nowrap;
}

#nav-hint.visible {
    opacity: 1;
}

#sound-toggle {
    position: absolute;
    bottom: 28px;
    right: 28px;
    display: flex;
    align-items: center;
    gap: 8px;
    pointer-events: auto;
    opacity: 0.5;
    transition: opacity 0.3s;
}

#sound-toggle:hover {
    opacity: 0.9;
}

#sound-label {
    font-size: 11px;
    letter-spacing: 1px;
    color: rgba(255,255,255,0.6);
}

#sound-btn {
    font-size: 10px;
    letter-spacing: 1px;
    padding: 3px 10px;
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s;
    color: rgba(255,255,255,0.6);
}

#sound-btn.sound-on {
    border-color: rgba(100, 220, 160, 0.4);
    color: rgba(100, 220, 160, 0.8);
    box-shadow: 0 0 8px rgba(100, 220, 160, 0.15);
}

#exit-btn {
    position: fixed;
    top: 24px;
    right: 28px;
    z-index: 20;
    font-family: 'Cormorant Garamond', serif;
    font-size: 16px;
    letter-spacing: 2px;
    color: rgba(255,255,255,0.6);
    background: rgba(0,0,0,0.3);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 20px;
    padding: 6px 18px;
    cursor: pointer;
    transition: all 0.3s;
    backdrop-filter: blur(4px);
}

#exit-btn:hover {
    color: rgba(255,255,255,0.9);
    border-color: rgba(255,255,255,0.4);
    box-shadow: 0 0 20px rgba(255,255,255,0.1);
}

#footer {
    position: fixed;
    bottom: 6px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
}

#footer a {
    font-size: 10px;
    color: rgba(255,255,255,0.15);
    text-decoration: none;
    letter-spacing: 1px;
    transition: color 0.3s;
}

#footer a:hover {
    color: rgba(255,255,255,0.4);
}

#transition-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 50;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s;
}

.cursor-pointer {
    cursor: pointer;
}