html {
    scroll-behavior: smooth;
}
section {
    scroll-margin-top: 80px;
    position: relative;
}

:root {
    --bg-dark: #0f0f13;
    --bg-darker: #050507; 
    --card-bg: #1a1a24;
    --primary-green: #22c55e; 
    --accent-blue: #3b82f6; 
    --primary-fuchsia: #e91e63; 
    --primary-orange: #e67e22; 
    --primary-gold: #ffd700;
    --text-white: #eeeeee;
    --text-gray: #aaaaaa;
    --font-stack: 'Rajdhani', sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    background-color: var(--bg-dark);
    color: var(--text-white);
    font-family: var(--font-stack);
    overflow-x: hidden;
}

.bg-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background-image: radial-gradient(#222 1px, transparent 1px);
    background-size: 30px 30px;
    z-index: -1;
    opacity: 0.3; 
}

.navbar {
    display: flex; justify-content: space-between; align-items: center;
    padding: 20px 50px; 
    background: rgba(15, 15, 19, 0.7); 
    border-bottom: 1px solid rgba(255, 255, 255, 0.08); 
    position: sticky; top: 0; z-index: 1000; 
    backdrop-filter: blur(15px); 
    -webkit-backdrop-filter: blur(15px); 
}
.logo { flex: 1; font-size: 1.8rem; font-weight: 900; letter-spacing: 1px; display: flex; justify-content: flex-start;}
.logo span { color: var(--primary-green); }
.nav-links { flex: 1; display: flex; justify-content: center; gap: 30px; }
.nav-links a { color: var(--text-gray); text-decoration: none; font-size: 1.1rem; font-weight: 700; transition: color 0.3s; }
.nav-links a:hover, .nav-links a.active { color: var(--text-white); }

.user-profile { flex: 1; display: flex; justify-content: flex-end; color: var(--accent-blue); }
#user-info { display: none; align-items: center; gap: 15px; }
#user-info img { width: 35px; height: 35px; border-radius: 50%; border: 2px solid var(--primary-green); object-fit: cover; }
#login-btn { cursor: pointer; background: var(--primary-green); color: black; padding: 8px 20px; border-radius: 50px; font-weight: 900; transition: 0.3s; }
#login-btn:hover { box-shadow: 0 5px 15px rgba(34, 197, 94, 0.4); transform: translateY(-2px); }
#user-name { font-weight: 700; color: var(--text-white); }
#logout-btn { color: #ff4444; cursor: pointer; font-size: 1.1rem; margin-left: 5px; transition: 0.3s; }
#logout-btn:hover { transform: scale(1.1); }

#shop-btn {
    background: linear-gradient(45deg, #ffaa00, #ffcc00);
    color: black; border: none; padding: 6px 15px; border-radius: 20px;
    font-weight: 900; cursor: pointer; display: flex; align-items: center; gap: 8px;
    transition: transform 0.2s; box-shadow: 0 0 10px rgba(255, 170, 0, 0.4);
    font-family: 'Rajdhani', sans-serif; font-size: 1rem;
}
#shop-btn:hover { transform: scale(1.05); box-shadow: 0 0 20px rgba(255, 170, 0, 0.6); }

.score-badge {
    background: linear-gradient(45deg, #ffd700, #ffaa00);
    color: #000; padding: 5px 12px; border-radius: 20px;
    font-weight: 900; font-size: 0.9rem; margin-right: 10px;
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.3); display: none;
    animation: popIn 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
@keyframes popIn { from { transform: scale(0); opacity: 0; } to { transform: scale(1); opacity: 1; } }

.hero {
    height: 70vh; display: flex; flex-direction: column; justify-content: center; align-items: center;
    text-align: center; position: relative; 
    background: radial-gradient(circle at center, #1e1e2f 0%, var(--bg-dark) 80%);
    background-size: 200% 200%; 
    animation: gradientMove 15s ease infinite; 
    padding-bottom: 50px; 
}

@keyframes gradientMove {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}
.hero h1 {
    font-size: 4rem; margin-bottom: 10px; font-weight: 900;
    background: linear-gradient(to right, #fff, #a7f3d0);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    text-shadow: 0 10px 30px rgba(0,0,0,0.5);
}
.hero h2 { 
    font-size: 1.2rem; 
    color: var(--text-gray); 
    max-width: 600px; 
    margin: 0 auto 30px auto; 
    font-weight: 500; 
    line-height: 1.5;
}
.cta-button {
    padding: 15px 40px; background: var(--primary-green); color: #000;
    text-decoration: none; font-weight: 900; font-size: 1.2rem; border-radius: 50px;
    box-shadow: 0 0 20px rgba(34, 197, 94, 0.4); transition: transform 0.3s, box-shadow 0.3s;
}
.cta-button:hover { transform: scale(1.05); box-shadow: 0 0 30px rgba(34, 197, 94, 0.7); }

.wave-divider { display: none !important; }

/* ==========================================================================
   KAYAN YAZI (HEM ESKİ ARKA PLAN EFEKTLERİ HEM KESİNTİSİZ KAYMA)
   ========================================================================== */
.news-ticker {
    background: #0a0a0c; 
    border-top: 1px solid rgba(34, 197, 94, 0.3); 
    border-bottom: 1px solid rgba(34, 197, 94, 0.3);
    box-shadow: inset 0 0 20px rgba(0,0,0,0.8), 0 0 15px rgba(34, 197, 94, 0.05); 
    padding: 15px 0; 
    overflow: hidden; 
    position: relative; 
    z-index: 20;
}

/* Çapraz Çizgi Efekti */
.news-ticker::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0; bottom: 0;
    background: repeating-linear-gradient(45deg, transparent, transparent 10px, rgba(255,255,255,0.02) 10px, rgba(255,255,255,0.02) 20px);
    pointer-events: none;
    z-index: 1;
}

/* Kayan Işık Efekti */
.news-ticker::after {
    content: ''; position: absolute; top: 0; left: -100%; width: 50%; height: 100%;
    background: linear-gradient(to right, transparent, rgba(34, 197, 94, 0.15), transparent);
    transform: skewX(-20deg); animation: scan-effect 6s infinite linear; pointer-events: none;
    z-index: 1;
}

@keyframes scan-effect { 0% { left: -100%; } 100% { left: 200%; } }

/* Kesintisiz Animasyon Ayarları */
.marquee-wrapper {
    display: flex;
    overflow: hidden;
    white-space: nowrap;
    width: 100%;
    position: relative;
    z-index: 2; /* Yazı, arka plan efektlerinin üstünde kalsın */
}

.marquee-content {
    display: flex;
    flex-shrink: 0;
    align-items: center;
    animation: scroll-left 35s linear infinite; 
}

@keyframes scroll-left {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); } 
}
/* ========================================================================== */


.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; position: relative; z-index: 5; }

#games-grid {
    background: 
        radial-gradient(rgba(255, 255, 255, 0.07) 2px, transparent 2px),
        linear-gradient(to bottom, var(--bg-dark) 0%, var(--bg-darker) 100%); 
    background-size: 40px 40px, 100% 100%;
    padding: 80px 0;
}

.fire-text {
    background: linear-gradient(to bottom, #ffeb3b, #ff9800, #f44336);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: fire-glow 2s infinite alternate;
}
.fire-icon {
    color: #ff9800;
    animation: fire-flicker 1.5s infinite alternate ease-in-out;
}

@keyframes fire-glow {
    from { text-shadow: 0 0 5px rgba(255, 152, 0, 0.5); }
    to { text-shadow: 0 0 20px rgba(255, 152, 0, 0.9), 0 0 10px rgba(244, 67, 54, 0.8); }
}
@keyframes fire-flicker {
    0% { transform: scale(1) rotate(-3deg); color: #ffeb3b; text-shadow: 0 0 5px #ffeb3b; }
    50% { transform: scale(1.1) rotate(3deg); color: #ff9800; text-shadow: 0 0 10px #ff9800; }
    100% { transform: scale(1) rotate(-3deg); color: #f44336; text-shadow: 0 0 5px #f44336; }
}

.gold-text {
    background: linear-gradient(to bottom, #fff700, #ffd700, #d4af37);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gold-glow 2s infinite alternate;
}
.gold-icon {
    color: #ffd700;
    animation: gold-flicker 1.5s infinite alternate ease-in-out;
}

@keyframes gold-glow {
    from { text-shadow: 0 0 5px rgba(255, 215, 0, 0.5); }
    to { text-shadow: 0 0 20px rgba(255, 215, 0, 0.9), 0 0 10px rgba(212, 175, 55, 0.8); }
}
@keyframes gold-flicker {
    0% { transform: scale(1); color: #fff700; text-shadow: 0 0 5px #fff700; }
    50% { transform: scale(1.05); color: #ffd700; text-shadow: 0 0 10px #ffd700; }
    100% { transform: scale(1); color: #d4af37; text-shadow: 0 0 5px #d4af37; }
}

.section-title { 
    font-size: 2.2rem; margin-bottom: 40px; border-left: 5px solid var(--primary-green); 
    padding-left: 15px; text-shadow: 0 0 15px rgba(255,255,255,0.1); letter-spacing: 2px; font-weight: 900;
    display: flex; align-items: center; gap: 10px;
}
#games-grid .section-title { border-left-color: #ff9800; }
#leaderboard .section-title { border-left-color: #ffd700; }

.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; }
#games-grid .grid { grid-template-columns: repeat(3, 1fr); max-width: 1200px; margin: 0 auto; gap: 40px; }

.game-card {
    background: var(--card-bg); border-radius: 15px; overflow: hidden; cursor: pointer;
    border: 1px solid rgba(255,255,255,0.05); transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex; flex-direction: column;
}
.game-card:hover { transform: translateY(-10px); z-index: 10; }

.card-green { border: 1px solid rgba(34, 197, 94, 0.2); }
.card-green:hover { border-color: var(--primary-green); box-shadow: 0 10px 30px rgba(34, 197, 94, 0.3); }
.card-green:hover .play-btn { background: var(--primary-green); color: #fff; border-color: var(--primary-green); }

.card-blue { border: 1px solid rgba(59, 130, 246, 0.2); }
.card-blue:hover { border-color: var(--accent-blue); box-shadow: 0 10px 30px rgba(59, 130, 246, 0.3); }
.card-blue:hover .play-btn { background: var(--accent-blue); color: #fff; border-color: var(--accent-blue); }

.card-fuchsia { border: 1px solid rgba(233, 30, 99, 0.2); }
.card-fuchsia:hover { border-color: var(--primary-fuchsia); box-shadow: 0 10px 35px rgba(233, 30, 99, 0.4); }
.card-fuchsia:hover .play-btn { background: var(--primary-fuchsia); color: #fff; border-color: var(--primary-fuchsia); }

.card-orange { border: 1px solid rgba(230, 126, 34, 0.2); }
.card-orange:hover { border-color: var(--primary-orange); box-shadow: 0 10px 35px rgba(230, 126, 34, 0.4); }
.card-orange:hover .play-btn { background: var(--primary-orange); color: #fff; border-color: var(--primary-orange); }

.card-green:hover .play-btn { box-shadow: 0 0 15px rgba(34, 197, 94, 0.4); }
.card-blue:hover .play-btn { box-shadow: 0 0 15px rgba(59, 130, 246, 0.4); }
.card-fuchsia:hover .play-btn { box-shadow: 0 0 15px rgba(233, 30, 99, 0.4); }
.card-orange:hover .play-btn { box-shadow: 0 0 15px rgba(230, 126, 34, 0.4); }

.card-image { height: 220px; position: relative; overflow: hidden; display: flex; justify-content: center; align-items: center; }
.card-image .bg-img { 
    position: absolute; top: 0; left: 0; width: 100%; height: 100%; 
    background-size: cover !important; background-position: center !important; 
    transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275); z-index: 1;
}
.game-card:hover .bg-img { transform: scale(1.15); }

.grid-emoji { font-size: 4.5rem; color: white; margin: 0; filter: drop-shadow(0 0 15px rgba(255,255,255,0.6)); position: relative; z-index: 2; transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); }
.game-card:hover .grid-emoji { transform: scale(1.2); }
.game-card:hover .card-image::after { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: radial-gradient(circle at center, rgba(255,255,255,0.15) 0%, transparent 70%); pointer-events: none; z-index: 3; }

.badge { position: absolute; top: 15px; right: 15px; background: var(--primary-green); color: #000; padding: 5px 12px; font-size: 0.8rem; font-weight: 900; border-radius: 8px; box-shadow: 0 5px 15px rgba(0,0,0,0.3); z-index: 5; }
.badge.coming-soon { background: #555; color: #fff; }

.card-info { padding: 25px; display: flex; flex-direction: column; flex: 1; background: rgba(26, 26, 36, 0.9); backdrop-filter: blur(5px); z-index: 2; }
.card-info h3 { font-size: 1.6rem; margin-bottom: 10px; font-weight: 900; transition: color 0.3s; }
.card-green:hover h3 { color: var(--primary-green); }
.card-blue:hover h3 { color: var(--accent-blue); }
.card-fuchsia:hover h3 { color: var(--primary-fuchsia); }
.card-orange:hover h3 { color: var(--primary-orange); }

.card-info p { color: var(--text-gray); font-size: 0.95rem; margin-bottom: 20px; flex-grow: 1; font-family: 'Montserrat', sans-serif;}
.card-stats { display: flex; gap: 15px; color: #888; font-size: 0.85rem; margin-bottom: 20px; font-weight: 700; }

.play-btn { display: block; width: 100%; padding: 12px; background: transparent; border: 2px solid rgba(255,255,255,0.2); color: var(--text-white); text-align: center; text-decoration: none; font-weight: 800; border-radius: 10px; transition: all 0.3s; position: relative; overflow: hidden;}
.play-btn::after { content: ''; position: absolute; top: 0; left: -150%; width: 50%; height: 100%; background: linear-gradient(to right, transparent, rgba(255,255,255,0.4), transparent); transform: skewX(-25deg); transition: 0s; }
.game-card:hover .play-btn::after { left: 150%; transition: left 0.7s cubic-bezier(0.175, 0.885, 0.32, 1.275); }

.game-card.locked { opacity: 0.7; pointer-events: auto; cursor: not-allowed; filter: grayscale(100%); transition: filter 0.3s, transform 0.3s; }
.game-card.locked:hover { transform: translateY(0); animation: shake 0.4s; }
@keyframes shake { 0% { transform: translateX(0); } 25% { transform: translateX(-5px); } 50% { transform: translateX(5px); } 75% { transform: translateX(-5px); } 100% { transform: translateX(0); } }
.play-btn.disabled { border-color: rgba(255,255,255,0.05); color: #555; cursor: not-allowed; }

#leaderboard {
    background: 
        radial-gradient(rgba(255, 255, 255, 0.07) 2px, transparent 2px), 
        linear-gradient(to bottom, var(--bg-darker) 0%, #110f16 100%);   
    background-size: 40px 40px, 100% 100%;
    padding-top: 100px; padding-bottom: 120px; position: relative;
}
.section-desc { color: var(--text-gray); margin-bottom: 50px; font-size: 1.1rem; }

.leaderboard-wrapper { display: flex; justify-content: center; align-items: flex-end; gap: 20px; margin-bottom: 50px; flex-wrap: wrap; background: radial-gradient(ellipse at bottom, rgba(255, 215, 0, 0.1) 0%, transparent 60%); padding-bottom: 20px; }

.podium-card { background: linear-gradient(145deg, rgba(255,255,255,0.05), rgba(0,0,0,0.2)); border: 1px solid rgba(255,255,255,0.1); border-radius: 20px 20px 0 0; padding: 20px; width: 200px; text-align: center; position: relative; transition: transform 0.3s; backdrop-filter: blur(10px); }
.podium-card:hover { transform: translateY(-10px); }
.podium-card.gold { height: 280px; border-color: var(--primary-gold); box-shadow: 0 -10px 30px rgba(255, 215, 0, 0.15); order: 2; z-index: 2;} 
.podium-card.silver { height: 230px; border-color: #c0c0c0; order: 1; } 
.podium-card.bronze { height: 200px; border-color: #cd7f32; order: 3; } 

.rank-badge { position: absolute; top: -20px; left: 50%; transform: translateX(-50%); width: 45px; height: 45px; border-radius: 50%; background: #333; color: #fff; display: flex; justify-content: center; align-items: center; font-weight: 900; font-size: 1.2rem; border: 3px solid #110f16; }
.gold .rank-badge { background: var(--primary-gold); color: #000; box-shadow: 0 0 15px var(--primary-gold); }
.silver .rank-badge { background: #c0c0c0; color: #000; }
.bronze .rank-badge { background: #cd7f32; color: #000; }

.avatar { margin-bottom: 15px; margin-top: 15px; }
.podium-card h3 { font-size: 1.2rem; font-weight: 800; }
.score { font-size: 1.5rem; font-weight: 900; color: var(--primary-gold); margin-top: 5px; }

.leaderboard-list { max-width: 700px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px;}
.list-item { display: flex; justify-content: space-between; align-items: center; background: rgba(255,255,255,0.03); padding: 10px 0 10px 20px; border-radius: 12px; border: 1px solid rgba(255,255,255,0.05); transition: 0.3s; position: relative; overflow: hidden; list-style-type: none; }
.list-item:hover { background: rgba(255,255,255,0.07); transform: scale(1.02); border-color: rgba(255,255,255,0.1); }
.list-item .name { flex-grow: 1; text-align: left; padding-left: 0; font-weight: 700; display: flex; align-items: center; gap: 15px; z-index: 2; }
.list-item .name img { object-fit: cover; border: 2px solid rgba(34, 197, 94, 0.4); box-shadow: 0 0 10px rgba(34, 197, 94, 0.2); }
.list-item .points { background: linear-gradient(135deg, #14532d 0%, #166534 50%, #15803d 100%); color: #fff; font-weight: 900; font-size: 1.1rem; padding: 15px 30px; position: absolute; right: 0; top: 0; bottom: 0; display: flex; align-items: center; justify-content: flex-end; clip-path: polygon(25px 0, 100% 0, 100% 100%, 0 100%); z-index: 1; min-width: 120px; box-shadow: inset 5px 0 15px rgba(0,0,0,0.5); border-left: 1px solid rgba(255,255,255,0.1); }
.list-item .points-text { filter: drop-shadow(0 2px 4px rgba(0,0,0,0.8)); }

.modal { display: none; position: fixed; z-index: 9999; left: 0; top: 0; width: 100%; height: 100%; overflow: auto; background-color: rgba(0,0,0,0.85); backdrop-filter: blur(5px); justify-content: center; align-items: center; }
.shop-content { background: linear-gradient(145deg, #1a1a24, #0a0a0c); border: 1px solid rgba(255,255,255,0.1); padding: 40px; border-radius: 24px; width: 90%; max-width: 800px; text-align: center; position: relative; animation: popUp 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275); box-shadow: 0 20px 50px rgba(0,0,0,0.8); }
@keyframes popUp { from {transform: scale(0.8); opacity: 0;} to {transform: scale(1); opacity: 1;} }
.close-btn { color: #888; position: absolute; right: 25px; top: 15px; font-size: 28px; font-weight: bold; cursor: pointer; transition: 0.3s; }
.close-btn:hover { color: white; transform: rotate(90deg); }
.ball-container { display: flex; justify-content: center; gap: 30px; margin-top: 40px; flex-wrap: wrap; }
.ball-card { background: rgba(255, 255, 255, 0.03); border-radius: 20px; padding: 25px 20px; width: 200px; text-align: center; border: 1px solid rgba(255,255,255,0.05); transition: 0.4s; cursor: pointer; }
.ball-card:hover { transform: translateY(-10px); background: rgba(255, 255, 255, 0.08); border-color: rgba(255,255,255,0.2); box-shadow: 0 15px 30px rgba(0,0,0,0.5);}
.ball { width: 100px; height: 100px; border-radius: 50%; margin: 0 auto 20px; position: relative; box-shadow: inset -10px -10px 20px rgba(0,0,0,0.6), 5px 10px 15px rgba(0,0,0,0.4); }
.ball::after { content: ''; position: absolute; top: 0; left: 0; right: 0; bottom: 0; border-radius: 50%; background: url('https://www.transparenttextures.com/patterns/football-no-lines.png'); opacity: 0.3; }
.ball-bronze { background: radial-gradient(circle at 30% 30%, #cd7f32, #8c5622); border: 2px solid #5a3614; }
.ball-silver { background: radial-gradient(circle at 30% 30%, #e0e0e0, #7d7d7d); border: 2px solid #555; }
.ball-gold { background: radial-gradient(circle at 30% 30%, #ffd700, #b8860b); border: 2px solid #8a6408; box-shadow: 0 0 30px rgba(255, 215, 0, 0.4), inset -10px -10px 20px rgba(0,0,0,0.6); }
.price-tag { background: var(--primary-green); color: black; padding: 6px 15px; border-radius: 50px; font-weight: 900; display: inline-block; margin-top: 15px; font-size: 1rem; font-family: 'Rajdhani'; }

/* PROFIL MODALI EKLENTILERI */
.profile-content { 
    background: linear-gradient(180deg, #1e1e2d, #0f0f13); 
    border: 1px solid rgba(59, 130, 246, 0.3); 
    box-shadow: 0 0 40px rgba(59, 130, 246, 0.2); 
    max-width: 450px !important; 
    padding: 30px 40px !important; 
}
.profile-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    padding-bottom: 20px;
}
.profile-avatar {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    border: 3px solid var(--accent-blue);
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.4);
    margin-bottom: 15px;
    object-fit: cover;
}
.profile-name { font-size: 1.8rem; font-weight: 900; color: white; margin-bottom: 5px; }
.profile-stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}
.stat-card {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}
.stat-card.col-span-2 { grid-column: span 2; padding: 15px; }

/* --- Başarımlar (Badges) Özel Tasarımı --- */
.achievements-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.badge-item {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 12px;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: all 0.3s ease;
}

.badge-item.locked {
    filter: grayscale(100%);
    opacity: 0.5;
}

.badge-icon {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}

/* Kilit Açılmış Durumlar İçin Özel Renkler */
.badge-item:not(.locked) {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
}

.badge-item:not(.locked) .badge-info h4 {
    color: white;
}

/* Her rozet tipine özel ikon arka planı */
#badge-acemi:not(.locked) .badge-icon { background: linear-gradient(135deg, #4ade80, #16a34a); box-shadow: 0 0 15px rgba(74, 222, 128, 0.4); }
#badge-usta:not(.locked) .badge-icon { background: linear-gradient(135deg, #facc15, #ca8a04); box-shadow: 0 0 15px rgba(250, 204, 21, 0.4); }
#badge-muptela:not(.locked) .badge-icon { background: linear-gradient(135deg, #f87171, #dc2626); box-shadow: 0 0 15px rgba(248, 113, 113, 0.4); }
#badge-yenilmez:not(.locked) .badge-icon { background: linear-gradient(135deg, #60a5fa, #2563eb); box-shadow: 0 0 15px rgba(96, 165, 250, 0.4); }


#pack-overlay {
    display: none; 
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.95); backdrop-filter: blur(15px);
    z-index: 9999; justify-content: center; align-items: center; flex-direction: column;
}
#pack-overlay.active { display: flex; } 

#pack-container { position: relative; text-align: center; transition: all 0.3s ease; }
.pack-shake { animation: pack-shake 0.1s ease-in-out infinite; }
@keyframes pack-shake { 0% { transform: translateX(0); } 25% { transform: translateX(-5px) rotate(-2deg); } 50% { transform: translateX(5px) rotate(2deg); } 75% { transform: translateX(-5px) rotate(-2deg); } 100% { transform: translateX(0); } }

#pack-animated-ball.ball {
    width: 160px; height: 160px; margin: 0 auto 20px;
    box-shadow: 0 0 60px rgba(255,255,255,0.5); transform: scale(0); transition: transform 1s ease;
}
#pack-animated-ball.scale-in { transform: scale(1); }
#pack-animated-ball.scale-out { transform: scale(0); }
#pack-animated-ball.spin { animation: spin-ball 3s linear infinite; }
@keyframes spin-ball { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }

#pack-reward { display: none; transform: scale(0); transition: all 0.7s ease-out; flex-direction: column; align-items: center; }
#pack-reward.show { display: flex; transform: scale(1); }

.reward-card { background: linear-gradient(135deg, #facc15, #f97316, #dc2626); padding: 6px; border-radius: 20px; box-shadow: 0 0 80px rgba(230, 126, 34, 0.8); }
.reward-content { background: #111827; color: white; padding: 35px 50px; border-radius: 15px; border: 2px solid rgba(250, 204, 21, 0.5); display: flex; flex-direction: column; align-items: center; }
.bounce-star { color: #facc15; font-size: 4rem; margin-bottom: 15px; animation: bounce-star 1s infinite; }
@keyframes bounce-star { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-15px); } }

#reward-title { font-size: 2.5rem; font-weight: 900; margin-bottom: 8px; background: linear-gradient(to right, #fef08a, #ca8a04); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
#reward-desc { color: #d1d5db; font-size: 1.2rem; font-weight: 700; }

.continue-btn {
    margin-top: 30px; background: white; color: black; padding: 12px 40px; border: none;
    border-radius: 50px; font-weight: 900; font-size: 1.2rem; cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s; box-shadow: 0 0 25px rgba(255,255,255,0.5);
}
.continue-btn:hover { transform: scale(1.1); box-shadow: 0 0 40px rgba(255,255,255,0.8); }

#about { 
    padding: 120px 0; 
    background: 
        radial-gradient(rgba(255, 255, 255, 0.07) 2px, transparent 2px), 
        linear-gradient(to bottom, #110f16 0%, var(--bg-dark) 100%);     
    background-size: 40px 40px, 100% 100%;
    position: relative; 
}
#about .section-title { border-left-color: var(--accent-blue); text-shadow: 0 0 15px rgba(59, 130, 246, 0.2); }

.about-points { margin: 30px 0; display: flex; flex-direction: column; gap: 15px; }
.point-item { display: flex; align-items: flex-start; gap: 15px; }
.point-item .dot { min-width: 10px; height: 10px; background: var(--accent-blue); border-radius: 50%; margin-top: 6px; box-shadow: 0 0 10px var(--accent-blue); }
.point-item p { margin: 0; font-size: 1rem; color: var(--text-gray); }

.contact-box { margin-top: 40px; display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 20px; }
.contact-item { display: flex; align-items: center; gap: 20px; background: rgba(255, 255, 255, 0.03); padding: 20px; border-radius: 15px; border: 1px solid rgba(255, 255, 255, 0.05); transition: 0.3s; }
.contact-item:hover { border-color: var(--accent-blue); background: rgba(59, 130, 246, 0.05); transform: translateY(-5px); }
.contact-item i { font-size: 2rem; color: var(--accent-blue); }
.contact-item h4 { font-size: 0.9rem; color: var(--text-white); margin-bottom: 5px; }
.contact-item a { color: var(--accent-blue); text-decoration: none; font-weight: 900; font-size: 1rem; letter-spacing: 0.5px;}
.contact-item a:hover { text-decoration: underline; }

.about-container { display: flex; align-items: center; gap: 60px; flex-wrap: wrap; }
.about-text { flex: 1.5; min-width: 350px; }
.about-image { flex: 1; min-width: 300px; text-align: center; }
.about-image img { width: 100%; border-radius: 24px; box-shadow: 0 20px 50px rgba(0,0,0,0.5); border: 2px solid rgba(59, 130, 246, 0.2); transform: rotate(2deg); transition: 0.5s; }
.about-image img:hover { transform: rotate(0deg) scale(1.02); border-color: var(--accent-blue); }

.reveal { opacity: 0; transform: translateY(30px); transition: all 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275); pointer-events: none; }
.reveal.active { opacity: 1; transform: translateY(0); pointer-events: auto; }
.reveal:nth-child(2) { transition-delay: 0.1s; }
.reveal:nth-child(3) { transition-delay: 0.2s; }
.reveal:nth-child(4) { transition-delay: 0.3s; }
.reveal:nth-child(5) { transition-delay: 0.4s; }

@media (max-width: 768px) {
    .navbar { flex-direction: column; gap: 15px; padding: 15px; }
    .nav-links { gap: 15px; font-size: 0.9rem; }
    .hero { height: auto; padding-top: 80px; padding-bottom: 120px; }
    .hero h1 { font-size: 2.5rem; }
    .leaderboard-wrapper { flex-direction: column; align-items: center; gap: 30px; }
    .podium-card { width: 100%; height: auto !important; order: unset !important; border-radius: 20px; }
    .rank-badge { position: relative; top: 0; margin-top: -40px; margin-bottom: 10px; }
    .about-container { grid-template-columns: 1fr; text-align: center; }
    .contact-box { flex-direction: column; align-items: center; }
    #games-grid .grid { grid-template-columns: 1fr; }
}

::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--bg-darker); }
::-webkit-scrollbar-thumb { background: var(--primary-green); border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: #16a34a; }

footer {
    text-align: center;
    padding: 20px;
    color: var(--text-gray);
    font-size: 0.9rem;
    background: 
        radial-gradient(rgba(255, 255, 255, 0.07) 2px, transparent 2px), 
        var(--bg-dark); 
    background-size: 40px 40px, 100% 100%;
}