body {
            font-family: 'Quicksand', sans-serif;
            background: linear-gradient(135deg, #FFD1DC 0%, #E8D7FF 50%, #BCE6FF 100%);
            background-attachment: fixed;
            overflow-x: hidden;
        }

        h1, h2, h3, .font-title {
            font-family: 'Fredoka', sans-serif;
        }

        /* Sparkle Trail Canvas */
        #sparkleCanvas {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            pointer-events: none;
            z-index: 9999;
        }

        /* Glassmorphism Card Style */
        .glass-card {
            background: rgba(255, 255, 255, 0.75);
            backdrop-filter: blur(10px);
            -webkit-backdrop-filter: blur(10px);
            border: 3px solid rgba(255, 255, 255, 0.9);
            box-shadow: 0 10px 25px -5px rgba(232, 215, 255, 0.6);
        }

        /* Flip Card Effect */
        .flip-card {
            background-color: transparent;
            perspective: 1000px;
        }
        .flip-card-inner {
            position: relative;
            width: 100%;
            height: 100%;
            text-align: center;
            transition: transform 0.6s cubic-bezier(0.4, 0.2, 0.2, 1);
            transform-style: preserve-3d;
        }
        .flip-card.flipped .flip-card-inner {
            transform: rotateY(180deg);
        }
        .flip-card-front, .flip-card-back {
            position: absolute;
            width: 100%;
            height: 100%;
            -webkit-backface-visibility: hidden;
            backface-visibility: hidden;
            border-radius: 1.5rem;
        }
        .flip-card-back {
            transform: rotateY(180deg);
        }

        /* Custom Scrollbar */
        ::-webkit-scrollbar {
            width: 12px;
        }
        ::-webkit-scrollbar-track {
            background: #FFF;
        }
        ::-webkit-scrollbar-thumb {
            background: #FFB6C1;
            border-radius: 10px;
            border: 3px solid #FFF;
        }


/* Game Section Container */
.games-section {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
}

.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));   
    gap: 30px;
}

/* Game Card Styling */
.game-card {
    border-radius: 1.5rem;
    padding: 24px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.game-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px -5px rgba(188, 230, 255, 0.8);
}

.game-title {
    font-size: 1.5rem;
    color: #5d4a66;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.game-description {
    font-size: 0.95rem;
    color: #6b5b73;
    margin-bottom: 16px;
    line-height: 1.5;
}

/* Scratch Embed Wrapper */
.scratch-embed-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 3;
    border-radius: 1rem;
    overflow: hidden;
    border: 3px solid rgba(255, 255, 255, 0.8);
    background: #000;
    margin-bottom: 16px;
    box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.1);
}

.scratch-embed-wrapper iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* Instructions Box */
.instructions-box {
    background: rgba(255, 255, 255, 0.6);
    border-radius: 1rem;
    padding: 14px 16px;
    border: 2px dashed rgba(255, 182, 193, 0.8);
}

.instructions-title {
    font-family: 'Fredoka', sans-serif;
    font-size: 1.05rem;
    color: #d87093;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.instructions-text {
    font-size: 0.9rem;
    color: #6b5b73;
    margin: 0;
    line-height: 1.4;
}

.game-card img { width:60%; margin-bottom:20px; }