body, html {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    font-family: 'Segoe UI', 'Roboto', 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.5);
    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;
    background-size: 400% 400%;
    animation: gradientAnimation 30s ease infinite;
}

.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); }
}

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

#cursor-glow {
    position: fixed;
    top: 0;
    left: 0;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.06) 0%, rgba(255, 255, 255, 0) 60%);
    border-radius: 50%;
    pointer-events: none;
    z-index: 100;
    transform: translate(-50%, -50%);
    transition: all 0.2s ease-out;
    animation: cursorBreathe 4s ease-in-out infinite;
}

#cursor-glow.active {
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, var(--glow-color, rgba(255, 255, 255, 0.15)) 0%, rgba(255, 255, 255, 0) 50%);
    animation: none;
}

@keyframes cursorBreathe {
    0% { opacity: 0.9; transform: translate(-50%, -50%) scale(1); }
    50% { opacity: 1; transform: translate(-50%, -50%) scale(1.05); }
    100% { opacity: 0.9; transform: translate(-50%, -50%) scale(1); }
}

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

#ui-container {
    position: fixed;
    bottom: 15px;
    left: 15px;
    z-index: 101;
    background-color: rgba(0,0,0,0.2);
    padding: 8px 12px;
    border-radius: 5px;
    font-size: 13px;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    border: 1px solid rgba(255,255,255,0.1);
    transition: opacity 0.5s, transform 0.5s;
    opacity: 0;
    min-width: 220px;
    transform: translateY(10px);
}
#ui-container.visible {
    opacity: 0.8;
    transform: translateY(0);
}
#ui-container:hover {
    opacity: 1 !important;
}
#seed-capture {
    cursor: pointer;
    font-weight: bold;
    margin-top: 5px;
    display: block;
}
#seed-capture:hover {
    text-decoration: underline;
}
#mutator-display, #anomaly-display {
    font-size: 12px;
    color: #ccc;
    margin-top: 5px;
}
