/* jili-games-apk.css
   Shared styles for jiligamesapk.click
   All custom classes use the g24f- prefix to isolate the namespace. */

:root {
    --g24f-bg: #1A1A2E;
    --g24f-bg-soft: #232347;
    --g24f-bg-card: #20203c;
    --g24f-bg-deep: #14142a;
    --g24f-primary: #20B2AA;
    --g24f-accent: #FFAA00;
    --g24f-pink: #FFCCCB;
    --g24f-mint: #98FB98;
    --g24f-text: #FFCCCB;
    --g24f-text-soft: #d9d9e6;
    --g24f-text-muted: #808080;
    --g24f-border: rgba(255, 204, 203, 0.12);
    --g24f-shadow: 0 4px 18px rgba(0, 0, 0, 0.35);
    --g24f-radius: 12px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 62.5%; -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-size: 1.5rem; line-height: 1.5;
    color: var(--g24f-text); background: var(--g24f-bg);
    min-height: 100vh; overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: var(--g24f-accent); text-decoration: none; }
a:hover, a:focus { color: var(--g24f-mint); }
button { font-family: inherit; }

/* Skip link */
.g24f-skip-link {
    position: absolute; top: -50px; left: 0;
    background: var(--g24f-accent); color: var(--g24f-bg);
    padding: 8px 16px; z-index: 2000; border-radius: 0 0 6px 0;
}
.g24f-skip-link:focus { top: 0; }

/* Layout primitives */
.g24f-container { width: 100%; max-width: 430px; margin: 0 auto; padding: 0 1.2rem; position: relative; }
.g24f-wrapper { padding: 1rem 0; }
.g24f-grid { display: grid; gap: 1rem; }
.g24f-hidden { display: none !important; }
.g24f-text-center { text-align: center; }
.g24f-mt-1 { margin-top: 0.5rem; }
.g24f-mt-2 { margin-top: 1rem; }
.g24f-flex { display: flex; gap: 0.6rem; align-items: center; flex-wrap: wrap; }

/* Header */
.g24f-header {
    position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
    background: linear-gradient(180deg, #1A1A2E 0%, #16162b 100%);
    border-bottom: 1px solid var(--g24f-border);
    box-shadow: var(--g24f-shadow);
}
.g24f-header-inner {
    max-width: 430px; margin: 0 auto; padding: 0.6rem 1.2rem;
    display: flex; align-items: center; justify-content: space-between; gap: 0.6rem;
}
.g24f-brand { display: flex; align-items: center; gap: 0.6rem; color: var(--g24f-text); min-width: 0; }
.g24f-brand-logo { width: 28px; height: 28px; border-radius: 6px; object-fit: cover; flex-shrink: 0; }
.g24f-brand-name { font-size: 1.4rem; font-weight: 700; color: var(--g24f-accent); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.g24f-header-actions { display: flex; align-items: center; gap: 0.4rem; }

/* Buttons */
.g24f-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 0.4rem;
    padding: 0.7rem 1.1rem; border-radius: 999px;
    font-size: 1.3rem; font-weight: 700;
    border: 1px solid transparent; cursor: pointer;
    transition: transform .15s ease, background .2s ease, color .2s ease;
    min-height: 36px; min-width: 44px;
    text-decoration: none; line-height: 1;
    -webkit-tap-highlight-color: transparent;
}
.g24f-btn:active { transform: scale(0.96); }
.g24f-btn-primary { background: var(--g24f-accent); color: var(--g24f-bg); }
.g24f-btn-primary:hover, .g24f-btn-primary:focus { background: #ffb820; color: var(--g24f-bg); }
.g24f-btn-outline { background: transparent; color: var(--g24f-mint); border-color: var(--g24f-mint); }
.g24f-btn-outline:hover, .g24f-btn-outline:focus { background: rgba(152, 251, 152, 0.12); }
.g24f-btn-ghost { background: rgba(255, 204, 203, 0.12); color: var(--g24f-text); }
.g24f-btn-ghost:hover, .g24f-btn-ghost:focus { background: rgba(255, 204, 203, 0.22); }

/* Menu toggle */
.g24f-menu-toggle {
    background: transparent; border: 0; color: var(--g24f-text);
    font-size: 1.6rem; cursor: pointer; padding: 6px; border-radius: 6px;
    min-width: 44px; min-height: 44px;
    display: inline-flex; align-items: center; justify-content: center;
    -webkit-tap-highlight-color: transparent;
}
.g24f-menu-toggle:hover, .g24f-menu-toggle:focus { background: rgba(255,255,255,0.08); }

/* Expandable navigation menu */
.g24f-mobile-menu {
    max-height: 0; overflow: hidden;
    background: var(--g24f-bg-deep);
    border-top: 1px solid transparent;
    transition: max-height .3s ease;
}
.g24f-mobile-menu.g24f-menu-open { max-height: 560px; border-top-color: var(--g24f-border); }
.g24f-mobile-menu-inner {
    max-width: 430px; margin: 0 auto; padding: 1rem 1.2rem;
    display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.6rem;
}
.g24f-mobile-menu a {
    display: block; padding: 0.7rem 0.8rem;
    color: var(--g24f-text-soft);
    background: rgba(255,204,203,0.05);
    border-radius: 6px; font-size: 1.2rem;
    border: 1px solid transparent;
}
.g24f-mobile-menu a:hover { color: var(--g24f-mint); border-color: var(--g24f-border); background: rgba(152,251,152,0.08); }
.g24f-body-lock { overflow: hidden; }

/* Main content area */
main { padding-top: 60px; padding-bottom: 20px; }

/* Carousel */
.g24f-carousel {
    position: relative; margin: 1rem 0 1.4rem;
    border-radius: var(--g24f-radius); overflow: hidden;
    box-shadow: var(--g24f-shadow); background: var(--g24f-bg-soft);
}
.g24f-slides { position: relative; }
.g24f-slide { display: none; width: 100%; cursor: pointer; position: relative; }
.g24f-slide img { width: 100%; height: auto; display: block; aspect-ratio: 16/9; object-fit: cover; }
.g24f-slide-active { display: block; }
.g24f-slide-overlay {
    position: absolute; left: 0; right: 0; bottom: 0;
    padding: 1rem 1.2rem 2.2rem;
    background: linear-gradient(0deg, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0) 100%);
    color: #fff; font-size: 1.3rem; font-weight: 700;
}
.g24f-dots {
    position: absolute; bottom: 8px; left: 0; right: 0;
    display: flex; justify-content: center; gap: 6px; z-index: 2;
}
.g24f-dot { width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,0.45); border: 0; cursor: pointer; padding: 0; }
.g24f-dot-active { background: var(--g24f-accent); }

/* Sections */
.g24f-section { padding: 1.4rem 0; }
.g24f-section-title {
    font-size: 1.7rem; font-weight: 700; color: var(--g24f-accent);
    margin-bottom: 0.8rem; display: flex; align-items: center; gap: 0.5rem;
}
.g24f-section-title i, .g24f-section-title span.material-icons, .g24f-section-title ion-icon {
    font-size: 1.7rem; color: var(--g24f-mint);
}
.g24f-section p { color: var(--g24f-text-soft); margin-bottom: 0.7rem; font-size: 1.3rem; }
.g24f-text-accent { color: var(--g24f-accent); font-weight: 700; }
.g24f-text-mint { color: var(--g24f-mint); font-weight: 700; }
.g24f-text-teal { color: var(--g24f-primary); font-weight: 700; }
.g24f-h1 { font-size: 2rem; font-weight: 800; color: var(--g24f-mint); margin-bottom: 0.8rem; line-height: 1.35; }

/* Game grid */
.g24f-game-section { margin-bottom: 1.8rem; }
.g24f-game-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.7rem; }
.g24f-game-card {
    background: var(--g24f-bg-card);
    border: 1px solid var(--g24f-border);
    border-radius: 10px; overflow: hidden;
    cursor: pointer; transition: transform .15s ease, border-color .2s ease;
    padding: 0; text-align: center; display: block; width: 100%;
    -webkit-tap-highlight-color: transparent;
}
.g24f-game-card:hover, .g24f-game-card:focus { transform: translateY(-2px); border-color: var(--g24f-primary); }
.g24f-game-card img { width: 100%; aspect-ratio: 1/1; object-fit: cover; background: #0e0e22; }
.g24f-game-name {
    padding: 0.4rem 0.3rem; font-size: 1.05rem; color: var(--g24f-text);
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
    font-weight: 600; display: block;
}

/* Card / panel */
.g24f-card { background: var(--g24f-bg-card); border: 1px solid var(--g24f-border); border-radius: var(--g24f-radius); padding: 1.1rem; margin-bottom: 1rem; }
.g24f-card-title { font-size: 1.4rem; font-weight: 700; color: var(--g24f-mint); margin-bottom: 0.5rem; }
.g24f-feature-list { list-style: none; }
.g24f-feature-list li {
    padding: 0.6rem 0; border-bottom: 1px dashed var(--g24f-border);
    display: flex; align-items: flex-start; gap: 0.6rem;
    color: var(--g24f-text-soft); font-size: 1.25rem;
}
.g24f-feature-list li:last-child { border-bottom: 0; }
.g24f-feature-list i, .g24f-feature-list span.material-icons { color: var(--g24f-mint); font-size: 1.4rem; flex-shrink: 0; margin-top: 2px; }

/* RTP table */
.g24f-rtp-table { width: 100%; border-collapse: collapse; background: var(--g24f-bg-card); border-radius: 10px; overflow: hidden; font-size: 1.2rem; }
.g24f-rtp-table th, .g24f-rtp-table td { padding: 0.7rem 0.8rem; border-bottom: 1px solid var(--g24f-border); text-align: left; }
.g24f-rtp-table th { background: rgba(255,170,0,0.12); color: var(--g24f-accent); }
.g24f-rtp-table tr:last-child td { border-bottom: 0; }

/* Testimonials */
.g24f-testimonial { background: var(--g24f-bg-card); border-left: 3px solid var(--g24f-primary); border-radius: 8px; padding: 0.9rem 1rem; margin-bottom: 0.8rem; }
.g24f-testimonial-name { font-size: 1.2rem; color: var(--g24f-accent); font-weight: 700; margin-bottom: 4px; }
.g24f-testimonial-stars { color: #FFD700; font-size: 1.1rem; margin-bottom: 4px; }
.g24f-testimonial-text { font-size: 1.2rem; color: var(--g24f-text-soft); }

/* FAQ */
.g24f-faq-item { background: var(--g24f-bg-card); border: 1px solid var(--g24f-border); border-radius: 10px; margin-bottom: 0.6rem; overflow: hidden; }
.g24f-faq-q {
    width: 100%; text-align: left; background: transparent; color: var(--g24f-text);
    border: 0; cursor: pointer; padding: 1rem; font-size: 1.3rem; font-weight: 600;
    display: flex; justify-content: space-between; align-items: center; gap: 0.6rem;
}
.g24f-faq-q::after { content: "+"; color: var(--g24f-accent); font-size: 1.8rem; line-height: 1; }
.g24f-faq-open .g24f-faq-q::after { content: "-"; }
.g24f-faq-body { max-height: 0; overflow: hidden; padding: 0 1rem; transition: max-height .25s ease, padding .25s ease; color: var(--g24f-text-soft); font-size: 1.2rem; }
.g24f-faq-open .g24f-faq-body { max-height: 400px; padding: 0 1rem 1rem; }

/* CTA block */
.g24f-cta {
    background: linear-gradient(135deg, rgba(32,178,170,0.18) 0%, rgba(255,170,0,0.18) 100%);
    border: 1px solid var(--g24f-border); border-radius: 14px;
    padding: 1.3rem; text-align: center; margin: 1.4rem 0;
}
.g24f-cta h2 { font-size: 1.7rem; color: var(--g24f-accent); margin-bottom: 0.5rem; }
.g24f-cta p { font-size: 1.25rem; margin-bottom: 0.9rem; color: var(--g24f-text-soft); }
.g24f-cta-buttons { display: flex; flex-direction: column; gap: 0.6rem; align-items: center; }

/* Payment methods grid */
.g24f-payment-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.6rem; }
.g24f-payment-item {
    background: var(--g24f-bg-card); border: 1px solid var(--g24f-border);
    border-radius: 8px; padding: 0.7rem; text-align: center;
    color: var(--g24f-text); font-size: 1.1rem;
}
.g24f-payment-item i, .g24f-payment-item span.material-icons { font-size: 1.6rem; color: var(--g24f-mint); display: block; margin-bottom: 4px; }

/* Winners list */
.g24f-winner {
    display: flex; justify-content: space-between; align-items: center;
    padding: 0.6rem 0.8rem; background: var(--g24f-bg-card);
    border: 1px solid var(--g24f-border); border-radius: 8px;
    margin-bottom: 0.5rem; font-size: 1.2rem;
}
.g24f-winner-name { color: var(--g24f-mint); font-weight: 700; }
.g24f-winner-prize { color: var(--g24f-accent); font-weight: 700; }

/* Inline link style */
.g24f-link-text { color: var(--g24f-accent); font-weight: 700; text-decoration: underline; cursor: pointer; }
.g24f-link-text:hover { color: var(--g24f-mint); }

/* Footer */
.g24f-footer { background: var(--g24f-bg-deep); border-top: 1px solid var(--g24f-border); padding: 1.4rem 0 1.6rem; margin-top: 1.6rem; color: var(--g24f-text-muted); }
.g24f-footer-brand { color: var(--g24f-text-soft); font-size: 1.2rem; margin-bottom: 0.8rem; line-height: 1.5; }
.g24f-footer h3 { color: var(--g24f-mint); font-size: 1.3rem; margin: 0.9rem 0 0.4rem; }
.g24f-footer-links { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.4rem; margin-bottom: 1rem; }
.g24f-footer-links a { color: var(--g24f-text-muted); font-size: 1.15rem; padding: 0.3rem 0; }
.g24f-footer-links a:hover { color: var(--g24f-mint); }
.g24f-footer-promos { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0.8rem 0; }
.g24f-footer-copy { font-size: 1.1rem; color: var(--g24f-text-muted); border-top: 1px dashed var(--g24f-border); padding-top: 0.8rem; text-align: center; }

/* Mobile bottom navigation */
.g24f-bottom-nav {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 1000;
    background: linear-gradient(180deg, #20203c 0%, #16162b 100%);
    border-top: 1px solid var(--g24f-border);
    display: flex; justify-content: space-around;
    padding: 0.3rem 0 0.4rem;
    box-shadow: 0 -4px 14px rgba(0,0,0,0.35);
}
.g24f-bottom-nav-btn {
    flex: 1; background: transparent; border: 0; color: var(--g24f-text-muted);
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
    padding: 0.4rem 0; min-width: 60px; min-height: 56px;
    cursor: pointer; text-decoration: none; font-size: 1rem;
    transition: color .15s ease, transform .15s ease;
    -webkit-tap-highlight-color: transparent;
    position: relative;
}
.g24f-bottom-nav-btn:active { transform: scale(0.92); }
.g24f-bottom-nav-btn i, .g24f-bottom-nav-btn span.material-icons, .g24f-bottom-nav-btn ion-icon { font-size: 2.2rem; line-height: 1; }
.g24f-bottom-nav-label { font-size: 1rem; font-weight: 600; }
.g24f-bottom-nav-active { color: var(--g24f-accent); }
.g24f-bottom-nav-active i, .g24f-bottom-nav-active span.material-icons, .g24f-bottom-nav-active ion-icon { color: var(--g24f-accent); }
.g24f-bottom-nav-badge {
    position: absolute; top: 4px; right: 20px;
    background: #e83838; color: #fff; border-radius: 50%;
    min-width: 16px; height: 16px; font-size: 0.9rem; line-height: 16px;
    text-align: center; padding: 0 4px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    main { padding-bottom: 90px; }
    .g24f-footer { padding-bottom: 90px; }
}
@media (min-width: 769px) {
    .g24f-bottom-nav { display: none; }
    .g24f-container { max-width: 720px; }
    .g24f-header-inner { max-width: 720px; }
    .g24f-mobile-menu-inner { max-width: 720px; grid-template-columns: repeat(3, 1fr); }
    main { padding-bottom: 40px; }
    .g24f-game-grid { grid-template-columns: repeat(5, 1fr); }
    .g24f-payment-grid { grid-template-columns: repeat(6, 1fr); }
    .g24f-footer-links { grid-template-columns: repeat(3, 1fr); }
}
