* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

*::before,
*::after {
    box-sizing: border-box;
}

:root {
    --header-padding: 20px;
    --logo-height: 78px;
    --header-height: calc(var(--header-padding) * 2 + var(--logo-height));
}

html {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    position: relative;
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.3;
    color: #fff;
    background-color: #12022f;
    background-image: url('imgs/bg-mobile.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    min-height: 100vh;
    width: 100%;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
}

img,
picture,
video,
canvas,
svg {
    display: block;
    height: auto;
    max-width: 100%;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input,
textarea,
select {
    line-height: 1;
    font: inherit;
    color: inherit;
}

button {
    cursor: pointer;
    border: none;
    background: none;
    outline: none;
}

ul,
ol {
    list-style: none;
}

.logo {
    position: relative;
}

.logo img {
    margin: 0 auto;
    width: 165px;
}

header,
footer {
    position: relative;
    padding: 20px;
    z-index: 100;
}

footer {
    display: flex;
    justify-content: center;
    align-items: center;
}

.gradient-overlay {
    position: absolute;
    left: 0;
    width: 100%;
    pointer-events: none;
    z-index: -1;
}

.gradient-top {
    top: 0;
    height: 128px;
    background: linear-gradient(180deg, #000117 -30%, rgba(0, 1, 23, 0) 99%);
}

.gradient-bottom {
    bottom: 0;
    height: 322px;
    background: linear-gradient(360deg, #000117 0.2%, rgba(0, 1, 23, 0) 99%);
}

.main-container {
    position: relative;
    max-width: 1920px;
    padding: 0 20px;
    height: auto;
    flex: 1;
    align-self: center;
}

.effect-container {
    position: absolute;
    top: 50%;
    left: 45%;
    transform: translate(-50%, -50%);
    z-index: -1;
    pointer-events: none;
}

picture {
    display: block;
}

.effect-image {
    display: block;
    width: auto;
    height: auto;
    max-width: none;
    will-change: transform;
}

.wheel-container {
    width: 100%;
    min-width: fit-content;
    height: auto;
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.wheel-decorations {
    position: relative;
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: calc(100dvh - var(--header-height, 60px));
    z-index: 1;
}

.wheel,
.wheel-arrow {
    position: absolute;
    height: auto;
    max-width: none;
}

.wheel {
    top: 9.6%;
    left: 50%;
    width: 67%;
    opacity: 0;
    z-index: 2;
}

.wheel-arrow {
    top: 0;
    left: 50%;
    width: 13.1%;
    transform: translate(-50%, 0);
    z-index: 3;
}

.payment-methods {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    width: 357px;
    min-width: 357px;
}

.payment-methods img {
    width: 65px;
}

/* Custom Button */

.custom-button {
    position: relative;
    width: 320px;
    height: 53px;
    border-radius: 8px;
    background: radial-gradient(
        86.86% 595.71% at 50.22% 0%,
        #FF89C8 9%,
        #FE007B 100%
    );
    color: #fff;
    text-align: center;
    vertical-align: middle;
    font-weight: 700;
    font-size: 24px;
    line-height: 100%;
    text-align: center;
    vertical-align: middle;
    overflow: hidden;

    box-shadow:
        1px 4px 10.6px 0px #FFFFFF9C inset, /* inner highlight */
        0px 0px 15px 0px #FFFFFF,           /* soft white glow */
        0px 0px 32px 0px #FFA5EA;           /* pink outer glow */

    transition: box-shadow 0.2s ease, color 0.2s ease;
}

.custom-button:not(:disabled)::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 8px;
    background: radial-gradient(
        86.86% 595.71% at 50.22% 0%,
        #CF5395 9%,
        #9B034D 100%
    );
    opacity: 0;
    transition: opacity 0.2s ease;
    pointer-events: none;
    z-index: 0;
}

.custom-button:hover {
    box-shadow:
        1px 4px 18px 0px #FFFFFF9C inset,   /* inner highlight */
        0px 0px 18px 0px #FFFFFF,           /* soft white glow */
        0px 0px 36px 0px #FFA5EA;           /* pink outer glow */
}

.custom-button:active::after {
    opacity: 1;
}

.custom-button:active {
    color: #FFFFFFA3;
}

.custom-button-text {
    position: relative;
    z-index: 2;
}

.custom-button-decoration {
    overflow: hidden;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    border-radius: 8px;
    border: 2px solid #FF82E8;
}

.custom-button-decoration::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 76px;
    height: 100%;
    background-image: url('imgs/button-pattern.svg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    pointer-events: none;
    rotate: 180deg;
}

.custom-button-decoration::after {
    content: '';
    position: absolute;
    right: 0;
    top: 0;
    height: 100%;
    width: 76px;
    background-image: url('imgs/button-pattern.svg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    pointer-events: none;
}

.custom-button:disabled {
    background: radial-gradient(
        86.86% 595.71% at 50.22% 0%,
        #DF9ABF 9%,
        #E08AB7 100%
    ) !important;
    color: #FFFFFFA3;
    box-shadow: none;
    cursor: not-allowed;
}

.custom-button:disabled .custom-button-decoration {
    border: 2px solid #FFFFFFA3 !important;
}

/* End Custom Button */

.copy-button {
    border-radius: 6px;
    background: #FFFFFF;
    font-weight: 500;
    font-size: 16px;
    text-align: center;
    vertical-align: middle;
    text-transform: capitalize;
    color: #FF6FB5;
}

.spin-button {
    position: relative;
    margin: 0 auto;
    margin-top: -25%;
    margin-bottom: 100px;
    display: block;
    width: 266px;
    height: 53px;
    font-size: 16px;
    z-index: 101;
}

.custom-button:not(:disabled).spin-button {
    animation: spin-button-pulse 2s ease-in-out infinite;
}

@keyframes spin-button-pulse {
    0%, 100% {
        transform: scale(1);
        box-shadow:
            1px 4px 10.6px 0px #FFFFFF9C inset,
            0px 0px 15px 0px #FFFFFF,
            0px 0px 32px 0px #FFA5EA;
    }
    50% {
        transform: scale(1.03);
        box-shadow:
            1px 4px 18px 0px #FFFFFF9C inset,
            0px 0px 25px 0px #FFFFFF,
            0px 0px 50px 0px #FFA5EA;
    }
}

/* Heart Decorations */

.heart-decoration {
    position: absolute;
    pointer-events: none;
}

.heart-1 {
    bottom: 10%;
    left: -15%;
    width: 132px;
    animation: heart-float-1 4s ease-in-out infinite;
}

.heart-1 img {
    animation: heart-beat-1 4s ease-in-out infinite;
    animation-delay: 2s;
}

.heart-2 {
    top: -10%;
    right: -20%;
    width: 132px;
    animation: heart-float-2 4.5s ease-in-out infinite;
    animation-delay: 0.5s;
}

.heart-2 img {
    animation: heart-beat-2 5s ease-in-out infinite;
    animation-delay: 0.5s;
}

.heart-3 {
    display: none;
    animation: heart-float-1 5s ease-in-out infinite;
    animation-delay: 1s;
}

.heart-3 img {
    animation: heart-beat-2 4s ease-in-out infinite;
    animation-delay: 1s;
}

.heart-4 {
    display: none;
    animation: heart-float-1 4s ease-in-out infinite;
    animation-delay: 1.5s;
}

.heart-4 img {
    animation: heart-beat-1 4s ease-in-out infinite;
    animation-delay: 3s;
}

@keyframes heart-float-1 {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-8px); }
}

@keyframes heart-float-2 {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-12px); }
}

@keyframes heart-float-3 {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-6px); }
}

@keyframes heart-beat-1 {
  0%, 100% { scale: 1; } 
  6% { scale: 1.08; } 
  12% { scale: 1; } 
  18% { scale: 1.08; } 
  24% { scale: 1; } 
  50% { scale: 1; } 
  76% { scale: 1; }
}

@keyframes heart-beat-2 {
  0%, 100% { scale: 1; } 
  6% { scale: 1.04; } 
  12% { scale: 1; } 
  18% { scale: 1.04; } 
  24% { scale: 1; } 
  50% { scale: 1; } 
  76% { scale: 1; }
}

/* End Heart Decorations */

/* Modals */

.modal {
    display: flex;
    align-items: center;
    justify-content: center;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    padding: 20px;
}

.modal.active {
    visibility: visible;
    pointer-events: auto;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #12022FCC;
    backdrop-filter: blur(5px);
}

.modal-content {
    position: relative;
    max-width: 577px;
    width: 100%;
    height: auto;
    background: #FFCCF766;
    box-shadow: 0px 0px 16px 0px #FFA0A0;
    border: 2px solid #FFFFFF6B;
    padding: 8px;
    border-radius: 12px;
    transform: scale(0.9);
    z-index: 1001;
}

.modal-win-content {
    padding-top: 80px;
    padding-bottom: 110px;
}

.modal-loss-content {
    padding-top: 80px;
    padding-bottom: 26px;
}


.modal-wing-left {
    min-width: fit-content;
    width: fit-content;
    position: absolute;
    top: -160px;
    left: 50%;
    transform: translate(-50%, 0);
    z-index: 1;
}

.modal-loss-content .modal-wing-left {
    top: -120px;
}

.modal-wing-left img,
.modal-wing-right img {
    max-width: unset;
    width: 100vw;
}

.modal-wing-right {
    display: none;
}

.modal-inner h2 {
    font-weight: 700;
    font-size: 24px;
    text-align: center;
    vertical-align: middle;
    text-shadow: 4px -3px 0px #C500A7E5;
    margin-bottom: 12px;
}

.modal-loss-content .modal-inner h2 {
    font-size: 28px;
}

.modal-inner p {
    font-weight: 400;
    font-size: 16px;
    text-align: center;
    vertical-align: middle;
    text-transform: capitalize;
}

.modal-code-box {
    position: relative;
    margin-top: 12px;
    padding: 10px;
    border: 1px solid #FFFFFF;
    border-radius: 7px;
    background: #6FB7FF1A;
}

.modal-code-box input {
    width: 100%;
    background: transparent;
    text-align: center;
    border: none;
    outline: none;
    font-weight: 700;
    font-size: 16px;
    text-align: center;
    vertical-align: middle;
    text-transform: capitalize;
}

.modal-code-box .copy-button {
    height: 28px;
    width: 81px;
    font-size: 14px;
    position: absolute;
    top: 50%;
    right: 10px;
    transform: translateY(-50%);
}

.modal-inner .modal-button-link {
    margin: 0 auto;
    margin-top: 12px;
    display: block;
    width: 100%;
}

.modal-loss-content .modal-inner .modal-button-link {
    margin-top: 16px;
}

.modal-button-link .custom-button {
    width: 100%;
    height: 48px;
    font-size: 16px;
}

.modal-note {
    position: absolute;
    bottom: -80px;
    left: 50%;
    transform: translateX(-50%);
}

.modal-note-bg img {
    max-width: unset;
    width: auto;
}

.modal-win-heart-decoration-double,
.modal-win-heart-decoration-large,
.modal-win-heart-decoration-small {
    position: absolute;
    pointer-events: none;
    z-index: 1;
}

.modal-win-heart-decoration-large {
    display: none;
    animation: heart-float-1 4s ease-in-out infinite;
}

.modal-win-heart-decoration-large img {
    animation: heart-beat-1 3s ease-in-out infinite;
    animation-delay: 2s;
}

.modal-win-heart-decoration-small {
    bottom: -60px;
    left: -40px;
    animation: heart-float-2 3s ease-in-out infinite;
}

.modal-win-heart-decoration-small img {
    animation: heart-beat-2 3s ease-in-out infinite;
    animation-delay: 0.5s;
}

.modal-win-heart-decoration-double {
    bottom: -80px;
    right: -40px;
    animation: heart-float-2 2.5s ease infinite;
}

.modal-win-heart-decoration-double img {
    animation: heart-beat-3 4s ease-in-out infinite;
    animation-delay: 1s;
}

.toast {
    position: fixed;
    top: 20px;
    right: 20px;
    background: #12022FCC;
    color: #fff;
    padding: 15px 25px;
    border-radius: 10px;
    border: 1px solid #FFFFFF;
    z-index: 2000;
    opacity: 0;
    transform: translateX(400px);
    transition: all 0.3s ease;
}

.toast.active {
    opacity: 1;
    transform: translateX(0);
}

.toast-message {
    font-size: 16px;
    font-weight: 500;
}

/* End Modals */

@media (min-width: 768px) {
    :root {
        --logo-height: 108px;
    }

    body {
        background-image: url('imgs/bg-tablet.png');
    }

    .spin-button {
        width: 391px;
        height: 78px;
        font-size: 24px;
    }

    .logo img {
        width: unset;
    }

    .gradient-top {
        height: 160px;
    }

    .gradient-bottom {
        height: 768px;
    }

    .payment-methods {
        gap: 17px;
        width: 723px;
        min-width: 723px;
    }

    .payment-methods img {
        width: 131px;
    }

    .heart-1 {
        top: unset;
        bottom: 10%;
        left: -5%;
        width: 258px;
    }

    .heart-2 {
        top: -5%;
        right: -10%;
        width: 258px;
    }

    .wheel {
        top: 9.4%;
        width: 56.2%;
    }

    .wheel-arrow {
        width: 10.9%;
    }

    .modal-win-content {
        padding: 18px;
        padding-top: 38px;
        padding-bottom: 110px;
    }

    .modal-loss-content {
        padding: 32px 56px;
    }

    .modal-wing-left,
    .modal-wing-right,
    .modal-loss-content .modal-wing-left {
        min-width: fit-content;
        width: fit-content;
        display: block;
        position: absolute;
        top: -50px;
        z-index: 1;
    }

    .modal-wing-left {
        left: -170px;
        transform: translateX(0);
    }

    .modal-wing-right {
        right: -170px;
        transform: translateX(0);
    }

    .modal-wing-left img,
    .modal-wing-right img {
        max-width: unset;
        width: auto;
    }

    .modal-wing-right {
        display: block;
    }

    .modal-inner h2 {
        font-size: 32px;
        margin-bottom: 12px;
        text-shadow: 4px -3px 0px #C500A7E5;
    }

    .modal-loss-content .modal-inner h2 {
        font-size: 36px;
    }

    .modal-inner p {
        font-size: 18px;
    }

    .modal-code-box {
        margin-top: 12px;
        padding: 10px;
    }

    .modal-code-box input {
        font-size: 24px;
    }

    .modal-code-box .copy-button {
        height: 38px;
        width: 94px;
        font-size: 16px;
    }

    .modal-inner .modal-button-link {
        margin: 0 auto;
        margin-top: 20px;
        display: block;
        width: fit-content;
    }

    .modal-button-link .custom-button {
        width: 321px;
        height: 53px;
        font-size: 16px;
    }

    .modal-note {
        bottom: -90px;
    }

    .modal-win-heart-decoration-large {
        display: block;
        bottom: -90px;
        right: -90px;        
    }

    .modal-win-heart-decoration-small {
        bottom: 20px;
        left: -70px;
    }

    .modal-win-heart-decoration-double {
        bottom: unset;
        right: 20px;
        top: -50px;
    }
}

@media (min-width: 1024px) {
    :root {
        --logo-height: 90px;
    }

    body {
        background-image: url('imgs/bg-desctop.png');
    }

    .spin-button {
    }

    .effect-container {
        transform: translate(-45%, -60%);
        
    }

    .logo img {
        width: 191px;
    }

    .gradient-top {
        height: 160px;
    }

    .gradient-bottom {
        height: 256px;
    }

    .payment-methods {
        gap: 15px;
        width: auto;
        min-width: 723px;
    }

    .payment-methods img {
        width: 118px;
    }

    .heart-1 {
        bottom: unset;
        display: block;
        top: 5%;
        left: -25%;
    }

    .heart-2 {
        bottom: unset;
        display: block;
        top: 0%;
        right: -25%;
    }

    .heart-3 {
        top: unset;
        display: block;
        bottom: 10%;
        left: -25%;
    }

    .heart-4 {
        display: block;
        top: unset;
        bottom: 5%;
        right: -35%;
    }

    .wheel {
        top: 8.3%;
        width: 56.3%;
    }

    .wheel-arrow {
        width: 10.9%;
    }

    .modal-win-content {
        padding: 27px;
        padding-top: 25px;
        padding-bottom: 110px;
    }

    .modal-wing-left,
    .modal-wing-right {
        top: -50px;
    }

    .modal-wing-left {
        left: -230px;
        transform: translateX(0);
    }

    .modal-wing-right {
        right: -230px;
        transform: translateX(0);
    }

    .modal-wing-right {
        display: block;
    }

    .modal-inner h2,
    .modal-loss-content .modal-inner h2 {
        font-size: 48px;
        margin-bottom: 12px;
    }

    .modal-inner p {
        font-size: 24px;
    }

    .modal-code-box {
        margin-top: 24px;
        padding: 10px;
    }

    .modal-code-box input {
        font-size: 24px;
    }

    .modal-code-box .copy-button {
        height: 38px;
        width: 110px;
        font-size: 16px;
    }

    .modal-inner .modal-button-link {
        margin: 0 auto;
        margin-top: 20px;
        display: block;
        width: fit-content;
    }

    .modal-button-link .custom-button {
        width: 266px;
        height: 53px;
        font-size: 16px;
    }

    .modal-note {
        bottom: -110px;
    }

    .modal-win-heart-decoration-large {
        bottom: -20px;
        right: -120px;        
    }
}

@media (max-width: 767px) {
    .effect-container {
        left: 50%;
        
    }
}
