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

body {
    height: 100vh;
    overflow: hidden;
    background: linear-gradient(45deg, #0a0a0a, #1a1a2e, #16213e);
    background-size: 400% 400%;
    animation: breathe 8s ease-in-out infinite;
    font-family: 'Georgia', serif;
    cursor: none;
}

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

.canvas-container {
    position: relative;
    width: 100vw;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pulse {
    position: absolute;
    border-radius: 50%;
    border: 2px solid rgba(255, 100, 100, 0.6);
    animation: pulse 2s ease-in-out infinite;
    pointer-events: none;
}

@keyframes pulse {
    0% {
        transform: scale(0.1);
        opacity: 1;
        border-width: 8px;
    }
    70% {
        transform: scale(1);
        opacity: 0.7;
        border-width: 2px;
    }
    100% {
        transform: scale(1.2);
        opacity: 0;
        border-width: 1px;
    }
}

.breath-circle {
    position: absolute;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(100, 150, 255, 0.1), transparent);
    animation: breatheCircle 4s ease-in-out infinite;
}

@keyframes breatheCircle {
    0%, 100% {
        transform: scale(0.8);
        opacity: 0.3;
    }
    50% {
        transform: scale(1.2);
        opacity: 0.6;
    }
}

.text-overlay {
    position: absolute;
    color: rgba(255, 255, 255, 0.8);
    font-size: 18px;
    line-height: 1.6;
    text-align: center;
    max-width: 600px;
    animation: fadeInOut 12s ease-in-out infinite;
    pointer-events: none;
    transition: opacity 3s ease-in-out;
}

.text-overlay.top {
    top: 10%;
}

.text-overlay.bottom {
    bottom: 10%;
    font-style: italic;
    font-size: 16px;
}

@keyframes fadeInOut {
    0%, 20%, 80%, 100% { opacity: 0; }
    40%, 60% { opacity: 1; }
}

.interaction-hint {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255, 255, 255, 0.5);
    font-size: 14px;
    animation: blink 3s ease-in-out infinite;
}

@keyframes blink {
    0%, 50%, 100% { opacity: 0.5; }
    25%, 75% { opacity: 1; }
}

.collective-pulse {
    position: absolute;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 200, 100, 0.8), rgba(255, 100, 100, 0.4));
    animation: collectivePulse 1.5s ease-in-out infinite;
}

@keyframes collectivePulse {
    0%, 100% {
        transform: scale(0.5);
        box-shadow: 0 0 0 0 rgba(255, 100, 100, 0.7);
    }
    50% {
        transform: scale(1);
        box-shadow: 0 0 0 20px rgba(255, 100, 100, 0);
    }
}

.cursor-trail {
    position: absolute;
    width: 4px;
    height: 4px;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 50%;
    pointer-events: none;
    animation: trailFade 1s ease-out forwards;
}

@keyframes trailFade {
    to {
        opacity: 0;
        transform: scale(0);
    }
}

.breath-overlay {
    position: absolute;
    width: 100%;
    height: 100%;
    pointer-events: none;
    background: radial-gradient(circle at center, rgba(100, 200, 255, 0.05), transparent 60%);
    animation: breatheOverlay 6s ease-in-out infinite;
}

@keyframes breatheOverlay {
    0%, 100% {
        transform: scale(0.9);
        opacity: 0.2;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.4;
    }
}

.breath-particle {
    position: absolute;
    width: 3px;
    height: 3px;
    background: rgba(150, 200, 255, 0.6);
    border-radius: 50%;
    pointer-events: none;
    animation: breatheParticle 4s ease-in-out infinite;
}

@keyframes breatheParticle {
    0% {
        transform: scale(0) translateY(0);
        opacity: 0;
    }
    25% {
        transform: scale(1) translateY(-20px);
        opacity: 1;
    }
    75% {
        transform: scale(1) translateY(-40px);
        opacity: 1;
    }
    100% {
        transform: scale(0) translateY(-60px);
        opacity: 0;
    }
}

.mind-node {
    position: absolute;
    width: 6px;
    height: 6px;
    background: rgba(255, 255, 100, 0.225);
    border-radius: 50%;
    pointer-events: none;
    box-shadow: 0 0 8px rgba(255, 255, 100, 0.15);
    animation: mindPulse 0.2s ease-in-out, slowColorShift 30s ease-in-out infinite;
}

.mind-node.moving {
    animation: movingMindPulse 0.5s ease-in-out infinite alternate, slowColorShift 30s ease-in-out infinite;
    box-shadow: 0 0 12px rgba(255, 255, 100, 0.2);
}

.mind-connection {
    position: absolute;
    height: 1px;
    background: linear-gradient(90deg, rgba(255, 255, 100, 0.8), rgba(100, 255, 255, 0.8));
    pointer-events: none;
    animation: connectionFlash 0.2s ease-in-out;
}

.mind-connection.dynamic {
    background: linear-gradient(90deg, 
        rgba(255, 255, 100, 0.9), 
        rgba(100, 255, 255, 0.7), 
        rgba(255, 100, 255, 0.5));
    height: 2px;
    animation: dynamicConnection 1s ease-in-out infinite;
}

@keyframes mindPulse {
    0% {
        transform: scale(0);
        opacity: 0;
    }
    50% {
        transform: scale(1.5);
        opacity: 1;
    }
    100% {
        transform: scale(0.8);
        opacity: 0.8;
    }
}

@keyframes connectionFlash {
    0% {
        opacity: 0;
        transform: scaleX(0);
    }
    50% {
        opacity: 1;
        transform: scaleX(1);
    }
    100% {
        opacity: 0;
        transform: scaleX(1);
    }
}

@keyframes movingMindPulse {
    0% {
        box-shadow: 0 0 8px rgba(255, 255, 100, 0.15);
        background: rgba(255, 255, 100, 0.225);
    }
    100% {
        box-shadow: 0 0 16px rgba(255, 255, 100, 0.25);
        background: rgba(255, 255, 150, 0.25);
    }
}

@keyframes dynamicConnection {
    0% {
        opacity: 0.3;
        filter: hue-rotate(0deg);
    }
    50% {
        opacity: 0.8;
        filter: hue-rotate(180deg);
    }
    100% {
        opacity: 0.3;
        filter: hue-rotate(360deg);
    }
}

@keyframes slowColorShift {
    0% {
        filter: hue-rotate(0deg);
    }
    25% {
        filter: hue-rotate(60deg);
    }
    50% {
        filter: hue-rotate(120deg);
    }
    75% {
        filter: hue-rotate(240deg);
    }
    100% {
        filter: hue-rotate(360deg);
    }
}

.life-essence {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.08), transparent 70%);
    box-shadow: 0 0 30px rgba(255, 255, 255, 0.05), inset 0 0 20px rgba(255, 255, 255, 0.03);
    animation: lifeFloat 25s ease-in-out infinite, lifePulse 8s ease-in-out infinite, lifeColorShift 40s ease-in-out infinite;
    z-index: -1;
}

.life-essence.large {
    width: 120px;
    height: 120px;
    background: radial-gradient(circle, rgba(200, 255, 200, 0.06), transparent 70%);
}

.life-essence.medium {
    width: 80px;
    height: 80px;
    background: radial-gradient(circle, rgba(255, 200, 255, 0.05), transparent 70%);
}

.life-essence.small {
    width: 40px;
    height: 40px;
    background: radial-gradient(circle, rgba(200, 200, 255, 0.04), transparent 70%);
}

@keyframes lifeFloat {
    0% {
        transform: translateY(0px) translateX(0px) rotate(0deg);
    }
    25% {
        transform: translateY(-30px) translateX(20px) rotate(90deg);
    }
    50% {
        transform: translateY(-60px) translateX(-10px) rotate(180deg);
    }
    75% {
        transform: translateY(-30px) translateX(-25px) rotate(270deg);
    }
    100% {
        transform: translateY(0px) translateX(0px) rotate(360deg);
    }
}

@keyframes lifePulse {
    0%, 100% {
        opacity: 0.3;
        transform: scale(0.8);
    }
    50% {
        opacity: 0.6;
        transform: scale(1.2);
    }
}

@keyframes lifeColorShift {
    0% {
        filter: hue-rotate(0deg) saturate(0.5);
    }
    33% {
        filter: hue-rotate(120deg) saturate(0.7);
    }
    66% {
        filter: hue-rotate(240deg) saturate(0.4);
    }
    100% {
        filter: hue-rotate(360deg) saturate(0.5);
    }
}

.energy-flow {
    position: absolute;
    height: 2px;
    background: linear-gradient(90deg, 
        rgba(255, 255, 255, 0.8), 
        rgba(100, 255, 200, 0.6), 
        rgba(255, 255, 255, 0.2));
    pointer-events: none;
    animation: energyFlow 3s ease-in-out forwards;
    z-index: 1;
}

@keyframes energyFlow {
    0% {
        opacity: 0;
        transform: scaleX(0);
        filter: blur(2px);
    }
    20% {
        opacity: 1;
        transform: scaleX(0.3);
        filter: blur(1px);
    }
    80% {
        opacity: 0.8;
        transform: scaleX(1);
        filter: blur(0);
    }
    100% {
        opacity: 0;
        transform: scaleX(1);
        filter: blur(3px);
    }
}

.floating-seed {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    background: radial-gradient(circle, rgba(200, 255, 150, 0.15), rgba(150, 255, 200, 0.08));
    box-shadow: 0 0 15px rgba(200, 255, 150, 0.1);
    animation: seedFloat 20s ease-in-out infinite, seedPulse 4s ease-in-out infinite;
    z-index: -2;
}

.floating-seed.small {
    width: 8px;
    height: 8px;
    background: radial-gradient(circle, rgba(255, 200, 150, 0.12), rgba(255, 150, 200, 0.06));
}

.floating-seed.medium {
    width: 12px;
    height: 12px;
    background: radial-gradient(circle, rgba(150, 200, 255, 0.15), rgba(200, 150, 255, 0.08));
}

@keyframes seedFloat {
    0%, 100% {
        transform: rotate(0deg) scale(1);
    }
    25% {
        transform: rotate(90deg) scale(1.1);
    }
    50% {
        transform: rotate(180deg) scale(0.9);
    }
    75% {
        transform: rotate(270deg) scale(1.05);
    }
}

@keyframes seedPulse {
    0%, 100% {
        opacity: 0.4;
        box-shadow: 0 0 10px rgba(200, 255, 150, 0.08);
    }
    50% {
        opacity: 0.8;
        box-shadow: 0 0 20px rgba(200, 255, 150, 0.15);
    }
}

.aura-ring {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    border: 1px solid rgba(255, 255, 255, 0.1);
    z-index: -1;
}

.aura-ring.ring-0 {
    width: 400px;
    height: 400px;
    margin-left: -200px;
    margin-top: -200px;
    animation: auraRing0 8s ease-in-out forwards;
}

.aura-ring.ring-1 {
    width: 500px;
    height: 500px;
    margin-left: -250px;
    margin-top: -250px;
    animation: auraRing1 8s ease-in-out forwards;
}

.aura-ring.ring-2 {
    width: 600px;
    height: 600px;
    margin-left: -300px;
    margin-top: -300px;
    animation: auraRing2 8s ease-in-out forwards;
}

.aura-ring.ring-3 {
    width: 700px;
    height: 700px;
    margin-left: -350px;
    margin-top: -350px;
    animation: auraRing3 8s ease-in-out forwards;
}

@keyframes auraRing0 {
    0% {
        opacity: 0;
        transform: scale(0.5);
        border-color: rgba(255, 200, 200, 0.3);
    }
    50% {
        opacity: 0.6;
        transform: scale(1);
        border-color: rgba(200, 255, 200, 0.4);
    }
    100% {
        opacity: 0;
        transform: scale(1.2);
        border-color: rgba(200, 200, 255, 0.2);
    }
}

@keyframes auraRing1 {
    0% {
        opacity: 0;
        transform: scale(0.6);
        border-color: rgba(255, 255, 200, 0.25);
    }
    50% {
        opacity: 0.4;
        transform: scale(1);
        border-color: rgba(255, 200, 255, 0.3);
    }
    100% {
        opacity: 0;
        transform: scale(1.15);
        border-color: rgba(200, 255, 255, 0.15);
    }
}

@keyframes auraRing2 {
    0% {
        opacity: 0;
        transform: scale(0.7);
        border-color: rgba(200, 255, 200, 0.2);
    }
    50% {
        opacity: 0.3;
        transform: scale(1);
        border-color: rgba(255, 200, 200, 0.25);
    }
    100% {
        opacity: 0;
        transform: scale(1.1);
        border-color: rgba(255, 255, 200, 0.1);
    }
}

@keyframes auraRing3 {
    0% {
        opacity: 0;
        transform: scale(0.8);
        border-color: rgba(255, 255, 255, 0.15);
    }
    50% {
        opacity: 0.2;
        transform: scale(1);
        border-color: rgba(255, 255, 255, 0.2);
    }
    100% {
        opacity: 0;
        transform: scale(1.05);
        border-color: rgba(255, 255, 255, 0.05);
    }
}

.influence-connection {
    position: absolute;
    height: 1px;
    background: linear-gradient(90deg, 
        rgba(255, 255, 255, 0.8), 
        rgba(255, 200, 100, 0.6), 
        rgba(255, 255, 255, 0.3));
    pointer-events: none;
    animation: influenceFlow 1s ease-in-out forwards;
    z-index: 2;
}

@keyframes influenceFlow {
    0% {
        opacity: 0;
        transform: scaleX(0);
        filter: blur(3px);
    }
    30% {
        opacity: 1;
        transform: scaleX(0.7);
        filter: blur(1px);
    }
    70% {
        opacity: 0.8;
        transform: scaleX(1);
        filter: blur(0px);
    }
    100% {
        opacity: 0;
        transform: scaleX(1);
        filter: blur(2px);
    }
}

.influence-ripple {
    position: absolute;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.6);
    pointer-events: none;
    animation: influenceRipple 2s ease-out forwards;
    margin-left: -10px;
    margin-top: -10px;
}

@keyframes influenceRipple {
    0% {
        transform: scale(0);
        opacity: 1;
        border-width: 3px;
    }
    50% {
        transform: scale(3);
        opacity: 0.5;
        border-width: 2px;
    }
    100% {
        transform: scale(6);
        opacity: 0;
        border-width: 1px;
    }
}

.floating-seed.energized {
    animation: energizedSeed 1s ease-in-out infinite, seedFloat 20s ease-in-out infinite, seedPulse 4s ease-in-out infinite;
}

@keyframes energizedSeed {
    0%, 100% {
        transform: scale(1) rotate(0deg);
        filter: brightness(1) hue-rotate(0deg);
    }
    50% {
        transform: scale(1.3) rotate(180deg);
        filter: brightness(1.5) hue-rotate(120deg);
    }
}

@keyframes amplifiedMindPulse {
    0% {
        transform: scale(1);
        box-shadow: 0 0 8px rgba(255, 255, 100, 0.15);
    }
    50% {
        transform: scale(2);
        box-shadow: 0 0 25px rgba(255, 255, 100, 0.4);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 0 8px rgba(255, 255, 100, 0.15);
    }
}

.spirit-wisp {
    position: absolute;
    width: 25px;
    height: 25px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.4), rgba(200, 220, 255, 0.2), transparent 60%);
    box-shadow: 0 0 30px rgba(255, 255, 255, 0.3), 0 0 60px rgba(200, 220, 255, 0.2);
    pointer-events: none;
    animation: spiritFloat 30s ease-in-out infinite, spiritGlow 6s ease-in-out infinite;
    z-index: 0;
}

.spirit-trail {
    position: absolute;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.6), transparent 70%);
    pointer-events: none;
    animation: spiritTrailFade 3s ease-out forwards;
    z-index: -1;
}

.spirit-emanation {
    position: absolute;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.3), transparent 70%);
    pointer-events: none;
    animation: spiritEmanation 3s ease-out forwards;
    margin-left: -50px;
    margin-top: -50px;
    z-index: 1;
}

@keyframes spiritFloat {
    0%, 100% {
        transform: translateY(0px) translateX(0px) rotate(0deg);
        opacity: 0.6;
    }
    25% {
        transform: translateY(-20px) translateX(10px) rotate(90deg);
        opacity: 0.8;
    }
    50% {
        transform: translateY(-40px) translateX(-5px) rotate(180deg);
        opacity: 0.9;
    }
    75% {
        transform: translateY(-20px) translateX(-15px) rotate(270deg);
        opacity: 0.7;
    }
}

@keyframes spiritGlow {
    0%, 100% {
        box-shadow: 0 0 20px rgba(255, 255, 255, 0.2), 0 0 40px rgba(200, 220, 255, 0.15);
    }
    50% {
        box-shadow: 0 0 40px rgba(255, 255, 255, 0.4), 0 0 80px rgba(200, 220, 255, 0.3);
    }
}

@keyframes spiritTrailFade {
    0% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.6;
        transform: scale(0.8);
    }
    100% {
        opacity: 0;
        transform: scale(0.3);
    }
}

@keyframes spiritEmanation {
    0% {
        opacity: 0;
        transform: scale(0.5);
    }
    30% {
        opacity: 0.8;
        transform: scale(1);
    }
    100% {
        opacity: 0;
        transform: scale(2);
    }
}

@keyframes spiritIllumination {
    0% {
        filter: brightness(1) hue-rotate(0deg);
        box-shadow: 0 0 20px rgba(255, 255, 255, 0.2);
    }
    50% {
        filter: brightness(1.8) hue-rotate(180deg);
        box-shadow: 0 0 50px rgba(255, 255, 255, 0.6);
    }
    100% {
        filter: brightness(1) hue-rotate(360deg);
        box-shadow: 0 0 20px rgba(255, 255, 255, 0.2);
    }
}

.spirit-wisp.illuminated {
    animation: spiritFloat 30s ease-in-out infinite, spiritGlow 6s ease-in-out infinite, spiritIllumination 2s ease-in-out infinite;
}

.volume-control {
    position: absolute;
    bottom: 20px;
    left: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    color: rgba(255, 255, 255, 0.6);
    font-size: 12px;
    gap: 8px;
    transition: opacity 0.3s ease;
    z-index: 10;
}

.volume-control:hover {
    opacity: 1;
}

.volume-control label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.7;
}

.volume-slider {
    width: 80px;
    height: 4px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 2px;
    outline: none;
    opacity: 0.6;
    transition: opacity 0.3s ease;
    cursor: pointer;
}

.volume-slider:hover {
    opacity: 1;
}

.volume-slider::-webkit-slider-thumb {
    appearance: none;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.8);
    cursor: pointer;
    box-shadow: 0 0 6px rgba(255, 255, 255, 0.3);
}

.volume-slider::-moz-range-thumb {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.8);
    cursor: pointer;
    border: none;
    box-shadow: 0 0 6px rgba(255, 255, 255, 0.3);
}

.user-input-container {
    position: absolute;
    top: 20px;
    left: 20px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    z-index: 15;
}

.input-label {
    color: rgba(255, 255, 255, 0.7);
    font-size: 12px;
    font-family: 'Georgia', serif;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.8;
}

.user-input {
    width: 300px;
    padding: 8px 12px;
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 20px;
    color: rgba(255, 255, 255, 0.9);
    font-family: 'Georgia', serif;
    font-size: 13px;
    text-align: center;
    outline: none;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.user-input:focus {
    border-color: rgba(255, 255, 255, 0.6);
    background: rgba(0, 0, 0, 0.8);
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.2);
}

.user-input::placeholder {
    color: rgba(255, 255, 255, 0.4);
    font-style: italic;
}

.create-button {
    padding: 6px 20px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 15px;
    color: rgba(255, 255, 255, 0.8);
    font-family: 'Georgia', serif;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.create-button:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
    transform: scale(1.05);
}

.create-button:active {
    transform: scale(0.95);
}

.instructions-dropdown {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 20;
}

.instructions-button {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: rgba(255, 255, 255, 0.8);
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.instructions-button:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
    transform: scale(1.1);
}

.instructions-content {
    position: absolute;
    top: 40px;
    right: 0;
    background: rgba(0, 0, 0, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    padding: 20px;
    min-width: 280px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    backdrop-filter: blur(15px);
    font-family: 'Georgia', serif;
}

.instructions-content.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.instructions-content h3 {
    margin: 0 0 12px 0;
    color: rgba(255, 255, 255, 0.9);
    font-size: 16px;
    font-weight: normal;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    padding-bottom: 8px;
}

.instructions-content p {
    margin: 8px 0;
    color: rgba(255, 255, 255, 0.7);
    font-size: 13px;
    line-height: 1.4;
}

.attribution {
    position: absolute;
    bottom: 20px;
    right: 20px;
    font-size: 11px;
    color: rgba(255, 255, 255, 0.4);
    font-family: 'Georgia', serif;
    font-style: italic;
    z-index: 10;
}

.attribution a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    transition: color 0.3s ease;
}

.attribution a:hover {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: underline;
}

.ai-generated-element {
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.5));
}

.custom-ai-element {
    z-index: 5;
}

@keyframes customElementPulse {
    0%, 100% {
        transform: scale(0.8);
        opacity: 0.6;
    }
    50% {
        transform: scale(1.2);
        opacity: 1;
    }
}

.ai-feedback {
    line-height: 1.4;
}

@media (max-width: 768px) {
    .text-overlay {
        font-size: 16px;
        max-width: 90%;
        padding: 0 20px;
    }
    
    .breath-circle {
        width: 200px;
        height: 200px;
    }
    
    .volume-control {
        bottom: 80px;
        left: 15px;
    }
    
    .volume-slider {
        width: 60px;
    }
    
    .user-input-container {
        top: 15px;
        left: 15px;
    }
    
    .user-input {
        width: 250px;
        font-size: 12px;
    }
}

.cosmic-star {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.8), rgba(255, 255, 255, 0.2), transparent 70%);
    pointer-events: none;
    animation: starTwinkle 4s ease-in-out infinite, starDrift 60s linear infinite;
    z-index: -4;
}

.cosmic-star.small {
    width: 2px;
    height: 2px;
    box-shadow: 0 0 4px rgba(255, 255, 255, 0.6);
}

.cosmic-star.medium {
    width: 3px;
    height: 3px;
    box-shadow: 0 0 6px rgba(200, 220, 255, 0.7);
}

.cosmic-star.large {
    width: 4px;
    height: 4px;
    box-shadow: 0 0 8px rgba(255, 200, 200, 0.8);
}

.cosmic-planet {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    animation: planetOrbit 120s linear infinite, planetPulse 15s ease-in-out infinite;
    z-index: -4;
}

.cosmic-planet.small {
    width: 12px;
    height: 12px;
    background: radial-gradient(circle at 30% 30%, rgba(100, 150, 255, 0.4), rgba(50, 100, 200, 0.2), transparent 80%);
    box-shadow: 0 0 15px rgba(100, 150, 255, 0.3);
}

.cosmic-planet.medium {
    width: 18px;
    height: 18px;
    background: radial-gradient(circle at 25% 25%, rgba(255, 150, 100, 0.4), rgba(200, 100, 50, 0.2), transparent 80%);
    box-shadow: 0 0 20px rgba(255, 150, 100, 0.3);
}

.cosmic-planet.large {
    width: 25px;
    height: 25px;
    background: radial-gradient(circle at 20% 20%, rgba(150, 255, 150, 0.4), rgba(100, 200, 100, 0.2), transparent 80%);
    box-shadow: 0 0 25px rgba(150, 255, 150, 0.3);
}

.cosmic-galaxy {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(ellipse 80% 30% at center, rgba(200, 150, 255, 0.3), rgba(100, 100, 200, 0.1), transparent 70%);
    pointer-events: none;
    animation: galaxyRotate 200s linear infinite, galaxyPulse 25s ease-in-out infinite;
    z-index: -4;
}

.cosmic-galaxy.spiral {
    width: 60px;
    height: 20px;
    background: radial-gradient(ellipse 90% 25% at center, rgba(255, 200, 150, 0.25), rgba(200, 150, 100, 0.1), transparent 80%);
    box-shadow: 0 0 40px rgba(255, 200, 150, 0.2);
}

.cosmic-galaxy.nebula {
    width: 80px;
    height: 50px;
    background: radial-gradient(ellipse 70% 60% at center, rgba(150, 200, 255, 0.2), rgba(100, 150, 200, 0.08), transparent 75%);
    box-shadow: 0 0 60px rgba(150, 200, 255, 0.15);
    border-radius: 60% 40% 70% 30%;
}

.mysterious-object {
    position: absolute;
    pointer-events: none;
    animation: mysteriousShift 80s ease-in-out infinite, mysteriousMorph 12s ease-in-out infinite;
    z-index: -4;
}

.mysterious-object.void {
    width: 30px;
    height: 30px;
    background: radial-gradient(circle, rgba(0, 0, 0, 0.8), rgba(50, 0, 100, 0.3), transparent 60%);
    border-radius: 50%;
    box-shadow: inset 0 0 20px rgba(100, 0, 200, 0.4), 0 0 30px rgba(100, 0, 200, 0.2);
}

.mysterious-object.energy {
    width: 40px;
    height: 15px;
    background: linear-gradient(45deg, rgba(255, 100, 255, 0.3), rgba(100, 255, 255, 0.2), rgba(255, 255, 100, 0.15));
    border-radius: 50% 25% 50% 25%;
    box-shadow: 0 0 25px rgba(255, 150, 255, 0.3);
}

.mysterious-object.anomaly {
    width: 20px;
    height: 35px;
    background: conic-gradient(from 0deg, rgba(255, 0, 150, 0.4), rgba(0, 255, 150, 0.3), rgba(150, 0, 255, 0.2), rgba(255, 0, 150, 0.4));
    border-radius: 30% 70% 20% 80%;
    box-shadow: 0 0 20px rgba(200, 100, 200, 0.4);
}

@keyframes starTwinkle {
    0%, 100% {
        opacity: 0.3;
        transform: scale(0.8);
    }
    25% {
        opacity: 1;
        transform: scale(1.2);
    }
    50% {
        opacity: 0.6;
        transform: scale(1);
    }
    75% {
        opacity: 0.9;
        transform: scale(1.1);
    }
}

@keyframes starDrift {
    0% {
        transform: translateY(0px) translateX(0px);
    }
    100% {
        transform: translateY(-20px) translateX(10px);
    }
}

@keyframes planetOrbit {
    0% {
        transform: rotate(0deg) translateX(50px) rotate(0deg);
    }
    100% {
        transform: rotate(360deg) translateX(50px) rotate(-360deg);
    }
}

@keyframes planetPulse {
    0%, 100% {
        opacity: 0.4;
        filter: brightness(0.8);
    }
    50% {
        opacity: 0.7;
        filter: brightness(1.2);
    }
}

@keyframes galaxyRotate {
    0% {
        transform: rotate(0deg) scale(1);
        opacity: 0.3;
    }
    50% {
        transform: rotate(180deg) scale(1.1);
        opacity: 0.5;
    }
    100% {
        transform: rotate(360deg) scale(1);
        opacity: 0.3;
    }
}

@keyframes galaxyPulse {
    0%, 100% {
        filter: brightness(0.7) hue-rotate(0deg);
    }
    33% {
        filter: brightness(1) hue-rotate(60deg);
    }
    66% {
        filter: brightness(0.9) hue-rotate(120deg);
    }
}

@keyframes mysteriousShift {
    0%, 100% {
        transform: translateY(0px) translateX(0px) rotate(0deg);
        opacity: 0.2;
    }
    25% {
        transform: translateY(-30px) translateX(20px) rotate(90deg);
        opacity: 0.4;
    }
    50% {
        transform: translateY(-60px) translateX(-10px) rotate(180deg);
        opacity: 0.6;
    }
    75% {
        transform: translateY(-30px) translateX(-25px) rotate(270deg);
        opacity: 0.3;
    }
}

@keyframes mysteriousMorph {
    0%, 100% {
        border-radius: 50% 25% 50% 25%;
        filter: hue-rotate(0deg) blur(0px);
    }
    25% {
        border-radius: 25% 75% 25% 75%;
        filter: hue-rotate(90deg) blur(1px);
    }
    50% {
        border-radius: 75% 25% 75% 25%;
        filter: hue-rotate(180deg) blur(0px);
    }
    75% {
        border-radius: 40% 60% 40% 60%;
        filter: hue-rotate(270deg) blur(0.5px);
    }
}

.explosion-burst {
    position: absolute;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.8), rgba(255, 200, 100, 0.6), rgba(255, 100, 100, 0.3), transparent 70%);
    animation: explosionBurst 1.5s ease-out forwards;
    pointer-events: none;
    z-index: 5;
    margin-left: -25px;
    margin-top: -25px;
}

.explosion-particle {
    position: absolute;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 150, 50, 0.9), rgba(255, 100, 100, 0.6));
    animation: explosionParticle 2s ease-out forwards;
    pointer-events: none;
    z-index: 4;
    margin-left: -3px;
    margin-top: -3px;
}

.rain-drop {
    position: absolute;
    width: 2px;
    height: 15px;
    background: linear-gradient(to bottom, rgba(100, 200, 255, 0.8), rgba(150, 220, 255, 0.4));
    border-radius: 0 0 50% 50%;
    animation: rainFall 3s linear forwards;
    pointer-events: none;
    z-index: 3;
}

.energy-wave {
    position: absolute;
    width: 100px;
    height: 100px;
    border: 2px solid rgba(100, 255, 200, 0.6);
    border-radius: 50%;
    animation: energyWaveExpand 4s ease-out forwards;
    pointer-events: none;
    z-index: 2;
    margin-left: -50px;
    margin-top: -50px;
}

@keyframes explosionBurst {
    0% {
        transform: scale(0);
        opacity: 1;
    }
    30% {
        transform: scale(1.5);
        opacity: 0.8;
    }
    100% {
        transform: scale(3);
        opacity: 0;
    }
}

@keyframes explosionParticle {
    0% {
        transform: translate(0, 0) scale(1);
        opacity: 1;
    }
    100% {
        transform: translate(calc(var(--end-x) - 50vw), calc(var(--end-y) - 50vh)) scale(0);
        opacity: 0;
    }
}

@keyframes rainFall {
    0% {
        transform: translateY(0) rotate(10deg);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(var(--end-y)) rotate(10deg);
        opacity: 0;
    }
}

@keyframes energyWaveExpand {
    0% {
        transform: scale(0);
        opacity: 1;
        border-width: 4px;
    }
    50% {
        transform: scale(2);
        opacity: 0.6;
        border-width: 2px;
    }
    100% {
        transform: scale(4);
        opacity: 0;
        border-width: 1px;
    }
}