.site-header {
    background: linear-gradient(135deg, #1a2a3a 0%, #2c3e50 100%);
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
    position: sticky;
    top: 0;
    z-index: 1000;
    margin-bottom: 15px;
    overflow: visible;
}
.header-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 12px 15px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}
.logo a {
    font-size: 1.5rem;
    font-weight: 800;
    color: #fff;
    text-decoration: none;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    transition: transform 0.3s;
}
.logo a:hover { transform: scale(1.05); }
.site-brand {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.site-brand-icon {
    width: 32px;
    height: 32px;
    object-fit: contain;
    border-radius: 50%;
    flex: 0 0 auto;
}
.site-inline-icon {
    width: 1.25em;
    height: 1.25em;
    object-fit: contain;
    border-radius: 50%;
    vertical-align: -0.22em;
    margin-right: 0.35em;
}
.main-nav {
    display: flex;
    gap: 8px;
    flex: 1;
    justify-content: center;
}
.nav-link {
    padding: 10px 20px;
    background: linear-gradient(180deg, rgba(255,255,255,0.13), rgba(255,255,255,0.08));
    color: #fff;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s;
    border: 1px solid rgba(255,255,255,0.18);
    white-space: nowrap;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.1);
}
.nav-link:hover {
    background: rgba(255,255,255,0.2);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}
.nav-link.active {
    background: #fff;
    color: #1e3c72;
    border-color: #fff;
    box-shadow: 0 4px 12px rgba(255,255,255,0.3);
}
.nav-live {
    background: rgba(231,76,60,0.25) !important;
    border-color: rgba(231,76,60,0.5) !important;
}
.nav-live:hover { background: rgba(231,76,60,0.4) !important; }
.nav-live.active { background: #e74c3c !important; color: #fff !important; border-color: #e74c3c !important; }
.live-dot {
    display: inline-block;
    width: 8px; height: 8px;
    background: #e74c3c;
    border-radius: 50%;
    margin-right: 4px;
    animation: livePulse 1.2s ease-in-out infinite;
    vertical-align: middle;
}
.nav-live.active .live-dot { background: #fff; }
@keyframes livePulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.4; transform: scale(0.7); }
}
.nav-game {
    background: linear-gradient(135deg, rgba(241,196,15,0.25), rgba(243,156,18,0.25)) !important;
    border-color: rgba(241,196,15,0.5) !important;
}
.nav-game:hover { background: linear-gradient(135deg, rgba(241,196,15,0.4), rgba(243,156,18,0.4)) !important; }
.nav-game.active { background: linear-gradient(135deg, #f1c40f, #f39c12) !important; color: #1a1a2e !important; border-color: #f1c40f !important; }
.mobile-menu-toggle {
    display: none;
    background: linear-gradient(180deg, rgba(255,255,255,0.2), rgba(255,255,255,0.12));
    border: 1px solid rgba(255,255,255,0.2);
    color: #fff;
    font-size: 1.5rem;
    width: 44px;
    height: 44px;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.25s ease;
    align-items: center;
    justify-content: center;
    line-height: 1;
}
.mobile-menu-toggle:hover {
    background: rgba(255,255,255,0.3);
    transform: translateY(-1px);
}
@media (max-width: 768px) {
    .header-container {
        flex-wrap: nowrap;
        align-items: center;
        gap: 10px;
        padding: 10px 12px;
        position: relative;
    }
    .logo {
        flex: 1;
        min-width: 0;
        display: flex;
        align-items: center;
    }
    .logo a {
        font-size: 2rem;
        line-height: 1;
        display: inline-flex;
        align-items: center;
    }
    .mobile-menu-toggle {
        display: inline-flex;
        flex: 0 0 auto;
    }
    .main-nav {
        display: none;
        position: absolute;
        top: calc(100% + 8px);
        left: 12px;
        right: 12px;
        flex-direction: column;
        gap: 10px;
        padding: 12px;
        background: rgba(15, 23, 42, 0.92);
        border: 1px solid rgba(148, 163, 184, 0.25);
        border-radius: 14px;
        backdrop-filter: blur(8px);
        -webkit-backdrop-filter: blur(8px);
        box-shadow: 0 16px 28px rgba(2, 6, 23, 0.45);
        z-index: 1200;
    }
    .main-nav.mobile-open {
        display: flex;
        animation: mobileMenuIn 0.18s ease-out;
    }
    @keyframes mobileMenuIn {
        from { opacity: 0; transform: translateY(-6px) scale(0.99); }
        to { opacity: 1; transform: translateY(0) scale(1); }
    }
    .nav-link {
        text-align: left;
        padding: 12px 14px;
        border-radius: 10px;
        font-size: 0.95rem;
        letter-spacing: 0.1px;
    }
}
.site-header.is-game { margin-bottom: 0 !important; }
.game-bar {
    background: linear-gradient(135deg, #0f172a, #1e293b);
    border-bottom: 1px solid #334155;
    margin-top: 0;
}
.game-bar-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 12px 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}
.game-bar-left, .game-bar-right { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.game-bar-title { color: #fbbf24; font-weight: 800; font-size: 1rem; margin-right: 6px; }
.game-bar-link {
    color: #cbd5e1; text-decoration: none; font-size: 0.85rem; font-weight: 600;
    padding: 5px 12px; border-radius: 6px; transition: all 0.2s;
}
.game-bar-link:hover { color: #fff; background: rgba(255,255,255,0.1); }
.game-bar-badge { padding: 6px 14px; border-radius: 16px; font-weight: 800; font-size: 0.85rem; white-space: nowrap; }
.gb-points { background: rgba(59,130,246,0.25); color: #93bbfd; border: 1px solid rgba(59,130,246,0.4); }
.gb-gold { background: rgba(251,191,36,0.25); color: #fcd34d; border: 1px solid rgba(251,191,36,0.4); }
.game-bar-user { color: #f1f5f9; font-weight: 700; font-size: 0.85rem; }
.game-bar-logout {
    color: #f87171; text-decoration: none; font-size: 0.75rem; font-weight: 600;
    padding: 3px 8px; border-radius: 4px; border: 1px solid rgba(248,113,113,0.3);
}
.game-bar-logout:hover { background: rgba(248,113,113,0.15); }
.game-bar-login {
    background: #10b981; color: #fff; text-decoration: none;
    padding: 5px 14px; border-radius: 6px; font-weight: 700; font-size: 0.8rem;
}
.game-bar-pool {
    text-decoration: none; display: inline-flex; align-items: center; gap: 6px;
    background: linear-gradient(135deg, rgba(251,191,36,0.15), rgba(245,158,11,0.1));
    border: 1px solid rgba(251,191,36,0.3);
    padding: 5px 14px; border-radius: 20px;
    font-size: 0.8rem; font-weight: 800; color: #fbbf24;
    transition: all 0.2s; white-space: nowrap;
}
.game-bar-pool:hover { background: rgba(251,191,36,0.2); transform: translateY(-1px); }
.game-bar-pool .pool-label { font-size: 0.65rem; color: #94a3b8; font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; }
.game-bar-pool .pool-val { color: #fcd34d; }
.game-bar-last5 { display: flex; gap: 2px; align-items: center; }
.l5 {
    width: 20px; height: 20px; border-radius: 4px;
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 0.6rem; font-weight: 800;
}
.l5.w { background: rgba(34,197,94,0.25); color: #4ade80; border: 1px solid rgba(34,197,94,0.4); }
.l5.l { background: rgba(239,68,68,0.25); color: #f87171; border: 1px solid rgba(239,68,68,0.4); }
.l5.e { background: rgba(255,255,255,0.08); color: rgba(255,255,255,0.25); border: 1px solid rgba(255,255,255,0.1); }
.prize-board {
    background: linear-gradient(135deg, #0c1222 0%, #162032 40%, #1a1040 70%, #0c1222 100%);
    border-bottom: 1px solid #334155;
    text-align: center;
    padding: 22px 15px 16px;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    text-decoration: none;
    display: block;
}
.prize-board::before {
    content: ''; position: absolute; top: 0; left: -100%;
    width: 60%; height: 100%;
    background: linear-gradient(to right, transparent, rgba(251,191,36,0.04), transparent);
    transform: skewX(-20deg);
    animation: boardShimmer 4s ease-in-out infinite;
}
@keyframes boardShimmer { 0%{left:-100%} 50%,100%{left:200%} }
.prize-board::after {
    content: ''; position: absolute; top: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(251,191,36,0.4), transparent);
}
.prize-board-label {
    font-size: 0.7rem; letter-spacing: 4px; text-transform: uppercase;
    color: #7c6f9b; font-weight: 700; margin-bottom: 4px;
}
.prize-board-amount {
    font-size: 3rem; font-weight: 900; line-height: 1.1;
    font-family: 'Segoe UI', 'Courier New', monospace;
    color: #fbbf24;
    text-shadow: 0 0 30px rgba(251,191,36,0.3), 0 0 60px rgba(251,191,36,0.1);
}
.prize-board-amount .baht {
    font-size: 1.8rem; color: #f59e0b; vertical-align: super; margin-right: 2px;
}
.prize-board-ticker {
    margin-top: 8px; display: flex; align-items: center;
    justify-content: center; gap: 16px; flex-wrap: wrap;
}
.prize-board-tag {
    display: inline-flex; align-items: center; gap: 6px;
    font-size: 0.72rem; font-weight: 700; color: #94a3b8; white-space: nowrap;
}
.prize-board-tag .hl { color: #fbbf24; }
.prize-board-tag .jp { color: #a78bfa; }
.prize-board-dot { width: 4px; height: 4px; border-radius: 50%; background: #334155; }
.prize-board-cats {
    display: flex; justify-content: center; gap: 8px; flex-wrap: wrap;
    margin-top: 10px;
}
.pb-cat {
    font-size: 0.7rem; font-weight: 700; padding: 3px 12px;
    border-radius: 20px; white-space: nowrap;
}
.pb-blue { background: rgba(59,130,246,0.15); color: #93bbfd; border: 1px solid rgba(59,130,246,0.3); }
.pb-purple { background: rgba(139,92,246,0.15); color: #c4b5fd; border: 1px solid rgba(139,92,246,0.3); }
.pb-gold { background: rgba(251,191,36,0.15); color: #fcd34d; border: 1px solid rgba(251,191,36,0.3); }
.prize-board-winners {
    margin-top: 10px; display: flex; align-items: center;
    justify-content: center; gap: 8px; flex-wrap: wrap;
}
.pbw-label { font-size: 0.68rem; color: #64748b; font-weight: 700; white-space: nowrap; }
.pbw-names { display: inline-flex; gap: 5px; flex-wrap: wrap; justify-content: center; }
.pbw-name {
    font-size: 0.68rem; font-weight: 700; color: #4ade80;
    background: rgba(34,197,94,0.1); border: 1px solid rgba(34,197,94,0.2);
    padding: 2px 10px; border-radius: 12px;
}
@media (max-width: 768px) {
    .game-bar-inner { flex-direction: column; gap: 6px; padding: 6px 10px; }
    .game-bar-left, .game-bar-right { flex-wrap: wrap; justify-content: center; }
    .game-bar-title { font-size: 0.8rem; }
    .prize-board { padding: 16px 10px 12px; }
    .prize-board-amount { font-size: 2.2rem; }
    .prize-board-amount .baht { font-size: 1.3rem; }
    .prize-board-ticker { gap: 8px; }
    .prize-board-cats { gap: 4px; }
    .pb-cat { font-size: 0.65rem; padding: 2px 8px; }
}

/* ---- ส่วนประกอบ SEO (FAQ / ลิงก์แนะนำ) ----
   ใช้ภาษาภาพชุดเดียวกับหน้าเดิม: การ์ดขาวบนพื้นไล่สีเข้ม แอคเซนต์ #3498db */
.gs-seo-block { max-width: 1100px; margin: 25px auto 0; padding: 0 10px; }
.gs-seo-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.8fr) minmax(0, 1fr);
    gap: 15px;
    align-items: start;
}
.gs-seo-grid.is-single { grid-template-columns: minmax(0, 1fr); }

.gs-eyebrow {
    display: block;
    font-size: 1.05rem; font-weight: 800; color: #fff;
    margin: 0 0 10px;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.4);
}

/* ย่อหน้าอธิบายใต้ H1 — เนื้อหาสำหรับ SEO อ่านออกบนพื้นเข้ม */
.gs-page-lede {
    max-width: 70ch;
    margin: -6px 0 12px 5px;
    color: rgba(255,255,255,0.78);
    font-size: 0.88rem;
    line-height: 1.65;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.35);
}
@media (max-width: 768px) {
    .gs-page-lede { font-size: 0.8rem; margin: 0 0 10px; }
}
.gs-faq-list { display: grid; gap: 8px; }
.gs-faq {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    overflow: hidden;
}
.gs-faq > summary {
    list-style: none; cursor: pointer;
    padding: 12px 15px;
    font-size: 0.92rem; font-weight: 700; color: #2c3e50;
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    border-left: 4px solid #3498db;
    transition: background 0.2s;
}
.gs-faq > summary::-webkit-details-marker { display: none; }
.gs-faq > summary:hover { background: #eaf6fb; }
.gs-faq > summary::after {
    content: '▾'; color: #3498db; font-size: 0.9rem; flex: 0 0 auto;
    transition: transform 0.2s;
}
.gs-faq[open] > summary::after { transform: rotate(180deg); }
.gs-faq[open] > summary { border-bottom: 1px solid #eee; }
.gs-faq-body {
    padding: 12px 15px 15px;
    color: #444; font-size: 0.88rem; line-height: 1.7;
}
.gs-faq-body a { color: #3498db; text-decoration: none; }
.gs-faq-body a:hover { text-decoration: underline; }

.gs-hub {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    padding: 15px;
}
.gs-hub h3 {
    font-size: 0.95rem; font-weight: 800; color: #2c3e50;
    margin: 0 0 10px; padding-bottom: 8px;
    border-bottom: 2px solid #3498db;
}
.gs-hub ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.gs-hub a {
    display: flex; align-items: center; justify-content: space-between; gap: 10px;
    padding: 8px 10px;
    border-radius: 6px;
    color: #2c3e50; font-size: 0.88rem; font-weight: 600; text-decoration: none;
    transition: background 0.2s, color 0.2s;
}
.gs-hub a:hover { background: #eaf6fb; color: #2980b9; }
.gs-hub a::after { content: '›'; color: #9bb; font-size: 1.05rem; }
.gs-hub a:hover::after { color: #3498db; }

.gs-visually-hidden {
    position: absolute !important;
    width: 1px; height: 1px; margin: -1px; padding: 0;
    overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%);
    white-space: nowrap; border: 0;
}

@media (max-width: 768px) {
    .gs-seo-block { padding: 0 6px; margin-top: 18px; }
    .gs-seo-grid { grid-template-columns: minmax(0, 1fr); gap: 12px; }
    .gs-eyebrow { font-size: 0.95rem; }
}