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

body {
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #ffeef8 0%, #ffb3d9 100%);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    position: relative;
}

.hearts-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
}

.heart {
    position: absolute;
    color: rgba(255, 255, 255, 0.3);
    font-size: 20px;
    animation: float 10s infinite;
}

.floating-image {
    position: absolute;
    animation: float 15s infinite;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    opacity: 0.7;
    width: 120px;
    height: 120px;
    object-fit: cover;
}

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

.container {
    background: rgba(245, 87, 108, 0.4);
    backdrop-filter: blur(30px) saturate(180%);
    -webkit-backdrop-filter: blur(30px) saturate(180%);
    border-radius: 30px;
    padding: 50px;
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
    border: 1px solid rgba(245, 87, 108, 0.2);
    text-align: center;
    max-width: 800px;
    width: 90%;
    position: relative;
    z-index: 1;
}

.container.initial-load {
    animation: fadeIn 1s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.heart-icon {
    font-size: 80px;
    margin-bottom: 20px;
    animation: heartbeat 1.5s infinite;
}

@keyframes heartbeat {
    0%,
    100% {
        transform: scale(1);
    }
    10%,
    30% {
        transform: scale(1.1);
    }
    20%,
    40% {
        transform: scale(1);
    }
}

h1 {
    color: #ffffff;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    font-size: 2.5em;
    margin-bottom: 20px;
    font-weight: bold;
}

.message {
    color: #ffffff;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
    font-size: 1.2em;
    line-height: 1.6;
    margin-bottom: 30px;
}

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

button {
    padding: 15px 40px;
    font-size: 1.2em;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: bold;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

#yesBtn {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
}

#yesBtn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(245, 87, 108, 0.4);
}

#noBtn {
    background: #e0e0e0;
    color: #666;
    position: relative;
}

#noBtn:hover {
    background: #d0d0d0;
}

.success-message {
    display: none;
    animation: fadeIn 1s ease-in;
}

.success-message h2 {
    color: #ffffff;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    font-size: 2em;
    margin: 20px 0;
}

.success-message p {
    color: #ffffff;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
    font-size: 1.3em;
    line-height: 1.8;
}

.celebration {
    font-size: 3em;
    margin: 20px 0;
}

@keyframes shake {
    0%,
    100% {
        transform: translateX(0);
    }
    10%,
    30%,
    50%,
    70%,
    90% {
        transform: translateX(-10px);
    }
    20%,
    40%,
    60%,
    80% {
        transform: translateX(10px);
    }
}

.shake {
    animation: shake 0.5s;
}

.music-toggle {
    position: fixed;
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.4);
    border-radius: 50%;
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 28px;
    transition: all 0.3s ease;
    z-index: 1000;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.music-toggle:hover {
    background: rgba(255, 255, 255, 0.5);
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.music-toggle:active {
    transform: scale(0.95);
}

.music-toggle::after,
.sound-button::after {
    content: attr(data-tooltip);
    position: absolute;
    top: 90px;
    background: white;
    color: #333;
    padding: 12px 16px;
    border-radius: 18px;
    font-size: 14px;
    white-space: nowrap;
    pointer-events: none;
    font-weight: 500;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    opacity: 1;
    animation: chatBubbleAppear 0.5s ease-out 1s both;
    z-index: 999;
}

.music-toggle::after {
    right: 0;
}

.sound-button::after {
    left: 0;
}

.music-toggle::before,
.sound-button::before {
    content: "";
    position: absolute;
    top: 75px;
    width: 0;
    height: 0;
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-bottom: 15px solid white;
    opacity: 1;
    animation: chatBubbleAppear 0.5s ease-out 1s both;
    z-index: 999;
}

.music-toggle::before {
    right: 20px;
}

.sound-button::before {
    left: 20px;
}

@keyframes chatBubbleAppear {
    0% {
        opacity: 0;
        transform: translateY(-10px) scale(0.9);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.music-toggle.clicked::after,
.music-toggle.clicked::before,
.sound-button.clicked::after,
.sound-button.clicked::before {
    animation: chatBubbleDisappear 0.3s ease-out forwards;
}

@keyframes chatBubbleDisappear {
    0% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
    100% {
        opacity: 0;
        transform: translateY(-10px) scale(0.9);
    }
}

.sound-button {
    position: fixed;
    top: 20px;
    left: 20px;
    background: rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.4);
    border-radius: 50%;
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 28px;
    transition: all 0.3s ease;
    z-index: 1000;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    padding: 0;
    overflow: visible;
}

.sound-button img {
    width: 80%;
    height: 80%;
    object-fit: cover;
    border-radius: 50%;
    clip-path: circle(50%);
}

.sound-button:hover {
    background: rgba(255, 255, 255, 0.5);
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.sound-button:active {
    transform: scale(0.95);
}

.sound-button.playing {
    animation: pulse 1s infinite;
}

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

.game-covers {
    display: flex;
    gap: 20px;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    margin: 20px 0;
}

.game-cover {
    width: 200px;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    cursor: pointer;
}

.game-cover:hover {
    transform: scale(1.05) rotate(2deg);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

@media (max-width: 600px) {
    .container {
        padding: 30px 20px;
    }

    h1 {
        font-size: 1.8em;
    }

    .message {
        font-size: 1em;
    }

    .buttons {
        flex-direction: column;
    }

    button {
        width: 100%;
    }

    .music-toggle {
        width: 50px;
        height: 50px;
        font-size: 24px;
        top: 15px;
        right: 15px;
    }

    .music-toggle::after,
    .sound-button::after {
        font-size: 12px;
        padding: 10px 14px;
        top: 70px;
    }

    .music-toggle::before,
    .sound-button::before {
        top: 58px;
        border-left: 8px solid transparent;
        border-right: 8px solid transparent;
        border-bottom: 12px solid white;
    }

    .music-toggle::before {
        right: 15px;
    }

    .sound-button::before {
        left: 15px;
    }

    .sound-button {
        width: 50px;
        height: 50px;
        font-size: 24px;
        top: 15px;
        left: 15px;
    }

    .game-covers {
        gap: 15px;
    }

    .game-cover {
        width: 150px;
    }
}
