/* Animation Keyframes */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-8px);
    }
}

@keyframes floatSubtle {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-5px);
    }
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }
}

@keyframes bounce {

    0%,
    100% {
        transform: translateX(0);
    }

    50% {
        transform: translateX(5px);
    }
}

@keyframes shimmer {
    0% {
        background-position: -1000px 0;
    }

    100% {
        background-position: 1000px 0;
    }
}

.section-1 {
    position: relative;
    overflow: hidden;
    isolation: isolate;
    min-height: 100vh;
    min-height: 100dvh;
}

/* Full-bleed hero image (replaces background-image) */
.section-1-background-picture {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    display: block;
}

.section-1 .responsive-background.frame-1-background {
    width: 100%;
    height: 100%;
    object-fit: fill;
    object-position: center top;
    display: block;
}

.section-1-logo-area {
    padding-left: 20px;
    padding-top: 20px;
    display: flex;
    flex-direction: column;
    justify-self: start;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
    animation: fadeIn 1s ease-out;
}

.section-1-logo {
    height: 100px;
    width: auto;
    transition: transform 0.3s ease;
}

.section-1-logo:hover {
    transform: scale(1.05);
}

.section-1-logo-extra {
    display: none;
    height: auto;
    width: auto;
    margin-top: 8px;
}

@media only screen and (min-width: 961px) {
    .section-1-logo-extra {
        display: block;
    }

    .section-1-logo {
        display: none;
    }
}

.section-1-age-rating {
    height: 110px;
    width: auto;
    transition: transform 0.3s ease;
}

.section-1-age-rating:hover {
    transform: scale(1.05);
}

.content-wrapper {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.section-1-left-col,
.section-1-right-col {
    display: none;
}

.section-1-center-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.section-1-title {
    text-align: center;
    font-size: 6rem;
    font-weight: bold;
    color: white;
}

.section-1-maintitle-text {
    height: 129px;
    width: auto;
    animation: fadeInUp 1s ease-out 0.3s both;
}

.section-1-subtitle {
    text-align: center;
}

.section-1-subtitle-text {
    height: 43px;
    width: auto;
    animation: fadeInUp 1s ease-out 0.5s both;
}

.resgister-count {
    margin-top: 40px;
    margin-bottom: 20px;
    animation: fadeInUp 1s ease-out 1.5s both;
    position: relative;
    display: inline-block;
}

.resgister-count>img {
    height: 37px;
    width: auto;
    display: block;
}

.register-count-digits {
    position: absolute;
    left: 8%;
    right: 8%;
    bottom: 9%;
    height: 66%;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    grid-template-rows: 1fr;
    column-gap: 3%;
    pointer-events: none;
}

.register-count-digit {
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: stretch;
    justify-content: center;
    align-self: stretch;
    min-height: 0;
    color: #6b2b00;
    font-family: "Montserrat", sans-serif;
    font-weight: 800;
    font-size: 25px;
    line-height: 1;
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.35);
    background: white;
    border-radius: 8px;
}

.register-count-reel {
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
    will-change: transform;
}

.register-count-reel span {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
}

.section-1-subtitle3 {
    animation: fadeInUp 1s ease-out 1.9s both;
}

.section-1-subtitle3>img {
    height: 66px;
    width: auto;
}

.section-1-rewards {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 60px;
    scroll-behavior: smooth;
    width: auto;
    /* overflow-y: hidden;
    overflow-x: hidden; */
}

.section-1-rewards::-webkit-scrollbar {
    width: 1px;
}

.section-1-reward-item {
    width: auto;
    flex-shrink: 0;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    opacity: 0;
    animation: fadeInUp 0.8s ease-out forwards;
}

.section-1-reward-item.animated {
    animation:
        fadeInUp 0.8s ease-out forwards,
        floatSubtle 4s ease-in-out infinite;
}

.section-1-reward-item.animated:hover {
    animation:
        fadeInUp 0.8s ease-out forwards,
        float 2s ease-in-out infinite !important;
}

.section-1-reward-item[data-animation-delay="0"] {
    animation-delay: 0.7s;
}

.section-1-reward-item[data-animation-delay="1"] {
    animation-delay: 0.85s;
}

.section-1-reward-item[data-animation-delay="2"] {
    animation-delay: 1s;
}

.section-1-reward-item[data-animation-delay="3"] {
    animation-delay: 1.15s;
}

.section-1-reward-item[data-animation-delay="4"] {
    animation-delay: 1.3s;
}

.section-1-reward-item::before {
    content: "";
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(135deg,
            transparent 30%,
            rgba(255, 255, 255, 0.3) 50%,
            transparent 70%);
    transform: translateX(-100%) translateY(-100%) rotate(90deg);
    transition: transform 1.2s ease;
    pointer-events: none;
    z-index: 1;
}

.section-1-reward-item:hover {
    transform: scale(1.1) translateY(-5px);
    filter: brightness(1.1);
    cursor: pointer;
    animation:
        float 2s ease-in-out infinite,
        fadeInUp 0.8s ease-out forwards !important;
}

.section-1-reward-item:hover::before {
    transform: translateX(100%) translateY(100%) rotate(45deg);
}

.section-1-reward-img {
    max-height: 354px;
    width: auto;
    display: block;
    transition: all 0.3s ease;
}

.section-1-arrow {
    height: 60px;
    width: 60px;
    flex-shrink: 0;
    opacity: 0;
    animation:
        fadeIn 0.5s ease-out 1.5s forwards,
        bounce 2s ease-in-out infinite 2s;
}

.section-1-cta {
    display: flex;
    justify-content: center;
    width: auto;
    margin: 10px 0;
}

.section-1-cta.cta-register {
    height: 96px;
    width: auto;
}

.section-1-cta-button {
    height: 69px;
    width: 327px;
    width: auto;
    cursor: pointer;
    transition: transform 0.3s ease;
    animation:
        fadeInUp 1s ease-out 1.7s both,
        pulse 2s ease-in-out infinite 2.7s;
}

.section-1-cta-button:hover {
    animation:
        fadeInUp 1s ease-out 1.7s both,
        pulse 1.5s ease-in-out infinite 2.7s !important;
}

.section-1-cta-button:hover {
    transform: scale(1.05);
}

/* ===================== DESKTOP ONLY (>960px) ===================== */
@media only screen and (min-width: 961px) {

    /* content-wrapper: row, căn dưới, chiếm full 100vh */
    .content-wrapper {
        flex-direction: row;
        align-items: flex-end;
        justify-content: space-between;
        min-height: 100vh;
        min-height: 100dvh;
        padding: 0 18% 48px 40px;
        gap: 32px;
    }

    /* Cột trái desktop: title + subtitle (static) */
    .section-1-left-col {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: flex-end;
        flex: 1;
        max-width: 50%;
    }

    .section-1-left-col .section-1-maintitle-text {
        height: 300px;
        max-width: 520px;
    }

    .section-1-left-col .section-1-subtitle-text {
        width: 65%;
        height: auto;
    }

    /* center-content hidden on desktop, rewards served by left-col */
    .section-1-center-content {
        display: none;
    }

    .section-1-left-col .section-1-rewards {
        justify-content: center;
        overflow: visible;
        flex-wrap: nowrap;
        width: 100%;
        margin-top: 16px;
        margin-bottom: 0;
        padding: 0;
    }

    .section-1-left-col .section-1-reward-img {
        max-height: 240px;
        width: auto;
    }

    /* Cột phải: register count + CTA */
    .section-1-right-col {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: flex-end;
        flex: 0 0 auto;
    }

    .section-1-right-col .resgister-count {
        margin-top: 0;
        margin-bottom: 16px;
        height: 221px;
        width: 568px;
    }

    .section-1-right-col .resgister-count>img {
        height: 221px;
        width: 568px;
    }

    .section-1-right-col .register-count-digits {
        left: 9%;
        right: 9%;
        bottom: 11%;
        height: 63%;
    }

    .section-1-right-col .register-count-digit {
        font-size: 56px;
    }

    .section-1-right-col .section-1-cta {
        margin: 0;
    }

    .section-1-right-col .section-1-cta.cta-register {
        height: auto;
    }

    .section-1-right-col .section-1-cta-button {
        height: 130px;
        width: auto;
    }

    /* Logo scale theo breakpoint */
    .section-1-logo {
        height: calc(100px * 0.73);
    }
}

@media only screen and (min-width: 961px) and (max-width: 1300px) {

    /* content-wrapper: row, căn dưới, chiếm full 100vh */
    .content-wrapper {
        flex-direction: row;
        align-items: flex-end;
        justify-content: space-between;
        min-height: 100vh;
        min-height: 100dvh;
        padding: 0px 16% 48px 48px;
        gap: 32px;
    }

    /* Cột trái desktop: title + subtitle (static) */
    .section-1-left-col {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: flex-end;
        flex: 1;
        max-width: 50%;
    }

    .section-1-left-col .section-1-maintitle-text {
        height: 200px;
        max-width: 520px;
    }

    .section-1-left-col .section-1-subtitle-text {
        width: 65%;
        height: auto;
    }

    /* center-content hidden on desktop, rewards served by left-col */
    .section-1-center-content {
        display: none;
    }

    .section-1-left-col .section-1-rewards {
        justify-content: center;
        overflow: visible;
        flex-wrap: nowrap;
        width: 100%;
        margin-top: 16px;
        margin-bottom: 0;
        padding: 0;
    }

    .section-1-left-col .section-1-reward-img {
        max-height: 200px;
        width: auto;
    }

    /* Cột phải: register count + CTA */
    .section-1-right-col {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: flex-end;
        flex: 0 0 auto;
    }

    .section-1-right-col .resgister-count {
        margin-top: 0;
        margin-bottom: 16px;
        height: 138px;
        width: 355px;
    }

    .section-1-right-col .resgister-count>img {
        height: 138px;
        width: 355px;
    }

    .section-1-right-col .register-count-digits {
        left: 9%;
        right: 9%;
        bottom: 11%;
        height: 63%;
    }

    .section-1-right-col .register-count-digit {
        font-size: 56px;
    }

    .section-1-right-col .section-1-cta {
        margin: 0;
    }

    .section-1-right-col .section-1-cta.cta-register {
        height: auto;
    }

    .section-1-right-col .section-1-cta-button {
        height: 90px;
        width: auto;
    }

    /* Logo scale theo breakpoint */
    .section-1-logo {
        height: calc(100px * 0.73);
    }
}

@media only screen and (max-width: 960px) {
    .section-1 {
        padding: 20vh 0 32px;
    }

    .section-1-logo-area {
        padding: 10px 0 0 10px;
        gap: 0;
    }

    .content-wrapper {
        flex-direction: column;
        align-items: center;
        min-height: unset;
        padding: 0;
        max-width: 100%;
    }

    .section-1-center-content {
        display: flex;
    }

    .section-1-left-col,
    .section-1-right-col {
        display: none;
    }

    .section-1-logo {
        height: 50px;
    }

    .section-1-age-rating {
        height: 55px;
    }

    .section-1-subtitle-text {
        width: 70vw;
        height: calc(70vw * 0.3489);
    }

    .section-1-center-content {
        width: 100%;
    }

    .section-1-maintitle-text {
        width: 95vw;
        height: calc(95vw * 0.4976);
        aspect-ratio: 1069 / 532;
        /* backup cho browser cũ */
    }

    .section-1-rewards {
        overflow-x: auto;
        overflow-y: hidden;
        gap: 4px;
        padding: 12px 60px 12px 40px;
        width: 100%;
        margin-top: 0px;
        height: auto;
    }

    .resgister-count {
        margin-top: 0px;
        margin-bottom: 0px;
        height: 110px;
        width: 284px;
    }

    .section-1-cta.cta-register {
        height: 50px;
        margin: 5px 0;
    }

    .section-1-subtitle3>img {
        height: 42px;
        margin-bottom: 20px;
    }

    .section-1-reward-img {
        height: 170px;
    }

    .section-1-arrow {
        height: 30px;
        width: 30px;
    }

    .section-1-cta {
        height: 100px;
    }

    .resgister-count>img {
        height: 110px;
        width: 284px;
    }

    .register-count-digits {
        left: 9%;
        right: 9%;
        bottom: 11%;
        height: 63%;
    }

    .register-count-digit {
        font-size: 34px;
    }

    /* Disable hover effects on mobile */
    .section-1-reward-item:hover {
        transform: none;
        filter: none;
        cursor: default;
    }

    .section-1-reward-item:hover::before {
        transform: translateX(-100%) translateY(-100%) rotate(90deg);
    }
}

/* Mobile */
@media only screen and (max-width: 650px) {
    .section-1-rewards {
        justify-content: flex-start;
    }
}

@media only screen and (max-width: 460px) {}