/* --- GLOBAL RESET & MOBILE FIXES --- */
*, *::before, *::after {
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

body, html {
    margin: 0;
    padding: 0;
    overflow: hidden;
    width: 100vw;
    height: 100vh;
    height: 100dvh;
    background-color: #4facfe;
    touch-action: manipulation;
    overscroll-behavior: none;
    user-select: none;
    -webkit-user-select: none;
}

.sky {
    position: absolute;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, #37b5ff 0%, #87cefa 50%, #c4e9ff 100%);
    z-index: 1;
}

/* --- DRAWN ANIME SUN --- */
.sun-container {
    position: absolute;
    top: 12%;
    left: 8%;
    width: 130px;
    height: 130px;
    z-index: 2;
    will-change: transform;
    filter: drop-shadow(0 0 15px rgba(255, 255, 255, 0.9));
}

.sun-drawn {
    width: 100%;
    height: 100%;
    animation: slow-spin 30s linear infinite;
}

@keyframes slow-spin {
    100% { transform: rotate(360deg); }
}

/* --- CLOUDS --- */
.cloud {
    position: absolute;
    background: #ffffff;
    border-radius: 50px;
    z-index: 2;
    opacity: 0.85;
}
.cloud::before, .cloud::after {
    content: '';
    position: absolute;
    background: #ffffff;
    border-radius: 50%;
}
.cloud1 { top: 20%; left: 40%; width: 120px; height: 40px; }
.cloud1::before { top: -20px; left: 15px; width: 50px; height: 50px; }
.cloud1::after { top: -30px; right: 20px; width: 60px; height: 60px; }
.cloud2 { top: 35%; left: 75%; width: 180px; height: 50px; transform: scale(0.8); opacity: 0.7; }
.cloud2::before { top: -30px; left: 25px; width: 70px; height: 70px; }
.cloud2::after { top: -40px; right: 30px; width: 80px; height: 80px; }
.cloud3 { top: 15%; left: 80%; width: 100px; height: 30px; transform: scale(0.6); opacity: 0.5; }
.cloud3::before { top: -15px; left: 15px; width: 40px; height: 40px; }
.cloud3::after { top: -20px; right: 15px; width: 50px; height: 50px; }

/* --- CELL-SHADED HILLS --- */
.hill { position: absolute; border-radius: 50% 50% 0 0; }
.hill-back { bottom: 25%; left: -20%; width: 140%; height: 40%; background: #62c76b; z-index: 3; }
.hill-mid { bottom: 15%; left: -10%; width: 120%; height: 30%; background: #4ab253; box-shadow: inset 0 20px 0 rgba(255,255,255,0.1); z-index: 4; }
.hill-front { bottom: -10%; left: -5%; width: 110%; height: 35%; background: #399641; box-shadow: inset 0 15px 0 rgba(255,255,255,0.1); z-index: 6; }

/* --- WINDMILL --- */
.windmill-container {
    position: absolute;
    bottom: 18%;
    right: 15%;
    width: 180px;
    height: 300px;
    z-index: 5;
    transition: transform 0.3s ease;
}

.windmill-body {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 220px;
    background: linear-gradient(90deg, #d3b185 50%, #b89163 50%);
    -webkit-clip-path: polygon(25% 0, 75% 0, 100% 100%, 0% 100%);
    clip-path: polygon(25% 0, 75% 0, 100% 100%, 0% 100%);
}

.windmill-roof {
    position: absolute;
    top: 30px;
    left: 50%;
    transform: translateX(-50%);
    width: 140px;
    height: 70px;
    background: linear-gradient(90deg, #ff5c5c 50%, #cc3535 50%);
    -webkit-clip-path: polygon(50% 0, 100% 100%, 0 100%);
    clip-path: polygon(50% 0, 100% 100%, 0 100%);
    border-radius: 5px;
}

.blades-hub {
    position: absolute;
    top: 90px;
    left: 50%;
    width: 24px; height: 24px;
    background: #333; border-radius: 50%;
    transform: translate(-50%, -50%); z-index: 10;
}

.blades {
    position: absolute;
    top: 90px; left: 50%; width: 0; height: 0; z-index: 9;
    will-change: transform;
    animation: spin 12s linear infinite; 
}

.blade-arm {
    position: absolute; width: 8px; height: 160px; background: #555;
    left: -4px; top: 0; 
    -webkit-transform-origin: top center;
    transform-origin: top center;
}

.sail {
    position: absolute; top: 20px; left: 4px; width: 40px; height: 130px;
    background: #ffffff; border: 3px solid #b89163; border-left: none;
    box-shadow: 4px 4px 0 rgba(0,0,0,0.15);
}

.blade-arm:nth-child(1) { transform: rotate(0deg); }
.blade-arm:nth-child(2) { transform: rotate(90deg); }
.blade-arm:nth-child(3) { transform: rotate(180deg); }
.blade-arm:nth-child(4) { transform: rotate(270deg); }

@keyframes spin { 100% { transform: rotate(360deg); } }

/* --- ENTRANCE DOOR --- */
.door-wrapper {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 55px;
    height: 90px;
    cursor: pointer;
    -webkit-perspective: 400px;
    perspective: 400px;
    z-index: 20;
}

.door-shadow {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: #3b220e; border-radius: 15px 15px 0 0;
}

.door {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: #8b5a2b; border-radius: 15px 15px 0 0;
    -webkit-transform-origin: left;
    transform-origin: left; 
    transition: transform 0.4s ease;
    box-shadow: inset 0 0 5px rgba(0,0,0,0.3);
}

.doorknob {
    position: absolute;
    top: 48px; 
    right: 6px;
    width: 8px;
    height: 8px;
    background: #ffd700;
    border-radius: 50%;
}

.door-wrapper:hover .door,
.door-wrapper.open .door { 
    -webkit-transform: rotateY(-40deg);
    transform: rotateY(-40deg); 
}

/* --- WHITE ENGRAVED DOOR TEXT --- */
.door-text {
    position: absolute;
    top: 14px;
    width: 100%;
    text-align: center;
    color: #ffffff; /* Crisp white */
    font-family: 'Fredoka', 'Comic Sans MS', 'Arial Round', sans-serif;
    font-weight: 800;
    font-size: 7.5px;
    line-height: 1.1;
    letter-spacing: 0.3px;
    
    /* Dark contrast text-shadow for crisp white engraved look */
    text-shadow: 
        1px 1px 1px rgba(0, 0, 0, 0.9),
       -1px -1px 0px rgba(0, 0, 0, 0.7),
        1px -1px 0px rgba(0, 0, 0, 0.7),
       -1px 1px 0px rgba(0, 0, 0, 0.7);
        
    pointer-events: none;
    user-select: none;
}

/* --- ANIMATED BEATING HEART (ENLARGED) --- */
.beating-heart {
    display: block;
    margin-top: 2px;
    font-size: 15px; /* Enlarged size */
    text-shadow: none;
    animation: heartbeat 1.2s infinite ease-in-out;
    transform-origin: center;
    will-change: transform;
}

@keyframes heartbeat {
    0%   { transform: scale(1); }
    14%  { transform: scale(1.4); }
    28%  { transform: scale(1); }
    42%  { transform: scale(1.4); }
    70%  { transform: scale(1); }
    100% { transform: scale(1); }
}

/* --- REALISTIC SILHOUETTE RABBITS --- */
.rabbit-container { 
    position: absolute; 
    z-index: 7; 
    width: 45px; 
    will-change: transform;
    animation: hop 2.5s infinite linear; 
}
.r1 { left: 25%; bottom: 8%; }
.r2 { left: 55%; bottom: 11%; animation-delay: -1.2s; transform: scale(0.85) scaleX(-1); }
.rabbit { width: 100%; filter: drop-shadow(-3px 5px 3px rgba(0,0,0,0.2)); }

@keyframes hop {
    0%, 80%, 100% { transform: translateY(0); }
    90% { transform: translateY(-20px) translateX(12px); }
}

/* --- TULIPS & WIND --- */
.tulip-field { 
    position: absolute; 
    bottom: 0; 
    left: 0; 
    width: 100%; 
    height: 100%; 
    pointer-events: none; 
    z-index: 8; 
}

.tulip { 
    position: absolute; 
    -webkit-transform-origin: bottom center;
    transform-origin: bottom center; 
    will-change: transform;
    animation: sway 3s ease-in-out infinite alternate; 
}

@keyframes sway { 
    0% { transform: rotate(-10deg); } 
    100% { transform: rotate(12deg); } 
}

.petal-container { 
    position: absolute; 
    top: 0; left: 0; 
    width: 100%; height: 100%; 
    pointer-events: none; 
    z-index: 99; 
    overflow: hidden; 
}

.petal { 
    position: absolute; 
    background: #ffb7c5; 
    border-radius: 15px 0 15px 0; 
    opacity: 0.8; 
    will-change: transform, opacity;
    animation: blowWind linear infinite; 
}

@keyframes blowWind {
    0% { transform: translate(0, -50px) rotate(0deg); opacity: 0; }
    10% { opacity: 0.9; }
    90% { opacity: 0.9; }
    100% { transform: translate(100vw, 100vh) rotate(720deg); opacity: 0; }
}

/* =========================================
   RESPONSIVE DESIGN (MOBILE ADAPTATION)
   ========================================= */
@media (max-width: 768px) {
    .windmill-container {
        transform: scale(0.65);
        -webkit-transform-origin: bottom right;
        transform-origin: bottom right;
        right: 5%;
        bottom: 24%;
    }

    .sun-container { width: 90px; height: 90px; top: 8%; left: 2%; }
    .r1 { left: 10%; }
    .r2 { left: 35%; }
    .cloud1 { left: 15%; transform: scale(0.7); }
    .cloud2 { left: 55%; transform: scale(0.5); }
    .cloud3 { display: none; }
}