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

body, html {
    width: 100%;
    height: 100%;
    height: 100dvh;
    overflow: hidden;
    background-color: #87ceeb; /* Sky Blue */
    touch-action: none;
    user-select: none;
    -webkit-user-select: none;
    -webkit-tap-highlight-color: transparent;
}

#game-container {
    position: relative;
    width: 100%;
    height: 100%;
    height: 100dvh;
    display: flex;
    justify-content: center;
    align-items: flex-end;
}

#home-btn {
    position: absolute;
    top: 20px;
    left: 20px;
    font-size: 40px;
    opacity: 0.2;
    z-index: 100;
    cursor: pointer;
    user-select: none;
    -webkit-user-select: none;
}

#tree-trunk {
    width: 60px;
    height: 40%;
    background-color: #8b4513; /* Saddle Brown */
    border-radius: 10px 10px 0 0;
    position: absolute;
    bottom: 0;
    z-index: 1;
}

#tree-leaves {
    width: 120%;
    height: 70%;
    background-color: #228b22; /* Forest Green */
    border-radius: 50% 50% 40% 40%;
    position: absolute;
    top: -5%;
    z-index: 2;
    box-shadow: inset 0 -20px 50px rgba(0,0,0,0.2);
    display: flex;
    justify-content: center;
    align-items: center;
}

.apple {
    position: absolute;
    font-size: 80px;
    cursor: pointer;
    z-index: 3;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: inline-block;
}

.apple.falling {
    animation: fall 0.8s forwards ease-in;
    pointer-events: none;
}

@keyframes fall {
    0% {
        transform: translateY(0) rotate(0);
        opacity: 1;
    }
    100% {
        transform: translateY(100vh) rotate(45deg);
        opacity: 0;
    }
}

.apple.growing {
    animation: grow 0.5s forwards ease-out;
}

@keyframes grow {
    0% { transform: scale(0); }
    100% { transform: scale(1); }
}
