.fcc-arcade {
    background: linear-gradient(180deg, #101225 0%, #070816 100%);
    color: #f7f8ff;
    padding-bottom: 4rem;
}

/* Force light text in all theme modes (prevent light-mode bleed) */
.fcc-arcade *,
.fcc-arcade *::before,
.fcc-arcade *::after {
    color: inherit;
}

.fcc-arcade-hero {
    padding: 4rem 1rem 3rem;
    text-align: center;
    background: radial-gradient(circle at top, rgba(245, 185, 66, 0.25) 0%, transparent 60%);
}

.fcc-arcade-hero__inner {
    max-width: 760px;
    margin: 0 auto;
}

.fcc-arcade-title {
    font-size: clamp(2.5rem, 4vw, 3.2rem);
    margin: 0 0 1rem;
    letter-spacing: 0.04em;
}

.fcc-arcade-subtitle {
    margin: 0 auto 2rem;
    max-width: 540px;
    color: rgba(255, 255, 255, 0.7) !important;
}

.fcc-arcade-status {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.fcc-arcade-pill {
    background: rgba(245, 185, 66, 0.15);
    color: #f5b942 !important;
    padding: 0.55rem 1.25rem;
    border-radius: 999px;
    font-weight: 600;
}

.fcc-arcade-status--guest span {
    color: rgba(255, 255, 255, 0.7) !important;
}

.fcc-arcade-section {
    padding: 2rem 1rem;
    max-width: 1200px;
    margin: 0 auto;
}

.fcc-arcade-card {
    background: rgba(15, 18, 36, 0.75);
    border: 1px solid rgba(245, 185, 66, 0.18);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 30px 60px rgba(5, 6, 15, 0.3);
}

.fcc-arcade-card--daily .fcc-card-header h2 {
    color: #f5b942 !important;
}

.fcc-card-header h2 {
    margin: 0 0 0.5rem;
    font-size: 1.8rem;
}

.fcc-card-header p {
    margin: 0;
    color: rgba(255, 255, 255, 0.7) !important;
}

.fcc-card-body {
    margin-top: 1.5rem;
}

.fcc-login-cta .fcc-link {
    color: #f5b942 !important;
    font-weight: 600;
}

.fcc-section-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.fcc-section-header h2 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.fcc-section-header p {
    color: rgba(255, 255, 255, 0.65) !important;
}

.fcc-games-grid {
    display: grid;
    gap: 2rem;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.fcc-game-card {
    background: rgba(14, 17, 30, 0.85);
    border: 1px solid rgba(245, 185, 66, 0.15);
    border-radius: 18px;
    padding: 1.75rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    position: relative;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.fcc-game-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(8, 10, 20, 0.35);
}

.fcc-game-card__icon {
    font-size: 2.2rem;
    color: #f5b942 !important;
}

.fcc-game-card__title {
    margin: 0;
    font-size: 1.5rem;
}

.fcc-game-card__description {
    margin: 0;
    color: rgba(255, 255, 255, 0.7) !important;
}

.fcc-game-card__meta {
    list-style: none;
    padding: 0;
    margin: 0;
    color: rgba(255, 255, 255, 0.6) !important;
}

.fcc-game-card__meta li {
    display: flex;
    justify-content: space-between;
    font-size: 0.95rem;
}

.fcc-game-card__meta span {
    opacity: 0.75;
}

.fcc-game-card__actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.fcc-button {
    border-radius: 10px;
    padding: 0.65rem 1.25rem;
    font-weight: 600;
    cursor: pointer;
    border: 1px solid transparent;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.fcc-button--primary {
    background: linear-gradient(135deg, #f5b942, #f78423);
    color: #06070f !important;
    border-color: transparent;
}

.fcc-button--ghost {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(245, 185, 66, 0.25);
    color: #f7f8ff !important;
}

.fcc-button:focus,
.fcc-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(245, 185, 66, 0.25);
}

.fcc-game-card__leaders {
    margin-top: 0.5rem;
    border-top: 1px solid rgba(245, 185, 66, 0.1);
    padding-top: 0.75rem;
    display: grid;
    gap: 0.5rem;
}

.fcc-leader-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.95rem;
    font-variant-numeric: tabular-nums;
}

.fcc-leader-row.is-current {
    color: #f5b942 !important;
}

.fcc-leaderboards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
}

.fcc-leaderboard-block {
    background: rgba(14, 17, 30, 0.85);
    border-radius: 18px;
    border: 1px solid rgba(245, 185, 66, 0.15);
    padding: 1.5rem;
}

.fcc-leaderboard-block h3 {
    margin: 0 0 0.75rem;
    color: #f5b942 !important;
}

.fcc-arcade-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 2rem;
    background: rgba(14, 17, 30, 0.9);
    padding: 2.25rem;
    border-radius: 18px;
    border: 1px solid rgba(245, 185, 66, 0.18);
}

.fcc-arcade-info h3 {
    margin-top: 0;
    color: #f5b942 !important;
}

/* Leaderboard modal (shared with game page) */
.fcc-leaderboard-modal {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(4, 6, 12, 0.65);
    backdrop-filter: blur(6px);
    z-index: 9999;
}

.fcc-leaderboard-modal[hidden] {
    display: none;
}

.fcc-leaderboard-modal__dialog {
    background: #0b0d1b;
    border-radius: 18px;
    border: 1px solid rgba(245, 185, 66, 0.15);
    width: min(90vw, 520px);
    max-height: 80vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 30px 80px rgba(5, 6, 15, 0.45);
}

.fcc-leaderboard-modal__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 1.75rem;
    border-bottom: 1px solid rgba(245, 185, 66, 0.12);
}

.fcc-leaderboard-modal__close {
    background: none;
    border: none;
    color: #f5f7ff;
    font-size: 1.5rem;
    cursor: pointer;
}

.fcc-leaderboard-modal__body {
    padding: 1.5rem 1.75rem 1.75rem;
    overflow-y: auto;
    display: grid;
    gap: 0.75rem;
}





.fcc-leaderboard-row .player {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 600;
}

.fcc-leaderboard-row .score {
    font-variant-numeric: tabular-nums;
    color: #f7d76d !important;
}



@media (max-width: 768px) {
    .fcc-games-grid {
        gap: 1.5rem;
    }

    .fcc-game-card {
        padding: 1.5rem;
    }

    .fcc-leaderboards {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================================
   Chill Zone (Non-Game Experiences)
   ========================================================================== */

.fcc-arcade-section--chill {
    background: linear-gradient(180deg, rgba(124, 58, 237, 0.08) 0%, transparent 100%);
}

.fcc-chill-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.fcc-chill-card {
    background: rgba(124, 58, 237, 0.1);
    border: 1px solid rgba(124, 58, 237, 0.25);
    border-radius: 18px;
    padding: 2rem;
    text-align: center;
    transition: transform 0.2s, box-shadow 0.2s;
}

.fcc-chill-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(124, 58, 237, 0.2);
}

.fcc-chill-card__icon {
    font-size: 2.5rem;
    color: #a78bfa !important;
    margin-bottom: 1rem;
}

.fcc-chill-card h3 {
    margin: 0 0 0.5rem;
    font-size: 1.35rem;
    color: #e2e8f0 !important;
}

.fcc-chill-card p {
    color: rgba(255, 255, 255, 0.6) !important;
    margin: 0 0 1.5rem;
    font-size: 0.95rem;
    line-height: 1.5;
}

.fcc-chill-card .fcc-button {
    background: linear-gradient(135deg, #7c3aed, #5b21b6);
    color: white !important;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    display: inline-block;
    transition: box-shadow 0.2s;
}

.fcc-chill-card .fcc-button:hover {
    box-shadow: 0 4px 20px rgba(124, 58, 237, 0.4);
}