/* ============================================
   POLAR CLIMATE VISUALIZATION - MAIN STYLES
   ============================================ */

:root {
    /* Color Palette */
    --sky-dark: #0a0a1a;
    --sky-mid: #1a1a3a;
    --sky-light: #2a2a5a;
    --aurora-green: rgba(100, 255, 150, 0.3);
    --aurora-blue: rgba(100, 200, 255, 0.3);
    --aurora-purple: rgba(180, 100, 255, 0.3);

    --sea-surface: rgba(26, 107, 138, 0.85);
    --sea-mid: rgba(13, 79, 107, 0.9);
    --sea-deep: #063a52;
    --sea-bottom: #032535;

    --ice-white: #ffffff;
    --ice-light: #e8f7fc;
    --ice-mid: #d4f1f9;
    --ice-dark: #a8d8ea;
    --ice-stroke: #b8e4f0;

    --warning-red: #ff6b6b;
    --warning-orange: #ffa94d;
    --success-green: #51cf66;

    /* Animation Timings */
    --transition-slow: 2s ease;
    --transition-medium: 1s ease;
    --transition-fast: 0.3s ease;

    /* Z-Index Layers */
    --z-sky: 1;
    --z-aurora: 2;
    --z-stars: 3;
    --z-glaciers: 5;
    --z-sea: 10;
    --z-animals: 15;
    --z-particles: 20;
    --z-ui: 100;
}

/* ==================== RESET & BASE ==================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    width: 100%;
    height: 100%;
    overflow: hidden;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* ==================== SCENE CONTAINER ==================== */
.scene {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    transition: filter var(--transition-slow);
}

.scene.warming {
    filter: sepia(0.1) saturate(1.2);
}

/* ==================== SKY ==================== */
.sky {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        180deg,
        var(--sky-dark) 0%,
        var(--sky-mid) 30%,
        var(--sky-light) 60%,
        #3a3a6a 100%
    );
    z-index: var(--z-sky);
    transition: background var(--transition-slow);
}

.scene.melted .sky {
    background: linear-gradient(
        180deg,
        #1a1428 0%,
        #3a2a4c 20%,
        #5a3a5c 50%,
        #7a4a5c 80%,
        #8a5a6c 100%
    );
}

/* ==================== SUN ==================== */
.sun {
    position: absolute;
    top: 5%;
    left: 12%;
    width: 200px;
    height: 200px;
    z-index: calc(var(--z-aurora) - 1);
    opacity: 0;
    transform: scale(0.3);
    transition: opacity 2s ease, transform 2s ease;
    pointer-events: none;
}

.sun-core {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 50px;
    height: 50px;
    transform: translate(-50%, -50%);
    background: radial-gradient(circle, #ffffff 0%, #fff9c4 30%, #ffeb3b 60%, #ff9800 100%);
    border-radius: 50%;
    box-shadow:
        0 0 20px #ffeb3b,
        0 0 40px #ffc107,
        0 0 60px #ff9800;
    transition: all 2s ease;
}

.sun-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 80px;
    height: 80px;
    transform: translate(-50%, -50%);
    background: radial-gradient(circle, rgba(255, 235, 59, 0.6) 0%, rgba(255, 200, 50, 0.3) 40%, transparent 70%);
    border-radius: 50%;
    animation: sun-pulse 4s ease-in-out infinite;
    transition: all 2s ease;
}

/* Sun flare rays - realistic lens flare effect */
.sun-rays {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    transition: all 2s ease;
}

.sun-rays::before,
.sun-rays::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    transition: all 2s ease;
}

/* Main flare - horizontal */
.sun-rays::before {
    width: 150px;
    height: 4px;
    background: linear-gradient(90deg,
        transparent 0%,
        rgba(255, 235, 59, 0.1) 20%,
        rgba(255, 235, 59, 0.6) 45%,
        rgba(255, 255, 255, 0.9) 50%,
        rgba(255, 235, 59, 0.6) 55%,
        rgba(255, 235, 59, 0.1) 80%,
        transparent 100%
    );
    filter: blur(2px);
}

/* Secondary flare - vertical */
.sun-rays::after {
    width: 4px;
    height: 150px;
    background: linear-gradient(180deg,
        transparent 0%,
        rgba(255, 235, 59, 0.1) 20%,
        rgba(255, 235, 59, 0.6) 45%,
        rgba(255, 255, 255, 0.9) 50%,
        rgba(255, 235, 59, 0.6) 55%,
        rgba(255, 235, 59, 0.1) 80%,
        transparent 100%
    );
    filter: blur(2px);
}

/* Diagonal flares */
.sun .flare-diagonal {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 120px;
    height: 3px;
    background: linear-gradient(90deg,
        transparent 0%,
        rgba(255, 200, 100, 0.4) 30%,
        rgba(255, 255, 200, 0.7) 50%,
        rgba(255, 200, 100, 0.4) 70%,
        transparent 100%
    );
    filter: blur(1px);
    transition: all 2s ease;
}

.sun .flare-diagonal:nth-child(4) {
    transform: translate(-50%, -50%) rotate(45deg);
}

.sun .flare-diagonal:nth-child(5) {
    transform: translate(-50%, -50%) rotate(-45deg);
}

.sun .flare-diagonal:nth-child(6) {
    transform: translate(-50%, -50%) rotate(22.5deg);
    opacity: 0.5;
}

.sun .flare-diagonal:nth-child(7) {
    transform: translate(-50%, -50%) rotate(-22.5deg);
    opacity: 0.5;
}

.sun .flare-diagonal:nth-child(8) {
    transform: translate(-50%, -50%) rotate(67.5deg);
    opacity: 0.5;
}

.sun .flare-diagonal:nth-child(9) {
    transform: translate(-50%, -50%) rotate(-67.5deg);
    opacity: 0.5;
}

@keyframes sun-pulse {
    0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.6; }
    50% { transform: translate(-50%, -50%) scale(1.15); opacity: 0.8; }
}

/* Sun visibility based on melt count */
.sun.melt-1 {
    opacity: 0.4;
    transform: scale(0.5);
}

.sun.melt-1 .sun-core {
    width: 40px;
    height: 40px;
    box-shadow:
        0 0 15px #ffeb3b,
        0 0 30px #ffc107;
}

.sun.melt-1 .sun-glow {
    width: 70px;
    height: 70px;
}

.sun.melt-1 .sun-rays::before {
    width: 100px;
    height: 3px;
}

.sun.melt-1 .sun-rays::after {
    width: 3px;
    height: 100px;
}

.sun.melt-1 .flare-diagonal {
    width: 80px;
}

.sun.melt-2 {
    opacity: 0.7;
    transform: scale(0.75);
}

.sun.melt-2 .sun-core {
    width: 55px;
    height: 55px;
    box-shadow:
        0 0 25px #ffeb3b,
        0 0 50px #ffc107,
        0 0 75px #ff9800;
}

.sun.melt-2 .sun-glow {
    width: 100px;
    height: 100px;
}

.sun.melt-2 .sun-rays::before {
    width: 180px;
    height: 5px;
}

.sun.melt-2 .sun-rays::after {
    width: 5px;
    height: 180px;
}

.sun.melt-2 .flare-diagonal {
    width: 140px;
}

.sun.melt-3 {
    opacity: 1;
    transform: scale(1);
}

.sun.melt-3 .sun-core {
    width: 70px;
    height: 70px;
    box-shadow:
        0 0 40px #ffeb3b,
        0 0 80px #ffc107,
        0 0 120px #ff9800,
        0 0 160px rgba(255, 152, 0, 0.5);
}

.sun.melt-3 .sun-glow {
    width: 140px;
    height: 140px;
}

.sun.melt-3 .sun-rays::before {
    width: 300px;
    height: 8px;
    filter: blur(3px);
}

.sun.melt-3 .sun-rays::after {
    width: 8px;
    height: 300px;
    filter: blur(3px);
}

.sun.melt-3 .flare-diagonal {
    width: 220px;
    height: 5px;
}

/* ==================== CLOUDS ==================== */
.clouds-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 30%;
    z-index: calc(var(--z-aurora) + 1);
    pointer-events: none;
}

.cloud {
    position: absolute;
    background: radial-gradient(ellipse at center,
        rgba(255, 255, 255, 0.95) 0%,
        rgba(255, 255, 255, 0.7) 40%,
        rgba(255, 255, 255, 0.3) 70%,
        transparent 100%);
    border-radius: 50%;
    filter: blur(5px);
    transition: opacity 2s ease;
}

/* Layer 1 - Front clouds (larger, more visible) */
.cloud-1 {
    width: 280px;
    height: 100px;
    top: 2%;
    left: 5%;
    animation: cloud-drift-slow 90s linear infinite;
}

.cloud-2 {
    width: 350px;
    height: 120px;
    top: 5%;
    left: 25%;
    animation: cloud-drift-slow 100s linear infinite;
    animation-delay: -30s;
}

.cloud-3 {
    width: 300px;
    height: 110px;
    top: 1%;
    left: 50%;
    animation: cloud-drift-slow 85s linear infinite;
    animation-delay: -60s;
}

.cloud-4 {
    width: 320px;
    height: 105px;
    top: 6%;
    left: 70%;
    animation: cloud-drift-slow 95s linear infinite;
    animation-delay: -15s;
}

.cloud-5 {
    width: 260px;
    height: 95px;
    top: 3%;
    left: -10%;
    animation: cloud-drift-slow 88s linear infinite;
    animation-delay: -45s;
}

/* Layer 2 - Middle clouds */
.cloud-6 {
    width: 220px;
    height: 80px;
    top: 8%;
    left: 15%;
    opacity: 0.85;
    animation: cloud-drift-medium 70s linear infinite;
    animation-delay: -10s;
}

.cloud-7 {
    width: 260px;
    height: 90px;
    top: 10%;
    left: 40%;
    opacity: 0.85;
    animation: cloud-drift-medium 75s linear infinite;
    animation-delay: -35s;
}

.cloud-8 {
    width: 200px;
    height: 75px;
    top: 7%;
    left: 60%;
    opacity: 0.85;
    animation: cloud-drift-medium 65s linear infinite;
    animation-delay: -50s;
}

.cloud-9 {
    width: 240px;
    height: 85px;
    top: 11%;
    left: 85%;
    opacity: 0.85;
    animation: cloud-drift-medium 72s linear infinite;
    animation-delay: -20s;
}

.cloud-10 {
    width: 180px;
    height: 70px;
    top: 9%;
    left: -5%;
    opacity: 0.85;
    animation: cloud-drift-medium 68s linear infinite;
    animation-delay: -55s;
}

/* Layer 3 - Back clouds (smaller, softer) */
.cloud-11 {
    width: 160px;
    height: 60px;
    top: 13%;
    left: 10%;
    opacity: 0.6;
    filter: blur(8px);
    animation: cloud-drift-fast 55s linear infinite;
    animation-delay: -5s;
}

.cloud-12 {
    width: 180px;
    height: 65px;
    top: 15%;
    left: 30%;
    opacity: 0.6;
    filter: blur(8px);
    animation: cloud-drift-fast 50s linear infinite;
    animation-delay: -25s;
}

.cloud-13 {
    width: 150px;
    height: 55px;
    top: 12%;
    left: 55%;
    opacity: 0.6;
    filter: blur(8px);
    animation: cloud-drift-fast 58s linear infinite;
    animation-delay: -40s;
}

.cloud-14 {
    width: 170px;
    height: 62px;
    top: 16%;
    left: 75%;
    opacity: 0.6;
    filter: blur(8px);
    animation: cloud-drift-fast 52s linear infinite;
    animation-delay: -12s;
}

.cloud-15 {
    width: 140px;
    height: 50px;
    top: 14%;
    left: 95%;
    opacity: 0.6;
    filter: blur(8px);
    animation: cloud-drift-fast 60s linear infinite;
    animation-delay: -32s;
}

@keyframes cloud-drift-slow {
    0% { transform: translateX(-20%); }
    100% { transform: translateX(120vw); }
}

@keyframes cloud-drift-medium {
    0% { transform: translateX(-15%); }
    100% { transform: translateX(115vw); }
}

@keyframes cloud-drift-fast {
    0% { transform: translateX(-10%); }
    100% { transform: translateX(110vw); }
}

/* Clouds transparency based on melt count */
.clouds-container.melt-1 .cloud {
    opacity: 0.6;
}

.clouds-container.melt-1 .cloud-6,
.clouds-container.melt-1 .cloud-7,
.clouds-container.melt-1 .cloud-8,
.clouds-container.melt-1 .cloud-9,
.clouds-container.melt-1 .cloud-10 {
    opacity: 0.5;
}

.clouds-container.melt-1 .cloud-11,
.clouds-container.melt-1 .cloud-12,
.clouds-container.melt-1 .cloud-13,
.clouds-container.melt-1 .cloud-14,
.clouds-container.melt-1 .cloud-15 {
    opacity: 0.35;
}

.clouds-container.melt-2 .cloud {
    opacity: 0.35;
}

.clouds-container.melt-2 .cloud-6,
.clouds-container.melt-2 .cloud-7,
.clouds-container.melt-2 .cloud-8,
.clouds-container.melt-2 .cloud-9,
.clouds-container.melt-2 .cloud-10 {
    opacity: 0.25;
}

.clouds-container.melt-2 .cloud-11,
.clouds-container.melt-2 .cloud-12,
.clouds-container.melt-2 .cloud-13,
.clouds-container.melt-2 .cloud-14,
.clouds-container.melt-2 .cloud-15 {
    opacity: 0.15;
}

.clouds-container.melt-3 .cloud {
    opacity: 0.12;
}

.clouds-container.melt-3 .cloud-6,
.clouds-container.melt-3 .cloud-7,
.clouds-container.melt-3 .cloud-8,
.clouds-container.melt-3 .cloud-9,
.clouds-container.melt-3 .cloud-10 {
    opacity: 0.08;
}

.clouds-container.melt-3 .cloud-11,
.clouds-container.melt-3 .cloud-12,
.clouds-container.melt-3 .cloud-13,
.clouds-container.melt-3 .cloud-14,
.clouds-container.melt-3 .cloud-15 {
    opacity: 0.04;
}

/* ==================== AURORA BOREALIS ==================== */
.aurora-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 60%;
    z-index: var(--z-aurora);
    overflow: hidden;
    opacity: 0.7;
}

.aurora {
    position: absolute;
    width: 200%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent 0%,
        var(--aurora-green) 20%,
        var(--aurora-blue) 40%,
        var(--aurora-purple) 60%,
        var(--aurora-green) 80%,
        transparent 100%
    );
    filter: blur(30px);
    animation: aurora-wave 15s ease-in-out infinite;
    transform-origin: center;
}

.aurora:nth-child(2) {
    animation-delay: -5s;
    animation-duration: 18s;
    opacity: 0.5;
    top: 10%;
}

.aurora:nth-child(3) {
    animation-delay: -10s;
    animation-duration: 12s;
    opacity: 0.3;
    top: -10%;
}

@keyframes aurora-wave {
    0%, 100% {
        transform: translateX(-25%) scaleY(1) rotate(-2deg);
    }
    25% {
        transform: translateX(-15%) scaleY(1.2) rotate(1deg);
    }
    50% {
        transform: translateX(-25%) scaleY(0.8) rotate(-1deg);
    }
    75% {
        transform: translateX(-35%) scaleY(1.1) rotate(2deg);
    }
}

.scene.melted .aurora-container {
    opacity: 0.2;
    filter: hue-rotate(60deg);
}

/* ==================== STARS ==================== */
.stars-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 60%;
    z-index: var(--z-stars);
    pointer-events: none;
}

.star {
    position: absolute;
    background: white;
    border-radius: 50%;
    animation: twinkle var(--twinkle-duration, 3s) ease-in-out infinite;
    animation-delay: var(--twinkle-delay, 0s);
}

.star.small {
    width: 2px;
    height: 2px;
    box-shadow: 0 0 3px 1px rgba(255, 255, 255, 0.5);
}

.star.medium {
    width: 3px;
    height: 3px;
    box-shadow: 0 0 5px 2px rgba(255, 255, 255, 0.6);
}

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

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

/* ==================== SEA ==================== */
.sea {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 32%;
    background: linear-gradient(
        180deg,
        var(--sea-surface) 0%,
        var(--sea-mid) 30%,
        var(--sea-deep) 60%,
        var(--sea-bottom) 100%
    );
    z-index: var(--z-sea);
    transition: height var(--transition-slow);
}

.scene.melted .sea {
    height: 42%;
}

/* Waves */
.waves-container {
    position: absolute;
    top: -30px;
    left: 0;
    width: 100%;
    height: 80px;
    overflow: hidden;
}

.wave {
    position: absolute;
    top: 0;
    left: 0;
    width: 200%;
    height: 60px;
    background-repeat: repeat-x;
    animation: wave-motion 12s linear infinite;
}

.wave-1 {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 120'%3E%3Cpath fill='%231a6b8a' d='M0,40 C100,80 200,0 300,40 C400,80 500,0 600,40 C700,80 800,0 900,40 C1000,80 1100,0 1200,40 L1200,120 L0,120 Z'/%3E%3C/svg%3E");
    animation-duration: 12s;
}

.wave-2 {
    top: 10px;
    opacity: 0.6;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 120'%3E%3Cpath fill='%232a7a9a' d='M0,50 C120,90 240,10 360,50 C480,90 600,10 720,50 C840,90 960,10 1080,50 C1200,90 1200,50 1200,50 L1200,120 L0,120 Z'/%3E%3C/svg%3E");
    animation-duration: 10s;
    animation-direction: reverse;
}

.wave-3 {
    top: 15px;
    opacity: 0.4;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 120'%3E%3Cpath fill='%23156080' d='M0,60 C150,100 300,20 450,60 C600,100 750,20 900,60 C1050,100 1200,60 1200,60 L1200,120 L0,120 Z'/%3E%3C/svg%3E");
    animation-duration: 14s;
}

@keyframes wave-motion {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* Sea Reflections */
.sea-reflection {
    position: absolute;
    bottom: 20%;
    width: 100%;
    height: 30%;
    background: linear-gradient(
        0deg,
        transparent 0%,
        rgba(255, 255, 255, 0.03) 50%,
        transparent 100%
    );
    animation: reflection-shimmer 8s ease-in-out infinite;
}

@keyframes reflection-shimmer {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.6; }
}

/* ==================== ICEBERGS ==================== */
.icebergs-container {
    position: absolute;
    bottom: 26%;
    left: 0;
    width: 100%;
    height: 60%;
    z-index: var(--z-glaciers);
    pointer-events: none;
}

.iceberg {
    position: absolute;
    bottom: 0;
    transition: transform var(--transition-slow), opacity var(--transition-slow);
}

.iceberg svg {
    filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.3));
}

/* Iceberg Positions - explicit transforms for smooth transitions */
.iceberg-1 {
    left: -10%;
    transform: translateY(0) scaleY(1) scaleX(1);
    transform-origin: bottom center;
}

.iceberg-2 {
    left: 50%;
    transform: translateX(-50%) translateY(0) scaleY(1) scaleX(1);
    transform-origin: bottom center;
}

.iceberg-3 {
    right: -5%;
    transform: translateY(0) scaleY(1) scaleX(1);
    transform-origin: bottom center;
}

/* Melted States - iceberg sinks, flattens (shorter & wider) */
.iceberg.melted {
    transform: translateY(70px) scaleY(0.6) scaleX(1.3);
    opacity: 0.5;
}

.iceberg-2.melted {
    transform: translateX(-50%) translateY(70px) scaleY(0.6) scaleX(1.3);
}

/* Iceberg Glow Effect */
.iceberg::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 80%;
    height: 80%;
    transform: translate(-50%, -50%);
    background: radial-gradient(ellipse, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    pointer-events: none;
}

/* ==================== ANIMALS ==================== */
.animals-container {
    position: absolute;
    bottom: 26%;
    left: 0;
    width: 100%;
    height: 60%;
    z-index: var(--z-animals);
    pointer-events: none;
}

.animal {
    position: absolute;
    transition: transform 2s ease, opacity 2s ease;
}

.animal svg {
    filter: drop-shadow(0 5px 15px rgba(0, 0, 0, 0.3));
}

/* Animal Positions */
.polar-bear {
    left: 12%;
    bottom: 320px;
    transform: translateY(0) scale(1);
}

.penguin {
    left: 50%;
    bottom: 250px;
    transform: translateX(-50%) translateY(0) scale(1);
}

.seal {
    right: 15%;
    bottom: 300px;
    transform: translateY(0) scale(1);
}

/* Sad States */
.polar-bear.sad {
    transform: translateY(150px) scale(0.9);
}

.penguin.sad {
    transform: translateX(-50%) translateY(90px) scale(0.9);
}

.seal.sad {
    transform: translateY(150px) scale(0.9);
}

/* Animal Expressions */
.animal .face-happy {
    opacity: 1;
    transition: opacity var(--transition-medium);
}

.animal .face-sad {
    opacity: 0;
    transition: opacity var(--transition-medium);
}

.animal.sad .face-happy {
    opacity: 0;
}

.animal.sad .face-sad {
    opacity: 1;
}

/* Tear drop animation */
.animal .tear {
    opacity: 0;
}

.animal.sad .tear {
    opacity: 0.8;
    animation: tear-fall 1.8s ease-in-out infinite;
}

/* Stagger tear animations - left and right tears fall at different times */
.animal.sad .tear-left {
    animation-delay: 0s;
}

.animal.sad .tear-right {
    animation-delay: 0.6s;
}

/* Slightly different timing for each animal for natural look */
.penguin.sad .tear-left {
    animation-delay: 0.2s;
}

.penguin.sad .tear-right {
    animation-delay: 0.9s;
}

.seal.sad .tear-left {
    animation-delay: 0.4s;
}

.seal.sad .tear-right {
    animation-delay: 1.1s;
}

@keyframes tear-fall {
    0% {
        opacity: 0;
        transform: translateY(0);
    }
    15% {
        opacity: 0.9;
        transform: translateY(3px);
    }
    100% {
        opacity: 0;
        transform: translateY(25px);
    }
}

/* Animal Idle Animations - using SVG animation instead */
.polar-bear svg,
.penguin svg,
.seal svg {
    animation: animal-breathe 3s ease-in-out infinite;
}

.animal.sad svg {
    animation: none;
}

@keyframes animal-breathe {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.02); }
}

/* ==================== PARTICLES ==================== */
.particles-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: var(--z-particles);
    pointer-events: none;
    overflow: hidden;
}

.snowflake {
    position: absolute;
    color: white;
    font-size: var(--snow-size, 10px);
    opacity: 0.8;
    animation: snowfall var(--fall-duration, 10s) linear infinite;
    animation-delay: var(--fall-delay, 0s);
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.5);
}

@keyframes snowfall {
    0% {
        transform: translateY(-20px) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 0.8;
    }
    90% {
        opacity: 0.8;
    }
    100% {
        transform: translateY(100vh) rotate(360deg);
        opacity: 0;
    }
}

.bubble {
    position: absolute;
    background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.8), rgba(255, 255, 255, 0.2));
    border-radius: 50%;
    animation: bubble-rise var(--bubble-duration, 8s) ease-in-out infinite;
    animation-delay: var(--bubble-delay, 0s);
}

@keyframes bubble-rise {
    0% {
        transform: translateY(0) scale(1);
        opacity: 0;
    }
    10% {
        opacity: 0.6;
    }
    90% {
        opacity: 0.6;
    }
    100% {
        transform: translateY(-200px) scale(0.5);
        opacity: 0;
    }
}

/* ==================== WARNING INDICATOR ==================== */
.warning-indicator {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 15px 25px;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    color: white;
    font-size: 14px;
    z-index: var(--z-ui);
    opacity: 0;
    transform: translateY(-20px);
    transition: all var(--transition-fast);
    display: flex;
    align-items: center;
    gap: 10px;
}

.warning-indicator.visible {
    opacity: 1;
    transform: translateY(0);
}

.warning-indicator.danger {
    border: 2px solid var(--warning-red);
}

.warning-indicator.safe {
    border: 2px solid var(--success-green);
}

.warning-indicator .icon {
    font-size: 24px;
}

.warning-indicator .temp {
    font-size: 24px;
    font-weight: bold;
}

/* ==================== INFO PANEL ==================== */
.info-panel {
    position: fixed;
    bottom: 20px;
    left: 20px;
    padding: 20px;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    color: white;
    z-index: var(--z-ui);
    max-width: 300px;
}

.info-panel h3 {
    margin-bottom: 10px;
    color: var(--ice-light);
}

.info-panel .stat {
    display: flex;
    justify-content: space-between;
    margin: 8px 0;
    padding: 5px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.info-panel .stat-value {
    font-weight: bold;
    color: var(--ice-mid);
}

.info-panel .stat-value.danger {
    color: var(--warning-red);
}

/* ==================== CONTROL PANEL LINK ==================== */
.control-link {
    position: fixed;
    bottom: 20px;
    right: 20px;
    padding: 15px 30px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-decoration: none;
    border-radius: 30px;
    font-weight: bold;
    z-index: var(--z-ui);
    transition: all var(--transition-fast);
    box-shadow: 0 5px 20px rgba(102, 126, 234, 0.4);
}

.control-link:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 30px rgba(102, 126, 234, 0.6);
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 768px) {
    .info-panel {
        left: 10px;
        right: 10px;
        bottom: 80px;
        max-width: none;
    }

    .control-link {
        left: 50%;
        transform: translateX(-50%);
        right: auto;
    }

    .control-link:hover {
        transform: translateX(-50%) translateY(-3px);
    }
}
