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

/* Prevent pull-to-refresh and zoom */
html {
    overscroll-behavior: none;
    touch-action: pan-x pan-y;
}

body {
    font-family: 'Nunito', sans-serif;
    background: linear-gradient(135deg, #87CEEB 0%, #4682B4 100%);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 20px;
    overscroll-behavior: none;
    touch-action: manipulation;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    -webkit-touch-callout: none;
}

.aquarium-container {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.2);
    margin-bottom: 0px;
}

.aquarium-header {
    text-align: center;
    margin-bottom: 20px;
}

.aquarium-header h1 {
    color: #fff;
    font-size: 2.2rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    margin-bottom: 10px;
    font-weight: 700;
}

.stats {
    display: flex;
    justify-content: center;
    gap: 30px;
    color: #fff;
    font-size: 1.2rem;
    font-weight: bold;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.aquarium {
    width: 800px;
    height: 500px;
    background: linear-gradient(to bottom, #87CEEB 0%, #4682B4 50%, #2F4F4F 100%);
    border-radius: 15px;
    position: relative;
    overflow: hidden;
    border: 5px solid #4682B4;
    box-shadow: inset 0 0 50px rgba(0, 0, 0, 0.3);
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    transition: background 1s ease-in-out;
}

/* Water wave animation overlay */
.aquarium::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(ellipse at 20% 10%, rgba(135, 206, 235, 0.1) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 30%, rgba(70, 130, 180, 0.1) 0%, transparent 50%),
        radial-gradient(ellipse at 40% 60%, rgba(135, 206, 235, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse at 70% 80%, rgba(70, 130, 180, 0.08) 0%, transparent 50%);
    animation: water-movement 8s ease-in-out infinite;
    pointer-events: none;
    z-index: 1;
}

@keyframes water-movement {
    0%, 100% { 
        transform: translateX(0px) translateY(0px);
        opacity: 0.3;
    }
    25% { 
        transform: translateX(10px) translateY(-5px);
        opacity: 0.4;
    }
    50% { 
        transform: translateX(-5px) translateY(5px);
        opacity: 0.3;
    }
    75% { 
        transform: translateX(-10px) translateY(-3px);
        opacity: 0.4;
    }
}

/* Light caustics effect */
.aquarium::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(ellipse at 30% 20%, rgba(255, 255, 255, 0.1) 0%, transparent 40%),
        radial-gradient(ellipse at 70% 40%, rgba(255, 255, 255, 0.08) 0%, transparent 40%),
        radial-gradient(ellipse at 50% 70%, rgba(255, 255, 255, 0.06) 0%, transparent 40%);
    animation: light-caustics 12s ease-in-out infinite;
    pointer-events: none;
    z-index: 1;
}

@keyframes light-caustics {
    0%, 100% { 
        transform: scale(1) rotate(0deg);
        opacity: 0.5;
    }
    33% { 
        transform: scale(1.1) rotate(2deg);
        opacity: 0.7;
    }
    66% { 
        transform: scale(0.9) rotate(-2deg);
        opacity: 0.4;
    }
}

/* Decoraciones */
.decoration {
    position: absolute;
    z-index: 1;
}

.coral1 {
    bottom: 0;
    left: 50px;
    width: 60px;
    height: 80px;
    background: linear-gradient(45deg, #FF6B6B 0%, #FF8E8E 50%, #FFB3B3 100%);
    border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
    animation: sway 3s ease-in-out infinite;
    box-shadow: 
        inset -5px -5px 10px rgba(0, 0, 0, 0.2),
        inset 5px 5px 10px rgba(255, 255, 255, 0.1);
}

.coral2 {
    bottom: 0;
    right: 100px;
    width: 80px;
    height: 100px;
    background: linear-gradient(135deg, #4ECDC4 0%, #6DD5D2 50%, #8FDBDA 100%);
    border-radius: 50% 50% 50% 50% / 70% 70% 30% 30%;
    animation: sway 4s ease-in-out infinite reverse;
    box-shadow: 
        inset -5px -5px 10px rgba(0, 0, 0, 0.2),
        inset 5px 5px 10px rgba(255, 255, 255, 0.1);
}

.seaweed1 {
    bottom: 0;
    left: 150px;
    width: 20px;
    height: 120px;
    background: linear-gradient(180deg, #2ECC71 0%, #27AE60 50%, #1E8449 100%);
    border-radius: 10px 10px 0 0;
    animation: sway 2s ease-in-out infinite;
    box-shadow: 
        inset -3px 0 6px rgba(0, 0, 0, 0.2),
        inset 3px 0 6px rgba(255, 255, 255, 0.1);
}

.seaweed1::before {
    content: '';
    position: absolute;
    top: 10px;
    left: 2px;
    width: 8px;
    height: 15px;
    background: linear-gradient(45deg, #58D68D, #7DCEA0);
    border-radius: 50% 50% 50% 50% / 70% 70% 30% 30%;
    animation: sway 2.5s ease-in-out infinite;
}

.seaweed2 {
    bottom: 0;
    right: 200px;
    width: 25px;
    height: 100px;
    background: linear-gradient(180deg, #27AE60 0%, #229954 50%, #1B7943 100%);
    border-radius: 12px 12px 0 0;
    animation: sway 2.5s ease-in-out infinite reverse;
    box-shadow: 
        inset -3px 0 6px rgba(0, 0, 0, 0.2),
        inset 3px 0 6px rgba(255, 255, 255, 0.1);
}

.seaweed2::after {
    content: '';
    position: absolute;
    top: 15px;
    right: 2px;
    width: 10px;
    height: 20px;
    background: linear-gradient(135deg, #52C41A, #73D13D);
    border-radius: 50% 50% 50% 50% / 80% 80% 20% 20%;
    animation: sway 3s ease-in-out infinite;
}

.rock1, .rock2 {
    bottom: 0;
    background: #7F8C8D;
    border-radius: 50% 50% 20% 20%;
}

.rock1 {
    left: 300px;
    width: 80px;
    height: 40px;
}

.rock2 {
    right: 300px;
    width: 100px;
    height: 50px;
    cursor: pointer;
}

.coral3 {
    bottom: 0;
    left: 400px;
    width: 50px;
    height: 70px;
    background: linear-gradient(45deg, #FF8A65 0%, #FFAB91 50%, #FFCCBC 100%);
    border-radius: 50% 50% 50% 50% / 65% 65% 35% 35%;
    animation: sway 3.5s ease-in-out infinite;
    z-index: 3;
    box-shadow: 
        inset -4px -4px 8px rgba(0, 0, 0, 0.2),
        inset 4px 4px 8px rgba(255, 255, 255, 0.1);
}

.seaweed3 {
    bottom: 0;
    left: 200px;
    width: 18px;
    height: 90px;
    background: linear-gradient(180deg, #4CAF50 0%, #43A047 50%, #2E7D32 100%);
    border-radius: 9px 9px 0 0;
    animation: sway 2.2s ease-in-out infinite;
    z-index: 1;
    box-shadow: 
        inset -2px 0 4px rgba(0, 0, 0, 0.2),
        inset 2px 0 4px rgba(255, 255, 255, 0.1);
}

.seaweed3::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 1px;
    width: 6px;
    height: 12px;
    background: linear-gradient(45deg, #81C784, #A5D6A7);
    border-radius: 50%;
    animation: sway 2.8s ease-in-out infinite reverse;
}

.seaweed4 {
    bottom: 0;
    right: 50px;
    width: 22px;
    height: 110px;
    background: linear-gradient(180deg, #66BB6A 0%, #4CAF50 50%, #388E3C 100%);
    border-radius: 11px 11px 0 0;
    animation: sway 2.8s ease-in-out infinite reverse;
    z-index: 3;
    box-shadow: 
        inset -3px 0 6px rgba(0, 0, 0, 0.2),
        inset 3px 0 6px rgba(255, 255, 255, 0.1);
}

.seaweed4::after {
    content: '';
    position: absolute;
    top: 25px;
    right: 1px;
    width: 8px;
    height: 16px;
    background: linear-gradient(135deg, #8BC34A, #AED581);
    border-radius: 50% 50% 50% 50% / 70% 70% 30% 30%;
    animation: sway 3.2s ease-in-out infinite;
}

.rock3 {
    bottom: 0;
    left: 500px;
    width: 60px;
    height: 35px;
    background: #90A4AE;
    border-radius: 50% 50% 20% 20%;
    z-index: 1;
}

.rock4 {
    bottom: 0;
    right: 400px;
    width: 70px;
    height: 40px;
    background: #78909C;
    border-radius: 50% 50% 25% 25%;
    z-index: 3;
    cursor: pointer;
}

.rock5 {
    bottom: 0;
    left: 700px;
    width: 50px;
    height: 30px;
    background: #607D8B;
    border-radius: 50% 50% 15% 15%;
    z-index: 1;
}

.anemone1 {
    bottom: 0;
    left: 600px;
    width: 40px;
    height: 60px;
    background: linear-gradient(45deg, #AB47BC 0%, #BA68C8 50%, #CE93D8 100%);
    border-radius: 50% 50% 50% 50% / 80% 80% 20% 20%;
    animation: sway 4.5s ease-in-out infinite;
    z-index: 1;
    box-shadow: 
        inset -4px -4px 8px rgba(0, 0, 0, 0.2),
        inset 4px 4px 8px rgba(255, 255, 255, 0.1);
}

.anemone1::before {
    content: '';
    position: absolute;
    top: 5px;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 30px;
    background: linear-gradient(180deg, #E1BEE7 0%, #D1C4E9 100%);
    border-radius: 50% 50% 50% 50% / 70% 70% 30% 30%;
    animation: sway 3.8s ease-in-out infinite reverse;
}

.anemone2 {
    bottom: 0;
    right: 150px;
    width: 35px;
    height: 55px;
    background: linear-gradient(45deg, #EC407A 0%, #F06292 50%, #F8BBD9 100%);
    border-radius: 50% 50% 50% 50% / 75% 75% 25% 25%;
    animation: sway 3.8s ease-in-out infinite reverse;
    z-index: 3;
    box-shadow: 
        inset -3px -3px 6px rgba(0, 0, 0, 0.2),
        inset 3px 3px 6px rgba(255, 255, 255, 0.1);
}

.anemone2::after {
    content: '';
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 16px;
    height: 25px;
    background: linear-gradient(180deg, #FCE4EC 0%, #F8BBD9 100%);
    border-radius: 50% 50% 50% 50% / 80% 80% 20% 20%;
    animation: sway 4.2s ease-in-out infinite;
}

.shell1 {
    bottom: 0;
    left: 100px;
    width: 25px;
    height: 20px;
    background: linear-gradient(135deg, #D7CCC8 0%, #BCAAA4 50%, #A1887F 100%);
    border-radius: 50% 50% 30% 30%;
    z-index: 1;
    box-shadow: 
        inset -2px -2px 4px rgba(0, 0, 0, 0.2),
        inset 2px 2px 4px rgba(255, 255, 255, 0.1);
}

.shell1::before {
    content: '';
    position: absolute;
    top: 2px;
    left: 50%;
    transform: translateX(-50%);
    width: 15px;
    height: 12px;
    background: linear-gradient(45deg, #EFEBE9, #D7CCC8);
    border-radius: 50%;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.1);
}

.shell2 {
    bottom: 0;
    right: 250px;
    width: 30px;
    height: 25px;
    background: linear-gradient(135deg, #BCAAA4 0%, #A1887F 50%, #8D6E63 100%);
    border-radius: 50% 50% 25% 25%;
    z-index: 1;
    box-shadow: 
        inset -3px -3px 6px rgba(0, 0, 0, 0.2),
        inset 3px 3px 6px rgba(255, 255, 255, 0.1);
}

.shell2::after {
    content: '';
    position: absolute;
    top: 3px;
    left: 50%;
    transform: translateX(-50%);
    width: 18px;
    height: 15px;
    background: linear-gradient(45deg, #D7CCC8, #BCAAA4);
    border-radius: 50%;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1);
}

.shell3 {
    bottom: 0;
    left: 750px;
    width: 20px;
    height: 15px;
    background: linear-gradient(135deg, #A1887F 0%, #8D6E63 50%, #6D4C41 100%);
    border-radius: 50% 50% 35% 35%;
    z-index: 1;
    box-shadow: 
        inset -2px -2px 4px rgba(0, 0, 0, 0.2),
        inset 2px 2px 4px rgba(255, 255, 255, 0.1);
}

.shell3::before {
    content: '';
    position: absolute;
    top: 1px;
    left: 50%;
    transform: translateX(-50%);
    width: 12px;
    height: 8px;
    background: linear-gradient(45deg, #BCAAA4, #A1887F);
    border-radius: 50%;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.1);
}

/* Sand layer covering the entire bottom */
.sand-layer {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 8px;
    background: linear-gradient(90deg, #D4B896 0%, #C4A484 25%, #D4B896 50%, #C4A484 75%, #D4B896 100%);
    z-index: 0;
}

/* Small rocks scattered across the bottom */
.small-rock1 {
    bottom: 2px;
    left: 25px;
    width: 15px;
    height: 10px;
    background: #8D6E63;
    border-radius: 50% 50% 30% 30%;
    z-index: 1;
}

.small-rock2 {
    bottom: 1px;
    left: 80px;
    width: 12px;
    height: 8px;
    background: #795548;
    border-radius: 50% 50% 35% 35%;
    z-index: 1;
}

.small-rock3 {
    bottom: 3px;
    left: 130px;
    width: 18px;
    height: 12px;
    background: #6D4C41;
    border-radius: 50% 50% 25% 25%;
    z-index: 1;
}

.small-rock4 {
    bottom: 2px;
    left: 180px;
    width: 14px;
    height: 9px;
    background: #8D6E63;
    border-radius: 50% 50% 40% 40%;
    z-index: 1;
}

.small-rock5 {
    bottom: 1px;
    left: 230px;
    width: 16px;
    height: 11px;
    background: #795548;
    border-radius: 50% 50% 30% 30%;
    z-index: 1;
}

.small-rock6 {
    bottom: 2px;
    left: 280px;
    width: 13px;
    height: 8px;
    background: #6D4C41;
    border-radius: 50% 50% 35% 35%;
    z-index: 1;
}

.small-rock7 {
    bottom: 3px;
    left: 330px;
    width: 17px;
    height: 12px;
    background: #8D6E63;
    border-radius: 50% 50% 25% 25%;
    z-index: 1;
}

.small-rock8 {
    bottom: 1px;
    left: 380px;
    width: 15px;
    height: 10px;
    background: #795548;
    border-radius: 50% 50% 30% 30%;
    z-index: 1;
}

.small-rock9 {
    bottom: 2px;
    left: 430px;
    width: 14px;
    height: 9px;
    background: #6D4C41;
    border-radius: 50% 50% 40% 40%;
    z-index: 1;
}

.small-rock10 {
    bottom: 3px;
    left: 480px;
    width: 16px;
    height: 11px;
    background: #8D6E63;
    border-radius: 50% 50% 30% 30%;
    z-index: 1;
}

.small-rock11 {
    bottom: 1px;
    left: 530px;
    width: 13px;
    height: 8px;
    background: #795548;
    border-radius: 50% 50% 35% 35%;
    z-index: 1;
}

.small-rock12 {
    bottom: 2px;
    left: 580px;
    width: 15px;
    height: 10px;
    background: #6D4C41;
    border-radius: 50% 50% 25% 25%;
    z-index: 1;
}

.small-rock13 {
    bottom: 3px;
    left: 630px;
    width: 17px;
    height: 12px;
    background: #8D6E63;
    border-radius: 50% 50% 30% 30%;
    z-index: 1;
}

.small-rock14 {
    bottom: 1px;
    left: 680px;
    width: 14px;
    height: 9px;
    background: #795548;
    border-radius: 50% 50% 40% 40%;
    z-index: 1;
}

.small-rock15 {
    bottom: 2px;
    left: 730px;
    width: 16px;
    height: 11px;
    background: #6D4C41;
    border-radius: 50% 50% 35% 35%;
    z-index: 1;
}

.small-rock16 {
    bottom: 1px;
    left: 45px;
    width: 12px;
    height: 7px;
    background: #8D6E63;
    border-radius: 50% 50% 30% 30%;
    z-index: 1;
}

.small-rock17 {
    bottom: 3px;
    left: 95px;
    width: 14px;
    height: 9px;
    background: #795548;
    border-radius: 50% 50% 35% 35%;
    z-index: 1;
}

.small-rock18 {
    bottom: 2px;
    left: 145px;
    width: 13px;
    height: 8px;
    background: #6D4C41;
    border-radius: 50% 50% 40% 40%;
    z-index: 1;
}

.small-rock19 {
    bottom: 1px;
    left: 195px;
    width: 15px;
    height: 10px;
    background: #8D6E63;
    border-radius: 50% 50% 25% 25%;
    z-index: 1;
}

.small-rock20 {
    bottom: 3px;
    left: 245px;
    width: 16px;
    height: 11px;
    background: #795548;
    border-radius: 50% 50% 30% 30%;
    z-index: 1;
}

.small-rock21 {
    bottom: 2px;
    left: 295px;
    width: 12px;
    height: 7px;
    background: #6D4C41;
    border-radius: 50% 50% 35% 35%;
    z-index: 1;
}

.small-rock22 {
    bottom: 1px;
    left: 345px;
    width: 14px;
    height: 9px;
    background: #8D6E63;
    border-radius: 50% 50% 40% 40%;
    z-index: 1;
}

.small-rock23 {
    bottom: 3px;
    left: 395px;
    width: 17px;
    height: 12px;
    background: #795548;
    border-radius: 50% 50% 25% 25%;
    z-index: 1;
}

.small-rock24 {
    bottom: 2px;
    left: 445px;
    width: 13px;
    height: 8px;
    background: #6D4C41;
    border-radius: 50% 50% 30% 30%;
    z-index: 1;
}

.small-rock25 {
    bottom: 1px;
    left: 495px;
    width: 15px;
    height: 10px;
    background: #8D6E63;
    border-radius: 50% 50% 35% 35%;
    z-index: 1;
}

.small-rock26 {
    bottom: 3px;
    left: 545px;
    width: 16px;
    height: 11px;
    background: #795548;
    border-radius: 50% 50% 40% 40%;
    z-index: 1;
}

.small-rock27 {
    bottom: 2px;
    left: 595px;
    width: 14px;
    height: 9px;
    background: #6D4C41;
    border-radius: 50% 50% 25% 25%;
    z-index: 1;
}

.small-rock28 {
    bottom: 1px;
    left: 645px;
    width: 12px;
    height: 7px;
    background: #8D6E63;
    border-radius: 50% 50% 30% 30%;
    z-index: 1;
}

.small-rock29 {
    bottom: 3px;
    left: 695px;
    width: 15px;
    height: 10px;
    background: #795548;
    border-radius: 50% 50% 35% 35%;
    z-index: 1;
}

.small-rock30 {
    bottom: 2px;
    left: 745px;
    width: 13px;
    height: 8px;
    background: #6D4C41;
    border-radius: 50% 50% 40% 40%;
    z-index: 1;
}

@keyframes sway {
    0%, 100% { transform: rotate(-5deg); }
    50% { transform: rotate(5deg); }
}

/* Peces */
.fish {
    position: absolute;
    cursor: pointer;
    z-index: 2;
    transition: all 0.3s ease;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    width: 2rem;
    height: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.fish img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    pointer-events: none;
}

.fish:hover {
    transform: scale(1.2);
    filter: brightness(1.2);
}

.fish-1 {
    top: 20%;
    left: 10%;
    animation: swim1 8s linear infinite;
}

.fish-2 {
    top: 40%;
    right: 20%;
    animation: swim2 10s linear infinite;
}

.fish-3 {
    top: 60%;
    left: 30%;
    animation: swim3 12s linear infinite;
}

.fish-4 {
    top: 15%;
    right: 10%;
    animation: swim4 15s linear infinite;
}

.fish-5 {
    top: 75%;
    left: 60%;
    animation: swim5 9s linear infinite;
}

.fish-6 {
    top: 35%;
    left: 50%;
    animation: swim6 14s linear infinite;
}

.fish-7 {
    top: 55%;
    left: 20%;
    animation: swim7 11s linear infinite;
}

@keyframes swim1 {
    0% { transform: translateX(0px) translateY(0px) scaleX(1); }
    25% { transform: translateX(200px) translateY(50px) scaleX(1); }
    50% { transform: translateX(400px) translateY(20px) scaleX(1); }
    75% { transform: translateX(300px) translateY(80px) scaleX(-1); }
    100% { transform: translateX(0px) translateY(0px) scaleX(-1); }
}

@keyframes swim2 {
    0% { transform: translateX(0px) translateY(0px) scaleX(-1); }
    25% { transform: translateX(-150px) translateY(30px) scaleX(-1); }
    50% { transform: translateX(-300px) translateY(-20px) scaleX(-1); }
    75% { transform: translateX(-200px) translateY(60px) scaleX(-1); }
    100% { transform: translateX(0px) translateY(0px) scaleX(1); }
}

@keyframes swim3 {
    0% { transform: translateX(0px) translateY(0px) scaleX(1); }
    30% { transform: translateX(150px) translateY(-40px) scaleX(1); }
    60% { transform: translateX(250px) translateY(30px) scaleX(1); }
    100% { transform: translateX(0px) translateY(0px) scaleX(-1); }
}

@keyframes swim4 {
    0% { transform: translateX(0px) translateY(0px) scaleX(-1); }
    20% { transform: translateX(-100px) translateY(40px) scaleX(-1); }
    40% { transform: translateX(-250px) translateY(80px) scaleX(-1); }
    60% { transform: translateX(-350px) translateY(20px) scaleX(-1); }
    80% { transform: translateX(-180px) translateY(-20px) scaleX(-1); }
    100% { transform: translateX(0px) translateY(0px) scaleX(1); }
}

@keyframes swim5 {
    0% { transform: translateX(0px) translateY(0px) scaleX(1); }
    25% { transform: translateX(180px) translateY(-30px) scaleX(1); }
    50% { transform: translateX(300px) translateY(20px) scaleX(1); }
    75% { transform: translateX(100px) translateY(-40px) scaleX(-1); }
    100% { transform: translateX(0px) translateY(0px) scaleX(-1); }
}

@keyframes swim6 {
    0% { transform: translateX(0px) translateY(0px) scaleX(1); }
    20% { transform: translateX(120px) translateY(-20px) scaleX(1); }
    40% { transform: translateX(200px) translateY(40px) scaleX(1); }
    60% { transform: translateX(100px) translateY(60px) scaleX(-1); }
    80% { transform: translateX(-50px) translateY(20px) scaleX(-1); }
    100% { transform: translateX(0px) translateY(0px) scaleX(-1); }
}

@keyframes swim7 {
    0% { transform: translateX(0px) translateY(0px) scaleX(1); }
    25% { transform: translateX(150px) translateY(-50px) scaleX(1); }
    50% { transform: translateX(300px) translateY(10px) scaleX(1); }
    75% { transform: translateX(180px) translateY(-60px) scaleX(-1); }
    100% { transform: translateX(0px) translateY(0px) scaleX(-1); }
}

/* Burbujas */
.bubble-container {
    position: absolute;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 3;
}

.bubble {
    position: absolute;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 50%;
    animation: bubble-rise 3s linear infinite;
    pointer-events: none;
}

@keyframes bubble-rise {
    0% {
        transform: translateY(0px) scale(0.5);
        opacity: 0.8;
    }
    50% {
        transform: translateY(-250px) scale(1);
        opacity: 0.6;
    }
    100% {
        transform: translateY(-500px) scale(0.2);
        opacity: 0;
    }
}

/* Comida */
.food-container {
    position: absolute;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 4;
}

.food-particle {
    position: absolute;
    font-size: 1rem;
    animation: food-fall 3s linear infinite;
    pointer-events: auto;
    cursor: pointer;
    transition: transform 0.1s ease;
}

.food-particle:hover {
    transform: scale(1.2);
}

@keyframes food-fall {
    0% {
        transform: translateY(0px);
        opacity: 1;
    }
    100% {
        transform: translateY(500px);
        opacity: 0;
    }
}

/* Efectos de limpieza */
.cleaning-effects {
    position: absolute;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 5;
}

.sparkle {
    position: absolute;
    color: #FFD700;
    font-size: 1.5rem;
    animation: sparkle 1s linear infinite;
    pointer-events: none;
}

@keyframes sparkle {
    0% {
        transform: scale(0) rotate(0deg);
        opacity: 1;
    }
    50% {
        transform: scale(1) rotate(180deg);
        opacity: 0.8;
    }
    100% {
        transform: scale(0) rotate(360deg);
        opacity: 0;
    }
}

/* Overlay de suciedad */
.dirt-overlay {
    position: absolute;
    width: 100%;
    height: 100%;
    background: rgba(139, 119, 101, 0);
    pointer-events: none;
    z-index: 6;
    transition: background-color 0.5s ease;
}

.dirt-overlay.dirty {
    background: rgba(139, 119, 101, 0.3);
}

/* Controles */
.controls {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 20px auto 0;
    flex-wrap: nowrap;
    width: 800px;
    gap: 20px;
}

.control-btn {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0;
    width: 48px;
    height: 48px;
    background: linear-gradient(45deg, #FF6B6B, #4ECDC4);
    border: none;
    border-radius: 12px;
    color: white;
    font-family: inherit;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.control-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.control-btn:active {
    transform: translateY(-1px);
}

.control-btn span {
    font-size: 2rem;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.feed-btn {
    background: linear-gradient(45deg, #f8ffae, #43c6ac);
}

.clean-btn {
    background: linear-gradient(45deg, #4ECDC4, #44A08D);
}

.bubble-btn {
    background: linear-gradient(45deg, #667eea, #764ba2);
}

.reset-btn {
    background: linear-gradient(45deg, #ff6e7f, #bfe9ff);
}

/* Photo frame */
.photo-frame {
    position: absolute;
    bottom: -10px;
    left: 20px;
    z-index: 2;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 3px solid #654321;
    transform: rotate(5deg);
    background: linear-gradient(145deg, #8B4513, #A0522D);
    border-radius: 8px;
    box-shadow: 
        inset 0 2px 4px rgba(0, 0, 0, 0.3),
        0 2px 8px rgba(0, 0, 0, 0.4);
}

.photo-frame.landscape {
    width: 100px;
    height: 75px;
}

.photo-frame.portrait {
    width: 75px;
    height: 100px;
}

.photo-frame:hover {
    transform: rotate(5deg) scale(1.05);
    box-shadow: 
        inset 0 2px 4px rgba(0, 0, 0, 0.3),
        0 4px 12px rgba(0, 0, 0, 0.5);
}

.photo-display {
    position: absolute;
    top: 6px;
    left: 6px;
    right: 6px;
    bottom: 6px;
    background: #f0f0f0;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.2);
}

.photo-display img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.photo-customize-icon {
    position: absolute;
    top: -8px;
    right: -8px;
    width: 24px;
    height: 24px;
    background: #4ECDC4;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    color: white;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
    border: 2px solid white;
    animation: pulse-icon 2s ease-in-out infinite;
}

@keyframes pulse-icon {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

/* Efectos de click en peces */
.fish.clicked {
    animation: fish-happy 0.5s ease-in-out;
}

@keyframes fish-happy {
    0% { transform: scale(1) rotate(0deg); }
    25% { transform: scale(1.3) rotate(10deg); }
    50% { transform: scale(1.5) rotate(-10deg); }
    75% { transform: scale(1.3) rotate(5deg); }
    100% { transform: scale(1) rotate(0deg); }
}

@keyframes dead-fish-sway {
    0%, 100% {
        transform: scaleY(-1) rotate(-2deg) translateX(-3px);
    }
    50% {
        transform: scaleY(-1) rotate(2deg) translateX(3px);
    }
}

/* Countdown Display */
.countdown-display {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 8rem;
    color: rgba(255, 0, 0, 0.7);
    font-weight: bold;
    text-shadow: 0 0 20px white;
    z-index: 10;
    animation: countdown-pulse 1s infinite;
}

@keyframes countdown-pulse {
    0% { transform: translate(-50%, -50%) scale(1); }
    50% { transform: translate(-50%, -50%) scale(1.1); }
    100% { transform: translate(-50%, -50%) scale(1); }
}

/* Emoticonos de peces */
.fish-emoticon {
    position: absolute;
    font-size: 1.2rem;
    pointer-events: none;
    z-index: 7;
    animation: emoticon-float 2s ease-out forwards;
}

@keyframes emoticon-float {
    0% {
        transform: translateY(0px) scale(0.5);
        opacity: 1;
    }
    50% {
        transform: translateY(-40px) scale(1);
        opacity: 0.8;
    }
    100% {
        transform: translateY(-80px) scale(0.3);
        opacity: 0;
    }
}

/* Footer */
.app-footer {
    position: static;
    margin-top: 20px;
    background: #4682B4;
    color: white;
    text-align: center;
    padding: 5px;
    font-size: 0.9rem;
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-radius: 12px;
}

.app-footer a {
    color: #a0d8f0;
    text-decoration: none;
}

.app-footer a:hover {
    text-decoration: underline;
}

/* Update notification */
.update-notification {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: #4ECDC4;
    color: white;
    padding: 15px 20px;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    z-index: 1001;
    display: none;
    text-align: center;
    max-width: 90%;
}

.update-notification button {
    background: white;
    color: #4ECDC4;
    border: none;
    padding: 8px 16px;
    border-radius: 5px;
    margin-left: 10px;
    cursor: pointer;
    font-weight: bold;
}

/* New sunset background for aquarium */
.aquarium.sunset {
    background: linear-gradient(to bottom, #FFD1C1 0%, #FFA07A 50%, #B22222 100%);
    transition: background 2s ease-in-out;
}

/* Sunset sun element */
.sunset-sun {
    position: absolute;
    top: 10%;
    right: 15%;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, 
        #FFF4E6 0%, 
        #FFE4B5 20%, 
        #FFD700 40%, 
        #FFA500 60%, 
        #FF6347 80%, 
        #CD853F 100%);
    box-shadow: 
        0 0 40px rgba(255, 215, 0, 0.8),
        0 0 80px rgba(255, 165, 0, 0.6),
        0 0 120px rgba(255, 99, 71, 0.4),
        inset -10px -10px 20px rgba(0, 0, 0, 0.1);
    opacity: 0;
    transform: scale(0.8);
    transition: all 2s ease-in-out;
    z-index: 1;
}

/* Sun appears during sunset */
.aquarium.sunset .sunset-sun {
    opacity: 1;
    transform: scale(1);
}

/* Moon appears during night */
.aquarium.night .sunset-sun {
    opacity: 1;
    transform: scale(1);
}

/* Sun glow animation */
@keyframes sun-glow {
    0% {
        box-shadow: 
            0 0 40px rgba(255, 215, 0, 0.8),
            0 0 80px rgba(255, 165, 0, 0.6),
            0 0 120px rgba(255, 99, 71, 0.4),
            inset -10px -10px 20px rgba(0, 0, 0, 0.1);
    }
    100% {
        box-shadow: 
            0 0 60px rgba(255, 215, 0, 0.9),
            0 0 100px rgba(255, 165, 0, 0.7),
            0 0 140px rgba(255, 99, 71, 0.5),
            inset -10px -10px 20px rgba(0, 0, 0, 0.1);
    }
}

/* Stars container */
.stars-container {
    position: absolute;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    opacity: 0;
    transition: opacity 2s ease-in-out;
}

/* Individual star */
.star {
    position: absolute;
    width: 4px;
    height: 4px;
    background: white;
    border-radius: 50%;
    animation: star-blink 2s ease-in-out infinite;
    box-shadow: 0 0 6px rgba(255, 255, 255, 0.8);
}

/* Star blinking animation */
@keyframes star-blink {
    0%, 100% {
        opacity: 0.3;
        transform: scale(0.8);
    }
    50% {
        opacity: 1;
        transform: scale(1.2);
    }
}

/* Add some bigger stars */
.star:nth-child(3n) {
    width: 6px;
    height: 6px;
    box-shadow: 0 0 8px rgba(255, 255, 255, 0.9);
}

.star:nth-child(5n) {
    width: 3px;
    height: 3px;
    animation-duration: 1.5s;
}

.star:nth-child(7n) {
    animation-duration: 2.5s;
}

/* Sun rays effect */
.sunset-sun::before {
    content: '';
    position: absolute;
    top: -20px;
    left: -20px;
    width: 160px;
    height: 160px;
    border-radius: 50%;
    background: radial-gradient(circle, 
        rgba(255, 215, 0, 0.3) 0%, 
        rgba(255, 165, 0, 0.2) 30%, 
        rgba(255, 99, 71, 0.1) 60%, 
        transparent 100%);
    animation: sun-rays 6s linear infinite;
}

/* Sun rays rotation */
@keyframes sun-rays {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

/* Night background for aquarium */
.aquarium.night {
    background: linear-gradient(to bottom, #0B1426 0%, #1A237E 50%, #000051 100%);
    transition: background 2s ease-in-out;
}

/* Moon style for the sun element */
.sunset-sun.moon {
    background: radial-gradient(circle at 30% 30%, 
        #F5F5DC 0%, 
        #E6E6FA 20%, 
        #D3D3D3 40%, 
        #C0C0C0 60%, 
        #A9A9A9 80%, 
        #808080 100%);
    box-shadow: 
        0 0 30px rgba(255, 255, 255, 0.6),
        0 0 60px rgba(255, 255, 255, 0.4),
        0 0 90px rgba(255, 255, 255, 0.2),
        inset -10px -10px 20px rgba(0, 0, 0, 0.3);
    animation: moon-glow 4s ease-in-out infinite alternate;
}

/* Moon glow animation */
@keyframes moon-glow {
    0% {
        box-shadow: 
            0 0 30px rgba(255, 255, 255, 0.6),
            0 0 60px rgba(255, 255, 255, 0.4),
            0 0 90px rgba(255, 255, 255, 0.2),
            inset -10px -10px 20px rgba(0, 0, 0, 0.3);
    }
    100% {
        box-shadow: 
            0 0 40px rgba(255, 255, 255, 0.8),
            0 0 80px rgba(255, 255, 255, 0.5),
            0 0 120px rgba(255, 255, 255, 0.3),
            inset -10px -10px 20px rgba(0, 0, 0, 0.3);
    }
}

/* Responsive */
@media (max-width: 900px) {
    .aquarium {
        width: 90vw;
        height: 60vh;
    }
    
    .aquarium-header h1 {
        font-size: 1.8rem;
    }
    
    .stats {
        flex-direction: row;
        gap: 15px;
        font-size: 1rem;
    }
    
    .controls {
        width: 90vw;
        justify-content: center;
        gap: 20px;
        margin-bottom: 20px;
    }
    
    .control-btn {
        width: 48px;
        height: 48px;
        min-width: 0;
    }
}