/* 
 * File: styles.css
 * Description: CSS styles for Zaravon Oracle - Electrical Mind Creature
 * Version: 2025.08.31.15.15.00
 * Path: /styles.css
 */

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

body, html {
    height: 100%;
    overflow: hidden;
    background: linear-gradient(135deg, 
        #0a0a0f 0%,
        #1a0a0a 25%,
        #2a0505 50%,
        #0f0a0a 75%,
        #0a0a0f 100%);
    font-family: 'Arial', sans-serif;
    transition: background 1s ease-in-out;
}

body.light-mode {
    background: transparent;
}

/* Starfield background */
.starfield {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -10;
    opacity: 0.8;
}

.star {
    position: absolute;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    animation: twinkle 3s ease-in-out infinite;
}

.star.small {
    width: 1px;
    height: 1px;
    animation-duration: 4s;
}

.star.medium {
    width: 2px;
    height: 2px;
    animation-duration: 3s;
    box-shadow: 0 0 3px rgba(255, 255, 255, 0.5);
}

.star.large {
    width: 3px;
    height: 3px;
    animation-duration: 2s;
    box-shadow: 0 0 5px rgba(255, 255, 255, 0.7);
}

.star.bright {
    background: rgba(200, 220, 255, 1);
    width: 2px;
    height: 2px;
    animation-duration: 1.5s;
    box-shadow: 0 0 8px rgba(200, 220, 255, 0.8);
}

@keyframes twinkle {
    0%, 100% { opacity: 0.3; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.2); }
}

/* Background toggle button */
.bg-toggle {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
    padding: 12px 20px;
    background: rgba(255, 50, 50, 0.8);
    border: 2px solid rgba(255, 100, 100, 0.6);
    border-radius: 25px;
    color: white;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    backdrop-filter: blur(10px);
    box-shadow: 
        0 0 20px rgba(255, 50, 50, 0.4),
        inset 0 0 10px rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    user-select: none;
}

.bg-toggle:hover {
    background: rgba(255, 100, 100, 0.9);
    transform: scale(1.05);
    box-shadow: 
        0 0 30px rgba(255, 50, 50, 0.6),
        inset 0 0 15px rgba(255, 255, 255, 0.2);
}

.bg-toggle:active {
    transform: scale(0.95);
}

/* Remote viewing panel */
.rv-panel {
    position: fixed;
    top: 20px;
    left: 20px;
    background: rgba(0, 0, 0, 0.9);
    border: 2px solid rgba(255, 100, 50, 0.6);
    border-radius: 15px;
    padding: 15px;
    color: rgba(255, 200, 100, 0.9);
    backdrop-filter: blur(10px);
    box-shadow: 
        0 0 20px rgba(255, 50, 50, 0.4),
        inset 0 0 10px rgba(255, 255, 255, 0.1);
    z-index: 1000;
    min-width: 200px;
}

.rv-panel h4 {
    margin: 0 0 10px 0;
    color: rgba(255, 150, 50, 1);
    text-align: center;
    font-size: 14px;
    text-shadow: 0 0 5px rgba(255, 150, 50, 0.5);
}

.rv-button {
    width: 100%;
    padding: 10px;
    background: linear-gradient(135deg, 
        rgba(255, 50, 50, 0.8) 0%,
        rgba(255, 100, 100, 0.9) 100%);
    border: 1px solid rgba(255, 100, 50, 0.8);
    border-radius: 8px;
    color: white;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 10px;
    font-size: 12px;
}

.rv-button:hover {
    background: linear-gradient(135deg, 
        rgba(255, 100, 100, 0.9) 0%,
        rgba(255, 150, 150, 1) 100%);
    transform: scale(1.05);
    box-shadow: 0 0 15px rgba(255, 100, 50, 0.6);
}

.rv-numbers {
    display: flex;
    justify-content: space-between;
    margin: 10px 0;
}

.rv-number {
    background: rgba(255, 100, 50, 0.2);
    border: 2px solid rgba(255, 100, 50, 0.6);
    border-radius: 8px;
    padding: 8px 12px;
    font-size: 18px;
    font-weight: bold;
    color: rgba(255, 200, 100, 1);
    text-align: center;
    min-width: 40px;
    text-shadow: 0 0 8px rgba(255, 200, 100, 0.8);
    animation: numberGlow 2s ease-in-out infinite alternate;
}

.rv-target {
    background: rgba(100, 50, 255, 0.2);
    border: 2px solid rgba(150, 100, 255, 0.6);
    border-radius: 8px;
    padding: 8px;
    margin: 8px 0;
    text-align: center;
    font-size: 11px;
    color: rgba(200, 150, 255, 0.9);
}

@keyframes numberGlow {
    0% { 
        box-shadow: 0 0 5px rgba(255, 100, 50, 0.4);
        transform: scale(1);
    }
    100% { 
        box-shadow: 0 0 15px rgba(255, 100, 50, 0.8);
        transform: scale(1.05);
    }
}

/* Response bubble */
.response-bubble {
    position: absolute;
    top: -80px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.9);
    color: rgba(255, 200, 100, 1);
    padding: 15px 20px;
    border-radius: 20px;
    border: 2px solid rgba(255, 100, 50, 0.8);
    box-shadow: 
        0 0 30px rgba(255, 100, 50, 0.6),
        inset 0 0 10px rgba(255, 200, 100, 0.3);
    font-size: 14px;
    font-weight: bold;
    text-align: center;
    max-width: 300px;
    opacity: 0;
    transform: translateX(-50%) translateY(20px) scale(0.8);
    transition: all 0.3s ease;
    z-index: 100;
    backdrop-filter: blur(10px);
    text-shadow: 0 0 10px rgba(255, 200, 100, 0.5);
}

.response-bubble.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0) scale(1);
}

.response-bubble::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 10px solid transparent;
    border-top-color: rgba(255, 100, 50, 0.8);
}

/* Main electrical creature container */
.creature-container {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 500px;
    height: 600px;
    z-index: -1;
}

/* The main electrical energy body */
.energy-body {
    position: relative;
    width: 100%;
    height: 100%;
    background: radial-gradient(ellipse, 
        rgba(255, 0, 0, 0.9) 0%,
        rgba(255, 50, 50, 0.8) 15%,
        rgba(255, 100, 0, 0.7) 30%,
        rgba(255, 150, 50, 0.6) 45%,
        rgba(255, 200, 100, 0.4) 65%,
        rgba(255, 100, 50, 0.2) 85%,
        transparent 100%);
    border-radius: 45% 55% 40% 60% / 60% 40% 55% 45%;
    filter: blur(3px);
    animation: 
        energyPulse 2s ease-in-out infinite alternate,
        bodyMorph 6s ease-in-out infinite;
    box-shadow: 
        0 0 80px rgba(255, 50, 50, 0.8),
        0 0 160px rgba(255, 100, 0, 0.6),
        inset 0 0 60px rgba(255, 255, 100, 0.3);
}

/* The creature's face */
.creature-face {
    position: absolute;
    top: 25%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 200px;
    height: 150px;
    z-index: 2;
}

/* Eyes */
.eye {
    position: absolute;
    width: 30px;
    height: 30px;
    background: radial-gradient(circle, 
        rgba(255, 255, 255, 1) 0%,
        rgba(255, 200, 100, 0.9) 30%,
        rgba(255, 100, 50, 0.7) 70%,
        rgba(255, 0, 0, 0.5) 100%);
    border-radius: 50%;
    filter: blur(0.5px);
    animation: eyeFlicker 3s ease-in-out infinite;
    box-shadow: 
        0 0 20px rgba(255, 255, 255, 0.8),
        0 0 40px rgba(255, 100, 50, 0.6);
}

.eye-left {
    top: 30%;
    left: 25%;
    animation-delay: 0s;
}

.eye-right {
    top: 30%;
    right: 25%;
    animation-delay: 0.5s;
}

/* Eye pupils */
.pupil {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 10px;
    height: 10px;
    background: rgba(0, 0, 0, 0.8);
    border-radius: 50%;
    animation: pupilMove 4s ease-in-out infinite;
}

/* Mouth with expression */
.mouth {
    position: absolute;
    top: 65%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 40px;
    background: transparent;
    border: 3px solid rgba(255, 100, 50, 0.8);
    border-radius: 0 0 50px 50px;
    border-top: none;
    filter: blur(1px);
    animation: mouthTalk 2.5s ease-in-out infinite;
    box-shadow: 
        0 0 15px rgba(255, 100, 50, 0.6),
        inset 0 -10px 20px rgba(255, 0, 0, 0.4);
}

/* Eyebrows for expression */
.eyebrow {
    position: absolute;
    width: 40px;
    height: 6px;
    background: linear-gradient(45deg, 
        rgba(255, 150, 50, 0.8) 0%,
        rgba(255, 100, 0, 0.9) 50%,
        rgba(255, 50, 0, 0.8) 100%);
    border-radius: 3px;
    filter: blur(1px);
    animation: eyebrowRaise 3s ease-in-out infinite;
}

.eyebrow-left {
    top: 15%;
    left: 20%;
    transform: rotate(-10deg);
    animation-delay: 0s;
}

.eyebrow-right {
    top: 15%;
    right: 20%;
    transform: rotate(10deg);
    animation-delay: 1s;
}

/* Electrical arcs and lightning */
.lightning-arc {
    position: absolute;
    background: linear-gradient(90deg, 
        transparent 0%,
        rgba(255, 255, 255, 0.9) 20%,
        rgba(255, 200, 100, 0.8) 50%,
        rgba(255, 100, 50, 0.7) 80%,
        transparent 100%);
    filter: blur(1px);
    animation: arcFlicker 1.5s ease-in-out infinite;
    transform-origin: left center;
}

.arc-1 {
    top: 15%;
    left: 80%;
    width: 100px;
    height: 3px;
    transform: rotate(45deg);
    animation-delay: 0s;
}

.arc-2 {
    top: 40%;
    left: -20%;
    width: 120px;
    height: 4px;
    transform: rotate(-30deg);
    animation-delay: 0.3s;
}

.arc-3 {
    top: 70%;
    left: 85%;
    width: 80px;
    height: 2px;
    transform: rotate(-45deg);
    animation-delay: 0.6s;
}

.arc-4 {
    top: 80%;
    left: 10%;
    width: 90px;
    height: 3px;
    transform: rotate(60deg);
    animation-delay: 0.9s;
}

.arc-5 {
    top: 10%;
    left: 20%;
    width: 70px;
    height: 2px;
    transform: rotate(-60deg);
    animation-delay: 1.2s;
}

/* Energy tendrils */
.energy-tendril {
    position: absolute;
    background: linear-gradient(45deg, 
        rgba(255, 100, 50, 0.7) 0%,
        rgba(255, 150, 100, 0.5) 50%,
        transparent 100%);
    filter: blur(2px);
    border-radius: 50%;
    animation: tendrilWave 4s ease-in-out infinite;
}

.tendril-1 {
    top: 20%;
    left: 90%;
    width: 150px;
    height: 20px;
    animation-delay: 0s;
    transform-origin: left center;
}

.tendril-2 {
    top: 60%;
    left: -30%;
    width: 120px;
    height: 15px;
    animation-delay: 1s;
    transform-origin: right center;
}

.tendril-3 {
    bottom: 10%;
    left: 70%;
    width: 100px;
    height: 18px;
    animation-delay: 2s;
    transform-origin: left center;
}

/* Electrical particles */
.spark {
    position: absolute;
    width: 6px;
    height: 6px;
    background: radial-gradient(circle, 
        rgba(255, 255, 255, 1) 0%,
        rgba(255, 200, 100, 0.8) 50%,
        transparent 100%);
    border-radius: 50%;
    filter: blur(0.5px);
    animation: sparkFly 3s linear infinite;
}

.spark-1 {
    top: 30%;
    left: 20%;
    animation-delay: 0s;
}

.spark-2 {
    top: 50%;
    left: 80%;
    animation-delay: 0.8s;
}

.spark-3 {
    top: 70%;
    left: 30%;
    animation-delay: 1.6s;
}

.spark-4 {
    top: 20%;
    left: 70%;
    animation-delay: 2.4s;
}

/* Energy field around creature */
.energy-field {
    position: absolute;
    top: -25%;
    left: -25%;
    width: 150%;
    height: 150%;
    background: radial-gradient(ellipse, 
        transparent 50%,
        rgba(255, 50, 50, 0.05) 70%,
        rgba(255, 100, 0, 0.03) 85%,
        transparent 100%);
    border-radius: 50%;
    animation: fieldRotate 12s linear infinite;
    z-index: -1;
}

/* Instructions panel */
.instructions {
    position: fixed;
    bottom: 20px;
    left: 20px;
    background: rgba(0, 0, 0, 0.8);
    color: rgba(255, 200, 100, 0.9);
    padding: 15px;
    border-radius: 10px;
    border: 1px solid rgba(255, 100, 50, 0.5);
    font-size: 12px;
    max-width: 280px;
    backdrop-filter: blur(10px);
    opacity: 0.7;
    transition: opacity 0.3s ease;
    z-index: 500;
}

.instructions:hover {
    opacity: 1;
}

.instructions h4 {
    color: rgba(255, 150, 50, 1);
    margin: 0 0 8px 0;
    text-shadow: 0 0 5px rgba(255, 150, 50, 0.5);
}

.instructions ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.instructions li {
    margin: 4px 0;
    padding-left: 12px;
    position: relative;
}

.instructions li::before {
    content: '⚡';
    position: absolute;
    left: 0;
    color: rgba(255, 100, 50, 0.8);
}

/* Animations */
@keyframes energyPulse {
    0% { 
        filter: blur(3px);
        box-shadow: 
            0 0 80px rgba(255, 50, 50, 0.8),
            0 0 160px rgba(255, 100, 0, 0.6),
            inset 0 0 60px rgba(255, 255, 100, 0.3);
    }
    100% { 
        filter: blur(1px);
        box-shadow: 
            0 0 120px rgba(255, 50, 50, 1),
            0 0 240px rgba(255, 100, 0, 0.8),
            inset 0 0 80px rgba(255, 255, 100, 0.5);
    }
}

@keyframes bodyMorph {
    0%, 100% { 
        border-radius: 45% 55% 40% 60% / 60% 40% 55% 45%;
        transform: scale(1) rotate(0deg);
    }
    25% { 
        border-radius: 60% 40% 55% 45% / 45% 55% 40% 60%;
        transform: scale(1.05) rotate(2deg);
    }
    50% { 
        border-radius: 40% 60% 45% 55% / 55% 45% 60% 40%;
        transform: scale(0.95) rotate(-1deg);
    }
    75% { 
        border-radius: 55% 45% 60% 40% / 40% 60% 45% 55%;
        transform: scale(1.02) rotate(1deg);
    }
}

@keyframes eyeFlicker {
    0%, 90%, 100% { 
        opacity: 1; 
        transform: scaleY(1);
    }
    95% { 
        opacity: 0.3; 
        transform: scaleY(0.1);
    }
}

@keyframes pupilMove {
    0%, 100% { transform: translate(-50%, -50%); }
    25% { transform: translate(-70%, -30%); }
    50% { transform: translate(-30%, -70%); }
    75% { transform: translate(-70%, -70%); }
}

@keyframes mouthTalk {
    0%, 100% { 
        transform: translate(-50%, -50%) scaleY(1);
        border-radius: 0 0 50px 50px;
    }
    25% { 
        transform: translate(-50%, -50%) scaleY(0.7);
        border-radius: 0 0 30px 30px;
    }
    50% { 
        transform: translate(-50%, -50%) scaleY(1.2);
        border-radius: 0 0 60px 60px;
    }
    75% { 
        transform: translate(-50%, -50%) scaleY(0.8);
        border-radius: 0 0 40px 40px;
    }
}

@keyframes eyebrowRaise {
    0%, 100% { transform: translateY(0) rotate(-10deg); }
    50% { transform: translateY(-5px) rotate(-20deg); }
}

@keyframes arcFlicker {
    0%, 100% { 
        opacity: 0.8; 
        transform: scaleX(1) scaleY(1);
    }
    20% { 
        opacity: 0; 
        transform: scaleX(0.5) scaleY(0.5);
    }
    40% { 
        opacity: 1; 
        transform: scaleX(1.3) scaleY(2);
    }
    60% { 
        opacity: 0.2; 
        transform: scaleX(0.8) scaleY(0.3);
    }
    80% { 
        opacity: 0.9; 
        transform: scaleX(1.1) scaleY(1.5);
    }
}

@keyframes tendrilWave {
    0%, 100% { 
        transform: rotate(0deg) scaleX(1);
        opacity: 0.7;
    }
    25% { 
        transform: rotate(15deg) scaleX(1.2);
        opacity: 0.9;
    }
    50% { 
        transform: rotate(-10deg) scaleX(0.8);
        opacity: 0.5;
    }
    75% { 
        transform: rotate(20deg) scaleX(1.1);
        opacity: 0.8;
    }
}

@keyframes sparkFly {
    0% { 
        transform: translate(0, 0) scale(1);
        opacity: 0;
    }
    10% { 
        opacity: 1;
    }
    25% { 
        transform: translate(-40px, -30px) scale(1.5);
        opacity: 0.8;
    }
    50% { 
        transform: translate(30px, -50px) scale(0.8);
        opacity: 0.6;
    }
    75% { 
        transform: translate(-20px, 40px) scale(1.2);
        opacity: 0.9;
    }
    90% { 
        opacity: 1;
    }
    100% { 
        transform: translate(0, 0) scale(1);
        opacity: 0;
    }
}

@keyframes fieldRotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes toggleRipple {
    0% { 
        transform: translate(-50%, -50%) scale(0); 
        opacity: 1; 
    }
    100% { 
        transform: translate(-50%, -50%) scale(2); 
        opacity: 0; 
    }
}

@keyframes clickBurst {
    0% { 
        transform: translate(-50%, -50%) scale(0) rotate(0deg); 
        opacity: 1; 
    }
    50% { 
        transform: translate(-50%, -50%) scale(1.5) rotate(180deg); 
        opacity: 0.8; 
    }
    100% { 
        transform: translate(-50%, -50%) scale(3) rotate(360deg); 
        opacity: 0; 
    }
}

/* Responsive design */
@media (max-width: 1024px) {
    .creature-container {
        