/* phwin777.css - Main Stylesheet */
/* All classes use g8a3- prefix for namespace isolation */
/* Color palette: #66CDAA | #7CFC00 | #9AFF9A | #2C3E50 */
/* Dark #2C3E50 for bg, Light greens for text/accents */

:root {
    --g8a3-primary: #66CDAA;
    --g8a3-accent: #7CFC00;
    --g8a3-light: #9AFF9A;
    --g8a3-dark: #2C3E50;
    --g8a3-darker: #1a252f;
    --g8a3-bg: #1e2d3a;
    --g8a3-card: #263845;
    --g8a3-text: #e8f5e9;
    --g8a3-muted: #8faab5;
    --g8a3-border: #3a5568;
    --g8a3-gold: #FFD700;
    --g8a3-radius: 8px;
}

html {
    font-size: 62.5%;
    scroll-behavior: smooth;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, sans-serif;
    background: var(--g8a3-dark);
    color: var(--g8a3-text);
    line-height: 1.5rem;
    font-size: 1.4rem;
    max-width: 430px;
    margin: 0 auto;
    -webkit-font-smoothing: antialiased;
}

a { color: var(--g8a3-accent); text-decoration: none; }
a:hover { color: var(--g8a3-light); }
img { max-width: 100%; height: auto; display: block; }

/* === HEADER === */
.g8a3-header {
    position: fixed;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 430px;
    background: linear-gradient(135deg, var(--g8a3-darker) 0%, var(--g8a3-dark) 100%);
    z-index: 1000;
    border-bottom: 2px solid var(--g8a3-primary);
    padding: 0 1rem;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.g8a3-logo {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    cursor: pointer;
}

.g8a3-logo img {
    width: 28px;
    height: 28px;
    border-radius: 4px;
}

.g8a3-logo span {
    font-size: 1.6rem;
    font-weight: 700;
    background: linear-gradient(90deg, var(--g8a3-primary), var(--g8a3-accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.g8a3-header-right {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.g8a3-btn-register,
.g8a3-btn-login {
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 1.2rem;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all 0.2s ease;
}

.g8a3-btn-register {
    background: linear-gradient(135deg, var(--g8a3-accent), var(--g8a3-primary));
    color: var(--g8a3-dark);
}

.g8a3-btn-register:hover {
    transform: scale(1.05);
    box-shadow: 0 2px 8px rgba(102, 205, 170, 0.5);
}

.g8a3-btn-login {
    background: transparent;
    color: var(--g8a3-primary);
    border: 1.5px solid var(--g8a3-primary);
}

.g8a3-btn-login:hover {
    background: var(--g8a3-primary);
    color: var(--g8a3-dark);
}

.g8a3-menu-toggle {
    background: none;
    border: none;
    color: var(--g8a3-primary);
    font-size: 2rem;
    cursor: pointer;
    padding: 0.4rem;
    display: flex;
    align-items: center;
}

/* === MOBILE MENU === */
.g8a3-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 9998;
}

.g8a3-overlay-active { display: block; }

.g8a3-mobile-menu {
    position: fixed;
    top: 0;
    right: -280px;
    width: 260px;
    height: 100%;
    background: var(--g8a3-darker);
    z-index: 9999;
    transition: right 0.3s ease;
    padding: 6rem 1.5rem 2rem;
    overflow-y: auto;
}

.g8a3-menu-active { right: 0; }

.g8a3-mobile-menu a {
    display: block;
    padding: 1.2rem 0;
    color: var(--g8a3-text);
    font-size: 1.5rem;
    border-bottom: 1px solid var(--g8a3-border);
    transition: color 0.2s;
}

.g8a3-mobile-menu a:hover {
    color: var(--g8a3-accent);
}

.g8a3-menu-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    color: var(--g8a3-text);
    font-size: 2.2rem;
    cursor: pointer;
}

/* === MAIN CONTENT === */
.g8a3-main {
    margin-top: 52px;
    padding: 1rem;
}

@media (max-width: 768px) {
    .g8a3-main {
        padding-bottom: 80px;
    }
}

/* === CAROUSEL === */
.g8a3-carousel {
    position: relative;
    width: 100%;
    border-radius: var(--g8a3-radius);
    overflow: hidden;
    margin-bottom: 1.5rem;
}

.g8a3-slide {
    display: none;
    width: 100%;
    cursor: pointer;
}

.g8a3-slide-active { display: block; }

.g8a3-slide img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.g8a3-dots {
    position: absolute;
    bottom: 8px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 6px;
}

.g8a3-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: background 0.3s;
}

.g8a3-dot-active {
    background: var(--g8a3-accent);
    width: 20px;
    border-radius: 4px;
}

/* === SECTIONS === */
.g8a3-section {
    margin-bottom: 2rem;
}

.g8a3-section-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--g8a3-primary);
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--g8a3-primary);
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.g8a3-section-title i,
.g8a3-section-title .material-icons {
    font-size: 2rem;
    color: var(--g8a3-accent);
}

/* === GAME GRID === */
.g8a3-game-cat-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--g8a3-light);
    margin: 1.5rem 0 0.8rem;
    padding-left: 0.5rem;
    border-left: 3px solid var(--g8a3-accent);
}

.g8a3-game-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.8rem;
    margin-bottom: 1rem;
}

.g8a3-game-item {
    text-align: center;
    cursor: pointer;
    transition: transform 0.2s;
    border-radius: var(--g8a3-radius);
    overflow: hidden;
}

.g8a3-game-item:hover {
    transform: scale(1.05);
}

.g8a3-game-item img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: var(--g8a3-radius);
    border: 1px solid var(--g8a3-border);
}

.g8a3-game-item span {
    display: block;
    font-size: 1.1rem;
    color: var(--g8a3-text);
    margin-top: 0.3rem;
    line-height: 1.3rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* === CARDS === */
.g8a3-card {
    background: var(--g8a3-card);
    border-radius: var(--g8a3-radius);
    padding: 1.5rem;
    margin-bottom: 1.2rem;
    border: 1px solid var(--g8a3-border);
}

.g8a3-card h3 {
    font-size: 1.5rem;
    color: var(--g8a3-primary);
    margin-bottom: 0.8rem;
}

.g8a3-card p {
    color: var(--g8a3-muted);
    line-height: 1.6rem;
    margin-bottom: 0.5rem;
}

/* === PROMO BUTTONS === */
.g8a3-promo-btn {
    display: inline-block;
    padding: 0.8rem 1.6rem;
    background: linear-gradient(135deg, var(--g8a3-accent), var(--g8a3-primary));
    color: var(--g8a3-dark);
    font-weight: 700;
    font-size: 1.4rem;
    border-radius: 25px;
    border: none;
    cursor: pointer;
    text-align: center;
    transition: all 0.2s;
    margin: 0.5rem 0;
}

.g8a3-promo-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 3px 12px rgba(102, 205, 170, 0.6);
}

.g8a3-promo-btn-outline {
    display: inline-block;
    padding: 0.7rem 1.4rem;
    background: transparent;
    color: var(--g8a3-accent);
    font-weight: 600;
    font-size: 1.3rem;
    border-radius: 25px;
    border: 2px solid var(--g8a3-accent);
    cursor: pointer;
    transition: all 0.2s;
    margin: 0.5rem 0.3rem;
}

.g8a3-promo-btn-outline:hover {
    background: var(--g8a3-accent);
    color: var(--g8a3-dark);
}

.g8a3-promo-link {
    color: var(--g8a3-accent);
    font-weight: 600;
    text-decoration: underline;
    cursor: pointer;
}

/* === FEATURES LIST === */
.g8a3-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.8rem;
}

.g8a3-feature-item {
    background: var(--g8a3-card);
    padding: 1rem;
    border-radius: var(--g8a3-radius);
    text-align: center;
    border: 1px solid var(--g8a3-border);
}

.g8a3-feature-item i,
.g8a3-feature-item .material-icons {
    font-size: 2.4rem;
    color: var(--g8a3-accent);
    margin-bottom: 0.5rem;
}

.g8a3-feature-item h4 {
    font-size: 1.3rem;
    color: var(--g8a3-primary);
    margin-bottom: 0.3rem;
}

.g8a3-feature-item p {
    font-size: 1.1rem;
    color: var(--g8a3-muted);
}

/* === TESTIMONIALS === */
.g8a3-testimonial {
    background: var(--g8a3-card);
    padding: 1.2rem;
    border-radius: var(--g8a3-radius);
    margin-bottom: 0.8rem;
    border-left: 3px solid var(--g8a3-primary);
}

.g8a3-testimonial p {
    font-size: 1.3rem;
    color: var(--g8a3-text);
    font-style: italic;
    margin-bottom: 0.5rem;
}

.g8a3-testimonial cite {
    font-size: 1.1rem;
    color: var(--g8a3-accent);
}

/* === WINNERS === */
.g8a3-winner-row {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.8rem;
    border-bottom: 1px solid var(--g8a3-border);
}

.g8a3-winner-row:last-child { border-bottom: none; }

.g8a3-winner-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--g8a3-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: var(--g8a3-dark);
    font-size: 1.2rem;
    flex-shrink: 0;
}

.g8a3-winner-info { flex: 1; }
.g8a3-winner-info span { display: block; font-size: 1.2rem; color: var(--g8a3-text); }
.g8a3-winner-info small { color: var(--g8a3-muted); font-size: 1rem; }
.g8a3-winner-amount { color: var(--g8a3-gold); font-weight: 700; font-size: 1.3rem; }

/* === FOOTER === */
.g8a3-footer {
    background: var(--g8a3-darker);
    padding: 2rem 1rem;
    margin-top: 2rem;
    border-top: 2px solid var(--g8a3-primary);
}

.g8a3-footer-brand {
    font-size: 1.3rem;
    color: var(--g8a3-muted);
    line-height: 1.6rem;
    margin-bottom: 1.5rem;
}

.g8a3-footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-bottom: 1.5rem;
}

.g8a3-footer-links a {
    padding: 0.5rem 1rem;
    background: var(--g8a3-card);
    border-radius: 15px;
    font-size: 1.2rem;
    color: var(--g8a3-text);
    border: 1px solid var(--g8a3-border);
    transition: all 0.2s;
}

.g8a3-footer-links a:hover {
    background: var(--g8a3-primary);
    color: var(--g8a3-dark);
    border-color: var(--g8a3-primary);
}

.g8a3-footer-copy {
    text-align: center;
    color: var(--g8a3-muted);
    font-size: 1.1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--g8a3-border);
}

/* === BOTTOM NAV === */
.g8a3-bnav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 430px;
    height: 60px;
    background: linear-gradient(180deg, var(--g8a3-darker), #111b24);
    z-index: 1000;
    border-top: 2px solid var(--g8a3-primary);
    justify-content: space-around;
    align-items: center;
    padding: 0 0.3rem;
}

@media (max-width: 768px) {
    .g8a3-bnav { display: flex; }
}

.g8a3-bnav-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 60px;
    min-height: 56px;
    background: none;
    border: none;
    color: var(--g8a3-muted);
    cursor: pointer;
    transition: all 0.2s;
    padding: 0.3rem;
    border-radius: 8px;
    position: relative;
}

.g8a3-bnav-btn i,
.g8a3-bnav-btn .material-icons {
    font-size: 22px;
    transition: transform 0.2s;
}

.g8a3-bnav-btn span {
    font-size: 1rem;
    margin-top: 0.2rem;
    white-space: nowrap;
}

.g8a3-bnav-btn:hover,
.g8a3-bnav-active {
    color: var(--g8a3-accent);
}

.g8a3-bnav-btn:hover i,
.g8a3-bnav-active i,
.g8a3-bnav-btn:hover .material-icons,
.g8a3-bnav-active .material-icons {
    transform: scale(1.15);
}

.g8a3-bnav-active::after {
    content: '';
    position: absolute;
    top: -2px;
    left: 50%;
    transform: translateX(-50%);
    width: 24px;
    height: 3px;
    background: var(--g8a3-accent);
    border-radius: 2px;
}

/* === HELPER === */
.g8a3-text-center { text-align: center; }
.g8a3-mb-1 { margin-bottom: 0.5rem; }
.g8a3-mb-2 { margin-bottom: 1rem; }
.g8a3-mt-2 { margin-top: 1rem; }
.g8a3-hidden { display: none; }

.g8a3-list {
    list-style: none;
    padding: 0;
}

.g8a3-list li {
    padding: 0.6rem 0;
    padding-left: 1.5rem;
    position: relative;
    color: var(--g8a3-text);
    font-size: 1.3rem;
}

.g8a3-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 1.1rem;
    width: 6px;
    height: 6px;
    background: var(--g8a3-accent);
    border-radius: 50%;
}

/* === DESKTOP ADJUSTMENTS === */
@media (min-width: 769px) {
    .g8a3-bnav { display: none !important; }
    .g8a3-game-grid {
        grid-template-columns: repeat(5, 1fr);
    }
}

/* === RTP TABLE === */
.g8a3-rtp-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 1.2rem;
}

.g8a3-rtp-table th {
    background: var(--g8a3-primary);
    color: var(--g8a3-dark);
    padding: 0.6rem;
    text-align: left;
    font-weight: 600;
}

.g8a3-rtp-table td {
    padding: 0.5rem 0.6rem;
    border-bottom: 1px solid var(--g8a3-border);
    color: var(--g8a3-text);
}

.g8a3-rtp-table tr:hover td {
    background: rgba(102, 205, 170, 0.1);
}

/* === PAYMENT ICONS === */
.g8a3-payment-row {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
    padding: 1rem 0;
}

.g8a3-payment-item {
    background: var(--g8a3-card);
    padding: 0.6rem 1rem;
    border-radius: var(--g8a3-radius);
    font-size: 1.2rem;
    color: var(--g8a3-text);
    border: 1px solid var(--g8a3-border);
}

/* === DOWNLOAD CTA === */
.g8a3-download-box {
    background: linear-gradient(135deg, var(--g8a3-card), var(--g8a3-darker));
    border: 2px solid var(--g8a3-primary);
    border-radius: var(--g8a3-radius);
    padding: 1.5rem;
    text-align: center;
}

.g8a3-download-box h3 {
    font-size: 1.6rem;
    color: var(--g8a3-primary);
    margin-bottom: 0.8rem;
}

/* === FAQ === */
.g8a3-faq-item {
    margin-bottom: 1rem;
    padding: 1rem;
    background: var(--g8a3-card);
    border-radius: var(--g8a3-radius);
    border: 1px solid var(--g8a3-border);
}

.g8a3-faq-q {
    font-weight: 600;
    color: var(--g8a3-primary);
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
}

.g8a3-faq-a {
    color: var(--g8a3-muted);
    font-size: 1.3rem;
    line-height: 1.6rem;
}
