@charset "UTF-8";

/* --------------------------------------------------
 news-box
-------------------------------------------------- */

#news-box {
    width: calc(100% - 200px);
    height: 30px;
    background: var(--theme-white);
    border-bottom: 1px solid var(--theme-border);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    margin-left: 200px;
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
}

#news-box .icn {
    background: var(--theme-white);
    padding: 0 10px;
    margin: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    z-index: 1;
}

#news-box .icn i {
    color: var(--theme-yellow);
}

#news-box .marquee {
    color: var(--theme-text-muted);
    width: 100%;
    -webkit-animation: marquee 20s linear infinite;
    animation: marquee 20s linear infinite;
    white-space: nowrap;
    display: inline-block;
}

@-webkit-keyframes marquee {
    0% {
        -webkit-transform: translateX(100%);
    }

    100% {
        -webkit-transform: translateX(-100%);
    }
}

@keyframes marquee {
    0% {
        transform: translateX(100%);
    }

    100% {
        transform: translateX(-100%);
    }
}

@media screen and (max-width: 1000px) {
    #news-box {
        width: 100%;
        margin-left: 0;
    }
}

@media screen and (max-width: 767px) {
    #news-box .marquee {
        -webkit-animation: marquee 10s linear infinite;
        animation: marquee 10s linear infinite;
    }
}

/* --------------------------------------------------
 keyvisual
-------------------------------------------------- */

#keyvisual {
    width: calc(100% - 200px);
    margin-left: 200px;
}

@media screen and (max-width: 1000px) {
    #keyvisual {
        width: 100%;
        margin-left: 0;
    }
}

/* --------------------------------------------------
 intro
-------------------------------------------------- */

#intro .inner {
    background: var(--theme-white);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border: 1px solid var(--theme-border);
    border-radius: 20px;
    box-shadow: var(--theme-inset-glow) 0px 0px 4px 2px inset;
    padding: 2px;
    position: relative;
    transition: all 0.4s;
}

#intro .inner::after {
    content: "";
    background: transparent;
    -webkit-backdrop-filter: blur(2px);
    backdrop-filter: blur(2px);
    width: calc(100% - 4px);
    height: calc(100% - 4px);
    border-radius: 20px;
    margin: auto;
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
}

#intro .txt-blc {
    border-radius: 20px;
    padding: 30px 4%;
    position: relative;
    z-index: 1;
}

#intro .txt-blc .logo {
    max-width: 360px;
    text-align: center;
    margin: 0 auto 15px;
}

#intro .txt-blc .ttl {
    color: #00A3E0;
    font-size: 140%;
    font-weight: 700;
    text-align: center;
    margin-bottom: 15px;
}

#intro .txt-blc .ttl .txt01 {
    display: inline-block;
}

#intro .txt-blc .txt {
    text-align: center;
}

#intro .txt-blc .img {
    text-align: center;
    margin-top: 30px;
}

#intro .media-blc {
    padding: 15px 10px;
    display: flex;
    flex-wrap: wrap;
    position: relative;
    z-index: 1;
}

#intro .media-blc .img {
    width: 36%;
    text-align: center;
}

#intro .media-blc .vdo {
    background: linear-gradient(144deg, var(--theme-black-mid), var(--theme-black-mid)), linear-gradient(90deg, #FFFFFF, #00A3E0, #00A3E0, #FFFFFF);
    background-origin: border-box;
    background-clip: content-box, border-box;
    border-radius: 20px;
    padding: 3px;
    flex: 1;
    box-shadow: 0 0 15px #160000;
}

#intro .media-blc .vdo * {
    border-radius: 20px;
    display: block;
}

@media screen and (max-width: 767px) {
    #intro .txt-blc .ttl {
        font-size: 120%;
    }

    #intro .media-blc .img {
        width: 60%;
        margin-left: auto;
        margin-right: auto;
    }

    #intro .media-blc .vdo {
        width: 100%;
        flex: auto;
    }
}

@media screen and (max-width: 480px) {
    #intro .txt-blc .logo {
        max-width: 80%;
        margin-left: auto;
        margin-right: auto;
    }
}

/* --------------------------------------------------
 nav-short
-------------------------------------------------- */

#nav-short {
    padding: 30px 0;
    position: relative;
}

/* --------------------------------------------------
 providers-list
-------------------------------------------------- */

#providers-list {
    padding: 0 0 30px;
    margin: 0;
    position: relative;
}

.box-style01 .ttl .txt01 {
    color: #00A3E0;
}

/* --------------------------------------------------
 howto
-------------------------------------------------- */

#howto {
    padding: 30px 0;
    position: relative;
}

#howto .inner {
    padding: 0 2%;
    position: relative;
    box-sizing: border-box;
}

#howto .txt-blc .logo {
    max-width: 360px;
    text-align: center;
    margin: 20px auto;
}

#howto .txt-blc .txt-intro {
    color: #00A3E0;
    font-size: 170%;
    font-weight: 500;
    text-align: center;
    line-height: 1.4;
    margin-bottom: 20px;
}

#howto .txt-blc .txt-intro .txt01 {
    display: inline-block;
}

#howto .txt-blc .txt {
    color: var(--theme-text-muted);
    text-align: center;
    line-height: 1.6;
}

#howto .img-blc {
    text-align: center;
    margin: 20px 0;
}

#howto .step-blc {
    margin-top: 20px;
}

#howto .step-blc .list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

#howto .step-blc .list .item {
    background: transparent;
    background-image: linear-gradient(180deg, var(--theme-black-mid) 0%, var(--theme-black) 100%);
    width: 32%;
    border: 2px solid var(--theme-border-strong);
    border-radius: 20px;
    padding: 10px 0 20px;
    margin: 0 2% 2% 0;
    box-sizing: border-box;
}

#howto .step-blc .list .item:nth-child(3n+3) {
    margin-right: 0;
}

#howto .step-blc .list .item:last-child {
    margin-right: 0;
}

#howto .step-blc .list .item .icn {
    text-align: center;
    padding: 0 4%;
    margin-bottom: 20px;
}

#howto .step-blc .list .item .subj {
    font-size: 140%;
    line-height: 1.6;
    text-align: center;
    padding: 0 4%;
    margin-bottom: 15px;
}

#howto .step-blc .list .item .txt {
    line-height: 1.6;
    text-align: center;
    padding: 0 4%;
    margin-bottom: 15px;
}

#howto .step-blc .list .item .btn-blc {
    text-align: center;
    padding: 0 4%;
}

@media screen and (max-width: 767px) {
    #howto .txt-blc .txt-intro {
        font-size: 130%;
    }

    #howto .step-blc .list .item {
        width: 100%;
        margin-right: 0;
    }

    #howto .step-blc .list .item .subj {
        font-size: 120%;
    }
}

@media screen and (max-width: 480px) {
    #howto .txt-blc .logo {
        max-width: 80%;
        margin-left: auto;
        margin-right: auto;
    }
}

/* --------------------------------------------------
 promotion
-------------------------------------------------- */

#promotion {
    background-size: cover;
    padding: 30px 0;
    position: relative;
}

#promotion .inner {
    background: linear-gradient(180deg, var(--theme-black-mid) 0%, var(--theme-white-glow) 100%);
    border: 1px solid var(--theme-border);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 20px 2%;
    position: relative;
    box-shadow: var(--theme-inset-glow) 0px 0px 4px 2px inset;
}

#promotion .list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

#promotion .list .item {
    width: 32%;
    margin: 0 2% 2% 0;
    box-sizing: border-box;
    transition: all .4s;
}

#promotion .list .item:hover {
    transform: scale(1.05);
}

#promotion .list .item:nth-child(3n+3) {
    margin-right: 0;
}

#promotion .list .item:last-child {
    margin-right: 0;
}

#promotion .list .item img {
    border-radius: 4px;
}

@media screen and (max-width: 767px) {
    #promotion .list .item {
        width: 49%;
    }

    #promotion .list .item:nth-child(3n+3) {
        margin-right: 2%;
    }

    #promotion .list .item:nth-child(2n+2) {
        margin-right: 0;
    }

    #promotion .list .item:last-child {
        margin-right: 0;
    }
}

/* --------------------------------------------------
 features
-------------------------------------------------- */

#features {
    background-size: cover;
    padding: 30px 0;
    position: relative;
}

#features .inner {
    padding: 0 2%;
    position: relative;
    box-sizing: border-box;
}

#features .txt-img-blc {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
}

#features .txt-blc {
    background: linear-gradient(45deg, transparent 0%, #ffffff33 50%, transparent 100%);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 20px 20px 10px;
    flex: 1;
    box-shadow: var(--theme-inset-glow) 0px 0px 4px 2px inset;
}

#features .txt-blc .subj {
    color: #00A3E0;
    font-size: 170%;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 10px;
}

#features .txt-blc .subj .txt01 {
    display: inline-block;
}

#features .txt-blc .txt {
    color: var(--theme-text-muted);
    font-size: 90%;
    line-height: 1.4;
}

#features .txt-blc .img {
    text-align: center;
    margin: 20px 0;
}

#features .txt-blc .list {
    padding: 0 4%;
    margin-top: 20px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

#features .txt-blc .list .item {
    width: 30.66%;
    margin: 0 4% 4% 0;
    box-sizing: border-box;
}

#features .txt-blc .list .item:nth-child(3n+3) {
    margin-right: 0;
}

#features .txt-blc .list .item:last-child {
    margin-right: 0;
}

#features .txt-blc .list .item img {
    transition: all .4s;
}

#features .txt-blc .list .item a:hover img {
    transform: scale(1.05);
}

#features .img-blc {
    width: 50%;
    text-align: center;
    padding-left: 2%;
    position: relative;
    z-index: 1;
}

#features .img-blc img {
    -webkit-animation: slideInUp 2s cubic-bezier(.25, .46, .45, .94) infinite alternate both;
    animation: slideInUp 2s cubic-bezier(.25, .46, .45, .94) infinite alternate both;
}

@-webkit-keyframes slideInUp {
    0% {
        transform: translateY(2%);
        visibility: visible
    }

    to {
        transform: translateY(-2%)
    }
}

@keyframes slideInUp {
    0% {
        transform: translateY(2%);
        visibility: visible
    }

    to {
        transform: translateY(-2%)
    }
}

@media screen and (max-width: 767px) {
    #features .txt-blc {
        width: 100%;
        text-align: center;
        padding-top: 8%;
        flex: auto;
        order: 1;
    }

    #features .txt-blc .subj {
        font-size: 130%;
    }

    #features .img-blc {
        margin: 0 auto -8%;
    }
}

/* --------------------------------------------------
 why-our
-------------------------------------------------- */

#why-our {
    background-size: cover;
    padding: 30px 0;
    position: relative;
}

#why-our .inner {
    padding: 0 2%;
    position: relative;
    box-sizing: border-box;
}

#why-our .txt-img-blc {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
}

#why-our .txt-blc {
    flex: 1;
    order: 1;
}

#why-our .txt-blc .subj {
    color: #00A3E0;
    font-size: 140%;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 10px;
}

#why-our .txt-blc .subj .txt01 {
    display: inline-block;
}

#why-our .txt-blc .txt {
    line-height: 1.2;
}

#why-our .img-blc {
    width: 48%;
    margin-right: 4%;
    position: relative;
    z-index: 1;
}

#why-our .txt-btm {
    text-align: center;
    margin-top: 20px;
}

@media screen and (max-width: 767px) {
    #why-our .txt-blc {
        width: 100%;
        flex: auto;
    }

    #why-our .txt-blc .subj {
        font-size: 120%;
    }

    #why-our .img-blc {
        margin: 0 auto;
    }
}

/* --------------------------------------------------
 article-post
-------------------------------------------------- */

#article-post {
    background-size: cover;
    padding: 30px 0;
    position: relative;
}

#article-post .inner {
    padding: 0 2%;
    box-sizing: border-box;
}

/* --------------------------------------------------
 faq
-------------------------------------------------- */

#faq {
    padding: 30px 0;
    position: relative;
}

#faq .inner {
    padding: 0 2%;
    position: relative;
    box-sizing: border-box;
}

#faq .list {
    width: 100%;
    margin: 0 auto;
    box-sizing: border-box;
}

#faq .list .accordion {
    background: linear-gradient(45deg, var(--theme-black-mid) 0%, var(--theme-black-mid), var(--theme-black-mid) 100%);
    background-origin: border-box;
    border: 1px solid var(--theme-border);
    border-radius: 10px;
    padding: 2px;
    margin-bottom: 10px;
    box-shadow: var(--theme-inset-glow) 0px 0px 4px 2px inset;
}

#faq .list .accordion .accord-ttl {
    background-color: var(--theme-white);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    color: var(--theme-text);
    border-radius: 10px;
    line-height: 1.2;
    padding: 15px 15px 15px 30px;
    position: relative;
    cursor: pointer;
    transition: all 0.4s ease-in-out;
}

#faq .list .accordion .accord-ttl.onclick {
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
}

#faq .list .accordion .accord-ttl::before {
    content: "\f0da";
    color: #00A3E0;
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    position: absolute;
    top: 14px;
    left: 15px;
}

#faq .list .accordion .accord-ttl.onclick::before {
    content: "\f0d8";
}

#faq .list .accordion .accord-content {
    background: var(--theme-black-mid);
    color: var(--theme-text-muted);
    border-bottom-left-radius: 10px;
    border-bottom-right-radius: 10px;
    line-height: 1.6;
    padding: 15px;
}

/* --------------------------------------------------
 login-form
-------------------------------------------------- */

.main-login-container {
    background: var(--theme-login-bg);
    background: #0077B6;
    padding: 20px 15px;
    border-radius: 12px;
    width: 100%;
    margin: 0 auto;
    box-sizing: border-box;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    font-family: 'Noto Sans Thai', sans-serif;
}

.main-login-container .main-login-inner {
    max-width: 580px;
    margin: auto;
}

.main-login-container .login-title {
    color: #fff;
    font-size: 28px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 15px;
    text-shadow: none;
}

.main-login-container .input-group-custom {
    background-color: #ffffff;
    border-radius: 8px;
    height: 52px;
    display: flex;
    align-items: center;
    padding: 0 16px;
    margin-bottom: 20px;
    box-sizing: border-box;
    border: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow:
        0 2px 8px rgba(0, 61, 107, 0.08),
        0 1px 3px rgba(0, 0, 0, 0.05),
        inset 0 1px 0 rgba(255, 255, 255, 0.95);
    transition: box-shadow 0.3s ease, border-color 0.3s ease, transform 0.2s ease;
}

.main-login-container .input-group-custom:focus-within {
    border-color: #00A3E0;
    transform: translateY(-1px);
    box-shadow:
        0 6px 18px rgba(0, 163, 224, 0.16),
        0 2px 8px rgba(0, 61, 107, 0.1),
        0 0 0 3px rgba(0, 163, 224, 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 1);
}

.main-login-container .input-group-custom .input-icon-left {
    color: #333333;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    margin-right: 12px;
}

.main-login-container .input-group-custom .input-icon-right {
    color: #333333;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    margin-left: 12px;
    cursor: pointer;
    transition: color 0.2s;
}

.main-login-container .input-group-custom .input-icon-right:hover {
    color: #00A3E0;
}

.main-login-container .input-group-custom input {
    flex: 1;
    border: none;
    background: transparent;
    height: 100%;
    font-size: 16px;
    color: #333333;
    outline: none;
    padding: 0;
    font-family: 'Noto Sans Thai', sans-serif;
}

.main-login-container .input-group-custom input::placeholder {
    color: #a6a6a6;
    opacity: 1;
}

.main-login-container .forgot-password-container {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 25px;
}

.main-login-container .forgot-password-link {
    color: var(--theme-text-muted);
    font-size: 14px;
    text-decoration: none;
    transition: color 0.2s;
}

.main-login-container .forgot-password-link:hover {
    color: #00A3E0;
    text-decoration: underline;
}

.main-login-container .login-buttons-container {
    display: flex;
    gap: 15px;
}

.main-login-container .btn-login-gold {
    flex: 1;
    background: linear-gradient(180deg, #6DD5FA 0%, #00A3E0 50%, #0077B6 100%);
    color: #FFFFFF;
    font-size: 16px;
    font-weight: 700;
    border: none;
    border-radius: 8px;
    height: 48px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    text-shadow: none;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.main-login-container .btn-login-gold:hover {
    filter: brightness(1.1);
    transform: translateY(-1px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.main-login-container .btn-login-gold:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.main-login-container .btn-register-dark {
    flex: 1;
    background: var(--theme-logo-green-grad);
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    border: none;
    border-radius: 8px;
    height: 48px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    text-decoration: none;
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.35);
    box-shadow: 0 2px 8px rgba(56, 142, 60, 0.35);
}

.main-login-container .btn-register-dark:hover {
    filter: brightness(1.08);
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(56, 142, 60, 0.4);
}

.main-login-container .btn-register-dark:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(56, 142, 60, 0.3);
}

@media screen and (max-width: 576px) {
    .main-login-container .login-title {
        font-size: 24px;
    }
}

/* --------------------------------------------------
 keyvisual-container
-------------------------------------------------- */

.keyvisual-container {
    padding: .5rem 0;
}

.keyvisual-container .swiper-slide img {
    border-radius: 8px;
}

/* --------------------------------------------------
 lottery-container
-------------------------------------------------- */

.lottery-container {
    background-color: var(--theme-white);
    border: 1px solid var(--theme-border);
    border-radius: 12px;
    padding: 1rem;
    margin: 20px auto 20px;
    max-width: 100%;
    box-sizing: border-box;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    font-family: 'Noto Sans Thai', sans-serif;
    text-align: center;
    opacity: 0.85;
}

.lottery-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 4px;
}

.lottery-header .thai-flag,
.flag-icon {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    overflow: hidden;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
    flex-shrink: 0;
    display: inline-block;
}

.lottery-header .thai-flag,
.flag-th {
    background-image: url('../img/common/th.svg');
    background-size: cover;
    background-position: center;
}

.flag-vn {
    background-image: url('../img/common/vi.svg');
    background-size: cover;
    background-position: center;
}

.flag-la {
    background-image: url('../img/common/lao.svg');
    background-size: cover;
    background-position: center;
}

.flag-hk {
    background-image: url('../img/common/hk.svg');
    background-size: cover;
    background-position: center;
}

.flag-us {
    background-image: url('../img/common/us.svg');
    background-size: cover;
    background-position: center;
}

.flag-jp {
    background-image: url('../img/common/ja.svg');
    background-size: cover;
    background-position: center;
}

.flag-baac {
    background-image: url('../img/common/baac.svg');
    background-size: cover;
    background-position: center;
}

.flag-gsb {
    background-image: url('../img/common/gsb.svg');
    background-size: cover;
    background-position: center;
}

.lottery-header .lottery-title {
    color: var(--theme-text);
    font-size: 22px;
    font-weight: 700;
    margin: 0;
    line-height: 1.2;
}

.lottery-date {
    color: var(--theme-text-muted);
    font-size: 13px;
    margin-bottom: .5rem;
}

.lottery-container .prize-section {
    display: flex;
    flex-direction: column;
    margin-bottom: 18px;
}

.lottery-container .prize-label {
    color: var(--theme-text-muted);
    font-size: 13px;
    margin-bottom: 6px;
}

.lottery-container .prize-number-box {
    background-color: var(--theme-black-mid);
    border: 1px solid var(--theme-border);
    border-radius: 50px;
    color: var(--theme-text);
    font-weight: 700;
    text-align: center;
    box-sizing: border-box;
    transition: all 0.3s ease;
    padding: 0 10px;
}

.lottery-container .first-prize-section .prize-number-box {
    height: 48px;
    line-height: 46px;
    font-size: 26px;
    letter-spacing: 3px;
    color: #00A3E0;
    border-color: #0077B6;
    box-shadow: 0 0 10px rgba(0, 163, 224, 0.15);
}

.lottery-container .first-prize-section .prize-number-box:hover {
    box-shadow: 0 0 15px rgba(0, 163, 224, 0.3);
    border-color: #00A3E0;
}

.lottery-container .sub-prizes-grid {
    display: flex;
    gap: 15px;
    width: 100%;
}

.lottery-container .sub-prizes-grid .prize-section {
    flex: 1;
    margin-bottom: 0;
}

.lottery-container .sub-prizes-grid .prize-number-box {
    height: 40px;
    line-height: 38px;
    font-size: 18px;
    letter-spacing: 1px;
    background-color: #FFFFFF;
    color: #1a1a1a;
    border-color: rgba(0, 0, 0, 0.12);
}

.lottery-container .sub-prizes-grid .prize-number-box:hover {
    background-color: #F5F5F5;
    border-color: rgba(0, 0, 0, 0.2);
}

/* --------------------------------------------------
 lottery-grid
-------------------------------------------------- */

.lottery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 20px;
}

.lottery-card-custom {
    margin: 0 !important;
    min-width: 0;
}

@media screen and (max-width: 992px) {
    .lottery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media screen and (max-width: 576px) {
    .lottery-grid {
        grid-template-columns: 1fr;
    }
}

/* --------------------------------------------------
 lottery-banner-section
-------------------------------------------------- */

.lottery-banner-section {
    background-color: var(--theme-white);
    border: 1px solid var(--theme-border);
    border-radius: 12px;
    padding: 1rem;
    margin: .5rem 0 1rem;
    max-width: 100%;
    box-sizing: border-box;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

.lottery-banner-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    grid-template-rows: repeat(2, auto);
    gap: 8px;
}

.lottery-banner-item {
    position: relative;
    display: block;
    overflow: hidden;
    border-radius: 5px;
    aspect-ratio: 11 / 9;
    text-decoration: none;
}

.lottery-banner-item img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.lottery-banner-label {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    color: #d1e9f1;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.3;
    text-align: center;
    padding: 8px 12px;
    margin: 4px 8px;
    border-radius: 999px;
    background: #000000a6;
    border: 1px solid rgb(57 165 205 / 68%);
}

.lottery-banner-label.allow {
    color: #d7f1d1;
    background: #0d5300d1;
    border: 1px solid rgb(114 205 57 / 68%);
}

@media screen and (min-width: 768px) {
    .lottery-banner-featured {
        grid-column: 1 / 3;
        grid-row: 1 / 3;
    }

    .lottery-banner-item:nth-child(2) { grid-column: 3; grid-row: 1; }
    .lottery-banner-item:nth-child(3) { grid-column: 4; grid-row: 1; }
    .lottery-banner-item:nth-child(4) { grid-column: 5; grid-row: 1; }
    .lottery-banner-item:nth-child(5) { grid-column: 6; grid-row: 1; }
    .lottery-banner-item:nth-child(6) { grid-column: 3; grid-row: 2; }
    .lottery-banner-item:nth-child(7) { grid-column: 4; grid-row: 2; }
}

@media screen and (max-width: 767px) {
    .lottery-banner-section {
        padding: .5rem;
    }

    .lottery-banner-grid {
        display: flex;
        flex-wrap: wrap;
        gap: 6px;
    }

    .lottery-banner-featured {
        order: -1;
        flex: 0 0 100%;
        width: 100%;
        max-width: 100%;
    }

    .lottery-banner-item:not(.lottery-banner-featured) {
        flex: 0 0 calc(50% - 3px);
        width: calc(50% - 3px);
        max-width: calc(50% - 3px);
    }

    .lottery-banner-label {
        font-size: 12px;
    }
}

/* --------------------------------------------------
 lottery-result-board
-------------------------------------------------- */

.lottery-result-board {
    display: grid;
    grid-template-columns: minmax(0, 320px) minmax(0, 1fr);
    gap: 16px;
    margin: .5rem auto;
    font-family: 'Noto Sans Thai', sans-serif;
}

/* ----- Left featured panel ----- */
.result-featured {
    background: var(--theme-white);
    border: 1px solid var(--theme-border);
    border-radius: 12px;
    padding: 16px;
    color: var(--theme-text);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

.result-featured-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.result-featured-title {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.result-featured-title .title-main {
    font-size: 18px;
    font-weight: 700;
}

.result-featured-title .title-badge {
    font-size: 12px;
    font-weight: 500;
    color: #fff;
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 999px;
    padding: 3px 10px;
}

.result-featured-header .flag-icon {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.25);
}

.result-featured-date {
    font-size: 13px;
    font-weight: 600;
    color: var(--theme-text-muted);
}

.result-first-prize {
    margin-top: 12px;
    background: linear-gradient(120deg, #6DD5FA 0%, #00A3E0 50%, #0077B6 100%);
    border: 1px solid var(--theme-border);
    border-radius: 10px;
    padding: 14px 10px;
    text-align: center;
}

.result-first-prize-label {
    font-size: 14px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
}

.result-first-prize-number {
    margin-top: 4px;
    font-size: 34px;
    font-weight: 800;
    letter-spacing: 3px;
    color: #fff;
    line-height: 1.1;
}

.result-sub-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-top: 10px;
}

.result-sub-box {
    border: 1px solid var(--theme-border);
    background: var(--theme-white-muted);
    border-radius: 10px;
    padding: 10px;
    text-align: center;
}

.result-sub-box-full {
    margin-top: 10px;
}

.result-sub-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--theme-text-muted);
}

.result-sub-number {
    margin-top: 4px;
    font-size: 22px;
    font-weight: 800;
    letter-spacing: 2px;
}

/* ----- Right table panel ----- */
.result-table-wrap {
    background: var(--theme-white);
    border: 1px solid var(--theme-border);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    display: flex;
    flex-direction: column;
}

.result-tabs {
    display: flex;
    gap: 6px;
    padding: 10px;
    overflow-x: auto;
    scrollbar-width: thin;
    border-bottom: 1px solid var(--theme-border);
}

.result-tabs::-webkit-scrollbar {
    height: 6px;
}

.result-tabs::-webkit-scrollbar-thumb {
    background: rgba(0, 163, 224, 0.4);
    border-radius: 999px;
}

.result-tab {
    flex: 0 0 auto;
    border: 1px solid var(--theme-border);
    background: var(--theme-white-muted);
    color: var(--theme-text-muted);
    font-size: 13px;
    font-weight: 600;
    font-family: inherit;
    border-radius: 999px;
    padding: 6px 14px;
    cursor: pointer;
    white-space: nowrap;
    transition: all .2s ease;
}

.result-tab:hover {
    border-color: var(--theme-border-strong);
    color: var(--theme-accent-dark);
}

.result-tab.active {
    background: linear-gradient(120deg, #6DD5FA 0%, #00A3E0 50%, #0077B6 100%);
    border-color: transparent;
    color: #fff;
}

.result-tabs-select {
    display: none;
    width: 100%;
    margin: 0;
    padding: 10px 38px 10px 14px;
    border: 1px solid var(--theme-border);
    border-bottom: 1px solid var(--theme-border);
    border-radius: 0;
    background-color: var(--theme-white);
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="%2300A3E0" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round"><polyline points="6 9 12 15 18 9"/></svg>');
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 18px;
    color: var(--theme-text);
    font-size: 14px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

.result-tabs-select:focus {
    outline: none;
    border-color: var(--theme-border-strong);
}

.result-table-scroll {
    overflow-x: auto;
}

.result-table-panel {
    display: none;
}

.result-table-panel.active {
    display: block;
}

.result-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.result-table thead th {
    background: var(--theme-white-muted);
    color: var(--theme-text-muted);
    font-weight: 600;
    text-align: center;
    padding: 12px 10px;
    white-space: nowrap;
}

.result-table thead th.col-name {
    text-align: left;
}

.result-table tbody td {
    padding: 12px 10px;
    text-align: center;
    border-top: 1px solid var(--theme-border);
    color: var(--theme-accent-dark);
    font-weight: 700;
    white-space: nowrap;
}

.result-table tbody td.col-name {
    text-align: left;
    display: flex;
    align-items: center;
    gap: 10px;
}

.result-table .flag-icon {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
}

.result-row-info {
    display: flex;
    flex-direction: column;
    line-height: 1.25;
    text-align: left;
}

.result-row-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--theme-text);
}

.result-row-date {
    font-size: 12px;
    font-weight: 500;
    color: #FF9900;
}

@media screen and (max-width: 767px) {
    .lottery-result-board {
        grid-template-columns: 1fr;
    }

    .result-first-prize-number {
        font-size: 30px;
    }
}

@media screen and (max-width: 640px) {
    .result-tabs {
        display: none;
    }

    .result-tabs-select {
        display: block;
    }
}