/** Initial **/
.main {
    background-color: #fdf2e5;
    margin-top: 0;
}

#content {
    background: linear-gradient(
        180deg,
        #ff7d51 11.94%,
        rgba(255, 204, 169, 0.756028) 30.87%,
        #fbe9df 70.52%,
        #fceae1 100%
    );
}

.font-base {
    letter-spacing: 0.03rem;
}

.font-shadow {
    text-shadow: 1px 2px 2.9px rgba(213, 34, 34, 0.51);
}

/* Firefox */
html {
    scrollbar-width: thin;
    scrollbar-color: #ff6b35 rgba(255, 179, 153, 0.3);
}

/* Chrome, Edge, Safari */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #ff6b35 0%, #ff8c66 100%);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #ff5722 0%, #ff7043 100%);
}

body {
    overflow-x: hidden;
    overflow-y: auto;
    margin: 0 auto;
}

/** Footer contact **/
#contact {
    margin-top: 90px;
    position: relative;
    min-height: 780px;
}

.footer-contact {
    padding-bottom: 100px;
    position: relative;
    min-height: 700px;
}

.footer-contact__fan {
    position: absolute;
    left: 0px;
    right: 0px;
    bottom: 60px;
    z-index: 2;
}

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

.footer-image-1 {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: absolute;
    left: 100px;
    bottom: 130px;
    right: 100px;
    z-index: 3;
}

.footer-image-1 img {
    flex: 1;
    width: auto;
    max-width: 100%;
    max-width: 50%;
}

.footer-image-2 {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: absolute;
    left: 0px;
    bottom: 90px;
    right: 0px;
    z-index: 4;
}

.footer-image-2 img {
    flex: 1;
    width: auto;
    max-width: 100%;
    max-width: 50%;
}

.footer-image-3 {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: absolute;
    left: 0px;
    bottom: -39px;
    right: 0px;
    z-index: 1;
}

.footer-image-3 img {
    flex: 1;
    width: auto;
    max-width: 100%;
    max-width: 50%;
}

.contact_section {
    width: 100%;
    margin: 0 auto;
    position: relative;
    z-index: 1;
    background-color: #fdf2e5;
    display: flex;
    justify-content: center;
    align-items: center;
}

.image_bg {
    width: 100%;
    text-align: center;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.image_bg img {
    display: block;
    width: 100%;
    height: auto;
    max-width: 100%;
}

.contact_btn {
    width: 369px;
    height: 187px;
    background-size: cover;
    background-position: center;
    display: flex;
    justify-content: center;
    align-items: center;
    background-repeat: no-repeat;
    position: absolute;
    z-index: 10;
    bottom: 90px;
    left: 50%;
    transform: translate(-50%, -50%);
    cursor: pointer;
    transform-origin: center center;
    animation: contact-btn-pulse 3s ease-in-out infinite;
    will-change: transform;
}

@keyframes contact-btn-pulse {
    0%,
    100% {
        transform: translate(-50%, -50%) scale(1);
    }

    50% {
        transform: translate(-50%, -50%) scale(1.05);
    }
}

.contact_btn:active {
    animation: none;
    transform: translate(-50%, -50%) scale(0.95);
}

.contact_btn a {
    font-family: var(--font-streetsign);
    text-align: center;
    background: transparent;
    border: none;
    color: #ffffff;
    font-size: 24px;
    font-weight: 400;
    text-transform: uppercase;
    padding: 20px 40px;
    cursor: pointer;
}

.contact_btn a:focus {
    outline: none;
}

/** Footer **/
#footer {
    position: relative;
    z-index: 10;
}

.footer-copyright {
    background: #fffbe9;
    position: relative;
}

.footer-copyright::before {
    content: "";
    position: absolute;
    left: 0px;
    top: 0px;
    width: calc(50% - 136px - 600px);
    background: url("./icon/footer-border.png") repeat-x;
    height: 21px;
}

.footer-copyright::after {
    content: "";
    position: absolute;
    right: 0px;
    top: 0px;
    width: calc(50% - 136px - 600px);
    background: url("./icon/footer-border.png") repeat-x;
    height: 21px;
}

.footer-copyright__flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 30px;
    padding-bottom: 30px;
}

.footer-copyright__social--list {
    display: flex;
    justify-content: end;
    align-content: center;
    gap: 15px;
}

.social-icon_event {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    transition: transform 0.3s ease, opacity 0.3s ease;
    text-decoration: none;
}

.social-icon_event:hover {
    transform: scale(1.1);
    opacity: 0.8;
}

.social-icon_event svg {
    width: 100%;
    height: 100%;
}

/** Footer infomation box **/
.footer-infomation {
    position: absolute;
    z-index: 3;
    bottom: calc(100% - 1px);
    left: 0px;
    right: 0px;
}

.footer-infomation__box {
    background: #fffbe9;
    padding-top: 47px;
    padding-bottom: 47px;
    text-align: center;
    position: relative;
    max-width: 900px;
    margin: 0 auto;
}

.footer-infomation__box:before {
    content: "";
    height: 1px;
    width: 90%;
    left: 0px;
    bottom: -1px;
    z-index: 11;
    right: 0px;
    margin: 0 auto;
    background: rgba(0, 0, 0, 0.3);
    position: absolute;
}

.footer-infomation__box:after {
    content: "";
    top: 0px;
    height: 21px;
    background: url("./icon/footer-border.png") repeat-x;
    width: 100%;
    left: 0px;
    position: absolute;
    z-index: 11;
}

.footer-infomation__box--left {
    position: absolute;
    right: 100%;
    top: 0px;
    z-index: 1;
}

.footer-infomation__box--right {
    position: absolute;
    left: 100%;
    top: 0px;
    z-index: 1;
}

.footer-infomation__title {
    font-family: "Montserrat", sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: #e13b3e;
    margin: 0 auto 15px auto;
    line-height: 1.3;
    text-align: center !important;
    display: block;
    width: 100%;
}

.footer-infomation__subtitle {
    font-family: "Montserrat", sans-serif;
    font-size: 16px;
    font-weight: 600;
    color: #333333;
    margin: 0;
    line-height: 1.5;
}

.footer-copyright__flex .text {
    font-family: "Montserrat", sans-serif;
    font-size: 14px;
    font-weight: 500;
    color: #333333;
    margin: 0;
}

/** Rules **/
.rules-customize {
    position: relative;
    padding-top: 100px;
    min-height: 500px;
    padding-bottom: 100px;
}

.rules-customize .icon-1 {
    position: absolute;
    left: 0px;
    top: 0px;
    z-index: 1;
}

.rules-customize .icon-2 {
    position: absolute;
    left: 0px;
    bottom: -60px;
    z-index: 1;
    animation: swingLantern 3.5s ease-in-out infinite;
    transform-origin: top center;
}

.rules-customize .icon-2-top {
    position: absolute;
    bottom: 64%;
    left: 0px;
    z-index: 1;
    animation: swingLantern 3.5s ease-in-out infinite;
    transform-origin: top center;
}

.rules-customize .icon-2-bottom {
    position: relative;
    z-index: 2;
}

.rules-customize .icon-3 {
    position: absolute;
    right: 0px;
    top: -80px;
    z-index: 0;
}

.rule-flex {
    display: flex;
    justify-content: space-between;
    gap: 24px;
}

.rule-flex__list--wrapper {
    overflow-x: hidden;
    overflow-y: auto;
    max-height: 670px;
    padding: 40px;
    margin: -40px;
    padding-right: 20px;
    margin-right: -20px;
}

.rule-flex__list--grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0px;
}

.rule-flex__list {
    width: 100%;
    max-width: 657px;
    flex: 1;
    position: relative;
    z-index: 2;
}

.rule-flex__item {
    width: 203px;
    height: 291px;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: end;
    padding: 20px;
    margin-bottom: 24px;
    transition: transform 0.3s ease, filter 0.3s ease;
    cursor: pointer;
}

.rule-flex__item:hover {
    transform: translateY(-5px) scale(1.05);
    filter: brightness(1.1) drop-shadow(0 10px 20px rgba(255, 65, 65, 0.3));
}

.rule-flex__item--text {
    font-family: var(--font-streetsign);
    font-weight: 400;
    font-size: 24px;
    line-height: 1.25;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    text-align: center;
    color: #ffffff;
    text-shadow: 2px 2px 3px rgba(139, 0, 0, 0.5),
        0 0 10px rgba(255, 255, 255, 0.3);
    margin: 0;
    z-index: 2;
    padding: 5px;
    text-align: center;
}

.rule-flex__list--heading {
    display: flex;
    justify-content: start;
    align-items: end;
    gap: 24px;
}

.rule-flex__list--heading h2 {
    font-size: 70px;
    letter-spacing: 0.04rem;
    font-family: var(--font-streetsign);
    background: linear-gradient(
        to right,
        rgba(223, 55, 54, 1),
        rgba(255, 129, 26, 1)
    );
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    display: inline-block;
    padding: 10px 0;
    margin-bottom: 10px;
}

.rule-flex__list--heading img {
    position: relative;
    top: -15px;
}

.rule-flex__info {
    position: relative;
    max-width: 476px;
    width: 100%;
    min-height: 700px;
    display: flex;
    justify-content: end;
}

.rule-flex__info-box {
    padding-top: 240px;
    width: 100%;
}

.rule-flex__info-box .bg {
    position: absolute;
    top: 0px;
    right: 0px;
}

.rule-flex__info-box .icon-note {
    position: absolute;
    left: -70px;
    top: 600px;
    z-index: 12;
}

.rule-flex__info-box .icon-gold {
    position: absolute;
    top: 155px;
    right: -30px;
    z-index: 10;
}

.rule-flex__info--heading {
    font-size: 48px;
    line-height: 46px;
    font-family: var(--font-streetsign);
    color: rgba(255, 56, 56, 1);
    text-transform: uppercase;
    position: absolute;
    right: 105px;
    top: 115px;
}

.rule-flex__info--list {
    overflow-y: auto;
    padding-left: 80px;
    max-height: 430px;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.rule-flex__info--list::-webkit-scrollbar {
    display: none;
}

.rule-flex__info--list .info {
    margin-bottom: 10px;
}

/** Result **/
#result {
    position: relative;
}

.result .icon1 {
    position: absolute;
    left: 0px;
    top: -210px;
    z-index: 1;
    animation: swingLanternOne 3.5s ease-in-out infinite;
    transform-origin: top center;
}

@keyframes swingLanternMobile {
    0%,
    100% {
        transform: rotate(-10deg);
    }

    50% {
        transform: rotate(5deg);
    }
}

.result .icon1 img{
    width: 100%;
    height: auto;
}

.result .icon2 {
    position: absolute;
    left: 50px;
    bottom: -50px;
    z-index: 4;
}

.result .icon3 {
    position: absolute;
    right: 0px;
    top: -300px;
    z-index: 5;
    max-width: 1150px;
    z-index: 2;
}

.result .icon3 img {
    width: 100%;
    height: auto;
}

.result .icon4 {
    position: absolute;
    left: -80px;
    bottom: -85px;
    z-index: 3;
}

.result-box {
    position: relative;
}

.result-box-content {
    position: absolute;
    left: 0px;
    top: 0px;
    right: 0px;
    z-index: 3;
}

.result-heading {
    position: relative;
}

.result-heading__bg {
    position: relative;
    z-index: 1;
}

.result-heading__bg .icon {
    position: absolute;
    bottom: 110px;
    left: -55px;
}

.result-heading__bg .icon-note {
    position: absolute;
    top: 135px;
    right: -25px;
}

.result-heading__title2 {
    font-size: 48px;
    line-height: 1.1;
    font-family: var(--font-streetsign);
    color: rgba(255, 56, 56, 1);
    text-transform: uppercase;
    position: absolute;
    left: 105px;
    top: 145px;
    z-index: 1;
    text-align: center;
}

.result-heading__title1 {
    font-size: 64px;
    line-height: 1;
    font-family: var(--font-streetsign);
    text-transform: uppercase;
    font-weight: 400;
    text-shadow: 4px 5px 0px rgba(102, 0, 0, 0.25);
    color: white;
    position: absolute;
    right: 140px;
    top: 50px;
}

.result-list__people {
    display: flex;
    justify-content: end;
    position: relative;
    margin-top: -100px;
    padding-right: 100px;
}

.result-list__people--content {
    width: 100%;
    max-width: 620px;
}

.lucky-list-rows {
    display: grid;
    gap: 14px;
    max-height: 400px;
    padding-right: 6px;
    overflow-y: auto;
    pointer-events: auto;
}

.lucky-list-rows::-webkit-scrollbar {
    width: 4px;
}

.lucky-list-rows::-webkit-scrollbar-track {
    background: transparent;
}

.lucky-list-rows::-webkit-scrollbar-thumb {
    background: rgba(255, 153, 120, 0.8);
    border-radius: 999px;
}
.lucky-list-row {
    position: relative;
    font-family: var(--font-streetsign);
    display: grid;
    grid-template-columns: 2fr 3fr auto;
    column-gap: 14px;
    align-items: center;
    background: linear-gradient(90deg, #fff6eb 0%, #ffe3cc 100%);
    border-radius: 40px;
    box-shadow: 0 6px 14px rgba(255, 114, 92, 0.18);
    pointer-events: auto;
    height: 67px;
    padding-left: 25px;
    padding-right: 25px;
}

.lucky-list-row-email {
    font-weight: 700;
    font-size: 16px;
    letter-spacing: 0.05em;
    color: #f08a67;
    text-transform: uppercase;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    min-width: 0;
}

.lucky-list-row-reward {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 6px;
    font-weight: 700;
    font-size: 13px;
    text-transform: uppercase;
    min-width: 0;
}

.lucky-list-row-reward span {
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.lucky-list-row-reward .voucher-text {
    color: #1b0c0a;
    font-size: 13px;
    line-height: 1;
}

.lucky-list-row-reward .reward-name {
    color: #f05b63;
    font-size: 14px;
    letter-spacing: 0.03rem;
    font-weight: 400;
    text-shadow: 1px 1px 1px rgba(118, 0, 0, 0.25);
}

.lucky-list-row-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    flex-shrink: 0;
}

.lucky-list-row-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 2px 6px rgba(255, 87, 87, 0.25));
    animation: gifticon-float 2.5s ease-in-out infinite;
}

.lucky-list-view-all {
    width: 100%;
    display: flex;
    justify-content: end;
    align-items: center;
    z-index: 10;
    margin-top: 20px;
}

.lucky-list-view-all-btn {
    width: 283px;
    height: 99px;
    border: none;
    cursor: pointer;
    color: #fff;
    font-family: var(--font-streetsign);
    font-weight: 400;
    font-size: 32px;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    filter: drop-shadow(0 8px 14px rgba(255, 97, 80, 0.35));
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94),
        filter 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    transform-origin: center center;
    animation: lucky-list-view-all-btn-pulse 3s ease-in-out infinite;
    will-change: transform, filter;
}

.lucky-list-view-all-btn:focus {
    outline: none;
    color: #fff;
    text-decoration: none;
}

.lucky-list-view-all-btn:focus-visible {
    animation: none;
    transform: scale(1.1);
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.7),
        0 0 0 6px rgba(255, 120, 90, 0.85);
    color: #fff;
    text-decoration: none;
}

.lucky-list-view-all-btn:active {
    animation: none;
    transform: scale(0.9) translateY(2px);
    filter: drop-shadow(0 3px 6px rgba(255, 97, 80, 0.4));
    transition: transform 0.1s ease-out, filter 0.1s ease-out;
    color: #fff;
    text-decoration: none;
}

@keyframes lucky-list-view-all-btn-pulse {
    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.06);
    }
}

.event_header .container {
    max-width: 1300px;
}

/** User ranks **/
.result-ranks {
    position: absolute;
    top: 131px;
    left: 70px;
    right: 0px;
    width: 100%;
    max-width: 554px;
    margin: 0 auto;
    z-index: 99;
}

.lucky-list-scoring {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    pointer-events: none;
}

.lucky-list-scoring-item {
    position: relative;
    flex: 1;
    max-width: 170px;
    text-align: center;
    color: #f74239;
    font-family: inherit;
    pointer-events: auto;
}

.lucky-list-scoring-card {
    position: relative;
    padding: 0px 18px 0px;
    border-radius: 26px;
    background: transparent;
}

.lucky-list-scoring-item:nth-child(2) {
    flex: 1;
}

.lucky-list-scoring-email {
    font-size: 16px;
    font-family: var(--font-streetsign);
    font-weight: 400;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    margin-bottom: 2px;
    color: #1b0c0a;
}

.lucky-list-scoring-desc {
    font-size: 16px;
    font-family: var(--font-streetsign);
    font-weight: 400;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    margin-bottom: 2px;
    color: #ff3838;
}

.lucky-list-scoring-rank-card {
    margin: 6px auto 0;
    width: 150px;
    height: 66px;
    border-radius: 17px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: inset -10px -9px 18px 0px rgba(0, 0, 0, 0.12),
        inset 9px 9px 26.2px 0px rgba(255, 242, 15, [opacity]);
}

.lucky-list-scoring-rank {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 14px;
    color: #ff3a3a;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.25);
}

.lucky-list-scoring-item:nth-child(2) .lucky-list-scoring-rank {
    width: 34px;
    height: 34px;
    font-size: 16px;
}

.lucky-list-scoring-item:nth-child(1) .lucky-list-scoring-rank-card {
    height: 89px;
    background: linear-gradient(
        to bottom,
        rgba(246, 87, 81, 1),
        rgba(239, 50, 53, 1)
    );
}

.lucky-list-scoring-item:nth-child(2) .lucky-list-scoring-rank-card {
    height: 148px;
    background: linear-gradient(
        to bottom,
        rgba(255, 227, 115, 1),
        rgba(239, 138, 50, 1)
    );
}

.lucky-list-scoring-item:nth-child(3) .lucky-list-scoring-rank-card {
    background: linear-gradient(
        to bottom,
        rgba(255, 166, 163, 1),
        rgba(255, 113, 115, 1)
    );
}

/** Lucky **/
.img-la {
    position: absolute;
    left: 0px;
    bottom: -18px;
    z-index: 20;
}

.luck-right__bottom {
    position: absolute;
    right: 0px;
    bottom: -100px;
    z-index: 99;
}

.luck-right__bottom .icon-coin {
    max-width: 424px;
    position: absolute;
    right: 100px;
    bottom: 60px;
    z-index: 5;
}

.luck-right__bottom .icon-coin img {
    width: auto;
    max-width: 100%;
    height: auto;
}

.luck-right__bottom .icon-bag {
    position: absolute;
    right: 98px;
    z-index: -1;
    bottom: 90px;
}

.luck-right__bottom .icon-cloud1 {
    position: relative;
    z-index: 4;
}

.lucky_draw_section {
    padding-top: 200px;
}

.lucky_draw_section .icon-cloud2 {
    z-index: 0;
    position: absolute;
    left: 0px;
    top: -100px;
}

.lucky_draw_section .icon-ld10 {
    position: absolute;
    right: 0px;
    top: 85px;
    z-index: 2;
    animation: swingLanternOne 3.5s ease-in-out infinite;
    transform-origin: top center;
}

.luck-right__bottom .icon-khan-one {
    position: absolute;
    right: 85px;
    bottom: 158px;
    z-index: -4;
}

.icon-khan-two {
    position: absolute;
    right: 0px;
    bottom: 0px;
    z-index: 1;
}

.lucky-list-section-outer {
    width: 100%;
    margin: 0 auto;
    padding-top: 60px;
    padding-bottom: 40px;
    box-sizing: border-box;
    pointer-events: none;
    z-index: 2;
    transform: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.lucky-list-frame {
    position: relative;
    width: min(860px, 96vw);
    margin: 0 auto;
    pointer-events: none;
}

.lucky-list-frame img {
    width: 100%;
    height: auto;
    display: block;
}

.lucky-list-name {
    position: absolute;
    left: 34%;
    top: 39%;
    transform: translate(-50%, -50%);
    width: 45%;
    font-family: var(--font-streetsign);
    font-weight: 400;
    font-size: 18px;
    line-height: 1.3;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    color: #000000;
    text-align: center;
    text-shadow: 1px 1px 1px rgba(118, 0, 0, 0.25);
    pointer-events: none;
    user-select: none;
}

.lucky-list-name .congratulation-text {
    color: #000000;
    display: inline;
}

.lucky-list-name .user-name {
    color: #ffd700;
    display: inline;
    font-size: 20px;
}

.lucky-list-name .voucher-text {
    color: #000000;
    display: inline;
}

.lucky-list-name .reward-name {
    color: #ff3838;
    display: inline;
}

.lucky_form--bg {
    position: relative;
    z-index: 0;
}

/** Media **/
@media (min-width: 1920px) {
    .luck-right__bottom .icon-bag {
        right: 218px;
    }
    .luck-right__bottom .icon-khan-one {
        right: 348px;
    }

    .icon-khan-two {
        right: 238px;
        top: 78px;
    }

    .result .icon4 {
        left: 0px;
    }
}

@media (min-width: 1600px) {
}

@media (max-width: 1440px) {
    .footer-infomation__box--left {
        right: calc(100% - 1px);
    }

    .footer-infomation__box--right {
        left: calc(100% - 1px);
    }
}

@media (max-width: 1366px) {
}

@media (max-width: 1366px) {
    .luck-right__bottom .icon-bag {
        right: 0px;
    }

    .luck-right__bottom .icon-khan-one {
        right: 76px;
    }

    .icon-khan-two {
        right: 7px;
        bottom: -34px;
    }

    .rule-flex__list--heading {
        margin-bottom: 35px;
    }
}
