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

body {
    font-family: 'Orbitron', sans-serif;
    background: #0D0D0D;
    color: #00F0FF;
    overflow-x: hidden;
}

.header {
    text-align: center;
    padding: 2rem 1rem 1rem;
    background: linear-gradient(180deg, #1A0B2E 0%, rgba(26, 11, 46, 0) 100%);
    position: relative;
    z-index: 10;
}

.title {
    font-size: clamp(2rem, 6vw, 4rem);
    font-weight: 900;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    background: linear-gradient(90deg, #FF10F0, #00F0FF, #FF10F0);
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradient 3s linear infinite;
    text-shadow: 0 0 30px rgba(255, 16, 240, 0.5),
                 0 0 60px rgba(0, 240, 255, 0.3);
}

.subtitle {
    font-size: clamp(0.9rem, 2vw, 1.2rem);
    margin-top: 0.5rem;
    color: #6B2E9E;
    font-weight: 400;
    letter-spacing: 0.1em;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes gradient {
    0% { background-position: 0% 50%; }
    100% { background-position: 200% 50%; }
}

@keyframes pulse {
    0%, 100% { opacity: 0.8; }
    50% { opacity: 1; }
}

#scene-container {
    width: 100%;
    height: 70vh;
    position: relative;
    cursor: grab;
}

#scene-container:active {
    cursor: grabbing;
}

.controls-container {
    max-width: 800px;
    margin: 2rem auto;
    padding: 0 1rem;
}

.current-form {
    text-align: center;
    margin-bottom: 1rem;
}

#form-indicator {
    display: inline-block;
    font-size: 1.5rem;
    font-weight: 700;
    padding: 0.5rem 1.5rem;
    background: rgba(255, 16, 240, 0.1);
    border: 2px solid #FF10F0;
    border-radius: 50px;
    box-shadow: 0 0 20px rgba(255, 16, 240, 0.3);
}

.transform-button {
    display: block;
    width: 100%;
    max-width: 400px;
    margin: 0 auto 2rem;
    padding: 1.5rem 3rem;
    font-family: 'Orbitron', sans-serif;
    font-size: 2rem;
    font-weight: 900;
    letter-spacing: 0.2em;
    color: #1A0B2E;
    background: linear-gradient(135deg, #FF10F0, #00F0FF);
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 30px rgba(255, 16, 240, 0.5);
}

.transform-button:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 40px rgba(255, 16, 240, 0.7);
}

.transform-button:active {
    transform: translateY(-2px);
}

.slider-container {
    margin: 2rem 0;
}

.slider-container label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
    color: #00F0FF;
    font-weight: 700;
}

input[type="range"] {
    width: 100%;
    height: 8px;
    background: linear-gradient(90deg, #6B2E9E, #FF10F0, #00F0FF);
    border-radius: 5px;
    outline: none;
    -webkit-appearance: none;
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 25px;
    height: 25px;
    background: #00F0FF;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 0 15px rgba(0, 240, 255, 0.8);
}

input[type="range"]::-moz-range-thumb {
    width: 25px;
    height: 25px;
    background: #00F0FF;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 0 15px rgba(0, 240, 255, 0.8);
    border: none;
}

.slider-labels {
    display: flex;
    justify-content: space-between;
    margin-top: 0.5rem;
    font-size: 0.8rem;
    color: #6B2E9E;
}

.control-panel {
    background: rgba(26, 11, 46, 0.5);
    border: 2px solid #6B2E9E;
    border-radius: 15px;
    padding: 1.5rem;
    margin-top: 2rem;
}

.control-group {
    margin-bottom: 1.5rem;
}

.control-group:last-child {
    margin-bottom: 0;
}

.control-btn {
    display: inline-block;
    margin: 0.25rem;
    padding: 0.75rem 1.5rem;
    font-family: 'Orbitron', sans-serif;
    font-size: 0.9rem;
    font-weight: 700;
    color: #00F0FF;
    background: rgba(0, 240, 255, 0.1);
    border: 2px solid #00F0FF;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.control-btn:hover {
    background: rgba(0, 240, 255, 0.2);
    box-shadow: 0 0 15px rgba(0, 240, 255, 0.5);
}

select {
    width: 100%;
    padding: 0.75rem;
    font-family: 'Orbitron', sans-serif;
    font-size: 1rem;
    color: #00F0FF;
    background: rgba(0, 240, 255, 0.1);
    border: 2px solid #00F0FF;
    border-radius: 5px;
    cursor: pointer;
}

.easter-egg-hint {
    margin-top: 1.5rem;
    padding: 1rem;
    text-align: center;
    font-size: 0.85rem;
    color: #FF10F0;
    background: rgba(255, 16, 240, 0.05);
    border: 1px dashed #FF10F0;
    border-radius: 10px;
}

.footer {
    text-align: center;
    padding: 2rem 1rem;
    margin-top: 3rem;
    background: rgba(26, 11, 46, 0.3);
    border-top: 2px solid #6B2E9E;
}

.footer p {
    margin: 0.5rem 0;
    font-size: 0.9rem;
    color: #6B2E9E;
}

.footer a {
    color: #FF10F0;
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer a:hover {
    color: #00F0FF;
    text-shadow: 0 0 10px rgba(0, 240, 255, 0.5);
}

.credits {
    font-size: 0.8rem !important;
    font-style: italic;
}

@media (max-width: 768px) {
    .header {
        padding: 1rem 0.5rem 0.5rem;
    }
    
    .title {
        letter-spacing: 0.1em;
    }
    
    .transform-button {
        font-size: 1.5rem;
        padding: 1rem 2rem;
    }
    
    .control-btn {
        display: block;
        width: 100%;
        margin: 0.5rem 0;
    }
    
    #scene-container {
        height: 50vh;
    }
}

@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}