.splv-page {
    min-height: 100vh;
    margin: 0;
    display: flex;
    justify-content: center;
    background:
        radial-gradient(circle at 50% 72%, rgba(255, 255, 255, 0.95) 0 9%, transparent 10%),
        radial-gradient(circle at 50% 45%, rgba(255, 245, 150, 0.9) 0 14%, transparent 35%),
        linear-gradient(160deg, #fff8e8 0%, #fffdf5 24%, #ffb037 57%, #fff233 100%);
    color: #8c1208;
    font-family: Arial, Helvetica, sans-serif;
}

.splv-panel {
    width: min(100%, 460px);
    min-height: 100vh;
    display: grid;
    grid-template-rows: auto minmax(520px, 1fr);
    padding: 34px 20px 32px;
    box-sizing: border-box;
    overflow: hidden;
    position: relative;
}

.splv-panel::before {
    content: "";
    position: absolute;
    inset: 100px -120px 135px;
    background: repeating-conic-gradient(from 0deg, rgba(255, 255, 255, 0.6) 0 4deg, rgba(255, 212, 30, 0) 4deg 10deg);
    opacity: 0.72;
    pointer-events: none;
}

.splv-copy,
.splv-form,
.splv-visual {
    position: relative;
    z-index: 1;
}

.splv-headline {
    margin: 0;
    text-align: center;
    text-transform: uppercase;
    font-size: clamp(34px, 9vw, 52px);
    line-height: 0.95;
    letter-spacing: 0;
    color: #ffed22;
    -webkit-text-stroke: 2px #d71f12;
    text-shadow: 0 4px 0 #9e1008, 0 8px 18px rgba(112, 32, 0, 0.18);
}

.splv-headline p,
.splv-headline h1,
.splv-headline h2,
.splv-headline h3 {
    margin: 0;
    font: inherit;
    line-height: inherit;
    color: inherit;
    text-transform: inherit;
}

.splv-effect-blink .splv-headline {
    animation: splv-title-blink 0.92s ease-in-out infinite;
}

.splv-effect-glow .splv-headline {
    animation: splv-title-glow 1.35s ease-in-out infinite;
}

.splv-effect-rainbow .splv-headline {
    animation: splv-title-rainbow 1.6s linear infinite;
}

.splv-visual {
    align-self: stretch;
    min-height: 330px;
    background-image: var(--splv-image);
    background-repeat: no-repeat;
    background-position: center bottom;
    background-size: contain;
}

.splv-page:not(.splv-has-image) .splv-visual::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 18px;
    width: min(72vw, 300px);
    aspect-ratio: 1;
    transform: translateX(-50%) rotate(-9deg);
    border-radius: 48% 52% 50% 50%;
    background:
        radial-gradient(circle at 48% 34%, #fff 0 7%, transparent 8%),
        linear-gradient(135deg, #e5251b 0 42%, #ffd833 43% 62%, #151515 63% 100%);
    box-shadow: 0 24px 52px rgba(168, 74, 0, 0.35);
}

.splv-form {
    position: absolute;
    left: 20px;
    right: 20px;
    top: 50%;
    z-index: 2;
    transform: translateY(-50%);
    display: grid;
    gap: 14px;
    padding: 16px;
    border: 2px solid rgba(255, 255, 255, 0.82);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.68);
    box-shadow: 0 10px 28px rgba(131, 50, 0, 0.2);
    backdrop-filter: blur(8px);
}

.splv-form label {
    color: #8c1208;
    font-size: 20px;
    font-weight: 800;
    text-align: center;
}

.splv-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
}

.splv-row input {
    min-width: 0;
    height: 54px;
    border: 2px solid #ff9f18;
    border-radius: 8px;
    padding: 0 14px;
    background: #fff;
    color: #2f1600;
    font-size: 24px;
    font-weight: 800;
    text-align: center;
    box-sizing: border-box;
}

.splv-row button {
    min-height: 54px;
    border: 0;
    border-radius: 8px;
    padding: 0 18px;
    background: linear-gradient(180deg, #ffec39 0%, #ff941f 42%, #ed1d13 100%);
    color: #fff;
    cursor: pointer;
    font-size: 18px;
    font-weight: 900;
    text-transform: uppercase;
    text-shadow: 0 2px 0 rgba(130, 0, 0, 0.55);
    box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.65), 0 5px 0 #a60f08;
    transform-origin: center;
    animation: splv-button-pulse 0.9s ease-in-out infinite;
}

.splv-row button:hover,
.splv-row button:focus {
    filter: brightness(1.05);
}

.splv-error {
    margin: 0;
    color: #b00020;
    font-weight: 700;
    text-align: center;
}

@keyframes splv-title-blink {
    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.48;
        transform: scale(1.03);
    }
}

@keyframes splv-title-glow {
    0%,
    100% {
        filter: brightness(1);
        text-shadow: 0 4px 0 #9e1008, 0 8px 18px rgba(112, 32, 0, 0.18);
    }

    50% {
        filter: brightness(1.22);
        text-shadow: 0 4px 0 #9e1008, 0 0 18px rgba(255, 255, 255, 0.95), 0 0 28px rgba(255, 255, 0, 0.86);
    }
}

@keyframes splv-title-rainbow {
    0% {
        color: #ffed22;
    }

    33% {
        color: #ffffff;
    }

    66% {
        color: #ff7930;
    }

    100% {
        color: #ffed22;
    }
}

@keyframes splv-button-pulse {
    0%,
    100% {
        transform: scale(1);
        filter: brightness(1);
    }

    50% {
        transform: scale(1.07);
        filter: brightness(1.15);
    }
}

@media (prefers-reduced-motion: reduce) {
    .splv-headline,
    .splv-row button {
        animation: none;
    }
}

@media (max-width: 380px) {
    .splv-panel {
        padding-inline: 14px;
    }

    .splv-form {
        left: 14px;
        right: 14px;
    }

    .splv-row {
        grid-template-columns: 1fr;
    }

    .splv-row button {
        width: 100%;
    }
}
