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

:root {
    --primary-pink: #ffb3d9;
    --soft-pink: #ffe6f2;
    --lavender: #e6ccff;
    --peach: #ffd9cc;
    --mint: #ccf2f4;
    --warm-white: #fff8f5;
    --text-dark: #4a4a4a;
    --text-light: #6b6b6b;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #ffe6f2 0%, #e6ccff 50%, #ccf2f4 100%);
    min-height: 100vh;
    overflow-x: hidden;
    color: var(--text-dark);
    position: relative;
}

/* Background Floating Elements */
.background-elements {
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 0;
}

.floating-heart,
.floating-star {
    position: absolute;
    font-size: 2rem;
    opacity: 0.2;
    animation: float 15s infinite ease-in-out;
}

.floating-heart:nth-child(1) {
    top: 10%;
    left: 10%;
    animation-delay: 0s;
}

.floating-heart:nth-child(2) {
    top: 20%;
    right: 15%;
    animation-delay: 2s;
}

.floating-heart:nth-child(3) {
    bottom: 30%;
    left: 20%;
    animation-delay: 4s;
}

.floating-star:nth-child(4) {
    top: 30%;
    left: 50%;
    animation-delay: 1s;
}

.floating-star:nth-child(5) {
    bottom: 40%;
    left: 40%;
    animation-delay: 3s;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    25% {
        transform: translateY(-30px) rotate(5deg);
    }
    50% {
        transform: translateY(-60px) rotate(-5deg);
    }
    75% {
        transform: translateY(-30px) rotate(3deg);
    }
}

/* Container */
.container {
    position: relative;
    z-index: 1;
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem;
}

/* Game Header */
.game-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    margin-bottom: 2rem;
    box-shadow: 0 4px 20px rgba(255, 182, 193, 0.3);
}

.score-display {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 1.5rem;
}

.score-label {
    color: var(--text-dark);
    font-weight: 500;
}

.score-value {
    font-size: 2rem;
    font-weight: bold;
    color: #ff6b9d;
    min-width: 60px;
}

.hearts-collected {
    font-size: 1.5rem;
}

.restart-btn {
    background: linear-gradient(135deg, #ffb3d9, #ff99cc);
    border: none;
    border-radius: 50px;
    padding: 0.8rem 1.5rem;
    color: white;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(255, 182, 193, 0.4);
    transition: all 0.3s ease;
}

.restart-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(255, 182, 193, 0.6);
}

/* Character Section */
.character-section {
    text-align: center;
    margin-bottom: 2rem;
}

.character-container {
    margin-bottom: 1rem;
}

.cute-character {
    width: 200px;
    height: 200px;
    margin: 0 auto;
    position: relative;
    animation: bounce 3s infinite ease-in-out;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.cute-character:hover {
    transform: scale(1.1);
}

.character-face {
    width: 150px;
    height: 150px;
    background: linear-gradient(135deg, #ffe6f2, #ffb3d9);
    border-radius: 50%;
    position: relative;
    margin: 0 auto;
    box-shadow: 0 10px 30px rgba(255, 182, 193, 0.4);
    animation: pulse 2s infinite ease-in-out;
}

.eye {
    width: 20px;
    height: 20px;
    background: #333;
    border-radius: 50%;
    position: absolute;
    top: 45px;
    animation: blink 4s infinite;
}

.left-eye {
    left: 40px;
}

.right-eye {
    right: 40px;
}

.mouth {
    width: 30px;
    height: 15px;
    border: 3px solid #333;
    border-top: none;
    border-radius: 0 0 40px 40px;
    position: absolute;
    bottom: 50px;
    left: 50%;
    transform: translateX(-50%);
    transition: all 0.3s ease;
}

.cheek {
    position: absolute;
    font-size: 1.5rem;
    animation: wiggle 2s infinite ease-in-out;
}

.left-cheek {
    left: 10px;
    top: 60px;
}

.right-cheek {
    right: 10px;
    top: 60px;
    animation-delay: 1s;
}

.character-body {
    width: 120px;
    height: 100px;
    background: linear-gradient(135deg, #e6ccff, #d9b3ff);
    border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
    margin: -20px auto 0;
    position: relative;
    box-shadow: 0 5px 20px rgba(230, 204, 255, 0.4);
}

.heart-decoration {
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 1.5rem;
    animation: heartbeat 1.5s infinite ease-in-out;
}

.character-message {
    font-size: 1.3rem;
    color: var(--text-dark);
    margin-top: 1rem;
    font-weight: 500;
    animation: fadeIn 1s ease-in;
}

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

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

@keyframes blink {
    0%, 90%, 100% {
        height: 20px;
    }
    95% {
        height: 2px;
    }
}

@keyframes wiggle {
    0%, 100% {
        transform: rotate(0deg);
    }
    25% {
        transform: rotate(-10deg);
    }
    75% {
        transform: rotate(10deg);
    }
}

@keyframes heartbeat {
    0%, 100% {
        transform: translateX(-50%) scale(1);
    }
    50% {
        transform: translateX(-50%) scale(1.2);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Game Area */
.game-area {
    min-height: 400px;
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(10px);
    border-radius: 30px;
    padding: 2rem;
    margin-bottom: 2rem;
    position: relative;
    box-shadow: 0 8px 32px rgba(255, 182, 193, 0.2);
    overflow: hidden;
}

.bubble {
    position: absolute;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(255, 182, 193, 0.3);
    animation: bubbleFloat 3s infinite ease-in-out;
    transition: transform 0.2s ease;
    user-select: none;
}

.bubble:hover {
    transform: scale(1.1);
}

.bubble:active {
    transform: scale(0.9);
}

.rainbow-bubble {
    background: linear-gradient(45deg, #ff6b9d, #c44569, #f8b500, #6c5ce7, #00d2d3);
    background-size: 300% 300%;
    animation: bubbleFloat 3s infinite ease-in-out, rainbow 2s linear infinite;
}

@keyframes bubbleFloat {
    0%, 100% {
        transform: translateY(0) scale(1);
    }
    50% {
        transform: translateY(-15px) scale(1.05);
    }
}

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

/* Power-ups Section */
.powerups-section {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.powerup-item {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 1.5rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 182, 193, 0.2);
    min-width: 120px;
}

.powerup-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(255, 182, 193, 0.4);
}

.powerup-item.active {
    background: linear-gradient(135deg, #ffb3d9, #ff99cc);
    color: white;
    box-shadow: 0 6px 20px rgba(255, 182, 193, 0.6);
}

.powerup-icon {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.powerup-label {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-dark);
}

.powerup-item.active .powerup-label {
    color: white;
}

/* Friends Section */
.friends-section {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.friend-character {
    text-align: center;
    transition: transform 0.3s ease;
}

.friend-character:hover {
    transform: scale(1.1);
}

.friend-face {
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, #ffe6f2, #ffb3d9);
    border-radius: 50%;
    position: relative;
    margin: 0 auto 1rem;
    box-shadow: 0 5px 20px rgba(255, 182, 193, 0.3);
    animation: bounce 2s infinite ease-in-out;
}

.friend-character:nth-child(2) .friend-face {
    background: linear-gradient(135deg, #e6ccff, #d9b3ff);
    animation-delay: 0.3s;
}

.friend-character:nth-child(3) .friend-face {
    background: linear-gradient(135deg, #ccf2f4, #b3e6e8);
    animation-delay: 0.6s;
}

.friend-character.happy .friend-face {
    animation: bounce 1s infinite ease-in-out;
}

.friend-eye {
    width: 12px;
    height: 12px;
    background: #333;
    border-radius: 50%;
    position: absolute;
    top: 35px;
    animation: blink 3s infinite;
}

.friend-eye:first-of-type {
    left: 30px;
}

.friend-eye:last-of-type {
    right: 30px;
}

.friend-mouth {
    width: 25px;
    height: 12px;
    border: 2px solid #333;
    border-top: none;
    border-radius: 0 0 25px 25px;
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    transition: all 0.3s ease;
}

.friend-name {
    font-weight: 500;
    font-size: 1rem;
    color: var(--text-dark);
}

/* Celebration Modal */
.celebration-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

.celebration-content {
    background: linear-gradient(135deg, #ffe6f2, #e6ccff);
    padding: 3rem;
    border-radius: 30px;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.4s ease;
}

.celebration-emoji {
    font-size: 4rem;
    margin-bottom: 1rem;
    animation: bounce 1s infinite ease-in-out;
}

.celebration-text {
    font-size: 2rem;
    font-weight: bold;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
}

.close-celebration {
    background: linear-gradient(135deg, #ffb3d9, #ff99cc);
    border: none;
    border-radius: 50px;
    padding: 1rem 2rem;
    color: white;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(255, 182, 193, 0.4);
    transition: all 0.3s ease;
}

.close-celebration:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(255, 182, 193, 0.6);
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Temporary Message */
.temp-message {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(255, 255, 255, 0.95);
    padding: 1.5rem 2.5rem;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    z-index: 10000;
    font-size: 1.2rem;
    text-align: center;
    color: #4a4a4a;
    font-weight: 500;
    pointer-events: none;
    animation: fadeIn 0.3s ease;
}

/* Responsive Design */
@media (max-width: 768px) {
    .game-header {
        flex-direction: column;
        gap: 1rem;
    }
    
    .score-display {
        font-size: 1.2rem;
    }
    
    .score-value {
        font-size: 1.5rem;
    }
    
    .powerups-section {
        gap: 1rem;
    }
    
    .powerup-item {
        min-width: 100px;
        padding: 1rem;
    }
    
    .friends-section {
        gap: 2rem;
    }
    
    .game-area {
        min-height: 300px;
        padding: 1rem;
    }
}
