@import url('https://fonts.googleapis.com/css2?family=Varela+Round&display=swap');

body {
    font-family: 'Varela Round', 'Arial', sans-serif;
    direction: rtl;
    margin: 0;
    padding: 0;
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
    /* Prevent pull-to-refresh on mobile */
    overscroll-behavior-y: contain;
    -webkit-overflow-scrolling: touch;
}

html {
    /* Prevent pull-to-refresh on mobile */
    overscroll-behavior-y: contain;
}

/* Animated background decorations */
body::before {
    content: '⭐✨🌟💫⭐✨';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    font-size: 3rem;
    opacity: 0.1;
    pointer-events: none;
    animation: float 20s infinite linear;
    z-index: 0;
}

@keyframes float {
    0% { transform: translateY(0) rotate(0deg); }
    100% { transform: translateY(-100vh) rotate(360deg); }
}

#game-container {
    position: relative;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    z-index: 1;
    animation: fadeInUp 0.6s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.game-header {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(255, 255, 255, 0.95) 100%);
    border-radius: 25px;
    padding: 25px 20px;
    margin-bottom: 20px;
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.22), 0 5px 15px rgba(0, 0, 0, 0.12);
    border: 3px solid rgba(255, 255, 255, 0.9);
}

.game-title {
    font-size: 2.2rem;
    font-weight: bold;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-align: center;
    margin-bottom: 15px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
    animation: titlePulse 3s ease-in-out infinite;
}

@keyframes titlePulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.player-names {
    font-size: 1.8rem;
    font-weight: bold;
    background: linear-gradient(135deg, #ec4899 0%, #f59e0b 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-align: center;
    margin-bottom: 25px;
    padding: 10px;
    border-radius: 15px;
    background-color: rgba(236, 72, 153, 0.1);
}

.player-selection {
    margin-bottom: 25px;
    padding: 25px 20px;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.12) 0%, rgba(118, 75, 162, 0.08) 100%);
    border-radius: 25px;
    border: 2px solid rgba(102, 126, 234, 0.2);
}

.player-selection-title {
    font-size: 1.4rem;
    font-weight: bold;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-align: center;
    margin-bottom: 18px;
}

.player-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.player-btn {
    position: relative;
    padding: 20px 40px;
    font-size: 1.3rem;
    font-weight: bold;
    border: none;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
    background: linear-gradient(135deg, #f59e0b 0%, #ea580c 100%);
    color: white;
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 180px;
    justify-content: center;
}

.player-btn .emoji {
    font-size: 2rem;
}

.player-btn .player-score {
    font-size: 1.6rem;
    font-weight: 900;
    color: #ffd700;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
    margin-top: 5px;
    background: rgba(0, 0, 0, 0.25);
    padding: 4px 14px;
    border-radius: 12px;
    min-width: 45px;
    text-align: center;
}

.player-btn:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.player-btn.active {
    transform: scale(1.08);
    box-shadow: 0 0 0 5px rgba(255, 255, 255, 0.7), 0 0 20px rgba(245, 158, 11, 0.6), 0 12px 30px rgba(0, 0, 0, 0.35);
    animation: playerPulse 2s ease-in-out infinite;
}

@keyframes playerPulse {
    0%, 100% { 
        box-shadow: 0 0 0 5px rgba(255, 255, 255, 0.7), 0 0 20px rgba(245, 158, 11, 0.6), 0 12px 30px rgba(0, 0, 0, 0.35);
    }
    50% { 
        box-shadow: 0 0 0 8px rgba(255, 255, 255, 0.95), 0 0 30px rgba(245, 158, 11, 0.8), 0 12px 30px rgba(0, 0, 0, 0.35);
    }
}

.mode-buttons {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 15px;
    justify-content: center;
    max-width: 1000px;
    margin: 0 auto;
}

.mode-btn {
    position: relative;
    padding: 20px 15px;
    font-size: 1.2rem;
    font-weight: bold;
    border: none;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2), 0 3px 6px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    min-height: 110px;
    justify-content: center;
}

.mode-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.3) 0%, rgba(255, 255, 255, 0) 100%);
    opacity: 0;
    transition: opacity 0.3s;
}

.mode-btn:hover::before {
    opacity: 1;
}

.mode-btn:hover {
    transform: translateY(-8px) scale(1.05);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3), 0 5px 15px rgba(0, 0, 0, 0.2);
}

.mode-btn:active {
    transform: translateY(-4px) scale(1.02);
}

.mode-btn.active {
    transform: scale(1.1);
    box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.5), 0 15px 35px rgba(0, 0, 0, 0.3);
    animation: activePulse 2s ease-in-out infinite;
}

@keyframes activePulse {
    0%, 100% { box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.5), 0 15px 35px rgba(0, 0, 0, 0.3); }
    50% { box-shadow: 0 0 0 8px rgba(255, 255, 255, 0.8), 0 15px 35px rgba(0, 0, 0, 0.3); }
}

.mode-btn .emoji {
    font-size: 2.5rem;
    display: block;
    animation: bounce 2s ease-in-out infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.mode-btn:hover .emoji {
    animation: spin 0.6s ease-in-out;
}

@keyframes spin {
    0% { transform: rotate(0deg) scale(1); }
    50% { transform: rotate(180deg) scale(1.2); }
    100% { transform: rotate(360deg) scale(1); }
}

.mode-btn.sorting { 
    background: linear-gradient(135deg, #4ade80 0%, #22c55e 100%);
    color: white;
}

.mode-btn.quiz { 
    background: linear-gradient(135deg, #ec4899 0%, #db2777 100%);
    color: white;
}

.mode-btn.math { 
    background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
    color: white;
}

.mode-btn.letters { 
    background: linear-gradient(135deg, #f59e0b 0%, #ea580c 100%);
    color: white;
}

.mode-btn.memory { 
    background: linear-gradient(135deg, #06b6d4 0%, #0891b2 100%);
    color: white;
}

.mode-btn.coloring { 
    background: linear-gradient(135deg, #f43f5e 0%, #e11d48 100%);
    color: white;
}

.mode-btn.spider { 
    background: linear-gradient(135deg, #64748b 0%, #475569 100%);
    color: white;
}

.mode-btn.patterns { 
    background: linear-gradient(135deg, #a855f7 0%, #9333ea 100%);
    color: white;
}

.mode-btn.plant { 
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
}

.mode-btn.numbers { 
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: white;
}



#canvas-container {
    background: white;
    border-radius: 25px;
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.22), 0 5px 15px rgba(0, 0, 0, 0.12);
    overflow: hidden;
    margin-bottom: 20px;
    border: 3px solid rgba(255, 255, 255, 0.9);
    position: relative;
}

.score-display {
    position: absolute;
    top: 20px;
    left: 20px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(255, 255, 255, 0.95) 100%);
    padding: 15px 25px;
    border-radius: 18px;
    font-size: 1.6rem;
    font-weight: bold;
    color: #667eea;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.22);
    z-index: 100;
    border: 3px solid rgba(102, 126, 234, 0.25);
    animation: scoreFloat 3s ease-in-out infinite;
}

@keyframes scoreFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

/* Score popup animation */
.score-popup {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 80px;
    font-weight: bold;
    color: #ffd700;
    text-shadow: 0 0 20px rgba(255, 215, 0, 0.8),
                 0 0 40px rgba(255, 215, 0, 0.6),
                 0 4px 8px rgba(0, 0, 0, 0.5);
    pointer-events: none;
    z-index: 10000;
    animation: score-pop 1.5s ease-out forwards;
}

@keyframes score-pop {
    0% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.5);
    }
    50% {
        opacity: 1;
        transform: translate(-50%, -70%) scale(1.2);
    }
    100% {
        opacity: 0;
        transform: translate(-50%, -100%) scale(1);
    }
}

/* Mobile responsive */
@media (max-width: 768px) {
    .game-title {
        font-size: 1.6rem;
    }
    
    .player-names {
        font-size: 1.3rem;
    }
    
    .mode-buttons {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    
    .mode-btn {
        min-height: 95px;
        font-size: 1rem;
        padding: 15px 10px;
    }
    
    .mode-btn .emoji {
        font-size: 2rem;
    }
    
    .player-btn {
        min-width: 140px;
        padding: 15px 25px;
        font-size: 1.1rem;
    }
    
    .player-btn .emoji {
        font-size: 1.5rem;
    }
    
    .player-btn .player-score {
        font-size: 1.4rem;
    }
}

@media (max-width: 480px) {
    .game-title {
        font-size: 1.4rem;
    }
    
    .player-names {
        font-size: 1.1rem;
    }
    
    .mode-buttons {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .mode-btn {
        min-height: 85px;
        font-size: 0.95rem;
    }
    
    .player-buttons {
        flex-direction: column;
        gap: 12px;
    }
    
    .player-btn {
        width: 100%;
    }
}

/* Game Page Styles */
#game-page {
    width: 100%;
    min-height: 100vh;
}

#game-container-play {
    position: relative;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
    z-index: 1;
}

.game-header-play {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(255, 255, 255, 0.95) 100%);
    border-radius: 25px;
    padding: 18px 20px;
    margin-bottom: 20px;
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.22), 0 5px 15px rgba(0, 0, 0, 0.12);
    border: 3px solid rgba(255, 255, 255, 0.9);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.back-btn {
    padding: 12px 25px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    border-radius: 18px;
    color: white;
    font-size: 1.2rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 12px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    gap: 8px;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.back-btn .emoji {
    font-size: 1.8rem;
}

.back-btn:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.current-player-display {
    padding: 12px 25px;
    background: linear-gradient(135deg, #f59e0b 0%, #ea580c 100%);
    border-radius: 18px;
    color: white;
    font-size: 1.4rem;
    font-weight: bold;
    box-shadow: 0 5px 12px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    gap: 12px;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.player-score-display {
    font-size: 1.8rem;
    color: #ffd700;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
    background: rgba(0, 0, 0, 0.25);
    padding: 4px 14px;
    border-radius: 12px;
    font-weight: 900;
    min-width: 50px;
    text-align: center;
}

.game-mode-title {
    font-size: 1.6rem;
    font-weight: bold;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

@media (max-width: 768px) {
    .game-header-play {
        flex-direction: column;
        text-align: center;
        padding: 15px;
    }
    
    .back-btn,
    .current-player-display {
        width: 100%;
        justify-content: center;
    }
    
    .back-btn {
        font-size: 1.1rem;
        padding: 10px 20px;
    }
    
    .current-player-display {
        font-size: 1.2rem;
        padding: 10px 20px;
    }
    
    .player-score-display {
        font-size: 1.5rem;
    }
    
    .game-mode-title {
        font-size: 1.3rem;
    }
}


/* Enhanced Score Popup Animation */
.score-popup {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 4rem;
    font-weight: bold;
    color: #ffd700;
    text-shadow: 
        0 0 10px rgba(255, 215, 0, 0.8),
        0 0 20px rgba(255, 215, 0, 0.6),
        0 0 30px rgba(255, 215, 0, 0.4),
        3px 3px 6px rgba(0, 0, 0, 0.5);
    pointer-events: none;
    z-index: 10000;
    animation: scorePopup 1.5s ease-out forwards;
}

@keyframes scorePopup {
    0% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.5) rotate(-10deg);
    }
    20% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1.3) rotate(5deg);
    }
    40% {
        transform: translate(-50%, -50%) scale(1.1) rotate(-3deg);
    }
    60% {
        transform: translate(-50%, -50%) scale(1.2) rotate(2deg);
    }
    100% {
        opacity: 0;
        transform: translate(-50%, -80%) scale(1.5) rotate(0deg);
    }
}

/* Pulse animation for buttons */
@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    }
}

/* Glow animation */
@keyframes glow {
    0%, 100% {
        box-shadow: 0 0 5px rgba(255, 215, 0, 0.5);
    }
    50% {
        box-shadow: 0 0 20px rgba(255, 215, 0, 0.8), 0 0 30px rgba(255, 215, 0, 0.6);
    }
}

/* Shake animation for errors */
@keyframes shake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-10px); }
    20%, 40%, 60%, 80% { transform: translateX(10px); }
}

/* Bounce animation */
@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

/* Rotate animation */
@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Sparkle animation */
@keyframes sparkle {
    0%, 100% {
        opacity: 0;
        transform: scale(0) rotate(0deg);
    }
    50% {
        opacity: 1;
        transform: scale(1) rotate(180deg);
    }
}

/* Floating animation for background elements */
@keyframes floatSlow {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
        opacity: 0.1;
    }
    50% {
        transform: translateY(-30px) rotate(180deg);
        opacity: 0.2;
    }
}

/* Success celebration overlay */
.celebration-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
}

/* Enhanced mode button hover effects */
.mode-btn {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.mode-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.mode-btn:hover::before {
    width: 300px;
    height: 300px;
}

.mode-btn:active {
    transform: scale(0.95);
}

/* Ripple effect on click */
@keyframes ripple {
    0% {
        transform: scale(0);
        opacity: 1;
    }
    100% {
        transform: scale(4);
        opacity: 0;
    }
}

/* Star rating animation */
.star-rating {
    display: inline-block;
    animation: starPop 0.5s ease-out;
}

@keyframes starPop {
    0% {
        transform: scale(0) rotate(-180deg);
        opacity: 0;
    }
    50% {
        transform: scale(1.2) rotate(10deg);
    }
    100% {
        transform: scale(1) rotate(0deg);
        opacity: 1;
    }
}

/* Confetti particles */
.confetti {
    position: fixed;
    width: 10px;
    height: 10px;
    background: #f0f;
    pointer-events: none;
    z-index: 9998;
    animation: confettiFall 3s ease-out forwards;
}

@keyframes confettiFall {
    0% {
        transform: translateY(0) rotate(0deg);
        opacity: 1;
    }
    100% {
        transform: translateY(100vh) rotate(720deg);
        opacity: 0;
    }
}

/* Loading spinner for audio */
.audio-loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Enhanced player selection with glow */
.player-btn.active {
    animation: playerGlow 2s ease-in-out infinite;
}

@keyframes playerGlow {
    0%, 100% {
        box-shadow: 0 0 20px rgba(236, 72, 153, 0.6);
    }
    50% {
        box-shadow: 0 0 40px rgba(236, 72, 153, 0.9), 0 0 60px rgba(236, 72, 153, 0.6);
    }
}

/* Smooth transitions for all interactive elements */
button, .mode-btn, .player-btn {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Success message styling */
.success-message {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    padding: 20px;
    border-radius: 15px;
    font-size: 1.5rem;
    text-align: center;
    animation: slideInDown 0.5s ease-out;
}

@keyframes slideInDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Error message styling */
.error-message {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
    padding: 20px;
    border-radius: 15px;
    font-size: 1.5rem;
    text-align: center;
    animation: shake 0.5s ease-out;
}

/* 🎯 ENGAGEMENT FEATURES: Streak & Combo Display */
.engagement-indicators {
    display: flex;
    gap: 15px;
    align-items: center;
}

.streak-display,
.combo-display {
    padding: 10px 20px;
    border-radius: 15px;
    font-size: 1.8rem;
    font-weight: bold;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.3);
    animation: fadeInScale 0.3s ease-out;
}

.streak-display {
    background: linear-gradient(135deg, #ff6b35 0%, #f7931e 100%);
    color: white;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.combo-display {
    background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
    color: #333;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.5);
    font-size: 2rem;
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.5);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* 🏆 ACHIEVEMENT POPUP */
.achievement-popup {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
    padding: 30px 40px;
    border-radius: 25px;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.4);
    z-index: 10001;
    display: flex;
    align-items: center;
    gap: 20px;
    border: 4px solid #fff;
    animation: achievementPop 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    max-width: 90%;
}

.achievement-popup.fade-out {
    animation: achievementFadeOut 0.5s ease-out forwards;
}

@keyframes achievementPop {
    0% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0) rotate(-180deg);
    }
    70% {
        transform: translate(-50%, -50%) scale(1.1) rotate(10deg);
    }
    100% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1) rotate(0deg);
    }
}

@keyframes achievementFadeOut {
    to {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.8);
    }
}

.achievement-icon {
    font-size: 4rem;
    animation: achievementIconSpin 1s ease-out;
}

@keyframes achievementIconSpin {
    0% {
        transform: rotate(0deg) scale(0);
    }
    50% {
        transform: rotate(180deg) scale(1.2);
    }
    100% {
        transform: rotate(360deg) scale(1);
    }
}

.achievement-text {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.achievement-title {
    font-size: 1.8rem;
    font-weight: bold;
    color: #333;
    text-shadow: 0 2px 4px rgba(255, 255, 255, 0.5);
}

.achievement-message {
    font-size: 1.4rem;
    color: #555;
    font-weight: 600;
}

/* Mobile responsive for engagement features */
@media (max-width: 768px) {
    .engagement-indicators {
        gap: 10px;
    }
    
    .streak-display,
    .combo-display {
        padding: 8px 15px;
        font-size: 1.4rem;
    }
    
    .combo-display {
        font-size: 1.6rem;
    }
    
    .achievement-popup {
        padding: 20px 25px;
        gap: 15px;
    }
    
    .achievement-icon {
        font-size: 3rem;
    }
    
    .achievement-title {
        font-size: 1.4rem;
    }
    
    .achievement-message {
        font-size: 1.1rem;
    }
}

@media (max-width: 480px) {
    .engagement-indicators {
        flex-direction: column;
        gap: 8px;
    }
    
    .streak-display,
    .combo-display {
        padding: 6px 12px;
        font-size: 1.2rem;
    }
    
    .combo-display {
        font-size: 1.4rem;
    }
    
    .achievement-popup {
        flex-direction: column;
        text-align: center;
        padding: 20px;
    }
    
    .achievement-icon {
        font-size: 2.5rem;
    }
    
    .achievement-title {
        font-size: 1.2rem;
    }
    
    .achievement-message {
        font-size: 1rem;
    }
}
