@font-face {
    font-family: "T2 Halvar Breit";
    src: url("../fonts/T2HalvarBreit-ExtraBold.woff2") format("woff2");
    font-style: normal;
    font-weight: 800;
    font-display: swap;
}

@font-face {
    font-family: "T2 Rooftop";
    src: url("../fonts/t2-Rooftop-Regular.woff2") format("woff2");
    font-style: normal;
    font-weight: 400;
    font-display: swap;
}

@font-face {
    font-family: "T2 Rooftop";
    src: url("../fonts/t2-Rooftop-Medium.woff2") format("woff2");
    font-style: normal;
    font-weight: 500;
    font-display: swap;
}

:root {
    --promo-pink: #ff3495;
    --promo-text: #ffffff;
    --promo-button-text: #1f2229;
    color-scheme: dark;
    font-synthesis: none;
}

* {
    box-sizing: border-box;
}

html {
    min-width: 320px;
    min-height: 100%;
    background: #111;
}

body {
    min-width: 320px;
    min-height: 100%;
    margin: 0;
    overflow-x: hidden;
    background: #111;
    color: var(--promo-text);
    font-family: "T2 Rooftop", Arial, Helvetica, sans-serif;
}

button,
a {
    -webkit-tap-highlight-color: transparent;
}

.promo {
    position: relative;
    width: 100%;
    max-width: 480px;
    min-height: 100dvh;
    margin: 0 auto;
    padding-top: env(safe-area-inset-top);
    padding-right: env(safe-area-inset-right);
    padding-bottom: env(safe-area-inset-bottom);
    padding-left: env(safe-area-inset-left);
    overflow: hidden;
    isolation: isolate;
    background: linear-gradient(180deg, #000 50.3%, var(--promo-pink) 111.8%);
}

.promo__header {
    position: relative;
    z-index: 4;
    display: flex;
    align-items: center;
    height: 64px;
    padding: 12px;
    background: #000;
}

.promo__brand-logo {
    display: block;
    width: 38.309px;
    height: 38.309px;
    margin-left: 1px;
}

.promo__content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    min-height: calc(100dvh - 64px - env(safe-area-inset-top) - env(safe-area-inset-bottom));
}

.promo__intro {
    flex: none;
    padding: 14px 16px 0;
}

.promo__title {
    max-width: 390px;
    margin: 0;
    font-family: "T2 Halvar Breit", "Arial Black", Arial, Helvetica, sans-serif;
    font-size: clamp(30px, 9.333333vw, 42px);
    font-weight: 800;
    line-height: .9;
    letter-spacing: 0;
    text-transform: uppercase;
}

.promo__lead {
    margin: 15px 0 0 3px;
    font-size: clamp(18px, 5.333333vw, 22px);
    font-weight: 400;
    line-height: .9;
    letter-spacing: 0;
}

.wheel {
    position: relative;
    flex: none;
    width: min(calc(100% - 16px), 420px);
    aspect-ratio: 1;
    margin: 34px auto 0;
}

.wheel__rotor {
    position: absolute;
    inset: 0;
    will-change: transform;
    transform: rotate(0deg);
}

.wheel__disc {
    position: absolute;
    inset: 5.55%;
    overflow: hidden;
    border-radius: 50%;
    background: #000;
}

.wheel__sector-art {
    position: absolute;
    top: 50%;
    left: 50%;
    display: block;
    width: 50%;
    height: 50%;
    transform-origin: 0 0;
}

.wheel__sector-art--keychain {
    transform: rotate(-135deg);
}

.wheel__sector-art--lanyard {
    transform: rotate(-45deg);
}

.wheel__sector-art--powerbank {
    transform: rotate(45deg);
}

.wheel__sector-art--bodykit {
    transform: rotate(135deg);
}

.wheel__glow {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.wheel__center {
    position: absolute;
    top: 50%;
    left: 50%;
    display: block;
    width: 17.1%;
    height: 17.1%;
    border-radius: 50%;
    object-fit: cover;
    filter: drop-shadow(0 0 9px rgb(0 0 0 / 25%));
    transform: translate(-50%, -50%);
}

.wheel__pointer {
    position: absolute;
    z-index: 3;
    top: -10px;
    right: 0;
    left: 0;
    display: block;
    width: 13.1%;
    height: 29.7%;
    margin-inline: auto;
    pointer-events: none;
}

.wheel__sector {
    position: absolute;
    z-index: 1;
    display: block;
    width: 44%;
    font-family: "T2 Halvar Breit", "Arial Black", Arial, Helvetica, sans-serif;
    font-size: clamp(11px, 3.733333vw, 16px);
    font-weight: 800;
    line-height: 1.14;
    text-align: center;
    text-transform: uppercase;
    white-space: nowrap;
}

.wheel__sector--keychain {
    top: 18%;
    left: 28%;
    color: #000;
}

.wheel__sector--lanyard {
    top: 44%;
    right: -5%;
    color: #fff;
    transform: rotate(90deg);
}

.wheel__sector--powerbank {
    bottom: 17%;
    left: 28%;
    color: #000;
    transform: rotate(180deg);
}

.wheel__sector--bodykit {
    top: 47%;
    left: -5%;
    color: #fff;
    transform: rotate(-90deg);
}

.promo__actions {
    position: relative;
    z-index: 5;
    display: flex;
    flex: 1 0 auto;
    flex-direction: column;
    align-items: center;
    min-height: 138px;
    margin-top: 44px;
    padding: 0 16px 12px;
}

.promo__play-button {
    flex: none;
    width: 212px;
    min-width: 128px;
    min-height: 52px;
    padding: 0 24px;
    border: 0;
    border-radius: 12px;
    background: #fff;
    color: var(--promo-button-text);
    font-family: "T2 Halvar Breit", "Arial Black", Arial, Helvetica, sans-serif;
    font-size: 12px;
    font-weight: 800;
    line-height: 16px;
    text-align: center;
    text-transform: uppercase;
    cursor: pointer;
}

.promo__play-button:hover:not(:disabled) {
    background: #f3f3f3;
}

.promo__play-button:active:not(:disabled) {
    transform: translateY(1px);
}

.promo__play-button:disabled {
    cursor: not-allowed;
    opacity: .72;
}

.promo--result .promo__play-button {
    opacity: 1;
}

.promo__conditions:focus-visible {
    outline: 3px solid #65fbd2;
    outline-offset: 4px;
}

.promo__play-button:focus,
.promo__play-button:focus-visible {
    outline: 0;
}

.promo__result {
    min-height: 0;
    max-width: 320px;
    margin: 0;
    overflow: hidden;
    font-family: "T2 Rooftop", Arial, Helvetica, sans-serif;
    font-size: 15px;
    font-weight: 500;
    line-height: 20px;
    text-align: center;
    opacity: 0;
    transition: min-height .2s ease, margin .2s ease, opacity .2s ease;
}

.promo__result:not(:empty) {
    min-height: 20px;
    margin-top: 10px;
    opacity: 1;
}

.promo__conditions {
    margin-top: 22px;
    color: #fff;
    font-family: "T2 Rooftop", Arial, Helvetica, sans-serif;
    font-size: 15px;
    font-weight: 400;
    line-height: 16px;
    text-underline-offset: 2px;
}

.confetti {
    position: absolute;
    z-index: 8;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.promo-code[hidden] {
    display: none;
}

.promo-code {
    position: absolute;
    z-index: 7;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0 30px;
    background: rgb(0 0 0 / 14%);
    -webkit-backdrop-filter: blur(7px);
    backdrop-filter: blur(7px);
    opacity: 0;
    transition: opacity .25s ease;
}

.promo-code--visible {
    opacity: 1;
}

.promo-code__value {
    width: 100%;
    max-width: 386px;
    min-height: 82px;
    padding: 14px 20px;
    border: 2px solid #111;
    border-radius: 14px;
    outline: 0;
    background: #fff;
    color: #111;
    font-family: "T2 Halvar Breit", "Arial Black", Arial, Helvetica, sans-serif;
    font-size: clamp(20px, 6.4vw, 30px);
    font-weight: 800;
    line-height: 1;
    overflow-wrap: anywhere;
    text-align: center;
    cursor: copy;
    box-shadow: 0 8px 30px rgb(0 0 0 / 20%);
}

.promo-code__hint {
    margin-top: 10px;
    color: #fff;
    font-size: 14px;
    line-height: 18px;
    text-align: center;
    text-shadow: 0 1px 5px #000;
}

@media (max-width: 359px) {
    .wheel {
        margin-top: 24px;
    }

    .promo__actions {
        margin-top: 26px;
    }
}

@media (max-height: 720px) {
    .promo__header {
        height: 56px;
        padding: 8px 12px;
    }

    .promo__content {
        min-height: calc(100dvh - 56px - env(safe-area-inset-top) - env(safe-area-inset-bottom));
    }

    .promo__intro {
        padding-top: 8px;
    }

    .promo__lead {
        margin-top: 8px;
    }

    .wheel {
        width: min(calc(100% - 54px), 320px);
        margin-top: 12px;
    }

    .promo__actions {
        min-height: 116px;
        margin-top: 14px;
        padding-bottom: 8px;
    }

    .promo__conditions {
        margin-top: 14px;
    }
}

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