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

body {
    font-family: 'Courier New', monospace;
    overflow: hidden;
    width: 100vw;
    height: 100vh;
}

/* Theme Switcher */
.theme-switcher {
    position: fixed;
    top: 20px;
    right: 30px;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* Burger Menu Toggle */
.burger-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.9);
    border: 3px solid #333;
    padding: 8px;
    cursor: pointer;
    z-index: 1001;
}

.burger-toggle span {
    width: 100%;
    height: 3px;
    background: #333;
    transition: all 0.3s ease;
}

.burger-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.burger-toggle.active span:nth-child(2) {
    opacity: 0;
}

.burger-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* Theme Menu */
.theme-menu {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.theme-btn {
    background: rgba(255, 255, 255, 0.9);
    border: 3px solid #333;
    padding: 10px 20px;
    font-family: 'Courier New', monospace;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    image-rendering: pixelated;
    transition: transform 0.1s;
}

.theme-btn:hover {
    transform: scale(1.05);
}

.theme-btn.active {
    background: #ffeb3b;
    border-color: #000;
}

/* Clock */
.clock-container {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 999;
}

.clock {
    color: #00ff00;
    padding: 30px 60px;
    font-size: 72px;
    font-weight: bold;
    font-family: 'Courier New', monospace;
    text-shadow:
        0 0 20px #00ff00,
        0 0 40px #00ff00,
        2px 2px 4px rgba(0, 0, 0, 0.8);
    image-rendering: pixelated;
}

/* Theme Scenes */
.theme-scene {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease;
}

.theme-scene.active {
    opacity: 1;
    visibility: visible;
}

/* ==================== UNDERWATER THEME ==================== */
#underwater {
    background: linear-gradient(to bottom, #1e90ff 0%, #0047ab 50%, #001f3f 100%);
}

/* Sun Glare */
.sun-glare {
    position: absolute;
    top: -50px;
    left: 50%;
    transform: translateX(-50%);
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(255, 255, 150, 0.4) 0%, transparent 70%);
    animation: glare 4s ease-in-out infinite;
}

@keyframes glare {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.6; }
}

/* Bubbles */
.bubble {
    position: absolute;
    bottom: -50px;
    width: 20px;
    height: 20px;
    background: rgba(255, 255, 255, 0.8);
    border: 3px solid rgba(255, 255, 255, 0.9);
    border-radius: 0;
    image-rendering: pixelated;
    animation: rise 8s infinite ease-in;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

.bubble.clicked {
    animation: riseClick 3s ease-in forwards;
}

@keyframes rise {
    0% {
        bottom: -50px;
        opacity: 1;
    }
    100% {
        bottom: 110%;
        opacity: 0;
    }
}

@keyframes riseClick {
    0% {
        transform: translateY(0);
        opacity: 1;
    }
    100% {
        transform: translateY(-120vh);
        opacity: 0;
    }
}

/* Fish */
.fish {
    position: absolute;
    width: 50px;
    height: 30px;
    cursor: pointer;
    transition: transform 0.6s ease;
}

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

/* Fish body - RIGHT facing */
.fish[data-direction="right"]::before {
    content: '';
    position: absolute;
    width: 35px;
    height: 22px;
    background: #ff6b35;
    border-radius: 60% 40% 40% 60% / 50% 50% 50% 50%;
    right: 0;
    top: 4px;
}

/* Fish tail - RIGHT facing */
.fish[data-direction="right"]::after {
    content: '';
    position: absolute;
    width: 0;
    height: 0;
    border-left: 20px solid #ff6b35;
    border-top: 12px solid transparent;
    border-bottom: 12px solid transparent;
    left: 0;
    top: 3px;
}

/* Fish body - LEFT facing */
.fish[data-direction="left"]::before {
    content: '';
    position: absolute;
    width: 35px;
    height: 22px;
    background: #ff6b35;
    border-radius: 40% 60% 60% 40% / 50% 50% 50% 50%;
    left: 0;
    top: 4px;
}

/* Fish tail - LEFT facing */
.fish[data-direction="left"]::after {
    content: '';
    position: absolute;
    width: 0;
    height: 0;
    border-right: 20px solid #ff6b35;
    border-top: 12px solid transparent;
    border-bottom: 12px solid transparent;
    right: 0;
    top: 3px;
}

/* Fish eye - RIGHT facing */
.fish[data-direction="right"] > .fish-eye {
    position: absolute;
    width: 6px;
    height: 6px;
    background: #000;
    border-radius: 50%;
    right: 5px;
    top: 10px;
    z-index: 1;
}

/* Fish fin - RIGHT facing */
.fish[data-direction="right"] > .fish-fin {
    position: absolute;
    width: 12px;
    height: 8px;
    background: #ff8c5a;
    border-radius: 0 0 50% 50%;
    right: 15px;
    bottom: -2px;
    z-index: 0;
}

/* Fish eye - LEFT facing */
.fish[data-direction="left"] > .fish-eye {
    position: absolute;
    width: 6px;
    height: 6px;
    background: #000;
    border-radius: 50%;
    left: 5px;
    top: 10px;
    z-index: 1;
}

/* Fish fin - LEFT facing */
.fish[data-direction="left"] > .fish-fin {
    position: absolute;
    width: 12px;
    height: 8px;
    background: #ff8c5a;
    border-radius: 0 0 50% 50%;
    left: 15px;
    bottom: -2px;
    z-index: 0;
}

.fish-1 {
    top: 25%;
    left: -100px;
    animation: swim-right-1 15s linear infinite;
}

.fish-1::before { background: #ff6b35; }
.fish-1::after { border-left-color: #ff6b35; }
.fish-1 > .fish-fin { background: #ff8c5a; }

.fish-2 {
    top: 45%;
    right: -100px;
    animation: swim-left-1 18s linear infinite;
}

.fish-2::before { background: #ffd700; }
.fish-2::after { border-right-color: #ffd700; }
.fish-2 > .fish-fin { background: #ffdf5a; }

.fish-3 {
    top: 60%;
    left: -120px;
    animation: swim-right-2 20s linear infinite;
}

.fish-3::before { background: #00ced1; }
.fish-3::after { border-left-color: #00ced1; }
.fish-3 > .fish-fin { background: #5ae0dc; }

.fish-4 {
    top: 35%;
    right: -150px;
    animation: swim-left-2 22s linear infinite;
}

.fish-4::before { background: #ff1493; }
.fish-4::after { border-right-color: #ff1493; }
.fish-4 > .fish-fin { background: #ff5ab8; }

/* Additional fish with different sizes */
.fish-5 {
    top: 15%;
    left: -80px;
    animation: swim-right-3 12s linear infinite;
    width: 35px;
    height: 22px;
}

.fish-5::before {
    width: 25px;
    height: 16px;
    background: #9370db;
}
.fish-5::after {
    border-left: 14px solid #9370db;
    border-top: 8px solid transparent;
    border-bottom: 8px solid transparent;
}
.fish-5 > .fish-fin {
    background: #b19cd9;
    width: 10px;
    height: 6px;
}

.fish-6 {
    top: 70%;
    right: -130px;
    animation: swim-left-3 16s linear infinite;
    width: 70px;
    height: 42px;
}

.fish-6::before {
    width: 48px;
    height: 30px;
    background: #ff4500;
}
.fish-6::after {
    border-right: 28px solid #ff4500;
    border-top: 18px solid transparent;
    border-bottom: 18px solid transparent;
}
.fish-6 > .fish-eye {
    width: 8px;
    height: 8px;
    left: 7px;
}
.fish-6 > .fish-fin {
    background: #ff6347;
    width: 16px;
    height: 12px;
    left: 20px;
}

.fish-7 {
    top: 50%;
    left: -90px;
    animation: swim-right-4 19s linear infinite;
    width: 40px;
    height: 24px;
}

.fish-7::before {
    width: 28px;
    height: 18px;
    background: #32cd32;
}
.fish-7::after {
    border-left: 16px solid #32cd32;
    border-top: 10px solid transparent;
    border-bottom: 10px solid transparent;
}
.fish-7 > .fish-fin {
    background: #7fff00;
    width: 11px;
    height: 7px;
}

.fish-8 {
    top: 28%;
    right: -110px;
    animation: swim-left-4 13s linear infinite;
    width: 45px;
    height: 27px;
}

.fish-8::before {
    width: 32px;
    height: 20px;
    background: #ffa500;
}
.fish-8::after {
    border-right: 18px solid #ffa500;
    border-top: 11px solid transparent;
    border-bottom: 11px solid transparent;
}
.fish-8 > .fish-fin {
    background: #ffb84d;
    width: 12px;
    height: 8px;
}

.fish-9 {
    top: 65%;
    left: -95px;
    animation: swim-right-5 24s linear infinite;
    width: 38px;
    height: 23px;
}

.fish-9::before {
    width: 27px;
    height: 17px;
    background: #e91e63;
}
.fish-9::after {
    border-left: 15px solid #e91e63;
    border-top: 9px solid transparent;
    border-bottom: 9px solid transparent;
}
.fish-9 > .fish-fin {
    background: #f06292;
    width: 10px;
    height: 6px;
}

.fish-10 {
    top: 18%;
    right: -125px;
    animation: swim-left-5 17s linear infinite;
    width: 55px;
    height: 33px;
}

.fish-10::before {
    width: 38px;
    height: 24px;
    background: #00bcd4;
}
.fish-10::after {
    border-right: 22px solid #00bcd4;
    border-top: 14px solid transparent;
    border-bottom: 14px solid transparent;
}
.fish-10 > .fish-eye {
    width: 7px;
    height: 7px;
}
.fish-10 > .fish-fin {
    background: #4dd0e1;
    width: 14px;
    height: 10px;
}

.fish-11 {
    top: 42%;
    left: -75px;
    animation: swim-right-6 11s linear infinite;
    width: 32px;
    height: 20px;
}

.fish-11::before {
    width: 23px;
    height: 15px;
    background: #ffeb3b;
}
.fish-11::after {
    border-left: 13px solid #ffeb3b;
    border-top: 8px solid transparent;
    border-bottom: 8px solid transparent;
}
.fish-11 > .fish-fin {
    background: #fff176;
    width: 9px;
    height: 6px;
}

.fish-12 {
    top: 55%;
    right: -140px;
    animation: swim-left-6 21s linear infinite;
    width: 48px;
    height: 29px;
}

.fish-12::before {
    width: 34px;
    height: 21px;
    background: #8bc34a;
}
.fish-12::after {
    border-right: 19px solid #8bc34a;
    border-top: 12px solid transparent;
    border-bottom: 12px solid transparent;
}
.fish-12 > .fish-fin {
    background: #aed581;
    width: 13px;
    height: 9px;
}

@keyframes swim-right-1 {
    0% { left: -100px; }
    100% { left: 110%; }
}

@keyframes swim-right-2 {
    0% { left: -120px; }
    100% { left: 110%; }
}

@keyframes swim-right-3 {
    0% { left: -80px; }
    100% { left: 110%; }
}

@keyframes swim-right-4 {
    0% { left: -90px; }
    100% { left: 110%; }
}

@keyframes swim-left-1 {
    0% { right: -100px; }
    100% { right: 110%; }
}

@keyframes swim-left-2 {
    0% { right: -150px; }
    100% { right: 110%; }
}

@keyframes swim-left-3 {
    0% { right: -130px; }
    100% { right: 110%; }
}

@keyframes swim-left-4 {
    0% { right: -110px; }
    100% { right: 110%; }
}

@keyframes swim-right-5 {
    0% { left: -95px; }
    100% { left: 110%; }
}

@keyframes swim-left-5 {
    0% { right: -125px; }
    100% { right: 110%; }
}

@keyframes swim-right-6 {
    0% { left: -75px; }
    100% { left: 110%; }
}

@keyframes swim-left-6 {
    0% { right: -140px; }
    100% { right: 110%; }
}

/* Octopus */
.octopus {
    position: absolute;
    left: -100px;
    top: 40%;
    width: 70px;
    height: 70px;
    animation: octopusSwim 35s linear infinite, float 3s ease-in-out infinite;
}

@keyframes octopusSwim {
    0% { left: -100px; }
    100% { left: 110%; }
}

/* Octopus head */
.octopus::before {
    content: '';
    position: absolute;
    top: 0;
    left: 10px;
    width: 50px;
    height: 45px;
    background: #e74c3c;
    border-radius: 50% 50% 45% 45%;
}

/* Octopus eyes */
.octopus::after {
    content: '';
    position: absolute;
    top: 15px;
    left: 23px;
    width: 10px;
    height: 10px;
    background: #fff;
    border-radius: 50%;
    box-shadow:
        14px 0 0 #fff,
        2px 2px 0 #000,
        16px 2px 0 #000;
}

/* Octopus tentacles - created via background pattern */
.octopus > .tentacle {
    position: absolute;
    bottom: 0;
    width: 8px;
    height: 35px;
    background: #c0392b;
    border-radius: 0 0 50% 50%;
}

.octopus > .tentacle:nth-child(1) {
    left: 10px;
    animation: wave 1.5s ease-in-out infinite;
}

.octopus > .tentacle:nth-child(2) {
    left: 20px;
    animation: wave 1.5s ease-in-out infinite 0.2s;
}

.octopus > .tentacle:nth-child(3) {
    left: 30px;
    animation: wave 1.5s ease-in-out infinite 0.4s;
}

.octopus > .tentacle:nth-child(4) {
    left: 40px;
    animation: wave 1.5s ease-in-out infinite 0.6s;
}

.octopus > .tentacle:nth-child(5) {
    left: 50px;
    animation: wave 1.5s ease-in-out infinite 0.8s;
}

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

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

/* Jellyfish */
.jellyfish {
    position: absolute;
    width: 50px;
    height: 80px;
}

.jellyfish::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 50px;
    height: 30px;
    background: rgba(255, 182, 193, 0.7);
    border-radius: 50% 50% 0 0;
    box-shadow: inset 0 -5px 10px rgba(255, 105, 180, 0.5);
}

.jellyfish::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 5px;
    width: 40px;
    height: 50px;
    background: repeating-linear-gradient(
        to right,
        rgba(255, 182, 193, 0.6) 0px,
        rgba(255, 182, 193, 0.6) 4px,
        transparent 4px,
        transparent 8px
    );
}

.jellyfish-1 {
    left: -100px;
    top: 20%;
    animation: jellySwim1 25s linear infinite, jellyFloat 4s ease-in-out infinite;
}

.jellyfish-2 {
    right: -100px;
    top: 55%;
    animation: jellySwim2 30s linear infinite, jellyFloat 4s ease-in-out infinite 1.5s;
}

@keyframes jellyFloat {
    0%, 100% {
        transform: translateY(0) scale(1, 1);
    }
    50% {
        transform: translateY(-25px) scale(1.05, 0.95);
    }
}

@keyframes jellySwim1 {
    0% { left: -100px; }
    100% { left: 110%; }
}

@keyframes jellySwim2 {
    0% { right: -100px; }
    100% { right: 110%; }
}

/* Starfish */
.starfish {
    position: absolute;
    bottom: 160px;
    right: 25%;
    width: 40px;
    height: 40px;
    background: #ff6347;
    clip-path: polygon(
        50% 0%,
        61% 35%,
        98% 35%,
        68% 57%,
        79% 91%,
        50% 70%,
        21% 91%,
        32% 57%,
        2% 35%,
        39% 35%
    );
}

/* Crab */
.crab {
    position: absolute;
    bottom: 145px;
    left: 15%;
    width: 50px;
    height: 30px;
    animation: crabWalk 8s linear infinite;
}

.crab::before {
    content: '';
    position: absolute;
    width: 35px;
    height: 20px;
    background: #d2691e;
    border-radius: 50%;
    left: 7px;
    top: 5px;
}

.crab::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 15px;
    height: 15px;
    background: #d2691e;
    border-radius: 0 60% 0 0;
    box-shadow:
        35px 0 0 #d2691e,
        2px 8px 0 #000,
        33px 8px 0 #000;
    transform: scaleX(-1);
}

@keyframes crabWalk {
    0%, 100% { left: 15%; }
    50% { left: 25%; }
}

/* Signature */
.signature {
    position: absolute;
    bottom: 20px;
    left: 30px;
    font-family: 'Brush Script MT', cursive, 'Courier New', monospace;
    font-size: 36px;
    color: rgba(255, 255, 255, 0.7);
    text-shadow:
        2px 2px 4px rgba(0, 0, 0, 0.5),
        0 0 10px rgba(100, 200, 255, 0.5);
    font-style: italic;
    font-weight: bold;
    z-index: 100;
    animation: signatureGlow 3s ease-in-out infinite;
}

@keyframes signatureGlow {
    0%, 100% {
        text-shadow:
            2px 2px 4px rgba(0, 0, 0, 0.5),
            0 0 10px rgba(100, 200, 255, 0.5);
    }
    50% {
        text-shadow:
            2px 2px 4px rgba(0, 0, 0, 0.5),
            0 0 20px rgba(100, 200, 255, 0.8),
            0 0 30px rgba(100, 200, 255, 0.6);
    }
}

/* Seabed */
.seabed {
    position: absolute;
    bottom: 0;
    width: 100%;
    height: 150px;
    background: linear-gradient(to bottom, #c2b280 0%, #d2b48c 30%, #daa520 100%);
    border-top: 3px solid #f4a460;
}

/* Sand texture */
.seabed::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        radial-gradient(circle at 20% 30%, rgba(139, 69, 19, 0.1) 1px, transparent 1px),
        radial-gradient(circle at 60% 70%, rgba(160, 82, 45, 0.15) 1px, transparent 1px),
        radial-gradient(circle at 40% 50%, rgba(205, 133, 63, 0.1) 1px, transparent 1px),
        radial-gradient(circle at 80% 20%, rgba(139, 69, 19, 0.1) 1px, transparent 1px);
    background-size: 50px 50px, 70px 70px, 60px 60px, 80px 80px;
    background-position: 0 0, 30px 30px, 10px 50px, 50px 10px;
}

/* Seashore waves */
.seabed::after {
    content: '';
    position: absolute;
    top: -15px;
    left: 0;
    width: 100%;
    height: 20px;
    background:
        radial-gradient(ellipse at center, rgba(255, 255, 255, 0.3) 0%, transparent 70%);
    background-size: 100px 20px;
    background-position: 0 0;
    background-repeat: repeat-x;
    opacity: 0.6;
}

/* Seagrass - flowing plants */
.seagrass {
    position: absolute;
    bottom: 0;
    width: 8px;
    background: linear-gradient(to top, #2d5016 0%, #4a7c2c 50%, #5a9c3c 100%);
    border-radius: 50% 50% 0 0;
    transform-origin: bottom center;
    animation: seagrassSway 3s ease-in-out infinite;
    z-index: 5;
}

.seagrass::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: -4px;
    width: 6px;
    height: 80%;
    background: linear-gradient(to top, #3d6026 0%, #6aac4c 100%);
    border-radius: 50% 50% 0 0;
    transform-origin: bottom center;
    animation: seagrassSway 3.5s ease-in-out infinite 0.3s;
}

.seagrass::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: -5px;
    width: 5px;
    height: 70%;
    background: linear-gradient(to top, #2d5016 0%, #5a9c3c 100%);
    border-radius: 50% 50% 0 0;
    transform-origin: bottom center;
    animation: seagrassSway 4s ease-in-out infinite 0.6s;
}

.seagrass-1 {
    left: 8%;
    height: 70px;
}

.seagrass-2 {
    left: 22%;
    height: 85px;
    animation-delay: 0.5s;
}

.seagrass-3 {
    left: 35%;
    height: 65px;
    animation-delay: 1s;
}

.seagrass-4 {
    left: 48%;
    height: 75px;
    animation-delay: 1.5s;
}

.seagrass-5 {
    left: 62%;
    height: 80px;
    animation-delay: 0.8s;
}

.seagrass-6 {
    left: 73%;
    height: 68px;
    animation-delay: 1.2s;
}

.seagrass-7 {
    left: 85%;
    height: 78px;
    animation-delay: 0.3s;
}

.seagrass-8 {
    left: 92%;
    height: 72px;
    animation-delay: 1.8s;
}

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

/* Coral - curved organic shapes */
.coral {
    position: absolute;
    bottom: 0;
    animation: sway 3s ease-in-out infinite;
    z-index: 6;
}

.coral::before,
.coral::after {
    content: '';
    position: absolute;
    background: #ff6b9d;
    border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%;
}

.coral-1 {
    left: 18%;
    width: 25px;
    height: 60px;
}

.coral-1::before {
    width: 25px;
    height: 60px;
    background: #ff6b9d;
    left: 0;
    bottom: 0;
}

.coral-1::after {
    width: 18px;
    height: 45px;
    background: #ff8fb3;
    left: 20px;
    bottom: 5px;
}

.coral-2 {
    left: 38%;
    width: 30px;
    height: 70px;
    animation-delay: 0.5s;
}

.coral-2::before {
    width: 30px;
    height: 70px;
    background: #9370db;
    left: 0;
    bottom: 0;
}

.coral-2::after {
    width: 22px;
    height: 55px;
    background: #ba9ae0;
    left: -15px;
    bottom: 8px;
}

.coral-3 {
    left: 58%;
    width: 20px;
    height: 50px;
    animation-delay: 1s;
}

.coral-3::before {
    width: 20px;
    height: 50px;
    background: #20b2aa;
    left: 0;
    bottom: 0;
}

.coral-3::after {
    width: 16px;
    height: 40px;
    background: #48d1cc;
    left: 18px;
    bottom: 10px;
}

.coral-4 {
    left: 78%;
    width: 28px;
    height: 65px;
    animation-delay: 1.5s;
}

.coral-4::before {
    width: 28px;
    height: 65px;
    background: #ff7f50;
    left: 0;
    bottom: 0;
}

.coral-4::after {
    width: 20px;
    height: 50px;
    background: #ffa07a;
    left: 22px;
    bottom: 12px;
}

@keyframes sway {
    0%, 100% {
        transform: rotate(0deg);
    }
    25% {
        transform: rotate(3deg);
    }
    75% {
        transform: rotate(-3deg);
    }
}

/* Treasure Box */
.treasure-box {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 50px;
    background: #d4af37;
    border: 4px solid #8b7355;
}

.treasure-box::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 4px;
    background: #8b7355;
}

.treasure-box::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 20px;
    height: 12px;
    background: #4a4a4a;
    border: 2px solid #2a2a2a;
}

/* ==================== HILL & CITY THEME ==================== */
#hillcity {
    background: linear-gradient(to bottom, #0d1117 0%, #161b22 40%, #1a1f26 100%);
    cursor: crosshair;
}

/* Stars container */
.stars-container {
    position: absolute;
    width: 100%;
    height: 70%;
    pointer-events: none;
}

.star {
    position: absolute;
    background: white;
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.8);
}

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

@keyframes twinkle-2 {
    0%, 100% { opacity: 0.8; transform: scale(1); }
    50% { opacity: 0.2; transform: scale(0.7); }
}

@keyframes twinkle-3 {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.4; transform: scale(0.9); }
}

/* Curved grass ground */
.grass-ground {
    position: absolute;
    bottom: 0;
    width: 100%;
    height: 30%;
    background: #2d5016;
    border-radius: 50% 50% 0 0 / 20% 20% 0 0;
    box-shadow: inset 0 10px 20px rgba(0, 0, 0, 0.3);
}

.grass-ground::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 50%;
    background: linear-gradient(to bottom, #3d6026 0%, #2d5016 100%);
    border-radius: 50% 50% 0 0 / 100% 100% 0 0;
}

/* Girl on the grass */
.girl {
    position: absolute;
    bottom: 30%;
    left: 45%;
    width: 30px;
    height: 50px;
    background: #ff6b9d;
    z-index: 10;
}

.girl::before {
    content: '';
    position: absolute;
    top: -20px;
    left: 5px;
    width: 20px;
    height: 20px;
    background: #ffd7a8;
}

.girl::after {
    content: '';
    position: absolute;
    top: -35px;
    left: 0;
    width: 30px;
    height: 15px;
    background: #4a2c2a;
}

/* Meteor */
.meteor {
    position: absolute;
    width: 8px;
    height: 8px;
    background: #fff;
    image-rendering: pixelated;
    box-shadow:
        0 0 8px #fff,
        0 0 16px #4a9eff;
    opacity: 0;
    pointer-events: none;
}

/* Pixelated tail */
.meteor::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    image-rendering: pixelated;
    box-shadow:
        -8px 0 0 4px rgba(255, 255, 255, 0.9),
        -16px 0 0 3px rgba(255, 255, 255, 0.8),
        -24px 0 0 3px rgba(200, 220, 255, 0.7),
        -32px 0 0 3px rgba(180, 210, 255, 0.6),
        -40px 0 0 2px rgba(160, 200, 255, 0.5),
        -48px 0 0 2px rgba(140, 190, 255, 0.4),
        -56px 0 0 2px rgba(120, 180, 255, 0.3),
        -64px 0 0 2px rgba(100, 170, 255, 0.2),
        -72px 0 0 1px rgba(80, 160, 255, 0.1);
    transform: translate(-50%, -50%) rotate(var(--tail-angle, 0deg));
    transform-origin: 0% 50%;
}

/* Firework particles */
.firework-particle {
    position: absolute;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    pointer-events: none;
    z-index: 100;
}

@keyframes explode {
    0% {
        opacity: 1;
        transform: translate(0, 0) scale(1);
    }
    100% {
        opacity: 0;
        transform: translate(var(--tx), var(--ty)) scale(0);
    }
}

/* ==================== FARM THEME ==================== */
#farm {
    background: linear-gradient(to bottom, #87ceeb 0%, #98d8e8 50%, #90c695 100%);
}

.sun {
    position: absolute;
    top: 10%;
    right: 15%;
    width: 120px;
    height: 120px;
    background: #ffeb3b;
    border-radius: 0;
    box-shadow: 0 0 60px rgba(255, 235, 59, 0.6);
}

.cloud {
    position: absolute;
    width: 100px;
    height: 40px;
    background: #fff;
    animation: drift 30s linear infinite;
}

.cloud::before,
.cloud::after {
    content: '';
    position: absolute;
    background: #fff;
}

.cloud::before {
    width: 50px;
    height: 40px;
    top: -20px;
    left: 10px;
}

.cloud::after {
    width: 60px;
    height: 30px;
    top: -15px;
    right: 10px;
}

@keyframes drift {
    0% { transform: translateX(0); }
    100% { transform: translateX(100vw); }
}

.farm-ground {
    position: absolute;
    bottom: 0;
    width: 100%;
    height: 40%;
    background: #7cb342;
    border-top: 5px solid #558b2f;
}

.cow {
    position: absolute;
    bottom: 100px;
    left: 40%;
    width: 80px;
    height: 50px;
    background: #fff;
    border: 3px solid #000;
}

.cow::before {
    content: '';
    position: absolute;
    top: -25px;
    left: 10px;
    width: 40px;
    height: 25px;
    background: #fff;
    border: 3px solid #000;
}

.cow::after {
    content: '';
    position: absolute;
    bottom: -30px;
    left: 10px;
    width: 15px;
    height: 30px;
    background: #000;
    box-shadow: 45px 0 0 #000;
}

.fence {
    position: absolute;
    bottom: 50px;
    left: 20%;
    width: 200px;
    height: 60px;
    background: repeating-linear-gradient(
        90deg,
        #8b4513 0px,
        #8b4513 8px,
        transparent 8px,
        transparent 18px
    );
    border-top: 5px solid #8b4513;
    border-bottom: 5px solid #8b4513;
}

.grass {
    position: absolute;
    bottom: 0;
    width: 20px;
    height: 40px;
    background: #4caf50;
    animation: sway 2s ease-in-out infinite;
}

.grass-1 {
    left: 15%;
}

.grass-2 {
    left: 55%;
    animation-delay: 0.5s;
}

.grass-3 {
    left: 75%;
    animation-delay: 1s;
}

/* Responsive */
@media (max-width: 768px) {
    .theme-switcher {
        top: 10px;
        right: 10px;
    }

    .burger-toggle {
        display: flex;
    }

    .theme-menu {
        position: absolute;
        top: 50px;
        right: 0;
        background: rgba(255, 255, 255, 0.95);
        border: 3px solid #333;
        padding: 10px;
        opacity: 0;
        visibility: hidden;
        transform: translateY(-10px);
        transition: all 0.3s ease;
    }

    .theme-menu.active {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    .clock-container {
        top: 60px;
        left: 50%;
        transform: translateX(-50%);
    }

    .clock {
        font-size: 48px;
        padding: 20px 40px;
    }
}
