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

body {
    font-family: 'Inter', sans-serif;
    color: #eee;
    overflow-x: hidden;
    overflow-y: auto;
    min-height: 1500vh; /* Enable scrolling for all 17 patterns (6 text + 11 animated) */
}

#container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(ellipse at 50% 50%, #0f0820 0%, #050208 70%, #000000 100%);
    overflow: hidden;
}

.glassmorphic-instructions {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    padding: 12px 25px;
    background: rgba(20, 0, 40, 0.3);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 15px;
    border: 1px solid rgba(255, 0, 255, 0.3);
    color: #00FFFF;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    text-align: center;
    z-index: 10;
    pointer-events: none;
    transition: opacity 0.5s ease;
    text-shadow: 0 0 10px rgba(0, 255, 255, 0.5);
}

canvas {
    display: block;
    width: 100%;
    height: 100%;
}

/* Mobile Optimization */
@media (max-width: 768px) {
    body {
        min-height: 2000vh; /* More scroll room on mobile */
        touch-action: pan-y; /* Enable vertical scrolling on touch */
    }

    .glassmorphic-instructions {
        bottom: 10px;
        padding: 10px 20px;
        font-size: 12px;
        max-width: 90%;
        white-space: normal;
        line-height: 1.4;
    }
}

@media (max-width: 480px) {
    .glassmorphic-instructions {
        font-size: 11px;
        padding: 8px 15px;
        bottom: 15px;
    }
}

/* Prevent zoom on double-tap on mobile */
@media (hover: none) and (pointer: coarse) {
    * {
        touch-action: manipulation;
    }
}

/* Optimize for mobile performance */
@media (max-width: 768px) {
    #container {
        /* Reduce gradient complexity on mobile */
        background: radial-gradient(ellipse at 50% 50%, #0f0820 0%, #000000 100%);
    }
}
