/* =====================================================
   NERM 2026 RAFFLE MODAL / HOME RAFFLE SECTION
   File: /Content/nerm-raffle-modal.css
===================================================== */

.nerm-raffle-overlay {
    position: fixed;
    inset: 0;
    z-index: 999999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 30px;
    background:
        radial-gradient(circle at 68% 18%, rgba(23, 140, 232, .20), transparent 36%),
        radial-gradient(circle at 20% 80%, rgba(247, 185, 0, .10), transparent 34%),
        rgba(0, 0, 0, .82);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

.nerm-raffle-overlay.is-visible {
    display: flex;
}

.nerm-raffle-modal {
    position: relative;
    width: min(1080px, 90vw);
    min-height: auto;
    max-height: 84vh;
    overflow: hidden;
    color: #f6f7f8;
    background:
        linear-gradient(90deg,
            rgba(4, 7, 10, .98) 0%,
            rgba(4, 7, 10, .92) 34%,
            rgba(4, 7, 10, .50) 63%,
            rgba(4, 7, 10, .88) 100%);
    border: 1px solid rgba(247, 185, 0, .38);
    box-shadow:
        0 48px 120px rgba(0, 0, 0, .78),
        0 0 0 1px rgba(255, 255, 255, .045) inset,
        0 0 48px rgba(247, 185, 0, .14);
    isolation: isolate;
}

.nerm-raffle-modal::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -6;
    background-image:
        linear-gradient(90deg,
            rgba(4, 7, 10, .98) 0%,
            rgba(4, 7, 10, .88) 33%,
            rgba(4, 7, 10, .30) 63%,
            rgba(4, 7, 10, .82) 100%),
        linear-gradient(180deg,
            rgba(5, 8, 11, .10),
            rgba(5, 8, 11, .86)),
        url("../images/Raffle/hero-mountains.webp");
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    transform: scale(1.045);
    animation: nermRaffleBgMove 14s ease-in-out infinite alternate;
}

.nerm-raffle-modal::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -4;
    opacity: .22;
    pointer-events: none;
    background-image: url("../images/Raffle/asphalt-texture.webp");
    background-size: 720px auto;
    background-repeat: repeat;
    mix-blend-mode: overlay;
}

.nerm-raffle-grain {
    position: absolute;
    inset: 0;
    z-index: -3;
    pointer-events: none;
    opacity: .15;
    background-image:
        repeating-radial-gradient(
            circle at 20% 40%,
            rgba(255, 255, 255, .24) 0 1px,
            transparent 1px 4px
        );
    background-size: 7px 7px;
    mix-blend-mode: soft-light;
}

.nerm-raffle-frame {
    position: absolute;
    inset: 18px;
    z-index: 4;
    pointer-events: none;
    border: 1px solid rgba(255, 255, 255, .13);
}

.nerm-raffle-frame::before,
.nerm-raffle-frame::after {
    content: "";
    position: absolute;
    height: 2px;
    background: linear-gradient(90deg, #f7b900, transparent);
}

.nerm-raffle-frame::before {
    top: -1px;
    right: 26px;
    width: 116px;
}

.nerm-raffle-frame::after {
    bottom: -1px;
    left: 26px;
    width: 116px;
}

.nerm-raffle-stripes {
    position: absolute;
    top: 26px;
    right: 74px;
    z-index: 7;
    width: 58px;
    height: 14px;
    background:
        repeating-linear-gradient(
            110deg,
            #f7b900 0 10px,
            transparent 10px 18px
        );
    opacity: .95;
}

.nerm-raffle-close {
    position: absolute;
    top: 22px;
    right: 22px;
    z-index: 30;
    display: grid;
    width: 40px;
    height: 40px;
    place-items: center;
    color: #fff;
    background: rgba(255, 255, 255, .065);
    border: 1px solid rgba(255, 255, 255, .25);
    border-radius: 50%;
    font-size: 18px;
    cursor: pointer;
    transition: .25s ease;
}

.nerm-raffle-close:hover {
    color: #070b0f;
    background: #f7b900;
    border-color: #f7b900;
    transform: rotate(90deg);
}

.nerm-raffle-grid {
    position: relative;
    z-index: 10;
    display: grid;
    grid-template-columns: minmax(360px, .95fr) minmax(420px, 1.05fr);
    min-height: auto;
    gap: 10px;
    align-items: center;
    padding: 44px 54px 72px;
}

.nerm-raffle-copy {
    position: relative;
    z-index: 16;
    max-width: 560px;
}

.nerm-raffle-logo {
    width: 72px;
    margin-bottom: 16px;
    filter: drop-shadow(0 16px 25px rgba(0, 0, 0, .62));
}

.nerm-raffle-eyebrow {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 13px;
    color: rgba(255, 255, 255, .86);
    font-family: "Barlow Condensed", sans-serif;
    font-size: 17px;
    font-weight: 700;
    letter-spacing: .26em;
    text-transform: uppercase;
}

.nerm-raffle-eyebrow::before {
    content: "";
    width: 10px;
    height: 10px;
    flex: 0 0 10px;
    border-radius: 50%;
    background: #f7b900;
    box-shadow:
        0 0 0 7px rgba(247, 185, 0, .12),
        0 0 25px rgba(247, 185, 0, .85);
}

.nerm-raffle-title {
    margin: 0;
    font-family: "Anton", sans-serif;
    font-weight: 400;
    line-height: .88;
    letter-spacing: -.02em;
    text-transform: uppercase;
}

.nerm-raffle-title span {
    display: block;
}

.nerm-raffle-title .raffle-white {
    color: #f3f4f5;
    font-size: clamp(48px, 4.8vw, 78px);
    text-shadow:
        0 4px 0 rgba(0, 0, 0, .28),
        0 18px 34px rgba(0, 0, 0, .45);
}

.nerm-raffle-title .raffle-yellow {
    color: #f7b900;
    font-size: clamp(46px, 4.5vw, 74px);
    background: linear-gradient(180deg, #ffe15b, #f2aa00 76%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 12px 22px rgba(0, 0, 0, .40));
}

.nerm-raffle-desc {
    position: relative;
    max-width: 500px;
    margin: 18px 0 18px;
    padding-left: 18px;
    color: rgba(255, 255, 255, .84);
    font-family: "Inter", sans-serif;
    font-size: 15px;
    line-height: 1.5;
}

.nerm-raffle-desc::before {
    content: "";
    position: absolute;
    top: 4px;
    left: 0;
    width: 3px;
    height: calc(100% - 8px);
    background: #f7b900;
    box-shadow: 0 0 18px rgba(247, 185, 0, .42);
}

.nerm-raffle-pill {
    display: inline-flex;
    align-items: center;
    gap: 18px;
    max-width: 100%;
    padding: 12px 18px;
    margin-bottom: 15px;
    color: #f6f7f8;
    background:
        linear-gradient(90deg,
            rgba(247, 185, 0, .16),
            rgba(255, 255, 255, .05));
    border: 1px solid rgba(247, 185, 0, .46);
    box-shadow:
        0 0 26px rgba(247, 185, 0, .08),
        inset 0 0 0 1px rgba(255, 255, 255, .05);
    font-family: "Barlow Condensed", sans-serif;
    font-size: 18px;
    font-weight: 800;
    letter-spacing: .05em;
    text-transform: uppercase;
}

.nerm-raffle-pill i {
    color: #f7b900;
    font-size: 22px;
}

.nerm-raffle-pill strong {
    color: #f7b900;
}

.nerm-raffle-note {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    color: rgba(255, 255, 255, .68);
    font-family: "Inter", sans-serif;
    font-size: 13px;
}

.nerm-raffle-note i {
    color: #f7b900;
    font-size: 20px;
}

/* RIGHT SIDE BIKE STAGE */
.nerm-raffle-bike-stage {
    position: relative;
    z-index: 14;
    height: 470px;
    align-self: end;
    overflow: hidden;
    pointer-events: none;
}

/* BIKE GLOW */
.nerm-raffle-bike-glow {
    position: absolute;
    left: 54%;
    bottom: 42px;
    width: 62%;
    height: 42%;
    transform: translateX(-50%);
    border-radius: 50%;
    background:
        radial-gradient(
            ellipse at center,
            rgba(23, 140, 232, .24) 0%,
            rgba(23, 140, 232, .10) 45%,
            transparent 78%
        );
    filter: blur(68px);
    opacity: .92;
    z-index: 1;
}

/* BIKE DUST */
.nerm-raffle-bike-dust {
    position: absolute;
    left: 54%;
    bottom: 0;
    width: 72%;
    height: 22%;
    transform: translateX(-50%);
    background:
        radial-gradient(
            ellipse at center,
            rgba(247, 185, 0, .25),
            rgba(105, 82, 52, .23) 42%,
            transparent 70%
        );
    filter: blur(15px);
    opacity: .88;
    z-index: 2;
}

/* BIKE IMAGE - DESKTOP LOWERED TO BASE */
.nerm-raffle-bike {
    position: absolute;
    left: 55%;
    bottom: -8px;
    width: min(600px, 46vw);
    max-width: 100%;
    height: auto;
    transform: translateX(-50%);
    filter:
        drop-shadow(0 34px 24px rgba(0, 0, 0, .52))
        drop-shadow(0 7px 5px rgba(0, 0, 0, .30));
    animation: nermRaffleBikeFloat 5.8s ease-in-out infinite;
    z-index: 3;
}

/* BOTTOM TAG */
.nerm-raffle-bottom-tag {
    position: absolute;
    left: 54px;
    right: 54px;
    bottom: 34px;
    z-index: 13;
    display: flex;
    align-items: center;
    gap: 15px;
    color: rgba(255, 207, 114, .86);
    font-family: "Barlow Condensed", sans-serif;
    font-size: 13px;
    letter-spacing: .28em;
    text-transform: uppercase;
}

.nerm-raffle-bottom-tag::before {
    content: "";
    width: 66px;
    height: 18px;
    opacity: .55;
    background:
        linear-gradient(135deg, transparent 44%, rgba(255, 207, 114, .80) 45% 49%, transparent 50%),
        linear-gradient(45deg, transparent 44%, rgba(255, 207, 114, .80) 45% 49%, transparent 50%);
}

/* =====================================================
   HOME PAGE INLINE RAFFLE SECTION OVERRIDES
===================================================== */

.home-raffle-section {
    position: relative;
    padding: 35px 0;
    background:
        radial-gradient(circle at 15% 20%, rgba(255,106,0,0.07), transparent 22%),
        radial-gradient(circle at 85% 25%, rgba(255,61,46,0.06), transparent 20%),
        linear-gradient(180deg, #0c0c10 0%, #131319 100%);
    overflow: hidden;
}

.home-raffle-section .nerm-raffle-modal {
    width: 100%;
    max-width: 100%;
    max-height: none;
    margin: 0;
    position: relative;
    transform: none;
}

.home-raffle-section .nerm-raffle-close {
    display: none;
}

/* =====================================================
   ANIMATIONS
===================================================== */

@keyframes nermRaffleBgMove {
    from {
        transform: scale(1.045) translateX(0);
    }

    to {
        transform: scale(1.09) translateX(-18px);
    }
}

@keyframes nermRaffleBikeFloat {
    0%,
    100% {
        transform: translateX(-50%) translateY(0) rotate(-.2deg);
    }

    50% {
        transform: translateX(-50%) translateY(-7px) rotate(.25deg);
    }
}

/* =====================================================
   TABLET
===================================================== */

@media (max-width: 1050px) {
    .nerm-raffle-modal {
        width: min(760px, 92vw);
        max-height: 88vh;
        overflow-y: auto;
    }

    .home-raffle-section .nerm-raffle-modal {
        width: 100%;
        max-height: none;
        overflow: hidden;
    }

    .nerm-raffle-grid {
        grid-template-columns: 1fr;
        padding: 34px 30px 64px;
    }

    .nerm-raffle-copy {
        max-width: none;
    }

    .nerm-raffle-bike-stage {
        order: -1;
        height: 330px;
        margin-top: 8px;
        margin-bottom: 8px;
    }

    .nerm-raffle-bike {
        left: 50%;
        bottom: -6px;
        width: min(440px, 76vw);
    }

    .nerm-raffle-bike-glow {
        left: 50%;
        bottom: 36px;
        width: 60%;
        height: 36%;
    }

    .nerm-raffle-bike-dust {
        left: 50%;
        bottom: 0;
        width: 72%;
    }

    .nerm-raffle-bottom-tag {
        left: 30px;
        right: 30px;
        bottom: 26px;
        font-size: 12px;
        letter-spacing: .20em;
    }

    .nerm-raffle-stripes {
        display: none;
    }
}

/* =====================================================
   MOBILE
===================================================== */

@media (max-width: 620px) {
    .nerm-raffle-overlay {
        padding: 14px;
    }

    .nerm-raffle-modal {
        width: 94vw;
        max-height: 88vh;
        overflow-y: auto;
    }

    .home-raffle-section {
        padding: 22px 0;
    }

    .home-raffle-section .nerm-raffle-modal {
        width: 100%;
        max-height: none;
        overflow: hidden;
    }

    .nerm-raffle-frame {
        inset: 14px;
    }

    .nerm-raffle-close {
        top: 18px;
        right: 18px;
        width: 38px;
        height: 38px;
        font-size: 16px;
    }

    .nerm-raffle-grid {
        padding: 24px 20px 58px;
        gap: 0;
    }

    .nerm-raffle-bike-stage {
        height: 310px;
        margin-top: 4px;
        margin-bottom: 4px;
        overflow: hidden;
    }

    .nerm-raffle-bike {
        left: 50%;
        bottom: -10px;
        width: min(330px, 78vw);
    }

    .nerm-raffle-bike-glow {
        left: 50%;
        bottom: 34px;
        width: 66%;
        height: 34%;
    }

    .nerm-raffle-bike-dust {
        left: 50%;
        bottom: 0;
        width: 78%;
    }

    .nerm-raffle-logo {
        width: 66px;
        margin-bottom: 14px;
    }

    .nerm-raffle-eyebrow {
        gap: 10px;
        font-size: 13px;
        letter-spacing: .20em;
    }

    .nerm-raffle-title .raffle-white {
        font-size: clamp(38px, 13vw, 54px);
    }

    .nerm-raffle-title .raffle-yellow {
        font-size: clamp(36px, 12vw, 50px);
    }

    .nerm-raffle-desc {
        font-size: 13px;
        line-height: 1.45;
        margin-top: 16px;
    }

    .nerm-raffle-pill {
        align-items: flex-start;
        gap: 12px;
        font-size: 14px;
        line-height: 1.25;
    }

    .nerm-raffle-bottom-tag {
        left: 20px;
        right: 20px;
        bottom: 22px;
        font-size: 10px;
        letter-spacing: .15em;
    }
}

@media (max-width: 420px) {
    .nerm-raffle-bike-stage {
        height: 285px;
    }

    .nerm-raffle-bike {
        bottom: -8px;
        width: min(305px, 76vw);
    }

    .nerm-raffle-grid {
        padding-left: 18px;
        padding-right: 18px;
    }

    .nerm-raffle-title .raffle-white {
        font-size: clamp(34px, 12vw, 48px);
    }

    .nerm-raffle-title .raffle-yellow {
        font-size: clamp(32px, 11vw, 46px);
    }
}

@media (prefers-reduced-motion: reduce) {
    .nerm-raffle-modal::before,
    .nerm-raffle-bike {
        animation: none !important;
    }
}