@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@400;600;700&display=swap');

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

body {
    font-family: 'Noto Sans JP', sans-serif;
    background: linear-gradient(135deg, #87CEEB 0%, #E0F6FF 100%);
    min-height: 100vh;
    user-select: none;
}

#game-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

#ui {
    background: rgba(255, 255, 255, 0.9);
    padding: 20px;
    border-radius: 15px;
    margin-bottom: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

#title {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    color: #2c3e50;
    margin-bottom: 15px;
}

#stats {
    display: flex;
    justify-content: space-around;
    margin-bottom: 10px;
    font-weight: 600;
    color: #34495e;
}

#thirsty-count span {
    color: #e74c3c;
}

#satisfied-count span {
    color: #27ae60;
}

#instructions {
    text-align: center;
    color: #7f8c8d;
    font-size: 0.9rem;
}

#game-board {
    flex: 1;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 15px;
    position: relative;
    min-height: 500px;
    overflow: hidden;
}

#sprinkler-area {
    position: absolute;
    top: 50px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
}

#sprinkler {
    font-size: 3rem;
}

#water-drops {
    position: absolute;
    top: 60px;
    left: 50%;
    transform: translateX(-50%);
    width: 200px;
    height: 200px;
    pointer-events: none;
}

.water-drop {
    position: absolute;
    font-size: 1.5rem;
    color: #3498db;
    opacity: 0;
}

.crow {
    position: absolute;
    font-size: 2.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
}

.crow:hover {
    transform: scale(1.1);
    filter: brightness(1.2);
}

.crow.thirsty {
}

.crow.drinking {
}

.crow.satisfied {
    filter: brightness(1.3);
}

#game-over {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: white;
    text-align: center;
    z-index: 1000;
}

#game-over.hidden {
    display: none;
}

#game-over h2 {
    font-size: 3rem;
    margin-bottom: 20px;
    color: #f1c40f;
}

#game-over p {
    font-size: 1.5rem;
    margin-bottom: 30px;
}

#restart-btn {
    padding: 15px 30px;
    font-size: 1.2rem;
    background: #3498db;
    color: white;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Noto Sans JP', sans-serif;
}

#restart-btn:hover {
    background: #2980b9;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

@media (max-width: 600px) {
    #title {
        font-size: 2rem;
    }
    
    #stats {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
    
    .crow {
        font-size: 2rem;
    }
    
    #game-board {
        min-height: 400px;
    }
}