/************************************************************************
*************************************************************************

========================================  
                CSS INDEX
========================================

[1] lotto 
[2] 
[3] 
[4] 
[5] 
 
=============== End Index =============*/
/*=====================================
[1] lotto
======================================*/

.lottery_main {
    /* background-color: #e6e8eb; */

}

.lottery_main .box_1st {
    /* background-color: #e6e8eb; */
    border: 1px solid #cccccc;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.lottery_main .box_1st h3 {
    font-size: 28px;
    font-weight: bold;
    margin-bottom: 5px;
    color: #FFFFFF;

}

.lottery_main .box_1st h4 {
    font-size: 18px;
    color: #FFFFFF;
    margin: 0px;

}

.lottery_main .box_2st {
    /* background-color: #e6e8eb; */
    border: 1px solid #cccccc;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.lottery_main .box_2st h3 {
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 5px;
    color: #FFFFFF;

}

.lottery_main .box_2st h4 {
    font-size: 16px;
    color: #FFFFFF;
    margin: 0px;

}

.lottery_main .box_3st {
    /* background-color: #e6e8eb; */
    margin: 0px;
    padding: 0px;
    border: 1px solid #cccccc;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.lottery_main .box_3st .box_3st_topic {
    overflow: hidden;
    margin: 0px;
    padding: 15px;
}

.lottery_main .box_3st .box_3st_topic h3 {
    font-size: 18px;
    font-weight: bold;
    float: left;
    color: #FFFFFF;
    margin: 0px;
    padding: 0px;
    margin: 0px;
    padding: 0px;

}

.lottery_main .box_3st .box_3st_topic h4 {
    font-size: 16px;
    float: right;
    color: #FFFFFF;
    margin: 0px;

}

.lotto-box {
    width: 100%;
    margin: 0 auto;
    font-family: sans-serif;
    background: #f2f2f2;
    padding: 0px;
    border-radius: 4px;
    margin-bottom: 20px;
    border: 1px solid #cccccc;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.lotto-header {
    display: flex;
    justify-content: space-between;
    background: #0052cc;
    color: white;
    padding: 10px;
    font-weight: bold;

}

.lotto-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    /* 6 คอลัมน์ */
    gap: 10px;

    background: white;
    border-radius: 0 0 4px 4px;
}

.number {
    text-align: center;
    padding: 8px 0;
    border: 0px solid #ddd;
    background-color: #fff;
    font-weight: 500;
}


.lotto_index {
    display: block;
    width: 100%;
    text-align: center;
    border: 1px solid;
    padding: 20px 15px;
    background-color: #ffffff;
    -webkit-border-radius: 10px;
    border-radius: 10px;

}

.lotto_index>h2 {
    display: block;
    font-size: 25px;
    font-weight: bold;


}

.lotto_index>h3 {
    display: block;
    font-size: 16px;
    color: #0055cc;
    font-weight: bold;
    margin-bottom: 20px;


}

.lotto_index>.box_1 {
    display: block;
    overflow: hidden;
    margin-bottom: 30px;
}

.lotto_index>.box_1>.box_1_1 {
    padding: 10px;
    -webkit-border-radius: 10px;
    border-radius: 10px;
    background-color: #dddddd;

}

.lotto_index>.box_1 h4 {
    display: block;
    font-size: 14px;
}

.lotto_index>.box_1 p {
    display: block;
    font-size: 34px;
    font-weight: bold;
    margin: 0px;
}

.lotto_index>.box_1 span {
    display: block;
    font-size: 11px;

}



.lotto_index>.box_1 .lotto_1st {
    color: red;
}



.lotto_index>.box_2 {
    display: block;
    overflow: hidden;
    margin-bottom: 30px;
}

.lotto_index>.box_2 h4 {
    display: block;
    font-size: 14px;
}

.lotto_index>.box_2 p {
    display: block;
    font-size: 30px;
    font-weight: bold;
    margin: 0px;
}

.lotto_index>.box_2 span {
    display: block;
    font-size: 11px;

}


:root {
    --bg: #f5f7fb;
    --ink: #0f172a;
    --muted: #64748b;
    --border: #e5e7eb;
    --card: #ffffff;
    --primary: #0e57d5;
    --primary-700: #0b49b5;
    --shadow: 0 3px 16px rgba(2, 22, 58, .06);
    --radius: 14px;
}

/* ===== Page Title ===== */
.lotto-title {
    max-width: 860px;
    margin: 24px auto 8px;
    padding: 0 16px;
    font-size: 22px;
    font-weight: 800;
    color: #0b284f;
}

/* ===== Container ===== */
.lotto {
    max-width: 860px;
    margin: 0 auto 32px;
    padding: 0 16px;
}

/* ===== Draw Card ===== */
.draw {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    margin: 18px 0;
    overflow: hidden;
}

/* Top blue bar */
.draw__bar {
    background: linear-gradient(180deg, var(--primary), var(--primary-700));
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, .25);
}

.draw__title {
    font-weight: 800;
    font-size: 16px;
    letter-spacing: .2px;
}

.draw__more {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .12);
    border: 1px solid rgba(255, 255, 255, .35);
    color: #fff;
    font-weight: 700;
    text-decoration: none;
    line-height: 1;
}

.draw__more::before {
    content: "ⓘ";
    font-weight: 900;
}

/* Body layout */
.draw__body {
    display: grid;
    grid-template-columns: 30% 1fr;
    gap: 10px;
    padding: 12px;
}


/* Big first prize box */
.prize--first {
    background: #f8fafc;
    text-align: center;
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 18px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.prize__label {
    font-size: 18px;
    font-weight: 800;
    color: var(--muted);
}

.prize__number {
    font-size: 36px;
    font-weight: 900;
    letter-spacing: 2px;
    color: var(--primary-700);
    line-height: 1.1;
    text-align: center;
}

/* Small prize groups (เลขหน้า/ท้าย) */
.mini {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 10px;
    text-align: center;
}



/* < 480px (ฐาน) */
@media (max-width: 479.98px) {

    /* xs */
    .draw__body {
        grid-template-columns: 1fr;
    }
}

/* 480–639.98px */
@media (min-width: 480px) and (max-width: 639.98px) {

    /* small phones/portrait */
    .draw__body {
        grid-template-columns: 1fr;
    }
}

/* 640–767.98px */
@media (min-width: 640px) and (max-width: 767.98px) {

    /* large phones */
    .draw__body {
        grid-template-columns: 1fr;
    }
}

/* 768–1023.98px */
@media (min-width: 768px) and (max-width: 1023.98px) {
    /* tablets */
}

/* 1024–1279.98px */
@media (min-width: 1024px) and (max-width: 1279.98px) {
    /* small laptops */
}

/* 1280–1535.98px */
@media (min-width: 1280px) and (max-width: 1535.98px) {
    /* desktops */
}

/* ≥ 1536px */
@media (min-width: 1536px) {
    /* large desktops */
}

.mini__group {
    background: #f8fafc;
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 12px;
    text-align: center;
    overflow: hidden;
}

.mini__label {
    font-size: 14px;
    font-weight: 800;
    color: var(--muted);
    margin-bottom: 8px;
}

.mini__numbers {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    justify-content: center;
    /* แกนหลัก (X ถ้า flex-direction: row) */
    align-items: center;

}

/* Number chips */
.chip {
    width: 45%;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 10px 0px;
    font-weight: 900;
    font-size: 16px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .8);
    text-align: center;
}

.chip--lg {
    width: 100%;

    font-size: 24px;
    padding: 10px 0px;
}

.chip--stretch {
    flex: 1;
}

/* ใช้เมื่ออยากยืดเต็มแถว */
/*========== End 17 Lottery ======================================*/