/* --- 1. GLOBAL STYLE --- */ body { margin: 0; padding: 0; font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; /* Background Gradient Pink-Ungu punya kamu */ background: linear-gradient(135deg, #c42ddf, #fe8bb4); min-height: 100vh; color: white; padding-bottom: 50px; } /* --- 2. TOPBAR & PROFILE --- */ .topbar { display: flex; justify-content: space-between; align-items: center; padding: 20px 40px; } .back-btn, .logout-btn { background: white; color: #c42ddf; padding: 10px 20px; border-radius: 20px; border: none; font-weight: bold; cursor: pointer; text-decoration: none; transition: transform 0.2s; } .back-btn:hover, .logout-btn:hover { transform: scale(1.05); background: #fff0f5; } .profile-display { display: flex; align-items: center; gap: 15px; } .profile-name { font-weight: bold; font-size: 1.1rem; text-shadow: 0 2px 4px rgba(0,0,0,0.2); } /* --- 3. JUDUL --- */ .title { text-align: center; font-size: 3rem; margin-top: 10px; font-weight: 800; text-shadow: 0 4px 10px rgba(0,0,0,0.2); } .subtitle { text-align: center; margin-top: -10px; margin-bottom: 30px; font-size: 1rem; opacity: 0.9; } /* --- 4. KARTU STATISTIK (3 KOTAK DI ATAS) --- */ .cards { display: flex; justify-content: center; gap: 20px; margin-bottom: 40px; padding: 0 20px; } .card { background: rgba(255, 255, 255, 0.25); backdrop-filter: blur(5px); /* Efek kaca buram */ padding: 20px; border-radius: 20px; width: 250px; text-align: center; border: 1px solid rgba(255,255,255,0.4); box-shadow: 0 4px 15px rgba(0,0,0,0.1); } .icon-stat { font-size: 2rem; margin-bottom: 5px; } .count-label { font-size: 0.9rem; } .count-val { font-size: 1.5rem; font-weight: bold; margin-top: 5px; } /* --- 5. WRAPPER & FILTER --- */ .leaderboard-wrapper { max-width: 900px; margin: 0 auto; padding: 0 20px; } .filter-container { margin-bottom: 20px; display: flex; align-items: center; gap: 10px; } .filter-btn { text-decoration: none; color: white; background: rgba(255,255,255,0.3); padding: 8px 20px; border-radius: 20px; font-size: 0.9rem; font-weight: bold; transition: 0.3s; } .filter-btn:hover, .filter-btn.active { background: white; color: #c42ddf; /* Warna teks jadi ungu saat aktif */ } /* --- 6. TABEL LIST (INI YANG PENTING DIPERBAIKI) --- */ /* Grid System: Rank | Player | Mode | Score | Date */ .table-header, .rank-card { display: grid; /* Kolom diatur: Kecil, Lebar, Sedang, Sedang, Sedang */ grid-template-columns: 0.6fr 2.5fr 1fr 1fr 1.2fr; align-items: center; padding: 15px 25px; } .table-header { background: rgba(255, 255, 255, 0.442); font-weight: bold; border-radius: 15px 15px 0 0; text-transform: uppercase; font-size: 0.85rem; letter-spacing: 1px; } .ranking-list { display: flex; flex-direction: column; gap: 10px; margin-top: 10px; } /* Style Baris Pemain */ .rank-card { background: white; color: #333; /* Teks hitam biar jelas */ border-radius: 15px; box-shadow: 0 4px 6px rgba(0,0,0,0.1); transition: transform 0.2s; } .rank-card:hover { transform: scale(1.02); /* Efek zoom dikit pas hover */ } /* Highlight jika itu user yang login */ .highlight-me { border: 3px solid #FFD700; /* Border emas */ background: #fffdf0; } /* --- 7. ISI KOLOM --- */ .rank-num { font-weight: bold; font-size: 1.2rem; color: #555; text-align: center; } /* Flexbox untuk Avatar + Nama */ .flex-align { display: flex; align-items: center; gap: 12px; } .avatar-circle { width: 35px; height: 35px; background: #c42ddf; color: white; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: bold; } .player-info { display: flex; flex-direction: column; align-items: flex-start; } .p-name { font-weight: bold; } .badge-me { background: #333; color: white; font-size: 0.65rem; padding: 2px 6px; border-radius: 4px; margin-top: 2px; } /* Warna Tag Difficulty */ .tag { padding: 5px 10px; border-radius: 8px; font-size: 0.8rem; font-weight: bold; text-transform: capitalize; color: #333; /* Text hitam biar kontras */ text-align: center; display: inline-block; min-width: 70px; } .tag.easy { background: #7ddf8c; } /* Hijau */ .tag.medium { background: #ffe86a; } /* Kuning */ .tag.hard { background: #ff6b6b; color: white; } /* Merah */ .col-score { font-weight: bold; font-size: 1.1rem; color: #333; } .col-date { font-size: 0.8rem; color: #313131; text-align: right; } /* Icon Juara Colors */ .text-gold { color: gold; } .text-silver { color: silver; } .text-bronze { color: #cd7f32; } .music-container { position: fixed; /* Kunci posisi di layar */ bottom: 30px; /* Jarak dari bawah */ right: 30px; /* Jarak dari kanan */ z-index: 9999; /* Pastikan selalu di paling atas (supaya bisa diklik) */ } .music-btn { width: 60px; height: 60px; border-radius: 50%; /* Membuat tombol bulat sempurna */ border: 2px solid white; background: rgba(255, 255, 255, 0.25); /* Efek kaca transparan */ backdrop-filter: blur(5px); color: white; font-size: 24px; cursor: pointer; box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2); transition: all 0.3s ease; display: flex; align-items: center; justify-content: center; padding: 0; outline: none; } .music-btn:hover { transform: scale(1.1); /* Efek membesar saat kursor mendekat */ background: rgba(255, 255, 255, 0.4); box-shadow: 0 0 20px rgba(255, 255, 255, 0.4); }