/* Lottery (ຫວຍພັດທະນາ): the card ([mxt_lottery_card]) and the page ([mxt_lottery_board]). */
.mxt-lot-tiles { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 6px; perspective: 600px; }
.mxt-lot-tiles b {
    display: flex; align-items: center; justify-content: center; aspect-ratio: 3 / 4; border-radius: 10px;
    font: 700 34px/1 Phetsarath, sans-serif; font-variant-numeric: tabular-nums; color: #15181C;
    background: linear-gradient(180deg, #FFFFFF 0%, #F3F0E6 100%); box-shadow: inset 0 -3px 0 rgba(0, 0, 0, .12), 0 6px 14px rgba(0, 0, 0, .28);
}
.mxt-lot-tiles.is-fresh b { animation: mxt-lot-flip .55s cubic-bezier(.2, .8, .2, 1) both; animation-delay: calc(var(--i) * 90ms); }
@keyframes mxt-lot-flip { from { opacity: 0; transform: rotateX(-90deg) translateY(-10px); } }
.mxt-lot-clock { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.mxt-lot-clock span { padding: 8px 2px 6px; text-align: center; border-radius: 12px; background: #173F35; color: #F5F0E4; }
.mxt-lot-clock span > b { display: block; font: 700 26px/1.1 Phetsarath, sans-serif; font-variant-numeric: tabular-nums; color: #F3C95B; }
.mxt-lot-clock small { display: block; margin-top: 2px; font-size: 10px; line-height: 1.2; opacity: .85; }
.mxt-lot-clock.is-soon span { background: #B3261E; animation: mxt-lot-pulse 1s ease-in-out infinite alternate; }
.is-waiting .mxt-lot-clock span { background: #B3261E; }
.is-waiting .mxt-lot-clock span > b { animation: mxt-lot-blink 1s steps(2, start) infinite; }
@keyframes mxt-lot-pulse { to { background: #D33A2F; } }
@keyframes mxt-lot-blink { to { opacity: .25; } }
.mxt-lotcard__live { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px 3px 8px; font-size: 11px; font-weight: 700; letter-spacing: .06em; color: #fff; background: #D0161F; border-radius: 999px; }
.mxt-lotcard__live i { width: 8px; height: 8px; border-radius: 50%; background: #fff; animation: mxt-lot-blink .9s steps(2, start) infinite; }
.mxt-lotcard__glow { position: absolute; z-index: 0; top: -60px; right: -40px; width: 240px; height: 240px; border-radius: 50%; pointer-events: none; background: radial-gradient(circle, rgba(243, 201, 91, .3), rgba(243, 201, 91, 0) 68%); animation: mxt-fuel-drift 9s ease-in-out infinite alternate; }
.is-new .mxt-lot-tiles b { box-shadow: inset 0 -3px 0 rgba(0, 0, 0, .12), 0 0 0 3px #F3C95B, 0 8px 22px rgba(243, 201, 91, .55); }

/* ---------- card ---------- */
.mxt-lotcard { display: flex; flex-direction: column; min-height: 600px; font-family: Phetsarath, sans-serif; color: #15181C; }
.mxt-lotcard.is-compact { min-height: 0; }
.mxt-lotcard .screen-reader-text, .mxt-lot .screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.mxt-lotcard__panel, .mxt-lot__hero { position: relative; overflow: hidden; color: #F5F0E4; background: linear-gradient(140deg, #12356B 0%, #0B2247 60%, #2A1454 100%); border-radius: 16px; }
.mxt-lotcard__panel { padding: 16px; }
.mxt-lotcard__panel > *, .mxt-lot__hero > * { position: relative; z-index: 1; }
.mxt-lotcard__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; margin-bottom: 12px; }
.mxt-lotcard__title { font-size: 22px; font-weight: 700; line-height: 1.35; color: #FFE9A6; }
.mxt-lotcard__sub { font-size: 12px; line-height: 1.4; color: #C9D6EE; }
.mxt-lotcard__tails { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; margin: 12px 0 0; padding: 0; }
.mxt-lotcard__tails li { padding: 6px 4px; text-align: center; border-radius: 10px; background: rgba(255, 255, 255, .1); }
.mxt-lotcard__tails li.is-key { background: rgba(243, 201, 91, .2); box-shadow: inset 0 0 0 1px rgba(243, 201, 91, .6); }
.mxt-lotcard__tails small { display: block; font-size: 10px; color: #C9D6EE; }
.mxt-lotcard__tails b { display: block; font-size: 16px; font-variant-numeric: tabular-nums; letter-spacing: .04em; }
.mxt-lotcard__next { margin-top: 12px; padding: 12px; border: 1px solid #E4DCCB; border-radius: 14px; background: #fff; }
.mxt-lotcard__next > small { display: block; font-size: 11px; font-weight: 700; letter-spacing: .02em; color: #B3261E; }
.mxt-lotcard__next > b { display: block; margin: 2px 0 8px; font-size: 14px; line-height: 1.35; }
.mxt-lotcard__past { list-style: none; margin: 10px 0 0; padding: 0; }
.mxt-lotcard__past li { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 7px 0; border-top: 1px solid #E4DCCB; }
.mxt-lotcard__past small { font-size: 12px; color: #5C665F; }
.mxt-lotcard__past b { font-size: 17px; letter-spacing: .08em; font-variant-numeric: tabular-nums; color: #7A8279; }
.mxt-lotcard__past em { font-style: normal; color: #15181C; }
.mxt-lotcard .mxt-lotcard__cta { align-self: flex-start; margin-top: auto; padding: 13px 18px; font: 700 14px/1.2 Phetsarath, sans-serif; text-decoration: none; color: #F5F0E4; background: #12356B; border-radius: 999px; transition: transform .18s ease, box-shadow .18s ease; }
.mxt-lotcard__past { margin-bottom: 14px; }
.mxt-lotcard .mxt-lotcard__cta:hover { color: #F5F0E4; transform: translateY(-2px); box-shadow: 0 8px 18px rgba(18, 53, 107, .35); }
@media (min-width: 768px) {
    .mxt-lotcard.is-compact .mxt-lot-tiles { gap: 4px; }
    .mxt-lotcard.is-compact .mxt-lot-tiles b { font-size: 24px; border-radius: 8px; }
    .mxt-lotcard.is-compact .mxt-lot-clock span > b { font-size: 20px; }
    .mxt-lotcard.is-compact .mxt-lotcard__tails { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .mxt-lotcard.is-compact .mxt-lotcard__tails li:nth-child(n+3) { display: none; }
}
.elementor-widget-wrap:has(> .elementor-widget-shortcode .mxt-lotcard) { align-content: stretch; }
.elementor-widget-shortcode:has(.mxt-lotcard), .elementor-widget-shortcode:has(.mxt-lotcard) > .elementor-widget-container, .elementor-shortcode:has(> .mxt-lotcard) { display: flex; flex-direction: column; flex: 1 1 auto; width: 100%; }
.elementor-shortcode > .mxt-lotcard { flex: 1 1 auto; }
.jet-listing-grid__item:has(.mxt-lotcard) > .elementor,
.jet-listing-grid__item:has(.mxt-lotcard) .elementor-section:has(.mxt-lotcard),
.jet-listing-grid__item:has(.mxt-lotcard) .elementor-section:has(.mxt-lotcard) > .elementor-container,
.jet-listing-grid__item:has(.mxt-lotcard) .elementor-column:has(.mxt-lotcard) { height: 100%; }

/* ---------- page ---------- */
.mxt-lot { font-family: Phetsarath, sans-serif; color: #15181C; }
.mxt-lot button, .mxt-lot input, .mxt-lot select { font-family: inherit; }
.mxt-lot__hero { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 22px; align-items: center; padding: 24px; }
.mxt-lot__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; margin-bottom: 14px; }
.mxt-lot__title { font-size: 26px; font-weight: 700; line-height: 1.3; color: #FFE9A6; }
.mxt-lot__sub { font-size: 14px; color: #C9D6EE; }
.mxt-lot__hero .mxt-lot-tiles { gap: 10px; }
.mxt-lot__hero .mxt-lot-tiles b { font-size: 60px; border-radius: 14px; }
.mxt-lot__tails { list-style: none; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; margin: 14px 0 0; padding: 0; }
.mxt-lot__tails li { padding: 8px 4px; text-align: center; border-radius: 12px; background: rgba(255, 255, 255, .1); }
.mxt-lot__tails li.is-key { background: rgba(243, 201, 91, .2); box-shadow: inset 0 0 0 1px rgba(243, 201, 91, .6); }
.mxt-lot__tails small { display: block; font-size: 11px; color: #C9D6EE; }
.mxt-lot__tails b { display: block; font-size: 20px; letter-spacing: .05em; font-variant-numeric: tabular-nums; }
.mxt-lot__next { padding: 18px; color: #15181C; background: #FFFDF8; border-radius: 16px; }
.mxt-lot__next > small { display: block; font-size: 12px; font-weight: 700; color: #B3261E; }
.mxt-lot__next > b { display: block; margin: 2px 0 10px; font-size: 18px; line-height: 1.35; }
.mxt-lot__next .mxt-lot-clock span > b { font-size: 34px; }
.mxt-lot__next p { margin: 12px 0 0; font-size: 12px; line-height: 1.5; color: #5C665F; }
.mxt-lot__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin: 18px 0; align-items: start; }
.mxt-lot__panel { padding: 18px; background: #fff; border: 1px solid #E4DCCB; border-radius: 16px; }
.mxt-lot__panel h3 { margin: 0 0 12px; font: 700 17px/1.35 Phetsarath, sans-serif; color: #15181C; }
.mxt-lot__panel h4 { margin: 14px 0 8px; font: 700 13px/1.35 Phetsarath, sans-serif; color: #5C665F; }
.mxt-lot .mxt-lot__check input { width: 100%; min-height: 60px; padding: 8px 14px; box-sizing: border-box; font-size: 30px; font-weight: 700; letter-spacing: .18em; font-variant-numeric: tabular-nums; text-align: center; color: #12356B; background: #F7F9FC; border: 2px solid #12356B; border-radius: 14px; }
.mxt-lot .mxt-lot__check input::placeholder { font-size: 14px; font-weight: 400; letter-spacing: 0; color: #7A8279; }
.mxt-lot__hint { margin: 12px 0 0; font-size: 12px; line-height: 1.5; color: #7A8279; }
.mxt-lot__verdict { margin-top: 12px; padding: 12px 14px; border-radius: 12px; }
.mxt-lot__verdict b { display: block; font-size: 17px; }
.mxt-lot__verdict span { display: block; font-size: 13px; }
.mxt-lot__verdict.is-win { color: #0E4B2A; background: #DDF5E6; }
.mxt-lot__verdict.is-miss { color: #5C665F; background: #F2F0EA; }
.mxt-lot__found { margin: 10px 0 0; font-size: 14px; line-height: 1.5; }
.mxt-lot__checkout ol { list-style: none; margin: 8px 0 0; padding: 0; }
.mxt-lot__checkout ol li { display: flex; justify-content: space-between; gap: 10px; padding: 7px 0; border-top: 1px solid #EFE8D8; }
.mxt-lot__checkout small { font-size: 12px; color: #5C665F; }
.mxt-lot__checkout ol b, .mxt-lot__num { font-size: 18px; letter-spacing: .1em; font-variant-numeric: tabular-nums; color: #7A8279; }
.mxt-lot em { font-style: normal; color: #B3261E; font-weight: 700; }
.mxt-lot__num i { font-style: normal; color: #15181C; }
.mxt-lot__ranges { display: flex; gap: 6px; }
.mxt-lot .mxt-lot__ranges button, .mxt-lot .mxt-lot__more { margin: 0; padding: 7px 14px; font-size: 13px; line-height: 1.2; color: #12356B; background: #fff; border: 1px solid #B9C5DB; border-radius: 999px; cursor: pointer; white-space: nowrap; }
.mxt-lot .mxt-lot__ranges button:hover, .mxt-lot .mxt-lot__ranges button:focus, .mxt-lot .mxt-lot__more:hover, .mxt-lot .mxt-lot__more:focus { color: #12356B; background: #E8EEF8; }
.mxt-lot .mxt-lot__ranges button[aria-pressed="true"] { font-weight: 700; color: #fff; background: #12356B; border-color: #12356B; }
.mxt-lot__top { list-style: none; margin: 0; padding: 0; display: grid; gap: 5px; }
.mxt-lot__top li { display: grid; grid-template-columns: 34px minmax(0, 1fr) 24px; align-items: center; gap: 8px; }
.mxt-lot__top b { font-size: 17px; font-variant-numeric: tabular-nums; }
.mxt-lot__top span { height: 10px; border-radius: 5px; background: #EEF1F6; overflow: hidden; }
.mxt-lot__top i { display: block; height: 100%; border-radius: 5px; background: linear-gradient(90deg, #12356B, #6E8FD0); }
.mxt-lot__top small { font-size: 12px; text-align: right; color: #5C665F; }
.mxt-lot__digits { list-style: none; display: grid; grid-template-columns: repeat(10, minmax(0, 1fr)); gap: 4px; margin: 0; padding: 0; text-align: center; }
.mxt-lot__digits span { display: flex; align-items: flex-end; justify-content: center; height: 62px; }
.mxt-lot__digits i { display: block; width: 70%; max-width: 22px; border-radius: 5px 5px 0 0; background: linear-gradient(180deg, #F3C95B, #D9A21B); }
.mxt-lot__digits b { display: block; font-size: 15px; }
.mxt-lot__digits small { display: block; font-size: 10px; color: #5C665F; }
.mxt-lot__filters { display: grid; grid-template-columns: 150px 170px minmax(0, 1fr); gap: 8px; margin-bottom: 8px; }
.mxt-lot .mxt-lot__filters select, .mxt-lot .mxt-lot__filters input { width: 100%; min-height: 46px; padding: 6px 12px; box-sizing: border-box; font-size: 14px; color: #15181C; background: #fff; border: 1px solid #CFC5AE; border-radius: 12px; }
.mxt-lot__list ol { list-style: none; margin: 0; padding: 0; }
.mxt-lot__list li { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1.2fr) 70px 60px; align-items: center; gap: 10px; padding: 10px 4px; border-top: 1px solid #EFE8D8; }
.mxt-lot__list li:hover { background: #FBF6E9; }
.mxt-lot__when b { display: block; font-size: 15px; }
.mxt-lot__when small { display: block; font-size: 12px; color: #5C665F; }
.mxt-lot__list .mxt-lot__num { font-size: 24px; font-weight: 700; }
.mxt-lot__t { text-align: center; padding: 4px; border-radius: 8px; background: #F7F2E5; }
.mxt-lot__t small { display: block; font-size: 10px; color: #5C665F; }
.mxt-lot__t b { display: block; font-size: 15px; font-variant-numeric: tabular-nums; }
.mxt-lot__count { margin: 10px 0 0; font-size: 12px; color: #7A8279; }
.mxt-lot .mxt-lot__more { display: block; margin: 12px auto 0; padding: 10px 22px; }
.mxt-lot__src { margin: 14px 0 0; font-size: 12px; line-height: 1.6; color: #5C665F; }
.mxt-lot__src a { color: #12356B; }
.mxt-lot button:focus-visible, .mxt-lot input:focus-visible, .mxt-lot select:focus-visible, .mxt-lotcard a:focus-visible { outline: 3px solid #F3C95B; outline-offset: 2px; box-shadow: 0 0 0 5px #173F35; }
@media (max-width: 900px) {
    .mxt-lot__hero, .mxt-lot__grid { grid-template-columns: minmax(0, 1fr); }
    .mxt-lot__hero { padding: 16px; gap: 14px; }
    .mxt-lot__hero .mxt-lot-tiles { gap: 6px; }
    .mxt-lot__hero .mxt-lot-tiles b { font-size: 38px; border-radius: 10px; }
    .mxt-lot__tails b { font-size: 15px; }
    .mxt-lot__next .mxt-lot-clock span > b { font-size: 28px; }
    .mxt-lot__filters { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
    .mxt-lot__search { grid-column: 1 / -1; }
    .mxt-lot__list li { grid-template-columns: minmax(0, 1fr) auto; }
    .mxt-lot__list .mxt-lot__t { display: none; }
    .mxt-lot__panel { padding: 14px; }
}
@media (prefers-reduced-motion: reduce) {
    .mxt-lot-tiles.is-fresh b, .mxt-lot-clock.is-soon span, .is-waiting .mxt-lot-clock span > b, .mxt-lotcard__live i, .mxt-lotcard__glow { animation: none; }
}
/* the glow is decoration, not a grid cell */
.mxt-lot__hero > .mxt-lotcard__glow, .mxt-lotcard__panel > .mxt-lotcard__glow { position: absolute; z-index: 0; }
.mxt-lot__check label, .mxt-lot__filters label { display: block; }
