* {
            box-sizing: border-box;
            -webkit-tap-highlight-color: transparent;
        }

        body {
            margin: 0;
            padding: 0;
            background: linear-gradient(to bottom, #fc45d4, #ecb4ee);
            height: 100vh;
            height: 100dvh;
            overflow: hidden;
            position: relative;
            font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
        }

        .emoji-container {
            position: relative;
            width: 100%;
            height: 100vh;
            height: 100dvh;
            overflow: hidden;
            pointer-events: none;
        }

        .emoji {
            position: absolute;
            bottom: -5vh;
            width: clamp(25px, 8vw, 45px);
            height: clamp(25px, 8vw, 45px);
            opacity: 0.7;
            animation: floatUp linear infinite;
            will-change: transform, opacity;
            object-fit: contain;
        }

        /* Оптимизированное распределение эмодзи */
        .emoji:nth-child(1) { left: 5%; width: clamp(30px, 10vw, 50px); height: auto; animation-duration: 9s; animation-delay: 0s; }
        .emoji:nth-child(2) { left: 15%; width: clamp(25px, 7vw, 40px); height: auto; animation-duration: 11s; animation-delay: 1s; }
        .emoji:nth-child(3) { left: 25%; width: clamp(28px, 8vw, 45px); height: auto; animation-duration: 8s; animation-delay: 2s; }
        .emoji:nth-child(4) { left: 35%; width: clamp(32px, 9vw, 50px); height: auto; animation-duration: 13s; animation-delay: 0.5s; }
        .emoji:nth-child(5) { left: 45%; width: clamp(22px, 6vw, 35px); height: auto; animation-duration: 10s; animation-delay: 3s; }
        .emoji:nth-child(6) { left: 55%; width: clamp(30px, 9vw, 48px); height: auto; animation-duration: 12s; animation-delay: 1.5s; }
        .emoji:nth-child(7) { left: 65%; width: clamp(26px, 7vw, 40px); height: auto; animation-duration: 9s; animation-delay: 2.5s; }
        .emoji:nth-child(8) { left: 75%; width: clamp(28px, 8vw, 45px); height: auto; animation-duration: 11s; animation-delay: 0.8s; }
        .emoji:nth-child(9) { left: 85%; width: clamp(24px, 7vw, 38px); height: auto; animation-duration: 10s; animation-delay: 4s; }
        .emoji:nth-child(10) { left: 95%; width: clamp(26px, 7vw, 42px); height: auto; animation-duration: 8.5s; animation-delay: 5s; }
        .emoji:nth-child(11) { left: 50%; width: clamp(28px, 8vw, 44px); height: auto; animation-duration: 14s; animation-delay: 2.2s; }

        @keyframes floatUp {
            0% {
                bottom: -5vh;
                transform: translateY(0) rotate(0deg);
                opacity: 0.8;
            }
            100% {
                bottom: 105vh;
                transform: translateY(0) rotate(360deg);
                opacity: 0.1;
            }
        }

        /* Адаптивные карточки */
        .card {
            width: min(350px, 85%);
            height: clamp(150px, 40vw, 200px);
            border-radius: clamp(20px, 6vw, 30px);
            position: absolute;
            top: 45%;
            left: 50%;
            transform: translate(-50%, -50%);
            background: #e49be4;
            box-shadow: 0 8px 25px rgba(237, 125, 252, 0.6);
            z-index: 0;
            transition: opacity 0.3s ease;
        }

        .card1 {
            width: min(350px, 85%);
            height: clamp(70px, 15vw, 100px);
            border-radius: clamp(20px, 6vw, 30px);
            position: absolute;
            top: 37%;
            left: 50%;
            transform: translate(-50%, -50%);
            background: #e49be4;
            box-shadow: 0 8px 25px rgba(237, 125, 252, 0.6);
            z-index: 0;
            transition: opacity 0.3s ease;
        }

        /* Главная кнопка */
        .button {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            padding: clamp(12px, 4vw, 18px) clamp(25px, 8vw, 40px);
            border: 0;
            position: absolute;
            top: 80%;
            left: 50%;
            transform: translate(-50%, -50%);
            border-radius: 10rem;
            font-weight: bold;
            cursor: pointer;
            color: rgb(37, 37, 37);
            z-index: 10;
            box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
            background: white;
            font-size: clamp(16px, 5vw, 20px);
            transition: transform 0.1s ease;
            -webkit-touch-callout: none;
            -webkit-user-select: none;
            user-select: none;
            border: 1px solid rgba(255, 255, 255, 0.5);
        }

        .button:active {
            transform: translate(-50%, -50%) scale(0.95);
        }

        .hoverEffect {
            position: absolute;
            bottom: 0;
            top: 0;
            left: 0;
            right: 0;
            display: flex;
            align-items: center;
            justify-content: center;
            z-index: 0;
            pointer-events: none;
        }

        .hoverEffect div {
            background: linear-gradient(90deg, #ff00ff, #d731dd, #ec18e2);
            border-radius: 50%;
            width: 8rem;
            height: 8rem;
            filter: blur(25px);
            animation: effect 4s linear infinite;
            opacity: 0.6;
        }

        @keyframes effect {
            0% { transform: rotate(0deg); }
            100% { transform: rotate(360deg); }
        }

        .emoj {
            position: absolute;
            top: 45%;
            left: 50%;
            transform: translate(-50%, -50%);
            z-index: 2;
            transition: opacity 0.3s ease;
            width: clamp(35px, 10vw, 50px);
            height: auto;
        }
        
        .emoj img {
            width: 100%;
            height: auto;
        }

        .oi {
            position: absolute;
            top: 67%;
            left: 50%;
            transform: translate(-50%, -50%);
            font-size: clamp(16px, 5vw, 22px);
            color: rgb(171, 55, 175);
            z-index: 5;
            transition: opacity 0.3s ease;
            text-align: center;
            width: 90%;
            font-weight: 600;
            text-shadow: 1px 1px 3px rgba(255, 255, 255, 0.5);
        }

        /* Изображение с поздравлением */
        .congrats-image {
            position: fixed;
            top: 35%;
            left: 50%;
            transform: translate(-50%, -50%) scale(0);
            width: min(280px, 80%);
            height: auto;
            aspect-ratio: 1 / 1;
            object-fit: cover;
            border-radius: 20px;
            box-shadow: 0 0 40px rgba(237, 40, 255, 0.8);
            z-index: 100;
            transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
        }

        .congrats-image.show {
            transform: translate(-50%, -50%) scale(1);
        }

        /* Контейнер с текстом и кнопками */
        .love-text {
            position: fixed;
            top: 65%;
            left: 50%;
            transform: translate(-50%, -50%) scale(0);
            color: white;
            font-size: clamp(18px, 6vw, 24px);
            font-weight: bold;
            text-shadow: 0 0 15px #ff4d9a;
            z-index: 101;
            transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
            background: rgba(255, 75, 160, 0.4);
            padding: 15px 20px;
            border-radius: 40px;
            backdrop-filter: blur(8px);
            border: 2px solid rgba(255, 255, 255, 0.6);
            letter-spacing: 1px;
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 15px;
            width: 90%;
            max-width: 400px;
            text-align: center;
            box-sizing: border-box;
        }

        .love-text.show {
            transform: translate(-50%, -50%) scale(1);
        }

        /* Контейнер кнопок */
        #buttonContainer {
            display: flex;
            gap: 15px;
            justify-content: center;
            flex-wrap: wrap;
            width: 100%;
        }

        /* Кнопки внутри love-text */
        .but, .but1, .again-btn {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            padding: 12px 18px;
            border: 0;
            border-radius: 10rem;
            font-weight: bold;
            cursor: pointer;
            color: rgb(37, 37, 37);
            box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
            font-size: clamp(14px, 4vw, 18px);
            white-space: normal;
            word-break: break-word;
            background: white;
            transition: transform 0.1s ease;
            flex: 0 1 auto;
            min-width: 120px;
            border: 1px solid rgba(255, 255, 255, 0.5);
            position: relative;
        }

        .but:active, .but1:active, .again-btn:active {
            transform: scale(0.95);
        }

        .again-btn {
            background: #fff0f5;
            min-width: 150px;
        }

        /* Скрытие элементов */
        .hidden {
            opacity: 0 !important;
            pointer-events: none !important;
            visibility: hidden !important;
        }

        .removed {
            display: none !important;
        }

        /* Аудио плеер */
        audio {
            position: fixed;
            bottom: 10px;
            right: 10px;
            width: min(200px, 50%);
            height: 40px;
            z-index: 200;
            opacity: 0.9;
            border-radius: 20px;
        }

        /* Для очень маленьких экранов */
        @media (max-width: 380px) {
            .but, .but1 {
                min-width: 100px;
                padding: 10px 12px;
                font-size: 13px;
            }
            
            .love-text {
                padding: 12px 15px;
            }
        }