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

:root {
    --primary: #1a73e8;
    --primary-dark: #0d47a1;
    --primary-light: #e3f2fd;
    --secondary: #ff8f00;
    --secondary-dark: #e65100;
    --accent: #00c853;
    --success: #2e7d32;
    --warning: #f57f17;
    --error: #c62828;
    --neutral-50: #fafafa;
    --neutral-100: #f5f5f5;
    --neutral-200: #eeeeee;
    --neutral-300: #e0e0e0;
    --neutral-400: #bdbdbd;
    --neutral-500: #9e9e9e;
    --neutral-600: #757575;
    --neutral-700: #616161;
    --neutral-800: #424242;
    --neutral-900: #212121;
    --bg: #ffffff;
    --bg-alt: #f8f9fa;
    --text: #1a1a1a;
    --text-muted: #555;
    --border: #e0e0e0;
    --radius: 8px;
    --shadow: 0 2px 8px rgba(0,0,0,0.08);
    --shadow-lg: 0 4px 16px rgba(0,0,0,0.12);
    --max-width: 960px;
    --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
}

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

body {
    font-family: var(--font);
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    font-size: 1rem;
    overflow-x: hidden;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: color 0.2s;
}

a:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

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

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 16px;
}

/* Header */
.site-header {
    background: #fff;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 16px;
    max-width: var(--max-width);
    margin: 0 auto;
    flex-wrap: wrap;
}

.site-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--text);
}

.site-logo:hover {
    text-decoration: none;
}

.site-logo img {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--primary);
}

.site-logo .site-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-dark);
}

.site-nav {
    display: flex;
    gap: 16px;
    align-items: center;
}

.site-nav a {
    color: var(--text);
    font-weight: 500;
    font-size: 0.95rem;
    text-decoration: none;
    padding: 4px 0;
}

.site-nav a:hover {
    color: var(--primary);
    text-decoration: none;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text);
    padding: 4px 8px;
}

/* Breadcrumb */
.breadcrumb {
    padding: 8px 16px;
    max-width: var(--max-width);
    margin: 0 auto;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.breadcrumb a {
    color: var(--text-muted);
}

.breadcrumb a:hover {
    color: var(--primary);
}

.breadcrumb span {
    margin: 0 4px;
}

/* Download button */
.btn-download {
    display: inline-block;
    background: var(--success);
    color: #fff;
    padding: 12px 28px;
    border-radius: var(--radius);
    font-weight: 700;
    font-size: 1.05rem;
    text-decoration: none;
    text-align: center;
    border: none;
    cursor: pointer;
    transition: background 0.2s, transform 0.15s;
    box-shadow: 0 2px 6px rgba(46,125,50,0.3);
}

.btn-download:hover {
    background: #1b5e20;
    color: #fff;
    text-decoration: none;
    transform: translateY(-1px);
}

.btn-download:active {
    transform: translateY(0);
}

.btn-download-large {
    display: block;
    width: 100%;
    max-width: 320px;
    margin: 16px auto;
    padding: 16px 28px;
    font-size: 1.15rem;
}

/* Hero section */
.hero {
    background: linear-gradient(135deg, var(--primary-light), #fff);
    padding: 32px 16px;
    text-align: center;
}

.hero h1 {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 12px;
    line-height: 1.3;
}

.hero p {
    font-size: 1.05rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto 20px;
}

.hero-logo {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin: 0 auto 16px;
    border: 3px solid var(--primary);
    object-fit: cover;
}

/* Game grid on homepage */
.game-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 16px;
    padding: 24px 0;
}

.game-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 16px 12px;
    text-align: center;
    transition: box-shadow 0.2s, transform 0.15s;
    text-decoration: none;
    color: var(--text);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.game-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
    text-decoration: none;
    color: var(--text);
}

.game-card img {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--primary-light);
}

.game-card .card-name {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text);
}

.game-card .card-tag {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* Section styling */
.section {
    padding: 24px 0;
}

.section h2 {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--primary-light);
}

.section h3 {
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--text);
    margin: 20px 0 8px;
}

.section p {
    margin-bottom: 12px;
    color: var(--text);
}

.section ul, .section ol {
    margin: 0 0 16px 20px;
}

.section li {
    margin-bottom: 6px;
}

/* Info table */
.info-table {
    width: 100%;
    border-collapse: collapse;
    margin: 16px 0;
    background: #fff;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.info-table th, .info-table td {
    padding: 10px 14px;
    text-align: left;
    border-bottom: 1px solid var(--border);
    font-size: 0.95rem;
}

.info-table th {
    background: var(--bg-alt);
    font-weight: 600;
    color: var(--text);
    width: 35%;
}

.info-table tr:last-child td {
    border-bottom: none;
}

/* Game page image */
.game-hero-image {
    width: 100%;
    max-width: 100%;
    border-radius: var(--radius);
    margin: 16px 0;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
}

.game-page-logo {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    border: 2px solid var(--primary);
    object-fit: cover;
    margin: 0 auto 8px;
}

/* Top download bar */
.download-bar {
    background: var(--neutral-50);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 16px;
    text-align: center;
    margin: 16px 0;
}

.download-bar p {
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--text);
}

/* FAQ */
.faq-section {
    padding: 24px 0;
}

.faq-item {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    margin-bottom: 8px;
    overflow: hidden;
    background: #fff;
}

.faq-question {
    width: 100%;
    text-align: left;
    padding: 14px 16px;
    background: var(--bg-alt);
    border: none;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: var(--font);
}

.faq-question:hover {
    background: var(--primary-light);
}

.faq-question .faq-icon {
    font-size: 1.2rem;
    color: var(--primary);
    flex-shrink: 0;
    margin-left: 8px;
}

.faq-answer {
    padding: 0 16px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-answer.open {
    padding: 12px 16px 14px;
    max-height: 500px;
}

.faq-answer p {
    color: var(--text);
    margin: 0;
}

/* Conclusion box */
.conclusion-box {
    background: var(--primary-light);
    border-left: 4px solid var(--primary);
    border-radius: var(--radius);
    padding: 16px 20px;
    margin: 20px 0;
}

.conclusion-box h2 {
    border-bottom: none;
    margin-bottom: 8px;
}

/* Internal links section */
.internal-links {
    padding: 24px 0;
}

.internal-links h2 {
    font-size: 1.3rem;
    margin-bottom: 12px;
}

.game-links-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 8px;
}

.game-links-list li a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text);
    font-size: 0.9rem;
    text-decoration: none;
    transition: background 0.2s;
}

.game-links-list li a:hover {
    background: var(--primary-light);
    color: var(--primary-dark);
    text-decoration: none;
}

.game-links-list li a img {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    object-fit: cover;
}

/* Footer */
.site-footer {
    background: var(--neutral-900);
    color: #e0e0e0;
    padding: 32px 16px 16px;
    margin-top: 32px;
}

.footer-inner {
    max-width: var(--max-width);
    margin: 0 auto;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 24px;
    margin-bottom: 24px;
}

.footer-col h4 {
    color: #fff;
    font-size: 1.05rem;
    margin-bottom: 12px;
    font-weight: 600;
}

.footer-col ul {
    list-style: none;
    padding: 0;
}

.footer-col ul li {
    margin-bottom: 6px;
}

.footer-col ul li a {
    color: #bdbdbd;
    font-size: 0.9rem;
    text-decoration: none;
}

.footer-col ul li a:hover {
    color: #fff;
    text-decoration: underline;
}

.footer-col p {
    color: #bdbdbd;
    font-size: 0.9rem;
    line-height: 1.5;
}

.footer-bottom {
    border-top: 1px solid #424242;
    padding-top: 16px;
    text-align: center;
    font-size: 0.85rem;
    color: #9e9e9e;
}

.footer-bottom a {
    color: #bdbdbd;
}

/* Page content wrapper */
.page-content {
    padding: 16px 0;
}

.page-content h1 {
    font-size: 1.6rem;
    color: var(--primary-dark);
    margin-bottom: 12px;
}

.page-content h2 {
    font-size: 1.3rem;
    margin: 20px 0 10px;
    padding-bottom: 6px;
    border-bottom: 2px solid var(--primary-light);
}

.page-content p {
    margin-bottom: 12px;
}

/* Contact form */
.contact-form {
    max-width: 500px;
    margin: 16px 0;
}

.contact-form label {
    display: block;
    font-weight: 600;
    margin-bottom: 4px;
    font-size: 0.95rem;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: 1rem;
    font-family: var(--font);
    margin-bottom: 12px;
}

.contact-form button {
    background: var(--primary);
    color: #fff;
    border: none;
    padding: 12px 24px;
    border-radius: var(--radius);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.contact-form button:hover {
    background: var(--primary-dark);
}

/* Disclaimer/warning box */
.warning-box {
    background: #fff3e0;
    border-left: 4px solid var(--warning);
    border-radius: var(--radius);
    padding: 12px 16px;
    margin: 16px 0;
    font-size: 0.9rem;
    color: var(--neutral-800);
}

/* 404 page */
.error-404 {
    text-align: center;
    padding: 60px 16px;
}

.error-404 h1 {
    font-size: 3rem;
    color: var(--primary);
    margin-bottom: 8px;
}

.error-404 p {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 20px;
}

/* Responsive */
@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }

    .site-nav {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #fff;
        padding: 12px 16px;
        box-shadow: var(--shadow-lg);
        border-top: 1px solid var(--border);
        gap: 8px;
    }

    .site-nav.open {
        display: flex;
    }

    .site-nav a {
        padding: 8px 0;
        font-size: 1rem;
    }

    .hero h1 {
        font-size: 1.5rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .game-grid {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
        gap: 12px;
    }

    .section h2 {
        font-size: 1.25rem;
    }

    .info-table th, .info-table td {
        padding: 8px 10px;
        font-size: 0.9rem;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 1.3rem;
    }

    .game-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .game-card img {
        width: 56px;
        height: 56px;
    }

    .game-card .card-name {
        font-size: 0.85rem;
    }

    .btn-download-large {
        font-size: 1rem;
        padding: 14px 20px;
    }

    .section h2 {
        font-size: 1.15rem;
    }

    .section h3 {
        font-size: 1.05rem;
    }

    .info-table th {
        width: 40%;
    }
}
