/* ═══════════════════════════════════════════════════════════
   Features CSS — New visual & UX enhancements
   ═══════════════════════════════════════════════════════════ */

/* ── Google Font loaded via index.html link ─────────────── */

/* ── Glitch Text Effect ─────────────────────────────────── */
.glitch-title {
    font-family: 'Press Start 2P', monospace;
    font-size: 1.6rem;
    letter-spacing: 1px;
    position: relative;
    display: inline-block;
    background: linear-gradient(90deg, #7c94f5, #c084fc, #f472b6, #fb923c);
    background-size: 300% 100%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShift 6s ease infinite;
}

.glitch-title::before,
.glitch-title::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: inherit;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.glitch-title::before {
    animation: glitch1 3s infinite;
    clip-path: inset(0 0 65% 0);
    left: 2px;
    text-shadow: -2px 0 #ff00ff;
}

.glitch-title::after {
    animation: glitch2 3s infinite;
    clip-path: inset(65% 0 0 0);
    left: -2px;
    text-shadow: 2px 0 #00ffff;
}

@keyframes gradientShift {
    0%   { background-position: 0% 50%; }
    50%  { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes glitch1 {
    0%, 92%, 100% { transform: none; opacity: 1; }
    93% { transform: translate(3px, -1px); opacity: 0.8; }
    94% { transform: translate(-3px, 1px); opacity: 0.8; }
    95% { transform: none; opacity: 1; }
}

@keyframes glitch2 {
    0%, 96%, 100% { transform: none; opacity: 1; }
    97% { transform: translate(-2px, 2px); opacity: 0.8; }
    98% { transform: translate(2px, -1px); opacity: 0.8; }
    99% { transform: none; opacity: 1; }
}

/* ── AI Commentary Banner ───────────────────────────────── */
.ai-commentary {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    margin-bottom: 1.25rem;
    background: var(--color-bg-tertiary, #1f1f23);
    border: 1px solid var(--color-border-secondary, #2d2d31);
    border-left: 3px solid #c084fc;
    border-radius: 10px;
    animation: fadeSlideIn 0.6s ease;
}

.ai-commentary .ai-avatar {
    font-size: 1.5rem;
    flex-shrink: 0;
    animation: robotBob 3s ease-in-out infinite;
}

.ai-commentary .ai-message {
    font-size: 0.85rem;
    color: var(--color-text-secondary, #c5c7ca);
    line-height: 1.4;
    font-style: italic;
    margin: 0;
    transition: opacity 0.3s ease;
}

@keyframes robotBob {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-3px); }
}

/* ── Stats Bar ──────────────────────────────────────────── */
.stats-bar {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    padding: 0.6rem 0;
    margin-bottom: 1rem;
    font-size: 0.78rem;
    color: var(--color-text-tertiary, #8b8d91);
}

.stats-bar .stat-item {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.3rem 0.65rem;
    background: var(--color-bg-tertiary, #1f1f23);
    border: 1px solid var(--color-border-primary, #26262b);
    border-radius: 20px;
    white-space: nowrap;
}

.stats-bar .stat-item .stat-value {
    font-weight: 700;
    color: var(--color-text-primary, #f1f3f5);
}

/* ── Daily Challenge Banner ─────────────────────────────── */
.daily-challenge {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.25rem;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, rgba(124, 148, 245, 0.12), rgba(192, 132, 252, 0.10));
    border: 1px solid rgba(124, 148, 245, 0.25);
    border-radius: 14px;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    animation: fadeSlideIn 0.7s ease;
}

.daily-challenge:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px -4px rgba(124, 148, 245, 0.25);
}

.daily-badge {
    font-family: 'Press Start 2P', monospace;
    font-size: 0.5rem;
    padding: 0.3rem 0.6rem;
    background: linear-gradient(135deg, #f59e0b, #f97316);
    color: #000;
    border-radius: 6px;
    white-space: nowrap;
    letter-spacing: 0.5px;
    font-weight: 700;
    flex-shrink: 0;
}

.daily-content {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex: 1;
    min-width: 0;
}

.daily-content .daily-icon {
    font-size: 2rem;
    flex-shrink: 0;
}

.daily-content h3 {
    font-size: 0.95rem;
    color: var(--color-text-primary, #f1f3f5);
    margin: 0 0 0.15rem 0;
    font-weight: 600;
}

.daily-content p {
    font-size: 0.78rem;
    color: var(--color-text-secondary, #c5c7ca);
    margin: 0;
}

.daily-arrow {
    font-size: 1.2rem;
    color: var(--color-text-tertiary, #8b8d91);
    flex-shrink: 0;
}

/* ── Recently Played Section ────────────────────────────── */
.recently-played-section {
    margin-bottom: 1.75rem;
    animation: fadeSlideIn 0.8s ease;
}

.section-heading {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--color-text-primary, #f1f3f5);
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.recently-played-row {
    display: flex;
    gap: 0.75rem;
    overflow-x: auto;
    padding-bottom: 0.5rem;
    scrollbar-width: thin;
    scrollbar-color: var(--color-border-secondary, #2d2d31) transparent;
    -webkit-overflow-scrolling: touch;
}

.recently-played-row::-webkit-scrollbar {
    height: 4px;
}

.recently-played-row::-webkit-scrollbar-thumb {
    background: var(--color-border-secondary, #2d2d31);
    border-radius: 4px;
}

.recent-card {
    flex: 0 0 auto;
    width: 120px;
    padding: 0.75rem;
    background: var(--color-card-bg, #1f1f23);
    border: 1px solid var(--color-card-border, #26262b);
    border-radius: 10px;
    text-align: center;
    cursor: pointer;
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.recent-card:hover {
    transform: translateY(-2px);
    border-color: var(--color-border-focus, #7c94f5);
}

.recent-card .recent-icon {
    font-size: 1.6rem;
    margin-bottom: 0.3rem;
}

.recent-card .recent-name {
    font-size: 0.7rem;
    color: var(--color-text-secondary, #c5c7ca);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ── Featured Game Banner (daily-challenge style) ──────── */
.featured-challenge {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.25rem;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.12), rgba(234, 88, 12, 0.08));
    border: 1px solid rgba(251, 191, 36, 0.25);
    border-radius: 14px;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    animation: fadeSlideIn 0.7s ease;
}

.featured-challenge:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px -4px rgba(251, 191, 36, 0.25);
}

.featured-badge {
    font-family: 'Press Start 2P', monospace;
    font-size: 0.5rem;
    padding: 0.3rem 0.6rem;
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    color: #000;
    border-radius: 6px;
    white-space: nowrap;
    letter-spacing: 0.5px;
    font-weight: 700;
    flex-shrink: 0;
}

.featured-content {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex: 1;
    min-width: 0;
}

.featured-content .featured-icon {
    font-size: 2rem;
    flex-shrink: 0;
}

.featured-content h3 {
    font-size: 0.95rem;
    color: var(--color-text-primary, #f1f3f5);
    margin: 0 0 0.15rem 0;
    font-weight: 600;
}

.featured-content p {
    font-size: 0.78rem;
    color: var(--color-text-secondary, #c5c7ca);
    margin: 0;
}

.featured-arrow {
    font-size: 1.2rem;
    color: var(--color-text-tertiary, #8b8d91);
    flex-shrink: 0;
}

@media (max-width: 600px) {
    .featured-challenge {
        padding: 0.75rem 1rem;
        gap: 0.7rem;
    }

    .featured-badge {
        font-size: 0.42rem;
        padding: 0.2rem 0.45rem;
    }

    .featured-content .featured-icon {
        font-size: 1.6rem;
    }
}

/* ── Featured AI Twist Section ──────────────────────────── */
.featured-ai-section {
    margin-bottom: 2rem;
    padding: 1.25rem;
    background: linear-gradient(135deg, rgba(192, 132, 252, 0.06), rgba(244, 114, 182, 0.04));
    border: 1px solid rgba(192, 132, 252, 0.18);
    border-radius: 16px;
    position: relative;
    overflow: hidden;
    animation: fadeSlideIn 0.85s ease;
}

.featured-ai-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: repeating-linear-gradient(
        45deg,
        transparent,
        transparent 10px,
        rgba(192, 132, 252, 0.02) 10px,
        rgba(192, 132, 252, 0.02) 20px
    );
    pointer-events: none;
}

.featured-ai-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
    position: relative;
}

.featured-ai-header h2 {
    font-family: 'Press Start 2P', monospace;
    font-size: 0.75rem;
    color: #c084fc;
    letter-spacing: 1px;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.featured-ai-header p {
    font-size: 0.75rem;
    color: var(--color-text-tertiary, #8b8d91);
    margin: 0;
    font-style: italic;
}

.featured-ai-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 0.75rem;
    position: relative;
}

.featured-ai-grid .game-card {
    border-color: rgba(192, 132, 252, 0.2);
    position: relative;
}

.featured-ai-grid .game-card::after {
    content: '🤖 AI';
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    font-size: 0.55rem;
    padding: 0.15rem 0.4rem;
    background: rgba(192, 132, 252, 0.2);
    border: 1px solid rgba(192, 132, 252, 0.3);
    border-radius: 4px;
    color: #c084fc;
    font-weight: 600;
}

.featured-ai-grid .game-card:hover {
    border-color: #c084fc;
    box-shadow: 0 0 20px -4px rgba(192, 132, 252, 0.3);
}

/* ── Category Filter Chips ──────────────────────────────── */
.category-filters {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 1.25rem;
    padding: 0.5rem 0;
    animation: fadeSlideIn 0.9s ease;
}

.category-chip {
    padding: 0.4rem 0.85rem;
    font-size: 0.75rem;
    font-weight: 600;
    border: 1px solid var(--color-border-primary, #26262b);
    background: var(--color-bg-tertiary, #1f1f23);
    color: var(--color-text-secondary, #c5c7ca);
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 0.3rem;
    white-space: nowrap;
    user-select: none;
}

.category-chip:hover {
    border-color: var(--color-border-focus, #7c94f5);
    color: var(--color-text-primary, #f1f3f5);
    transform: translateY(-1px);
}

.category-chip.active {
    background: linear-gradient(135deg, #7c94f5, #8e68b8);
    color: #fff;
    border-color: transparent;
    box-shadow: 0 2px 10px -2px rgba(124, 148, 245, 0.4);
}

.category-chip .chip-count {
    font-size: 0.6rem;
    padding: 0.1rem 0.35rem;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 10px;
    min-width: 1.2rem;
    text-align: center;
}

.category-chip.active .chip-count {
    background: rgba(255, 255, 255, 0.25);
}

/* ── Game Cards Enhanced ────────────────────────────────── */
.home-page .game-card {
    position: relative;
    overflow: hidden;
}

/* AI Twist badge on card */
.game-card .ai-badge {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    font-size: 0.55rem;
    padding: 0.15rem 0.4rem;
    background: rgba(192, 132, 252, 0.2);
    border: 1px solid rgba(192, 132, 252, 0.3);
    border-radius: 4px;
    color: #c084fc;
    font-weight: 700;
    letter-spacing: 0.3px;
    z-index: 1;
}

/* Daily challenge badge on card */
.game-card .card-daily-badge {
    position: absolute;
    top: 0.5rem;
    left: 0.5rem;
    font-size: 0.5rem;
    font-family: 'Press Start 2P', monospace;
    padding: 0.15rem 0.4rem;
    background: linear-gradient(135deg, #f59e0b, #f97316);
    color: #000;
    border-radius: 4px;
    font-weight: 700;
    z-index: 1;
}

/* Top score badge */
.game-card .top-score-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.2rem;
    margin-top: 0.4rem;
    padding: 0.15rem 0.45rem;
    font-size: 0.65rem;
    font-weight: 700;
    background: rgba(251, 191, 36, 0.12);
    border: 1px solid rgba(251, 191, 36, 0.2);
    border-radius: 10px;
    color: #fbbf24;
}

/* AI Twist card glow */
.game-card[data-ai-twist="true"] {
    border-color: rgba(192, 132, 252, 0.15);
}

.game-card[data-ai-twist="true"]:hover {
    border-color: rgba(192, 132, 252, 0.4);
    box-shadow: 0 4px 20px -4px rgba(192, 132, 252, 0.2);
}

/* ── Staggered Card Animation ───────────────────────────── */
.game-card.stagger {
    animation: staggerIn 0.35s cubic-bezier(0.22, 0.61, 0.36, 1) both;
    animation-delay: calc(var(--i, 0) * 40ms);
}

@keyframes staggerIn {
    from {
        opacity: 0;
        transform: translateY(12px) scale(0.97);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes fadeSlideIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ── Page Transitions ───────────────────────────────────── */
.page-enter {
    animation: pageIn 0.35s ease;
}

@keyframes pageIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ── Toast Notifications ────────────────────────────────── */
#toast-container {
    position: fixed;
    bottom: 1.5rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column-reverse;
    align-items: center;
    gap: 0.5rem;
    z-index: 9999;
    pointer-events: none;
}

.toast-notification {
    padding: 0.7rem 1.2rem;
    background: var(--color-bg-elevated, #26262b);
    border: 1px solid var(--color-border-secondary, #2d2d31);
    border-radius: 10px;
    color: var(--color-text-primary, #f1f3f5);
    font-size: 0.8rem;
    font-weight: 500;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
    opacity: 0;
    transform: translateY(10px) scale(0.95);
    transition: opacity 0.3s ease, transform 0.3s ease;
    pointer-events: auto;
    white-space: nowrap;
    max-width: 90vw;
    text-align: center;
}

.toast-notification.show {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.toast-notification.achievement-toast {
    border-left: 3px solid #fbbf24;
    background: linear-gradient(135deg, var(--color-bg-elevated, #26262b), rgba(251, 191, 36, 0.08));
}

/* ── Achievements Section ───────────────────────────────── */
.achievements-section {
    margin-top: 2.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--color-border-primary, #26262b);
    animation: fadeSlideIn 1s ease;
}

.achievements-section h2 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--color-text-primary, #f1f3f5);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.achievements-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 0.6rem;
}

.achievement-badge {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.65rem 0.85rem;
    background: var(--color-bg-tertiary, #1f1f23);
    border: 1px solid var(--color-border-primary, #26262b);
    border-radius: 10px;
    transition: all 0.2s ease;
}

.achievement-badge.locked {
    opacity: 0.4;
    filter: grayscale(0.6);
}

.achievement-badge.unlocked {
    border-color: rgba(251, 191, 36, 0.25);
    background: linear-gradient(135deg, var(--color-bg-tertiary, #1f1f23), rgba(251, 191, 36, 0.05));
}

.achievement-badge .ach-icon {
    font-size: 1.4rem;
    flex-shrink: 0;
}

.achievement-badge .ach-info {
    min-width: 0;
}

.achievement-badge .ach-name {
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--color-text-primary, #f1f3f5);
    margin-bottom: 0.1rem;
}

.achievement-badge .ach-desc {
    font-size: 0.65rem;
    color: var(--color-text-tertiary, #8b8d91);
}

/* ── Share Button ───────────────────────────────────────── */
.share-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.35rem 0.7rem;
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--color-text-secondary, #c5c7ca);
    background: var(--color-bg-tertiary, #1f1f23);
    border: 1px solid var(--color-border-primary, #26262b);
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.share-btn:hover {
    color: var(--color-text-primary, #f1f3f5);
    border-color: var(--color-border-focus, #7c94f5);
    background: var(--color-bg-elevated, #26262b);
}

/* ── Sound Toggle ───────────────────────────────────────── */
#sound-toggle {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.35rem 0.6rem;
    background: var(--color-bg-elevated, #26262b);
    border: 1px solid var(--color-border-primary, #26262b);
    border-radius: 6px;
    color: var(--color-text-secondary, #c5c7ca);
    cursor: pointer;
    font-size: 0.85rem;
    transition: all 0.2s ease;
}

#sound-toggle:hover {
    border-color: var(--color-border-focus, #7c94f5);
    color: var(--color-text-primary, #f1f3f5);
}

/* ── Cosmetic Theme Classes ─────────────────────────────── */
/* Neon */
.cosmetic-neon .game-card {
    border-color: rgba(0, 255, 200, 0.2);
    box-shadow: 0 0 8px -2px rgba(0, 255, 200, 0.1);
}
.cosmetic-neon .game-card:hover {
    border-color: rgba(0, 255, 200, 0.5);
    box-shadow: 0 0 20px -4px rgba(0, 255, 200, 0.3);
}

/* Retro */
.cosmetic-retro .game-card {
    border-radius: 4px;
    border: 2px solid var(--color-border-primary, #26262b);
    box-shadow: 3px 3px 0 var(--color-border-primary, #26262b);
}
.cosmetic-retro .game-card:hover {
    box-shadow: 4px 4px 0 var(--color-primary, #7c94f5);
}

/* Gold */
.cosmetic-gold .game-card {
    border-color: rgba(251, 191, 36, 0.2);
}
.cosmetic-gold .game-card:hover {
    border-color: rgba(251, 191, 36, 0.5);
    box-shadow: 0 4px 20px -4px rgba(251, 191, 36, 0.2);
}

/* Glitch */
.cosmetic-glitch .game-card {
    animation: cardGlitch 8s infinite;
}
@keyframes cardGlitch {
    0%, 97%, 100% { transform: none; }
    97.5% { transform: translate(2px, -1px); }
    98% { transform: translate(-1px, 1px); }
    98.5% { transform: none; }
}

/* Rainbow */
.cosmetic-rainbow .game-card {
    border-image: linear-gradient(135deg, #f43f5e, #f59e0b, #22c55e, #3b82f6, #a855f7) 1;
}
.cosmetic-rainbow .game-card:hover {
    box-shadow: 0 4px 20px -4px rgba(168, 85, 247, 0.25);
}

/* ── Cosmetics Selector Panel ───────────────────────────── */
.cosmetics-section {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--color-border-primary, #26262b);
}

.cosmetics-section h2 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--color-text-primary, #f1f3f5);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.cosmetics-grid {
    display: flex;
    gap: 0.6rem;
    flex-wrap: wrap;
}

.cosmetic-option {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.55rem 0.85rem;
    background: var(--color-bg-tertiary, #1f1f23);
    border: 1px solid var(--color-border-primary, #26262b);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.75rem;
    color: var(--color-text-secondary, #c5c7ca);
}

.cosmetic-option:hover {
    border-color: var(--color-border-focus, #7c94f5);
}

.cosmetic-option.active {
    border-color: #7c94f5;
    background: rgba(124, 148, 245, 0.1);
    color: var(--color-text-primary, #f1f3f5);
}

.cosmetic-option.locked {
    opacity: 0.35;
    cursor: not-allowed;
}

.cosmetic-option .cos-icon {
    font-size: 1.1rem;
}

.cosmetic-option .cos-name {
    font-weight: 600;
}

/* ── Search / Filter Bar ────────────────────────────────── */
.search-bar {
    position: relative;
    margin-bottom: 0.75rem;
}

.search-bar input {
    width: 100%;
    padding: 0.6rem 1rem 0.6rem 2.4rem;
    background: var(--color-bg-tertiary, #1f1f23);
    border: 1px solid var(--color-border-primary, #26262b);
    border-radius: 10px;
    color: var(--color-text-primary, #f1f3f5);
    font-size: 0.85rem;
    outline: none;
    transition: border-color 0.2s ease;
}

.search-bar input::placeholder {
    color: var(--color-text-tertiary, #8b8d91);
}

.search-bar input:focus {
    border-color: var(--color-border-focus, #7c94f5);
}

.search-bar .search-icon {
    position: absolute;
    left: 0.85rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.85rem;
    color: var(--color-text-tertiary, #8b8d91);
    pointer-events: none;
}

/* ── Responsive Adjustments ─────────────────────────────── */
@media (max-width: 600px) {
    .glitch-title {
        font-size: 1rem;
    }

    .ai-commentary {
        padding: 0.6rem 0.75rem;
    }
    
    .ai-commentary .ai-message {
        font-size: 0.75rem;
    }

    .daily-challenge {
        padding: 0.75rem 1rem;
        gap: 0.75rem;
    }
    
    .daily-badge {
        font-size: 0.4rem;
    }
    
    .daily-content .daily-icon {
        font-size: 1.5rem;
    }

    .category-filters {
        gap: 0.35rem;
    }
    
    .category-chip {
        padding: 0.35rem 0.7rem;
        font-size: 0.68rem;
    }

    .featured-ai-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.5rem;
    }

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

    .stats-bar {
        gap: 0.5rem;
        font-size: 0.7rem;
    }

    .recently-played-row {
        gap: 0.5rem;
    }

    .recent-card {
        width: 100px;
        padding: 0.5rem;
    }
}

/* ── Reduced Motion ─────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
    .glitch-title::before,
    .glitch-title::after {
        animation: none;
    }
    .game-card.stagger {
        animation: none;
        opacity: 1;
    }
    .ai-commentary .ai-avatar {
        animation: none;
    }
    .cosmetic-glitch .game-card {
        animation: none;
    }
}
