/* Rubik: chi dung rieng cho trang Thadingyut Lucky Lantern (tieu de + so
   diem tren long den), khong khai bao trong font.css dung chung toan site.
   File variable font (chi subset latin, khong can Myanmar/Arabic/...) de
   giu dung luong nho (~35KB). */
@font-face {
    font-family: 'Rubik';
    src: url(../fonts/Rubik-VariableFont_wght.woff2) format('woff2');
    font-weight: 400 800;
    font-display: swap;
}
@font-face {
    font-family: 'NotoSansMyanmar';
    src: url(../fonts/NotoSansMyanmar.ttf) format('truetype');
    font-weight: 400;
    font-display: swap;
}
body {
  font-family: "NotoSansMyanmar", sans-serif;
}

.lantern-screen {
    position: relative;
    width: 100%;
    max-width: 768px;
    margin: 0 auto;
    background: #480485  ;
    min-height: 100vh;
    font-family: 'NotoSansMyanmar', 'Inter', sans-serif;
    color: #f7f6f5;

}
.lantern-screen-his {
    position: relative;
    width: 100%;
    max-width: 768px;
    height: 100vh;
    margin: 0 auto;
    background: #480485  ;
    overflow: hidden;
    font-family: 'NotoSansMyanmar', 'Inter', sans-serif;
    color: #f7f6f5;

}

.lantern-screen-main {
    position: relative;
    width: 100%;
    max-width: 768px;
    min-height: 100vh;
    margin: 0 auto;
    background: linear-gradient(180deg, #0A0547 5%, #540899 65%, #190545 100%);
    isolation: isolate;

    overflow: hidden;
    font-family: 'NotoSansMyanmar', 'Inter', sans-serif;
    color: #f7f6f5;
}
.lantern-screen a, .lantern-screen-main a {
    color: inherit;
    text-decoration: none;
}
.radial {
    background-blend-mode: screen;
    width: 100%;
    height: 278px;
    position: absolute;
    left: 50%;
    top: 465px;
    transform: translate(-51%, -50%);
    z-index: 0;
    pointer-events: none;
    mix-blend-mode: screen;
    object-fit: cover;
    /* object-position: center; */
    z-index: -17;
}
.radial-bottom {
        background-blend-mode: screen;
    width: 200%;
    height: 424px;
    position: absolute;
    left: 50%;
    bottom: -66%;
    transform: translate(-50%, -50%);
    z-index: 0;
    pointer-events: none;
    mix-blend-mode: screen;
    object-fit: cover;
    /* object-position: center; */
    z-index: -17;
}

/* ---------- Background decorative layers ---------- */
.lantern-bg-stars,
.lantern-bg-stars-lantern,
.lantern-bg-ellipse-1,
.lantern-bg-ellipse-2,
.lantern-bg-glow,
.lantern-bg-mountain {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    display: block;
    max-width: none;
    pointer-events: none;
}
.lantern-bg-stars-lantern {
     
    width: 100%; 
    height: 410px;
    top: 10%;
    position: absolute;
    left: 0;
    bottom: 0;
    transform: translate(0%, 0%);
    display: block;
    max-width: none;
    pointer-events: none;
    object-fit: cover;
    object-position: center;
    mix-blend-mode: lighten;
}


.lantern-bg-stars { 
    top: 0; 
    width: 100%; 
    height: 385px;
    object-fit: cover;
    object-position: center;
}
.lantern-bg-ellipse-1 { top: 337px; width: 737px; height: 198px; }
.lantern-bg-ellipse-2 { top: 476px; width: 849px; height: 424px; }
.lantern-bg-glow {
    left: calc(50% - 54px);
    top: 130px;
    width: 653px;
    height: 354px;
    object-fit: cover;
    mix-blend-mode: lighten;
}
.lantern-bg-mountain {
    top: 411px;
    width: 138%;
    height: 161px;
    /* object-fit: cover; */
    -webkit-mask-image: linear-gradient(to bottom, black 70%, transparent 100%);
    mask-image: linear-gradient(to bottom, black 70%, transparent 100%);
}


/* ---------- Top bar ---------- */
.lantern-topbar {
    position: fixed;
    z-index: 10;
    left: 50%;
    transform: translateX(-50%);
    top: 0;
    width: 100%;
    max-width: 768px;
    padding: 28px 16px 8px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-sizing: border-box;
    background: transparent;
    transition: background-color 0.2s ease, box-shadow 0.2s ease;
}
.lantern-topbar.is-scrolled {
    background-color: rgba(18, 18, 20, 0.40);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    backdrop-filter: blur(6px);
}
.lantern-topbar__title {
    display: flex;
    align-items: center;
    gap: 4px;
    color:white !important;
}
.lantern-topbar__back {
    width: 28px;
    height: 28px;
    flex-shrink: 0;
}
.lantern-topbar__text {
    font-weight: 500;
    font-size: 18px;
    line-height: 28px;
    white-space: nowrap;
}
.lantern-topbar__home {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 35px;
    height: 35px;
    padding: 6px;
    background: #121214;
    border: 1px solid #474b52;
    border-radius: 44px;
}

/* ---------- Stats row ---------- */
.lantern-stats {
    position: absolute;
    z-index: 5;
    left: 50%;
    transform: translateX(-50%);
    top: 80px;
    width: 100%;
    padding: 0 16px;
    display: flex;
    gap: 8px;
    box-sizing: border-box;
}
.lantern-stat-card {
    flex: 1 0 0;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 8px 12px;
    border-radius: 12px;
    background: linear-gradient(to bottom, #510793, #140a4f);
    box-sizing: border-box;
}
.lantern-stat-card__label {
    font-size: 12px;
    line-height: 18px;
    color: #babdc2;
}
.lantern-stat-card__value-row {
    display: flex;
    align-items: center;
    gap: 2px;
}
.lantern-stat-card__value {
    font-weight: 600;
    font-size: 18px;
    line-height: 28px;
    color: #f7f6f5;
}
.lantern-stat-card__icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}
.lantern-stat-card__icon--sm {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}
.lantern-stat-card__rank {
    font-weight: 500;
    font-size: 12px;
    line-height: 18px;
    color: #29e590;
    white-space: nowrap;
}

/* ---------- CTA buttons ---------- */
.lantern-cta-row {
    position: absolute;
    z-index: 5;
    left: 50%;
    transform: translateX(-50%);
    top: 500px;
    width: 100%;
    padding: 0 16px;
    display: flex;
    gap: 8px;
    box-sizing: border-box;
}
.lantern-cta-full {
    position: relative;
    flex: 1 0 0;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px 16px;
    border: 0;
    border-radius: 16px;
    overflow: hidden;
    cursor: pointer;
    font-family: 'NotoSansMyanmar', 'Inter', sans-serif;
    font-weight: 700;
    font-size: 16px;
    line-height: 24px;
    color: #220e37;
}
.lantern-cta {
    position: relative;
    flex: 1 0 0;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    margin:0;
    border: 0;
    border-radius: 16px;
    overflow: hidden;
    cursor: pointer;
    font-family: 'NotoSansMyanmar', 'Inter', sans-serif;
    font-weight: 700;
    font-size: 16px;
    line-height: 24px;
    color: #220e37;
}
.lantern-cta--x1 { background: #8926ad; }
.lantern-cta--x5 { background: #ff7b00; }
.lantern-cta--x2 { background: #E9D476 ; }
.lantern-cta:disabled {
    background: #9197A1;
    color: #6C707A;
    cursor: not-allowed;
}
.lantern-cta:disabled .outer-bg,
.lantern-cta:disabled .lantern-btn {
    background: #9197A1;
}
.lantern-cta:disabled .lantern-cta__label {
    color: #6C707A;
}
.lantern-cta__glow {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 451px;
    height: 92px;
    max-width: none;
    pointer-events: none;
    mix-blend-mode: screen;
}
.lantern-cta__label {
    position: relative;
    z-index: 1;
    color: #220E37;
}
.lantern-cta-white__label {
    position: relative;
    z-index: 1;
    color: #F7F6F5;
}
.outer-bg {
    width: 100%;
    /* padding: 20px; */
    box-sizing: border-box;
}

.lantern-btn {
    width: 100%;
    height: 64px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.outer-bg.pink {
    background: linear-gradient(135deg, #2e0e63 0%, #4c1c96 100%);
}
.lantern-btn.pink {
    background: radial-gradient(ellipse at center, #f5dad3 0%, #dda8ce 45%, #c586bb 100%);
}

.outer-bg.yellow {
    background: linear-gradient(135deg, #2e0e63 0%, #4c1c96 100%);
}
.lantern-btn.yellow {
    background: linear-gradient(180deg, #ffaa22 0%, #ffe66e 50%, #ffaa22 100%);
}

/* ---------- Bottom quick nav ---------- */
.lantern-quicknav {
    position: absolute;
    z-index: 5;
    left: 50%;
    transform: translateX(-50%);
    top: 570px;
    width: 100%;
    padding: 0 16px;
    display: flex;
    gap: 4px;
    justify-content: center;
    box-sizing: border-box;
}
.lantern-quicknav__item {
    flex: 1 0 0;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: stretch;
    gap: 2px;
    background: none;
    border: 0;
    padding: 0;
    color: inherit;
    font-family: 'NotoSansMyanmar', 'Inter', sans-serif;
    cursor: pointer;
}
.lantern-quicknav__icon-box {
    display: flex;
    padding: 10px;
    border-radius: 12px;
    background: linear-gradient(to bottom, #510793, #140a4f);
    box-sizing: border-box;
}
.lantern-quicknav__icon-box img {
    width: 28px;
    height: 28px;
}
.lantern-quicknav__label {
    font-size: 12px;
    line-height: 18px;
    text-align: center;
    color: #f7f6f5;
}

/* ---------- Lantern field (auto layout, no per-item left/top) ----------
   Drop .lantern-field anywhere in the page; it self-arranges every
   .lantern-item from the {each} loop on a grid, so adding/removing/reordering
   lanterns in $lanterns never needs hand-tuned pixel coordinates. */
.lantern-field {
    position: absolute;
    z-index: 3;
    left: 0;
    top: 222px;
    width: 100%;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: 130px;
    align-items: center;
    justify-items: center;
    /* padding: 0 12px; */
    box-sizing: border-box;
}

/* ---------- Lantern item wrapper (lamp + badge as one unit) ----------
   Sized to match its lamp footprint so the grid can center it; the
   lamp/badge offsets inside are shared defaults, not per-instance styles. */
.lantern-item {
    position: relative;
}
.lantern-item .b-glow {
    position: absolute;
    top:-12px;
    left:-4%;
    display: block;
    max-width: none;
    z-index: -1;
    opacity: 0;
    mix-blend-mode: screen;
}
.lantern-item .b-glow.big {
    transform: scale(1.3);
    left:10px;
}
.lantern-item.is-active .b-glow {
    opacity: 1;
}
.lantern-item--small-1 .b-glow,
.lantern-item--small-2 .b-glow,
.lantern-item--small-3 .b-glow,
.lantern-item--small-4 .b-glow,
.lantern-item--small-5 .b-glow { left: -1.98px; top: -11.05px; width: 100%; }
.lantern-item--big .b-glow { left: 12.53px; top: 1.03px; width: 73.508px; height: 73.508px; }
.lantern-item--small {
    width: 65.457px;
    height: 80.371px;
}
.lantern-item--big {
    width: 98.186px;
    height: 120.557px;
}
.lantern-item .lantern-lamp,
.lantern-item .lantern-lamp--small,
.lantern-item .lantern-lamp--big {
    left: 0;
    top: 0;
}
.lantern-item.lantern-item--big {
    left: 16.01px;
    top: -13.63px;
     transform: scale(1.8);
}
.lantern-item.lantern-item--small-1{
    left: 11.72px;
    top: -15.32px;

}
.lantern-item.lantern-item--small-2{
    left: 11.72px;
    top: -2.32px;

}
.lantern-item.lantern-item--small-3{
    left: 11.72px;
    top: 13.68px;

}
.lantern-item.lantern-item--small-4{
    left: 11.72px;
    top: 2.68px;

}
.lantern-item.lantern-item--small-5{
    left: 11.72px;
    top: -8.68px;

}

/* ---------- Lantern lamp silhouette (rope + glow body) ---------- */
/* .lantern-lamp,
.lantern-lamp--small,
.lantern-lamp--big {
    position: absolute;
    z-index: 3;
} */
.lantern-lamp img,
.lantern-lamp--small img,
.lantern-lamp--big img {
    position: absolute;
    display: block;
    max-width: none;
}
.lantern-lamp .lp-base,
.lantern-lamp--small .lp-base,
.lantern-lamp--big .lp-base {
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
}
.lantern-lamp .lp-screen,
.lantern-lamp--small .lp-screen,
.lantern-lamp--big .lp-screen {
    mix-blend-mode: screen;
}
.lantern-lamp--small { width: 65.457px; height: 80.371px; }
.lantern-lamp--big { width: 98.186px; height: 120.557px; }

.lantern-lamp--small .lp-1 { left: 11.13px; top: -11.29px; width: 45.091px; height: 9.181px; }
.lantern-lamp--small .lp-2 { left: 3.28px; top: -83.95px; width: 28.538px; height: 77.573px; }
.lantern-lamp--small .lp-3 { left: 29.57px; top: -83.96px; width: 32.281px; height: 75.835px; }
.lantern-lamp--small .lp-4 { left: 11.13px; top: -11.29px; width: 45.091px; height: 8.008px; }
.lantern-lamp--small .lp-5 { left: 29.58px; top: -83.97px; width: 13.927px; height: 73.747px; }
.lantern-lamp--small .lp-6 { left: 9.87px; top: -80.52px; width: 12.252px; height: 72.696px; }

.lantern-lamp--big .lp-1 { left: 16.7px; top: 11.07px; width: 67.632px; height: 13.772px; }
.lantern-lamp--big .lp-2 { left: 4.92px; top: -97.93px; width: 42.805px; height: 116.369px; }
.lantern-lamp--big .lp-3 { left: 44.35px; top: -97.95px; width: 48.419px; height: 113.762px; }
.lantern-lamp--big .lp-4 { left: 16.7px; top: 11.07px; width: 67.632px; height: 12.013px; }
.lantern-lamp--big .lp-5 { left: 44.37px; top: -97.96px; width: 20.89px; height: 110.63px; }
.lantern-lamp--big .lp-6 { left: 14.81px; top: -92.78px; width: 18.377px; height: 109.053px; }

/* ---------- Lantern value badge (glow + number) ---------- */
.lantern-badge {
    position: absolute;
    z-index: 4;
}
.lantern-badge img {
    position: absolute;
    display: block;
    max-width: none;
}
.lantern-badge--small { width: 33.564px; height: 52.502px; }
.lantern-badge--big { width: 76.676px; height: 48.144px; }

.lantern-badge--small .b-ellipse-1 { left: -26.17px; top: -17.92px; width: 85.368px; height: 53.592px; }
.lantern-badge--small .b-ellipse-2 { left: -12.99px; top: 6.58px; width: 58.503px; height: 58.503px; }
.lantern-badge--small .b-base,
.lantern-badge--small .b-clover { left: 0.18px; top: 19.23px; width: 33.199px; height: 33.199px; }

.lantern-badge--big .b-ellipse-1 { left: -24.56px; top: -54.82px; width: 124.037px; height: 149.855px; }
.lantern-badge--big .b-ellipse-2 { left: 0.81px; top: -1.65px; width: 73.508px; height: 73.508px; }
.lantern-badge--big .b-ellipse-3 { left: -33.42px; top: -35.88px; width: 141.443px; height: 64.983px; }
.lantern-badge--big .b-base { left: 15.82px; top: 12.96px; width: 43.303px; height: 43.303px; }

.lantern-badge--small .b-clover {
    border-radius: 50%;
    overflow: hidden;
}
.lantern-badge--small .b-clover img {
    left: -9.5%;
    top: -12%;
    width: 119%;
    height: auto;
}

.b-value {
    position: absolute;
    left: 50%;
    top: 0;
    transform: translateX(-50%) rotate(-0.4deg);
    text-align: center;
    font-weight: 600;
    white-space: nowrap;
    background: linear-gradient(to bottom, #ffea7e 10%, #fae955 40%, #f9c700 90%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    text-shadow: 0px 1px 0px #42146f;
}
.lantern-badge--small .b-value { font-size: 16px; line-height: 15px; }
.lantern-badge--big .b-value { font-size: 22px; line-height: 20px; top: -14px; }

/* =====================================================================
   Event End screen (thadingyut_lucky_lantern_end.htm)
   ===================================================================== */

/* Responsive wrapper: the card itself keeps its Figma mobile size
   (375px) and stays centered; the wrapper widens through the site's
   own container steps (750/970/1160) so it sits properly on tablet
   and desktop instead of floating in a full-bleed 375px column. */
.lantern-end-page {
    width: 100%;
}
/* Mobile lớn / Phablet */
@media (max-width: 576px) {

    .lantern-end-content {
        padding-top: 220px !important;
    }
}
@media (min-width: 576px) {
    .lantern-bg-stars {
        height: 438px;
    }
    .lantern-end-content {
        padding-top: 240px !important;
    }
    .lantern-bg-mountain {
        top: 447px;
        height: 229px;
    }
    .lantern-cta-row {
        top:529px; 
    }
    .lantern-quicknav {
        top:610px;
    }
}


@media (min-width: 768px) {
    .lantern-bg-stars {
        height: 515px;
    }
     .lantern-end-content {
        padding-top: 285px !important;
    }

    .lantern-end-page {
        max-width: 750px;
        margin: 0 auto;
        /* padding: 32px 0; */
        background: radial-gradient(ellipse at center, #2a1052 0%, #0c0612 100%);
    }
    .lantern-lb-podium__card {
        margin-bottom: -24px !important;
    }
    .lantern-bg-mountain {
        top: 447px;
        height: 293px;
    }
}
@media (min-width: 992px) {
    .lantern-end-page { max-width: 970px; }
}
@media (min-width: 1200px) {
    .lantern-end-page { max-width: 1160px; }
}

.lantern-end-glow {
    position: absolute;
    left: calc(50% - 54px);
    top: 26px;
    width: 653px;
    height: 354px;
    max-width: none;
    object-fit: cover;
    mix-blend-mode: lighten;
    pointer-events: none;
}
.lantern-end-ellipse-3,
.lantern-end-ellipse-4,
.lantern-end-ellipse-5 {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 849px;
    max-width: none;
    display: block;
    pointer-events: none;
}
.lantern-end-ellipse-3 { top: -15px; height: 383px; }
.lantern-end-ellipse-5 { top: 59px; height: 183px; }
.lantern-end-ellipse-4 { top: -7px; height: 341px; }

.lantern-end-lamp-field {
    position: absolute;
    inset: 0;
    pointer-events: none;
}
.lantern-end-lamp-field .lantern-lamp { opacity: .85; }

.lantern-end-hero {
    position: absolute;
    z-index: 4;
    left: 50%;
    top: 35px;
    width: 283px;
    height: 212px;
    transform: translateX(-50%) rotate(5deg);
}
.lantern-end-hero img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.lantern-end-content {

    z-index: 5;
    width: 100%;
    padding: 0 16px;

    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    text-align: center;
}

.lantern-end-content__title {
    position: relative;
   font-family: 'Rubik';
    font-size: 24px;
    font-style: normal;
    font-weight: 900;
    line-height: 28px;
    text-align: center;

    /* Màu vàng bên trong chữ */
    background: linear-gradient(
        180deg,
        #FFEA7E 10%,
        #FAE955 40.38%,
        #F9C700 89.9%
    );
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;

    /* Viền tím bên ngoài */
    -webkit-text-stroke: 1.3px #42146F;

    /* Không dùng shadow vàng/tím */
    text-shadow: none;


}
.lantern-end-content-box__desc {
    width: 100%;
    margin:auto;
    text-align: center;
}
.lantern-end-content__desc {
    position: relative;
    font-size: 12px;
    line-height: 16px;
    color: #BABDC2;
    width: 320px;
    max-width: 100%;
    margin: 0 auto;
    margin-bottom: 15px;
}
.lantern-end-content__desc b { font-weight: 700; }

.lantern-end-content-prize__desc {
    position: relative;
    font-size: 12px;
    line-height: 20px;
    color: #F7F6F5;
    width: 320px;
    max-width: 100%;
    margin: 0 auto;
    margin-bottom: 15px;
}
.lantern-end-content-prize__desc b { font-weight: 700; }

.lantern-end-cta-btn {
    flex: none;
    width: 100%;
    margin: 10px 0;
}
.lantern-end-cta {
    position: absolute;
    z-index: 5;
    left: 50%;
    transform: translateX(-50%);
    top: 50%;
    width: 100%;
    padding: 0 16px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.lantern-end-panel {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 2px;
    border-radius: 16px;
    overflow: hidden;
}
.lantern-end-box {
    background: rgba(18, 18, 20, 0.7);
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
    padding: 12px;
}
.lantern-end-box__head {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 0;
    background: none;
    border: 0;
    color: inherit;
    font-family: 'NotoSansMyanmar', 'Inter', sans-serif;
    cursor: pointer;
}
.lantern-end-box__head-label {
    flex: 1 0 0;
    text-align: left;
    font-weight: 600;
    font-size: 16px;
    line-height: 24px;
    color: #f7f6f5;
}
.lantern-end-box__chevron {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    transition: transform .2s ease;
}
.lantern-end-box.is-open .lantern-end-box__chevron { transform: rotate(180deg); }
.lantern-end-box__body {
    overflow: hidden;
    max-height: 0;
    transition: max-height .25s ease;
}
.lantern-end-box__body span {
    white-space: pre-line;
}
.lantern-end-box.is-open .lantern-end-box__body {
    max-height: 500px;
    margin-top: 12px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
}
.lantern-end-box__body::-webkit-scrollbar { width: 6px; }
.lantern-end-box__body::-webkit-scrollbar-track { background: transparent; }
.lantern-end-box__body::-webkit-scrollbar-thumb { background: #474b52; border-radius: 3px; }

.lantern-end-table {
    width: 100%;
    border: 2px solid #474b52;
    border-collapse: collapse;
    border-radius: 12px;
    overflow: hidden;
    font-family: 'NotoSansMyanmar', 'Inter', sans-serif;
    font-size: 14px;
    line-height: 20px;
}
.lantern-end-table th,
.lantern-end-table td {
    border: 1px solid #474b52;
    padding: 8px 6px;
    color: #babdc2;
    font-weight: 400;
    text-align: center;
}
.lantern-end-table thead th {
    position: sticky;
    top: 0;
    z-index: 1;
    background: #37343d;
    font-weight: 600;
}
.lantern-end-table tbody td { background: #232126; }
.lantern-end-table__reward {
    color: #ba84f7 !important;
    font-weight: 600 !important;
}

/* =====================================================================
   SweetAlert2 dark skin - dung cho cac Swal.fire() trong su kien
   Thadingyut Lucky Lantern. Mac dinh SweetAlert2 la popup nen trang,
   tuong phan manh voi nen toi cua su kien nen bi hieu nham la "chop
   trang" khi popup nay hien ra ngay truoc luc chuyen trang (vd: sau khi
   mua goi/kich hoat xong roi redirect sang main.htm).
   ===================================================================== */
.lantern-swal-popup {
    width: 90%;
    max-width: 343px;
    padding: 24px 20px;
    border-radius: 16px;
    background-image: linear-gradient(180deg, #510793 0%, rgba(8, 4, 55, 0) 60%);
    background-color: #222426;
    border: 1px solid #474b52;
    box-shadow: 0 12px 32px rgba(8, 4, 20, .5);
    font-family: 'NotoSansMyanmar', 'Inter', sans-serif;
}
.lantern-swal-popup .swal2-title {
    padding: 0;
    margin: 0 0 8px;
    font-weight: 600;
    font-size: 20px;
    line-height: 30px;
    color: #f7f6f5;
}
.lantern-swal-popup .swal2-html-container {
    margin: 0;
    font-size: 14px;
    line-height: 20px;
    color: #babdc2;
}
.lantern-swal-popup .swal2-icon {
    margin-top: 0;
    margin-bottom: 12px;
}
.lantern-swal-popup .swal2-actions {
    width: 100%;
    margin: 20px 0 0;
}
.lantern-swal-close {
    top: 12px;
    right: 12px;
    color: #babdc2 !important;
    font-family: 'NotoSansMyanmar', 'Inter', sans-serif;
    transition: color .2s ease;
}
.lantern-swal-close:hover {
    color: #f7f6f5 !important;
}
.lantern-swal-close:focus {
    box-shadow: none;
}
.lantern-swal-confirm {
    flex: 1 0 0;
    height: 48px;
    min-height: 48px;
    margin: 0 !important;
    padding: 0 16px !important;
    border: 0 !important;
    border-radius: 16px !important;
    background: #ff7b00 !important;
    box-shadow: none !important;
    font-family: 'NotoSansMyanmar', 'Inter', sans-serif;
    font-weight: 700;
    font-size: 16px;
    color: #220e37 !important;
}
.lantern-swal-confirm:focus {
    box-shadow: none !important;
}

/* =====================================================================
   Reward received popup (shown after a spin, demo screen only)
   ===================================================================== */
.lantern-reward-popup {
    display: none;
    position: fixed;
    z-index: 20;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    align-items: center;
    justify-content: center;
    padding: 16px;
    box-sizing: border-box;
    background: rgba(8, 4, 20, .7);
}
.lantern-reward-popup.is-open {
    display: flex;
}
.lantern-reward-dialog {
    position: relative;
    width: 100%;
    max-width: 343px;
    border-radius: 16px;
    overflow: hidden;
    background-image: linear-gradient(180deg, #510793 0%, rgba(8, 4, 55, 0) 100%);
    background-color: #222426;
}
.lantern-reward-content {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    padding: 16px 16px 0;
}
.lantern-reward-content--quick {
    padding-bottom: 16px;
}
.lantern-reward-mountain {
    position: absolute;
    z-index: 0;
    left: 50%;
    top: 82px;
    width: 565px;
    height: 184px;
    max-width: none;
    transform: translateX(-50%);
    pointer-events: none;
}
.lantern-reward-title {
    position: relative;
    z-index: 1;
    width: 100%;
    margin: 0;
    font-weight: 600;
    font-size: 20px;
    line-height: 30px;
    text-align: center;
    color: #f7f6f5;
}
.lantern-reward-cards {
    position: relative;
    z-index: 1;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
}
.lantern-reward-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    width: 98px;
    padding: 8px 8px 4px;
    border-radius: 12px;
    background: #222426;
    box-sizing: border-box;
}
.lantern-reward-card__icon {
    display: block;
    width: 44px;
    height: 44px;
}
.lantern-reward-card__icon img {
    display: block;
    width: 100%;
    height: 100%;
}
.lantern-reward-card__icon--clover {
    position: relative;
    border-radius: 50%;
    overflow: hidden;
}
.lantern-reward-card__icon--clover img {
    /* position: absolute;
    left: -9.5%;
    top: -12%;
    width: 119%;
    height: auto; */
}
.lantern-reward-card__title {
    margin: 0;
    font-size: 14px;
    line-height: 20px;
    color: #f7f6f5;
    text-align: center;
}
.lantern-reward-card__score {
    margin: 0;
    font-size: 12px;
    line-height: 18px;
    color: #babdc2;
    text-align: center;
}

/* Single-result variant (btn-light-lantern-1): one big icon over a flat
   shadow ellipse instead of the small boxed card used for multi-result (x5). */
.lantern-reward-card--single {
    width: auto;
    padding: 0;
    gap: 8px;
    background: none;
}
.lantern-reward-card__icon-wrap {
    position: relative;
    width: 99px;
    height: 98px;
}
.lantern-reward-card__icon-shadow {
    position: absolute;
    left: 0;
    bottom: 0;
    width: 99px;
    height: 26px;
    border-radius: 50%;
    background: #3d1180;
}
.lantern-reward-card--single .lantern-reward-card__icon {
    position: absolute;
    left: 50%;
    top: 0;
    transform: translateX(-50%);
    width: 88px;
    height: 88px;
}
.lantern-reward-card--single .lantern-reward-card__title {
    font-weight: 600;
    font-size: 20px;
    line-height: 30px;
}
.lantern-reward-card--single .lantern-reward-card__score {
    font-size: 12px;
    line-height: 18px;
}
.lantern-reward-actions {
    position: relative;
    z-index: 1;
    display: flex;
    gap: 8px;
    padding: 16px;
    box-sizing: border-box;
}
.lantern-cta--close {
    background: #36393d;
    color: #f7f6f5;
}

/* =====================================================================
   Leaderboard screen (thadingyut_lucky_lantern_leaderboard.htm)
   ===================================================================== */
.lantern-lb-page {
    padding-bottom: 90px;
}

.lantern-lb-sheet {
    position: relative;
    z-index: 5;
    width: 100%;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: linear-gradient(180deg, #080437 5%, #510793 65%, #080437 100%);
    height: calc(100% + 30px);
}
.lantern-lb-sheet__header {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    padding: 16px;
    box-sizing: border-box;
}
.lantern-lb-sheet__title {
    flex: 1 0 0;
    margin: 0;
    font-weight: 600;
    font-size: 18px;
    line-height: 28px;
    color: #f7f6f5;
}
.lantern-lb-close {
    display: block;
    width: 28px;
    height: 28px;
    flex-shrink: 0;
}
.lantern-lb-close img {
    display: block;
    width: 100%;
    height: 100%;
}
.lantern-lb-sheet__mountain {
    position: absolute;
    z-index: 0;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 100%;
    max-width: none;
    opacity: .8;
    pointer-events: none;
}

/* ---------- Top 3 podium ---------- */
.lantern-lb-body {
    position: relative;
    z-index: 2;
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
    padding: 0 16px 16px;
    overflow: hidden;
    box-sizing: border-box;
}
.lantern-lb-podium {
    display: flex;
    align-items: flex-end;
    margin-bottom: -24px;
}
.lantern-lb-podium__col {
    flex: 1 0 0;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.lantern-lb-podium__col--1 { order: 2; }
.lantern-lb-podium__col--2 { order: 1; }
.lantern-lb-podium__col--3 { order: 3; }
.lantern-lb-podium__card {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    width: 100%;
    max-width: 111px;
    margin-bottom: -14px;
    padding: 8px 4px;
    border-radius: 16px;
    background: rgba(18, 18, 20, .7);
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
    box-sizing: border-box;
}
.lantern-lb-podium__badge {
    width: 48px;
    height: 48px;
}
.lantern-lb-podium__account {
    margin: 0;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 12px;
    line-height: 18px;
    color: #babdc2;
}
.lantern-lb-podium__score {
    margin: 0;
    font-weight: 500;
    font-size: 16px;
    line-height: 24px;
    color: #ba84f7;
}
.lantern-lb-podium__riser {
    width: 100%;
    background: linear-gradient(to bottom, #45289d, rgba(67, 7, 105, 0));
}
.lantern-lb-podium__riser--1 { height: 96px; }
.lantern-lb-podium__riser--2 { height: 68px; }
.lantern-lb-podium__riser--3 { height: 44px; }

/* ---------- Rank table (4th place and below) ---------- */
.lantern-lb-table-wrap {
    position: relative;
    z-index: 1;
    flex: 1 1 auto;
    min-height: 0;
    max-height: 50vh;
    /* margin-top: 32px; */
    padding-bottom: 12px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
}
.lantern-lb-table-wrap::-webkit-scrollbar { width: 6px; }
.lantern-lb-table-wrap::-webkit-scrollbar-track { background: transparent; }
.lantern-lb-table-wrap::-webkit-scrollbar-thumb { background: #474b52; border-radius: 3px; }
.lantern-lb-table thead th:first-child,
.lantern-lb-table tbody td:first-child {
    text-align: center;
}

/* ---------- Rules box ---------- */
.lantern-lb-rules {
    flex: 0 0 auto;
    background: rgba(18, 18, 20, 0.7);
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
    border-radius: 12px;
    margin-bottom: 5px;
    padding: 12px;
    box-sizing: border-box;
}
.lantern-lb-rules__head {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 0;
    background: none;
    border: 0;
    color: inherit;
    font-family: 'NotoSansMyanmar', 'Inter', sans-serif;
    cursor: pointer;
}
.lantern-lb-rules__label {
    flex: 1 0 0;
    text-align: left;
    font-weight: 600;
    font-size: 16px;
    line-height: 24px;
    color: #f7f6f5;
}
.lantern-lb-rules__chevron {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    transition: transform .2s ease;
}
.lantern-lb-rules.is-open .lantern-lb-rules__chevron { transform: rotate(180deg); }
.lantern-lb-rules__body {
    overflow: hidden;
    max-height: 0;
    transition: max-height .25s ease;
}
.lantern-lb-rules.is-open .lantern-lb-rules__body {
    max-height: 45vh;
    margin-top: 12px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
}
.lantern-lb-rules__body::-webkit-scrollbar { width: 6px; }
.lantern-lb-rules__body::-webkit-scrollbar-track { background: transparent; }
.lantern-lb-rules__body::-webkit-scrollbar-thumb { background: #474b52; border-radius: 3px; }
.lantern-lb-rules__text {
    margin: 0;
    width: auto;
    text-align: left;
    font-size: 12px;
    line-height: 21px;
    color: #babdc2;
}
.lantern-lb-rules__text span { white-space: pre-line; }

/* ---------- Sticky "your score" bar ---------- */
.lantern-lb-myscore {
    position: fixed;
    width:100%;
    max-width:768px;
    bottom: 0;
    z-index: 6;
    padding: 8px 16px;
    background: #232126;
    box-sizing: border-box;
    padding-bottom: 30px;
}
.lantern-lb-myscore__row {
    display: flex;
    width: 100%;
    border: 1px solid #e09628;
    border-radius: 12px;
    overflow: hidden;
    box-sizing: border-box;
}
.lantern-lb-myscore__cell {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px 6px;
    border-right: 1px solid #e09628;
    background: linear-gradient(180deg, #ffaa22 0%, #ffe66e 50%, #ffaa22 100%);
    color: #220e37;
    font-weight: 600;
    font-size: 14px;
    line-height: 20px;
    box-sizing: border-box;
}
.lantern-lb-myscore__cell:last-child { border-right: 0; }
.lantern-lb-myscore__cell--rank { width: 64px; flex-shrink: 0; }
.lantern-lb-myscore__cell--label { flex: 1 0 0; justify-content: flex-start; }
.lantern-lb-myscore__cell--score { width: 72px; flex-shrink: 0; }

/* =====================================================================
   History screen (thadingyut_lucky_lantern_history.htm)
   ===================================================================== */
.lantern-history-page {
    display: flex;
    flex-direction: column;
    background: linear-gradient(180deg, #080437 5%, #510793 65%, #080437 100%);
}
.lantern-history-header {
    position: relative;
    z-index: 4;
    display: flex;
    align-items: center;
    padding: 16px;
    box-sizing: border-box;
}
.lantern-history-header__title {
    flex: 1 0 0;
    margin: 0;
    font-weight: 600;
    font-size: 18px;
    line-height: 28px;
    color: #f7f6f5;
}
.lantern-history-close {
    display: block;
    width: 28px;
    height: 28px;
    flex-shrink: 0;
}
.lantern-history-close img {
    display: block;
    width: 100%;
    height: 100%;
}
.lantern-history-body {
    position: relative;
    z-index: 3;
    /* flex: 1 1 auto; */
    min-height: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 8px 16px;
    box-sizing: border-box;
}

.lantern-table-scroll {
    flex: 1 1 auto;
    min-height: 0;
    /* max-height: 50vh; */
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
}
.lantern-table-scroll::-webkit-scrollbar { width: 6px; }
.lantern-table-scroll::-webkit-scrollbar-track { background: transparent; }
.lantern-table-scroll::-webkit-scrollbar-thumb { background: #474b52; border-radius: 3px; }
.lantern-history-mountain {
    position: absolute;
    z-index: 2;
    left: 50%;
    top: 74%;
    transform: translateX(-50%);
    width: 100%;
    max-width: none;
    display: block;
    pointer-events: none;
}

body.no-scroll {
    overflow: hidden;
}

/* =====================================================================
   Shop screen (thadingyut_lucky_lantern_shop.htm)
   ===================================================================== */
.lantern-shop-page {
    display: flex;
    flex-direction: column;
}
.lantern-shop-sheet {
    flex: 1 0 0;
    margin-top: 0;
}
.lantern-shop-body {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 8px 16px 16px;
    box-sizing: border-box;
}
.lantern-shop-desc {
    margin: 0;
    font-size: 16px;
    line-height: 24px;
    color: #babdc2;
}
.lantern-shop-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.lantern-shop-item {
    display: flex;
    align-items: center;
    gap: 2px;
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #5d289d;
    border-radius: 12px;
    background: #232126;
    color: inherit;
    font-family: 'NotoSansMyanmar', 'Inter', sans-serif;
    text-align: left;
    cursor: pointer;
    box-sizing: border-box;
}
.lantern-shop-item__info {
    display: flex;
    flex: 1 0 0;
    min-width: 0;
    flex-direction: column;
    gap: 2px;
}
.lantern-shop-item__name {
    font-weight: 600;
    font-size: 16px;
    line-height: 24px;
    color: #ba84f7;
}
.lantern-shop-item__price {
    font-size: 12px;
    line-height: 18px;
    color: #6c707a;
}
.lantern-shop-item__turns {
    flex-shrink: 0;
    font-weight: 600;
    font-size: 18px;
    line-height: 28px;
    color: #f7f6f5;
    white-space: nowrap;
}
.lantern-shop-item__icon {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

/* ---------- Snack bar toast (purchase result) ---------- */
.lantern-toast-wrap {
    position: fixed;
    z-index: 30;
    left: 50%;
    bottom: 20px;
    transform: translateX(-50%);
    width: 100%;
    max-width: 768px;
    padding:0 15px;
    pointer-events: none;
}
.lantern-toast {
    display: flex;
    align-items: center;
    width: 100%;
    border-radius: 8px;
    background: #36393d;
    box-shadow: 0 0 4px rgba(0, 0, 0, .2);
    box-sizing: border-box;
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px);
    transition: opacity .25s ease, transform .25s ease, visibility 0s linear .25s;
    pointer-events: none;
}
.lantern-toast.is-open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
    transition: opacity .25s ease, transform .25s ease;
}
.lantern-toast__icon {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    padding: 8px 0 8px 8px;
}
.lantern-toast__icon img {
    display: block;
    width: 24px;
    height: 24px;
}
.lantern-toast__text {
    flex: 1 0 0;
    min-width: 0;
    margin: 0;
    padding: 10px;
    font-family: 'NotoSansMyanmar', 'Inter', sans-serif;
    font-size: 14px;
    line-height: 20px;
    word-break: break-word;
}
.lantern-toast--success .lantern-toast__text { color: #29e590; }
.lantern-toast--danger .lantern-toast__text { color: #babdc2; }
.lantern-toast__close {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    padding: 8px;
    background: none;
    border: 0;
    cursor: pointer;
}
.lantern-toast__close img {
    display: block;
    width: 24px;
    height: 24px;
}
