html,
body {
    overflow-x: hidden;
    font-family: "Kanit", sans-serif;
}

#section-1-2 {
    background: url(../images/phase-2/main-bg.jpg) center center no-repeat;
    background-size: cover;
    padding-top: 10rem;
    overflow: hidden;
}

.text-title-wrap {
    position: relative;
    width: 100%;
    max-width: 82.5rem;
    margin-inline: auto;
    container-type: inline-size;
}

.text-title-wrap__logo {
    display: block;
    width: 100%;
}

.text-title {
    font-size: clamp(0.6rem, 4.2cqw, 2.2rem);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    text-shadow: none;
    text-align: center;
    position: absolute;
    top: 88.8%;
    left: 50%;
    width: 50%;
    margin: 0;
    transform: translate(-50%, -50%) rotate(-3deg);
    white-space: nowrap;
}

.text-title__cursor {
    display: inline-block;
    margin-left: 0.1em;
    animation: text-title-cursor-blink 0.75s step-end infinite;
}

.text-title__cursor.is-done {
    animation: none;
    opacity: 0;
}

@keyframes text-title-cursor-blink {
    50% {
        opacity: 0;
    }
}

@supports not (container-type: inline-size) {
    .text-title {
        font-size: clamp(0.6rem, 3.2vw, 2.2rem);
    }
}

@media (max-width: 991.98px) {
    .text-title {
        top: 88.5%;
        width: 52%;
    }
}

@media (max-width: 767.98px) {
    .text-title {
        top: 88.2%;
        width: 56%;
        font-size: clamp(0.5rem, 3.4cqw, 1.5rem);
        transform: translate(-50%, -50%) rotate(-2.5deg);
    }
}

@media (max-width: 575.98px) {
    .text-title {
        top: 88.2%;;
        width: 60%;
        font-size: clamp(0.45rem, 3.2cqw, 1.1rem);
        letter-spacing: 0.01em;
    }
}

.section-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.section-actions__detail {
    width: min(100%, 32rem);
    text-align: center;
}

.section-actions__stores {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    flex-wrap: nowrap;
}

.section-actions__stores .btn-load {
    /* max-width: 16rem; */
}

.section-actions__stores .btn-load img {
    width: 100%;
    height: auto;
}

#section-1-2 .section-actions__detail .btn-detail {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    aspect-ratio: 266 / 77;
    padding: 0 1.5rem;
    border-radius: 0.75rem;
    background: linear-gradient(101deg, #F40 0%, #FF9365 100%);
    box-shadow: 0 0 9.1px 0 #FF2600;
    color: #fff;
    font-size: clamp(1.125rem, 3.2vw, 1.875rem);
    font-weight: 600;
    line-height: 1.2;
    text-decoration: none;
    transition: background 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease, filter 0.25s ease;
}

#section-1-2 .section-actions__detail .btn-detail:hover {
    background: linear-gradient(101deg, #FF9365 0%, #F40 100%);
    box-shadow: 0 0 14px 0 #FF2600;
    color: #fff;
    transform: scale(1.05);
    filter: drop-shadow(0 0 0.75rem rgba(255, 147, 101, 0.75));
}

@media (max-width: 767.98px) {
    .section-actions {
        gap: 1.25rem;
    }

    .section-actions__detail {
        width: min(100%, 24rem);
    }

    .section-actions__stores .btn-load {
        max-width: 14rem;
    }

    #section-1-2 .section-actions__detail .btn-detail {
        font-size: clamp(0.9375rem, 4vw, 1.25rem);
    }
}

/* .item-1 {
    position: absolute;
    top: 0%;
    right: 4%;
    z-index: 1;
}

.item-2 {
    position: absolute;
    bottom: 12%;
    right: 0%;
    z-index: 1;
}

.item-3 {
    position: absolute;
    top: 7%;
    left: 6%;
    z-index: 1;
}

.item-4 {
    position: absolute;
    bottom: 32%;
    left: 0%;
    z-index: 1;
}

.item-5 {
    position: absolute;
    bottom: 32%;
    right: 20%;
    z-index: 1;
}

.item-6 {
    position: absolute;
    top: 40%;
    left: 15%;
    z-index: 1;
}

.item-7 {
    position: absolute;
    top: 35%;
    right: 12%;
    z-index: 1;
}

.item-8 {
    position: absolute;
    bottom: 8%;
    left: 25%;
    z-index: 1;
} */

/* #section-1-2.items-burst-pending img[class*="item-"] {
    opacity: 0;
}

#section-1-2 img[class*="item-"].is-item-burst {
    animation: item-burst-scatter 0.95s cubic-bezier(0.22, 1.2, 0.36, 1) both;
    will-change: transform, opacity;
}

@keyframes item-burst-scatter {
    0% {
        opacity: 0;
        transform: translate(var(--burst-x, 0), var(--burst-y, 0)) scale(0.12) rotate(var(--burst-rotate, 0deg));
    }

    42% {
        opacity: 1;
        transform: translate(calc(var(--burst-x, 0) * 0.06), calc(var(--burst-y, 0) * 0.06)) scale(1.1) rotate(calc(var(--burst-rotate, 0deg) * 0.15));
    }

    62% {
        transform: translate(calc(var(--burst-x, 0) * -0.02), calc(var(--burst-y, 0) * -0.02)) scale(0.96) rotate(calc(var(--burst-rotate, 0deg) * -0.08));
    }

    78% {
        transform: translate(calc(var(--burst-x, 0) * 0.01), calc(var(--burst-y, 0) * 0.01)) scale(1.03) rotate(0deg);
    }

    100% {
        opacity: 1;
        transform: translate(0, 0) scale(1) rotate(0deg);
    }
} */

.main-menu {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.25rem 1rem;
    background: linear-gradient(180deg, #141414 0%, rgba(0, 27, 52, 0.00) 100%);
    box-shadow: 0 1px 3px 0 rgba(16, 24, 40, 0.08);
    color: #fff;
    font-size: 1rem;
    position: fixed;
    width: 100%;
    height: 6.4375rem;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

.logo-menu a {
    display: inline-block;
    transition: transform 0.25s ease, opacity 0.25s ease;
}

.logo-menu a:hover {
    transform: scale(1.05);
    opacity: 0.85;
}

.nav-enter-site {
    border-radius: 4.625rem;
    background: linear-gradient(101deg, #F40 0%, #FF9365 100%);
    box-shadow: 0 0 9.1px 0 #FF2600;
    display: flex;
    padding: 0.875rem 2.1875rem;
    justify-content: center;
    align-items: center;
    gap: 0.625rem;
    color: #fff;
    text-decoration: none;
    font-size: 1rem;
    text-transform: uppercase;
    transition: background 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;

    a {
        color: #FFF;
        text-shadow: 0 0 4px #AD145B, 0 0 4px #AD145B;
        font-size: 1.5rem;
        font-weight: 600;
        line-height: normal;
        text-decoration: none;
        display: contents;
    }
}

.nav-enter-site:hover {
    background: linear-gradient(101deg, #FF9365 0%, #F40 100%);
    box-shadow: 0 0 14px 0 #FF2600;
    transform: scale(1.03);
}

.btn-load {
    display: inline-block;
    transition: transform 0.25s ease, filter 0.25s ease;
}

.btn-load:hover {
    transform: scale(1.05);
    filter: drop-shadow(0 0 0.75rem rgba(255, 147, 101, 0.75));
}

#section-1 {
    background: url(../images/bg-sec-1.jpg) center center no-repeat;
    background-size: cover;
    padding-top: 10rem;
    overflow: hidden;
}

@keyframes sec1-burst-up {
    0% {
        opacity: 0;
        transform: translateY(70%) scale(0.25);
    }

    45% {
        opacity: 1;
        transform: translateY(-14%) scale(1.12);
    }

    62% {
        transform: translateY(7%) scale(0.94);
    }

    78% {
        transform: translateY(-4%) scale(1.04);
    }

    90% {
        transform: translateY(2%) scale(0.98);
    }

    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes sec1-char-left-burst {
    0% {
        opacity: 0;
        transform: translateY(90%) scale(0.2) rotate(-18deg);
    }

    42% {
        opacity: 1;
        transform: translateY(-10%) scale(1.08) rotate(4deg);
    }

    60% {
        transform: translateY(6%) scale(0.96) rotate(-2deg);
    }

    78% {
        transform: translateY(-3%) scale(1.02) rotate(1deg);
    }

    100% {
        opacity: 1;
        transform: translateY(0) scale(1) rotate(0deg);
    }
}

@keyframes sec1-char-right-burst {
    0% {
        opacity: 0;
        transform: translateY(90%) scale(0.2) rotate(18deg);
    }

    42% {
        opacity: 1;
        transform: translateY(-10%) scale(1.08) rotate(-4deg);
    }

    60% {
        transform: translateY(6%) scale(0.96) rotate(2deg);
    }

    78% {
        transform: translateY(-3%) scale(1.02) rotate(-1deg);
    }

    100% {
        opacity: 1;
        transform: translateY(0) scale(1) rotate(0deg);
    }
}

@keyframes sec1-line-rise {
    0% {
        opacity: 0;
        transform: translateY(100%);
    }

    55% {
        opacity: 1;
        transform: translateY(-6%);
    }

    75% {
        transform: translateY(3%);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

#section-1 .logo-world-cup {
    transform-origin: center bottom;
    animation: sec1-burst-up 1s cubic-bezier(0.22, 1.2, 0.36, 1) 0.1s both;
    overflow: visible;
}

#section-1 .row.row-cols-2 .col:first-child .btn-load {
    transform-origin: center bottom;
    animation: sec1-burst-up 0.95s cubic-bezier(0.22, 1.2, 0.36, 1) 0.35s both;
}

#section-1 .row.row-cols-2 .col:last-child .btn-load {
    transform-origin: center bottom;
    animation: sec1-burst-up 0.95s cubic-bezier(0.22, 1.2, 0.36, 1) 0.5s both;
}

#section-1 .char img:first-child {
    transform-origin: left bottom;
    animation: sec1-char-left-burst 1.05s cubic-bezier(0.22, 1.2, 0.36, 1) 0.55s both;
}

#section-1 .char img:last-child {
    transform-origin: right bottom;
    animation: sec1-char-right-burst 1.05s cubic-bezier(0.22, 1.2, 0.36, 1) 0.7s both;
}

#section-1 .line-section {
    animation: sec1-line-rise 0.85s cubic-bezier(0.22, 1.2, 0.36, 1) 0.25s both;
}

@media (prefers-reduced-motion: reduce) {

    #section-1-2.items-burst-pending img[class*="item-"],
    #section-1-2 img[class*="item-"].is-item-burst {
        animation: none;
        opacity: 1;
        transform: none;
    }

    #section-1 .logo-world-cup,
    #section-1 .row.row-cols-2 .col:first-child .btn-load,
    #section-1 .row.row-cols-2 .col:last-child .btn-load,
    #section-1 .char img:first-child,
    #section-1 .char img:last-child,
    #section-1 .line-section {
        animation: none;
        opacity: 1;
        transform: none;
    }

    .ball {
        animation: none;
        transform: translate(-50%, -50%);
    }
}

@keyframes sec1-ball-spin {
    from {
        transform: translate(-50%, -50%) rotate(0deg);
    }

    to {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

.ball {
    min-width: 15%;
    position: absolute;
    top: 66%;
    left: 45%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 5;
    animation: sec1-ball-spin 4s linear infinite;
}

@media (max-width: 1440.98px) {
    .ball {
        left: 43%;
    }
}

@media (max-width: 1199.98px) {
    .ball {
        display: none;
    }
}

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

.char img:first-child {
    position: absolute;
    bottom: 0;
    left: -18%;
}

.char img:last-child {
    position: absolute;
    bottom: 0;
    right: -9%;
}

@media (max-width: 1440.98px) {
    .char {
        display: none;
    }
}

.line-section {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
}

#section-2 {
    background: url(../images/bg-sec-2.jpg) center center repeat;
    padding: 6rem 0 4rem;
}

.sec2-layout {
    display: flex;
    align-items: flex-end;
    gap: 0.5rem;
}

.sec2-layout__char {
    flex: 0 0 38%;
    max-width: 38%;
    line-height: 0;
    align-self: flex-end;
    margin-right: -2%;
    position: relative;
    z-index: 2;
}

.sec2-layout__content {
    flex: 1 1 62%;
    min-width: 0;
    text-align: center;
}

.sec2-layout__title {
    display: block;
    width: 100%;
    max-width: 36rem;
    margin-inline: auto;
}

.sec2-rewards {
    margin-top: 1.25rem;
}

.sec2-rewards__items {
    display: flex;
    flex-wrap: nowrap;
    justify-content: space-between;
    gap: 0.375rem;
}

@property --sec2-neon-angle {
    syntax: "<angle>";
    initial-value: 0deg;
    inherits: false;
}

.sec2-rewards__item {
    flex: 1 1 0;
    min-width: 0;
    position: relative;
    overflow: visible;
    --sec2-neon-mask-inner: 90%;
}

.sec2-rewards__item:nth-child(1) {
    --sec2-item-mask: url("../images/item-1.png");
}

.sec2-rewards__item:nth-child(2) {
    --sec2-item-mask: url("../images/item-2.png");
}

.sec2-rewards__item:nth-child(3) {
    --sec2-item-mask: url("../images/item-3.png");
}

.sec2-rewards__item:nth-child(4) {
    --sec2-item-mask: url("../images/item-4.png");
}

.sec2-rewards__item:nth-child(5) {
    --sec2-item-mask: url("../images/item-5.png");
}

.sec2-rewards__item:nth-child(6) {
    --sec2-item-mask: url("../images/item-6.png");
}

.sec2-rewards__item::before,
.sec2-rewards__item::after {
    -webkit-mask-image: var(--sec2-item-mask), var(--sec2-item-mask);
    mask-image: var(--sec2-item-mask), var(--sec2-item-mask);
    -webkit-mask-size: 100% 100%, var(--sec2-neon-mask-inner) var(--sec2-neon-mask-inner);
    mask-size: 100% 100%, var(--sec2-neon-mask-inner) var(--sec2-neon-mask-inner);
    -webkit-mask-position: center, center;
    mask-position: center, center;
    -webkit-mask-repeat: no-repeat, no-repeat;
    mask-repeat: no-repeat, no-repeat;
    -webkit-mask-composite: xor;
    mask-composite: exclude;
}

.sec2-rewards__item::before {
    content: "";
    position: absolute;
    inset: 0;
    background: conic-gradient(from var(--sec2-neon-angle),
            transparent 0deg,
            transparent 265deg,
            #39ff14 300deg,
            #00ff88 320deg,
            #ccff00 340deg,
            #00ffcc 350deg,
            #39ff14 360deg);
    animation: sec2-neon-run 2.4s linear infinite;
    z-index: 3;
    pointer-events: none;
    filter:
        blur(0.5px) drop-shadow(0 0 0.35rem rgba(57, 255, 20, 1)) drop-shadow(0 0 0.75rem rgba(0, 255, 136, 0.9)) drop-shadow(0 0 1.25rem rgba(0, 255, 120, 0.7)) drop-shadow(0 0 2rem rgba(57, 255, 20, 0.45));
}

.sec2-rewards__item::after {
    content: "";
    position: absolute;
    inset: 0;
    background: transparent;
    box-shadow:
        0 0 0.5rem rgba(0, 255, 120, 0.75),
        0 0 1rem rgba(0, 255, 100, 0.55),
        0 0 1.75rem rgba(57, 255, 20, 0.4),
        0 0 2.75rem rgba(0, 255, 136, 0.25);
    pointer-events: none;
    z-index: 4;
    animation: sec2-neon-pulse 2.4s ease-in-out infinite;
}

.sec2-rewards__item img {
    position: relative;
    z-index: 1;
    display: block;
    width: 100%;
    height: auto;
}

.sec2-rewards__item:nth-child(2)::before,
.sec2-rewards__item:nth-child(2)::after {
    animation-delay: -0.4s;
}

.sec2-rewards__item:nth-child(3)::before,
.sec2-rewards__item:nth-child(3)::after {
    animation-delay: -0.8s;
}

.sec2-rewards__item:nth-child(4)::before,
.sec2-rewards__item:nth-child(4)::after {
    animation-delay: -1.2s;
}

.sec2-rewards__item:nth-child(5)::before,
.sec2-rewards__item:nth-child(5)::after {
    animation-delay: -1.6s;
}

.sec2-rewards__item:nth-child(6)::before,
.sec2-rewards__item:nth-child(6)::after {
    animation-delay: -2s;
}

@keyframes sec2-neon-run {
    to {
        --sec2-neon-angle: 360deg;
    }
}

@keyframes sec2-neon-pulse {

    0%,
    100% {
        opacity: 0.75;
    }

    50% {
        opacity: 1;
    }
}

@media (prefers-reduced-motion: reduce) {

    .sec2-rewards__item::before,
    .sec2-rewards__item::after {
        animation: none;
    }
}

.sec2-rewards__banner {
    margin-top: 0.625rem;
}

.sec2-rewards__banner a {
    display: inline-block;
    transition: transform 0.25s ease, filter 0.25s ease;
}

.sec2-rewards__banner a:hover {
    transform: scale(1.05);
    filter: drop-shadow(0 0 0.875rem rgba(57, 255, 20, 0.8));
}

@media (max-width: 991.98px) {
    #section-2 {
        padding: 4rem 0 3rem;
    }

    .sec2-layout {
        flex-direction: column;
        align-items: center;
    }

    .sec2-layout__char {
        flex: none;
        max-width: min(25rem, 75%);
        margin-bottom: 1rem;
        margin-right: 0;
        align-self: center;
        margin-inline: auto;
    }

    .sec2-layout__char img {
        display: block;
        margin-inline: auto;
    }

    .sec2-layout__content {
        width: 100%;
    }
}

@media (max-width: 767.98px) {
    .sec2-rewards__items {
        flex-wrap: wrap;
        justify-content: center;
    }

    .sec2-rewards__item {
        flex: 0 0 calc(33.333% - 0.4375rem);
        max-width: calc(33.333% - 0.4375rem);
    }
}