body {
    margin: 0;
    height: 100vh;
    background: #1c1c1c; /* Тёмный фон */
    display: flex;
    justify-content: center;
    align-items: center;
    font-family: 'Segoe UI Emoji', 'Noto Color Emoji', 'Apple Color Emoji', 'Segoe UI', sans-serif;
    color: #f5f5f5;
    overflow: hidden;
}

/* ?? Шарики */
.balloons {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
}

.balloon {
    position: absolute;
    bottom: -150px;
    width: 80px;
    height: 100px;
    border-radius: 50% 50% 45% 55% / 55% 55% 45% 45%;
    opacity: 0.85;
    animation: floatUp 10s infinite;
}

/* Ниточка (без анимации) */
.balloon::after {
    content: "";
    position: absolute;
    bottom: -80px;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 80px;
    background: white;
    opacity: 0.7;
}

/* Цвета шариков */
.balloon:nth-child(1) { left: 20%; background: #007bff; animation-duration: 12s; }
.balloon:nth-child(2) { left: 40%; background: #00c9a7; animation-duration: 10s; }
.balloon:nth-child(3) { left: 60%; background: #ff6f91; animation-duration: 14s; }
.balloon:nth-child(4) { left: 75%; background: #f9d423; animation-duration: 11s; }
.balloon:nth-child(5) { left: 90%; background: #c471ed; animation-duration: 13s; }

/* Полёт вверх */
@keyframes floatUp {
    0% { transform: translateY(0) rotate(0deg); opacity: 0.85; }
    50% { transform: translateY(-50vh) rotate(20deg); opacity: 1; }
    100% { transform: translateY(-110vh) rotate(-20deg); opacity: 0; }
}

/* ?? Центральный блок */
.container {
    position: relative;
    z-index: 1;
    text-align: center;
    background: #2a2a2a;
    padding: 40px 60px;
    border-radius: 20px;
    box-shadow: 0 6px 25px rgba(0,0,0,0.6);
    animation: fadeIn 1.5s ease-in-out;
}

/* Логотип */
.logo {
    width: 200px;
    margin-bottom: 20px;
    filter: drop-shadow(0 0 8px rgba(255,255,255,0.4));
    animation: fadeIn 2s ease-in-out;
}

/* Заголовок */
h1 {
    font-size: 2.8em;
    margin-bottom: 20px;
    color: #ff6f91; /* акцент */
    text-shadow: 0 0 12px rgba(255, 111, 145, 0.7);
}

/* Подзаголовок */
.subtitle {
    font-size: 1.3em;
    margin-bottom: 30px;
    color: #dcdcdc;
}

/* Кнопка */
button {
    font-size: 1.2em;
    padding: 12px 25px;
    border: none;
    border-radius: 10px;
    background: linear-gradient(90deg, #007bff, #00c9a7);
    color: white;
    cursor: pointer;
    box-shadow: 0 0 15px rgba(0, 201, 167, 0.5);
    transition: all 0.3s ease-in-out;
}

button:hover {
    background: linear-gradient(90deg, #00c9a7, #007bff);
    box-shadow: 0 0 20px rgba(0, 201, 167, 0.8);
}

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

/* ?? Конфетти */
.confetti {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    overflow: hidden;
    z-index: 2;
    pointer-events: none;
}

.confetti-piece {
    position: absolute;
    width: 10px;
    height: 20px;
    opacity: 0.9;
    animation: fall linear forwards;
}

/* Неоновые цвета конфетти */
.confetti-piece:nth-child(5n)   { background: #007bff; }
.confetti-piece:nth-child(5n+1) { background: #00c9a7; }
.confetti-piece:nth-child(5n+2) { background: #ff6f91; }
.confetti-piece:nth-child(5n+3) { background: #f9d423; }
.confetti-piece:nth-child(5n+4) { background: #c471ed; }

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

@media (max-width: 768px) {
    .container {
        width: 90%;
        padding: 20px;
    }

    h1 {
        font-size: 1.6em;
        line-height: 1.3em;
        word-wrap: break-word;
    }

    .subtitle {
        font-size: 0.9em;
    }

    button {
        width: 100%; /* кнопка на всю ширину */
        font-size: 1em;
        padding: 12px;
    }

    /* шарики меньше и медленнее поднимаются */
    .balloon {
        width: 40px;
        height: 55px;
        animation-duration: 15s;
    }

    .balloon::after {
        height: 40px;
    }
}

@media (max-width: 480px) {
    .logo {
        width: 120px;
    }

    h1 {
        font-size: 1.5em;
    }

    .subtitle {
        font-size: 0.9em;
    }

    button {
        font-size: 0.9em;
        padding: 8px 16px;
    }

    .balloon {
        width: 40px;
        height: 60px;
    }

    .balloon::after {
        height: 40px;
    }
}
