* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Comic Sans MS', cursive, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    color: #333;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 20px;
    margin-bottom: 30px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

header::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transform: rotate(45deg);
    animation: shine 3s infinite;
}

@keyframes shine {
    0% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
    100% { transform: translateX(100%) translateY(100%) rotate(45deg); }
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 1;
}

.logo {
    font-size: 2.5rem;
    font-weight: bold;
    background: linear-gradient(45deg, #ff6b6b, #4ecdc4, #45b7d1, #96ceb4);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 20px rgba(255, 107, 107, 0.3);
    animation: glow 2s ease-in-out infinite alternate;
}

@keyframes glow {
    from { filter: brightness(1); }
    to { filter: brightness(1.2); }
}

.user-controls {
    display: flex;
    gap: 15px;
    align-items: center;
}

.premium-btn {
    background: linear-gradient(45deg, #ffd700, #ffed4a);
    color: #333;
    border: none;
    padding: 12px 20px;
    border-radius: 25px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.3);
}

.premium-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 215, 0, 0.4);
}

.streak-counter {
    background: linear-gradient(45deg, #ff6b6b, #ee5a24);
    color: white;
    padding: 8px 15px;
    border-radius: 20px;
    font-weight: bold;
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.3);
}

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

.game-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    padding: 25px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.game-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

.game-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #ff6b6b, #4ecdc4, #45b7d1, #96ceb4);
}

.game-title {
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 10px;
    color: #333;
}

.game-description {
    color: #666;
    margin-bottom: 15px;
    line-height: 1.5;
}

.game-status {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.difficulty {
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: bold;
}

.easy { background: #d4edda; color: #155724; }
.medium { background: #fff3cd; color: #856404; }
.hard { background: #f8d7da; color: #721c24; }

.play-btn {
    width: 100%;
    padding: 15px;
    background: linear-gradient(45deg, #667eea, #764ba2);
    color: white;
    border: none;
    border-radius: 15px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

.play-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.completed {
    background: linear-gradient(45deg, #28a745, #20c997);
}

.ad-banner {
    background: linear-gradient(45deg, #ffeaa7, #fab1a0);
    border-radius: 15px;
    padding: 20px;
    text-align: center;
    margin: 20px 0;
    border: 3px dashed #fdcb6e;
    position: relative;
    overflow: hidden;
    display: none;
}

.ad-banner::before {
    content: '🎮';
    position: absolute;
    top: 10px;
    left: 10px;
    font-size: 1.5rem;
    animation: bounce 2s infinite;
    display: none;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-10px); }
    60% { transform: translateY(-5px); }
}

.game-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 1000;
    backdrop-filter: blur(5px);
}

.modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    border-radius: 20px;
    padding: 30px;
    max-width: 500px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
}

.close-btn {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    color: #666;
}

.word-game {
    text-align: center;
}

.word-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 5px;
    margin: 20px 0;
    max-width: 300px;
    margin-left: auto;
    margin-right: auto;
}

.letter-box {
    width: 50px;
    height: 50px;
    border: 2px solid #ddd;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: bold;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.letter-box.correct {
    background: #6aaa64;
    color: white;
    border-color: #6aaa64;
}

.letter-box.present {
    background: #c9b458;
    color: white;
    border-color: #c9b458;
}

.letter-box.absent {
    background: #787c7e;
    color: white;
    border-color: #787c7e;
}

.keyboard {
    display: grid;
    grid-template-columns: repeat(10, 1fr);
    gap: 5px;
    margin: 20px 0;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.key {
    padding: 10px 5px;
    background: #d3d6da;
    border: none;
    border-radius: 5px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s ease;
}

.key:hover {
    background: #bbb;
}

.math-problem {
    text-align: center;
    padding: 20px;
}

.problem-text {
    font-size: 2rem;
    margin: 20px 0;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 15px;
}

.answer-input {
    font-size: 1.5rem;
    padding: 15px;
    border: 2px solid #ddd;
    border-radius: 10px;
    width: 200px;
    text-align: center;
    margin: 20px;
}

.submit-btn {
    padding: 15px 30px;
    background: linear-gradient(45deg, #28a745, #20c997);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(40, 167, 69, 0.4);
}

.result-message {
    margin-top: 20px;
    padding: 15px;
    border-radius: 10px;
    font-weight: bold;
}

.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.stat-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: bold;
    color: #667eea;
    margin-bottom: 10px;
}

.stat-label {
    color: #666;
    font-size: 0.9rem;
}

.premium-locked {
    opacity: 0.8;
    position: relative;
}

.premium-locked::after {
    content: '⭐';
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 1.5rem;
    color: #ffd700;
}

.premium-badge {
    background: linear-gradient(45deg, #ffd700, #ffed4a);
    color: #333;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: bold;
}

.premium-btn-disabled {
    background: linear-gradient(45deg, #ccc, #aaa);
    cursor: not-allowed;
}

.premium-btn-disabled:hover {
    transform: none;
    box-shadow: none;
}

.achievements {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    padding: 25px;
    margin: 20px 0;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.achievement-item {
    display: flex;
    align-items: center;
    padding: 15px;
    margin: 10px 0;
    background: linear-gradient(45deg, #f8f9fa, #e9ecef);
    border-radius: 15px;
    border-left: 4px solid #28a745;
}

.achievement-icon {
    font-size: 2rem;
    margin-right: 15px;
}

.achievement-text {
    flex: 1;
}

.achievement-title {
    font-weight: bold;
    color: #333;
    margin-bottom: 5px;
}

.achievement-description {
    color: #666;
    font-size: 0.9rem;
}

.timer {
    background: linear-gradient(45deg, #ff6b6b, #ee5a24);
    color: white;
    padding: 10px 20px;
    border-radius: 20px;
    font-weight: bold;
    font-size: 1.2rem;
    margin: 20px 0;
    text-align: center;
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.3);
}

.drawing-canvas {
    border: 3px dashed #ddd;
    border-radius: 15px;
    margin: 20px 0;
    display: block;
    background: white;
}

.drawing-tools {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin: 20px 0;
    flex-wrap: wrap;
}

.color-btn {
    width: 40px;
    height: 40px;
    border: 3px solid #ddd;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
}

.color-btn.active {
    border-color: #333;
    transform: scale(1.1);
}

.quiz-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin: 20px 0;
}

.quiz-option {
    padding: 15px;
    background: #f8f9fa;
    border: 2px solid #ddd;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: bold;
}

.quiz-option:hover {
    background: #e9ecef;
    border-color: #007bff;
}

.quiz-option.correct {
    background: #d4edda;
    border-color: #28a745;
}

.quiz-option.incorrect {
    background: #f8d7da;
    border-color: #dc3545;
}

.daily-rewards {
    background: linear-gradient(45deg, #667eea, #764ba2);
    color: white;
    border-radius: 20px;
    padding: 25px;
    margin: 20px 0;
    text-align: center;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.reward-item {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    padding: 15px;
    margin: 10px;
    border-radius: 15px;
    backdrop-filter: blur(10px);
}

.floating-elements {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
}

.floating-element {
    position: absolute;
    font-size: 2rem;
    opacity: 0.1;
    animation: float 6s ease-in-out infinite;
}
.premium .ad-banner {
  /* display: none !important; */
  display: none;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 15px;
    }
    .logo {
        font-size: 2rem;
    }
    .games-grid {
        grid-template-columns: 1fr;
    }
    .quiz-options {
        grid-template-columns: 1fr;
    }
    .stats {
        grid-template-columns: 1fr;
    }
    .drawing-tools {
        justify-content: center;
    }
    .modal-content {
        width: 95%;
        padding: 20px;
    }
    .drawing-canvas {
        width: 100%;
        max-width: 350px;
        height: 250px;
    }
}
       
