/* Joyhao Games – Official site (Play Store style) */
:root {
    --color-primary: #1a73e8;
    --color-primary-dark: #1557b0;
    --color-accent: #34a853;
    --color-text: #202124;
    --color-text-muted: #5f6368;
    --color-bg: #f8f9fa;
    --color-bg-card: #ffffff;
    --color-border: #dadce0;
    --shadow: 0 1px 3px rgba(0,0,0,0.08);
    --shadow-lg: 0 8px 24px rgba(0,0,0,0.12);
    --radius: 12px;
    --radius-lg: 16px;
    --font: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font);
    font-size: 16px;
    line-height: 1.6;
    color: var(--color-text);
    background: var(--color-bg);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--color-bg-card);
    box-shadow: var(--shadow);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}

.logo {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--color-primary);
    text-decoration: none;
}

.nav {
    display: flex;
    gap: 28px;
}

.nav a {
    color: var(--color-text);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

.nav a:hover,
.nav a.active {
    color: var(--color-primary);
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 4px 8px;
}

/* Hero */
.hero {
    min-height: 440px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(145deg, #0d47a1 0%, #1a73e8 45%, #4285f4 100%);
    color: #fff;
    text-align: center;
    padding: 60px 20px;
}

.hero-content h1 {
    font-size: 2.4rem;
    font-weight: 700;
    margin-bottom: 12px;
    letter-spacing: -0.02em;
}

.hero-content p {
    font-size: 1.15rem;
    opacity: 0.95;
    margin-bottom: 28px;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 24px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
    cursor: pointer;
    border: 2px solid transparent;
}

.btn-primary {
    background: #fff;
    color: var(--color-primary);
    border-color: #fff;
}

.btn-primary:hover {
    background: rgba(255,255,255,0.92);
    transform: translateY(-1px);
}

.btn-outline {
    background: transparent;
    color: #fff;
    border-color: #fff;
}

.btn-outline:hover {
    background: rgba(255,255,255,0.15);
}

.section-title {
    font-size: 1.85rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 40px;
    color: var(--color-text);
}

/* Games section */
.games {
    padding: 72px 0;
    background: var(--color-bg-card);
}

.games-featured {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin-bottom: 44px;
}

.game-card {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    min-height: 280px;
    display: flex;
    align-items: flex-end;
    padding: 28px;
}

.game-card .game-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.game-block .game-bg {
    background: linear-gradient(145deg, #0d9488 0%, #14b8a6 50%, #2dd4bf 100%);
}

.game-arrow .game-bg {
    background: linear-gradient(145deg, #7c3aed 0%, #8b5cf6 50%, #a78bfa 100%);
}

.game-info {
    position: relative;
    z-index: 1;
    color: #fff;
}

.game-badge {
    display: inline-block;
    background: rgba(255,255,255,0.28);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.game-info h3 {
    font-size: 1.6rem;
    margin-bottom: 10px;
}

.game-info p {
    font-size: 0.98rem;
    opacity: 0.95;
    margin-bottom: 16px;
    max-width: 92%;
}

.game-info .btn-primary {
    background: #fff;
    color: var(--color-primary);
}

.game-info .btn-primary:hover {
    background: rgba(255,255,255,0.92);
}

.games-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.game-item {
    background: var(--color-bg);
    padding: 28px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    text-align: center;
    transition: box-shadow 0.2s, transform 0.2s;
}

.game-item:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
}

.game-icon {
    font-size: 2.8rem;
    margin-bottom: 14px;
}

.game-item h4 {
    font-size: 1.15rem;
    margin-bottom: 8px;
    color: var(--color-text);
}

.game-item p {
    font-size: 0.9rem;
    color: var(--color-text-muted);
}

/* About */
.about {
    padding: 72px 0;
    background: var(--color-bg);
}

.about-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.about-card {
    background: var(--color-bg-card);
    padding: 32px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    transition: box-shadow 0.2s;
}

.about-card:hover {
    box-shadow: var(--shadow-lg);
}

.about-icon {
    font-size: 2.2rem;
    margin-bottom: 14px;
}

.about-card h3 {
    font-size: 1.15rem;
    margin-bottom: 10px;
    color: var(--color-text);
}

.about-card p {
    font-size: 0.95rem;
    color: var(--color-text-muted);
    line-height: 1.65;
}

/* Support */
.support {
    padding: 72px 0;
    background: var(--color-bg-card);
}

.support-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.support-card {
    padding: 26px;
    border-left: 4px solid var(--color-primary);
    background: var(--color-bg);
    border-radius: 0 var(--radius) var(--radius) 0;
}

.support-card h4 {
    font-size: 1.08rem;
    margin-bottom: 10px;
    color: var(--color-text);
}

.support-card p {
    font-size: 0.95rem;
    color: var(--color-text-muted);
    margin-bottom: 8px;
}

.support-card a {
    color: var(--color-primary);
    text-decoration: none;
}

.support-card a:hover {
    text-decoration: underline;
}

/* Compliance bar */
.compliance-bar {
    background: #e8f0fe;
    border-top: 1px solid #d2e3fc;
    padding: 16px 0;
}

.compliance-bar p {
    font-size: 0.9rem;
    color: #1967d2;
    text-align: center;
}

.compliance-bar a {
    color: var(--color-primary-dark);
    font-weight: 600;
    text-decoration: none;
}

.compliance-bar a:hover {
    text-decoration: underline;
}

/* Footer */
.footer {
    background: #202124;
    color: #9aa0a6;
    padding: 48px 0 24px;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 24px;
    margin-bottom: 20px;
}

.footer-links a {
    color: #e8eaed;
    text-decoration: none;
}

.footer-links a:hover {
    color: #fff;
}

.footer-contact {
    text-align: center;
    margin-bottom: 20px;
    font-size: 0.95rem;
}

.footer-contact a {
    color: #8ab4f8;
    text-decoration: none;
}

.footer-contact a:hover {
    text-decoration: underline;
}

.footer-legal {
    text-align: center;
    font-size: 0.85rem;
    margin: 0 auto 20px;
}

.footer-legal a {
    color: #8ab4f8;
    text-decoration: none;
}

.back-top {
    display: block;
    text-align: center;
    color: #9aa0a6;
    text-decoration: none;
    font-size: 0.9rem;
}

.back-top:hover {
    color: #fff;
}

.footer-compact {
    padding: 24px 0;
}

/* Policy page */
.compliance-page {
    padding: 48px 0 64px;
    min-height: 60vh;
}

.compliance-page h1 {
    font-size: 1.9rem;
    margin-bottom: 16px;
    color: var(--color-text);
}

.compliance-page .intro {
    color: var(--color-text-muted);
    margin-bottom: 36px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--color-border);
}

.compliance-section {
    margin-bottom: 32px;
}

.compliance-section h2 {
    font-size: 1.22rem;
    margin-bottom: 12px;
    color: var(--color-text);
}

.compliance-section p,
.compliance-section li {
    color: var(--color-text-muted);
    margin-bottom: 10px;
    font-size: 0.98rem;
}

.compliance-section ul {
    margin: 12px 0 12px 24px;
}

.compliance-ref {
    margin-top: 32px;
    padding: 16px;
    background: var(--color-bg);
    border-radius: var(--radius);
    font-size: 0.9rem;
    color: var(--color-text-muted);
}

.back-link {
    margin-top: 40px;
}

/* Responsive */
@media (max-width: 992px) {
    .games-featured {
        grid-template-columns: 1fr;
    }
    .about-grid {
        grid-template-columns: 1fr;
    }
    .support-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .nav {
        display: none;
    }
    .nav-toggle {
        display: block;
    }
    .nav.open {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 64px;
        left: 0;
        right: 0;
        background: var(--color-bg-card);
        padding: 20px;
        box-shadow: var(--shadow-lg);
        gap: 12px;
    }
    .games-grid {
        grid-template-columns: 1fr;
    }
    .hero-content h1 {
        font-size: 1.85rem;
    }
    .section-title {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .hero-buttons {
        flex-direction: column;
    }
    .btn {
        width: 100%;
        text-align: center;
    }
}
