/* ===== PREMIUM STYLES ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', 'Comic Neue', 'Poppins', sans-serif;
}

:root {
    --primary: #6C5CE7;
    --secondary: #A8E6CF;
    --accent: #FFD93D;
    --success: #00B894;
    --danger: #FF7675;
    --warning: #FDCB6E;
    --dark: #2D3436;
    --light: #F5F6FA;
}

body {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    padding: 0;
    position: relative;
    overflow-x: hidden;
}

/* Animated Background */
.floating-shape {
    position: fixed;
    width: 100px;
    height: 100px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    pointer-events: none;
    z-index: -1;
    animation: float 20s infinite;
}

@keyframes float {

    0%,
    100% {
        transform: translate(0, 0) rotate(0deg);
    }

    25% {
        transform: translate(100px, 100px) rotate(90deg);
    }

    50% {
        transform: translate(200px, 0) rotate(180deg);
    }

    75% {
        transform: translate(100px, -100px) rotate(270deg);
    }
}

.game-wrapper {
    max-width: 1400px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 70px;
    padding: 30px;
    box-shadow: 0 50px 100px rgba(0, 0, 0, 0.5);
    border: 5px solid rgba(255, 255, 255, 0.5);
}

/* ===== PREMIUM HEADER ===== */
.premium-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50px;
    padding: 20px 30px;
    margin-bottom: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: white;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
}

.premium-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%) rotate(45deg);
    }

    100% {
        transform: translateX(100%) rotate(45deg);
    }
}

.player-profile {
    display: flex;
    gap: 30px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.avatar-container {
    position: relative;
    cursor: pointer;
}

.avatar-ring {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    background: linear-gradient(45deg, #FFD700, #FFA500);
    display: flex;
    align-items: center;
    justify-content: center;
    animation: rotate 10s linear infinite;
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.avatar {
    width: 80px;
    height: 80px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 50px;
    transition: all 0.3s;
}

.level-badge {
    position: absolute;
    bottom: 0;
    right: 0;
    background: #FFD700;
    color: #333;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    border: 3px solid white;
}

.stats-container {
    display: flex;
    gap: 25px;
}

.stat-card {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(5px);
    padding: 15px 25px;
    border-radius: 40px;
    text-align: center;
    border: 2px solid rgba(255, 255, 255, 0.3);
    min-width: 120px;
}

.stat-value {
    font-size: 32px;
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.stat-label {
    font-size: 14px;
    opacity: 0.9;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.header-actions {
    display: flex;
    gap: 15px;
    z-index: 1;
}

.header-btn {
    background: white;
    border: none;
    padding: 15px 30px;
    border-radius: 40px;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.header-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 30px rgba(0, 0, 0, 0.3);
}

/* ===== DAILY CHALLENGE PREMIUM ===== */
.daily-challenge-premium {
    background: linear-gradient(135deg, #FF6B6B, #FF8E53);
    border-radius: 40px;
    padding: 25px 35px;
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: white;
    box-shadow: 0 20px 40px rgba(255, 107, 107, 0.3);
    position: relative;
    overflow: hidden;
}

.challenge-content {
    display: flex;
    align-items: center;
    gap: 30px;
    z-index: 1;
}

.challenge-icon {
    font-size: 60px;
    background: rgba(255, 255, 255, 0.2);
    width: 100px;
    height: 100px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: pulse 2s infinite;
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.1);
    }
}

.challenge-text h3 {
    font-size: 28px;
    margin-bottom: 10px;
}

.challenge-text p {
    font-size: 20px;
    opacity: 0.9;
}

.streak-display {
    background: rgba(0, 0, 0, 0.2);
    padding: 20px 35px;
    border-radius: 60px;
    text-align: center;
    font-size: 28px;
    font-weight: bold;
}

.streak-flame {
    font-size: 40px;
    filter: drop-shadow(0 0 10px orange);
    animation: flicker 1s infinite;
}

@keyframes flicker {

    0%,
    100% {
        transform: scale(1);
        filter: drop-shadow(0 0 10px orange);
    }

    50% {
        transform: scale(1.2);
        filter: drop-shadow(0 0 20px red);
    }
}

/* ===== WORLD MAP 3D ===== */
.world-map-3d {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    padding: 20px;
    perspective: 1000px;
}

.world-card-3d {
    background: white;
    border-radius: 40px;
    padding: 30px;
    text-align: center;
    cursor: pointer;
    transition: all 0.5s;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.2);
    position: relative;
    transform-style: preserve-3d;
    border: 3px solid transparent;
}

.world-card-3d:hover {
    transform: translateY(-20px) rotateX(10deg);
    box-shadow: 0 50px 100px rgba(0, 0, 0, 0.4);
}

.world-card-3d.unlocked {
    border-color: #FFD700;
}

.world-card-3d.locked {
    opacity: 0.6;
    filter: grayscale(1);
    transform: scale(0.95);
}

.world-icon-3d {
    font-size: 80px;
    margin-bottom: 20px;
    transform: translateZ(30px);
    filter: drop-shadow(0 10px 10px rgba(0, 0, 0, 0.2));
}

.world-title {
    font-size: 26px;
    font-weight: bold;
    margin-bottom: 15px;
    color: #333;
}

.progress-ring {
    width: 100%;
    height: 10px;
    background: #f0f0f0;
    border-radius: 10px;
    margin: 20px 0;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #00B894, #00CEC9);
    transition: width 0.5s;
}

.stars-3d {
    font-size: 24px;
    letter-spacing: 5px;
    filter: drop-shadow(0 0 5px gold);
}

.lock-overlay {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 30px;
    background: rgba(0, 0, 0, 0.5);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(5px);
}

/* ===== MISSIONS WITH ANIMATION ===== */
.missions-panel {
    background: white;
    border-radius: 50px;
    padding: 40px;
    animation: slideUp 0.5s ease;
}

@keyframes slideUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.missions-header {
    display: flex;
    align-items: center;
    gap: 25px;
    margin-bottom: 40px;
}

.world-banner {
    padding: 15px 40px;
    border-radius: 60px;
    color: white;
    font-size: 28px;
    font-weight: bold;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.mission-card {
    display: flex;
    align-items: center;
    padding: 25px;
    background: #f8f9fa;
    border-radius: 40px;
    margin-bottom: 20px;
    cursor: pointer;
    transition: all 0.3s;
    border: 3px solid transparent;
    position: relative;
    overflow: hidden;
}

.mission-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.mission-card:hover::before {
    left: 100%;
}

.mission-card:hover {
    transform: translateX(15px);
    border-color: var(--primary);
    background: white;
    box-shadow: 0 20px 40px rgba(108, 92, 231, 0.2);
}

.mission-card.completed {
    background: linear-gradient(135deg, #00B894, #00CEC9);
    color: white;
}

.mission-icon-large {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary), #a363d9);
    border-radius: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    margin-right: 25px;
    color: white;
    box-shadow: 0 15px 30px rgba(108, 92, 231, 0.3);
}

.mission-info {
    flex: 1;
}

.mission-name {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 8px;
}

.mission-xp-badge {
    background: #FFD700;
    color: #333;
    padding: 8px 20px;
    border-radius: 40px;
    display: inline-block;
    font-weight: bold;
}

.mission-reward {
    display: flex;
    align-items: center;
    gap: 20px;
}

.reward-item {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(0, 0, 0, 0.05);
    padding: 10px 20px;
    border-radius: 40px;
}

/* ===== GAME ARENA ===== */
.game-arena {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 60px;
    padding: 40px;
    color: white;
    min-height: 600px;
    position: relative;
    overflow: hidden;
}

.game-arena::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" opacity="0.1"><circle cx="50" cy="50" r="40" fill="none" stroke="white" stroke-width="2"/><circle cx="50" cy="50" r="30" fill="none" stroke="white" stroke-width="2"/><circle cx="50" cy="50" r="20" fill="none" stroke="white" stroke-width="2"/></svg>');
    background-size: 200px 200px;
    animation: rotate 60s linear infinite;
}

.game-header-arena {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    position: relative;
    z-index: 1;
}

.game-title {
    font-size: 40px;
    font-weight: bold;
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.2);
}

.game-score {
    background: rgba(255, 255, 255, 0.2);
    padding: 15px 35px;
    border-radius: 60px;
    font-size: 28px;
    backdrop-filter: blur(5px);
}

/* ===== PUZZLE GAME DELUXE ===== */
.puzzle-deluxe {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
    position: relative;
    z-index: 1;
}

.puzzle-board {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 40px;
    padding: 30px;
    backdrop-filter: blur(10px);
}

.puzzle-grid-large {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

.puzzle-piece-premium {
    aspect-ratio: 1;
    background: linear-gradient(135deg, #FFD93D, #FFB347);
    border-radius: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    color: white;
    cursor: move;
    transition: all 0.3s;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
    transform: translateZ(20px);
}

.puzzle-piece-premium:hover {
    transform: scale(1.05) translateZ(30px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.4);
}

.puzzle-hint {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 40px;
    padding: 25px;
    text-align: center;
}

/* ===== MEMORY GAME 3D ===== */
.memory-3d {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    perspective: 1000px;
}

.memory-card-3d {
    aspect-ratio: 1;
    position: relative;
    transform-style: preserve-3d;
    transition: transform 0.6s;
    cursor: pointer;
}

.memory-card-3d.flipped {
    transform: rotateY(180deg);
}

.memory-card-3d .card-face {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 50px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.memory-card-3d .front {
    background: white;
    transform: rotateY(180deg);
    border: 4px solid #FFD700;
}

.memory-card-3d .back {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    font-size: 40px;
}

.memory-card-3d.matched .front {
    background: linear-gradient(135deg, #00B894, #00CEC9);
    border-color: white;
}

/* ===== DRAG DROP STUDIO ===== */
.drag-studio {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.items-showcase {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50px;
    padding: 30px;
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
    backdrop-filter: blur(10px);
}

.item-premium {
    padding: 20px 35px;
    background: linear-gradient(135deg, #FF6B6B, #FF8E53);
    border-radius: 80px;
    font-size: 50px;
    cursor: grab;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    transition: all 0.3s;
}

.item-premium:hover {
    transform: scale(1.1) rotate(5deg);
}

.drop-zone-premium {
    background: rgba(255, 255, 255, 0.1);
    border: 4px dashed rgba(255, 255, 255, 0.5);
    border-radius: 80px;
    padding: 40px;
    text-align: center;
    font-size: 80px;
    backdrop-filter: blur(10px);
    transition: all 0.3s;
    min-height: 300px;
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
}

.drop-zone-premium.drag-over {
    border-color: #00B894;
    background: rgba(0, 184, 148, 0.2);
    transform: scale(1.05);
}

/* ===== QUICK TAP ARENA ===== */
.tap-arena {
    text-align: center;
}

.tap-grid-large {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    max-width: 800px;
    margin: 40px auto;
}

.tap-item-premium {
    aspect-ratio: 1;
    background: linear-gradient(135deg, #FFD93D, #FFB347);
    border-radius: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 60px;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    animation: bounce 2s infinite;
}

@keyframes bounce {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

.tap-item-premium.correct {
    background: #00B894;
    animation: none;
    transform: scale(1.1);
}

.tap-item-premium.wrong {
    background: #FF7675;
    animation: shake 0.5s;
}

.timer-circle {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    margin: 0 auto 30px;
    border: 5px solid white;
}

/* ===== VERSE STUDIO ===== */
.verse-studio {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 60px;
    padding: 50px;
    backdrop-filter: blur(10px);
    text-align: center;
}

.verse-reference-large {
    font-size: 48px;
    margin-bottom: 40px;
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.2);
}

.verse-text-large {
    font-size: 36px;
    line-height: 2;
    margin: 50px 0;
    background: rgba(0, 0, 0, 0.2);
    padding: 50px;
    border-radius: 60px;
}

.verse-input-premium {
    width: 150px;
    padding: 20px;
    font-size: 32px;
    text-align: center;
    border: none;
    border-radius: 50px;
    margin: 0 15px;
    background: white;
    color: #333;
}

.reflection-corner {
    background: white;
    border-radius: 50px;
    padding: 40px;
    color: #333;
    margin-top: 40px;
}

/* ===== AVATAR STUDIO ===== */
.avatar-studio {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 40px;
    background: white;
    border-radius: 60px;
    padding: 40px;
}

.avatar-showcase {
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 50%;
    padding: 20px;
}

.avatar-3d {
    width: 100%;
    aspect-ratio: 1;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 120px;
    border: 5px solid #FFD700;
}

.avatar-categories {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.cat-btn {
    padding: 15px 35px;
    border: none;
    background: #f0f0f0;
    border-radius: 50px;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.3s;
    font-weight: bold;
}

.cat-btn.active {
    background: var(--primary);
    color: white;
}

.avatar-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.avatar-option {
    aspect-ratio: 1;
    background: #f8f9fa;
    border-radius: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 50px;
    cursor: pointer;
    transition: all 0.3s;
    border: 3px solid transparent;
}

.avatar-option:hover {
    border-color: var(--primary);
    transform: scale(1.1);
}

.avatar-option.locked {
    opacity: 0.3;
    cursor: not-allowed;
}

.avatar-option.selected {
    border-color: #FFD700;
    background: #fff3bf;
}

/* ===== BADGE GALLERY ===== */
.badge-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    padding: 30px;
}

.badge-premium {
    background: linear-gradient(135deg, #FFD700, #FFA500);
    border-radius: 40px;
    padding: 30px;
    text-align: center;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

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

.badge-premium.locked {
    filter: grayscale(1);
    opacity: 0.5;
}

.badge-icon-large {
    font-size: 70px;
    margin-bottom: 20px;
}

.badge-name {
    font-size: 22px;
    font-weight: bold;
    margin-bottom: 10px;
}

.badge-desc {
    font-size: 14px;
    opacity: 0.8;
}

.badge-progress {
    margin-top: 20px;
    height: 8px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 10px;
    overflow: hidden;
}

.badge-progress-fill {
    height: 100%;
    background: white;
    width: 0%;
    transition: width 0.5s;
}

/* ===== PARENT DASHBOARD PRO ===== */
.parent-dashboard-pro {
    background: white;
    border-radius: 60px;
    padding: 40px;
}

.dashboard-header {
    display: flex;
    align-items: center;
    gap: 25px;
    margin-bottom: 40px;
}

.stats-dashboard {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.dashboard-card {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border-radius: 40px;
    padding: 35px;
    text-align: center;
    box-shadow: 0 30px 60px rgba(102, 126, 234, 0.3);
}

.dashboard-card .number {
    font-size: 60px;
    font-weight: bold;
    margin: 15px 0;
}

.activity-timeline {
    background: #f8f9fa;
    border-radius: 40px;
    padding: 30px;
    margin-top: 30px;
}

.timeline-item {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px;
    border-bottom: 2px solid #eee;
}

.time-badge {
    background: var(--primary);
    color: white;
    padding: 8px 20px;
    border-radius: 40px;
    font-weight: bold;
}

.controls-panel {
    background: #f0f0f0;
    border-radius: 40px;
    padding: 30px;
    margin-top: 30px;
}

/* ===== SHOP & REWARDS ===== */
.shop-premium {
    background: white;
    border-radius: 60px;
    padding: 40px;
}

.shop-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.shop-item {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    border-radius: 50px;
    padding: 30px;
    color: white;
    text-align: center;
    transition: all 0.3s;
    cursor: pointer;
}

.shop-item:hover {
    transform: translateY(-15px) scale(1.02);
    box-shadow: 0 40px 80px rgba(245, 87, 108, 0.4);
}

.shop-icon {
    font-size: 80px;
    margin-bottom: 20px;
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.2));
}

.shop-price {
    background: rgba(0, 0, 0, 0.2);
    padding: 15px 30px;
    border-radius: 60px;
    display: inline-block;
    margin: 20px 0;
    font-size: 24px;
    font-weight: bold;
}

/* ===== MULTIPLAYER ELEMENTS ===== */
.multiplayer-badge {
    background: linear-gradient(135deg, #FF6B6B, #FF8E53);
    padding: 10px 25px;
    border-radius: 40px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: white;
    font-weight: bold;
}

.friend-activity {
    display: flex;
    gap: 15px;
    overflow-x: auto;
    padding: 20px;
}

.friend-card {
    background: white;
    border-radius: 40px;
    padding: 20px;
    text-align: center;
    min-width: 150px;
}

.friend-avatar {
    font-size: 50px;
    margin-bottom: 10px;
}

/* ===== SPECIAL EFFECTS ===== */
.floating-particle {
    position: absolute;
    width: 5px;
    height: 5px;
    background: white;
    border-radius: 50%;
    pointer-events: none;
    animation: float-particle 3s infinite;
}

@keyframes float-particle {
    0% {
        transform: translateY(0) translateX(0);
        opacity: 1;
    }

    100% {
        transform: translateY(-100px) translateX(50px);
        opacity: 0;
    }
}

.rainbow-text {
    background: linear-gradient(45deg, #f00, #ff0, #0f0, #0ff, #00f, #f0f);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: rainbow 5s linear infinite;
}

@keyframes rainbow {
    0% {
        filter: hue-rotate(0deg);
    }

    100% {
        filter: hue-rotate(360deg);
    }
}

.glow-effect {
    animation: glow 2s ease-in-out infinite;
}

@keyframes glow {

    0%,
    100% {
        box-shadow: 0 0 20px rgba(255, 215, 0, 0.5);
    }

    50% {
        box-shadow: 0 0 50px rgba(255, 215, 0, 0.8);
    }
}

/* ===== ADDED: LOGIN OVERLAY STYLES ===== */
.login-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.login-container {
    background: white;
    border-radius: 60px;
    padding: 50px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 50px 100px rgba(0, 0, 0, 0.5);
    position: relative;
    overflow: hidden;
    animation: slideUp 0.5s ease;
}

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

.login-header {
    text-align: center;
    margin-bottom: 10px;
    position: relative;
    z-index: 1;
}

.login-header h2 {
    font-size: 36px;
    color: var(--primary);
    margin-bottom: 10px;
}

.login-header p {
    color: #666;
    font-size: 18px;
}

.tab-switch {
    display: flex;
    gap: 10px;
    margin-bottom: 5px;
    background: #f0f0f0;
    padding: 10px;
    border-radius: 60px;
    position: relative;
    z-index: 1;
}

.tab-btn {
    flex: 1;
    padding: 15px;
    border: none;
    background: transparent;
    border-radius: 50px;
    font-size: 20px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
    color: #666;
}

.tab-btn.active {
    background: var(--primary);
    color: white;
    box-shadow: 0 10px 20px rgba(108, 92, 231, 0.3);
}

.form-container {
    position: relative;
    z-index: 1;
}

.form-group {
    margin-bottom: 2px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 16px;
    font-weight: bold;
    color: #333;
}

.form-group input {
    width: 100%;
    padding: 15px 20px;
    border: 2px solid #e0e0e0;
    border-radius: 30px;
    font-size: 16px;
    transition: all 0.3s;
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(108, 92, 231, 0.1);
}

.form-group input.error {
    border-color: var(--danger);
}

.error-message {
    color: var(--danger);
    font-size: 14px;
    margin-top: 5px;
    padding-left: 15px;
    min-height: 20px;
}

.success-message {
    background: linear-gradient(135deg, #00B894, #00CEC9);
    color: white;
    padding: 15px;
    border-radius: 30px;
    text-align: center;
    margin-bottom: 20px;
    font-weight: bold;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        transform: translateX(-100%);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.submit-btn {
    width: 100%;
    padding: 18px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    border-radius: 40px;
    color: white;
    font-size: 20px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
    margin-bottom: 20px;
    position: relative;
    overflow: hidden;
}

.submit-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 20px 30px rgba(102, 126, 234, 0.4);
}

.submit-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.submit-btn.loading {
    color: transparent;
}

.submit-btn.loading::after {
    content: '';
    position: absolute;
    width: 30px;
    height: 30px;
    top: 50%;
    left: 50%;
    margin: -15px 0 0 -15px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

.guest-btn {
    width: 100%;
    padding: 15px;
    background: transparent;
    border: 2px solid var(--primary);
    border-radius: 40px;
    color: var(--primary);
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
}

.guest-btn:hover {
    background: var(--primary);
    color: white;
}

.separator {
    text-align: center;
    margin: 2px 0;
    position: relative;
}

.separator::before,
.separator::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 45%;
    height: 1px;
    background: #e0e0e0;
}

.separator::before {
    left: 0;
}

.separator::after {
    right: 0;
}

.separator span {
    background: white;
    padding: 0 10px;
    color: #999;
    font-size: 14px;
}

.close-login {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #f0f0f0;
    border: none;
    font-size: 20px;
    cursor: pointer;
    transition: all 0.3s;
    z-index: 2;
}

.close-login:hover {
    background: var(--danger);
    color: white;
    transform: rotate(90deg);
}

/* ===== ENHANCED MOBILE RESPONSIVE STYLES ===== */
@media (max-width: 1200px) {
    .game-wrapper {
        padding: 20px;
        border-radius: 50px;
    }

    .premium-header {
        padding: 15px 20px;
    }

    .stats-container {
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
    }

    .stat-card {
        min-width: 100px;
        padding: 10px 15px;
    }

    .stat-value {
        font-size: 28px;
    }

    .header-actions {
        flex-wrap: wrap;
        justify-content: center;
    }

    .header-btn {
        padding: 12px 20px;
        font-size: 16px;
    }

    .world-map-3d {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 20px;
        padding: 15px;
    }

    .puzzle-deluxe,
    .drag-studio,
    .avatar-studio {
        grid-template-columns: 1fr;
    }

    .avatar-studio {
        gap: 30px;
    }

    .avatar-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 992px) {
    .premium-header {
        flex-direction: column;
        align-items: stretch;
    }

    .player-profile {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }

    .avatar-container {
        margin: 0 auto;
    }

    .stats-container {
        width: 100%;
    }

    .header-actions {
        width: 100%;
    }

    .daily-challenge-premium {
        flex-direction: column;
        text-align: center;
        gap: 20px;
        padding: 20px;
    }

    .challenge-content {
        flex-direction: column;
        gap: 15px;
    }

    .challenge-icon {
        width: 80px;
        height: 80px;
        font-size: 40px;
    }

    .challenge-text h3 {
        font-size: 24px;
    }

    .challenge-text p {
        font-size: 18px;
    }

    .streak-display {
        width: 100%;
        padding: 15px;
        font-size: 24px;
    }

    .mission-card {
        flex-direction: column;
        text-align: center;
        padding: 20px;
    }

    .mission-icon-large {
        margin-right: 0;
        margin-bottom: 15px;
    }

    .mission-reward {
        flex-direction: column;
        align-items: stretch;
        width: 100%;
        margin-top: 15px;
    }

    .reward-item {
        justify-content: center;
    }

    .memory-3d {
        grid-template-columns: repeat(3, 1fr);
        gap: 15px;
    }

    .game-arena {
        padding: 30px 20px;
    }

    .game-title {
        font-size: 32px;
    }

    .game-score {
        font-size: 24px;
        padding: 10px 20px;
    }

    .tap-grid-large {
        grid-template-columns: repeat(3, 1fr);
        gap: 15px;
    }

    .verse-reference-large {
        font-size: 36px;
    }

    .verse-text-large {
        font-size: 28px;
        padding: 30px;
    }

    .verse-input-premium {
        width: 120px;
        padding: 15px;
        font-size: 24px;
    }

    .reflection-corner {
        padding: 30px;
    }
}

@media (max-width: 768px) {
    body {
        padding: 0;
    }

    .game-wrapper {
        padding: 15px;
        border-radius: 40px;
    }

    .game-wrapper {
        max-width: none;
        margin: 0;
        border-radius: 0;
    }


    .premium-header {
        border-radius: 40px;
        padding: 15px;
    }

    .stat-card {
        min-width: 80px;
        padding: 8px 12px;
    }

    .stat-value {
        font-size: 24px;
    }

    .stat-label {
        font-size: 12px;
    }

    .header-btn {
        padding: 10px 15px;
        font-size: 14px;
    }

    .header-btn span {
        font-size: 16px;
    }

    .avatar-ring {
        width: 70px;
        height: 70px;
    }

    .avatar {
        width: 60px;
        height: 60px;
        font-size: 35px;
    }

    .level-badge {
        width: 25px;
        height: 25px;
        font-size: 12px;
    }

    .daily-challenge-premium {
        border-radius: 30px;
        padding: 15px;
    }

    .challenge-icon {
        width: 60px;
        height: 60px;
        font-size: 30px;
    }

    .challenge-text h3 {
        font-size: 20px;
    }

    .challenge-text p {
        font-size: 16px;
    }

    .streak-display {
        font-size: 20px;
        padding: 10px;
    }

    .streak-flame {
        font-size: 30px;
    }

    .world-map-3d {
        grid-template-columns: 1fr;
        gap: 15px;
        padding: 10px;
    }

    .world-card-3d {
        padding: 20px;
    }

    .world-icon-3d {
        font-size: 60px;
    }

    .world-title {
        font-size: 22px;
    }

    .missions-panel {
        padding: 20px;
        border-radius: 40px;
    }

    .missions-header {
        flex-direction: column;
        gap: 15px;
        margin-bottom: 25px;
    }

    .world-banner {
        font-size: 22px;
        padding: 10px 30px;
    }

    .mission-card {
        padding: 15px;
    }

    .mission-icon-large {
        width: 60px;
        height: 60px;
        font-size: 30px;
    }

    .mission-name {
        font-size: 20px;
    }

    .mission-xp-badge {
        padding: 5px 15px;
        font-size: 14px;
    }

    .reward-item {
        padding: 8px 15px;
        font-size: 14px;
    }

    .memory-3d {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .memory-card-3d .card-face {
        font-size: 35px;
    }

    .memory-card-3d .back {
        font-size: 30px;
    }

    .game-arena {
        border-radius: 40px;
        padding: 20px 15px;
        min-height: 500px;
    }

    .game-header-arena {
        flex-direction: column;
        gap: 15px;
        margin-bottom: 25px;
    }

    .game-title {
        font-size: 28px;
    }

    .game-score {
        font-size: 20px;
        padding: 8px 16px;
    }

    .puzzle-board {
        padding: 20px;
    }

    .puzzle-grid-large {
        gap: 10px;
    }

    .puzzle-piece-premium {
        font-size: 35px;
    }

    .drag-studio {
        gap: 20px;
    }

    .items-showcase {
        padding: 20px;
    }

    .item-premium {
        padding: 15px 25px;
        font-size: 40px;
    }

    .drop-zone-premium {
        padding: 30px;
        font-size: 60px;
        min-height: 250px;
    }

    .tap-grid-large {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
        margin: 25px auto;
    }

    .tap-item-premium {
        font-size: 45px;
    }

    .timer-circle {
        width: 120px;
        height: 120px;
        font-size: 40px;
    }

    .verse-studio {
        padding: 30px 20px;
        border-radius: 40px;
    }

    .verse-reference-large {
        font-size: 28px;
        margin-bottom: 25px;
    }

    .verse-text-large {
        font-size: 22px;
        padding: 20px;
        line-height: 1.8;
        margin: 30px 0;
    }

    .verse-input-premium {
        width: 100px;
        padding: 12px;
        font-size: 20px;
    }

    .reflection-corner {
        padding: 25px;
        border-radius: 40px;
    }

    .avatar-studio {
        padding: 25px;
        gap: 25px;
    }

    .avatar-3d {
        font-size: 80px;
    }

    .avatar-categories {
        gap: 10px;
    }

    .cat-btn {
        padding: 10px 20px;
        font-size: 16px;
    }

    .avatar-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .avatar-option {
        font-size: 40px;
    }

    .badge-gallery {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
        padding: 20px;
    }

    .badge-premium {
        padding: 20px;
    }

    .badge-icon-large {
        font-size: 50px;
    }

    .badge-name {
        font-size: 18px;
    }

    .parent-dashboard-pro {
        padding: 25px;
        border-radius: 40px;
    }

    .dashboard-header {
        flex-direction: column;
        gap: 15px;
        margin-bottom: 25px;
    }

    .stats-dashboard {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .dashboard-card {
        padding: 25px;
    }

    .dashboard-card .number {
        font-size: 48px;
    }

    .timeline-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
        padding: 15px;
    }

    .controls-panel {
        padding: 20px;
    }

    .shop-premium {
        padding: 25px;
        border-radius: 40px;
    }

    .shop-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .shop-item {
        padding: 25px;
    }

    .shop-icon {
        font-size: 60px;
    }

    .shop-price {
        font-size: 20px;
        padding: 10px 20px;
    }

    .friend-activity {
        padding: 15px 0;
    }

    .friend-card {
        min-width: 120px;
        padding: 15px;
    }

    .friend-avatar {
        font-size: 40px;
    }
}

@media (max-width: 480px) {

    html,
    body {
        margin: 0;
        padding: 0;
        overflow-x: hidden;
    }

    .game-wrapper {
        width: 100%;
        max-width: 100%;
        padding: 0;
        margin: 0;
        border-radius: 0;
    }


    .player-profile {
        flex-direction: row;
        gap: 20px;
    }

    .badgegallery {
        font-size: 24px !important;
    }

    .back-btn {
        width: 45px !important;
        height: 45px !important;
    }

    .storycontent {
        padding: 10px !important;
        border-radius: 20px !important;
    }

    .storycontent p {
        font-size: 21px !important;
        text-align: justify;
    }

    .world-banner {
        padding: 20px 30px !important;
        font-size: 20px !important;

    }

    .premium-header {
        padding: 12px;
        margin-bottom: 10px;
    }

    .stats-container {
        display: grid;
        grid-auto-flow: column;
    }

    .stat-card {
        min-width: 80px;
        padding: 8px 12px;
        margin-bottom: 10px;

    }

    .game-arena h1 {
        font-size: 30px !important;
        margin-bottom: 20px !important;
    }

    .stat-card {
        width: 100%;
        min-width: 0;
    }

    .header-actions {
        gap: 9px;
        display: grid;
        grid-template-columns: repeat(2, 1fr);
    }

    .header-btn {
        width: 100%;
        justify-content: center;
    }

   

    .daily-challenge-premium {
        padding: 12px;
    }

    .challenge-icon {
        width: 50px;
        height: 50px;
        font-size: 25px;
    }

    .challenge-text h3 {
        font-size: 18px;
    }

    .challenge-text p {
        font-size: 14px;
    }

    .streak-display {
        font-size: 18px;
    }

    .world-card-3d {
        padding: 15px;
    }

    .world-icon-3d {
        font-size: 50px;
    }

    .world-title {
        font-size: 20px;
    }

    .stars-3d {
        font-size: 20px;
    }

    .lock-overlay {
        width: 40px;
        height: 40px;
        font-size: 24px;
    }

    .mission-card {
        padding: 12px;
    }

    .mission-icon-large {
        width: 50px;
        height: 50px;
        font-size: 25px;
    }

    .mission-name {
        font-size: 18px;
    }

    .mission-xp-badge {
        font-size: 12px;
        padding: 4px 12px;
    }

    .memory-3d {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }

    .memory-card-3d .card-face {
        font-size: 30px;
    }

    .memory-card-3d .back {
        font-size: 25px;
    }

    .game-title {
        font-size: 24px;
    }

    .game-score {
        font-size: 18px;
    }

    .puzzle-grid-large {
        gap: 8px;
    }

    .puzzle-piece-premium {
        font-size: 28px;
    }

    .item-premium {
        padding: 12px 20px;
        font-size: 35px;
    }

    .drop-zone-premium {
        font-size: 50px;
        min-height: 200px;
    }

    .tap-item-premium {
        font-size: 35px;
    }

    .timer-circle {
        width: 100px;
        height: 100px;
        font-size: 35px;
    }

    .verse-reference-large {
        font-size: 24px;
    }

    .verse-text-large {
        font-size: 18px;
        padding: 15px;
    }

    .verse-input-premium {
        width: 80px;
        padding: 10px;
        font-size: 18px;
    }

    .avatar-3d {
        font-size: 60px;
    }

    .cat-btn {
        padding: 8px 15px;
        font-size: 14px;
    }

    .avatar-option {
        font-size: 35px;
    }

    .badge-gallery {
        grid-template-columns: 1fr;
    }

    .badge-icon-large {
        font-size: 45px;
    }

    .dashboard-card .number {
        font-size: 40px;
    }

    .login-container {
        padding: 10px 20px;
        border-radius: 40px;
    }

    .login-header h2 {
        font-size: 20px;
    }

    .login-header p {
        font-size: 12px;
    }

    .tab-btn {
        padding: 12px;
        font-size: 16px;
    }

    .form-group input {
        padding: 12px 15px;
        font-size: 14px;
    }

    .submit-btn {
        padding: 11px;
        margin-bottom: -5px;
        font-size: 18px;
    }

    .guest-btn {
        padding: 12px;
        font-size: 16px;
    }

    .close-login {
        width: 35px;
        height: 35px;
        font-size: 16px;
    }
}

/* Touch-friendly improvements */
@media (hover: none) and (pointer: coarse) {

    .header-btn,
    .world-card-3d,
    .mission-card,
    .puzzle-piece-premium,
    .memory-card-3d,
    .item-premium,
    .tap-item-premium,
    .avatar-option,
    .shop-item,
    .tab-btn,
    .submit-btn,
    .guest-btn {
        cursor: default;
        -webkit-tap-highlight-color: transparent;
    }

    .header-btn:hover,
    .world-card-3d:hover,
    .mission-card:hover,
    .puzzle-piece-premium:hover,
    .item-premium:hover,
    .avatar-option:hover,
    .shop-item:hover {
        transform: none;
    }

    .header-btn:active,
    .world-card-3d:active,
    .mission-card:active,
    .puzzle-piece-premium:active,
    .memory-card-3d:active,
    .item-premium:active,
    .tap-item-premium:active,
    .avatar-option:active,
    .shop-item:active,
    .tab-btn:active,
    .submit-btn:active,
    .guest-btn:active {
        transform: scale(0.98);
    }
}

/* Landscape mode optimization */
@media (orientation: landscape) and (max-height: 600px) {
    .game-wrapper {
        padding: 10px;
    }

    .premium-header {
        padding: 10px;
    }

    .player-profile {
        flex-direction: row;
        gap: 15px;
    }

    .avatar-ring {
        width: 60px;
        height: 60px;
    }

    .avatar {
        width: 50px;
        height: 50px;
        font-size: 30px;
    }

    .stats-container {
        flex-direction: row;
    }

    .stat-card {
        padding: 5px 10px;
        min-width: 70px;
    }

    .stat-value {
        font-size: 20px;
    }

    .stat-label {
        font-size: 10px;
    }

    .header-actions {
        flex-wrap: wrap;
    }

    .header-btn {
        padding: 8px 12px;
        font-size: 12px;
    }

    .daily-challenge-premium {
        padding: 10px;
    }

    .game-arena {
        min-height: 350px;
    }
}