:root {
    /* ... your other vars ... */
     --bg-main: radial-gradient(circle at top left, #020617 0%, #020617 25%, #061338 60%, #030712 100%);
    --accent-pink: #ff6ac1;
    --accent-blue: #38bdf8;
    --accent-purple: #a855f7;
    --accent-gold: #fbbf24;
    --accent-orange: #fb923c;
    --glass-bg: rgba(15, 23, 42, 0.85);
    --glass-border: rgba(148, 163, 184, 0.5);
    --text-main: #e5e7eb;
    --text-muted: #9ca3af;
    --danger: #f97373;
    --success: #4ade80;
    --shadow-soft: 0 20px 40px rgba(0, 0, 0, 0.9);

    /* Softer, kid-friendly galaxy with pinks & purples */
    --bg-main:
        radial-gradient(circle at 0% 0%, rgba(255, 183, 197, 0.55) 0, transparent 55%),
        radial-gradient(circle at 100% 100%, rgba(167, 139, 250, 0.45) 0, transparent 50%),
        radial-gradient(circle at 50% 0%, rgba(244, 114, 182, 0.35) 0, transparent 60%),
        #050816;
}


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

body {
    margin: 0;
    min-height: 100vh;
    font-family: "Poppins", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: var(--text-soft);
    background:
        radial-gradient(circle at 0% 0%, rgba(96,165,250,0.35) 0, transparent 55%),
        radial-gradient(circle at 100% 100%, rgba(244,114,182,0.35) 0, transparent 55%),
        radial-gradient(circle at 50% 20%, rgba(129,140,248,0.28) 0, transparent 55%),
        #020617;
    background-attachment: fixed;
    overflow-x: hidden;
}

/* Decorative emoji sky (non-interactive) */
body::before {
    content: "🎈 🧸 🎁 🪐 ⭐ 🚀 🪀";
    position: fixed;
    inset: 0;
    pointer-events: none;
    display:flex;
    align-items:flex-start;
    justify-content:space-around;
    font-size:3.4rem;
    opacity:0.18;
    letter-spacing:1.5rem;
    padding-top:1.5rem;
    z-index:-1;
}


/* Background decorative layers */
.stars-bg {
    position: fixed;
    inset: 0;
    background-image:
        radial-gradient(1px 1px at 10% 20%, rgba(248, 250, 252, 0.8), transparent),
        radial-gradient(2px 2px at 80% 40%, rgba(248, 250, 252, 0.6), transparent),
        radial-gradient(1.5px 1.5px at 40% 80%, rgba(248, 250, 252, 0.5), transparent),
        radial-gradient(1px 1px at 60% 10%, rgba(248, 250, 252, 0.6), transparent);
    opacity: 0.7;
    pointer-events: none;
    z-index: -4;
}

/* Base floating layer */
.floating-layer {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: -3;
    background-repeat: no-repeat;
    background-size: 90px 90px;
    opacity: 0.22;
}

/* Soft animal background */
.floating-animals {
    background-image:
        url("https://cdn.jsdelivr.net/gh/twitter/twemoji@14.0.2/assets/72x72/1f436.png"), /* dog */
        url("https://cdn.jsdelivr.net/gh/twitter/twemoji@14.0.2/assets/72x72/1f431.png"), /* cat */
        url("https://cdn.jsdelivr.net/gh/twitter/twemoji@14.0.2/assets/72x72/1f43b.png"), /* bear */
        url("https://cdn.jsdelivr.net/gh/twitter/twemoji@14.0.2/assets/72x72/1f430.png"); /* bunny */
    background-position:
        8% 15%,
        90% 25%,
        15% 80%,
        80% 85%;
    animation: floatAnimals 18s ease-in-out infinite alternate;
    opacity: 0.18;
}

@keyframes floatAnimals {
    from { transform: translate3d(0, 0, 0); }
    to   { transform: translate3d(0, -26px, 0); }
}


/*.floating-balloons {
/*    background-image:
/*        url("https://cdn.jsdelivr.net/gh/twitter/twemoji@14.0.2/assets/72x72/1f388.png"),
/*        url("https://cdn.jsdelivr.net/gh/twitter/twemoji@14.0.2/assets/72x72/1f381.png");
/*    background-position: 10% 90%, 90% 15%;
/*}

.floating-toys {
    background-image:
        url("https://cdn.jsdelivr.net/gh/twitter/twemoji@14.0.2/assets/72x72/1f52e.png"),
        url("https://cdn.jsdelivr.net/gh/twitter/twemoji@14.0.2/assets/72x72/1f3ae.png"),
        url("https://cdn.jsdelivr.net/gh/twitter/twemoji@14.0.2/assets/72x72/1f680.png");
    background-position: 5% 10%, 75% 75%, 50% 20%;
}*/

/* Interactive draggable balloons layer */
/* .interactive-balloons {
/*    position: fixed;
/*    inset: 0;
/*    z-index: -1;
}

.drag-balloon {
    position: absolute;
    width: 70px;
    height: 90px;
    border-radius: 50px 50px 45px 45px;
    background: radial-gradient(circle at 30% 20%, rgba(248, 250, 252, 0.9), transparent 55%),
                radial-gradient(circle at 70% 80%, rgba(236, 72, 153, 0.6), rgba(56, 189, 248, 0.9));
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.9);
    border: 1px solid rgba(248, 250, 252, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    cursor: grab;
    user-select: none;
}

.drag-balloon::after {
    content: "";
    position: absolute;
    bottom: -22px;
    width: 2px;
    height: 30px;
    background: linear-gradient(to bottom, rgba(248, 250, 252, 0.8), transparent);
}

/* Layout */
.container {
    width: min(1200px, 100% - 2.5rem);
    margin: 0 auto;
}

.main-header {
    position: sticky;
    top: 0.75rem;
    z-index: 20;
    margin-block: 0.75rem 1.5rem;
    border-radius: 999px;
    padding: 0.35rem 0.85rem;
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    box-shadow: 0 18px 40px rgba(0,0,0,0.95);
}

.glassy {
    background: radial-gradient(circle at top left, rgba(56, 189, 248, 0.2), rgba(15, 23, 42, 0.95));
    border: 1px solid rgba(148, 163, 184, 0.45);
    backdrop-filter: blur(24px);
}

/* Header */
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-family: "Baloo 2", cursive;
    text-decoration: none;
}

.logo-icon {
    font-size: 1.9rem;
    filter: drop-shadow(0 0 12px rgba(250, 204, 21, 0.9));
}

.logo-text {
    font-size: 1.6rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    color: #f9fafb;
}
.logo-text span {
    background: linear-gradient(120deg, var(--accent-gold), var(--accent-orange), var(--accent-pink));
    -webkit-background-clip: text;
    color: transparent;
}

.main-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    font-size: 0.92rem;
}

.main-nav a {
    position: relative;
    text-decoration: none;
    color: var(--text-muted);
    padding: 0.4rem 0.95rem;
    border-radius: 999px;
    overflow: hidden;
    transition: color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}
.main-nav a::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top, rgba(56, 189, 248, 0.55), rgba(248, 250, 252, 0.05));
    opacity: 0;
    transition: opacity 0.2s ease;
}
.main-nav a:hover {
    color: #f9fafb;
    transform: translateY(-1px);
    box-shadow: 0 10px 25px rgba(56, 189, 248, 0.6);
}
.main-nav a:hover::before {
    opacity: 1;
}
/* Base nav layout */
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    backdrop-filter: blur(18px);
    background: linear-gradient(to right, rgba(15,23,42,0.93), rgba(30,64,175,0.85));
    border-bottom: 1px solid rgba(148, 163, 184, 0.35);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.2rem;
    padding: 0.6rem 0;
}

/* Desktop nav */
.main-nav ul {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.main-nav a {
    font-size: 0.9rem;
    text-decoration: none;
    color: var(--text-soft);
    padding: 0.3rem 0.7rem;
    border-radius: 999px;
    transition: background 0.2s ease, color 0.2s ease;
}

.main-nav a:hover {
    background: rgba(59,130,246,0.18);
    color: #e5e7eb;
}

/* Hamburger */
.nav-toggle {
    display: none;
    border: none;
    background: none;
    padding: 0.15rem;
    cursor: pointer;
}

.nav-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    margin: 3px 0;
    background: #e5e7eb;
    border-radius: 999px;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

/* ============ MOBILE NAV ============ */
.nav-toggle {
    display: none;
    background:none;
    border:none;
    padding:0.4rem;
    cursor:pointer;
}

.nav-toggle span {
    display:block;
    width:22px;
    height:2px;
    margin:4px 0;
    border-radius:999px;
    background:#f9a8d4;
    transition:transform 0.2s ease, opacity 0.2s ease;
}

@media (max-width: 768px) {
    .nav-container {
        gap: 0.75rem;
    }

    .nav-toggle {
        display: block;
    }

    .main-nav {
        position: fixed;
        top: 0;
        right: 0;
        bottom: 0;
        width: 220px;
        background: rgba(15,23,42,0.96);
        backdrop-filter: blur(18px);
        padding: 4.5rem 1.5rem 1.5rem;
        display: flex;
        /* Drawer holds the UL; UL will be stacked below */
        flex-direction: column;
        transform: translateX(100%);
        transition: transform 0.25s ease;
        z-index: 40;
    }

    /* 🔹 NEW: make UL vertical inside drawer */
    .main-nav ul {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
        margin: 0;
        padding: 0;
        list-style: none;
        width: 100%;
    }

    .main-nav li {
        width: 100%;
    }

    .main-nav a {
        display: block;
        width: 100%;
        font-size: 0.95rem;
        padding: 0.45rem 0.7rem;
        border-radius: 999px;
        background: rgba(15,23,42,0.4);
        color: #e5e7eb;
    }

    body.nav-open .main-nav {
        transform: translateX(0);
    }

    /* Optional: animate burger into X */
    body.nav-open .nav-toggle span:nth-child(1) {
        transform: translateY(6px) rotate(45deg);
    }
    body.nav-open .nav-toggle span:nth-child(2) {
        opacity: 0;
    }
    body.nav-open .nav-toggle span:nth-child(3) {
        transform: translateY(-6px) rotate(-45deg);
    }
}


/* Page content */
.page-content {
    padding-bottom: 5rem;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.62rem 1.4rem;
    border-radius: 999px;
    border: 1px solid transparent;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    text-decoration: none;
    gap: 0.4rem;
    transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, border-color 0.18s ease;
}

.btn-primary {
    background: radial-gradient(circle at top left, var(--accent-gold), var(--accent-orange));
    color: #0b1020;
    box-shadow: 0 14px 32px rgba(251, 146, 60, 0.9);
}
.btn-primary:hover {
    transform: translateY(-2px) translateZ(10px);
    box-shadow: 0 18px 46px rgba(251, 146, 60, 1);
}

.btn-secondary {
    background: linear-gradient(135deg, var(--accent-blue), var(--accent-purple));
    color: #020617;
    box-shadow: 0 14px 32px rgba(59, 130, 246, 0.9);
}

.btn-outline {
    background: transparent;
    border-color: rgba(148, 163, 184, 0.75);
    color: var(--text-main);
}
.btn-outline:hover {
    background: rgba(15, 23, 42, 0.9);
}

/* Hero */
.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 3fr) minmax(0, 2.5fr);
    gap: 2.5rem;
    margin-block: 1.7rem 3rem;
    align-items: center;
}

.hero-title {
    font-family: "Baloo 2", cursive;
    font-size: clamp(2.4rem, 3vw + 1rem, 3.4rem);
    margin-bottom: 0.6rem;
}
.hero-title span {
    background: linear-gradient(120deg, var(--accent-gold), var(--accent-orange), var(--accent-pink));
    -webkit-background-clip: text;
    color: transparent;
}
.hero-subtitle {
    color: var(--text-muted);
    font-size: 1.02rem;
    max-width: 32rem;
    margin-bottom: 1rem;
}

.hero-paragraphs p {
    margin: 0.35rem 0;
    font-size: 0.95rem;
    color: #d1d5db;
}

.hero-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1.2rem;
}

/* Hero visual world */
.hero-orbit {
    position: relative;
    height: 320px;
    border-radius: 32px;
    padding: 1.1rem;
    box-shadow: var(--shadow-soft);
    overflow: hidden;
}
.hero-orbit::before {
    content: "";
    position: absolute;
    inset: -35%;
    background: conic-gradient(from 210deg, rgba(248, 250, 252, 0.18), transparent, rgba(56, 189, 248, 0.35), transparent);
    opacity: 0.7;
    filter: blur(14px);
}
.hero-orbit-inner {
    position: relative;
    z-index: 1;
    height: 100%;
    border-radius: 24px;
    border: 1px solid rgba(148, 163, 184, 0.6);
    padding: 1.1rem;
    display: grid;
    grid-template-columns: 1.15fr 1fr;
    gap: 0.75rem;
}

.hero-world {
    border-radius: 20px;
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(circle at 30% 15%, rgba(248, 250, 252, 0.12), transparent 55%),
        radial-gradient(circle at 80% 80%, rgba(244, 114, 182, 0.7), transparent 60%),
        radial-gradient(circle at 10% 80%, rgba(56, 189, 248, 0.8), transparent 55%),
        radial-gradient(circle at 50% 50%, rgba(15, 23, 42, 0.95), #020617);
    display: flex;
    align-items: center;
    justify-content: center;
}
.hero-world-kid {
    font-size: 3.4rem;
    filter: drop-shadow(0 0 20px rgba(248, 250, 252, 0.9));
}

.hero-orbit-badges {
    display: grid;
    gap: 0.5rem;
    font-size: 0.82rem;
}
.hero-badge {
    padding: 0.45rem 0.8rem;
    border-radius: 999px;
    background: radial-gradient(circle at top left, rgba(56, 189, 248, 0.35), rgba(15, 23, 42, 0.98));
    border: 1px solid rgba(148, 163, 184, 0.7);
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

/* Section */
.section {
    margin-block: 2.5rem;
}
.section-header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 1.2rem;
    margin-bottom: 1.4rem;
}
.section-title {
    font-family: "Baloo 2", cursive;
    font-size: 1.7rem;
}
.section-subtitle {
    font-size: 0.95rem;
    color: var(--text-muted);
}

/* Cards */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 1.3rem;
}

.card {
    position: relative;
    padding: 1.1rem;
    border-radius: 1.6rem;
    background: radial-gradient(circle at top, rgba(56, 189, 248, 0.18), rgba(15, 23, 42, 0.96));
    border: 1px solid rgba(148, 163, 184, 0.6);
    box-shadow: var(--shadow-soft);
    overflow: hidden;
    transform-style: preserve-3d;
}
.card::before {
    content: "";
    position: absolute;
    inset: -40%;
    background: radial-gradient(circle at 0% 0%, rgba(251, 146, 60, 0.85), transparent 60%);
    opacity: 0;
    transition: opacity 0.25s ease;
}
.card-inner {
    position: relative;
    z-index: 1;
}
.card h3 {
    margin: 0 0 0.35rem;
    font-size: 1.09rem;
}
.card p {
    margin: 0.25rem 0 0.8rem;
    font-size: 0.9rem;
    color: var(--text-muted);
}
.card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
    color: var(--text-muted);
}
.card:hover::before {
    opacity: 1;
}
.card:hover {
    box-shadow: 0 26px 60px rgba(251, 146, 60, 1);
    border-color: rgba(248, 250, 252, 0.9);
}

/* Creator strip */
.creator-strip {
    margin-top: 3rem;
    padding: 1rem 1.3rem;
    border-radius: 1.6rem 1.6rem 0 0;
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 1rem;
    align-items: center;
}
.creator-avatar {
    width: 58px;
    height: 58px;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.1rem;
    background: radial-gradient(circle at top, rgba(248, 250, 252, 0.35), rgba(15, 23, 42, 0.98));
}
.creator-info h3 {
    margin: 0;
    font-size: 1.04rem;
}
.creator-info h3 span {
    color: var(--accent-gold);
}
.creator-info p {
    margin: 0.25rem 0 0;
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* Footer */
.main-footer {
    padding: 0.85rem 1.3rem 1.3rem;
    border-radius: 0 0 1.6rem 1.6rem;
    margin-bottom: 1.2rem;
}
.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}
.footer-made {
    font-size: 0.85rem;
    color: var(--text-muted);
}
.footer-admin-link {
    font-size: 0.85rem;
    color: var(--accent-blue);
    text-decoration: none;
}
.footer-admin-link:hover {
    text-decoration: underline;
}

/* Chat widget */
.chat-widget {
    position: fixed;
    right: 1.3rem;
    bottom: 1.3rem;
    z-index: 30;
}
.chat-bubble-btn {
    width: 56px;
    height: 56px;
    border-radius: 999px;
    border: none;
    background: radial-gradient(circle at top left, var(--accent-blue), var(--accent-purple));
    box-shadow: 0 18px 40px rgba(37, 99, 235, 0.95);
    font-size: 1.8rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #0b1020;
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.chat-bubble-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 24px 55px rgba(37, 99, 235, 1);
}

.chat-window {
    position: absolute;
    right: 0;
    bottom: 70px;
    width: 280px;
    max-height: 360px;
    border-radius: 1.3rem;
    overflow: hidden;
    display: none;
    flex-direction: column;
    box-shadow: var(--shadow-soft);

    /* 🔹 Strong kid-friendly glass background */
    background:
        radial-gradient(circle at top left, rgba(15,23,42,0.98), rgba(15,23,42,0.92));
    backdrop-filter: blur(18px);
    border: 1px solid rgba(148, 163, 184, 0.45);
}

.chat-header {
    padding: 0.65rem 0.9rem;
    border-bottom: 1px solid rgba(148, 163, 184, 0.55);
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.9rem;
}
.chat-close-btn {
    border: none;
    background: transparent;
    color: var(--text-muted);
    font-size: 1.2rem;
    cursor: pointer;
}
.chat-messages {
    padding: 0.6rem 0.8rem;
    flex: 1;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}
.chat-message {
    max-width: 80%;
    padding: 0.4rem 0.7rem;
    border-radius: 0.9rem;
    font-size: 0.8rem;
}
.chat-message.bot {
    align-self: flex-start;
    background: rgba(15, 23, 42, 0.9);
}
.chat-message.user {
    align-self: flex-end;
    background: radial-gradient(circle at top left, var(--accent-pink), var(--accent-purple));
}
.chat-input-row {
    display: flex;
    border-top: 1px solid rgba(148, 163, 184, 0.5);
}
.chat-input-row input {
    flex: 1;
    border: none;
    padding: 0.4rem 0.6rem;
    font-size: 0.82rem;
    background: transparent;
    color: var(--text-main);
}
.chat-input-row input:focus {
    outline: none;
}
.chat-input-row button {
    border: none;
    padding: 0.4rem 0.75rem;
    font-size: 0.82rem;
    cursor: pointer;
    background: linear-gradient(135deg, var(--accent-blue), var(--accent-purple));
    color: #020617;
}

/* Forms */
.form-card {
    margin-top: 1.5rem;
    padding: 1.1rem;
    border-radius: 1.5rem;
}
.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 0.9rem;
}
.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    margin-bottom: 0.8rem;
}
.form-group label {
    font-size: 0.84rem;
    color: var(--text-muted);
}
.form-group input,
.form-group textarea,
.form-group select {
    border-radius: 0.9rem;
    border: 1px solid rgba(148, 163, 184, 0.7);
    background: rgba(15, 23, 42, 0.9);
    padding: 0.5rem 0.65rem;
    color: var(--text-main);
    font-size: 0.9rem;
}
.form-group textarea {
    min-height: 100px;
    resize: vertical;
}
.form-actions {
    display: flex;
    gap: 0.7rem;
    flex-wrap: wrap;
    margin-top: 0.4rem;
}

/* Badges */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.75rem;
    padding: 0.28rem 0.6rem;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.9);
    border: 1px solid rgba(148, 163, 184, 0.7);
}

/* Blog & grids */
.blog-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.25rem;
}

/* Shop */
.shop-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 1.3rem;
}
.price-tag {
    font-weight: 600;
    color: var(--accent-gold);
}
.cart-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.88rem;
}
.cart-table th,
.cart-table td {
    padding: 0.5rem 0.45rem;
    border-bottom: 1px solid rgba(148, 163, 184, 0.4);
}
.cart-table th {
    text-align: left;
    color: var(--text-muted);
}

/* Mini-games */
.mini-games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.2rem;
}
.mini-game-area {
    margin-top: 0.6rem;
    border-radius: 1.1rem;
    border: 1px solid rgba(148, 163, 184, 0.7);
    background: radial-gradient(circle at top, rgba(56, 189, 248, 0.28), rgba(15, 23, 42, 0.98));
    min-height: 140px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}
#game2-area {
    transition: background 0.2s ease;
}
#game2-area.game2-ready {
    background: radial-gradient(circle at top, rgba(74, 222, 128, 0.5), rgba(15, 23, 42, 0.98));
}
.mini-games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.25rem;
    align-items: stretch;
}

.mini-game-card {
    height: 100%;
    display: flex;
}

.mini-game-card .card-inner {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.games-links-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.25rem;
}

.game-link-card .card-inner {
    display: flex;
    flex-direction: column;
    height: 100%;
    justify-content: space-between;
}


/* Train game */
.train-grid {
    margin-top: 0.6rem;
    width: 240px;
    height: 240px;
    border-radius: 1.1rem;
    border: 1px solid rgba(148, 163, 184, 0.7);
    background: radial-gradient(circle at top, rgba(56, 189, 248, 0.18), rgba(15, 23, 42, 0.99));
    display: grid;
    grid-template-columns: repeat(15, 1fr);
    grid-template-rows: repeat(15, 1fr);
    gap: 1px;
    padding: 6px;
}
.train-cell {
    border-radius: 3px;
    background: rgba(15, 23, 42, 0.95);
}
.train-cell.train-body {
    background: linear-gradient(135deg, #22c55e, #16a34a);
}
.train-cell.train-head {
    background: linear-gradient(135deg, #22c55e, #bbf7d0);
}
.train-cell.train-food {
    background: radial-gradient(circle at center, #facc15, #f97316);
}

/* Responsive tweaks */
@media (max-width: 900px) {
    .hero-grid {
        grid-template-columns: minmax(0, 1fr);
    }
    .creator-strip {
        grid-template-columns: auto 1fr;
    }
}
@media (max-width: 640px) {
    .main-header {
        border-radius: 1.4rem;
    }
    .header-inner {
        flex-direction: column;
        align-items: flex-start;
    }
    .main-nav {
        justify-content: flex-start;
    }
    .creator-strip,
    .main-footer {
        border-radius: 1.4rem;
    }
}
/* Safety net: make sure sections and cards are always visible */
.section,
.card {
    opacity: 1 !important;
    visibility: visible !important;
}
.pacman-container,
#pacman-grid {
    opacity: 1 !important;
    visibility: visible !important;
}
.mini-games-grid {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.mini-games-row {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

/* Make cards line up nicely on desktop and wrap on mobile */
.mini-games-row .mini-game-card,
.mini-games-row .card {
    flex: 1 1 260px;
    max-width: 320px;
}

/* Optional: slightly smaller for /play/ cards */
.mini-games-row-play .card {
    flex: 1 1 220px;
    max-width: 280px;
}
/* Decorative + interactive floating layers (always non-blocking) */
/*.floating-balloons,
/*.floating-toys,
/*.bg-planets,
/*.bg-particles,
/*.balloon-game-layer,
/*.interactive-balloon,
/*#balloonCanvas {
/*    pointer-events: none;
/*    transition: opacity 0.25s ease, visibility 0.25s ease;
/*}

/* When effects are OFF: fully hide them */
/*body.bg-effects-off .floating-balloons,
/*body.bg-effects-off .floating-toys,
/*body.bg-effects-off .bg-planets,
/*body.bg-effects-off .bg-particles,
/*body.bg-effects-off .balloon-game-layer,
/*body.bg-effects-off .interactive-balloon,
/*body.bg-effects-off #balloonCanvas {
    opacity: 0 !important;
/*    visibility: hidden !important;
/*    display: none !important;
}


/* Optional: smooth fade */
/*.floating-balloons,
/*.floating-toys,
/*.bg-planets,
/*.bg-particles,
/*.balloon-game-layer,
/*.interactive-balloon {
/*    transition: opacity 0.25s ease, visibility 0.25s ease;
/*}


/*body.bg-effects-off .floating-balloons,
body.bg-effects-off .floating-toys,
body.bg-effects-off .bg-planets,
body.bg-effects-off .bg-particles {
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease;
}
/* Hide interactive balloon layer when background effects are off */
/*body.bg-effects-off .balloon-game-layer,
/*body.bg-effects-off .balloon-click-layer,
/*body.bg-effects-off .interactive-balloon {
/*    opacity: 0 !important;
/*    visibility: hidden !important;
/*    pointer-events: none !important;
/*}*/
.badge-rss {
    display: inline-block;
    padding: 0.15rem 0.5rem;
    border-radius: 999px;
    font-size: 0.7rem;
    background: linear-gradient(135deg, #facc15, #fb923c);
    color: #111827;
    box-shadow: 0 0 10px rgba(251, 191, 36, 0.6);
}

.blog-cta-row {
    display:flex;
    flex-wrap:wrap;
    gap:0.6rem;
    margin-top:0.75rem;
}

.blog-btn-subscribe {
    background:linear-gradient(135deg,#fb7185,#f97316);
    color:#0f172a;
}
.blog-btn-share {
    background:linear-gradient(135deg,#22d3ee,#0ea5e9);
    color:#0f172a;
}
.blog-btn-comment {
    background:linear-gradient(135deg,#facc15,#fb923c);
    color:#0f172a;
}

.blog-btn-subscribe:hover,
.blog-btn-share:hover,
.blog-btn-comment:hover {
    filter:brightness(1.08);
    transform:translateY(-1px);
}
/* ========== GENIUSKIDS CHAT WIDGET ========== */
.gk-chat-widget {
    position:fixed;
    right:1.2rem;
    bottom:1.2rem;
    z-index:60;
}

.gk-chat-toggle {
    width:52px;
    height:52px;
    border-radius:999px;
    border:none;
    background:radial-gradient(circle at 30% 0%,#f9a8d4,#ec4899);
    color:#0f172a;
    font-size:1.6rem;
    box-shadow:0 10px 25px rgba(15,23,42,0.7);
    cursor:pointer;
    display:flex;
    align-items:center;
    justify-content:center;
}

.gk-chat-panel {
    position:absolute;
    right:0;
    bottom:64px;
    width:290px;
    max-height:360px;
    background:rgba(15,23,42,0.96);
    border-radius:1rem;
    box-shadow:0 20px 40px rgba(15,23,42,0.9);
    display:none;
    flex-direction:column;
    overflow:hidden;
    backdrop-filter:blur(16px);
    border:1px solid rgba(248,250,252,0.12);
    
}

.gk-chat-panel.open {
    display:flex;
}

.gk-chat-header {
    display:flex;
    align-items:center;
    justify-content:space-between;
    padding:0.55rem 0.75rem;
    font-size:0.85rem;
    background:linear-gradient(135deg,#22d3ee,#a855f7);
    color:#0f172a;
    font-weight:600;
}

.gk-chat-header button {
    border:none;
    background:transparent;
    cursor:pointer;
    font-size:0.9rem;
}

.gk-chat-body {
    padding:0.6rem;
    flex:1;
    overflow-y:auto;
    font-size:0.8rem;
}

.gk-chat-message {
    padding:0.4rem 0.6rem;
    margin-bottom:0.35rem;
    border-radius:0.7rem;
    max-width:90%;
}

.gk-chat-message.bot {
    background:rgba(56,189,248,0.15);
    align-self:flex-start;
}
.gk-chat-message.user {
    background:rgba(244,114,182,0.2);
    align-self:flex-end;
}

.gk-chat-input-row {
    display:flex;
    gap:0.3rem;
    padding:0.45rem 0.55rem 0.55rem;
    border-top:1px solid rgba(148,163,184,0.4);
}
.gk-chat-input-row input {
    flex:1;
    font-size:0.8rem;
    border-radius:999px;
    border:1px solid rgba(148,163,184,0.7);
    padding:0.3rem 0.6rem;
    background:#020617;
    color:#e5e7eb;
}
.gk-chat-input-row button {
    border-radius:999px;
    border:none;
    background:#22d3ee;
    color:#0f172a;
    font-size:0.8rem;
    padding:0.3rem 0.8rem;
    cursor:pointer;
}
.gk-chat-input-row button:hover {
    filter:brightness(1.1);
}

