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

body {
    font-family: 'Comic Sans MS', 'Chalkboard SE', 'Arial Rounded MT Bold', sans-serif;
    background: linear-gradient(to bottom, #87CEEB, #1E90FF);
    color: #ffffff;
    overflow: hidden;
    height: 100vh;
    transition: background 1s ease;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
    display: flex;
    flex-direction: column;
    height: 100vh;
}

.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.home-button {
    font-size: 24px;
    color: white;
    text-decoration: none;
    background-color: rgba(0, 0, 0, 0.2);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: background-color 0.3s;
}

.home-button:hover {
    background-color: rgba(0, 0, 0, 0.4);
}

h1 {
    font-size: 36px;
    text-align: center;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

h1 small {
    font-size: 18px;
    opacity: 0.8;
}

.sound-toggle {
    font-size: 24px;
    color: white;
    cursor: pointer;
    background-color: rgba(0, 0, 0, 0.2);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: background-color 0.3s;
}

.sound-toggle:hover {
    background-color: rgba(0, 0, 0, 0.4);
}

.game-container {
    flex: 1;
    position: relative;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    margin-bottom: 20px;
}

#game-area {
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
    cursor: none;
}

#cup {
    position: absolute;
    width: 80px;
    height: 100px;
    background-color: rgba(255, 255, 255, 0.7);
    border-radius: 5px 5px 40px 40px;
    border: 2px solid rgba(255, 255, 255, 0.9);
    bottom: 50px;
    transform: translateX(-50%);
    z-index: 10;
    pointer-events: none;
    transition: transform 0.1s ease-out;
}

.water-level {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(to bottom, #64B5F6, #2196F3);
    border-radius: 0 0 38px 38px;
    transition: height 0.3s ease-out;
    background-size: 200% 200%;
    animation: gradientMove 8s ease infinite;
}

@keyframes gradientMove {
    0% { background-position: 0% 0%; }
    50% { background-position: 100% 100%; }
    100% { background-position: 0% 0%; }
}

.drop {
    position: absolute;
    width: 20px;
    height: 30px;
    background: radial-gradient(circle at 50% 30%, #E3F2FD, #64B5F6);
    border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
    transform: translateX(-50%);
    z-index: 5;
    filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0.5));
}

.star {
    position: absolute;
    width: 15px;
    height: 15px;
    background-color: gold;
    clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
    z-index: 15;
    animation: star-float 2s ease-out forwards;
}

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

#drop-counter {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 24px;
    font-weight: bold;
    background-color: rgba(0, 0, 0, 0.3);
    padding: 10px 20px;
    border-radius: 20px;
    z-index: 100;
}

.splash {
    position: absolute;
    width: 40px;
    height: 40px;
    background: radial-gradient(circle, #64B5F6, transparent);
    border-radius: 50%;
    z-index: 4;
    animation: splash 0.5s forwards;
}

@keyframes splash {
    0% { transform: scale(0.5); opacity: 0.8; }
    100% { transform: scale(2); opacity: 0; }
}

.instructions {
    text-align: center;
    margin-bottom: 20px;
    font-size: 18px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
}

footer a {
    color: white;
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}

#click-notice {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    cursor: pointer;
}

.notice-content {
    background-color: rgba(255, 255, 255, 0.2);
    padding: 20px 40px;
    border-radius: 20px;
    text-align: center;
    animation: pulse 1.5s infinite;
}

.notice-content i {
    font-size: 48px;
    margin-bottom: 10px;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

/* Background bubbles */
.bubble {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0.05));
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    pointer-events: none;
    z-index: 1;
    animation: float-away 15s ease-in-out forwards;
    opacity: 0.7;
}

@keyframes float-away {
    0% { 
        transform: translateY(0) translateX(0); 
        opacity: 0.7;
    }
    100% { 
        transform: translateY(-100vh) translateX(calc(20px - 40px * var(--random-drift, 0.5))); 
        opacity: 0;
    }
} 