:root {
    --primary-color: #FF6B6B;
    --secondary-color: #4ECDC4;
    --accent-color: #FFE66D;
    --alphabet-color: #FF8066;
    --animals-color: #845EC2;
    --fruits-color: #FFC75F;
    --bg-light: #fdfefe;
    --bg-dark: #f0f3f5;
}

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg-light);
    background-image:
        radial-gradient(at 0% 0%, rgba(255, 107, 107, 0.1) 0px, transparent 50%),
        radial-gradient(at 50% 0%, rgba(78, 205, 196, 0.1) 0px, transparent 50%),
        radial-gradient(at 100% 0%, rgba(255, 230, 109, 0.1) 0px, transparent 50%);
    color: #2D3436;
    overflow-x: hidden;
    min-vh: 100vh;
}

h1,
h2,
h3,
.label {
    font-family: 'Bubblegum Sans', cursive;
}

.text-gradient {
    background: linear-gradient(45deg, #FF6B6B, #845EC2, #4ECDC4);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
}

/* Category Cards - Premium Glassmorphism */
.category-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    aspect-ratio: 1/1;
    border: 2px solid rgba(255, 255, 255, 0.8);
    border-radius: 40px;
    padding: 24px;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.category-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.4) 0%, rgba(255, 255, 255, 0) 100%);
    z-index: 0;
}

.category-card:hover {
    transform: translateY(-15px) scale(1.05);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.12);
}

.category-card>* {
    position: relative;
    z-index: 1;
}

.category-card .emoji {
    font-size: 5rem;
    margin-bottom: 12px;
    filter: drop-shadow(0 5px 10px rgba(0, 0, 0, 0.1));
    transition: transform 0.3s ease;
}

.category-card:hover .emoji {
    transform: scale(1.2) rotate(5deg);
}

.category-card .label {
    font-size: 1.6rem;
    font-weight: bold;
    color: white;
    text-shadow: 2px 4px 8px rgba(0, 0, 0, 0.2);
}

.btn-alphabet {
    background: linear-gradient(135deg, #FF8066, #FF6B6B);
}

.btn-animals {
    background: linear-gradient(135deg, #845EC2, #7045b0);
}

.btn-fruits {
    background: linear-gradient(135deg, #FFC75F, #febc45);
}

.btn-hindi {
    background: linear-gradient(135deg, #FF9F1C, #f68c09);
}

.btn-numbers {
    background: linear-gradient(135deg, #4ECDC4, #3bb3ab);
}

.btn-tables {
    background: linear-gradient(135deg, #1A535C, #134047);
}

.btn-matching {
    background: linear-gradient(135deg, #FF6B6B, #ee5253);
}

.btn-falling {
    background: linear-gradient(135deg, #45B7D1, #2f99b3);
}

.btn-balloon {
    background: linear-gradient(135deg, #FFBE0B, #ffaa00);
}

.btn-shadow {
    background: linear-gradient(135deg, #555555, #333333);
}

/* Game Grid */
.game-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
    gap: 20px;
    padding: 10px;
}

@media (min-width: 768px) {
    .game-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        gap: 25px;
    }
}

/* Game Tiles */
.tile {
    aspect-ratio: 1/1;
    background: white;
    border-radius: 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.06);
    border: 4px solid rgba(255, 255, 255, 0.8);
    position: relative;
    user-select: none;
}

.tile:hover {
    transform: translateY(-8px) rotate(2deg);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.tile .tile-icon {
    font-size: 3.5rem;
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.1));
}

.tile .tile-text {
    font-size: 1.1rem;
    font-weight: 700;
    margin-top: 8px;
    color: white;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
}

/* Game Area Header */
.game-header {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(15px);
    border-radius: 25px;
    padding: 15px 25px;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.section-title {
    font-size: 2.2rem;
    color: #444;
    position: relative;
    display: inline-block;
    margin-bottom: 30px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 10%;
    width: 80%;
    height: 6px;
    background: var(--accent-color);
    border-radius: 10px;
    opacity: 0.6;
}

/* Score Badge */
.score-badge {
    background: white;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 800;
    font-size: 1.4rem;
    color: var(--primary-color);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    border: 3px solid var(--accent-color);
}

.btn-back {
    background: white;
    color: #444;
    border: none;
    border-radius: 50px;
    padding: 10px 24px;
    font-weight: bold;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s;
}

.btn-back:hover {
    background: var(--bg-dark);
    transform: translateX(-5px);
}

#game-screen {
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(20px);
    border: 2px solid rgba(255, 255, 255, 0.8);
    padding: 30px;
    border-radius: 50px;
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.05);
    min-height: 75vh;
}

/* Falling Game Area */
#game-area {
    border-radius: 30px;
    box-shadow: inset 0 10px 30px rgba(0, 0, 0, 0.05);
    border: 5px solid white;
}

.falling-char {
    position: absolute;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    font-weight: bold;
    color: white;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    transition: top 4s linear;
    user-select: none;
}