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

.sound-toggle {
    position: fixed;
    top: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    cursor: pointer;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    transition: all 0.3s ease;
}

.sound-toggle:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

body {
    font-family: 'Arial', sans-serif;
    background: linear-gradient(45deg, #2D1B69, #0F3460, #E94560);
    background-size: 400% 400%;
    animation: gradientShift 15s ease infinite;
    color: #fff;
    overflow-x: hidden;
    min-height: 100vh;
}

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

.tunnel-container {
    min-height: 90vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
}

.entrance {
    text-align: center;
    z-index: 10;
    animation: throb 2s ease-in-out infinite;
}

@keyframes throb {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.neon-text {
    font-size: 4rem;
    text-shadow: 
        0 0 10px #ff006e,
        0 0 20px #ff006e,
        0 0 30px #ff006e,
        0 0 40px #ff006e;
    margin-bottom: 1rem;
    animation: flicker 3s infinite;
}

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

.tagline {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    font-style: italic;
    opacity: 0.9;
}

.enter-btn, .exit-btn, .vibe-btn, .reset-btn {
    padding: 1rem 2rem;
    font-size: 1.2rem;
    background: linear-gradient(45deg, #ff006e, #ff4458);
    border: none;
    border-radius: 50px;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 0, 110, 0.4);
}

.enter-btn:hover, .exit-btn:hover, .vibe-btn:hover, .reset-btn:hover {
    transform: translateY(-2px) scale(1.1);
    box-shadow: 0 6px 20px rgba(255, 0, 110, 0.6);
}

.reset-btn {
    background: linear-gradient(45deg, #666, #888);
    padding: 0.8rem 1.5rem;
    font-size: 1rem;
}

.reset-btn:hover {
    background: linear-gradient(45deg, #888, #aaa);
}

.bottom-controls {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 2rem;
}

.tunnel {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    perspective: 1000px;
    overflow: hidden;
}

.tunnel.active {
    display: block;
}

.tunnel-segment {
    position: absolute;
    width: 120%;
    height: 120%;
    top: -10%;
    left: -10%;
    border: 20px solid;
    border-image: linear-gradient(45deg, #ff006e, #8b00ff, #00ffff, #ff006e) 1;
    border-radius: 50%;
    animation: tunnelRotate 2s linear infinite;
    transform-style: preserve-3d;
}

.tunnel-segment:nth-child(1) {
    animation-delay: 0s;
    transform: translateZ(0px) scale(1);
}

.tunnel-segment:nth-child(2) {
    animation-delay: 0.4s;
    transform: translateZ(-200px) scale(0.8);
}

.tunnel-segment:nth-child(3) {
    animation-delay: 0.8s;
    transform: translateZ(-400px) scale(0.6);
}

.tunnel-segment:nth-child(4) {
    animation-delay: 1.2s;
    transform: translateZ(-600px) scale(0.4);
}

.tunnel-segment:nth-child(5) {
    animation-delay: 1.6s;
    transform: translateZ(-800px) scale(0.2);
}

@keyframes tunnelRotate {
    0% { transform: translateZ(var(--z, 0)) scale(var(--scale, 1)) rotate(0deg); }
    100% { transform: translateZ(var(--z, 0)) scale(var(--scale, 1)) rotate(360deg); }
}

.tunnel-progress {
    position: fixed;
    bottom: 10%;
    left: 50%;
    transform: translateX(-50%);
    width: 300px;
    text-align: center;
    z-index: 10;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 10px;
    position: relative;
}

.progress-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #ff006e, #ff4458, #ff6b6b);
    border-radius: 4px;
    animation: loadProgress 3s ease-out forwards;
}

@keyframes loadProgress {
    to { width: 100%; }
}

.progress-text {
    color: #fff;
    font-size: 1.2rem;
    text-shadow: 0 0 10px rgba(255, 0, 110, 0.5);
}

.vibe-zone {
    display: none;
    text-align: center;
    z-index: 10;
    animation: fadeIn 1s ease;
}

.vibe-zone.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.pulse {
    font-size: 3rem;
    margin-bottom: 2rem;
    animation: pulse 1s ease-in-out infinite;
}

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

.vibe-meter {
    width: 300px;
    margin: 2rem auto;
}

.meter-label {
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.meter-bar {
    width: 100%;
    height: 30px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 15px;
    overflow: hidden;
    position: relative;
}

.meter-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #ff006e, #ff4458, #ff6b6b);
    transition: width 0.5s ease;
    box-shadow: 0 0 10px rgba(255, 0, 110, 0.8);
}

.controls {
    margin: 2rem 0;
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.vibe-btn {
    padding: 0.8rem 1.5rem;
    font-size: 1rem;
}

.messages {
    margin: 2rem 0;
    min-height: 50px;
}

.hidden-message {
    font-size: 1.2rem;
    font-style: italic;
    opacity: 0.8;
}

.floating-vibes {
    position: fixed;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
    top: 0;
    left: 0;
    transform-style: preserve-3d;
    perspective: 1000px;
}

.vibe-emoji {
    position: absolute;
    font-size: 2rem;
    animation: float 10s infinite ease-in-out;
    opacity: 0.7;
}

.vibe-emoji:nth-child(1) {
    left: 10%;
    animation-delay: 0s;
    --z-depth: -100px;
}

.vibe-emoji:nth-child(2) {
    left: 30%;
    animation-delay: 2s;
    --z-depth: -200px;
}

.vibe-emoji:nth-child(3) {
    left: 50%;
    animation-delay: 4s;
    --z-depth: 100px;
}

.vibe-emoji:nth-child(4) {
    left: 70%;
    animation-delay: 6s;
    --z-depth: -150px;
}

.vibe-emoji:nth-child(5) {
    left: 90%;
    animation-delay: 8s;
    --z-depth: 50px;
}

@keyframes float {
    0% {
        transform: translateY(100vh) rotate(0deg) translateZ(var(--z-depth, 0));
    }
    50% {
        transform: translateY(-50vh) rotate(180deg) translateZ(var(--z-depth, 0));
    }
    100% {
        transform: translateY(100vh) rotate(360deg) translateZ(var(--z-depth, 0));
    }
}

footer {
    text-align: center;
    padding: 2rem;
    opacity: 0.8;
}

.disclaimer {
    font-size: 0.8rem;
    margin-top: 0.5rem;
    opacity: 0.6;
}

@media (max-width: 768px) {
    .neon-text {
        font-size: 2.5rem;
    }
    
    .controls {
        flex-direction: column;
        align-items: center;
    }
    
    .vibe-btn {
        width: 200px;
    }
}