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

body {
    font-family: 'Fredoka', sans-serif;
    overflow: hidden;
    background: linear-gradient(135deg, #1a0a2e 0%, #16213e 50%, #0f3460 100%);
    min-height: 100vh;
}

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

#header {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    z-index: 100;
    pointer-events: none;
}

#header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #fff;
    text-shadow: 0 2px 20px rgba(255, 200, 100, 0.5);
    letter-spacing: 0.05em;
}

#header p {
    font-size: 1rem;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.7);
    margin-top: 5px;
}

#controls {
    position: fixed;
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 100;
    display: flex;
    flex-direction: row;
    gap: 15px;
    padding: 15px 25px;
    background: rgba(30, 20, 50, 0.85);
    border-radius: 20px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(212, 175, 55, 0.3);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
}

#shake-btn {
    background: linear-gradient(135deg, #d4af37 0%, #f4d03f 100%);
    border: none;
    padding: 12px 24px;
    border-radius: 12px;
    font-family: 'Fredoka', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    color: #1a0a2e;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.4);
}

#shake-btn:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.6);
}

#shake-btn:active {
    transform: translateY(0) scale(0.98);
}

.control-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
    align-items: center;
}

.control-group label {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.6);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.mode-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 8px 16px;
    border-radius: 8px;
    font-family: 'Fredoka', sans-serif;
    font-size: 0.9rem;
    color: #fff;
    cursor: pointer;
    transition: all 0.3s ease;
}

.mode-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

#speed-slider {
    width: 80px;
    height: 6px;
    -webkit-appearance: none;
    appearance: none;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 3px;
    cursor: pointer;
}

#speed-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 16px;
    height: 16px;
    background: #d4af37;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(212, 175, 55, 0.5);
}

#speed-slider::-moz-range-thumb {
    width: 16px;
    height: 16px;
    background: #d4af37;
    border-radius: 50%;
    cursor: pointer;
    border: none;
}

#footer {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 100;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.5);
}

#footer a {
    color: rgba(255, 200, 100, 0.8);
    text-decoration: none;
    transition: color 0.3s ease;
}

#footer a:hover {
    color: #d4af37;
}

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

.peep {
    position: absolute;
    background: rgba(255, 255, 100, 0.95);
    color: #333;
    padding: 6px 12px;
    border-radius: 15px;
    font-size: 0.85rem;
    font-weight: 600;
    transform: translate(-50%, -50%);
    animation: peepFloat 1.5s ease-out forwards;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
}

.peep::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 50%;
    transform: translateX(-50%);
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 6px solid rgba(255, 255, 100, 0.95);
}

@keyframes peepFloat {
    0% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(0.5);
    }
    20% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
    100% {
        opacity: 0;
        transform: translate(-50%, -150%) scale(1);
    }
}

/* Mobile styles */
@media (max-width: 768px) {
    #header h1 {
        font-size: 1.8rem;
    }
    
    #header p {
        font-size: 0.85rem;
    }
    
    #controls {
        flex-direction: column;
        align-items: center;
        gap: 12px;
        padding: 12px 20px;
        bottom: 60px;
    }
    
    #shake-btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
    
    .control-group {
        flex-direction: row;
        gap: 10px;
    }
    
    #footer {
        font-size: 0.75rem;
        bottom: 15px;
    }
}

@media (max-width: 480px) {
    #header {
        top: 15px;
    }
    
    #header h1 {
        font-size: 1.5rem;
    }
    
    #controls {
        width: calc(100% - 40px);
        bottom: 50px;
    }
}