* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --ink-deep: #0a0312;
    --ink: #0a0312;
    --mid: #2d1457;
    --glow: #5a2d91;
    --gold: #d4af37;
    --gold-shadow: #a67c00;
    --ruby: #c41e3a;
    --cream: #f4efff;
    --muted: #c9b7e6;
    --border: rgba(90, 45, 145, 0.4);
    --container-pad: clamp(16px, 3vw, 32px);
    --container-top: clamp(88px, 16vw, 140px);
    --section-gap: clamp(20px, 4vw, 56px);
    --card-pad: clamp(28px, 4vw, 60px);
    --logo-x: 0px;
    --logo-y: 0px;
    --logo-scale: 1.5;
    --form-z: 2;
}

@keyframes shadowGlow {
    0% {
        text-shadow: 
            2px 2px 0px rgba(0, 0, 0, 0.9),
            4px 4px 0px rgba(0, 0, 0, 0.5),
            1px 1px 3px rgba(212, 175, 55, 0.2),
            -1px -1px 3px rgba(212, 175, 55, 0.1);
    }
    50% {
        text-shadow: 
            3px 3px 0px rgba(0, 0, 0, 0.9),
            6px 6px 0px rgba(0, 0, 0, 0.6),
            2px 2px 6px rgba(212, 175, 55, 0.5),
            -2px -2px 6px rgba(212, 175, 55, 0.3);
    }
    100% {
        text-shadow: 
            2px 2px 0px rgba(0, 0, 0, 0.9),
            4px 4px 0px rgba(0, 0, 0, 0.5),
            1px 1px 3px rgba(212, 175, 55, 0.2),
            -1px -1px 3px rgba(212, 175, 55, 0.1);
    }
}

body {
    font-family: 'Arial', sans-serif;
    background:
        radial-gradient(circle at 55% 25%, rgba(90, 45, 145, 0.4) 0%, rgba(45, 20, 87, 0.5) 28%, rgba(0, 0, 0, 1) 72%),
        radial-gradient(circle at 15% 85%, rgba(196, 30, 58, 0.16), transparent 45%);
    background-color: #000000;
    color: var(--cream);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.35);
    z-index: -1;
}

.logo-header {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    width: fit-content;
    margin: 0 auto;
    padding: clamp(12px, 2.5vw, 24px) clamp(16px, 4vw, 48px);
    z-index: 1000;
}

.logo-text {
    font-size: 64px;
    font-weight: 900;
    letter-spacing: 3px;
    color: var(--gold);
    font-family: 'Courier New', monospace;
    font-weight: bold;
    text-transform: uppercase;
    transform: skewX(-5deg);
    animation: shadowGlow 3s ease-in-out infinite;
    filter: drop-shadow(8px 8px 0px rgba(0, 0, 0, 0.7)) drop-shadow(4px 4px 8px rgba(0, 0, 0, 0.5));
}

.logo-image {
    width: clamp(140px, 22vw, 280px);
    height: auto;
    max-width: 100%;
    display: block;
    transform: translate(var(--logo-x), var(--logo-y)) scale(var(--logo-scale));
    filter: drop-shadow(0 8px 20px rgba(0, 0, 0, 0.55));
}

.container {
    width: 100%;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--container-pad);
    padding-top: var(--container-top);
    position: relative;
}

.container::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url('img/superslotz_hero_casino.png');
    background-repeat: no-repeat;
    background-position: center top;
    background-size: clamp(539px, 172.8vw, 1001px) auto;
    -webkit-mask-image: linear-gradient(to right, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.2) 10%, rgba(0, 0, 0, 0.7) 22%, rgba(0, 0, 0, 1) 35%, rgba(0, 0, 0, 1) 65%, rgba(0, 0, 0, 0.7) 78%, rgba(0, 0, 0, 0.2) 90%, rgba(0, 0, 0, 0) 100%);
    mask-image: linear-gradient(to right, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.2) 10%, rgba(0, 0, 0, 0.7) 22%, rgba(0, 0, 0, 1) 35%, rgba(0, 0, 0, 1) 65%, rgba(0, 0, 0, 0.7) 78%, rgba(0, 0, 0, 0.2) 90%, rgba(0, 0, 0, 0) 100%);
    z-index: 0;
    pointer-events: none;
}

.form-card {
    background: linear-gradient(135deg, rgba(10, 3, 18, 0.9) 0%, rgba(45, 20, 87, 0.75) 100%);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.7);
    border: 3px solid rgba(212, 175, 55, 0.55);
    width: min(100%, 416px);
    padding: var(--card-pad);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    transform: none;
    z-index: 1;
    justify-self: center;
}

.content {
    max-width: 336px;
    width: 100%;
    margin: 0 auto;
}

.subtitle {
    color: var(--glow);
    font-size: clamp(12px, 1.4vw, 15px);
    font-weight: 700;
    letter-spacing: clamp(1px, 0.4vw, 3px);
    margin-bottom: clamp(10px, 2.2vw, 16px);
    text-transform: uppercase;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}

.title {
    font-size: clamp(20px, 2.2vw, 30px);
    font-weight: 900;
    line-height: 1.2;
    margin-bottom: 10px;
    color: var(--cream);
    white-space: nowrap;
}

.highlight {
    color: var(--gold);
    display: block;
    margin-top: 10px;
    font-size: clamp(20px, 2.4vw, 32px);
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.8);
    white-space: nowrap;
}

.description {
    font-size: clamp(12px, 1.3vw, 15px);
    color: var(--muted);
    margin-bottom: clamp(20px, 3vw, 32px);
}

.signup-form {
    display: flex;
    flex-direction: column;
    gap: clamp(12px, 2.2vw, 18px);
}

.input-field {
    width: 100%;
    margin-top: 20px;
    padding: clamp(12px, 2.2vw, 16px) clamp(14px, 3vw, 20px);
    background: rgba(10, 3, 18, 0.72);
    border: 2px solid rgba(90, 45, 145, 0.55);
    border-radius: 8px;
    color: var(--cream);
    font-size: clamp(12px, 1.3vw, 13px);
    transition: all 0.3s ease;
}

.input-field:focus {
    outline: none;
    border-color: var(--gold);
    background: rgba(10, 3, 18, 0.9);
}

.input-field::placeholder {
    color: rgba(244, 247, 255, 0.45);
}

.subscribe-btn {
    width: 100%;
    padding: clamp(14px, 2.4vw, 18px);
    background: linear-gradient(135deg, #f8e18a 0%, #d4af37 45%, #b8860b 100%);
    border: none;
    border-radius: 8px;
    color: var(--ink-deep);
    font-size: clamp(12px, 1.4vw, 14px);
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 10px 26px rgba(212, 175, 55, 0.45), 0 6px 18px rgba(180, 134, 11, 0.45);
    position: relative;
    overflow: hidden;
    isolation: isolate;
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.35);
}

.subscribe-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 34px rgba(212, 175, 55, 0.55), 0 12px 26px rgba(180, 134, 11, 0.55);
    background: linear-gradient(135deg, #ffec9e 0%, #d9b347 45%, #b8860b 100%);
}

.subscribe-btn::before {
    content: '';
    position: absolute;
    inset: -60% -40%;
    background:
        radial-gradient(circle at 35% 30%, rgba(255, 255, 255, 0.6), rgba(255, 255, 255, 0) 45%),
        radial-gradient(circle at 70% 60%, rgba(255, 255, 255, 0.35), rgba(255, 255, 255, 0) 50%);
    opacity: 0.7;
    transform: rotate(18deg);
    pointer-events: none;
}

.subscribe-btn::after {
    content: '';
    position: absolute;
    top: -120%;
    left: -60%;
    width: 60%;
    height: 320%;
    background: linear-gradient(120deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.75) 50%, rgba(255, 255, 255, 0) 100%);
    opacity: 0.35;
    transform: translateX(0);
    animation: goldShimmer 3.2s ease-in-out infinite;
    pointer-events: none;
}

@keyframes goldShimmer {
    0% {
        transform: translateX(-120%);
    }
    55% {
        transform: translateX(220%);
    }
    100% {
        transform: translateX(220%);
    }
}

.checkbox-container {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: clamp(10px, 1.1vw, 11px);
    color: var(--muted);
}

.checkbox-container input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.link {
    color: var(--gold);
    text-decoration: none;
    transition: color 0.3s ease;
}

.link:hover {
    color: var(--ruby);
}

.privacy-text,
.age-text {
    font-size: clamp(10px, 1.1vw, 11px);
    color: rgba(201, 183, 230, 0.9);
    text-align: center;
}

.privacy-text {
    margin-top: 10px;
}

.age-text {
    margin-top: 5px;
    font-weight: 600;
}

.background-panel {
    background: none;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: visible;
    flex: 0 0 auto;
    width: 100%;
    max-width: 760px;
    min-height: 0;
    z-index: var(--hero-z);
    margin: 0 auto;
}

.hero-image {
    position: relative;
    width: 100%;
    height: auto;
    display: flex;
    align-items: flex-start;
    justify-content: center;
}

.pirate-characters {
    width: min(90vw, 760px);
    height: auto;
    max-width: 100%;
    object-fit: contain;
    filter: drop-shadow(0 22px 45px rgba(10, 3, 18, 0.75));
    transform: scale(var(--hero-scale));
    transform-origin: top center;
    -webkit-mask-image:
        radial-gradient(circle at 40% 50%, rgba(0, 0, 0, 1) 55%, rgba(0, 0, 0, 0) 78%),
        linear-gradient(to right, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 1) 70%, rgba(0, 0, 0, 0) 100%),
        linear-gradient(to top, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 1) 35%, rgba(0, 0, 0, 1) 86%, rgba(0, 0, 0, 0) 100%);
    -webkit-mask-composite: source-in;
    mask-image:
        radial-gradient(circle at 40% 50%, rgba(0, 0, 0, 1) 55%, rgba(0, 0, 0, 0) 78%),
        linear-gradient(to right, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 1) 70%, rgba(0, 0, 0, 0) 100%),
        linear-gradient(to top, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 1) 35%, rgba(0, 0, 0, 1) 86%, rgba(0, 0, 0, 0) 100%);
    mask-composite: intersect;
}


.footer {
    background: linear-gradient(135deg, rgba(10, 3, 18, 0.95) 0%, rgba(45, 20, 87, 0.95) 100%);
    padding: 0;
    position: relative;
    border-top: 3px solid rgba(90, 45, 145, 0.35);
}

.toggle-footer {
    width: 100%;
    padding: 15px 20px;
    background: rgba(90, 45, 145, 0.2);
    border: none;
    color: var(--gold);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s ease;
}

.toggle-footer:hover {
    background: rgba(90, 45, 145, 0.3);
}

.arrow {
    font-size: 14px;
    transition: transform 0.3s ease;
}

.arrow.rotated {
    transform: rotate(180deg);
}

.footer-content {
    padding: clamp(18px, 3.2vw, 32px) clamp(20px, 4vw, 50px);
    max-height: 500px;
    overflow: hidden;
    transition: max-height 0.5s ease, padding 0.5s ease;
}

.footer-content.hidden {
    max-height: 0;
    padding: 0 50px;
}

.footer-header {
    font-size: clamp(12px, 1.5vw, 14px);
    font-weight: 600;
    margin-bottom: clamp(12px, 2.4vw, 20px);
    text-align: center;
    color: var(--cream);
}

.footer-text {
    font-size: clamp(11px, 1.4vw, 12px);
    line-height: 1.8;
    color: var(--muted);
    text-align: justify;
}

.footer-link {
    color: var(--gold);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-link:hover {
    color: var(--ruby);
}

.img-21 {
    width: 60px;
    height: auto;
    display: block;
    margin: 20px auto 0 auto;
}

.overlay-container {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 3, 18, 0.9);
    z-index: 9999;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(5px);
}

.overlay-container.visible {
    display: flex;
}

.popup {
    background: linear-gradient(135deg, rgba(10, 3, 18, 0.98) 0%, rgba(45, 20, 87, 0.98) 100%);
    padding: 50px 40px;
    border-radius: 20px;
    text-align: center;
    max-width: 500px;
    width: 90%;
    border: 3px solid rgba(90, 45, 145, 0.45);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.9);
    position: relative;
    animation: popupSlideIn 0.4s ease-out;
}

@keyframes popupSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.checkmark {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--gold) 0%, var(--gold-shadow) 100%);
    margin: 0 auto 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 20px rgba(255, 215, 0, 0.35);
    animation: checkmarkPulse 0.6s ease-out;
}

@keyframes checkmarkPulse {
    0% {
        transform: scale(0);
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
    }
}

.checkmark span {
    font-size: 48px;
    color: var(--ink-deep);
    font-weight: bold;
}

.popup .content h1 {
    font-size: 32px;
    color: var(--gold);
    margin-bottom: 15px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}

.popup .content p {
    font-size: 18px;
    color: var(--muted);
    margin-bottom: 30px;
    line-height: 1.6;
}

.popup .content .button {
    padding: 16px 40px;
    background: linear-gradient(135deg, var(--gold) 0%, var(--gold-shadow) 100%);
    border: none;
    border-radius: 8px;
    color: var(--ink-deep);
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.35);
    display: inline-block;
}

.popup .content .button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(255, 215, 0, 0.45);
    background: linear-gradient(135deg, var(--gold-shadow) 0%, var(--gold) 100%);
}

#bonusLink {
    display: none;
}

.thankyou-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 3, 18, 0.9);
    z-index: 9999;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(5px);
}

.thankyou-modal-content {
    background: linear-gradient(135deg, rgba(10, 3, 18, 0.98) 0%, rgba(45, 20, 87, 0.98) 100%);
    padding: 50px 40px;
    border-radius: 20px;
    text-align: center;
    max-width: 500px;
    width: 90%;
    border: 3px solid rgba(90, 45, 145, 0.45);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.9);
    position: relative;
}

.thankyou-modal-content h2 {
    font-size: 32px;
    color: var(--gold);
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}

.thankyou-modal-content p {
    font-size: 18px;
    color: var(--muted);
    margin-bottom: 30px;
    line-height: 1.6;
}

.thankyou-btn {
    padding: 16px 40px;
    background: linear-gradient(135deg, var(--gold) 0%, var(--gold-shadow) 100%);
    border: none;
    border-radius: 8px;
    color: var(--ink-deep);
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.35);
}

.thankyou-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(255, 215, 0, 0.45);
    background: linear-gradient(135deg, var(--gold-shadow) 0%, var(--gold) 100%);
}

@media (max-width: 767px) {
    :root {
        --logo-scale: 1.88;
    }

    .container {
        align-items: flex-start;
    }

    .title,
    .highlight {
        text-align: center;
    }

    .title {
        font-size: clamp(22px, 6vw, 28px);
    }

    .highlight {
        font-size: clamp(22px, 6.2vw, 30px);
        margin-top: 16px;
    }

    .form-card {
        transform: translateY(400px);
    }

}

@media (min-width: 768px) {
    .logo-header {
        left: 0;
        right: auto;
        margin: 0;
    }

    .container {
        padding-top: clamp(96px, 12vw, 140px);
    }

}

@media (min-width: 1024px) {
    .title,
    .highlight {
        text-align: center;
    }

    .title .highlight {
        width: 100%;
        text-align: center;
    }

    .form-card {
        justify-self: end;
        transform: translateX(350px) translateY(150px);
    }

}


@media (min-width: 1280px) {
    .container {
        padding-top: clamp(104px, 10vw, 160px);
    }
}
