/* ============================================================
   KIDS LEARNING GAMES - Libryzo E Library
   Luxury Cosmic Gold & Crimson Theme (Matching Home Page)
   ============================================================ */

.kids-games-section,
.kids-games {
    position: relative;
    padding: var(--section-padding, 100px 0);
    background: transparent;
    overflow: hidden;
}

.kids-games-bg-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    pointer-events: none;
    z-index: 0;
    opacity: 0.35;
}

.kids-games-glow-1 {
    width: 480px;
    height: 480px;
    background: radial-gradient(circle, rgba(139, 0, 0, 0.45) 0%, transparent 70%);
    top: 5%;
    left: -120px;
}

.kids-games-glow-2 {
    width: 420px;
    height: 420px;
    background: radial-gradient(circle, rgba(212, 168, 83, 0.3) 0%, transparent 70%);
    bottom: 5%;
    right: -100px;
}

.games-intro {
    color: rgba(255, 255, 255, 0.72);
    font-size: 1.1rem;
    max-width: 680px;
    margin: 15px auto 40px;
    line-height: 1.8;
}

.games-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 32px;
    position: relative;
    z-index: 1;
}

/* --- Game Card --- */
.learning-game {
    position: relative;
    overflow: hidden;
    background: var(--glass-bg, rgba(15, 15, 30, 0.6));
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border: 1px solid var(--glass-border, rgba(255, 255, 255, 0.12));
    border-radius: var(--radius-lg, 24px);
    box-shadow: 0 16px 45px rgba(0, 0, 0, 0.45);
    display: flex;
    flex-direction: column;
    transition: var(--transition-smooth, all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94));
}

.learning-game:hover {
    transform: translateY(-8px);
    border-color: rgba(240, 215, 140, 0.4);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.6), 0 0 35px rgba(255, 45, 45, 0.22);
}

.game-badge {
    position: absolute;
    top: 18px;
    right: 18px;
    z-index: 3;
    padding: 6px 14px;
    font-family: var(--font-raleway, sans-serif);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--color-gold-light, #f0d78c);
    background: rgba(0, 0, 0, 0.65);
    border: 1px solid rgba(240, 215, 140, 0.3);
    border-radius: 30px;
    backdrop-filter: blur(10px);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

/* --- Game Art --- */
.game-art {
    min-height: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    background: radial-gradient(ellipse at center, rgba(139, 0, 0, 0.4) 0%, rgba(10, 10, 18, 0.8) 75%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    position: relative;
    overflow: hidden;
}

.game-art-glow {
    position: absolute;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 45, 45, 0.35) 0%, transparent 70%);
    pointer-events: none;
    animation: gameOrbPulse 4s ease-in-out infinite alternate;
}

@keyframes gameOrbPulse {
    0% { transform: scale(0.9); opacity: 0.5; }
    100% { transform: scale(1.2); opacity: 0.9; }
}

.game-art span {
    display: grid;
    place-items: center;
    width: 68px;
    height: 68px;
    font-family: var(--font-cinzel, serif);
    font-size: 32px;
    font-weight: 900;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.5);
    position: relative;
    z-index: 2;
    transition: transform 0.3s ease;
}

.learning-game:hover .game-art span {
    transform: translateY(-4px) scale(1.05);
}

.word-art span {
    border-radius: 14px;
    background: linear-gradient(135deg, #a01515, #5c0818);
    border-color: rgba(255, 90, 110, 0.5);
    box-shadow: 0 10px 25px rgba(160, 21, 21, 0.5);
    transform: rotate(-6deg);
}

.word-art span:nth-child(even) {
    transform: rotate(6deg);
    background: linear-gradient(135deg, #7a0e20, #3d0510);
    border-color: rgba(240, 215, 140, 0.4);
}

.bubble-art span {
    border-radius: 50%;
    background: radial-gradient(circle at 32% 28%, #ffb4c2, #d61c42 45%, #63051b 88%);
    border-color: rgba(255, 255, 255, 0.5);
    box-shadow: 0 12px 30px rgba(214, 28, 66, 0.45);
}

.bubble-art span:nth-child(2) {
    width: 86px;
    height: 86px;
    font-size: 38px;
    transform: translateY(-16px);
}

/* --- Game Copy --- */
.game-copy {
    padding: 32px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.game-tag {
    font-family: var(--font-raleway, sans-serif);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--color-gold-light, #f0d78c);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
}

.game-copy h3 {
    font-family: var(--font-playfair, serif);
    color: #fff;
    font-size: 1.85rem;
    font-weight: 700;
    margin: 6px 0 12px;
    letter-spacing: -0.5px;
}

.game-copy p {
    color: rgba(255, 255, 255, 0.72);
    font-size: 1rem;
    line-height: 1.8;
    margin-bottom: 20px;
    flex: 1;
}

.game-meta {
    display: flex;
    gap: 16px;
    align-items: center;
    margin-bottom: 24px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.game-meta span {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.game-meta span i {
    color: var(--color-gold-light, #f0d78c);
}

.game-play-btn,
.game-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    margin-top: auto;
    padding: 14px 26px;
    font-family: var(--font-raleway, sans-serif);
    font-weight: 700;
    font-size: 0.95rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    text-decoration: none !important;
}

/* --- Kids Standalone Page Extras --- */
.kids-hero-section {
    position: relative;
    min-height: 85vh;
    display: flex;
    align-items: center;
    padding: 150px 0 90px;
    overflow: hidden;
}

.kids-features-section {
    padding: var(--section-padding, 100px 0);
    position: relative;
}

@media (max-width: 991px) {
    .games-grid {
        grid-template-columns: 1fr;
        max-width: 580px;
        margin-left: auto;
        margin-right: auto;
    }
    
    .game-art {
        min-height: 180px;
    }
}

@media (max-width: 640px) {
    .kids-games-section,
    .kids-games {
        padding: 60px 0;
    }
    
    .game-copy {
        padding: 24px;
    }
    
    .game-copy h3 {
        font-size: 1.5rem;
    }
    
    .game-art span {
        width: 54px;
        height: 54px;
        font-size: 26px;
    }
    
    .bubble-art span:nth-child(2) {
        width: 68px;
        height: 68px;
        font-size: 30px;
        transform: translateY(-8px);
    }
}
