/* === Premium Gaming Hub Variables === */
:root {
    --game-bg: #0f172a;        /* Deep dark blue */
    --card-bg: #1e293b;        /* Lighter dark blue for cards */
    --accent-gold: #ffb703;
    --accent-blue: #38bdf8;
    --accent-green: #34d399;
    --accent-pink: #f472b6;
    --accent-purple: #a855f7;  /* For new games */
    --accent-cyan: #22d3ee;    /* For new games */
    --text-light: #f8fafc;
    --text-muted: #94a3b8;
    --shadow-glow: 0 10px 30px -10px rgba(0,0,0,0.5);
    --transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.gaming-zone { 
    background: radial-gradient(circle at top, #1e1b4b, var(--game-bg)); 
    padding: 60px 20px; color: var(--text-light); 
    min-height: 80vh; font-family: 'Poppins', 'Hind', sans-serif; 
}
.zone-container { max-width: 1200px; margin: 0 auto; }

/* === Hero Section === */
.zone-header { text-align: center; margin-bottom: 60px; }
.header-badge { display: inline-block; background: rgba(255, 183, 3, 0.1); color: var(--accent-gold); padding: 6px 20px; border-radius: 30px; border: 1px solid var(--accent-gold); font-weight: 700; font-size: 0.85em; margin-bottom: 15px; letter-spacing: 1px; text-transform: uppercase; }
.zone-header h1 { font-size: 3.5rem; margin: 0; color: var(--text-light); font-weight: 800; letter-spacing: 1px; text-shadow: 0 4px 20px rgba(0,0,0,0.5);}
.zone-header p { font-size: 1.15rem; color: var(--text-muted); margin-top: 15px; max-width: 600px; margin-inline: auto;}

/* === Games Grid === */
.games-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 35px; margin-bottom: 80px; }

/* Game Cards */
.game-card { 
    background: var(--card-bg); border-radius: 25px; padding: 40px 30px; 
    text-align: center; border: 1px solid rgba(255,255,255,0.03); 
    position: relative; overflow: hidden; transition: var(--transition); 
    text-decoration: none; display: flex; flex-direction: column; 
    align-items: center; box-shadow: var(--shadow-glow); 
}
.game-card::before { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 5px; z-index: 2; transition: 0.3s;}

.game-card:hover { transform: translateY(-12px); border-color: rgba(255,255,255,0.1); }

/* Color Themes for specific cards */
.card-spin::before { background: var(--accent-gold); }
.card-spin:hover { box-shadow: 0 20px 40px rgba(255, 183, 3, 0.15); }
.card-kbc::before { background: var(--accent-blue); }
.card-kbc:hover { box-shadow: 0 20px 40px rgba(56, 189, 248, 0.15); }
.card-math::before { background: var(--accent-green); }
.card-math:hover { box-shadow: 0 20px 40px rgba(52, 211, 153, 0.15); }
.card-word::before { background: var(--accent-pink); }
.card-word:hover { box-shadow: 0 20px 40px rgba(244, 114, 182, 0.15); }
.card-gk::before { background: var(--accent-purple); }
.card-gk:hover { box-shadow: 0 20px 40px rgba(168, 85, 247, 0.15); }
.card-science::before { background: var(--accent-cyan); }
.card-science:hover { box-shadow: 0 20px 40px rgba(34, 211, 238, 0.15); }

/* Icon Circle & Animations */
.icon-circle { width: 90px; height: 90px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: rgba(255,255,255,0.05); margin-bottom: 20px; transition: var(--transition); border: 2px dashed rgba(255,255,255,0.1);}
.game-icon { font-size: 3rem; filter: drop-shadow(0 4px 6px rgba(0,0,0,0.3)); transition: var(--transition);}

.game-card:hover .icon-circle { background: rgba(255,255,255,0.1); border-style: solid; transform: scale(1.1); }
.game-card:hover .game-icon { transform: rotate(10deg) scale(1.1); }

/* Card Typography */
.game-title { font-size: 1.5rem; font-weight: 800; margin: 0 0 10px; color: var(--text-light); }
.game-desc { font-size: 0.95rem; color: var(--text-muted); margin-bottom: 30px; line-height: 1.6; flex-grow: 1;}

/* Play Buttons */
.play-btn { 
    background: rgba(255,255,255,0.05); color: var(--text-light); 
    padding: 12px 30px; border-radius: 30px; font-weight: 700; 
    font-size: 0.9rem; transition: 0.3s; border: 1px solid rgba(255,255,255,0.1); 
    text-transform: uppercase; letter-spacing: 1px; width: 100%; box-sizing: border-box;
}
.play-btn i { margin-left: 8px; font-size: 0.8em; transition: 0.3s; }
.game-card:hover .play-btn i { transform: translateX(5px); }

/* Button Color Fills on Hover */
.card-spin:hover .play-btn { background: var(--accent-gold); color: #000; border-color: var(--accent-gold);}
.card-kbc:hover .play-btn { background: var(--accent-blue); color: #000; border-color: var(--accent-blue);}
.card-math:hover .play-btn { background: var(--accent-green); color: #000; border-color: var(--accent-green);}
.card-word:hover .play-btn { background: var(--accent-pink); color: #000; border-color: var(--accent-pink);}
.card-gk:hover .play-btn { background: var(--accent-purple); color: #fff; border-color: var(--accent-purple);}
.card-science:hover .play-btn { background: var(--accent-cyan); color: #000; border-color: var(--accent-cyan);}

/* Badges */
.badge { position: absolute; top: 20px; right: -35px; padding: 5px 40px; font-size: 0.75rem; font-weight: 800; transform: rotate(45deg); letter-spacing: 1px; box-shadow: 0 4px 10px rgba(0,0,0,0.3); color: white;}
.badge-hot { background: #ef4444; }
.badge-new { background: #10b981; }

/* === Global Leaderboard === */
.leaderboard-section { background: rgba(30, 41, 59, 0.5); border-radius: 25px; padding: 40px; border: 1px solid rgba(255,255,255,0.05); backdrop-filter: blur(10px); }
.lb-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 30px; border-bottom: 2px dashed rgba(255,255,255,0.1); padding-bottom: 20px;}
.lb-header h2 { margin: 0; color: var(--accent-gold); font-size: 1.8rem; font-weight: 800;}

.refresh-btn { background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1); color: var(--text-light); width: 40px; height: 40px; border-radius: 50%; cursor: pointer; transition: 0.3s; display: flex; align-items: center; justify-content: center;}
.refresh-btn:hover { background: var(--accent-gold); color: #000; border-color: var(--accent-gold); }

.lb-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 12px;}
.lb-list li { display: flex; justify-content: space-between; padding: 18px 25px; background: rgba(0,0,0,0.3); border-radius: 15px; font-weight: 600; border: 1px solid transparent; transition: 0.3s; align-items: center;}
.lb-list li:hover { border-color: rgba(255, 183, 3, 0.3); background: rgba(255, 183, 3, 0.05); transform: scale(1.02);}

.rank-medal { width: 35px; height: 35px; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; font-weight: 800; font-size: 0.9em; background: rgba(255,255,255,0.1); color: var(--text-light);}
.rank-1 { background: linear-gradient(135deg, #fef08a, #f59e0b); color: #000; font-size: 1.2rem; box-shadow: 0 0 15px rgba(245, 158, 11, 0.5);}
.rank-2 { background: linear-gradient(135deg, #f1f5f9, #94a3b8); color: #000; font-size: 1.1rem; }
.rank-3 { background: linear-gradient(135deg, #fed7aa, #b45309); color: #000; font-size: 1.05rem; }

.player-info { flex-grow: 1; margin-left: 15px; font-size: 1.1rem; color: var(--text-light);}
.player-class { font-size: 0.8rem; color: var(--text-muted); background: rgba(255,255,255,0.05); padding: 3px 10px; border-radius: 10px; margin-left: 10px;}

.lb-score { background: rgba(52, 211, 153, 0.1); padding: 8px 20px; border-radius: 20px; font-size: 1rem; color: var(--accent-green); font-weight: 800; border: 1px solid rgba(52, 211, 153, 0.3);}

/* Animations */
.fade-in { opacity: 0; transform: translateY(30px); transition: opacity 0.6s ease, transform 0.6s ease; }
.fade-in.show { opacity: 1; transform: translateY(0); }

/* Mobile CSS */
@media (max-width: 768px) {
    .zone-header h1 { font-size: 2.2rem; }
    .games-grid { grid-template-columns: 1fr; gap: 25px;}
    .leaderboard-section { padding: 25px 15px; }
    .lb-list li { padding: 15px; flex-direction: column; gap: 15px; text-align: center; }
    .player-info { margin-left: 0; display: flex; flex-direction: column; gap: 5px; align-items: center;}
    .player-class { margin-left: 0; }
}