@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;700&display=swap');

:root {
    --bg-color: #1a1a1a;
    --grid-bg: #2a2a2a;
    --grid-border: #444;
    --text-color: #f0f0f0;
    --accent-color: #00ffcc; /* Mint cerah */
    --bug-color: #ff4136; /* Merah */
    --virus-color: #ff4136;
    --score-color: #ffff00; /* Kuning */
    --minus-color: #ff4136;
    --plus-color: #00ffcc;
    --star-color: #ffd700; /* Emas */
    --clock-color: #00bfff; /* Biru Cerah */
}

body {
    font-family: 'Poppins', sans-serif;
    /* ▼▼ DIKEMBALIKAN ke gradasi statis yang lebih halus ▼▼ */
    background: radial-gradient(circle at top center, #3a3a3a 0%, var(--bg-color) 80%);
    
    color: var(--text-color);
    margin: 0;
    padding-bottom: 30px; /* Beri ruang di bawah */
    min-height: 100vh;
    overflow-y: auto;
    -webkit-user-select: none;
    user-select: none;
}

/* === BAGIAN NAVIGASI === */
nav {
    width: 100%;
    margin: 0 auto 20px auto;
    background-color: var(--grid-bg);
    box-shadow: 0 4px 10px rgba(0,0,0,0.5);
    padding: 10px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}
nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 15px;
    padding: 0;
    margin: 0;
}
nav a {
    display: block;
    padding: 10px 15px;
    text-align: center;
    text-decoration: none;
    color: var(--text-color);
    font-weight: 700;
    font-size: 1.1rem;
    border-radius: 8px;
    transition: all 0.2s ease-in-out;
}
nav a:hover {
    background-color: #444;
}
/* Glow di Navigasi Aktif (dari tambahan) */
nav a.active {
    color: var(--bg-color);
    background-color: var(--accent-color);
    box-shadow: 0 0 10px var(--accent-color);
}
/* === AKHIR BAGIAN NAVIGASI === */


/* === STYLE HALAMAN UTAMA (INDEX.HTML) === */

.hero-section {
    background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)), url('https://images.unsplash.com/photo-1579546929518-9e396f3cc809?ixlib=rb-4.0.3&ixid=MnwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8&auto=format&fit=crop&w=1170&q=80') no-repeat center center/cover;
    padding: 60px 20px;
    border-radius: 15px;
    text-align: center;
    color: white;
    box-shadow: 0 10px 20px rgba(0,0,0,0.4);
    margin-bottom: 20px;
    border: 2px solid var(--grid-border); /* Tambahkan border agar konsisten */
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.hero-title {
    font-size: 3rem;
    margin: 0 0 10px 0;
    font-weight: 700;

    /* ▼▼ EFEK "WAH" 2: Teks Gradien Bergerak ▼▼ */
    background: linear-gradient(90deg, var(--accent-color), var(--score-color), #fff, var(--accent-color));
    background-size: 200% auto;
    color: transparent;
    background-clip: text;
    -webkit-background-clip: text;
    animation: textShine 4s linear infinite;
    /* ▲▲ EFEK "WAH" 2 ▲▲ */
}

.hero-subtitle {
    font-size: 1.3rem;
    margin: 0 0 30px 0;
    color: #ddd;
    text-shadow: 1px 1px 4px rgba(0,0,0,0.7);
}

.profile-card, .school-info-card {
    background-color: var(--grid-bg);
    border: 2px solid var(--grid-border);
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    /* ▼▼ Transisi untuk :hover di desktop ▼▼ */
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

/* === PERUBAHAN TATA LETAK PROFIL === */
.profile-header {
    display: flex;
    margin-bottom: 20px;
    border-bottom: 2px solid var(--grid-border);
    padding-bottom: 20px;
    flex-direction: column; /* Susun ke bawah */
    align-items: center;    /* Ratakan ke tengah */
}

.profile-pic {
    width: 120px;       /* Lebih besar */
    height: 120px;      /* Lebih besar */
    border-radius: 50%;
    border: 3px solid var(--accent-color);
    margin-right: 0;    /* Hapus margin samping */
    margin-bottom: 20px;/* Beri jarak ke teks di bawah */
    box-shadow: 0 0 15px var(--accent-color); /* Glow (dari tambahan) */
}

.profile-info {
    flex-grow: 0;         /* Tidak perlu 'grow' lagi */
    text-align: center;   /* Teks jadi di tengah */
}
/* === AKHIR PERUBAHAN PROFIL === */

.profile-name {
    margin: 0;
    font-size: 1.8rem;
    color: var(--accent-color);
}

.profile-role {
    margin: 0;
    font-size: 1.1rem;
    color: #ccc;
}

.profile-bio {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 25px; /* Ini penting agar ada jarak ke tombol */
}

.school-info-card h3 {
    font-size: 1.8rem;
    color: var(--accent-color);
    margin-top: 0;
    margin-bottom: 20px;
    text-align: center;
    border-bottom: 2px solid var(--grid-border);
    padding-bottom: 15px;
}

.school-links {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.school-link {
    background-color: #333;
    color: var(--text-color);
    text-decoration: none;
    padding: 15px;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease-in-out;
}

.school-link:hover {
    background-color: #444;
    color: var(--accent-color);
    transform: translateY(-2px);
}

.school-link i {
    margin-right: 12px;
    font-size: 1.3rem;
}

/* === AKHIR STYLE HALAMAN UTAMA === */


/* === KONTAINER & LAYOUT DASAR === */
.main-container {
    display: flex;
    flex-direction: column;
    gap: 20px; /* Jarak antar section */
    width: 90%;
    max-width: 500px;
    text-align: center;
    margin: 30px auto;
}

/* Kontainer khusus leaderboard agar bisa lebih lebar */
.leaderboard-page-container {
    max-width: 1400px;
}

/* Wrapper untuk layout horizontal leaderboard */
.leaderboard-layout-container {
    display: flex;
    flex-direction: row; /* Susun menyamping */
    flex-wrap: wrap; /* Pindah baris di HP */
    justify-content: center;
    gap: 20px;
}


/* === STYLE HALAMAN HUB (GAMES.HTML) === */
.game-hub-container {
    max-width: 800px; /* Hub boleh lebih lebar */
}
.hub-title {
    color: var(--accent-color);
    font-size: 2.5rem;
    margin-bottom: 0;
}
.hub-subtitle {
    font-size: 1.2rem;
    color: #ccc;
    margin-top: 5px;
    margin-bottom: 30px;
}
.game-card {
    background-color: var(--grid-bg);
    border-radius: 15px;
    padding: 25px;
    text-align: left;
    border: 2px solid var(--grid-border);
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    margin-bottom: 20px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.game-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.5);
}
.game-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid var(--grid-border);
    padding-bottom: 10px;
    margin-bottom: 15px;
}
.game-card-header h3 {
    margin: 0;
    font-size: 1.8rem;
    color: var(--accent-color);
}
.game-tag {
    background-color: var(--bug-color);
    color: white;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 700;
}
.game-card-description {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #ccc;
}
.game-card-buttons {
    display: flex;
    justify-content: flex-end;
    gap: 15px;
    margin-top: 20px;
}
/* === AKHIR STYLE HUB === */


/* === STYLE DASAR GAME === */
.game-wrapper {
    background-color: var(--grid-bg);
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

/* Style dasar tombol */
.button {
    font-family: 'Poppins', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    border: none;
    padding: 15px 30px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.1s;
    text-decoration: none; /* Menghilangkan underline dari <a> */
    margin-top: 20px;
    white-space: nowrap; /* ▼▼ FIX 1: Mencegah teks tombol patah/turun baris ▼▼ */
}
.button:disabled {
    background-color: #555;
    cursor: not-allowed;
}
.button:not(:disabled):active {
    transform: scale(0.95);
}
.button i {
    margin-right: 10px;
}
.button.button-primary {
    background-color: var(--accent-color);
    color: var(--bg-color);
    transition: all 0.3s ease; /* (dari tambahan) */
}
.button.button-primary:hover {
    box-shadow: 0 0 15px var(--accent-color); /* (dari tambahan) */
    transform: translateY(-3px); /* (dari tambahan) */
}
.button.button-secondary {
    background-color: #555; /* Warna solid agar teks tidak tembus */
    color: var(--text-color);
    font-size: 1.1rem; /* Ukuran font di-normal-kan */
    padding: 15px;
}
.button.button-secondary:hover {
    background-color: #666;
}
.button.full-width {
    width: 100%;
    display: block; /* Memaksa tombol jadi block-level (pindah baris) */
    text-align: center;
    box-sizing: border-box; /* Mencegah padding merusak width 100% */
}
.button.disabled {
    background-color: #333;
    color: #777;
    cursor: not-allowed;
}

/* Layar Awal */
#start-screen h1 {
    color: var(--accent-color);
    margin-top: 0;
}
#name-input {
    font-family: 'Poppins', sans-serif;
    font-size: 1.2rem;
    padding: 10px 15px;
    width: 80%;
    border-radius: 8px;
    border: 2px solid var(--grid-border);
    background-color: #444;
    color: var(--text-color);
    margin-top: 10px;
}

#submit-button {
     background-color: var(--score-color);
}

/* Link Portofolio (Dihapus dari game, tapi style-nya ada di sini) */
.promo-link {
    display: inline-block;
    margin-top: 25px;
    padding: 10px 15px;
    background-color: #333;
    border-radius: 8px;
    color: #ccc;
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.2s;
}
.promo-link:hover {
    background-color: #444;
    color: var(--accent-color);
}

/* Layar Peraturan */
#rules-screen {
    text-align: left;
}
#rules-screen h2 {
    text-align: center;
    color: var(--accent-color);
}
.rule {
    display: flex;
    align-items: center;
    background-color: #333;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 10px;
}
.rule-icon {
    font-size: 2.5rem;
    margin-right: 20px;
    line-height: 1;
}
.rule-text {
    font-size: 1.1rem;
}
.virus-text {
    color: var(--virus-color);
    font-weight: 700;
}
.bug { color: var(--bug-color); }
.virus { color: var(--virus-color); }
.star { color: var(--star-color); animation: pulse 0.8s infinite alternate; }
.clock { color: var(--clock-color); }

/* Layar Game */
#hud {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 20px;
}
#time { color: var(--accent-color); }
#score { color: var(--score-color); }

#star-power-timer {
    color: var(--star-color);
    font-size: 1.2rem;
    font-weight: 700;
    opacity: 0;
    transition: opacity 0.5s;
}
#star-power-timer.star-active {
    opacity: 1;
    animation: pulse 0.5s infinite alternate;
}
.timer-panic {
    color: var(--bug-color) !important;
    animation: pulse 0.5s infinite alternate;
}
@keyframes pulse {
    from { transform: scale(1); }
    to { transform: scale(1.1); }
}

#game-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}
.hole {
    height: 100px;
    background-color: #333;
    border-radius: 10px;
    border: 3px solid var(--grid-border);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 4rem;
    cursor: pointer;
    transition: all 0.1s;
}
.hole:active { transform: scale(0.9); }

.bug {
    color: var(--bug-color);
    border-color: var(--bug-color) !important;
    animation: pop 0.1s ease-out;
}
.virus {
    color: var(--virus-color);
    border-color: var(--virus-color) !important;
    animation: pop 0.1s ease-out;
}
.star {
    color: var(--star-color);
    border-color: var(--star-color) !important;
    animation: pop 0.1s ease-out, pulse 0.8s infinite alternate;
}
.clock {
    color: var(--clock-color);
    border-color: var(--clock-color) !important;
    animation: pop 0.1s ease-out;
}
@keyframes pop {
    from { transform: scale(0.5); }
    to { transform: scale(1); }
}

/* Layar Akhir (Skor) */
#final-score {
    font-size: 2.5rem;
    color: var(--score-color);
}
#end-screen .promo-text {
    font-size: 1.1rem;
    margin-top: 10px;
}
#end-screen .promo-text a {
    text-decoration: none;
    color: var(--accent-color);
    font-weight: 700;
}
#end-screen .promo-text a:hover {
    text-decoration: underline;
}

/* === STYLE LEADERBOARD === */
#leaderboard-container {
    background-color: var(--grid-bg);
    padding: 20px;
    border-radius: 15px;
    flex-basis: 350px;
    flex-grow: 1;
    min-width: 300px;
}
#leaderboard-container h2 {
    color: var(--accent-color);
    margin-top: 0;
    border-bottom: 2px solid var(--grid-border);
    padding-bottom: 10px;
}
#leaderboard-container-sub {
    background-color: var(--grid-bg);
    padding: 20px;
    border-radius: 15px;
    flex-basis: 350px;
    flex-grow: 1;
    min-width: 300px;
}
.leaderboard-section-title {
    color: var(--text-color);
    font-weight: 700;
    font-size: 1.5rem;
    margin-top: 0;
    margin-bottom: 20px;
    border-bottom: 2px solid var(--grid-border);
    padding-bottom: 10px;
}
#leaderboard-list-top10,
#leaderboard-list-top20,
#leaderboard-list-top30,
#leaderboard-list-top40,
#leaderboard-list-top50 {
    list-style: none;
    padding-left: 0;
    font-size: 1.2rem;
    text-align: left;
}
#leaderboard-list-top10 li,
#leaderboard-list-top20 li,
#leaderboard-list-top30 li,
#leaderboard-list-top40 li,
#leaderboard-list-top50 li {
    background-color: #333;
    padding: 10px 15px;
    border-radius: 5px;
    margin-bottom: 8px;
    display: flex;
    justify-content: space-between;
}
#leaderboard-list-top10 li strong,
#leaderboard-list-top20 li strong,
#leaderboard-list-top30 li strong,
#leaderboard-list-top40 li strong,
#leaderboard-list-top50 li strong {
    color: var(--text-color);
    font-weight: 700;
    margin-right: 10px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 70%;
}
#leaderboard-list-top10 li span,
#leaderboard-list-top20 li span,
#leaderboard-list-top30 li span,
#leaderboard-list-top40 li span,
#leaderboard-list-top50 li span {
    color: var(--score-color);
    font-weight: 700;
    white-space: nowrap;
}

/* Styling Peringkat 1-3 (Hanya untuk list Top 10) */
#leaderboard-list-top10 li:first-child {
    background-color: var(--score-color); /* Emas */
    color: var(--bg-color);
}
#leaderboard-list-top10 li:first-child strong,
#leaderboard-list-top10 li:first-child span {
     color: var(--bg-color);
}
#leaderboard-list-top10 li:nth-child(2) {
    background-color: #C0C0C0; /* Perak */
    color: var(--bg-color);
}
#leaderboard-list-top10 li:nth-child(2) strong,
#leaderboard-list-top10 li:nth-child(2) span {
     color: var(--bg-color);
}
#leaderboard-list-top10 li:nth-child(3) {
    background-color: #cd7f32; /* Perunggu */
    color: #f0f0f0;
}
#leaderboard-list-top10 li:nth-child(3) span {
    color: #f0f0f0;
}

#loading-text-top10,
#loading-text-top20,
#loading-text-top30,
#loading-text-top40,
#loading-text-top50 {
    color: #888;
}

/* === STYLE POPUP SKOR === */
.score-popup {
    position: absolute;
    font-size: 1.5rem;
    font-weight: 700;
    pointer-events: none;
    animation: fadeUp 1s ease-out forwards;
}
.plus { color: var(--plus-color); }
.minus {
    color: var(--minus-color);
    animation: fadeUpShake 1s ease-out forwards;
}
@keyframes fadeUp {
    from { opacity: 1; transform: translateY(0); }
    to { opacity: 0; transform: translateY(-50px); }
}
@keyframes fadeUpShake {
    0% { transform: translate(0, 0); opacity: 1; }
    25% { transform: translate(-5px, -10px); }
    50% { transform: translate(5px, -20px); }
    75% { transform: translate(-5px, -30px); }
    100% { transform: translate(0, -50px); opacity: 0; }
}


/* === TAMBAHAN ANIMASI & LAYOUT HOMEPAGE === */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px); /* Muncul dari sedikit ke bawah */
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
.fade-in {
    opacity: 0; /* Sembunyi secara default */
    /* Animasi 'fadeIn' dipindahkan ke dalam media query di bawah */
    /* agar kita bisa menggabungkannya dengan 'pulseGlow' di HP */
}
.hero-section.fade-in {
    opacity: 0; /* Pastikan tetap 0 */
    animation: fadeIn 0.6s ease-out 0.1s forwards;
}
/*
.profile-card.fade-in {
    animation-delay: 0.3s;
}
.info-grid .school-info-card:nth-child(1).fade-in {
    animation-delay: 0.5s;
}
.info-grid .school-info-card:nth-child(2).fade-in {
    animation-delay: 0.7s;
}
*/

/* Layout Grid untuk Info Card */
.info-grid {
    display: grid;
    grid-template-columns: 1fr; /* Default 1 kolom di HP */
    gap: 20px;
}

/* Media Query untuk 2 kolom di layar lebar */
@media (min-width: 768px) {
    .info-grid {
        /* 2 kolom di layar lebar */
        grid-template-columns: 1fr 1fr;
    }
}


/* ▼▼ KODE BARU: EFEK UNTUK HP DAN DESKTOP (PENGGANTI) ▼▼ */

/* 1. Versi HP (max-width: 768px) -> Animasi Pulsing */
@media (max-width: 768px) {
    /* Hilangkan :hover di HP, karena tidak ada mouse */
    .hero-section:hover,
    .profile-card:hover,
    .school-info-card:hover {
        transform: none;
        box-shadow: 0 5px 15px rgba(0,0,0,0.3);
        border-color: var(--grid-border);
    }

    /* ▼▼ FIX: Gabungkan animasi, jangan timpa ▼▼ */
    .profile-card.fade-in {
        animation: fadeIn 0.6s ease-out 0.3s forwards, 
                     pulseGlow 4s ease-in-out 1s infinite; /* '1s' delay on pulse */
    }
    .info-grid .school-info-card:nth-child(1).fade-in {
        animation: fadeIn 0.6s ease-out 0.5s forwards, 
                     pulseGlow 4s ease-in-out 2s infinite; /* '2s' delay on pulse */
    }
    .info-grid .school-info-card:nth-child(2).fade-in {
        animation: fadeIn 0.6s ease-out 0.7s forwards,
                     pulseGlow 4s ease-in-out 3s infinite; /* '3s' delay on pulse */
    }
    /* ▲▲ FIX SELESAI ▲▲ */

    /* ▼▼ FIX 2: Kecilkan tombol di HP agar muat ▼▼ */
    .button,
    .button.button-primary {
        font-size: 1.2rem; /* Kecilkan font tombol */
        padding: 12px 20px; /* Kecilkan padding */
    }
    /* ▲▲ FIX 2 SELESAI ▲▲ */
}

/* 2. Versi Desktop (min-width: 769px) -> Tetap pakai :hover */
@media (min-width: 769px) {
    
    /* Terapkan 'fadeIn' standar untuk desktop */
    .profile-card.fade-in {
        animation: fadeIn 0.6s ease-out 0.3s forwards;
    }
    .info-grid .school-info-card:nth-child(1).fade-in {
        animation: fadeIn 0.6s ease-out 0.5s forwards;
    }
    .info-grid .school-info-card:nth-child(2).fade-in {
        animation: fadeIn 0.6s ease-out 0.7s forwards;
    }
    
    /* Terapkan :hover untuk desktop */
    .hero-section:hover,
    .profile-card:hover,
    .school-info-card:hover {
        transform: translateY(-5px);
        border-color: var(--accent-color);
        box-shadow: 0 10px 25px rgba(0,0,0,0.5), 0 0 15px var(--accent-color);
    }
}
/* ▲▲ KODE BARU SELESAI ▲▲ */


/* Subjudul di kartu info */
.school-card-subtitle {
    font-size: 1rem;
    color: #ccc;
    text-align: center;
    margin-top: -10px;
    margin-bottom: 20px;
}


/* === [INI BAGIAN PENTING] STYLE DROPDOWN EVENT === */

.event-selector-container {
    margin-bottom: 20px;
    text-align: center;
    border-bottom: 2px solid var(--grid-border);
    padding-bottom: 20px;
    
    /* ▼▼ PERBAIKAN ALIGNMENT ▼▼ */
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap; /* Biar rapi di HP */
    gap: 10px; /* Jarak antara label dan select */
    /* ▲▲ PERBAIKAN ALIGNMENT ▲▲ */
}

.event-selector-container label {
    font-size: 1.1rem; /* Perbesar sedikit labelnya */
    margin-right: 5px; /* Kurangi margin, pakai 'gap' */
    color: #ccc;
}

#event-select {
    font-family: 'Poppins', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    padding: 10px 15px; /* Buat padding lebih nyaman */
    border-radius: 8px;
    border: 2px solid var(--grid-border);
    background-color: #333; /* Buat lebih gelap */
    color: var(--accent-color); /* Samakan dengan warna aksen */
    cursor: pointer;
    max-width: 100%; /* Agar tidak 'overflow' di HP */

    /* ▼▼ HILANGKAN TAMPILAN DEFAULT ▼▼ */
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    /* ▲▲ HILANGKAN TAMPILAN DEFAULT ▲▲ */
    
    /* ▼▼ Tambahkan panah kustom (background) ▼▼ */
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23f0f0f0'%3E%3Cpath d='M8 11.207l-4.6-4.6L4.8 5.207 8 8.4l3.2-3.2 1.4 1.4-4.6 4.6z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 15px center;
    background-size: 16px;
    padding-right: 45px; /* Beri ruang untuk panah */
    /* ▲▲ Panah kustom ▲▲ */
}

#event-select:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 10px var(--accent-color);
}

.event-title-display {
    font-size: 1.5rem;
    color: var(--score-color); /* Kuning, biar sama kayak skor */
    text-align: center;
    margin-top: 0;
    margin-bottom: 20px;
    /* Animasi sederhana */
    animation: fadeIn 0.5s ease-out;
}

/* ▼▼ Keyframes untuk Teks Gradien (BARU) ▼▼ */
@keyframes textShine {
    0% { background-position: 200% center; }
    100% { background-position: -200% center; }
}
/* ▲▲ Keyframes untuk Teks Gradien (BARU) ▲▲ */

/* ▼▼ KEYFRAMES BARU UNTUK PULSING GLOW ▼▼ */
@keyframes pulseGlow {
    0% {
        box-shadow: 0 5px 15px rgba(0,0,0,0.3), 0 0 10px rgba(0, 255, 204, 0.3);
        border-color: var(--grid-border);
    }
    50% {
        box-shadow: 0 5px 15px rgba(0,0,0,0.3), 0 0 25px rgba(0, 255, 204, 1);
        border-color: var(--accent-color);
    }
    100% {
        box-shadow: 0 5px 15px rgba(0,0,0,0.3), 0 0 10px rgba(0, 255, 204, 0.3);
        border-color: var(--grid-border);
    }
}
/* ▲▲ AKHIR KEYFRAMES BARU ▲▲ */

/* ▼▼ STYLE BARU UNTUK INFO EVENT AKTIF DI LEADERBOARD ▼▼ */
.active-event-display {
    text-align: center;
    font-size: 1rem;
    color: #ccc;
    padding: 10px;
    background-color: #333;
    border: 2px solid var(--grid-border);
    border-radius: 8px;
    margin-bottom: 20px; /* Jarak ke dropdown */
    max-width: 90%;
    margin-left: auto;
    margin-right: auto;
}
.active-event-display strong {
    color: var(--score-color); /* Warna kuning */
    font-weight: 700;
}
/* ▲▲ AKHIR STYLE BARU ▲▲ */