/* ============================================================
 * b780-theme.css — Playtime Apps (en-PH) mobile-first theme
 * All custom classes use prefix: g804-
 * Palette: deep violet base + amber/gold accent + magenta highlight
 * Canvas: 320–430px mobile. Desktop frame kept narrow on purpose.
 * ============================================================ */

:root {
    --g804-bg:        #16093a;
    --g804-bg-2:      #211052;
    --g804-bg-3:      #2e1a6b;
    --g804-panel:     #2a1660;
    --g804-panel-2:   #36207c;
    --g804-card:      #ffffff;
    --g804-text:      #f3eaff;
    --g804-text-dim:  #b6a6e0;
    --g804-accent:    #ffcf3a;
    --g804-accent-2:  #ff8a3a;
    --g804-pink:      #ff3ea5;
    --g804-cyan:      #34e3ff;
    --g804-green:     #2bd97c;
    --g804-border:    rgba(255,255,255,.12);
    --g804-radius:    14px;
    --g804-shadow:    0 8px 22px rgba(8,2,28,.45);
    --g804-header-h:  58px;
    --g804-bottom-h:  64px;
}

* { box-sizing: border-box; }

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

body {
    margin: 0;
    background: radial-gradient(1200px 600px at 50% -10%, #3b1d8f 0%, var(--g804-bg) 55%) fixed,
                linear-gradient(180deg, var(--g804-bg) 0%, #0d0524 100%);
    color: var(--g804-text);
    font-family: "Segoe UI", "Roboto", system-ui, -apple-system, Arial, sans-serif;
    font-size: 15px;
    line-height: 1.55;
    min-height: 100vh;
    padding-bottom: calc(var(--g804-bottom-h) + 16px);
    overflow-x: hidden;
}

a { color: var(--g804-cyan); text-decoration: none; }
a:hover { color: var(--g804-accent); }
img { max-width: 100%; display: block; }

/* Constrain canvas: stays mobile on wider screens. */
.g804-wrap { width: 100%; max-width: 480px; margin: 0 auto; padding: 0 12px; }

/* ================= HEADER ================= */
.g804-header {
    position: sticky; top: 0; z-index: 40;
    height: var(--g804-header-h);
    background: linear-gradient(180deg, rgba(28,12,68,.96), rgba(28,12,68,.86));
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--g804-border);
}
.g804-header-inner {
    height: 100%; display: flex; align-items: center; gap: 8px;
    max-width: 480px; margin: 0 auto; padding: 0 12px;
}
.g804-menu-btn {
    width: 38px; height: 38px; flex: 0 0 38px;
    border: 1px solid var(--g804-border); border-radius: 10px;
    background: rgba(255,255,255,.05); color: var(--g804-text);
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; font-size: 18px;
}
.g804-menu-btn:hover { background: rgba(255,255,255,.12); }

.g804-brand {
    display: flex; align-items: center; gap: 8px; flex: 1 1 auto; min-width: 0;
    color: var(--g804-text);
}
.g804-brand img { width: 32px; height: 32px; border-radius: 8px; }
.g804-brand-text { display: flex; flex-direction: column; line-height: 1.1; min-width: 0; }
.g804-brand-title {
    font-size: 15px; font-weight: 800; letter-spacing: .3px;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
    background: linear-gradient(90deg, var(--g804-accent), var(--g804-pink));
    -webkit-background-clip: text; background-clip: text; color: transparent;
}
.g804-brand-sub { font-size: 10px; color: var(--g804-text-dim); }

.g804-header-actions { display: flex; gap: 6px; }
.g804-btn {
    border: none; border-radius: 999px; cursor: pointer;
    font-weight: 700; font-size: 12.5px; padding: 8px 14px;
    transition: transform .12s ease, box-shadow .12s ease, opacity .12s ease;
    color: #1a0a3c; white-space: nowrap;
}
.g804-btn:active { transform: scale(.96); }
.g804-btn-login {
    background: rgba(255,255,255,.16); color: var(--g804-text);
    border: 1px solid var(--g804-border);
}
.g804-btn-register {
    background: linear-gradient(90deg, var(--g804-accent), var(--g804-accent-2));
    box-shadow: 0 4px 12px rgba(255,138,58,.4);
}

/* ================= SIDE MENU ================= */
.g804-overlay {
    position: fixed; inset: 0; background: rgba(6,2,20,.55);
    opacity: 0; pointer-events: none; z-index: 60;
    transition: opacity .22s ease;
}
.g804-overlay.g804-show { opacity: 1; pointer-events: auto; }

.g804-side-menu {
    position: fixed; top: 0; left: 0; bottom: 0;
    width: 82%; max-width: 300px; z-index: 70;
    background: linear-gradient(180deg, #261455, #14082e);
    border-right: 1px solid var(--g804-border);
    transform: translateX(-105%); transition: transform .26s ease;
    padding: 14px 0 22px; overflow-y: auto;
}
.g804-side-menu.g804-open { transform: translateX(0); }
.g804-side-head {
    display: flex; align-items: center; gap: 10px;
    padding: 8px 16px 14px; border-bottom: 1px solid var(--g804-border);
}
.g804-side-head img { width: 36px; height: 36px; border-radius: 8px; }
.g804-side-head strong { font-size: 15px; }
.g804-side-head span { font-size: 11px; color: var(--g804-text-dim); display: block; }
.g804-side-close {
    margin-left: auto; width: 32px; height: 32px; border-radius: 8px;
    background: rgba(255,255,255,.08); border: none; color: var(--g804-text);
    font-size: 16px; cursor: pointer;
}
.g804-side-section-title {
    font-size: 11px; letter-spacing: 1.5px; text-transform: uppercase;
    color: var(--g804-text-dim); padding: 14px 18px 6px;
}
.g804-side-menu a {
    display: flex; align-items: center; gap: 10px;
    padding: 10px 18px; color: var(--g804-text);
    border-left: 3px solid transparent;
}
.g804-side-menu a:hover, .g804-side-menu a:focus {
    background: rgba(255,255,255,.06);
    border-left-color: var(--g804-accent);
    color: var(--g804-accent);
}
.g804-side-promo {
    margin: 14px 16px; padding: 14px; border-radius: 12px;
    background: linear-gradient(135deg, var(--g804-pink), var(--g804-accent-2));
    color: #1a0a3c; font-weight: 800; text-align: center;
    border: none; cursor: pointer;
    box-shadow: 0 6px 16px rgba(255,62,165,.35);
}

/* ================= HERO ================= */
.g804-hero {
    position: relative; border-radius: 18px; overflow: hidden;
    margin: 12px 0 6px; box-shadow: var(--g804-shadow);
    aspect-ratio: 16 / 9;
}
.g804-hero-track { position: absolute; inset: 0; }
.g804-hero-slide {
    position: absolute; inset: 0; opacity: 0;
    transition: opacity .6s ease;
    display: flex; flex-direction: column; justify-content: flex-end;
    padding: 16px; color: #fff;
}
.g804-hero-slide.g804-active { opacity: 1; }
.g804-hero-slide img {
    position: absolute; inset: 0; width: 100%; height: 100%;
    object-fit: cover;
}
.g804-hero-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(0deg, rgba(8,2,24,.85) 0%, rgba(8,2,24,.15) 55%, rgba(8,2,24,.0) 100%);
}
.g804-hero-content { position: relative; }
.g804-hero-tag {
    display: inline-block; font-size: 10px; font-weight: 800; letter-spacing: 1px;
    background: var(--g804-pink); color: #fff; padding: 3px 10px;
    border-radius: 999px; margin-bottom: 6px; text-transform: uppercase;
}
.g804-hero-title { font-size: 22px; font-weight: 900; margin: 0 0 4px; line-height: 1.15; }
.g804-hero-sub { font-size: 12.5px; margin: 0 0 10px; color: #ffe9c9; max-width: 90%; }
.g804-hero-cta {
    display: inline-block; padding: 8px 18px; font-size: 13px; font-weight: 800;
    border-radius: 999px; color: #1a0a3c;
    background: linear-gradient(90deg, var(--g804-accent), var(--g804-accent-2));
}
.g804-hero-dots {
    position: absolute; bottom: 8px; right: 12px;
    display: flex; gap: 5px; z-index: 2;
}
.g804-hero-dot {
    width: 7px; height: 7px; border-radius: 50%;
    background: rgba(255,255,255,.45); cursor: pointer;
}
.g804-hero-dot.g804-active { background: var(--g804-accent); width: 18px; border-radius: 4px; }

/* ================= SEARCH BAR ================= */
.g804-search {
    margin: 14px 0 4px; display: flex; gap: 6px;
    background: rgba(255,255,255,.08);
    border: 1px solid var(--g804-border);
    border-radius: 12px; padding: 6px 8px;
}
.g804-search input {
    flex: 1; min-width: 0; background: transparent; border: none;
    color: var(--g804-text); font-size: 13px; outline: none; padding: 6px;
}
.g804-search input::placeholder { color: var(--g804-text-dim); }
.g804-search button {
    border: none; border-radius: 10px; padding: 8px 14px;
    background: linear-gradient(90deg, var(--g804-accent), var(--g804-accent-2));
    color: #1a0a3c; font-weight: 800; font-size: 12.5px; cursor: pointer;
}

/* ================= STATS ROW ================= */
.g804-stats {
    display: grid; grid-template-columns: repeat(4, 1fr);
    gap: 8px; margin: 14px 0 6px;
}
.g804-stat {
    background: rgba(255,255,255,.06);
    border: 1px solid var(--g804-border);
    border-radius: 12px; padding: 10px 4px; text-align: center;
}
.g804-stat-num {
    font-size: 17px; font-weight: 900;
    background: linear-gradient(90deg, var(--g804-accent), var(--g804-pink));
    -webkit-background-clip: text; background-clip: text; color: transparent;
}
.g804-stat-label { font-size: 10px; color: var(--g804-text-dim); margin-top: 2px; }

/* ================= SECTION TITLES ================= */
.g804-section { margin: 18px 0 4px; }
.g804-section-head {
    display: flex; align-items: center; gap: 8px; margin-bottom: 10px;
}
.g804-section-title {
    font-size: 17px; font-weight: 900; margin: 0; flex: 1 1 auto;
}
.g804-section-title .g804-amp {
    background: linear-gradient(90deg, var(--g804-accent), var(--g804-pink));
    -webkit-background-clip: text; background-clip: text; color: transparent;
}
.g804-more { font-size: 12px; color: var(--g804-cyan); font-weight: 700; }

/* ================= CATEGORY TABS ================= */
.g804-cat-tabs {
    display: flex; gap: 6px; overflow-x: auto;
    padding-bottom: 6px; margin-bottom: 10px;
    scrollbar-width: none;
}
.g804-cat-tabs::-webkit-scrollbar { display: none; }
.g804-cat-tab {
    flex: 0 0 auto; border: 1px solid var(--g804-border);
    background: rgba(255,255,255,.05); color: var(--g804-text-dim);
    border-radius: 999px; padding: 7px 14px; font-size: 12.5px; font-weight: 700;
    cursor: pointer; white-space: nowrap;
}
.g804-cat-tab.g804-active {
    background: linear-gradient(90deg, var(--g804-accent), var(--g804-accent-2));
    color: #1a0a3c; border-color: transparent;
}

/* ================= GAME GRID ================= */
.g804-game-group { margin-bottom: 6px; }
.g804-game-group-title {
    font-size: 13px; color: var(--g804-text-dim);
    text-transform: uppercase; letter-spacing: 1.2px;
    margin: 6px 2px 10px; font-weight: 700;
}
.g804-grid {
    display: grid; grid-template-columns: repeat(4, 1fr);
    gap: 8px;
}
@media (min-width: 360px) { .g804-grid { gap: 9px; } }
@media (min-width: 410px) { .g804-grid { grid-template-columns: repeat(5, 1fr); } }

.g804-card {
    background: var(--g804-panel);
    border: 1px solid var(--g804-border);
    border-radius: 12px; overflow: hidden; position: relative;
    transition: transform .12s ease, box-shadow .12s ease;
}
.g804-card:active { transform: translateY(2px); }
.g804-card:hover { box-shadow: var(--g804-shadow); }
.g804-card-media {
    position: relative; aspect-ratio: 1 / 1; overflow: hidden;
    background: linear-gradient(135deg, #3a1f87, #1d0e44);
}
.g804-card-media img { width: 100%; height: 100%; object-fit: cover; }
.g804-card-badge {
    position: absolute; top: 4px; left: 4px;
    font-size: 9px; font-weight: 800; letter-spacing: .5px;
    background: var(--g804-pink); color: #fff; padding: 2px 6px;
    border-radius: 6px; text-transform: uppercase;
}
.g804-card-badge.g804-hot { background: var(--g804-accent-2); }
.g804-card-badge.g804-new { background: var(--g804-green); color: #06310f; }
.g804-card-play {
    position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
    opacity: 0; background: rgba(8,2,24,.55); transition: opacity .15s ease;
}
.g804-card:hover .g804-card-play { opacity: 1; }
.g804-card-play span {
    display: inline-block; padding: 6px 12px; border-radius: 999px;
    background: linear-gradient(90deg, var(--g804-accent), var(--g804-accent-2));
    color: #1a0a3c; font-size: 11px; font-weight: 800;
}
.g804-card-name {
    font-size: 11px; text-align: center; padding: 5px 4px 6px;
    color: var(--g804-text); white-space: nowrap; overflow: hidden;
    text-overflow: ellipsis;
}

/* ================= BANNER CARDS (promo strip) ================= */
.g804-promo-strip {
    display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 14px 0 4px;
}
.g804-promo-card {
    border-radius: 14px; padding: 14px; color: #fff; position: relative;
    overflow: hidden; min-height: 90px; border: 1px solid var(--g804-border);
    display: flex; flex-direction: column; justify-content: space-between;
}
.g804-promo-card.a { background: linear-gradient(135deg, #ff3ea5, #ff8a3a); }
.g804-promo-card.b { background: linear-gradient(135deg, #34e3ff, #5b6bff); }
.g804-promo-card strong { font-size: 15px; }
.g804-promo-card span { font-size: 11px; opacity: .9; display: block; margin-top: 4px; }
.g804-promo-card button {
    margin-top: 8px; align-self: flex-start;
    background: rgba(0,0,0,.35); color: #fff; border: 1px solid rgba(255,255,255,.4);
    padding: 6px 12px; border-radius: 999px; font-size: 11.5px; font-weight: 800; cursor: pointer;
}

/* ================= FEATURES GRID ================= */
.g804-features {
    display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin: 6px 0;
}
.g804-feature {
    background: rgba(255,255,255,.05);
    border: 1px solid var(--g804-border);
    border-radius: 14px; padding: 14px;
}
.g804-feature .g804-ic { font-size: 22px; }
.g804-feature h3 { margin: 6px 0 4px; font-size: 14px; }
.g804-feature p { margin: 0; font-size: 12px; color: var(--g804-text-dim); }
.g804-feature a { display: inline-block; margin-top: 8px; font-size: 12px; font-weight: 800; color: var(--g804-accent); }

/* ================= CONTENT / SEO TEXT ================= */
.g804-content {
    background: rgba(255,255,255,.04);
    border: 1px solid var(--g804-border);
    border-radius: 14px; padding: 16px; margin: 14px 0 4px;
}
.g804-content h2 { font-size: 17px; margin: 0 0 8px; }
.g804-content h3 { font-size: 14px; margin: 14px 0 6px; color: var(--g804-accent); }
.g804-content p { font-size: 13px; color: var(--g804-text-dim); margin: 0 0 10px; }
.g804-content ul { margin: 0 0 10px; padding-left: 18px; }
.g804-content li { font-size: 13px; color: var(--g804-text-dim); margin-bottom: 4px; }
.g804-content a { color: var(--g804-cyan); font-weight: 700; }

/* ================= FAQ ================= */
.g804-faq-item {
    background: rgba(255,255,255,.04);
    border: 1px solid var(--g804-border);
    border-radius: 12px; margin-bottom: 8px; overflow: hidden;
}
.g804-faq-q {
    width: 100%; text-align: left; background: none; border: none;
    color: var(--g804-text); padding: 12px 14px; font-size: 13.5px; font-weight: 700;
    cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 10px;
}
.g804-faq-q .g804-faq-ic { flex: 0 0 auto; color: var(--g804-accent); font-size: 16px; transition: transform .2s; }
.g804-faq-item.g804-open .g804-faq-ic { transform: rotate(45deg); }
.g804-faq-panel {
    max-height: 0; overflow: hidden; transition: max-height .25s ease;
    padding: 0 14px;
}
.g804-faq-panel p { margin: 0; padding: 0 0 12px; font-size: 12.5px; color: var(--g804-text-dim); }

/* ================= RESPONSIBLE GAMING NOTICE ================= */
.g804-rg {
    margin: 14px 0 4px; padding: 12px 14px; border-radius: 12px;
    background: rgba(255,207,58,.08); border: 1px solid rgba(255,207,58,.35);
    font-size: 11.5px; color: #ffe7a8;
}
.g804-rg strong { color: var(--g804-accent); }

/* ================= CTA BANNER ================= */
.g804-cta {
    margin: 16px 0 4px; padding: 18px; border-radius: 16px; text-align: center;
    background: linear-gradient(135deg, var(--g804-pink) 0%, var(--g804-accent-2) 100%);
    color: #1a0a3c;
}
.g804-cta h2 { margin: 0 0 6px; font-size: 19px; }
.g804-cta p { margin: 0 0 12px; font-size: 12.5px; }
.g804-cta button {
    background: #1a0a3c; color: var(--g804-accent);
    border: none; border-radius: 999px; padding: 10px 22px;
    font-size: 14px; font-weight: 900; cursor: pointer;
}

/* ================= FOOTER ================= */
.g804-footer {
    margin-top: 22px; padding-top: 18px;
    border-top: 1px solid var(--g804-border);
    color: var(--g804-text-dim); font-size: 12px;
}
.g804-footer-cols {
    display: grid; grid-template-columns: 1fr 1fr; gap: 14px;
}
.g804-footer h4 {
    font-size: 12px; letter-spacing: 1px; text-transform: uppercase;
    color: var(--g804-text); margin: 0 0 8px;
}
.g804-footer ul { list-style: none; margin: 0; padding: 0; }
.g804-footer li { margin-bottom: 6px; }
.g804-footer a { color: var(--g804-text-dim); font-size: 12px; }
.g804-footer a:hover { color: var(--g804-accent); }
.g804-footer-bottom {
    margin-top: 14px; padding-top: 12px;
    border-top: 1px solid var(--g804-border);
    text-align: center; font-size: 11px; color: var(--g804-text-dim);
}
.g804-18plus {
    display: inline-block; border: 1px solid var(--g804-border);
    border-radius: 6px; padding: 1px 5px; font-weight: 800; margin-right: 4px;
    color: var(--g804-accent);
}

/* ================= BOTTOM NAV ================= */
.g804-bottom {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
    height: var(--g804-bottom-h);
    background: linear-gradient(180deg, rgba(28,12,68,.96), rgba(14,5,38,.99));
    backdrop-filter: blur(10px);
    border-top: 1px solid var(--g804-border);
    display: flex; justify-content: space-around; align-items: stretch;
    padding: 0;
}
.g804-bottom-inner {
    width: 100%; max-width: 480px; margin: 0 auto;
    display: flex; justify-content: space-around; align-items: stretch; height: 100%;
}
.g804-b-item {
    flex: 1 1 0; display: flex; flex-direction: column; align-items: center;
    justify-content: center; gap: 3px; color: var(--g804-text-dim);
    background: none; border: none; cursor: pointer;
    font-size: 10px; font-weight: 700; padding: 6px 2px; position: relative;
}
.g804-b-item .g804-b-ic { width: 22px; height: 22px; display: block; }
.g804-b-item.g804-center {
    color: #1a0a3c;
}
.g804-b-item.g804-center .g804-b-circle {
    width: 44px; height: 44px; border-radius: 50%;
    background: linear-gradient(135deg, var(--g804-accent), var(--g804-accent-2));
    display: flex; align-items: center; justify-content: center;
    margin-top: -22px; box-shadow: 0 4px 12px rgba(255,138,58,.5);
    border: 3px solid #1a0a3c;
}
.g804-b-item.g804-center .g804-b-circle .g804-b-ic { width: 22px; height: 22px; }
.g804-b-item.g804-active { color: var(--g804-accent); }
.g804-b-item.g804-active::before {
    content: ""; position: absolute; top: 0; left: 50%; transform: translateX(-50%);
    width: 22px; height: 3px; border-radius: 0 0 4px 4px; background: var(--g804-accent);
}

/* ================= TOP BUTTON ================= */
.g804-top-btn {
    position: fixed; right: 14px; bottom: calc(var(--g804-bottom-h) + 14px);
    width: 40px; height: 40px; border-radius: 50%;
    background: linear-gradient(135deg, var(--g804-accent), var(--g804-accent-2));
    color: #1a0a3c; border: none; font-size: 18px; font-weight: 900; cursor: pointer;
    opacity: 0; pointer-events: none; transition: opacity .2s; z-index: 45;
    box-shadow: var(--g804-shadow);
}
.g804-top-btn.g804-show { opacity: 1; pointer-events: auto; }

/* ================= UTIL ================= */
.g804-no-scroll { overflow: hidden; }
.g804-page-title { font-size: 24px; line-height: 1.08; margin: 18px 0 8px; letter-spacing: -.3px; }
.g804-lead, .g804-intro { color: var(--g804-text-dim); font-size: 13px; margin: 0 0 12px; }
.g804-content strong { color: #f7d978; }
.g804-content h2, .g804-section h2 { line-height: 1.2; }
.g804-content h3 { line-height: 1.25; }
.g804-small { font-size: 11px !important; }
.g804-directory .g804-footer-cols { gap: 20px; }
.g804-directory ul { list-style: none; padding: 0; }
.g804-directory li { margin: 7px 0; }
.g804-directory li a { display: inline-block; padding: 5px 0; }
.g804-step-list { counter-reset: g804step; list-style: none; padding: 0; margin: 0; }
.g804-step-list li { counter-increment: g804step; border-left: 2px solid var(--g804-pink); padding: 10px 10px 10px 34px; margin: 0 0 10px; position: relative; background: rgba(255,255,255,.035); }
.g804-step-list li::before { content: counter(g804step); position: absolute; left: -13px; top: 10px; width: 24px; height: 24px; display: grid; place-items: center; border-radius: 50%; background: var(--g804-accent); color: #1a0a3c; font-weight: 900; }
.g804-compare { width: 100%; border-collapse: collapse; font-size: 12px; margin: 8px 0 12px; }
.g804-compare th, .g804-compare td { border-bottom: 1px solid var(--g804-border); padding: 9px 6px; text-align: left; vertical-align: top; }
.g804-compare th { color: var(--g804-accent); font-weight: 800; }
.g804-note { border-left: 3px solid var(--g804-cyan); padding: 10px 12px; background: rgba(52,227,255,.07); color: var(--g804-text-dim); font-size: 12.5px; margin: 12px 0; }
.g804-choice-row { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; margin: 10px 0; }
.g804-choice { border: 1px solid var(--g804-border); padding: 11px; border-radius: 10px; background: rgba(255,255,255,.04); }
.g804-choice h3 { margin-top: 0; }
.g804-page-links { display: flex; flex-wrap: wrap; gap: 7px; margin: 12px 0; }
.g804-page-links a { border: 1px solid var(--g804-border); padding: 8px 10px; border-radius: 8px; font-size: 12px; }
@media (max-width: 340px) { .g804-choice-row { grid-template-columns: 1fr; } .g804-stats { gap: 4px; } .g804-stat-num { font-size: 15px; } }
.g804-sr-only {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
