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

:root {
    --bg: #0b1020;
    --bg2: #0a0f1d;
    --surface: rgba(255, 255, 255, 0.06);
    --surface2: rgba(255, 255, 255, 0.08);
    --border: rgba(255, 255, 255, 0.12);
    --text: rgba(255, 255, 255, 0.92);
    --muted: rgba(255, 255, 255, 0.70);
    --accent: #6d5efc;
    --accent2: #22c55e;
    --danger: #ff6b6b;
    --shadow: 0 14px 40px rgba(0, 0, 0, 0.45);
}

body {
    font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
    background: radial-gradient(1200px 600px at 15% 10%, rgba(109, 94, 252, 0.28), transparent 55%),
                radial-gradient(900px 500px at 85% 20%, rgba(34, 197, 94, 0.18), transparent 50%),
                linear-gradient(180deg, var(--bg) 0%, var(--bg2) 100%);
    min-height: 100vh;
    color: var(--text);
}

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


/* Header */
header {
    background: linear-gradient(135deg, rgba(109, 94, 252, 0.35) 0%, rgba(34, 197, 94, 0.18) 50%, rgba(255, 107, 107, 0.20) 100%),
                rgba(255, 255, 255, 0.04);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
    margin-bottom: 30px;
    padding: 20px 0;
    backdrop-filter: blur(10px);
}

.logo-container {
    display: flex;
    justify-content: center;
    padding: 15px 0;
}

.logo {
    height: 120px;
    width: auto;
    max-width: 100%;
    object-fit: contain;
    filter: drop-shadow(0 8px 20px rgba(0, 0, 0, 0.5));
    transition: transform 0.3s ease;
}

.logo:hover {
    transform: scale(1.05);
}

header h1 {
    font-size: 4rem;
    color: var(--text);
    text-align: center;
    padding: 10px 0;
    text-shadow: 0 8px 20px rgba(0, 0, 0, 0.5);
    font-weight: 900;
    letter-spacing: 3px;
}

header .tagline {
    text-align: center;
    font-size: 1.3rem;
    color: var(--muted);
    padding-bottom: 15px;
    font-weight: 600;
}

/* Search Container */
.search-container {
    display: flex;
    justify-content: center;
    gap: 10px;
    padding: 20px 0;
    max-width: 600px;
    margin: 0 auto;
}

.search-input {
    flex: 1;
    padding: 14px 24px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid var(--border);
    border-radius: 30px;
    color: var(--text);
    font-size: 1.1rem;
    font-weight: 600;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.search-input:focus {
    outline: none;
    border-color: var(--accent);
    background: rgba(255, 255, 255, 0.12);
    box-shadow: 0 0 0 3px rgba(109, 94, 252, 0.2);
}

.search-input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.search-btn {
    padding: 14px 24px;
    background: linear-gradient(135deg, rgba(109, 94, 252, 0.95), rgba(34, 197, 94, 0.75));
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 30px;
    color: #fff;
    font-size: 1.3rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.35);
}

.search-btn:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.45);
}

/* Category Filter */
.category-filter {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
    padding: 15px 0;
}

.filter-btn {
    padding: 12px 30px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 30px;
    color: var(--text);
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.25);
}

.filter-btn:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.38);
}

.filter-btn.active {
    background: linear-gradient(135deg, rgba(109, 94, 252, 0.95), rgba(34, 197, 94, 0.75));
    color: #fff;
    border-color: rgba(255, 255, 255, 0.25);
}

/* Section Heading */
.section-heading {
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--text);
    margin: 40px 0 25px 0;
    padding-bottom: 15px;
    border-bottom: 3px solid var(--border);
    background: linear-gradient(135deg, #fff 0%, rgba(255, 255, 255, 0.85) 30%, rgba(109, 94, 252, 0.95) 70%, rgba(34, 197, 94, 0.9) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    letter-spacing: 1px;
}

/* About 6 Club */
.about-6club {
    margin-top: 10px;
}

.about-hero {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 22px;
    align-items: stretch;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border);
    border-radius: 22px;
    box-shadow: var(--shadow);
    backdrop-filter: blur(10px);
    padding: 22px;
}

.about-hero-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 14px;
}

.about-title {
    font-size: 1.8rem;
    font-weight: 900;
    letter-spacing: 0.4px;
    color: var(--text);
}

.about-lede {
    color: var(--muted);
    line-height: 1.8;
    font-weight: 600;
}

.about-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding-top: 4px;
}

.about-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 14px;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.06);
    color: rgba(255, 255, 255, 0.88);
    font-weight: 800;
    letter-spacing: 0.3px;
    font-size: 0.95rem;
}

.about-hero-art {
    border-radius: 18px;
    border: 1px solid var(--border);
    background:
        radial-gradient(600px 240px at 20% 20%, rgba(109, 94, 252, 0.18), transparent 60%),
        radial-gradient(560px 220px at 80% 30%, rgba(34, 197, 94, 0.12), transparent 55%),
        rgba(255, 255, 255, 0.03);
    overflow: hidden;
    display: flex;
    align-items: stretch;
    justify-content: stretch;
}

.about-hero-svg {
    width: 100%;
    height: 100%;
    display: block;
}

.about-cards {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    margin-top: 20px;
}

.about-card {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 18px 18px 16px;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.32);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.about-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 44px rgba(0, 0, 0, 0.42);
    border-color: rgba(255, 255, 255, 0.20);
}

.about-icon {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    border: 1px solid var(--border);
    background: linear-gradient(135deg, rgba(109, 94, 252, 0.26), rgba(34, 197, 94, 0.16));
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.92);
    margin-bottom: 12px;
}

.about-icon svg {
    width: 24px;
    height: 24px;
}

.about-icon--small {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    margin-bottom: 0;
}

.about-card-title {
    font-size: 1.1rem;
    font-weight: 900;
    color: var(--text);
    letter-spacing: 0.3px;
    margin-bottom: 8px;
}

.about-card-text {
    color: var(--muted);
    line-height: 1.8;
    font-weight: 600;
}

.about-panels {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
    margin-top: 18px;
}

.about-panel {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 18px;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.30);
}

.about-panel-head {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
}

.about-subtitle {
    font-size: 1.25rem;
    font-weight: 900;
    color: var(--text);
    letter-spacing: 0.3px;
}

.about-text {
    color: var(--muted);
    line-height: 1.85;
    font-weight: 600;
}

.about-list {
    margin: 0;
    padding-left: 18px;
    display: grid;
    gap: 8px;
    color: var(--muted);
    line-height: 1.8;
    font-weight: 650;
}

.about-faq {
    margin-top: 18px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 18px;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.30);
}

.about-faq-grid {
    margin-top: 12px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.about-faq-item {
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.03);
    border-radius: 16px;
    padding: 14px;
}

.about-faq-q {
    font-size: 1rem;
    font-weight: 900;
    color: rgba(255, 255, 255, 0.92);
    margin-bottom: 6px;
}

.about-faq-a {
    color: var(--muted);
    line-height: 1.8;
    font-weight: 600;
}

.about-updated {
    margin-top: 14px;
    color: rgba(255, 255, 255, 0.62);
    text-align: right;
}

/* Site Nav (static pages) */
.brand-link {
    display: inline-flex;
    text-decoration: none;
}

.site-nav {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
    padding: 10px 0 0;
}

.site-nav-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 16px;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.90);
    text-decoration: none;
    font-weight: 800;
    letter-spacing: 0.2px;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.site-nav-link:hover {
    transform: translateY(-2px);
    border-color: rgba(255, 255, 255, 0.20);
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.38);
}

.site-nav-link[aria-current="page"] {
    background: linear-gradient(135deg, rgba(109, 94, 252, 0.85), rgba(34, 197, 94, 0.55));
    border-color: rgba(255, 255, 255, 0.22);
}

/* EEAT Pages */
.page-hero {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 22px;
    align-items: stretch;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border);
    border-radius: 22px;
    box-shadow: var(--shadow);
    backdrop-filter: blur(10px);
    padding: 22px;
    margin-top: 12px;
}

.page-hero-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 14px;
}

.page-title {
    font-size: 2.2rem;
    font-weight: 950;
    letter-spacing: 0.4px;
    color: var(--text);
}

.page-subtitle {
    color: var(--muted);
    line-height: 1.9;
    font-weight: 650;
}

.page-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.page-chip {
    display: inline-flex;
    align-items: center;
    padding: 10px 14px;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.06);
    color: rgba(255, 255, 255, 0.86);
    font-weight: 800;
    letter-spacing: 0.2px;
    font-size: 0.95rem;
}

.page-hero-art {
    border-radius: 18px;
    border: 1px solid var(--border);
    background:
        radial-gradient(600px 240px at 20% 20%, rgba(109, 94, 252, 0.18), transparent 60%),
        radial-gradient(560px 220px at 80% 30%, rgba(34, 197, 94, 0.12), transparent 55%),
        rgba(255, 255, 255, 0.03);
    overflow: hidden;
    display: flex;
}

.page-hero-svg {
    width: 100%;
    height: 100%;
    display: block;
}

.page-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    margin-top: 20px;
}

.page-card {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 18px 18px 16px;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.32);
}

.page-icon {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    border: 1px solid var(--border);
    background: linear-gradient(135deg, rgba(109, 94, 252, 0.26), rgba(34, 197, 94, 0.16));
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.92);
    margin-bottom: 12px;
}

.page-icon svg {
    width: 24px;
    height: 24px;
}

.page-card-title {
    font-size: 1.1rem;
    font-weight: 950;
    color: var(--text);
    letter-spacing: 0.3px;
    margin-bottom: 8px;
}

.page-card-text {
    color: var(--muted);
    line-height: 1.85;
    font-weight: 650;
}

.page-prose {
    margin-top: 22px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 18px;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.30);
}

.page-prose h2 {
    font-size: 1.4rem;
    font-weight: 950;
    letter-spacing: 0.3px;
    color: rgba(255, 255, 255, 0.92);
    margin-bottom: 10px;
}

.page-prose p {
    color: var(--muted);
    line-height: 1.9;
    font-weight: 650;
}

.page-note {
    margin-top: 10px;
    color: rgba(255, 255, 255, 0.62);
    line-height: 1.8;
    font-weight: 650;
}

.page-list {
    margin: 0;
    padding-left: 18px;
    display: grid;
    gap: 8px;
    color: var(--muted);
    line-height: 1.85;
    font-weight: 650;
}

.page-links {
    margin-top: 18px;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.page-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 16px;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.92);
    text-decoration: none;
    font-weight: 900;
    letter-spacing: 0.2px;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.page-link:hover {
    transform: translateY(-2px);
    border-color: rgba(255, 255, 255, 0.20);
    box-shadow: 0 16px 44px rgba(0, 0, 0, 0.42);
}

.page-updated {
    margin-top: 14px;
    color: rgba(255, 255, 255, 0.62);
    text-align: right;
}

/* Back to top button */
.back-to-top-btn {
    position: fixed;
    right: 22px;
    bottom: 22px;
    width: 54px;
    height: 54px;
    border-radius: 18px;
    border: 1px solid var(--border);
    background: linear-gradient(180deg, rgba(96, 165, 250, 0.25) 0%, rgba(139, 92, 246, 0.22) 100%);
    color: rgba(255, 255, 255, 0.92);
    display: grid;
    place-items: center;
    cursor: pointer;
    z-index: 60;
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: opacity 180ms ease, transform 180ms ease, visibility 180ms ease, border-color 180ms ease;
    backdrop-filter: blur(10px);
}

.back-to-top-btn svg {
    width: 22px;
    height: 22px;
}

.back-to-top-btn.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top-btn:hover {
    border-color: rgba(255, 255, 255, 0.18);
    transform: translateY(-2px);
}

.back-to-top-btn:focus-visible {
    outline: 2px solid rgba(96, 165, 250, 0.55);
    outline-offset: 3px;
}

@media (max-width: 640px) {
    .back-to-top-btn {
        right: 14px;
        bottom: 14px;
        width: 48px;
        height: 48px;
        border-radius: 16px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .back-to-top-btn {
        transition: none;
    }
}

/* Games Grid */
.games-grid {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    gap: 25px;
    margin-bottom: 40px;
}

.game-card {
    background: var(--surface);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    border: 1px solid var(--border);
    backdrop-filter: blur(10px);
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}

.game-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 18px 60px rgba(0, 0, 0, 0.55);
    border-color: rgba(255, 255, 255, 0.22);
}

.game-card.coming-soon {
    opacity: 0.65;
}

.game-card.hidden {
    display: none;
}

.game-thumbnail {
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    border-bottom: 1px solid var(--border);
    background-size: cover;
    background-position: center;
}

.game-thumbnail.has-image::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.20) 0%, rgba(0, 0, 0, 0.55) 100%);
}

.game-icon {
    font-size: 5rem;
    filter: drop-shadow(3px 3px 6px rgba(0, 0, 0, 0.2));
    position: relative;
    z-index: 1;
}

.category-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: linear-gradient(135deg, rgba(109, 94, 252, 0.95), rgba(34, 197, 94, 0.75));
    color: #fff;
    padding: 6px 18px;
    border-radius: 25px;
    font-size: 0.85rem;
    font-weight: 800;
    text-transform: uppercase;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.15);
    z-index: 2;
}

.game-card h3 {
    padding: 18px 20px 8px;
    font-size: 1rem;
    color: var(--text);
    font-weight: 900;
    letter-spacing: 0.5px;
}

.game-card p {
    padding: 0 20px;
    color: var(--muted);
    line-height: 1.7;
    flex-grow: 1;
    font-size: 0.95rem;
}

/* Cards: no descriptions (match OnlineGames-style compact cards) */
.games-grid .game-card > p {
    display: none;
}

.game-meta {
    display: flex;
    justify-content: space-between;
    padding: 12px 20px 18px;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.72);
    font-weight: 700;
}

/* Coming Soon Button */
.play-btn:disabled {
    display: block;
    width: calc(100% - 40px);
    margin: 0 20px 20px;
    padding: 14px 20px;
    background: #ddd;
    color: #666;
    text-align: center;
    border: none;
    border-radius: 30px;
    font-size: 1.15rem;
    font-weight: 900;
    cursor: not-allowed;
    box-shadow: none;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Footer */
footer {
    background: rgba(255, 255, 255, 0.03);
    padding: 40px 20px 20px;
    margin-top: 60px;
    border-top: 1px solid var(--border);
    box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.35);
}

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

.footer-section h4 {
    background: linear-gradient(135deg, rgba(109, 94, 252, 0.95), rgba(34, 197, 94, 0.75));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 15px;
    font-size: 1.4rem;
    font-weight: 900;
}

.footer-section p {
    line-height: 1.8;
    color: var(--muted);
    font-size: 0.95rem;
}

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

.footer-section ul li {
    padding: 8px 0;
    color: var(--muted);
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
}

.footer-section ul li a {
    color: var(--muted);
    text-decoration: none;
}

.footer-section ul li:hover,
.footer-section ul li a:hover {
    color: rgba(255, 255, 255, 0.92);
}

.footer-bottom {
    text-align: center;
    padding-top: 25px;
    border-top: 1px solid var(--border);
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.70);
    font-weight: 600;
    font-size: 1rem;
}

/* New unified footer */
.site-footer {
    position: relative;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.03);
    padding: 46px 20px 24px;
    margin-top: 60px;
    border-top: 1px solid var(--border);
    box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.35);
}

.site-footer::before {
    content: "";
    position: absolute;
    inset: -120px -120px auto -120px;
    height: 260px;
    background: radial-gradient(closest-side, rgba(109, 94, 252, 0.12), rgba(34, 197, 94, 0.06), transparent 70%);
    pointer-events: none;
}

.footer-grid {
    position: relative;
    display: grid;
    grid-template-columns: 1.7fr repeat(3, minmax(180px, 1fr));
    gap: 28px;
    margin-bottom: 26px;
}

.footer-brand {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 20px;
    backdrop-filter: blur(10px);
}

.footer-logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.footer-logo img {
    height: 34px;
    width: auto;
    display: block;
}

.footer-text {
    margin-top: 12px;
    color: var(--muted);
    line-height: 1.85;
    font-size: 0.95rem;
}

.footer-points {
    list-style: none;
    padding: 0;
    margin: 16px 0 0;
    display: grid;
    gap: 10px;
}

.footer-points li {
    display: grid;
    grid-template-columns: 34px 1fr;
    align-items: center;
    gap: 10px;
    color: rgba(255, 255, 255, 0.82);
    font-weight: 700;
}

.footer-point-icon {
    width: 34px;
    height: 34px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.03);
    color: rgba(255, 255, 255, 0.90);
}

.footer-point-icon svg {
    width: 18px;
    height: 18px;
}

.footer-col {
    position: relative;
    padding: 14px 6px;
}

.footer-title {
    margin: 0 0 12px;
    font-size: 1.15rem;
    font-weight: 900;
    letter-spacing: 0.3px;
    background: linear-gradient(135deg, rgba(109, 94, 252, 0.95), rgba(34, 197, 94, 0.75));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 10px;
}

.footer-links a {
    text-decoration: none;
    color: var(--muted);
    font-weight: 700;
    transition: color 180ms ease;
}

.footer-links a:hover {
    color: rgba(255, 255, 255, 0.92);
}

.footer-bottom-row {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding-top: 18px;
    border-top: 1px solid var(--border);
}

.footer-copyright {
    margin: 0;
    color: rgba(255, 255, 255, 0.70);
    font-weight: 700;
    font-size: 0.95rem;
}

.footer-mini-links {
    display: inline-flex;
    align-items: center;
    gap: 16px;
}

.footer-mini-links a {
    color: rgba(255, 255, 255, 0.78);
    text-decoration: none;
    font-weight: 800;
    font-size: 0.9rem;
    letter-spacing: 0.2px;
}

.footer-mini-links a:hover {
    color: rgba(255, 255, 255, 0.92);
}

@media (max-width: 980px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }

    .footer-brand {
        grid-column: 1 / -1;
    }
}

@media (max-width: 640px) {
    .site-footer {
        padding: 36px 16px 20px;
    }

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

    .footer-bottom-row {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* Game Page Styles */
.game-container {
    background: var(--surface);
    border-radius: 20px;
    padding: 30px;
    max-width: 1100px;
    margin: 0 auto;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    backdrop-filter: blur(10px);
}

.game-header {
    text-align: center;
    margin-bottom: 20px;
}

.game-header h2 {
    font-size: 2.5rem;
    background: linear-gradient(135deg, rgba(109, 94, 252, 0.95), rgba(34, 197, 94, 0.75));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 10px;
    font-weight: 900;
}

.game-info {
    display: flex;
    justify-content: space-around;
    margin-bottom: 20px;
    font-size: 1.3rem;
}

.score-display, .high-score {
    font-weight: 900;
    color: rgba(255, 255, 255, 0.92);
}

canvas {
    display: block;
    margin: 0 auto;
    border: 1px solid var(--border);
    border-radius: 15px;
    background: #000;
    box-shadow: 0 16px 45px rgba(0, 0, 0, 0.55);
}

.game-controls {
    text-align: center;
    margin-top: 20px;
}

.control-btn {
    padding: 14px 35px;
    margin: 8px;
    background: linear-gradient(135deg, rgba(109, 94, 252, 0.95), rgba(34, 197, 94, 0.75));
    color: #fff;
    border: none;
    border-radius: 30px;
    font-size: 1.15rem;
    font-weight: 900;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
    text-transform: uppercase;
}

.control-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.5);
}

.back-btn {
    display: inline-block;
    margin-top: 20px;
    padding: 12px 30px;
    background: linear-gradient(135deg, rgba(109, 94, 252, 0.95), rgba(34, 197, 94, 0.75));
    color: #fff;
    text-decoration: none;
    border-radius: 30px;
    transition: all 0.3s ease;
    font-weight: 900;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
}

.back-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.5);
}

.instructions {
    background: rgba(255, 255, 255, 0.04);
    padding: 20px;
    border-radius: 15px;
    margin-top: 20px;
    border: 1px solid var(--border);
}

.instructions h3 {
    margin-bottom: 12px;
    color: rgba(255, 255, 255, 0.92);
    font-weight: 900;
    font-size: 1.3rem;
}

.instructions ul {
    margin-left: 20px;
    line-height: 2;
    font-weight: 600;
    color: var(--muted);
}

.game-description {
    background: linear-gradient(135deg, rgba(109, 94, 252, 0.08), rgba(34, 197, 94, 0.05));
    padding: 30px;
    border-radius: 20px;
    margin-top: 24px;
    border: 1px solid var(--border);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

.game-description h3 {
    margin-bottom: 18px;
    color: rgba(255, 255, 255, 0.95);
    font-weight: 900;
    font-size: 1.8rem;
    display: flex;
    align-items: center;
    gap: 12px;
}

.game-description h3 svg {
    width: 32px;
    height: 32px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.game-description-content {
    color: var(--muted);
    line-height: 1.9;
    font-weight: 500;
    font-size: 1.05rem;
}

.game-description-content p {
    margin-bottom: 16px;
}

.game-description-content p:last-child {
    margin-bottom: 0;
}

.game-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.game-feature {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.game-feature svg {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    margin-top: 2px;
    fill: none;
    stroke: var(--accent);
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.game-feature-text {
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.5;
}

.game-how-to-play {
    background: rgba(0, 0, 0, 0.2);
    padding: 20px;
    border-radius: 12px;
    margin-top: 20px;
}

.game-how-to-play h4 {
    color: rgba(255, 255, 255, 0.92);
    font-size: 1.2rem;
    font-weight: 800;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.game-how-to-play h4 svg {
    width: 24px;
    height: 24px;
    fill: none;
    stroke: var(--accent2);
    stroke-width: 2.5;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.game-how-to-play ol {
    margin-left: 24px;
    color: var(--muted);
    line-height: 2;
    font-weight: 500;
}

.game-how-to-play li {
    margin-bottom: 8px;
}

.game-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.game-tag {
    background: rgba(255, 255, 255, 0.06);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.75);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.2s ease;
}

.game-tag:hover {
    background: rgba(109, 94, 252, 0.15);
    border-color: rgba(109, 94, 252, 0.3);
    color: rgba(255, 255, 255, 0.9);
}


/* Embedded game pages */
.embed-wrap {
    width: 100%;
    background: #000;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--border);
    box-shadow: 0 18px 55px rgba(0, 0, 0, 0.6);
    position: relative;
    aspect-ratio: var(--aspect, 16/9);
}

.embed-wrap iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.embed-attribution {
    margin-top: 14px;
    color: var(--muted);
    font-weight: 600;
    text-align: center;
}

.embed-attribution a {
    color: rgba(255, 255, 255, 0.92);
    text-decoration: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.25);
}

.embed-attribution a:hover {
    border-bottom-color: rgba(255, 255, 255, 0.65);
}

/* Responsive */
@media (max-width: 768px) {
    header h1 {
        font-size: 2.5rem;
    }
    
    .category-filter {
        gap: 8px;
    }
    
    .filter-btn {
        padding: 10px 20px;
        font-size: 0.95rem;
    }
    
    .games-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .about-hero {
        grid-template-columns: 1fr;
        padding: 18px;
    }

    .about-cards {
        grid-template-columns: 1fr;
    }

    .about-panels {
        grid-template-columns: 1fr;
    }

    .about-faq-grid {
        grid-template-columns: 1fr;
    }

    .site-nav {
        gap: 8px;
    }

    .site-nav-link {
        padding: 10px 14px;
        font-size: 0.95rem;
    }

    .page-hero {
        grid-template-columns: 1fr;
        padding: 18px;
    }

    .page-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
    
    .game-container {
        padding: 20px;
    }
    
    canvas {
        max-width: 100%;
        height: auto;
    }
}
