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

body {
    font-family: 'PingFang SC', 'Microsoft YaHei', 'Hiragino Sans GB', sans-serif;
    background: linear-gradient(135deg, #ff9a9e 0%, #fecfef 50%, #fecfef 100%);
    min-height: 100vh;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.birthday-header {
    text-align: center;
    margin-bottom: 30px;
    position: relative;
}

.birthday-title {
    font-size: 3rem;
    color: #ff6b6b;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    margin-bottom: 20px;
    animation: bounce 2s infinite;
    font-weight: bold;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-10px); }
    60% { transform: translateY(-5px); }
}

.balloons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
}

.balloon {
    font-size: 2rem;
    animation: float 3s ease-in-out infinite;
}

.balloon-1 { animation-delay: 0s; color: #ff6b6b; }
.balloon-2 { animation-delay: 1s; color: #4ecdc4; }
.balloon-3 { animation-delay: 2s; color: #45b7d1; }

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

.birthday-content {
    display: grid;
    gap: 30px;
}

.birthday-card {
    background: white;
    padding: 30px;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    border: 3px solid #ff6b6b;
}

.birthday-card h2 {
    color: #ff6b6b;
    font-size: 2rem;
    margin-bottom: 15px;
    font-weight: bold;
}

.birthday-card p {
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 20px;
}

.surprise-btn {
    background: linear-gradient(45deg, #ff6b6b, #4ecdc4);
    color: white;
    border: none;
    padding: 15px 30px;
    font-size: 1.2rem;
    border-radius: 50px;
    cursor: pointer;
    transition: transform 0.3s;
    font-family: inherit;
    font-weight: bold;
}

.surprise-btn:hover {
    transform: scale(1.1);
}

.games-section {
    background: white;
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.games-section h3 {
    text-align: center;
    color: #ff6b6b;
    font-size: 2rem;
    margin-bottom: 30px;
    font-weight: bold;
}

.game {
    margin-bottom: 40px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 15px;
    border: 2px solid #4ecdc4;
}

.game h4 {
    text-align: center;
    color: #4ecdc4;
    font-size: 1.5rem;
    margin-bottom: 20px;
    font-weight: bold;
}

.balloon-game {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.game-balloon {
    font-size: 3rem;
    cursor: pointer;
    transition: transform 0.3s;
    animation: float 2s ease-in-out infinite;
}

.game-balloon:hover {
    transform: scale(1.2);
}

.game-balloon.popped {
    opacity: 0.3;
    transform: scale(0.5);
    pointer-events: none;
}

.cake {
    text-align: center;
    margin-bottom: 20px;
}

.cake-base {
    font-size: 4rem;
    margin-bottom: 10px;
}

.candles {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.candle {
    font-size: 2rem;
    cursor: pointer;
    transition: all 0.3s;
}

.candle:hover {
    transform: scale(1.2);
}

.candle.blown {
    opacity: 0.3;
    transform: scale(0.8);
}

.score, .candle-message {
    text-align: center;
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 15px;
    font-weight: bold;
}

.reset-btn {
    display: block;
    margin: 0 auto;
    background: #45b7d1;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 25px;
    cursor: pointer;
    font-family: inherit;
    transition: background 0.3s;
    font-weight: bold;
}

.reset-btn:hover {
    background: #357abd;
}

.wishes-section {
    background: white;
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.wishes-section h3 {
    text-align: center;
    color: #ff6b6b;
    font-size: 2rem;
    margin-bottom: 30px;
    font-weight: bold;
}

.wish-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.wish-card {
    background: linear-gradient(45deg, #ffeaa7, #fab1a0);
    padding: 20px;
    border-radius: 15px;
    text-align: center;
    font-size: 1.1rem;
    color: #2d3436;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s;
    font-weight: bold;
}

.wish-card:hover {
    transform: translateY(-5px);
}

.confetti {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1000;
}

.confetti-piece {
    position: absolute;
    width: 10px;
    height: 10px;
    background: #ff6b6b;
    animation: confetti-fall 3s linear infinite;
}

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

@media (max-width: 768px) {
    .birthday-title {
        font-size: 2rem;
    }
    
    .container {
        padding: 10px;
    }
    
    .birthday-card, .games-section, .wishes-section {
        padding: 20px;
    }
    
    .balloon-game {
        gap: 10px;
    }
    
    .game-balloon {
        font-size: 2rem;
    }
}