[data-theme="dark"] .az-group-header {
    color: var(--gold);
}

/* Inline CTA (within content) */
.inline-cta {
    background: var(--parchment-dark);
    border: 1px solid var(--card-separator);
    border-left: 4px solid var(--accent);
    border-radius: var(--r-md);
    padding: var(--sp-lg) var(--sp-xl);
    margin: var(--sp-xl) 0;
    display: flex;
    align-items: center;
    gap: var(--sp-lg);
}

.inline-cta-text {
    flex: 1;
    font-size: 0.95rem;
    color: var(--text-dark);
}

.inline-cta-text strong {
    display: block;
    font-family: var(--font-display);
    font-weight: 700;
    margin-bottom: var(--sp-xxs);
}

.inline-cta .cta-button {
    padding: var(--sp-sm) var(--sp-xl);
    font-size: 0.85rem;
    white-space: nowrap;
}

/* ==========================================================================
   A-Z Index
   ========================================================================== */
.az-index {
    margin-bottom: var(--sp-xxl);
}

.az-group {
    margin-bottom: var(--sp-xl);
}

.az-group-header {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 1.5rem;
    color: var(--accent);
    border-bottom: 2px solid var(--card-separator);
    padding-bottom: var(--sp-sm);
    margin-bottom: var(--sp-md);
}

.az-game-list {
    list-style: none;
    columns: 2;
    column-gap: var(--sp-xxl);
}

.az-game-item {
    break-inside: avoid;
    margin-bottom: var(--sp-sm);
}

.az-game-link {
    display: inline-flex;
    align-items: baseline;
    gap: var(--sp-sm);
    color: var(--text-dark);
    font-size: 0.95rem;
    transition: color 0.15s;
}

.az-game-link:hover {
    color: var(--accent);
}

.az-game-players {
    font-size: 12px;
    color: var(--text-secondary);
}
@media (max-width: 900px) {
    /* The header already pads its top. */
    .listing-header .breadcrumbs {
        padding-top: 0;
    }
}

@media (max-width: 768px) {

    .az-game-list {
        columns: 1;
    }

    .inline-cta {
        flex-direction: column;
        text-align: center;
    }
}

/* Decorative icon stamp on the hero */
.browse-hero-stamp {
    position: relative;
    width: clamp(120px, 13vw, 168px);
    aspect-ratio: 1;
    display: grid;
    place-items: center;
    flex-shrink: 0;
    --stamp-color: var(--gold-light);
}
.browse-hero-stamp.diff-easy {
    --stamp-color: #8fbe7e;
}
.browse-hero-stamp.diff-medium {
    --stamp-color: var(--gold-light);
}
.browse-hero-stamp.diff-hard {
    --stamp-color: #e08c7e;
}
.browse-hero-stamp::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 2px solid var(--gold);
    background:
        radial-gradient(
            circle at 30% 30%,
            rgba(228, 204, 122, 0.14),
            transparent 60%
        ),
        rgba(15, 45, 30, 0.4);
    box-shadow:
        inset 0 0 0 1px rgba(228, 204, 122, 0.4),
        inset 0 0 24px rgba(228, 204, 122, 0.18),
        0 8px 32px rgba(0, 0, 0, 0.4);
}
.browse-hero-stamp-inner {
    position: relative;
    z-index: 1;
    width: 50%;
    height: 50%;
    color: var(--stamp-color);
    display: grid;
    place-items: center;
}
.browse-hero-stamp-inner svg {
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.3));
}

/* Filter rail along the bottom of the hero */
.browse-filter-rail {
    margin-top: 24px;
    padding: 16px 20px;
    background: rgba(245, 236, 216, 0.04);
    border: 1px solid rgba(245, 236, 216, 0.1);
    border-radius: var(--r-xl);
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 12px 24px;
    align-items: center;
}
@media (max-width: 720px) {
    .browse-filter-rail {
        grid-template-columns: 1fr;
        gap: 10px;
    }
}

.browse-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}
.browse-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 14px 7px 9px;
    background: rgba(245, 236, 216, 0.05);
    border: 1px solid rgba(245, 236, 216, 0.12);
    border-radius: 999px;
    color: rgba(245, 236, 216, 0.85);
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    white-space: nowrap;
    transition: all 0.15s var(--ease-out-expo);
}
.browse-pill:hover {
    background: rgba(228, 204, 122, 0.12);
    border-color: var(--gold);
    color: var(--gold-light);
    transform: translateY(-1px);
}
.browse-pill.active {
    background: var(--gold);
    border-color: var(--gold);
    color: var(--ink-900);
    font-weight: 700;
    box-shadow: 0 4px 12px var(--gold-glow);
}
.browse-pill-icon {
    width: 22px;
    height: 22px;
    display: inline-grid;
    place-items: center;
    background: rgba(228, 204, 122, 0.18);
    border-radius: 50%;
    color: var(--gold-light);
    flex-shrink: 0;
}
.browse-pill-icon svg {
    width: 13px;
    height: 13px;
}
.browse-pill.active .browse-pill-icon {
    background: rgba(26, 21, 16, 0.18);
    color: var(--ink-900);
}

/* ==========================================================================
   Listicles + Regions index pages (/lists/ and /region/)
   ========================================================================== */
.lists-index-body {
    padding: clamp(32px, 4vw, 56px) 0 clamp(56px, 7vw, 96px);
}

/* Region cards: flag emoji watermark instead of the suit decoration */
.region-flag-deco {
    position: absolute;
    top: 14px;
    right: 14px;
    z-index: 2;
    font-size: 36px;
    line-height: 1;
    filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.4));
    pointer-events: none;
}
/* Region rank pill: number first, then small label (e.g. "8 games").
   Desktop only — on phones the compact .home-list-rank sizing applies. */
@media (min-width: 769px) {
    .region-card .home-list-rank {
        padding: 8px 14px 8px 12px;
    }
    .region-card .home-list-rank .r-num {
        font-size: 16px;
    }
    .region-card .home-list-rank .r-tag {
        letter-spacing: 0.16em;
    }
}
/* Region hub header: same hit-area treatment on small screens, the 44px line
   box on larger ones where the space isn't missed. */
@media (pointer: coarse) and (max-width: 900px) {
    .listing-header .breadcrumbs a {
        position: relative;
    }
    .listing-header .breadcrumbs a::after {
        content: "";
        position: absolute;
        inset: calc((100% - 44px) / 2) 0;
    }
}
@media (pointer: coarse) and (min-width: 901px) {
    .listing-header .breadcrumbs a {
        display: inline-flex;
        align-items: center;
        min-height: 44px;
    }
}

/* Touch targets on list pages */
@media (pointer: coarse) {
    .az-game-link {
        display: inline-flex;
        align-items: center;
        min-height: 44px;
    }
    .az-game-item {
        padding-block: 0;
    }
}
