body {
    margin: 0;
    padding: 0;
    background: #ffe;
    font-family: "微软雅黑", "Microsoft YaHei", sans-serif;
    font-size: 16px;
    overflow: hidden;
}

.container {
    width: 100vw;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

#gameContainer {
    position: relative;
    width: 100vw;
    height: 100vh;
}

#garden {
    width: 100%;
    height: 100%;
    cursor: pointer;
}

#score {
    position: fixed;
    top: 20px;
    left: 20px;
    background: rgba(255, 255, 255, 0.9);
    padding: 10px 20px;
    border-radius: 20px;
    font-size: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    z-index: 100;
}

#words {
    position: fixed;
    width: 500px;
    max-width: 90vw;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    color: #333;
    text-align: center;
    transition: opacity 1s ease;
    z-index: 10;
}

#words.hidden {
    opacity: 0;
    pointer-events: none;
}

#messages {
    font-size: 24px;
    margin-bottom: 20px;
}

.message-text {
    margin-bottom: 15px;
}

#elapsedTime {
    margin: 10px 0;
    font-size: 18px;
    color: #666;
}

#loveu {
    padding: 20px;
    font-size: 22px;
    margin-top: 80px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.signature {
    margin-top: 10px;
    font-size: 20px;
    font-style: italic;
}

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(255, 255, 255, 0.95);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    transition: opacity 0.5s ease;
}

.overlay.hidden {
    opacity: 0;
    pointer-events: none;
}

.overlay h2 {
    font-size: 32px;
    margin-bottom: 20px;
    color: #ff6b6b;
}

.overlay p {
    font-size: 20px;
    margin-bottom: 30px;
    color: #666;
}

button {
    padding: 12px 30px;
    font-size: 18px;
    background: #ff6b6b;
    color: white;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    transition: transform 0.3s ease, background 0.3s ease;
}

button:hover {
    transform: scale(1.05);
    background: #ff5252;
}

#musicControl {
    position: fixed;
    right: 20px;
    bottom: 20px;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    font-size: 24px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    transition: transform 0.3s ease;
    z-index: 100;
}

#musicControl:hover {
    transform: scale(1.1);
}

#musicControl.play {
    animation: rotate 3s linear infinite;
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.collectible-heart {
    position: absolute;
    font-size: 24px;
    animation: float 3s ease-in-out infinite;
    cursor: pointer;
    user-select: none;
}

@keyframes float {
    0% {
        transform: translateY(0) rotate(0deg);
    }
    50% {
        transform: translateY(-20px) rotate(180deg);
    }
    100% {
        transform: translateY(0) rotate(360deg);
    }
} 