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

body {
    font-family: 'Space Grotesk', sans-serif;
    overflow: hidden;
    background: #0a0a0f;
}

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

#blocker {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #0f0f1a 0%, #1a1a2e 50%, #16213e 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    cursor: pointer;
}

#blocker.hidden {
    display: none;
}

#instructions {
    text-align: center;
    color: #e8e8f0;
    padding: 3rem;
    max-width: 500px;
}

.title-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 0.5rem;
}

.title-icon {
    font-size: 3rem;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

#instructions h1 {
    font-family: 'JetBrains Mono', monospace;
    font-size: 2.5rem;
    font-weight: 700;
    background: linear-gradient(90deg, #64ffda, #7c3aed, #f472b6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.subtitle {
    font-size: 1.1rem;
    color: #8888aa;
    margin-bottom: 2.5rem;
    font-weight: 300;
}

.start-prompt {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    font-size: 1.3rem;
    color: #64ffda;
    margin-bottom: 2.5rem;
    font-weight: 500;
}

.click-indicator {
    width: 20px;
    height: 20px;
    border: 3px solid #64ffda;
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.2); opacity: 0.7; }
}

.controls-preview {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
    font-size: 0.9rem;
    color: #6a6a8a;
}

.control-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

kbd {
    background: rgba(100, 255, 218, 0.1);
    border: 1px solid rgba(100, 255, 218, 0.3);
    border-radius: 4px;
    padding: 0.3rem 0.6rem;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.8rem;
    color: #64ffda;
}

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

#crosshair {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-family: 'JetBrains Mono', monospace;
    font-size: 24px;
    color: rgba(100, 255, 218, 0.8);
    text-shadow: 0 0 10px rgba(100, 255, 218, 0.5);
    opacity: 0;
    transition: opacity 0.3s;
}

#crosshair.visible {
    opacity: 1;
}

#interaction-prompt {
    position: absolute;
    bottom: 120px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(10, 10, 20, 0.9);
    border: 1px solid rgba(100, 255, 218, 0.4);
    border-radius: 8px;
    padding: 0.8rem 1.5rem;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.9rem;
    color: #64ffda;
    opacity: 0;
    transition: opacity 0.2s;
}

#interaction-prompt.visible {
    opacity: 1;
}

#controls-hint {
    position: absolute;
    bottom: 20px;
    left: 20px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.75rem;
    color: rgba(136, 136, 170, 0.7);
    opacity: 0;
    transition: opacity 0.3s;
}

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

#radio-indicator {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(10, 10, 20, 0.9);
    border: 1px solid rgba(124, 58, 237, 0.5);
    border-radius: 8px;
    padding: 0.6rem 1rem;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.8rem;
    color: #a78bfa;
    opacity: 0;
    transition: opacity 0.3s;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

#radio-indicator.visible {
    opacity: 1;
}

#radio-indicator::before {
    content: '♪';
    animation: bounce 0.5s ease-in-out infinite alternate;
}

@keyframes bounce {
    from { transform: translateY(0); }
    to { transform: translateY(-3px); }
}

#chat-bubble {
    position: absolute;
    top: 40%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(10, 10, 20, 0.95);
    border: 2px solid rgba(244, 114, 182, 0.6);
    border-radius: 16px;
    padding: 1.2rem 2rem;
    font-size: 1.1rem;
    color: #f0f0f8;
    max-width: 400px;
    text-align: center;
    opacity: 0;
    transition: opacity 0.3s, transform 0.3s;
    pointer-events: none;
}

#chat-bubble.visible {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

#chat-bubble .speaker {
    font-family: 'JetBrains Mono', monospace;
    font-weight: 700;
    color: #f472b6;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 10, 20, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
}

.modal.hidden {
    display: none;
}

.modal-content {
    background: linear-gradient(145deg, #1a1a2e, #16213e);
    border: 1px solid rgba(100, 255, 218, 0.3);
    border-radius: 16px;
    padding: 2rem;
    width: 90%;
    max-width: 450px;
    position: relative;
}

.modal-content h2 {
    font-family: 'JetBrains Mono', monospace;
    color: #64ffda;
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    color: #8888aa;
    font-size: 1.5rem;
    cursor: pointer;
    transition: color 0.2s;
}

.modal-close:hover {
    color: #f472b6;
}

#whiteboard-input {
    width: 100%;
    height: 120px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(100, 255, 218, 0.2);
    border-radius: 8px;
    padding: 1rem;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1rem;
    color: #e8e8f0;
    resize: none;
    margin-bottom: 1rem;
}

#whiteboard-input:focus {
    outline: none;
    border-color: rgba(100, 255, 218, 0.5);
}

#whiteboard-input::placeholder {
    color: #6a6a8a;
}

.modal-buttons {
    display: flex;
    gap: 1rem;
}

.modal-buttons button {
    flex: 1;
    padding: 0.8rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s;
}

#whiteboard-write {
    background: linear-gradient(135deg, #64ffda, #4ade80);
    color: #0a0a0f;
}

#whiteboard-write:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(100, 255, 218, 0.4);
}

#whiteboard-clear {
    background: rgba(244, 114, 182, 0.2);
    color: #f472b6;
    border: 1px solid rgba(244, 114, 182, 0.4);
}

#whiteboard-clear:hover {
    background: rgba(244, 114, 182, 0.3);
}

#remix-link {
    position: fixed;
    bottom: 20px;
    right: 20px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.75rem;
    color: rgba(136, 136, 170, 0.6);
    text-decoration: none;
    z-index: 50;
    transition: color 0.2s;
}

#remix-link:hover {
    color: #64ffda;
}

@media (max-width: 600px) {
    #instructions h1 {
        font-size: 1.8rem;
    }
    
    .controls-preview {
        flex-direction: column;
        gap: 0.8rem;
    }
    
    #controls-hint {
        font-size: 0.65rem;
        left: 10px;
        bottom: 10px;
    }
    
    #radio-indicator {
        top: 10px;
        right: 10px;
        font-size: 0.7rem;
    }
}