/* AlGameXpert Design System v2.1.0 */
:root {
    --bg-main: #F5F7FA;
    --bg-card: #FFFFFF;
    --bg-muted: #EEF2F6;
    --text-primary: #182230;
    --text-secondary: #64748B;
    --bg-dark-section: #172231;
    --text-on-dark: #F8FAFC;
    --text-on-dark-muted: #CBD5E1;
    --accent: #16A36A;
    --accent-highlight: #42F58A;
    --accent-hover: #128757;
    --accent-soft: rgba(22, 163, 106, 0.12);
    --border: #E5EAF0;
    --shadow-sm: 0 2px 8px rgba(23, 34, 49, 0.06);
    --shadow-md: 0 10px 28px rgba(23, 34, 49, 0.10);
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 18px;
}

[data-theme="dark"] {
    --bg-main: #0F172A;
    --bg-card: #1E293B;
    --bg-muted: #263348;
    --text-primary: #F1F5F9;
    --text-secondary: #94A3B8;
    --bg-dark-section: #172231;
    --text-on-dark: #F8FAFC;
    --text-on-dark-muted: #CBD5E1;
    --accent: #16A36A;
    --accent-highlight: #42F58A;
    --accent-hover: #22C55E;
    --accent-soft: rgba(22, 163, 106, 0.2);
    --border: #334155;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.25);
    --shadow-md: 0 10px 28px rgba(0, 0, 0, 0.35);
}

*, *::before, *::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Inter, "Helvetica Neue", Arial, sans-serif;
    font-size: clamp(15px, 1vw, 16.5px);
    background-color: var(--bg-main);
    color: var(--text-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a {
    color: inherit;
    text-decoration: none;
}

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

.screen-reader-text {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

/* Centered Fluid Container */
.gx-container {
    width: min(100% - 48px, 1280px);
    margin-inline: auto;
}

/* Header */
.gx-header {
    position: sticky;
    top: 0;
    z-index: 60;
    background: var(--bg-dark-section);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    color: #FFFFFF;
}

.gx-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-height: 76px;
}

.gx-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    font-size: 1.15rem;
    letter-spacing: -0.02em;
    color: #FFFFFF;
    flex-shrink: 0;
}

.gx-brand-logo {
    height: 54px;
    width: auto;
    max-width: 270px;
    object-fit: contain;
}

.gx-brand-badge {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--accent-highlight), var(--accent));
    color: #0B1912;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.gx-nav {
    display: flex;
    align-items: center;
    gap: 4px;
}

.gx-nav-link {
    padding: 8px 13px;
    border-radius: var(--radius-sm);
    font-size: 0.92rem;
    font-weight: 600;
    color: #CBD5E1;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    white-space: nowrap;
    transition: color 0.15s ease, background-color 0.15s ease;
}

.gx-nav-link:hover,
.gx-nav-link.is-active {
    color: #FFFFFF;
    background: rgba(255, 255, 255, 0.08);
}

.gx-nav-link.is-active {
    box-shadow: inset 0 -2px 0 var(--accent-highlight);
}

.gx-dropdown {
    position: relative;
}

.gx-dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 210px;
    background: var(--bg-card);
    color: var(--text-primary);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-md);
    padding: 8px;
    z-index: 70;
}

.gx-dropdown:hover .gx-dropdown-menu,
.gx-dropdown:focus-within .gx-dropdown-menu {
    display: grid;
    gap: 2px;
}

.gx-dropdown-menu a {
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 0.88rem;
    color: var(--text-primary);
}

.gx-dropdown-menu a:hover {
    background: var(--bg-muted);
    color: var(--accent);
}

.gx-header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.gx-header-search {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 999px;
    padding: 5px 14px;
}

.gx-header-search input {
    border: none;
    background: transparent;
    color: #FFFFFF;
    font-size: 0.85rem;
    width: 170px;
    outline: none;
}

.gx-header-search input::placeholder {
    color: #94A3B8;
}

.gx-header-search button {
    border: none;
    background: transparent;
    color: #CBD5E1;
    cursor: pointer;
    padding: 2px 4px;
    display: inline-flex;
    align-items: center;
}

.gx-theme-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.16);
    cursor: pointer;
    font-size: 0.85rem;
}

.gx-theme-pill .gx-theme-moon { opacity: 0.45; }
.gx-theme-pill.is-dark .gx-theme-sun { opacity: 0.45; }
.gx-theme-pill.is-dark .gx-theme-moon { opacity: 1; }

.gx-icon-btn {
    width: 38px;
    height: 38px;
    border-radius: var(--radius-sm);
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: rgba(255, 255, 255, 0.08);
    color: #FFFFFF;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.05rem;
}

.gx-mobile-toggle {
    display: none;
}

/* Buttons */
.gx-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 11px 20px;
    border-radius: var(--radius-sm);
    font-weight: 700;
    font-size: 0.92rem;
    border: 1px solid transparent;
    cursor: pointer;
    transition: transform 0.12s ease, background-color 0.15s ease, border-color 0.15s ease;
}

.gx-btn:hover { transform: translateY(-1px); }
.gx-btn-sm { padding: 8px 14px; font-size: 0.84rem; }
.gx-btn-primary { background: var(--accent); color: #FFFFFF; }
.gx-btn-primary:hover { background: var(--accent-hover); }
.gx-btn-highlight { background: var(--accent-highlight); color: #0B1912; }
.gx-btn-highlight:hover { background: #2EE579; }
.gx-btn-outline { background: var(--bg-card); color: var(--text-primary); border-color: var(--border); }
.gx-btn-outline:hover { background: var(--bg-muted); }
.gx-btn-dark-outline { background: rgba(255, 255, 255, 0.08); color: #FFFFFF; border-color: rgba(255, 255, 255, 0.24); }
.gx-btn-dark-outline:hover { background: rgba(255, 255, 255, 0.16); }

/* Hero Section (Full-bleed Background with Readable Left Gradient) */
.gx-hero-cinematic {
    position: relative;
    background-color: var(--bg-dark-section);
    background-image: linear-gradient(90deg, rgba(23, 34, 49, 0.94) 0%, rgba(23, 34, 49, 0.78) 48%, rgba(23, 34, 49, 0.18) 100%), var(--gx-hero-bg, none);
    background-size: cover;
    background-position: right center;
    background-repeat: no-repeat;
    color: #FFFFFF;
    padding: 64px 0 88px;
}

.gx-hero-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 40px;
    align-items: center;
}

.gx-hero-grid > * {
    min-width: 0;
}

.gx-hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    border-radius: 999px;
    background: rgba(66, 245, 138, 0.14);
    border: 1px solid rgba(66, 245, 138, 0.3);
    color: var(--accent-highlight);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    margin-bottom: 16px;
}

.gx-hero-cinematic h1 {
    margin: 0 0 16px;
    font-size: clamp(1.75rem, 4vw, 3.3rem);
    line-height: 1.12;
    font-weight: 800;
    letter-spacing: -0.03em;
    overflow-wrap: break-word;
}

.gx-text-highlight {
    color: var(--accent-highlight);
}

.gx-hero-sub {
    margin: 0 0 24px;
    font-size: clamp(1rem, 1.3vw, 1.1rem);
    color: #CBD5E1;
    max-width: 540px;
}

.gx-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.gx-hero-benefits {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    margin-top: 26px;
    padding-top: 22px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.gx-benefit-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.85rem;
    color: #CBD5E1;
}

.gx-benefit-icon {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    background: rgba(66, 245, 138, 0.15);
    color: var(--accent-highlight);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    flex-shrink: 0;
}

.gx-hero-artwork {
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.14);
    box-shadow: 0 20px 48px rgba(0, 0, 0, 0.4);
    aspect-ratio: 16 / 10;
    background: #0F172A;
}

.gx-hero-artwork img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Two Main Feature Cards */
.gx-features-band {
    margin-top: -36px;
    position: relative;
    z-index: 10;
    margin-bottom: 12px;
}

.gx-features-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
}

.gx-feature-card {
    border-radius: var(--radius-lg);
    padding: 28px;
    color: #FFFFFF;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    box-shadow: var(--shadow-md);
    overflow: hidden;
    min-width: 0;
    transition: transform 0.16s ease;
}

.gx-feature-card:hover { transform: translateY(-3px); }
.gx-feature-directory { background: linear-gradient(135deg, #065F46 0%, #16A36A 60%, #10B981 100%); }
.gx-feature-minigames { background: linear-gradient(135deg, #1E1B4B 0%, #4338CA 65%, #6366F1 100%); }

.gx-feature-content { min-width: 0; flex: 1; }
.gx-feature-content h2 { margin: 0 0 8px; font-size: clamp(1.25rem, 2vw, 1.5rem); font-weight: 800; }
.gx-feature-content p { margin: 0 0 16px; font-size: 0.92rem; color: rgba(255, 255, 255, 0.9); }

.gx-feature-thumbs {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
}

.gx-feature-thumbs img {
    width: 68px;
    height: 96px;
    object-fit: cover;
    border-radius: 10px;
    border: 2px solid rgba(255, 255, 255, 0.25);
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.28);
}

/* Sections */
.gx-section { padding: 64px 0; }
.gx-section-sm { padding: 48px 0; }

.gx-section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 28px;
    flex-wrap: wrap;
}

.gx-title-bar {
    display: inline-flex;
    align-items: center;
    gap: 12px;
}

.gx-title-bar::after {
    content: "";
    display: inline-block;
    width: 36px;
    height: 4px;
    border-radius: 999px;
    background: var(--accent);
}

.gx-section-title {
    margin: 0;
    font-size: clamp(1.5rem, 2.5vw, 2rem);
    font-weight: 800;
    letter-spacing: -0.02em;
}

.gx-section-sub {
    margin: 4px 0 0;
    color: var(--text-secondary);
    font-size: 0.94rem;
}

/* Featured Games Grid (6 Desktop / 3 Tablet / 2 Mobile) */
.gx-grid-6 {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 18px;
}

.gx-portrait-card {
    border-radius: var(--radius-md);
    overflow: hidden;
    position: relative;
    aspect-ratio: 3 / 4;
    background: var(--bg-dark-section);
    box-shadow: var(--shadow-sm);
    min-width: 0;
    transition: transform 0.16s ease, box-shadow 0.16s ease;
}

.gx-portrait-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.gx-portrait-link {
    display: block;
    width: 100%;
    height: 100%;
    position: relative;
}

.gx-portrait-link img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gx-portrait-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(15, 23, 42, 0.95) 0%, rgba(15, 23, 42, 0.5) 45%, transparent 100%);
    padding: 12px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    color: #FFFFFF;
}

.gx-portrait-info h3 {
    margin: 0 0 6px;
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1.25;
}

.gx-portrait-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-bottom: 6px;
}

.gx-ptag {
    font-size: 0.68rem;
    font-weight: 600;
    padding: 2px 6px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.18);
    color: #F8FAFC;
}

.gx-ptag-accent {
    background: rgba(66, 245, 138, 0.22);
    color: var(--accent-highlight);
}

.gx-portrait-cta {
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--accent-highlight);
}

/* Standard Cards & Mini Games Grid */
.gx-grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.gx-grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.gx-grid-6-cards { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 16px; }

.gx-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    min-width: 0;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.gx-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.gx-card-media {
    position: relative;
    aspect-ratio: 16 / 9;
    background: var(--bg-muted);
    overflow: hidden;
    flex-shrink: 0;
}

.gx-card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gx-card-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #172231 0%, #334155 100%);
    color: #FFFFFF;
    font-weight: 800;
    font-size: 1.5rem;
}

.gx-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 3px 9px;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 700;
}

.gx-badge-accent { background: var(--accent); color: #FFFFFF; }
.gx-badge-dark { background: rgba(23, 34, 49, 0.88); color: #FFFFFF; }

.gx-card-body {
    padding: 16px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.gx-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 8px;
}

.gx-chip {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 6px;
    font-size: 0.74rem;
    font-weight: 600;
    background: var(--accent-soft);
    color: var(--accent);
}

.gx-chip-muted {
    background: var(--bg-muted);
    color: var(--text-secondary);
}

.gx-card-title {
    margin: 0 0 6px;
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.3;
}

.gx-card-desc {
    margin: 0 0 14px;
    font-size: 0.86rem;
    color: var(--text-secondary);
    flex: 1;
}

.gx-card-footer {
    margin-top: auto;
}

/* Category Section */
.gx-tab-switch {
    display: inline-flex;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 999px;
    padding: 4px;
    gap: 4px;
}

.gx-tab-btn {
    border: none;
    background: transparent;
    color: var(--text-secondary);
    font-weight: 700;
    font-size: 0.86rem;
    padding: 8px 16px;
    border-radius: 999px;
    cursor: pointer;
}

.gx-tab-btn.is-active {
    background: var(--bg-dark-section);
    color: #FFFFFF;
}

.gx-cat-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 14px;
}

.gx-cat-grid[hidden] {
    display: none;
}

.gx-cat-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 18px 14px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    min-width: 0;
    transition: border-color 0.15s ease, transform 0.15s ease;
}

.gx-cat-card:hover {
    border-color: var(--accent);
    transform: translateY(-2px);
}

.gx-cat-icon {
    width: 40px;
    height: 40px;
    margin: 0 auto 10px;
    border-radius: 10px;
    background: var(--accent-soft);
    color: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
}

.gx-cat-card strong { display: block; font-size: 0.94rem; }
.gx-cat-card span { display: block; font-size: 0.78rem; color: var(--text-secondary); margin-top: 2px; }

/* Blog, About & FAQ Sections */
.gx-blog-footer {
    margin-top: auto;
    padding-top: 10px;
    border-top: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    font-size: 0.82rem;
}

.gx-blog-date { color: var(--text-secondary); }
.gx-blog-link { color: var(--accent); font-weight: 700; }
.gx-blog-link:hover { text-decoration: underline; }

.gx-about-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 36px;
    box-shadow: var(--shadow-sm);
    display: grid;
    gap: 28px;
}

.gx-about-intro {
    display: grid;
    grid-template-columns: 0.45fr 0.55fr;
    gap: 32px;
    align-items: center;
}

.gx-about-media {
    border-radius: var(--radius-md);
    overflow: hidden;
    aspect-ratio: 16 / 10;
    background: var(--bg-dark-section);
}

.gx-about-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gx-about-intro-text { min-width: 0; }

.gx-about-eyebrow {
    display: inline-block;
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--accent);
    background: var(--accent-soft);
    padding: 4px 10px;
    border-radius: 999px;
    margin-bottom: 12px;
}

.gx-about-intro-text h2 {
    margin: 0 0 12px;
    font-size: clamp(1.45rem, 2.3vw, 1.9rem);
    line-height: 1.22;
}

.gx-about-intro-text p {
    margin: 0 0 14px;
    color: var(--text-secondary);
    font-size: 0.98rem;
}

.gx-about-links {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    font-size: 0.92rem;
    font-weight: 700;
}

.gx-about-links a {
    color: var(--accent);
    text-decoration: underline;
}

.gx-about-features {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.gx-about-grid-4 {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}

.gx-about-fcard {
    background: var(--bg-main);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 0;
}

.gx-about-ficon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: var(--accent-soft);
    color: var(--accent);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 4px;
}

.gx-about-fcard h3 {
    margin: 0;
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary);
}

.gx-about-fcard p {
    margin: 0;
    font-size: 0.88rem;
    color: var(--text-secondary);
    line-height: 1.55;
}

.gx-about-body {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px 32px;
    padding-top: 8px;
    border-top: 1px solid var(--border);
}

.gx-about-block h3 {
    margin: 0 0 8px;
    font-size: 1.05rem;
    color: var(--text-primary);
}

.gx-about-block p {
    margin: 0;
    color: var(--text-secondary);
    font-size: 0.94rem;
    line-height: 1.65;
}

.gx-about-block a.gx-inline-link {
    color: var(--accent);
    font-weight: 600;
    text-decoration: underline;
}

.gx-about-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    padding-top: 4px;
}

/* Single-Column Centered FAQ */
.gx-faq-wrap {
    max-width: 960px;
    margin-inline: auto;
}

.gx-faq-head {
    text-align: center;
    margin-bottom: 28px;
}

.gx-faq-head p {
    margin: 8px auto 0;
    max-width: 600px;
    color: var(--text-secondary);
}

.gx-faq-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}

.gx-faq-item {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: border-color 0.15s ease;
}

.gx-faq-item.is-open { border-color: var(--accent); }

.gx-faq-trigger {
    width: 100%;
    text-align: left;
    background: transparent;
    border: 0;
    padding: 18px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    font-size: 0.98rem;
    font-weight: 700;
    color: var(--text-primary);
    cursor: pointer;
}

.gx-faq-item.is-open .gx-faq-trigger {
    background: var(--accent-soft);
    color: var(--accent);
}

.gx-faq-chevron {
    transition: transform 0.18s ease;
    flex-shrink: 0;
}

.gx-faq-item.is-open .gx-faq-chevron { transform: rotate(180deg); }

.gx-faq-panel {
    padding: 14px 20px 18px;
    color: var(--text-secondary);
    font-size: 0.93rem;
    line-height: 1.65;
    border-top: 1px solid var(--border);
}

.gx-faq-panel[hidden] { display: none; }

/* Contact Page */
.gx-contact-grid {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 24px;
    align-items: start;
}

.gx-form {
    display: grid;
    gap: 16px;
}

.gx-form-row {
    display: grid;
    gap: 6px;
}

.gx-form-row label {
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--text-primary);
}

.gx-form-row input,
.gx-form-row select,
.gx-form-row textarea {
    width: 100%;
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    background: var(--bg-main);
    color: var(--text-primary);
    font-family: inherit;
    font-size: 0.95rem;
}

.gx-form-row input:focus,
.gx-form-row select:focus,
.gx-form-row textarea:focus {
    outline: 2px solid var(--accent);
    border-color: transparent;
}

.gx-hp-field {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.gx-req { color: #DC2626; }

.gx-form-check {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.88rem;
    color: var(--text-secondary);
}

.gx-form-check input { margin-top: 4px; flex-shrink: 0; }
.gx-form-check a { color: var(--accent); font-weight: 600; text-decoration: underline; }

.gx-support-list {
    margin: 0;
    padding-left: 18px;
    color: var(--text-secondary);
    font-size: 0.92rem;
    display: grid;
    gap: 6px;
}

/* Public Game Submission */
.gx-submit-btn {
    white-space: nowrap;
    border-radius: 999px;
}

.gx-form-grid-2 {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.gx-check-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 8px;
}

.gx-check-pill {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    background: var(--bg-main);
    font-size: 0.86rem;
    font-weight: 600;
    cursor: pointer;
}

.gx-file-hint {
    font-size: 0.78rem;
    color: var(--text-secondary);
}

/* Submission Portal V2 */
.gx-review-note {
    margin: 12px 0 0;
    font-size: 0.82rem;
    color: #94A3B8;
}

.gx-portal-wrap {
    max-width: 1040px;
    padding-bottom: 56px;
}

.gx-portal-full {
    width: 100%;
    min-width: 0;
}

.gx-fieldset {
    border: 0;
    padding: 0;
    margin: 0;
    min-width: 0;
}

.gx-legend {
    font-weight: 700;
    font-size: 0.92rem;
    color: var(--text-primary);
    margin-bottom: 10px;
    padding: 0;
}

.game-option-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

.game-option-card {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 12px;
    min-height: 52px;
    padding: 12px 14px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: var(--bg-main);
    color: var(--text-primary);
    cursor: pointer;
    transition: background-color 0.2s ease, border-color 0.2s ease;
}

.game-option-card:hover {
    border-color: var(--accent);
}

.game-option-card input[type="checkbox"] {
    flex: 0 0 17px;
    width: 17px;
    height: 17px;
    margin: 0;
    accent-color: var(--accent);
    cursor: pointer;
}

.game-option-card .option-label {
    flex: 1;
    min-width: 0;
    text-align: left;
    font-size: 14px;
    line-height: 1.4;
    font-weight: 600;
    overflow-wrap: normal;
    word-break: normal;
}

.game-option-card:has(input:checked) {
    border-color: var(--accent);
    background: var(--accent-soft);
}

.game-option-card:has(input:focus-visible) {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

.system-requirements-panel {
    padding: 20px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: var(--bg-main);
    margin: 0;
    min-width: 0;
}

.gx-sys-legend {
    font-weight: 700;
    font-size: 0.98rem;
    color: var(--text-primary);
    padding: 0 6px;
}

.system-requirements-panel input {
    width: 100%;
    min-height: 44px;
    padding: 10px 12px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--bg-card);
    color: var(--text-primary);
    font-size: 14px;
    font-family: inherit;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.system-requirements-panel input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(22, 163, 106, 0.14);
    outline: none;
}

.gx-progress-bar {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 8px;
    margin: 14px 0 24px;
}

.gx-step {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 10px 12px;
    font-size: 0.82rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-secondary);
}

.gx-step span {
    width: 22px;
    height: 22px;
    border-radius: 999px;
    background: var(--bg-muted);
    color: var(--text-primary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    flex-shrink: 0;
}

.gx-step.is-active {
    border-color: var(--accent);
    color: var(--text-primary);
}

.gx-step.is-active span {
    background: var(--accent);
    color: #FFFFFF;
}

.gx-portal-grid {
    display: grid;
    grid-template-columns: 1.65fr 0.85fr;
    gap: 24px;
    align-items: start;
}

.gx-portal-main { min-width: 0; }
.gx-portal-sidebar { position: sticky; top: 88px; min-width: 0; }

.gx-sec-head {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
}

.gx-sec-head h2 { margin: 0; font-size: 1.18rem; }

.gx-sec-num {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    background: var(--accent-soft);
    color: var(--accent);
    font-weight: 800;
    font-size: 0.82rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.gx-char-count {
    float: right;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.gx-field-err {
    color: #DC2626;
    font-size: 0.8rem;
    font-weight: 600;
}

.gx-media-preview img {
    margin-top: 10px;
    max-width: 320px;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
}

.gx-shots-preview {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 10px;
}

.gx-shot-thumb {
    position: relative;
    width: 112px;
    height: 68px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    border: 1px solid var(--border);
}

.gx-shot-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gx-shot-rm {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 20px;
    height: 20px;
    border-radius: 999px;
    border: 0;
    background: rgba(15, 23, 42, 0.85);
    color: #FFFFFF;
    cursor: pointer;
    font-weight: 700;
    line-height: 1;
}

.gx-confirm-list {
    display: grid;
    gap: 10px;
    margin-top: 16px;
}

.gx-check-pill:has(input:checked) {
    border-color: var(--accent);
    background: var(--accent-soft);
    color: var(--accent);
}

.gx-alert {
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    margin-bottom: 16px;
    font-size: 0.92rem;
    font-weight: 600;
}

.gx-alert-success {
    background: var(--accent-soft);
    color: var(--accent);
    border: 1px solid var(--accent);
}

.gx-alert-error {
    background: rgba(239, 68, 68, 0.12);
    color: #DC2626;
    border: 1px solid rgba(239, 68, 68, 0.4);
}

/* Final CTA Banner */
.gx-cta-banner {
    background: radial-gradient(circle at 20% 50%, rgba(22, 163, 106, 0.25), transparent 55%), var(--bg-dark-section);
    color: #FFFFFF;
    border-radius: var(--radius-lg);
    padding: 44px 36px;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 28px;
    align-items: center;
    box-shadow: var(--shadow-md);
}

.gx-cta-banner h2 { margin: 0 0 8px; font-size: clamp(1.5rem, 2.5vw, 2rem); font-weight: 800; }
.gx-cta-banner p { margin: 0 0 20px; color: #CBD5E1; max-width: 520px; }

/* Filters, Single Pages, Player, Pagination */
.gx-filter-bar {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 16px;
    margin-bottom: 28px;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
}

.gx-filter-bar input,
.gx-filter-bar select {
    padding: 9px 12px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    background: var(--bg-main);
    color: var(--text-primary);
    font-size: 0.9rem;
}

.gx-filter-bar input[type="search"] { flex: 1; min-width: 200px; }

.gx-breadcrumbs {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: var(--text-secondary);
    padding: 18px 0 8px;
}

.gx-breadcrumbs a:hover { color: var(--accent); }
.gx-bc-current { color: var(--text-primary); font-weight: 600; }

.gx-single-hero {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 28px;
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 28px;
    margin: 16px 0 32px;
    box-shadow: var(--shadow-sm);
}

.gx-single-cover {
    border-radius: var(--radius-md);
    overflow: hidden;
    background: var(--bg-muted);
    aspect-ratio: 16 / 10;
}

.gx-single-cover img { width: 100%; height: 100%; object-fit: cover; }

.gx-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: 14px;
    margin: 18px 0;
}

.gx-info-box {
    background: var(--bg-main);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 12px;
}

.gx-info-label { display: block; font-size: 0.75rem; color: var(--text-secondary); text-transform: uppercase; font-weight: 700; }
.gx-info-val { font-size: 0.95rem; font-weight: 600; margin-top: 2px; display: block; }

.gx-panel {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 24px;
    margin-bottom: 24px;
}

.gx-panel h2 { margin-top: 0; font-size: 1.25rem; }

.gx-specs-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.gx-specs-box { background: var(--bg-main); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 16px; }
.gx-specs-box h3 { margin: 0 0 10px; font-size: 1rem; }
.gx-specs-box pre { margin: 0; font-family: inherit; white-space: pre-wrap; font-size: 0.9rem; color: var(--text-secondary); }

/* Mini Game Player */
.gx-player-wrap {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    margin: 16px 0 28px;
}

.gx-player-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    padding: 12px 18px;
    background: var(--bg-dark-section);
    color: #FFFFFF;
}

.gx-player-controls { display: flex; gap: 8px; flex-wrap: wrap; }

.gx-player-stage {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    min-height: 420px;
    background: #111827;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gx-player-stage.is-portrait { aspect-ratio: 9 / 16; max-height: 680px; margin: 0 auto; }
.gx-player-stage.is-square { aspect-ratio: 1 / 1; max-height: 620px; margin: 0 auto; }
.gx-player-stage iframe { width: 100%; height: 100%; border: 0; display: none; }
.gx-player-stage.is-loaded iframe { display: block; }

.gx-player-overlay { text-align: center; color: #FFFFFF; padding: 24px; max-width: 440px; }
.gx-player-overlay h2 { margin: 0 0 8px; }
.gx-player-overlay p { color: #CBD5E1; margin: 0 0 20px; }

.gx-score-pill {
    display: none;
    padding: 5px 12px;
    border-radius: 999px;
    background: rgba(66, 245, 138, 0.2);
    color: var(--accent-highlight);
    font-weight: 700;
    font-size: 0.85rem;
}
.gx-score-pill.is-visible { display: inline-block; }

.gx-pagination ul { list-style: none; padding: 0; margin: 32px 0 0; display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; }
.gx-pagination a, .gx-pagination span {
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 38px; height: 38px; padding: 0 12px;
    border-radius: var(--radius-sm); border: 1px solid var(--border);
    background: var(--bg-card); font-weight: 600; font-size: 0.9rem;
}
.gx-pagination span.current { background: var(--accent); border-color: var(--accent); color: #FFFFFF; }

.gx-empty-state { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-md); padding: 40px 24px; text-align: center; }

/* 4-Column Footer */
.gx-footer {
    background: var(--bg-dark-section);
    color: var(--text-on-dark);
    padding: 56px 0 28px;
    margin-top: 48px;
}

.gx-footer-grid-4 {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
    gap: 32px;
    padding-bottom: 32px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.gx-footer h4 { margin: 0 0 14px; font-size: 0.95rem; color: #FFFFFF; }
.gx-footer p { color: var(--text-on-dark-muted); font-size: 0.88rem; max-width: 320px; }
.gx-footer-links { list-style: none; padding: 0; margin: 0; display: grid; gap: 9px; }
.gx-footer-links a { color: var(--text-on-dark-muted); font-size: 0.88rem; }
.gx-footer-links a:hover { color: var(--accent-highlight); }

.gx-footer-bottom {
    padding-top: 20px;
    font-size: 0.84rem;
    color: var(--text-on-dark-muted);
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
}

/* Responsive Breakpoints */
@media (max-width: 1120px) {
    .gx-container { width: min(100% - 40px, 1280px); }
    .gx-header-search { display: none; }
    .gx-grid-6,
    .gx-grid-6-cards,
    .gx-cat-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 960px) {
    .gx-nav { display: none; }
    .gx-nav.is-open {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 70px;
        left: 0;
        right: 0;
        background: var(--bg-dark-section);
        border-bottom: 1px solid rgba(255, 255, 255, 0.12);
        padding: 14px 20px;
        align-items: stretch;
        z-index: 90;
    }
    .gx-dropdown-menu { position: static; background: rgba(255, 255, 255, 0.06); border: none; box-shadow: none; }
    .gx-dropdown-menu a { color: #CBD5E1; }
    .gx-mobile-toggle { display: inline-flex; }
    .gx-section { padding: 48px 0; }
    .gx-hero-grid,
    .gx-features-grid,
    .gx-about-intro,
    .gx-about-body,
    .gx-contact-grid,
    .gx-portal-grid,
    .gx-single-hero,
    .gx-specs-grid,
    .gx-cta-banner { grid-template-columns: 1fr; }
    .gx-about-features,
    .gx-about-grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .gx-footer-grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .gx-grid-4,
    .gx-grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .game-option-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .gx-header-search { display: none; }
}

@media (max-width: 720px) {
    .gx-container { width: min(100% - 32px, 1280px); }
    .gx-section { padding: 36px 0; }
    .gx-hero-cinematic { padding: 40px 0 60px; }
    .gx-nav { display: none; }
    .gx-nav.is-open {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 70px;
        left: 0;
        right: 0;
        background: var(--bg-dark-section);
        border-bottom: 1px solid rgba(255, 255, 255, 0.12);
        padding: 14px 20px;
        align-items: stretch;
    }
    .gx-dropdown-menu { position: static; background: rgba(255, 255, 255, 0.06); border: none; box-shadow: none; }
    .gx-dropdown-menu a { color: #CBD5E1; }
    .gx-mobile-toggle { display: inline-flex; }
    .gx-grid-6,
    .gx-grid-6-cards,
    .gx-cat-grid,
    .game-option-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
    .gx-grid-4,
    .gx-grid-3,
    .gx-form-grid-2,
    .gx-about-features,
    .gx-about-grid-4 { grid-template-columns: 1fr; }
    .gx-submit-btn { padding: 7px 10px; font-size: 0.78rem; }
    .gx-progress-bar { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .gx-portal-sidebar { position: static; }
    .gx-feature-card { flex-direction: column; align-items: flex-start; }
    .gx-player-stage { min-height: 300px; }
}

@media (max-width: 480px) {
    .gx-brand { font-size: 1rem; }
    .gx-brand-logo { height: 36px; max-width: 145px; }
    .gx-header-actions { gap: 6px; }
    .gx-submit-btn { padding: 6px 9px; font-size: 0.74rem; gap: 4px; }
    .gx-submit-btn svg { width: 13px; height: 13px; }
    .gx-theme-pill { padding: 5px 7px; font-size: 0.78rem; }
    .gx-icon-btn { width: 34px; height: 34px; }
    .gx-feature-card { padding: 20px; }
    .gx-feature-thumbs { flex-wrap: wrap; max-width: 100%; }
    .gx-feature-thumbs img { width: 58px; height: 84px; }
    .gx-cta-banner { padding: 28px 20px; }
    .gx-footer-grid-4 { grid-template-columns: 1fr; }
}

@media (max-width: 359px) {
    .gx-grid-6,
    .gx-grid-6-cards,
    .gx-cat-grid,
    .game-option-grid { grid-template-columns: 1fr; }
}

/* Directory & Arcade Landing Pages */
.gx-svg-icon {
    width: 16px;
    height: 16px;
    display: block;
    flex-shrink: 0;
}

.gx-dir-hero {
    background: linear-gradient(135deg, #172231 0%, #0f1722 65%, #122923 100%);
    color: #FFFFFF;
    padding: 34px 0 44px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.gx-dir-hero .gx-breadcrumbs {
    margin-bottom: 18px;
    color: #94A3B8;
}
.gx-dir-hero .gx-breadcrumbs a { color: #CBD5E1; }
.gx-dir-hero .gx-breadcrumbs a:hover { color: var(--accent-highlight); }
.gx-dir-hero .gx-bc-current { color: #FFFFFF; }

.gx-dir-hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
    gap: 32px;
    align-items: center;
}

.gx-hero-pill {
    display: inline-block;
    padding: 5px 12px;
    border-radius: 999px;
    background: rgba(22, 163, 106, 0.18);
    border: 1px solid rgba(66, 245, 138, 0.35);
    color: #42F58A;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.gx-dir-hero h1 {
    margin: 0 0 12px;
    font-size: clamp(1.85rem, 3.2vw, 2.65rem);
    line-height: 1.15;
    color: #FFFFFF;
}

.gx-dir-hero-sub {
    margin: 0 0 20px;
    color: #CBD5E1;
    font-size: 1.04rem;
    max-width: 640px;
}

.gx-dir-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.gx-dir-stat {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--radius-md);
    padding: 18px 14px;
    text-align: center;
}

.gx-dir-stat strong {
    display: block;
    font-size: 1.55rem;
    color: #42F58A;
    line-height: 1.1;
    margin-bottom: 6px;
}

.gx-dir-stat span {
    font-size: 0.8rem;
    color: #CBD5E1;
    font-weight: 600;
}

.gx-dir-body {
    padding-top: 28px;
    padding-bottom: 24px;
}

.gx-dir-intro-box {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 22px 24px;
    margin-bottom: 36px;
    box-shadow: var(--shadow-sm);
}

.gx-dir-intro-text {
    margin: 0 0 16px;
    color: var(--text-secondary);
    font-size: 0.98rem;
}

.gx-dir-filter-bar {
    margin-bottom: 0;
}

.gx-dir-section {
    margin-bottom: 44px;
}

.gx-pill-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.gx-pill-card {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.92rem;
    color: var(--text-primary);
    box-shadow: var(--shadow-sm);
    transition: border-color 0.2s ease, transform 0.15s ease, color 0.2s ease;
}

.gx-pill-card:hover {
    border-color: var(--accent);
    color: var(--accent);
    transform: translateY(-1px);
}

.gx-pill-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 24px;
    height: 24px;
    padding: 0 7px;
    border-radius: 999px;
    background: rgba(22, 163, 106, 0.12);
    color: var(--accent);
    font-size: 0.78rem;
    font-weight: 700;
}

.gx-dir-prose-panel {
    padding: 32px;
    margin-bottom: 44px;
}

.gx-dir-prose-lead {
    margin: 0 0 18px;
    font-size: 1.45rem;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border);
}

.gx-dir-prose-panel .gx-prose h2 {
    margin-top: 26px;
    margin-bottom: 10px;
    font-size: 1.28rem;
    color: var(--text-primary);
}

.gx-dir-prose-panel .gx-prose p {
    color: var(--text-secondary);
    line-height: 1.72;
}

.gx-resource-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    margin-bottom: 0;
    padding: 22px;
}

.gx-resource-card h3 {
    margin: 0 0 8px;
    font-size: 1.08rem;
}

.gx-resource-card p {
    margin: 0 0 14px;
    color: var(--text-secondary);
    font-size: 0.92rem;
}

.gx-landing-faq {
    margin-bottom: 48px;
}

.gx-landing-faq .gx-section-title {
    margin-bottom: 18px;
}

.gx-faq-list {
    display: grid;
    gap: 12px;
}

.gx-faq-item {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    overflow: hidden;
}

.gx-faq-q {
    list-style: none;
    cursor: pointer;
    padding: 16px 20px;
    font-weight: 700;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.gx-faq-q::-webkit-details-marker { display: none; }

.gx-faq-icon {
    color: var(--accent);
    font-size: 1.25rem;
    line-height: 1;
    transition: transform 0.2s ease;
}

.gx-faq-item[open] .gx-faq-icon {
    transform: rotate(45deg);
}

.gx-faq-a {
    padding: 0 20px 18px;
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.65;
    border-top: 1px solid var(--border);
}

.gx-faq-a p { margin: 12px 0 0; }

@media (max-width: 960px) {
    .gx-dir-hero-grid { grid-template-columns: 1fr; gap: 22px; }
}

@media (max-width: 720px) {
    .gx-svg-icon {
    width: 16px;
    height: 16px;
    display: block;
    flex-shrink: 0;
}

.gx-dir-hero { padding: 26px 0 32px; }
    .gx-dir-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
    .gx-dir-stat { padding: 14px 8px; }
    .gx-dir-stat strong { font-size: 1.25rem; }
    .gx-dir-intro-box,
    .gx-dir-prose-panel { padding: 20px 16px; }
}

@media (max-width: 480px) {
    .gx-dir-stats { grid-template-columns: 1fr; }
}
