@import url('https://fonts.googleapis.com/css2?family=Exo+2:wght@300;400;500;600&display=swap');

body,
html {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    font-family: 'Exo 2', sans-serif;
    color: white;
    cursor: none;
}

body {
    background-color: #000;
    transition: background 1s ease, filter 0.5s ease;
}

body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    box-shadow: inset 0 0 15vw rgba(0, 0, 0, 0.7);
    z-index: 102;
    transition: box-shadow 1s ease;
}

body.cataclysm-bleed {
    background: #fdfdfd !important;
}

body.cataclysm-bleed::after {
    box-shadow: none;
}

#canvas-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    transition: transform 2s cubic-bezier(0.76, 0, 0.24, 1), filter 1s ease, opacity 2s ease;
}

.shake {
    animation: shake 0.82s cubic-bezier(.36, .07, .19, .97) both infinite;
}

@keyframes shake {

    10%,
    90% {
        transform: translate3d(-1px, 0, 0);
    }

    20%,
    80% {
        transform: translate3d(2px, 0, 0);
    }

    30%,
    50%,
    70% {
        transform: translate3d(-4px, 0, 0);
    }

    40%,
    60% {
        transform: translate3d(4px, 0, 0);
    }
}

#cursor-glow {
    position: fixed;
    top: 0;
    left: 0;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.04) 0%, rgba(255, 255, 255, 0) 50%);
    border-radius: 50%;
    pointer-events: none;
    z-index: 100;
    transform: translate(-50%, -50%);
    transition: width 0.4s cubic-bezier(0.25, 0.8, 0.25, 1),
                height 0.4s cubic-bezier(0.25, 0.8, 0.25, 1),
                opacity 0.3s ease;
    animation: cursorBreathe 5s ease-in-out infinite;
    mix-blend-mode: screen;
}

#cursor-glow.active {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, var(--glow-color, rgba(255, 255, 255, 0.1)) 0%, rgba(255, 255, 255, 0) 40%);
    animation-play-state: paused;
}

@keyframes cursorBreathe {
    0% {
        opacity: 0.7;
        transform: translate(-50%, -50%) scale(0.95);
    }

    50% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1.05);
    }

    100% {
        opacity: 0.7;
        transform: translate(-50%, -50%) scale(0.95);
    }
}

/* New effect canvas layers */
#cursor-effects-canvas {
    image-rendering: auto;
}

#cursor-trail-canvas {
    image-rendering: auto;
}

#ambient-fx-canvas {
    image-rendering: auto;
    opacity: 0.85;
}

#warp-field-canvas {
    image-rendering: auto;
}

#particles-js {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 2;
}

#ui-container {
    position: fixed;
    bottom: 25px;
    left: 25px;
    z-index: 101;
    background: linear-gradient(145deg, rgba(20, 20, 25, 0.75), rgba(30, 30, 35, 0.75));
    padding: 15px 22px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 300;
    backdrop-filter: blur(16px) saturate(140%);
    -webkit-backdrop-filter: blur(16px) saturate(140%);
    border: 1px solid rgba(255, 255, 255, 0.12);
    transition: all 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
    opacity: 0;
    min-width: 260px;
    transform: translateY(20px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}
#ui-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('data:image/svg+xml,...');
    opacity: 0.03;
    pointer-events: none;
    border-radius: 12px;
}

#ui-container.visible {
    opacity: 0.9;
    transform: translateY(0);
}

#ui-container:hover {
    opacity: 1 !important;
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
    border-color: rgba(255, 255, 255, 0.2);
}

#blueprint-display {
    font-weight: 500;
    color: #fff;
    font-size: 1.1em;
    margin-bottom: 12px;
    letter-spacing: 0.5px;
}

#seed-capture {
    cursor: pointer;
    font-weight: 400;
    margin-top: 10px;
    display: block;
    color: #c0c0c0;
    transition: color 0.3s, letter-spacing 0.3s;
}

#seed-capture:hover {
    color: #fff;
    letter-spacing: 0.8px;
}

#seed-capture.copied-animation {
    animation: fadeInOut 2s ease-in-out;
}

@keyframes fadeInOut {
    0%, 100% {
        opacity: 0;
        transform: translateY(5px);
    }
    10%, 90% {
        opacity: 1;
        transform: translateY(0);
    }
}

#mutator-display,
#anomaly-display {
    font-size: 13px;
    color: #a0a0a0;
    margin-top: 10px;
    line-height: 1.4;
}
