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

body {
    height: 100vh;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

body.transitioning {
    cursor: none;
}

body.transitioning * {
    pointer-events: none;
}

body.diminishing {
    animation: slightShake 0.1s infinite;
}

@keyframes slightShake {
    0%, 100% { transform: translate(0, 0); }
    25% { transform: translate(0.5px, 0); }
    75% { transform: translate(-0.5px, 0); }
}

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

@keyframes strobe {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.1; }
}

/* Strobing shape animations */
@keyframes strobe {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.3; transform: scale(1.2); }
    75% { opacity: 0.8; transform: scale(0.8); }
}

.gradient-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #f5f5f5 0%, #e0e0e0 25%, #d0d0d0 50%, #e0e0e0 75%, #f5f5f5 100%);
    animation: fadeInOut 4s ease-in-out infinite;
}

@keyframes fadeInOut {
    0%, 100% {
        opacity: 0.9;
    }
    50% {
        opacity: 1;
    }
}

.chair-container {
    position: relative;
    z-index: 10;
    perspective: 1000px;
}

.chair {
    width: 300px;
    height: auto;
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.1));
    will-change: transform, filter;
    transition: none;
    cursor: pointer;
}

.chair:hover {
    cursor: pointer;
}

.chair.hovered {
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.1));
    animation: none;
}

@keyframes mysticalGlow {
    0% {
        filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.1)) 
                drop-shadow(0 0 30px rgba(255, 255, 255, 0.8))
                drop-shadow(0 0 50px rgba(255, 255, 255, 0.6))
                drop-shadow(0 0 80px rgba(255, 255, 255, 0.4));
    }
    100% {
        filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.1)) 
                drop-shadow(0 0 40px rgba(255, 255, 255, 1))
                drop-shadow(0 0 70px rgba(255, 255, 255, 0.8))
                drop-shadow(0 0 100px rgba(255, 255, 255, 0.6))
                drop-shadow(0 0 150px rgba(255, 255, 255, 0.4));
    }
}

/* Add subtle background glow */
.chair-container::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 0;
    height: 0;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.4) 0%, rgba(255, 255, 255, 0.1) 50%, transparent 70%);
    border-radius: 50%;
    opacity: 0;
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
}

.chair-container:hover::before {
    opacity: 0;
    width: 0;
    height: 0;
}

.impurity-display, .form-display {
    font-family: 'Courier New', monospace;
    font-size: 14px;
    color: white;
    background: #000;
    padding: 4px 8px;
    border: 1px solid #333;
    user-select: none;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-weight: bold;
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.5);
}

.impurity-display {
    position: fixed;
    top: 10px;
    left: 10px;
    z-index: 10000;
}

.form-display {
    position: fixed;
    top: 34px;
    left: 10px;
    z-index: 10000;
}