.kstw,
.kstw * {
    box-sizing: border-box;
}

.kstw[hidden] {
    display: none !important;
}

.kstw [hidden] {
    display: none !important;
}

.kstw {
    --kstw-navy: #071c3c;
    --kstw-blue: #075ee2;
    --kstw-orange: #ff9700;
    --kstw-muted: #5f6f8d;
    position: fixed;
    inset: 0;
    z-index: 999999;
    display: grid;
    place-items: center;
    padding: 32px;
    font-family: Inter, Arial, Helvetica, sans-serif;
    color: var(--kstw-navy);
}

.kstw__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(4, 15, 31, .7);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
    animation: kstw-fade-in .28s ease both;
}

.kstw__dialog {
    position: relative;
    width: min(1400px, calc(100vw - 64px));
    max-height: calc(100vh - 64px);
    overflow: auto;
    border: 1px solid rgba(255, 255, 255, .8);
    border-radius: 28px;
    background:
        radial-gradient(circle at 18% 30%, rgba(185, 221, 255, .72), transparent 34%),
        radial-gradient(circle at 76% 80%, rgba(220, 235, 255, .7), transparent 33%),
        #fff;
    box-shadow: 0 30px 80px rgba(0, 17, 42, .34);
    animation: kstw-dialog-in .45s cubic-bezier(.2, .85, .3, 1) both;
    overscroll-behavior: contain;
}

.kstw__close {
    position: absolute;
    top: 26px;
    right: 26px;
    z-index: 20;
    width: 54px;
    height: 54px;
    padding: 0;
    border: 1px solid #d8e0eb;
    border-radius: 50%;
    background: rgba(255, 255, 255, .92);
    color: var(--kstw-navy);
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(7, 28, 60, .06);
    transition: transform .2s ease, border-color .2s ease;
}

.kstw__close:hover {
    transform: rotate(5deg) scale(1.04);
    border-color: #aab9cd;
}

.kstw__close span::before,
.kstw__close span::after {
    content: "";
    position: absolute;
    top: 25px;
    left: 16px;
    width: 22px;
    height: 3px;
    border-radius: 3px;
    background: currentColor;
}

.kstw__close span::before {
    transform: rotate(45deg);
}

.kstw__close span::after {
    transform: rotate(-45deg);
}

.kstw__main {
    display: grid;
    grid-template-columns: minmax(620px, 1.14fr) minmax(440px, .86fr);
    min-height: 700px;
}

.kstw__wheel-column {
    position: relative;
    display: grid;
    place-items: center;
    min-width: 0;
    padding: 50px 26px 34px 42px;
    overflow: hidden;
}

.kstw__wheel-column::before {
    content: "";
    position: absolute;
    width: 82%;
    height: 82%;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 255, 255, .95) 0 38%, rgba(86, 160, 255, .15) 66%, transparent 72%);
    filter: blur(10px);
}

.kstw__wheel-shell {
    position: relative;
    width: min(43vw, 650px);
    aspect-ratio: 1;
    filter: drop-shadow(0 20px 25px rgba(12, 42, 82, .22));
}

.kstw__wheel {
    position: absolute;
    inset: 0;
    overflow: visible;
    border: clamp(10px, 1vw, 15px) solid #f8fbff;
    border-radius: 50%;
    background: #fff;
    box-shadow:
        inset 0 0 0 2px #dfe8f3,
        inset 0 0 25px rgba(9, 42, 84, .09),
        0 0 0 3px rgba(255, 255, 255, .86);
    will-change: transform;
    transform: rotate(0deg);
}

.kstw__wheel.is-waiting {
    animation: kstw-wheel-wait .95s linear infinite;
}

.kstw__wheel.is-waiting .kstw__hub {
    animation: kstw-hub-wait .95s linear infinite;
}

.kstw__segments {
    position: absolute;
    inset: 0;
    overflow: hidden;
    border-radius: 50%;
}

.kstw__segment-label {
    position: absolute;
    z-index: 2;
    width: 25%;
    transform: translate(-50%, -50%);
    color: var(--segment-text, #071c3c);
    font-size: clamp(13px, 1.45vw, 22px);
    font-weight: 850;
    line-height: 1.05;
    text-align: center;
    text-shadow: 0 1px 2px rgba(255, 255, 255, .16);
    white-space: pre-line;
}

.kstw__segment-label svg {
    display: block;
    width: clamp(22px, 2.3vw, 37px);
    height: clamp(22px, 2.3vw, 37px);
    margin: 7px auto 0;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.9;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.kstw__segment-label img {
    display: block;
    width: clamp(32px, 3.5vw, 58px);
    height: clamp(32px, 3.5vw, 58px);
    margin: 7px auto 0;
    object-fit: contain;
    filter: drop-shadow(0 3px 4px rgba(0, 0, 0, .15));
}

.kstw__segment-label.is-unavailable {
    opacity: .64;
}

.kstw__pegs {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.kstw__peg {
    position: absolute;
    top: 50%;
    left: 50%;
    width: clamp(14px, 1.35vw, 21px);
    height: clamp(14px, 1.35vw, 21px);
    margin: calc(clamp(14px, 1.35vw, 21px) / -2);
    border-radius: 50%;
    background: linear-gradient(145deg, #263e5e, #071c3c);
    box-shadow: 0 3px 5px rgba(4, 20, 43, .25);
}

.kstw__hub {
    position: absolute;
    top: 50%;
    left: 50%;
    z-index: 5;
    display: grid;
    place-items: center;
    width: 27%;
    aspect-ratio: 1;
    overflow: hidden;
    transform: translate(-50%, -50%);
    border: clamp(8px, .8vw, 12px) solid #f7f9fd;
    border-radius: 50%;
    background: linear-gradient(145deg, #fff, #eef2f8);
    box-shadow: 0 5px 12px rgba(7, 28, 60, .2), inset 0 0 0 1px #d8e0ea;
}

.kstw__hub img {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 86%;
    height: 86%;
    max-width: 86%;
    object-fit: contain;
    transform: translate(-49.8%, -48.8%);
}

.kstw__hub span {
    color: var(--kstw-orange);
    font-size: clamp(34px, 4vw, 64px);
    font-weight: 900;
    font-style: italic;
}

.kstw__pointer {
    position: absolute;
    top: 50%;
    right: -5%;
    z-index: 10;
    width: 16%;
    height: 12%;
    transform: translateY(-50%);
    background: #f8fbff;
    clip-path: polygon(0 50%, 35% 0, 100% 0, 100% 100%, 35% 100%);
    filter: drop-shadow(0 5px 8px rgba(7, 28, 60, .2));
}

.kstw__pointer span {
    position: absolute;
    top: 50%;
    right: 17%;
    width: 45%;
    aspect-ratio: 1;
    transform: translateY(-50%);
    border-radius: 50%;
    background: var(--kstw-orange);
    box-shadow: inset 0 -3px 5px rgba(210, 110, 0, .15);
}

.kstw__pointer.is-ticking {
    animation: kstw-pointer-tick .12s ease-out;
}

.kstw__confetti {
    position: absolute;
    top: -20px;
    left: var(--x);
    z-index: 30;
    width: 9px;
    height: 15px;
    border-radius: 2px;
    background: var(--confetti);
    pointer-events: none;
    animation: kstw-confetti var(--duration) cubic-bezier(.16, .72, .38, 1) var(--delay) both;
}

.kstw__sparkles i {
    position: absolute;
    z-index: 2;
    width: 13px;
    height: 13px;
    background: #4d98f5;
    clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%);
    animation: kstw-twinkle 2.4s ease-in-out infinite alternate;
}

.kstw__sparkles i:nth-child(1) { top: 9%; left: 15%; background: #fff; }
.kstw__sparkles i:nth-child(2) { top: 16%; left: 80%; background: #ffbd32; animation-delay: -.8s; }
.kstw__sparkles i:nth-child(3) { bottom: 11%; right: 13%; background: #fff; animation-delay: -.3s; }
.kstw__sparkles i:nth-child(4) { bottom: 16%; left: 12%; background: #ffbd32; animation-delay: -1.1s; }
.kstw__sparkles i:nth-child(5) { top: 10%; right: 14%; width: 9px; height: 9px; background: #ff9700; }
.kstw__sparkles i:nth-child(6) { bottom: 8%; right: 19%; width: 9px; height: 9px; background: #ff9700; }

.kstw__content-column {
    position: relative;
    z-index: 5;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
    padding: 100px 80px 10px 38px;
}

.kstw__intro {
    margin-bottom: 28px;
}

.kstw__eyebrow {
    margin: 0 0 16px;
    color: var(--kstw-orange);
    font-size: 20px;
    font-weight: 850;
    letter-spacing: .08em;
}

.kstw__intro h2 {
    max-width: 570px;
    margin: 0;
    color: var(--kstw-navy);
    font-size: clamp(45px, 3.8vw, 60px);
    font-weight: 900;
    line-height: .99;
    letter-spacing: -.045em;
}

.kstw__intro h2 span {
    color: var(--kstw-orange);
}

.kstw__subheading {
    max-width: 560px;
    margin: 20px 0 0;
    color: #354867;
    font-size: clamp(18px, 1.6vw, 23px);
    line-height: 1.38;
}

.kstw__form {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
    max-width: 560px;
}

.kstw__email-wrap {
    position: relative;
    display: block;
}

.kstw__email-wrap svg {
    position: absolute;
    top: 50%;
    left: 19px;
    width: 23px;
    height: 23px;
    transform: translateY(-50%);
    fill: none;
    stroke: #7b8aa4;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.kstw__email-wrap input {
    width: 100%;
    height: 62px;
    padding: 0 20px 0 57px;
    border: 1px solid #cdd7e5;
    border-radius: 11px;
    outline: none;
    background: rgba(255, 255, 255, .84);
    color: var(--kstw-navy);
    font: inherit;
    font-size: 18px;
    box-shadow: inset 0 1px 2px rgba(7, 28, 60, .03);
    transition: border-color .2s, box-shadow .2s;
}

.kstw__email-wrap input:focus {
    border-color: var(--kstw-blue);
    box-shadow: 0 0 0 3px rgba(7, 94, 226, .13);
}

.kstw__email-wrap input::placeholder {
    color: #7685a0;
    opacity: 1;
}

.kstw__marketing {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    color: #64738f;
    font-size: 13px;
    line-height: 1.35;
}

.kstw__marketing input {
    flex: 0 0 auto;
    margin: 2px 0 0;
    accent-color: var(--kstw-blue);
}

.kstw__trap {
    position: absolute !important;
    left: -10000px !important;
    width: 1px !important;
    height: 1px !important;
    opacity: 0 !important;
}

.kstw__spin-button,
.kstw__claim-button {
    position: relative;
    display: grid;
    place-items: center;
    width: 100%;
    min-height: 64px;
    overflow: hidden;
    border: 0;
    border-radius: 11px;
    background: linear-gradient(105deg, #096bef, #064fd2);
    color: #fff;
    font: inherit;
    font-size: 21px;
    font-weight: 850;
    letter-spacing: .015em;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    box-shadow: 0 10px 24px rgba(7, 94, 226, .16);
    transition: transform .2s ease, box-shadow .2s ease, opacity .2s ease;
}

.kstw__spin-button:hover,
.kstw__claim-button:hover {
    transform: translateY(-2px);
    color: #fff;
    box-shadow: 0 14px 28px rgba(7, 94, 226, .25);
}

.kstw__spin-button:disabled {
    cursor: wait;
    opacity: .74;
    transform: none;
}

.kstw__button-shine {
    position: absolute;
    top: -60%;
    left: -20%;
    width: 16%;
    height: 220%;
    transform: rotate(25deg);
    background: rgba(255, 255, 255, .22);
    filter: blur(5px);
    animation: kstw-shine 3.8s ease-in-out infinite;
}

.kstw__privacy {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 11px;
    margin-top: 7px;
    color: #64738f;
    font-size: 15px;
    line-height: 1.35;
    text-align: center;
}

.kstw__privacy svg,
.kstw__one-spin svg {
    flex: 0 0 auto;
    width: 22px;
    height: 22px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.kstw__one-spin {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 50px;
    margin: 10px 0 0;
    border-radius: 11px;
    background: rgba(225, 237, 255, .82);
    color: #075ee2;
    font-size: 16px;
    text-align: center;
}

.kstw__terms {
    margin: -4px 0 0;
    color: #76839b;
    font-size: 11px;
    line-height: 1.4;
    text-align: center;
}

.kstw__terms a {
    color: inherit;
    text-decoration: underline;
}

.kstw__message {
    min-height: 18px;
    margin: -2px 0 0;
    color: #be2c2c;
    font-size: 13px;
    font-weight: 650;
    line-height: 1.35;
    text-align: center;
}

.kstw__result {
    width: 100%;
    max-width: 560px;
    animation: kstw-result-in .48s ease both;
}

.kstw__result-kicker {
    margin: 0 0 9px;
    color: var(--kstw-blue);
    font-size: 18px;
    font-weight: 850;
    letter-spacing: .06em;
}

.kstw__result h3 {
    margin: 0;
    color: var(--kstw-navy);
    font-size: clamp(46px, 4vw, 64px);
    font-weight: 900;
    line-height: 1;
    letter-spacing: -.045em;
    text-transform: uppercase;
}

.kstw__result-prize {
    margin: 18px 0 8px;
    color: var(--kstw-orange);
    font-size: 28px;
    font-weight: 900;
    line-height: 1.05;
    white-space: pre-line;
}

.kstw__result-copy {
    margin: 0 0 19px;
    color: #50617e;
    font-size: 16px;
    line-height: 1.45;
}

.kstw__code-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-height: 70px;
    margin-bottom: 16px;
    padding: 13px 17px 13px 22px;
    border: 2px dashed #9bbdf1;
    border-radius: 11px;
    background: rgba(255, 255, 255, .75);
}

.kstw__code-box code {
    overflow-wrap: anywhere;
    color: var(--kstw-blue);
    background: transparent;
    font: inherit;
    font-size: clamp(20px, 2vw, 28px);
    font-weight: 900;
    letter-spacing: .045em;
}

.kstw__code-box button {
    flex: 0 0 auto;
    padding: 9px 12px;
    border: 0;
    border-radius: 7px;
    background: #edf4ff;
    color: var(--kstw-blue);
    font: inherit;
    font-size: 13px;
    font-weight: 750;
    cursor: pointer;
}

.kstw__claim-button {
    min-height: 60px;
    background: var(--kstw-orange);
}

.kstw__result-note {
    margin: 17px 12px 0;
    color: #65748e;
    font-size: 13px;
    line-height: 1.45;
    text-align: center;
}

.kstw__trust {
    position: relative;
    z-index: 6;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    min-height: 112px;
    padding: 0 clamp(90px, 10vw, 180px);
    border-top: 1px solid #e0e6ef;
    background: rgba(255, 255, 255, .78);
}

.kstw__trust > div {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    min-width: 0;
}

.kstw__trust > div + div {
    border-left: 1px solid #e1e7ef;
}

.kstw__trust-icon {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    color: var(--kstw-blue);
    font-size: 37px;
    font-weight: 700;
}

.kstw__trust p {
    margin: 0;
}

.kstw__trust strong,
.kstw__trust small {
    display: block;
}

.kstw__trust strong {
    margin-bottom: 4px;
    color: var(--kstw-navy);
    font-size: 16px;
}

.kstw__trust small {
    color: #65748e;
    font-size: 14px;
}

body.kstw-is-open {
    overflow: hidden;
}

@keyframes kstw-fade-in {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes kstw-dialog-in {
    from { opacity: 0; transform: translateY(20px) scale(.98); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes kstw-result-in {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes kstw-twinkle {
    from { transform: scale(.68) rotate(0); opacity: .58; }
    to { transform: scale(1.15) rotate(45deg); opacity: 1; }
}

@keyframes kstw-shine {
    0%, 40% { left: -20%; }
    65%, 100% { left: 120%; }
}

@keyframes kstw-wheel-wait {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes kstw-hub-wait {
    from { transform: translate(-50%, -50%) rotate(0deg); }
    to { transform: translate(-50%, -50%) rotate(-360deg); }
}

@keyframes kstw-pointer-tick {
    0% { transform: translateY(-50%) rotate(0); }
    45% { transform: translateY(-50%) rotate(-7deg); }
    100% { transform: translateY(-50%) rotate(0); }
}

@keyframes kstw-confetti {
    0% { opacity: 0; transform: translate3d(0, 0, 0) rotate(0deg); }
    8% { opacity: 1; }
    100% { opacity: 0; transform: translate3d(var(--drift), 760px, 0) rotate(720deg); }
}

@media (max-width: 1120px) {
    .kstw {
        padding: 18px;
    }

    .kstw__dialog {
        width: min(930px, calc(100vw - 36px));
        max-height: calc(100vh - 36px);
        border-radius: 24px;
    }

    .kstw__main {
        display: flex;
        flex-direction: column;
        min-height: 0;
        padding: 52px 55px 35px;
    }

    .kstw__content-column {
        display: contents;
    }

    .kstw__intro {
        order: 1;
        margin: 0 auto 17px;
        text-align: center;
    }

    .kstw__eyebrow {
        margin-bottom: 10px;
        font-size: 18px;
    }

    .kstw__intro h2 {
        max-width: 690px;
        font-size: clamp(39px, 6.8vw, 62px);
    }

    .kstw__subheading {
        max-width: 610px;
        margin-top: 13px;
        font-size: clamp(16px, 2.6vw, 23px);
    }

    .kstw__wheel-column {
        order: 2;
        min-height: 0;
        padding: 0;
        overflow: visible;
    }

    .kstw__wheel-shell {
        width: min(72vw, 650px);
    }

    .kstw__form,
    .kstw__result {
        order: 3;
        width: min(100%, 630px);
        max-width: none;
        margin: 17px auto 0;
    }

    .kstw__segment-label {
        font-size: clamp(13px, 2.6vw, 21px);
    }

    .kstw__close {
        top: 23px;
        right: 23px;
    }

    .kstw__trust {
        min-height: 105px;
        padding: 0 44px;
    }
}

@media (max-width: 640px) {
    .kstw {
        align-items: start;
        padding: 10px;
    }

    .kstw__dialog {
        width: calc(100vw - 20px);
        max-height: calc(100vh - 20px);
        border-radius: 18px;
    }

    .kstw__main {
        padding: 48px 15px 27px;
    }

    .kstw__close {
        top: 13px;
        right: 13px;
        width: 43px;
        height: 43px;
    }

    .kstw__close span::before,
    .kstw__close span::after {
        top: 20px;
        left: 12px;
        width: 19px;
    }

    .kstw__eyebrow {
        font-size: 14px;
        letter-spacing: .1em;
    }

    .kstw__intro h2 {
        padding: 0 18px;
        font-size: clamp(32px, 10.7vw, 46px);
    }

    .kstw__subheading {
        padding: 0 13px;
        font-size: 15px;
    }

    .kstw__wheel-shell {
        width: min(82vw, 430px);
    }

    .kstw__segment-label {
        width: 28%;
        font-size: clamp(9px, 3.2vw, 15px);
    }

    .kstw__segment-label svg {
        width: clamp(18px, 6vw, 27px);
        height: clamp(18px, 6vw, 27px);
        margin-top: 4px;
    }

    .kstw__email-wrap input {
        height: 54px;
        padding-left: 49px;
        font-size: 15px;
    }

    .kstw__email-wrap svg {
        left: 16px;
        width: 20px;
    }

    .kstw__spin-button,
    .kstw__claim-button {
        min-height: 55px;
        font-size: 17px;
    }

    .kstw__marketing {
        font-size: 11px;
    }

    .kstw__privacy {
        align-items: flex-start;
        font-size: 12px;
    }

    .kstw__privacy svg {
        width: 18px;
        height: 18px;
    }

    .kstw__one-spin {
        min-height: 44px;
        font-size: 13px;
    }

    .kstw__result {
        text-align: center;
    }

    .kstw__result h3 {
        font-size: 42px;
    }

    .kstw__result-prize {
        font-size: 24px;
    }

    .kstw__code-box {
        min-height: 62px;
        padding: 10px 10px 10px 14px;
    }

    .kstw__code-box code {
        font-size: 18px;
    }

    .kstw__trust {
        grid-template-columns: 1fr;
        padding: 5px 23px;
    }

    .kstw__trust > div {
        justify-content: flex-start;
        min-height: 66px;
    }

    .kstw__trust > div + div {
        border-top: 1px solid #e1e7ef;
        border-left: 0;
    }

    .kstw__trust-icon {
        width: 36px;
        height: 36px;
        font-size: 29px;
    }

    .kstw__trust strong {
        font-size: 14px;
    }

    .kstw__trust small {
        font-size: 12px;
    }
}

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