/* ===== v10 theme — topone-style home ===== */
/* ใช้ฐานสไตล์เดิมจาก v9 (provider grid, gamelist, modal ฯลฯ) แล้วเพิ่มสไตล์ใหม่ทับ */
@import url('/public/assets/css/v9/main.css?v=122254');

@import url('https://fonts.googleapis.com/css2?family=Kanit:wght@300;400;500;600;700&display=swap');

:root {
    --v10-radius: 14px;
    --v10-card-bg: linear-gradient(180deg, rgba(40, 40, 40, 0.85) 0%, rgba(12, 12, 12, 0.9) 100%);
    --v10-line: rgba(255, 255, 255, 0.08);
}

.v10 {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 10px;
}

.v10-section {
    margin-top: 18px;
}

.v10-section__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
    padding: 0 2px;
}

.v10-section__title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 16px;
    font-weight: 600;
    color: #fff;
    margin: 0;
}

.v10-section__title i {
    color: var(--primaroo);
}

.v10-section__title::before {
    content: "";
    width: 4px;
    height: 18px;
    border-radius: 4px;
    background: linear-gradient(180deg, var(--primary), var(--primaroo));
}

.v10-section__more {
    font-size: 13px;
    color: #cfcfcf;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.v10-section__more:hover { color: var(--primaroo); }

/* notice bar (.v10-notice) ย้ายไปนิยามใน main.css ส่วนกลางแล้ว เพื่อใช้ได้ทุกหน้า */

/* ===== header ===== */
.v10-header {
    box-shadow: 0px 3.5px 3.5px var(--primaroo) !important;
    background: var(--primary);
}

/* ===== quick menu bar (เข้าสู่ระบบ / สมัครสมาชิก / โปรโมชั่น / ติดต่อเรา) ===== */
.v10-quickmenu-wrap {
    max-width: 760px;
    margin: 0 auto;
    padding: 12px 10px 0;
}

.v10-quickmenu {
    display: flex;
    align-items: stretch;
    gap: 6px;
    padding: 10px 6px;
    border-radius: var(--v10-radius);
    background: var(--v10-card-bg);
    border: 1.5px solid var(--primaroo);
    box-shadow: 0 0 16px -6px var(--primaroo);
}

.v10-qm-item {
    flex: 1 1 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 7px;
    padding: 4px 2px;
    text-decoration: none;
    color: #e9e9e9;
    cursor: pointer;
    transition: transform .15s ease, color .15s ease;
}

.v10-qm-item:hover { transform: translateY(-2px); color: #fff; }

.v10-qm-ic {
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.v10-qm-ic img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.5));
}

.v10-qm-label {
    font-size: 12px;
    font-weight: 500;
    line-height: 1;
    white-space: nowrap;
}

/* ปุ่มเกมตรงกลาง (ยกเด่นแบบ topone) */
.v10-qm-game { color: #fff; }

.v10-qm-game .v10-qm-ic {
    width: 58px;
    height: 58px;
    margin-top: -22px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--primaroo));
    border: 2px solid var(--primaroo);
    box-shadow: 0 0 16px -2px var(--primaroo);
    padding: 8px;
}

.v10-qm-game .v10-qm-label { font-weight: 600; }

/* บนมือถือ: ซ่อน quick menu บนหัว (ใช้ navbottom-v4 แถบล่างแทน) */
@media (max-width: 480px) {
    .v10-quickmenu-wrap { display: none; }
}

/* ===== hero swiper ===== */
.v10-hero { margin-top: 14px; }

.v10-hero swiper-container { border-radius: var(--v10-radius); overflow: hidden; }

.v10-hero img {
    width: 100%;
    display: block;
    border-radius: var(--v10-radius);
}

/* ===== category menu (tiles) ===== */
.v10-cats {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding: 4px 2px 6px;
    scroll-snap-type: x proximity;
}

.v10-cats .v10-cat { scroll-snap-align: start; flex: 0 0 auto; }

.v10-cats .category__items {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 76px;
    min-width: 76px;
    height: 84px;
    padding: 8px 4px;
    border-radius: var(--v10-radius);
    background: var(--v10-card-bg);
    border: 1px solid var(--v10-line);
    cursor: pointer;
    transition: transform .15s ease, border-color .15s ease, box-shadow .15s ease;
    text-decoration: none;
}

.v10-cats .category__items img {
    width: 38px;
    height: 38px;
    object-fit: contain;
}

.v10-cats .category__items span {
    /* font-size: 11px; */
    font-weight: 500;
    color: #d6d6d6;
    text-transform: capitalize;
    line-height: 1;
}

.v10-cats .category__items.active,
.v10-cats .category__items:hover {
    transform: translateY(-2px);
    border-color: var(--primaroo);
    box-shadow: 0 0 14px -2px var(--primaroo);
}

.v10-cats .category__items.active span { color: #fff; }

/* จอกว้างขึ้น: ขยาย tile หมวดเกมให้เต็มแถวพอดี (ถ้ามีหลายเมนูจะเลื่อนแนวนอนที่ขนาดฐาน) */
@media (min-width: 480px) {
    .v10-cats { gap: 12px; }
    .v10-cats .v10-cat { flex: 1 1 auto; max-width: 112px; }
    .v10-cats .category__items {
        width: 100%;
        min-width: 0;
        height: 100px;
        gap: 8px;
    }
    .v10-cats .category__items img { width: 48px; height: 48px; }
    .v10-cats .category__items span { font-size: 12px; }
}

@media (min-width: 768px) {
    .v10-cats { gap: 14px; }
    .v10-cats .v10-cat { max-width: 124px; }
    .v10-cats .category__items { height: 110px; }
    .v10-cats .category__items img { width: 54px; height: 54px; }
    .v10-cats .category__items span { font-size: 13px; }
}

/* ===== generic horizontal scroller for games/providers ===== */
.v10-scroller {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding: 2px 2px 8px;
    scroll-snap-type: x proximity;
}

.v10-scroller .v10-game {
    flex: 0 0 auto;
    width: 116px;
    scroll-snap-align: start;
    border-radius: var(--v10-radius);
    overflow: hidden;
    background: var(--v10-card-bg);
    border: 1px solid var(--v10-line);
    cursor: pointer;
    transition: transform .15s ease, box-shadow .15s ease;
}

.v10-scroller .v10-game:hover {
    transform: translateY(-3px);
    box-shadow: 0 0 16px -4px var(--primaroo);
}

.v10-scroller .v10-game img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    display: block;
}

.v10-scroller .v10-game .v10-game__name {
    font-size: 11px;
    color: #ddd;
    padding: 6px;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.v10-skeleton {
    flex: 0 0 auto;
    width: 116px;
    height: 140px;
    border-radius: var(--v10-radius);
    background: linear-gradient(100deg, rgba(255,255,255,.04) 30%, rgba(255,255,255,.12) 50%, rgba(255,255,255,.04) 70%);
    background-size: 200% 100%;
    animation: v10-shimmer 1.2s infinite;
}

@keyframes v10-shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* ===== activities / promo cards ===== */
.v10-grid2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.v10-grid4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}

.v10-card {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px;
    border-radius: var(--v10-radius);
    background: var(--v10-card-bg);
    border: 1px solid var(--v10-line);
    text-decoration: none;
    color: #fff;
    transition: transform .15s ease, border-color .15s ease, box-shadow .15s ease;
}

.v10-card:hover {
    transform: translateY(-2px);
    border-color: var(--primaroo);
    box-shadow: 0 0 14px -3px var(--primaroo);
    color: #fff;
}

.v10-card__icon {
    flex: 0 0 auto;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: #fff;
    background: linear-gradient(135deg, var(--primary), var(--primaroo));
}

.v10-card__body { min-width: 0; }
.v10-card__title { font-size: 14px; font-weight: 600; line-height: 1.2; }
.v10-card__sub { font-size: 11px; color: #b9b9b9; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* promo: vertical mini card */
.v10-grid4 .v10-card { flex-direction: column; text-align: center; gap: 8px; padding: 12px 8px; }
.v10-grid4 .v10-card .v10-card__sub { display: none; }

@media (max-width: 480px) {
    .v10-grid4 { grid-template-columns: repeat(2, 1fr); }
}

/* ===== withdraw ranking ticker ===== */
.v10-rank {
    background: var(--v10-card-bg);
    border: 1px solid var(--v10-line);
    border-radius: var(--v10-radius);
    overflow: hidden;
}

.v10-rank__viewport {
    height: 168px;
    overflow: hidden;
    position: relative;
}

.v10-rank__track { will-change: transform; }

.v10-rank__row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 14px;
    border-bottom: 1px solid var(--v10-line);
    font-size: 13px;
}

.v10-rank__rank {
    flex: 0 0 24px;
    text-align: center;
    font-weight: 700;
    color: var(--primaroo);
}

.v10-rank__user { flex: 1; color: #e6e6e6; }

.v10-rank__amount { font-weight: 600; color: #2ecc71; }

.v10-rank__row .fa-fire { color: #ff7a18; margin-left: 4px; }

/* ===== provider section wrapper ===== */
.v10-providers { margin-top: 18px; }
.v10-providers .game__lists { padding: 0 !important; }

/* spacing so navbottom ไม่ทับ */
.v10-bottom-space { height: 96px; }

@media (min-width: 480px) {
    .mobile-justify-center {
        justify-content: center !important;
    }
}