* {
    box-sizing: border-box;
}

:root {
    --purple: #a855f7;
    --pink: #f0abfc;
    --dark: #10091f;
    --text: #f8edff;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: "Segoe UI", Arial, sans-serif;
    color: var(--text);
    background:
        radial-gradient(ellipse at 50% 0%, #542080 0%, transparent 50%),
        linear-gradient(145deg, #10091f, #1b1034 55%, #090613);
    overflow-x: hidden;
}

.container {
    position: relative;
    z-index: 1;
    width: min(680px, 92%);
    margin: 0 auto;
    padding: 65px 0 30px;
    text-align: center;
}

.badge {
    display: inline-block;
    padding: 10px 17px;
    border: 1px solid #c084fc80;
    border-radius: 30px;
    background: #a855f720;
    color: #e9d5ff;
    font-size: 12px;
    letter-spacing: 2px;
    box-shadow: 0 0 20px #a855f730;
}

.main-heart {
    margin: 25px 0 5px;
    font-size: 76px;
    filter: drop-shadow(0 0 18px #e879f9);
    animation: heartbeat 2s infinite ease-in-out;
}

h1 {
    margin: 10px 0;
    font-size: clamp(44px, 10vw, 76px);
    background: linear-gradient(90deg, #f0abfc, #c4b5fd, #e879f9);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    filter: drop-shadow(0 0 22px #c084fc55);
}

.subtitle {
    margin-bottom: 35px;
    color: #d8c6ed;
    font-size: 18px;
    line-height: 1.8;
}

.card {
    margin: 22px 0;
    padding: 25px;
    text-align: left;
    border: 1px solid #c084fc55;
    border-radius: 22px;
    background: linear-gradient(135deg, #ffffff0c, #a855f711);
    box-shadow:
        0 0 25px #8b5cf620,
        inset 0 0 25px #a855f708;
    backdrop-filter: blur(8px);
    transition: transform 0.3s, box-shadow 0.3s;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 0 32px #a855f745;
}

.card h2 {
    margin-top: 0;
    color: #e9b8ff;
    font-size: 21px;
}

.card p {
    color: #e8dcf7;
    line-height: 1.8;
}

.card strong {
    color: #f0abfc;
}

.warning {
    margin-top: 20px;
    padding: 13px;
    border-radius: 12px;
    background: #f0abfc12;
    color: #f5c9ff;
    font-size: 14px;
    text-align: center;
}

.message-card {
    line-height: 1.8;
}

details {
    margin-top: 22px;
}

summary {
    cursor: pointer;
    padding: 14px;
    border: 1px solid #c084fc80;
    border-radius: 12px;
    background: linear-gradient(90deg, #7c3aed55, #db277755);
    color: white;
    font-weight: bold;
    text-align: center;
    transition: 0.3s;
}

summary:hover {
    background: linear-gradient(90deg, #9333ea, #c026d3);
    box-shadow: 0 0 22px #d946ef66;
}

.secret {
    margin-top: 15px;
    padding: 20px;
    border-radius: 14px;
    background: #a855f718;
    border: 1px dashed #d8b4fe;
    color: #f3d8ff;
    text-align: center;
    animation: appear 0.4s ease-out;
}

footer {
    margin-top: 40px;
    color: #d8b4fe;
    font-size: 14px;
    line-height: 2;
}

footer span {
    color: #8e7ba8;
    font-size: 12px;
}

.stars span {
    position: fixed;
    z-index: 0;
    bottom: -50px;
    color: #e9b8ff;
    font-size: 25px;
    opacity: 0;
    pointer-events: none;
    animation: float-up 12s linear infinite;
}

.stars span:nth-child(1) {
    left: 8%;
    animation-delay: 0s;
}

.stars span:nth-child(2) {
    left: 23%;
    animation-delay: 3s;
}

.stars span:nth-child(3) {
    left: 39%;
    animation-delay: 6s;
}

.stars span:nth-child(4) {
    left: 57%;
    animation-delay: 1s;
}

.stars span:nth-child(5) {
    left: 72%;
    animation-delay: 5s;
}

.stars span:nth-child(6) {
    left: 88%;
    animation-delay: 2s;
}

.stars span:nth-child(7) {
    left: 49%;
    animation-delay: 8s;
}

.stars span:nth-child(8) {
    left: 95%;
    animation-delay: 9s;
}

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

@keyframes float-up {
    0% {
        transform: translateY(0) rotate(0deg);
        opacity: 0;
    }
    15% {opacity: 0.8;
    }
    85% {
        opacity: 0.6;
    }
    100% {
        transform: translateY(-110vh) rotate(280deg);
        opacity: 0;
    }
}

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

@media (max-width: 480px) {
    .container {
        padding-top: 40px;
    }

    .card {
        padding: 19px;
    }

    .subtitle {
        font-size: 16px;
    }

    .card h2 {
        font-size: 19px;
    }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
    }
}