* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: 'Comic Sans MS', cursive, sans-serif;
    background: linear-gradient(180deg, #87CEEB 0%, #98FB98 100%);
    min-height: 100vh;
    overflow: hidden;
    touch-action: manipulation;
}

header {
    display: flex;
    align-items: center;
    padding: 10px;
    background: rgba(255, 255, 255, 0.8);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.back-btn {
    font-size: 2rem;
    text-decoration: none;
    padding: 8px 15px;
    background: #FF69B4;
    border-radius: 15px;
    color: white;
    margin-right: 10px;
    transition: transform 0.2s;
}

.back-btn:active {
    transform: scale(0.95);
}

h1 {
    font-size: 1.5rem;
    color: #FF1493;
    text-shadow: 1px 1px 2px rgba(255, 255, 255, 0.8);
}

#garden {
    width: 100%;
    height: calc(100vh - 70px);
    position: relative;
    cursor: pointer;
}

.flower {
    position: absolute;
    font-size: 4rem;
    cursor: pointer;
    transition: transform 0.15s ease-out;
    user-select: none;
    animation: sway 3s ease-in-out infinite;
}

.flower:active {
    transform: scale(1.3);
}

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

@keyframes pop {
    0% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.5); }
    100% { transform: scale(0); opacity: 0; }
}

@keyframes float-up {
    0% { transform: translateY(0) rotate(0deg); opacity: 1; }
    100% { transform: translateY(-100px) rotate(360deg); opacity: 0; }
}

.petal {
    position: fixed;
    font-size: 2rem;
    pointer-events: none;
    animation: float-up 1.5s ease-out forwards;
}

#flower-picker {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    padding: 12px 10px;
    background: rgba(255, 255, 255, 0.85);
    box-shadow: 0 -4px 12px rgba(0,0,0,0.1);
    z-index: 100;
    flex-wrap: wrap;
}

.flower-pick-btn {
    font-size: 2rem;
    background: #fff;
    border: 3px solid #eee;
    border-radius: 15px;
    width: 50px;
    height: 50px;
    cursor: pointer;
    transition: transform 0.2s, border-color 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.flower-pick-btn:hover,
.flower-pick-btn:active {
    transform: scale(1.1);
}

.flower-pick-btn.active {
    border-color: #FF69B4;
    background: #fff0f5;
    transform: scale(1.15);
    box-shadow: 0 2px 8px rgba(255,105,180,0.3);
}

.water-drop {
    position: fixed;
    pointer-events: none;
    animation: waterFall 0.9s ease-in forwards;
    z-index: 50;
}

@keyframes waterFall {
    0% { transform: translateY(0) scale(1); opacity: 1; }
    60% { opacity: 0.8; }
    100% { transform: translateY(60px) scale(0.3); opacity: 0; }
}

.fullscreen-btn {
    font-size: 1.5rem;
    background: rgba(255,255,255,0.8);
    border: none;
    border-radius: 50%;
    width: 44px;
    height: 44px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    transition: transform 0.2s;
    flex-shrink: 0;
    text-decoration: none;
    color: inherit;
}
.fullscreen-btn:active {
    transform: scale(0.9);
}

@media (max-width: 480px) {
    .flower {
        font-size: 3.5rem;
    }
    h1 {
        font-size: 1.2rem;
    }
    .flower-pick-btn {
        width: 42px;
        height: 42px;
        font-size: 1.5rem;
    }
    #flower-picker {
        gap: 5px;
        padding: 8px 6px;
    }
}