/* kuya-king-ph.css - mobile-first base styles for kuya king ph */
/* Palette: #273746 (deep slate) | #495057 (slate) | #FFD700 (gold) */
/* All custom classes use the gbf6- prefix. */

:root {
    --gbf6-bg: #273746;
    --gbf6-bg-2: #1f2c38;
    --gbf6-bg-3: #18222c;
    --gbf6-slate: #495057;
    --gbf6-gold: #FFD700;
    --gbf6-gold-2: #f5c518;
    --gbf6-cream: #f5f1e6;
    --gbf6-text: #e8edf2;
    --gbf6-muted: #9fb0c0;
    --gbf6-border: rgba(255, 215, 0, 0.18);
    --gbf6-shadow: 0 8px 30px rgba(0, 0, 0, 0.35);
    --gbf6-radius: 14px;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
    background: var(--gbf6-bg);
    background-image: radial-gradient(circle at 20% 0%, #2f4254 0%, var(--gbf6-bg) 45%, var(--gbf6-bg-3) 100%);
    color: var(--gbf6-text);
    line-height: 1.55;
    font-size: 15px;
    min-height: 100vh;
    overflow-x: hidden;
}

img { max-width: 100%; display: block; }

a { color: var(--gbf6-gold); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--gbf6-gold-2); }

h1, h2, h3, h4 { color: var(--gbf6-cream); line-height: 1.3; margin: 0 0 0.6em; font-weight: 700; }
h1 { font-size: 1.7rem; }
h2 { font-size: 1.4rem; }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }

.gbf6-container { width: 100%; max-width: 430px; margin: 0 auto; padding: 0 14px; }

/* ============ HEADER ============ */
.gbf6-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: linear-gradient(180deg, var(--gbf6-bg-3) 0%, rgba(39, 55, 70, 0.92) 100%);
    border-bottom: 1px solid var(--gbf6-border);
    backdrop-filter: blur(8px);
    transition: box-shadow 0.25s ease;
}
.gbf6-header.gbf6-scrolled { box-shadow: 0 6px 22px rgba(0, 0, 0, 0.45); }
.gbf6-header-inner {
    display: flex; align-items: center; justify-content: space-between;
    height: 60px; padding: 0 14px;
}
.gbf6-logo { display: flex; align-items: center; gap: 8px; color: var(--gbf6-cream); font-weight: 800; font-size: 1.05rem; }
.gbf6-logo img { width: 34px; height: 34px; border-radius: 8px; }
.gbf6-logo span { color: var(--gbf6-gold); }

.gbf6-header-actions { display: flex; align-items: center; gap: 8px; }

.gbf6-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 6px;
    border: none; border-radius: 30px; padding: 9px 18px; cursor: pointer;
    font-weight: 700; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.4px;
    transition: transform 0.15s, box-shadow 0.2s, background 0.2s;
    font-family: inherit;
}
.gbf6-btn:active { transform: scale(0.96); }

.gbf6-btn-register {
    background: linear-gradient(135deg, var(--gbf6-gold) 0%, var(--gbf6-gold-2) 100%);
    color: #3a2c00; box-shadow: 0 4px 14px rgba(255, 215, 0, 0.35);
}
.gbf6-btn-register:hover { color: #3a2c00; box-shadow: 0 6px 20px rgba(255, 215, 0, 0.5); }

.gbf6-btn-login {
    background: transparent; color: var(--gbf6-cream);
    border: 1.5px solid var(--gbf6-gold);
}
.gbf6-btn-login:hover { background: rgba(255, 215, 0, 0.1); color: var(--gbf6-gold); }

.gbf6-icon-btn {
    background: transparent; border: none; color: var(--gbf6-cream);
    font-size: 1.4rem; cursor: pointer; padding: 6px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
}
.gbf6-icon-btn:hover { background: rgba(255, 215, 0, 0.12); color: var(--gbf6-gold); }

/* ============ MOBILE MENU ============ */
.gbf6-menu-backdrop {
    position: fixed; inset: 0; background: rgba(0, 0, 0, 0.55);
    opacity: 0; pointer-events: none; transition: opacity 0.25s; z-index: 9998;
}
.gbf6-menu-backdrop.gbf6-visible { opacity: 1; pointer-events: auto; }

.gbf6-mobile-menu {
    position: fixed; top: 0; right: -85%; width: 80%; max-width: 320px;
    height: 100%; background: var(--gbf6-bg-3);
    z-index: 9999; padding: 20px; transition: right 0.3s ease;
    overflow-y: auto; border-left: 1px solid var(--gbf6-border);
}
.gbf6-mobile-menu.gbf6-open { right: 0; }
.gbf6-menu-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; padding-bottom: 12px; border-bottom: 1px solid var(--gbf6-border); }
.gbf6-menu-head h3 { margin: 0; color: var(--gbf6-gold); }
.gbf6-menu-list { list-style: none; padding: 0; margin: 0; }
.gbf6-menu-list li { margin-bottom: 6px; }
.gbf6-menu-list a {
    display: flex; align-items: center; gap: 12px; padding: 12px 14px;
    color: var(--gbf6-cream); border-radius: 10px; font-weight: 600;
    background: rgba(255, 255, 255, 0.03); border: 1px solid transparent;
}
.gbf6-menu-list a:hover { background: rgba(255, 215, 0, 0.1); border-color: var(--gbf6-border); color: var(--gbf6-gold); }
.gbf6-menu-list .material-icons, .gbf6-menu-list .bi { color: var(--gbf6-gold); font-size: 1.2rem; }
.gbf6-menu-cta { margin-top: 20px; display: flex; flex-direction: column; gap: 10px; }

/* ============ HERO ============ */
.gbf6-hero {
    position: relative; overflow: hidden; padding: 0;
}
.gbf6-hero-slide {
    display: none; position: relative; padding: 28px 16px 32px;
    background: linear-gradient(135deg, #2f4254 0%, #1a2733 100%);
    border-bottom: 2px solid var(--gbf6-gold);
}
.gbf6-hero-slide::before {
    content: ''; position: absolute; inset: 0; opacity: 0.22; background-size: cover;
    background-position: center; pointer-events: none;
}
.gbf6-hero-slide:nth-child(1)::before { background-image: url('../images/a3bf69b9_1.jpg'); }
.gbf6-hero-slide:nth-child(2)::before { background-image: url('../images/a3bf69b9_2.jpg'); }
.gbf6-hero-slide:nth-child(3)::before { background-image: url('../images/a3bf69b9_3.jpg'); }
.gbf6-hero-slide > * { position: relative; z-index: 1; }
.gbf6-hero-slide.gbf6-active { display: block; animation: gbf6-fade 0.6s ease; }
.gbf6-hero-slide h1 { font-size: 1.9rem; margin-bottom: 10px; }
.gbf6-hero-slide h1 .gbf6-accent { color: var(--gbf6-gold); }
.gbf6-hero-slide p { color: var(--gbf6-muted); font-size: 0.95rem; max-width: 320px; }
.gbf6-hero-cta { display: flex; gap: 10px; margin-top: 16px; flex-wrap: wrap; }
.gbf6-hero-dots { display: flex; justify-content: center; gap: 6px; padding: 10px 0; background: var(--gbf6-bg-2); }
.gbf6-hero-dot { width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,0.25); cursor: pointer; }
.gbf6-hero-dot.gbf6-active { background: var(--gbf6-gold); width: 22px; border-radius: 4px; }

@keyframes gbf6-fade { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }

/* ============ TRUST BAR ============ */
.gbf6-trust {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px;
    padding: 16px; background: var(--gbf6-bg-2);
}
.gbf6-trust-item { text-align: center; padding: 10px 6px; border-radius: 10px; background: rgba(255,215,0,0.05); border: 1px solid var(--gbf6-border); }
.gbf6-trust-item .material-icons, .gbf6-trust-item .bi { color: var(--gbf6-gold); font-size: 1.4rem; }
.gbf6-trust-item strong { display: block; color: var(--gbf6-cream); font-size: 0.95rem; margin-top: 4px; }
.gbf6-trust-item span { font-size: 0.72rem; color: var(--gbf6-muted); }

/* ============ SECTION ============ */
.gbf6-section { padding: 28px 14px; }
.gbf6-section-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.gbf6-section-title { display: flex; align-items: center; gap: 8px; font-size: 1.25rem; color: var(--gbf6-cream); margin: 0; }
.gbf6-section-title .gbf6-bar { width: 4px; height: 22px; background: var(--gbf6-gold); border-radius: 2px; }
.gbf6-section-link { font-size: 0.8rem; font-weight: 600; }

/* ============ FILTER TABS ============ */
.gbf6-filter-bar { display: flex; gap: 8px; overflow-x: auto; padding: 0 14px 14px; scrollbar-width: none; }
.gbf6-filter-bar::-webkit-scrollbar { display: none; }
.gbf6-filter-tab {
    flex: 0 0 auto; padding: 8px 16px; border-radius: 20px;
    background: var(--gbf6-bg-2); color: var(--gbf6-text);
    border: 1px solid transparent; cursor: pointer; font-weight: 600;
    font-size: 0.85rem; white-space: nowrap; font-family: inherit;
}
.gbf6-filter-tab.gbf6-active { background: var(--gbf6-gold); color: #3a2c00; }

/* ============ GAME GRID ============ */
.gbf6-game-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; padding: 0 14px; }
.gbf6-game-card {
    background: var(--gbf6-bg-2); border-radius: var(--gbf6-radius); overflow: hidden;
    border: 1px solid var(--gbf6-border); transition: transform 0.2s, box-shadow 0.2s;
    position: relative;
}
.gbf6-game-card:active { transform: scale(0.96); }
.gbf6-game-card:hover { transform: translateY(-3px); box-shadow: var(--gbf6-shadow); }
.gbf6-game-thumb { position: relative; aspect-ratio: 1; overflow: hidden; background: var(--gbf6-bg-3); }
.gbf6-game-thumb img { width: 100%; height: 100%; object-fit: cover; }
.gbf6-game-overlay {
    position: absolute; inset: 0; background: rgba(0,0,0,0.55);
    display: flex; align-items: center; justify-content: center;
    opacity: 0; transition: opacity 0.2s;
}
.gbf6-game-card:hover .gbf6-game-overlay { opacity: 1; }
.gbf6-game-overlay .gbf6-play-btn {
    width: 44px; height: 44px; border-radius: 50%;
    background: var(--gbf6-gold); color: #3a2c00;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.2rem;
}
.gbf6-game-name { padding: 7px 6px; text-align: center; font-size: 0.72rem; font-weight: 600; color: var(--gbf6-cream); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gbf6-game-tag {
    position: absolute; top: 5px; left: 5px; padding: 2px 7px;
    background: var(--gbf6-gold); color: #3a2c00; font-size: 0.6rem;
    font-weight: 700; border-radius: 4px; text-transform: uppercase;
}

/* ============ FEATURE BLOCKS ============ */
.gbf6-features { display: grid; gap: 12px; }
.gbf6-feature-card {
    display: flex; gap: 12px; padding: 14px; background: var(--gbf6-bg-2);
    border-radius: var(--gbf6-radius); border-left: 3px solid var(--gbf6-gold);
}
.gbf6-feature-icon {
    flex: 0 0 auto; width: 44px; height: 44px; border-radius: 10px;
    background: rgba(255,215,0,0.12); color: var(--gbf6-gold);
    display: flex; align-items: center; justify-content: center; font-size: 1.4rem;
}
.gbf6-feature-card h3 { margin: 0 0 4px; font-size: 1rem; }
.gbf6-feature-card p { margin: 0; font-size: 0.85rem; color: var(--gbf6-muted); }

/* ============ STEPS ============ */
.gbf6-steps { counter-reset: step; display: grid; gap: 12px; }
.gbf6-step {
    position: relative; padding: 14px 14px 14px 56px; background: var(--gbf6-bg-2);
    border-radius: var(--gbf6-radius); border: 1px solid var(--gbf6-border);
}
.gbf6-step::before {
    counter-increment: step; content: counter(step);
    position: absolute; left: 14px; top: 14px;
    width: 30px; height: 30px; border-radius: 50%;
    background: var(--gbf6-gold); color: #3a2c00;
    display: flex; align-items: center; justify-content: center; font-weight: 800;
}
.gbf6-step h3 { margin: 0 0 4px; font-size: 1rem; }
.gbf6-step p { margin: 0; font-size: 0.85rem; color: var(--gbf6-muted); }

/* ============ STATS ============ */
.gbf6-stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; padding: 20px 14px; background: var(--gbf6-bg-3); }
.gbf6-stat { text-align: center; padding: 14px 8px; background: var(--gbf6-bg-2); border-radius: var(--gbf6-radius); border: 1px solid var(--gbf6-border); }
.gbf6-stat-number { display: block; font-size: 1.6rem; font-weight: 800; color: var(--gbf6-gold); }
.gbf6-stat-label { display: block; font-size: 0.78rem; color: var(--gbf6-muted); margin-top: 2px; }

/* ============ FAQ ============ */
.gbf6-faq-list { display: grid; gap: 10px; }
.gbf6-faq-item { background: var(--gbf6-bg-2); border-radius: 12px; border: 1px solid var(--gbf6-border); overflow: hidden; }
.gbf6-faq-head {
    width: 100%; text-align: left; background: transparent; border: none;
    padding: 14px 16px; color: var(--gbf6-cream); font-weight: 700;
    cursor: pointer; display: flex; justify-content: space-between; align-items: center;
    gap: 12px; font-size: 0.95rem; font-family: inherit;
}
.gbf6-faq-head .gbf6-faq-icon { color: var(--gbf6-gold); transition: transform 0.2s; }
.gbf6-faq-item.gbf6-open .gbf6-faq-head .gbf6-faq-icon { transform: rotate(45deg); }
.gbf6-faq-body { max-height: 0; overflow: hidden; transition: max-height 0.3s ease, padding 0.3s; padding: 0 16px; color: var(--gbf6-muted); font-size: 0.88rem; }
.gbf6-faq-item.gbf6-open .gbf6-faq-body { max-height: 400px; padding: 0 16px 14px; }

/* ============ SEO CONTENT ============ */
.gbf6-seo-content { padding: 28px 14px; background: var(--gbf6-bg-2); }
.gbf6-seo-content h2 { color: var(--gbf6-cream); }
.gbf6-seo-content p { color: var(--gbf6-muted); font-size: 0.9rem; }
.gbf6-seo-content a { color: var(--gbf6-gold); font-weight: 600; }

/* ============ CTA BANNER ============ */
.gbf6-cta-banner {
    margin: 20px 14px; padding: 24px 18px; text-align: center;
    background: linear-gradient(135deg, var(--gbf6-gold) 0%, var(--gbf6-gold-2) 100%);
    border-radius: 18px; color: #3a2c00;
}
.gbf6-cta-banner h2 { color: #3a2c00; margin-bottom: 8px; }
.gbf6-cta-banner p { color: #4a3a00; margin-bottom: 14px; font-size: 0.9rem; }
.gbf6-cta-banner .gbf6-btn { background: var(--gbf6-bg); color: var(--gbf6-gold); }

/* ============ FOOTER ============ */
.gbf6-footer { background: var(--gbf6-bg-3); padding: 28px 14px 90px; border-top: 1px solid var(--gbf6-border); }
.gbf6-footer-grid { display: grid; gap: 18px; margin-bottom: 20px; }
.gbf6-footer-col h4 { color: var(--gbf6-gold); font-size: 0.95rem; margin-bottom: 10px; }
.gbf6-footer-col ul { list-style: none; padding: 0; margin: 0; }
.gbf6-footer-col li { margin-bottom: 6px; }
.gbf6-footer-col a { color: var(--gbf6-muted); font-size: 0.85rem; }
.gbf6-footer-col a:hover { color: var(--gbf6-gold); }
.gbf6-footer-bottom { text-align: center; padding-top: 16px; border-top: 1px solid var(--gbf6-border); color: var(--gbf6-muted); font-size: 0.78rem; }
.gbf6-footer-disclaimer { margin-top: 14px; padding: 12px; background: var(--gbf6-bg-2); border-radius: 10px; font-size: 0.74rem; color: var(--gbf6-muted); text-align: center; }

/* ============ BACK TO TOP ============ */
.gbf6-to-top {
    position: fixed; bottom: 78px; right: 14px; width: 44px; height: 44px;
    border-radius: 50%; background: var(--gbf6-gold); color: #3a2c00;
    display: flex; align-items: center; justify-content: center; font-size: 1.3rem;
    cursor: pointer; opacity: 0; pointer-events: none; transition: opacity 0.25s;
    z-index: 999; box-shadow: var(--gbf6-shadow); border: none;
}
.gbf6-to-top.gbf6-visible { opacity: 1; pointer-events: auto; }

/* ============ BOTTOM NAV ============ */
.gbf6-bottom-nav {
    position: fixed; bottom: 0; left: 0; right: 0; height: 62px;
    background: linear-gradient(180deg, var(--gbf6-bg-2) 0%, var(--gbf6-bg-3) 100%);
    border-top: 1px solid var(--gbf6-border);
    display: flex; justify-content: space-around; align-items: center;
    z-index: 1000; box-shadow: 0 -4px 18px rgba(0, 0, 0, 0.35);
}
.gbf6-bottom-nav-btn {
    flex: 1; min-width: 60px; min-height: 60px;
    background: transparent; border: none; color: var(--gbf6-muted);
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: 2px; cursor: pointer; font-size: 0.68rem; font-weight: 600;
    font-family: inherit; padding: 6px 2px; position: relative;
    transition: color 0.2s;
}
.gbf6-bottom-nav-btn .material-icons,
.gbf6-bottom-nav-btn .bi,
.gbf6-bottom-nav-btn .fas,
.gbf6-bottom-nav-btn .far,
.gbf6-bottom-nav-btn ion-icon { font-size: 22px; }
.gbf6-bottom-nav-btn:hover { color: var(--gbf6-gold); }
.gbf6-bottom-nav-btn.gbf6-active { color: var(--gbf6-gold); }
.gbf6-bottom-nav-btn.gbf6-active::before {
    content: ''; position: absolute; top: 0; width: 28px; height: 3px;
    background: var(--gbf6-gold); border-radius: 0 0 4px 4px;
}
.gbf6-bottom-nav-btn.gbf6-promo {
    color: var(--gbf6-gold);
}
.gbf6-bottom-nav-btn.gbf6-promo ion-icon { font-size: 24px; }

main { padding-bottom: 80px; }

/* ============ DESKTOP ============ */
@media (min-width: 769px) {
    body { background-attachment: fixed; }
    .gbf6-container { max-width: 960px; }
    .gbf6-game-grid { grid-template-columns: repeat(6, 1fr); max-width: 960px; margin: 0 auto; }
    .gbf6-bottom-nav { display: none; }
    .gbf6-footer { padding-bottom: 28px; }
    main { padding-bottom: 20px; }
    .gbf6-features { grid-template-columns: repeat(2, 1fr); }
    .gbf6-stats { grid-template-columns: repeat(4, 1fr); max-width: 960px; margin: 0 auto; }
    .gbf6-footer-grid { grid-template-columns: repeat(4, 1fr); max-width: 960px; margin: 0 auto; }
    .gbf6-section, .gbf6-seo-content, .gbf6-filter-bar { max-width: 960px; margin-left: auto; margin-right: auto; }
    .gbf6-hero-slide { padding: 40px 20px 44px; }
    .gbf6-hero-slide h1 { font-size: 2.4rem; }
    .gbf6-hero-slide p { font-size: 1.05rem; max-width: 600px; }
}

@media (min-width: 769px) {
    .gbf6-desktop-nav { display: flex; gap: 14px; align-items: center; }
    .gbf6-desktop-nav a { color: var(--gbf6-cream); font-size: 0.85rem; font-weight: 600; }
    .gbf6-desktop-nav a:hover { color: var(--gbf6-gold); }
    .gbf6-menu-toggle-mobile { display: none; }
}
.gbf6-desktop-nav { display: none; }
.gbf6-menu-toggle-mobile { display: flex; }

/* Animation utility */
.gbf6-fade-in { animation: gbf6-fade 0.4s ease; }
