/* --- BI?N MÀU S?C CH? ??O --- */
:root {
    --primary: #9d4edd;    /* Tím Kuromi */
    --secondary: #ff00ff;  /* H?ng Neon */
    --bg-dark: #0a0a0a;    /* ?en sâu */
    --card-bg: rgba(255, 255, 255, 0.03);
    --text-main: #ffffff;
    --text-dim: #b0b0b0;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* --- RESET & CÀI ??T CHUNG --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    font-family: 'Space Grotesk', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.flex-sb {
    display: flex;
    justify-content: space-between;
    align-items: center;
}


.glass-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 12px 0;
    background: rgba(10, 10, 10, 0.4);
    backdrop-filter: blur(15px);
    z-index: 99999 !important;
    border-bottom: 1px solid rgba(157, 78, 237, 0.1);
}

.nav-container {
    width: 90%; /* ?? r?ng t?ng th? */
    max-width: 1400px; /* Gi?i h?n ?? r?ng t?i ?a ?? không b? tràn quá ?à */
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 10px; /* Thu nh? kho?ng cách gi?a các nút m?t chút cho thanh thoát */
}

/* Fix l?i button không b? trôi */
.nav-links a {
    margin-left: 15px; /* Gi?m margin ?? cân ??i v?i gap */
    white-space: nowrap;
    position: relative;
    z-index: 100000;
}
.logo-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-img {
    width: 45px;
    height: 45px;
    border-radius: 12px;
    box-shadow: 0 0 15px var(--primary);
}

.logo-text {
    font-weight: 700;
    font-size: 1.5rem;
    letter-spacing: 1px;
}

.logo-text small {
    color: var(--primary);
    font-size: 0.8rem;
}

.nav-links a {
    color: var(--text-main);
    text-decoration: none;
    margin-left: 30px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9); 
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    transition: var(--transition);
}

.nav-links a:hover {
    color: var(--primary);
    text-shadow: 0 0 10px var(--primary);
}

/* --- NÚT B?M (BUTTONS) --- */
.btn-glow {
    background: var(--primary);
    padding: 12px 25px;
    border-radius: 12px;
    box-shadow: 0 0 20px rgba(157, 78, 237, 0.4);
    font-weight: 700 !important;
}

.btn-glow:hover {
    box-shadow: 0 0 30px rgba(157, 78, 237, 0.7);
    transform: scale(1.05);
}

.btn-main {
    display: inline-block;
    padding: 16px 40px;
    background: linear-gradient(45deg, var(--primary), var(--secondary));
    color: white;
    text-decoration: none;
    border-radius: 15px;
    font-weight: 700;
    font-size: 1.1rem;
    transition: var(--transition);
}

.btn-outline {
    display: inline-block;
    padding: 16px 40px;
    border: 2px solid rgba(255, 255, 255, 0.1);
    color: white;
    text-decoration: none;
    border-radius: 15px;
    font-weight: 700;
    margin-left: 15px;
    transition: var(--transition);
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: white;
}

/* --- HERO SECTION --- */
.hero-v2 {
    padding: 200px 0 100px;
}

.badge-new {
    background: rgba(157, 78, 237, 0.15);
    color: var(--primary);
    padding: 8px 20px;
    border-radius: 50px;
    display: inline-block;
    font-weight: 700;
    font-size: 0.9rem;
    margin-bottom: 20px;
    border: 1px solid rgba(157, 78, 237, 0.3);
}

.main-title {
    font-size: 4rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 25px;
}

.purple-shimmer {
    background: linear-gradient(90deg, #9d4edd, #ff00ff, #ffffff, #9d4edd);
    background-size: 300% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: shimmer 5s infinite;
}

@keyframes shimmer {
    to { background-position: 300% center; }
}

.sub-text {
    color: var(--text-dim);
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto 40px;
}

/* --- FEATURES SECTION --- */
.features-v2 {
    padding: 100px 0;
}

.section-head {
    text-align: center;
    margin-bottom: 60px;
}

.section-head h2 {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.card-glass {
    padding: 40px;
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 25px;
    transition: var(--transition);
    text-align: center;
}

.card-glass:hover {
    transform: translateY(-15px);
    background: rgba(157, 78, 237, 0.05);
    border-color: var(--primary);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.icon-v2 {
    font-size: 3rem;
    color: var(--primary);
    margin-bottom: 25px;
    display: block;
}

.card-glass h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.card-glass p {
    color: var(--text-dim);
}
/* --- LEADERBOARD 3 C?T (V2) --- */
.rank-v2 {
    padding: 100px 0;
    background: linear-gradient(to bottom, transparent, rgba(157, 78, 237, 0.02));
}

.leaderboard-3col {
    display: flex;
    align-items: flex-end;
    gap: 20px;
    margin-top: 50px;
}

.rank-col {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 25px 25px 0 0;
    padding: 20px 10px 0;
    transition: var(--transition);
}

/* C?t gi?a (??i gia) cao nh?t */
.center-col {
    transform: scale(1.08);
    z-index: 2;
    background: rgba(157, 78, 237, 0.05);
    border-color: var(--primary);
    box-shadow: 0 0 30px rgba(157, 78, 237, 0.2);
}

.center-col h3 { color: #ffd700; }

.list-data {
    width: 100%;
    max-height: 420px; /* ?? dài cho 10 ng??i */
    overflow-y: auto;
    padding: 15px;
}

/* Custom thanh cu?n tím */
.list-data::-webkit-scrollbar { width: 4px; }
.list-data::-webkit-scrollbar-thumb { background: var(--primary); border-radius: 10px; }

.rank-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    font-size: 0.9rem;
    transition: 0.2s;
}

.rank-item:hover { background: rgba(255, 255, 255, 0.02); }

.rank-item .val {
    color: var(--primary);
    font-weight: 700;
    display: flex;
    align-items: center;
}

/* --- LÀM N?I B?T EMOJI & COIN (C?p nh?t CSS) --- */

/* Hi?u ?ng phát sáng nh? theo màu vàng cho Coin JPG/PNG */
.rank-coin-static {
    width: 20px !important;  /* Kích th??c nh? xinh */
    height: 20px !important;
    vertical-align: middle !important;
    margin-left: 8px !important;
    display: inline-block !important;
    object-fit: contain !important;
    
    /* --- THÊM HI?U ?NG PHÁT SÁNG ? ?ÂY --- */
    filter: drop-shadow(0 0 6px var(--primary)); /* Phát sáng màu tím ch? ??o */
    transition: transform 0.2s; /* Hi?u ?ng m??t mà khi di chu?t */
}

/* Hi?u ?ng phát sáng tím Kuromi cho GIF Cá và GIF Tim */
.rank-emoji-gif {
    width: 22px;
    height: 22px;
    vertical-align: middle;
    margin-left: 6px;
    object-fit: contain;

    /* --- THÊM HI?U ?NG PHÁT SÁNG ? ?ÂY --- */
    filter: drop-shadow(0 0 5px var(--primary)); /* Phát sáng màu tím */
    transition: transform 0.2s;
}

/* Thêm hi?u ?ng khi di chu?t vào hàng: Emoji to h?n và xoay nh? */
.rank-item:hover .rank-coin-static {
    transform: scale(1.2) rotate(5deg);
}

.rank-item:hover .rank-emoji-gif {
    transform: scale(1.2) rotate(-5deg);
}

/* B?c chân c?t */
.pillar { width: 100%; border-radius: 15px 15px 0 0; }
.center-pillar { height: 100px; background: linear-gradient(to bottom, var(--primary), transparent); opacity: 0.2; }
.side-pillar { height: 60px; background: linear-gradient(to bottom, rgba(255,255,255,0.1), transparent); opacity: 0.1; }

.crown-icon { font-size: 1.8rem; color: #ffd700; margin-bottom: 5px; filter: drop-shadow(0 0 8px #ffd700); }

/* --- LEGAL SECTION --- */
.legal-v2 { padding: 80px 0; }
/* --- FIX L?I B?M 1 BÊN DĂN C? 2 --- */
.legal-grid {
    display: flex; /* Ho?c grid tùy code c? c?a b?n */
    gap: 20px;
    margin-top: 40px;
        
    /* D̉NG QUAN TR?NG NH?T: Ép các c?t canh l? trên, không t? dăn chi?u cao */
    align-items: flex-start; 

    justify-content: center;
}

/* ??m b?o các card có chi?u cao t? ??ng theo n?i dung */
.legal-card-glass {
    flex: 1; /* Chia ??u chi?u r?ng */
    height: auto; /* Chi?u cao t? ??ng */
    background: var(--card-bg);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 10px; /* Gi?m padding m?t chút ?? summary khít h?n */
}

/* Làm m??t hi?u ?ng m? */
.legal-content {
    padding: 20px;
    border-top: 1px solid rgba(157, 78, 237, 0.2);
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-5px); }
    to { opacity: 1; transform: translateY(0); }
}
/* --- FOOTER --- */
.footer-v2 {
    padding: 60px 0;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--text-dim);
}

/* --- RESPONSIVE --- */
@media (max-width: 850px) {
    .leaderboard-3col { flex-direction: column; align-items: stretch; gap: 40px; }
    .center-col { transform: scale(1); order: -1; }
    .main-title { font-size: 2.5rem; }
    .nav-links { display: none; }
}
/* --- PH?N N?N ??NG M?I (Dán vào cu?i file) --- */
.visual-wrapper {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    z-index: -2; /* N?m d??i cùng */
    background: #020202;
    overflow: hidden;
}

.main-gradient {
    position: absolute;
    width: 140%; height: 140%;
    top: -20%; left: -20%;
    background: 
        radial-gradient(circle at 20% 30%, rgba(157, 78, 237, 0.2) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(255, 0, 255, 0.15) 0%, transparent 50%);
    filter: blur(80px);
    animation: breath 12s infinite alternate ease-in-out;
}

.grid-lines {
    position: absolute;
    width: 200%; height: 200%;
    bottom: -60%; left: -50%;
    background-image: 
        linear-gradient(rgba(157, 78, 237, 0.12) 1px, transparent 1px),
        linear-gradient(90deg, rgba(157, 78, 237, 0.12) 1px, transparent 1px);
    background-size: 50px 50px;
    transform: perspective(600px) rotateX(65deg);
    animation: gridRolling 15s linear infinite;
}

.particles {
    position: absolute;
    width: 100%; height: 100%;
    background-image: radial-gradient(circle, #fff 1px, transparent 1px);
    background-size: 80px 80px;
    opacity: 0.05;
    animation: particleSlide 40s linear infinite;
}

@keyframes breath { 0% { transform: scale(1); opacity: 0.5; } 100% { transform: scale(1.1); opacity: 0.8; } }
@keyframes gridRolling { from { background-position: 0 0; } to { background-position: 0 50px; } }
@keyframes particleSlide { from { background-position: 0 0; } to { background-position: 400px 800px; } }

/* ??m b?o n?i dung c? n?i lên trên n?n m?i */
nav, section, footer {
    position: relative;
    z-index: 1;
}
/* --- NÚT PHÁP LƯ B?N NH? G?N --- */
.legal-card-link {
    text-decoration: none;
    color: inherit;
    /* THAY ??I D̉NG NÀY */
    flex: initial; 
    width: 300px; /* ?? r?ng c? ??nh cho m?i nút */
    transition: transform 0.3s ease;
}
.legal-card-glass {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 20px; /* Thu nh? ph?n ??m bên trong */
    background: rgba(157, 78, 237, 0.05);
    border: 1px solid rgba(157, 78, 237, 0.2);
    border-radius: 12px; /* Bo góc nh? h?n cho cân ??i */
    cursor: pointer;
    transition: all 0.3s ease;
}

.legal-card-glass i:first-child {
    font-size: 1.1rem; /* Thu nh? icon */
    color: var(--primary);
}

.legal-card-glass span {
    font-size: 0.95rem; /* Thu nh? ch? */
    font-weight: 600;
}

.legal-card-glass i.fa-arrow-right {
    font-size: 0.8rem; /* Icon m?i tên nh? l?i */
    opacity: 0.5;
}

.legal-card-link:hover .legal-card-glass {
    background: rgba(157, 78, 237, 0.12);
    border-color: var(--primary);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(157, 78, 237, 0.2);
}
/* --- STYLE CHO TRANG PHÁP LƯ RIÊNG BI?T --- */
.legal-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

./* --- FOOTER & LEGAL SIÊU G?N (GI?NG ?NH M?U) --- */
.footer-v2 {
    padding: 30px 0;
    border-top: 1px solid rgba(157, 78, 237, 0.05);
    background: rgba(5, 5, 5, 0.5);
}

.footer-container {
    width: 90%;
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    color: var(--text-dim);
}

.footer-left {
    display: flex;
    gap: 20px;
}

.footer-left a {
    color: var(--text-dim);
    text-decoration: none;
    transition: 0.3s;
}

.footer-left a:hover {
    color: var(--primary);
}

.footer-right {
    text-align: right;
    opacity: 0.6;
}

/* --- MINI GAME CÂU CÁ (LAYOUT G?N) --- */
.fishing-game-card {
    background: rgba(157, 78, 237, 0.03);
    border: 1px solid rgba(157, 78, 237, 0.1);
    border-radius: 20px;
    padding: 20px;
    margin: 40px auto;
    max-width: 500px;
    text-align: center;
}

.fish-btn {
    background: var(--primary);
    border: none;
    padding: 10px 25px;
    border-radius: 10px;
    color: #fff;
    cursor: pointer;
    font-weight: 700;
    transition: 0.3s;
}

.fish-btn:disabled { opacity: 0.5; cursor: not-allowed; }

/* Thông báo câu cá */
#fish-result {
    margin-top: 15px;
    font-weight: 500;
    min-height: 24px;
    color: var(--secondary);
}
/* --- NEON LINK STYLE (NO GLASS) --- */
#direct-bond {
    padding: 100px 0;
}

.bond-area {
    position: relative;
    z-index: 5; /* N?i trên l??i n?n */
}

.bond-main-row {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;
}

/* Avatar Border Neon S?c Nét */
.avatar-border-neon {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    padding: 3px;
    position: relative;
    transition: 0.5s;
}

.avatar-border-neon img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #000; /* T?o kho?ng h? gi?a ?nh và vi?n phát sáng */
}

.avatar-border-neon.pink { 
    background: #ff00ff; 
    box-shadow: 0 0 25px rgba(255, 0, 255, 0.4); 
}
.avatar-border-neon.purple { 
    background: #9d4edd; 
    box-shadow: 0 0 25px rgba(157, 78, 237, 0.4); 
}

/* Text Meta bên d??i Avatar */
.user-meta { text-align: center; margin-top: 20px; }
.user-meta h4 { font-weight: 800; font-size: 1.2rem; letter-spacing: 2px; }
.user-meta span { font-size: 0.7rem; font-weight: 700; padding: 3px 10px; border-radius: 4px; }
.tag-pink { color: #ff00ff; border: 1px solid rgba(255, 0, 255, 0.3); }
.tag-purple { color: #9d4edd; border: 1px solid rgba(157, 78, 237, 0.3); }

/* C?u n?i Neon gi?a 2 ng??i */
.neon-bridge {
    flex: 1;
    max-width: 350px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.bridge-status { display: flex; align-items: center; gap: 10px; }
.heartbeat { color: #ff0055; font-size: 1.4rem; animation: heartBeat 1.5s infinite; }
.days-count { font-weight: 900; font-size: 1.3rem; letter-spacing: 1px; color: #fff; }

.neon-line-flow {
    width: 100%;
    height: 2px;
    background: rgba(255, 255, 255, 0.1);
    position: relative;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(157, 78, 237, 0.2);
}

.glow-dot {
    position: absolute;
    width: 60px;
    height: 100%;
    background: linear-gradient(90deg, transparent, #fff, transparent);
    filter: blur(2px);
    animation: flowLight 4s infinite linear;
}

@keyframes flowLight {
    0% { left: -20%; opacity: 0; }
    50% { opacity: 1; }
    100% { left: 100%; opacity: 0; }
}

.intimacy-score { text-align: center; }
.intimacy-score small { display: block; font-size: 0.65rem; color: var(--text-dim); letter-spacing: 4px; margin-bottom: 5px; }
.intimacy-score span { font-size: 2.5rem; font-weight: 900; }

/* Mobile */
@media (max-width: 800px) {
    .bond-main-row { flex-direction: column; }
    .neon-line-flow { width: 2px; height: 100px; }
    .glow-dot { width: 100%; height: 40px; background: linear-gradient(to bottom, transparent, #fff, transparent); animation: flowVertical 4s infinite linear; }
}

@keyframes flowVertical {
    0% { top: -20%; opacity: 0; }
    50% { opacity: 1; }
    100% { top: 100%; opacity: 0; }
}
.hero-stats-mini {
    margin-top: 15px;
    font-size: 0.75rem; /* Ch? siêu nh? */
    color: var(--text-dim); /* Màu xám m? */
    opacity: 0.6; /* Làm m? thêm ?? tinh t? */
    letter-spacing: 0.5px;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 8px;
}

.hero-stats-mini i {
    font-size: 0.65rem;
    color: var(--primary); /* Ch? ?? icon có chút màu nh?t */
    opacity: 0.8;
}

.hero-stats-mini .divider {
    margin: 0 5px;
    opacity: 0.3;
}

/* Hi?u ?ng di chu?t nh? (không b?t m?t) */
.hero-stats-mini:hover {
    opacity: 0.9;
    transition: 0.3s;
}
/* --- FEATURES NEON GRID (NO GLASS) --- */
.features-v2 {
    padding: 100px 0;
}

.features-neon-grid {
    display: grid;
    /* T? ??ng ?i?u ch?nh s? c?t, t?i ?a 3 c?t trên PC */
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); 
    gap: 60px 40px; /* Kho?ng cách hàng 60px, c?t 40px */
    margin-top: 60px;
}

.feature-item-neon {
    text-align: center;
    padding: 20px;
    transition: var(--transition);
    position: relative;
}

/* Icon ṿng tṛn phát sáng l? l?ng */
.feature-icon-circle {
    width: 90px;
    height: 90px;
    margin: 0 auto 30px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 2.5rem;
    background: var(--bg-dark); /* N?n t?i ?? icon n?i b?t */
    transition: 0.5s;
    position: relative;
    z-index: 2;
}

.feature-icon-circle.pink { 
    border: 2px solid var(--secondary);
    color: var(--secondary);
    box-shadow: 0 0 20px rgba(255, 0, 255, 0.2); 
}

.feature-icon-circle.purple { 
    border: 2px solid var(--primary);
    color: var(--primary);
    box-shadow: 0 0 20px rgba(157, 78, 237, 0.2); 
}

/* Hi?u ?ng Hover t?i gi?n, sang tr?ng */
.feature-item-neon:hover .feature-icon-circle {
    transform: translateY(-15px) scale(1.05); /* L? l?ng cao h?n */
    background: var(--primary);
    color: #fff;
    border-color: transparent;
    box-shadow: 0 0 40px var(--primary);
}

.feature-item-neon h3 {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 15px;
    letter-spacing: 1px;
}

.feature-item-neon p {
    color: var(--text-dim);
    font-size: 0.95rem;
    line-height: 1.7;
    padding: 0 15px;
}
/* --- CLEAN NEON DASHBOARD --- */
.neon-dashboard-frame {
    border: 1px solid rgba(157, 78, 237, 0.2); /* Vi?n tím c?c m?nh */
    border-radius: 40px;
    padding: 60px 30px;
    position: relative;
    background: rgba(0, 0, 0, 0.2); /* Ch? h?i t?i nh? ?? tách bi?t n?n */
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.8);
}

.leaderboard-main-grid {
    display: grid;
    grid-template-columns: 1fr 1.1fr 1fr; /* C?t gi?a r?ng h?n m?t chút */
    gap: 30px;
    margin-top: 40px;
}

.rank-column {
    padding: 20px;
    border-radius: 20px;
}

.featured {
    background: radial-gradient(circle at top, rgba(157, 78, 237, 0.08) 0%, transparent 70%);
}

.column-label {
    text-align: center;
    font-size: 0.9rem;
    letter-spacing: 2px;
    margin-bottom: 30px;
    opacity: 0.7;
}

/* --- VINH DANH TOP 1-5 ??C BI?T --- */
.rank-item {
    display: flex;
    justify-content: space-between;
    padding: 14px 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    font-size: 0.85rem;
    transition: 0.3s;
}

/* Hi?u ?ng chung cho Top 5: Ch? to h?n và ??m h?n */
.top-1, .top-2, .top-3, .top-4, .top-5 {
    border-bottom: 1px solid rgba(157, 78, 237, 0.15);
}

.top-1 { 
    color: #ffd700; 
    font-size: 1.1rem; 
    background: linear-gradient(90deg, rgba(255, 215, 0, 0.1), transparent);
    border-radius: 8px;
}

.top-2 { color: #e0e0e0; font-size: 1rem; }
.top-3 { color: #cd7f32; font-size: 0.95rem; }
.top-4, .top-5 { color: var(--primary); font-weight: 700; }

.val { font-family: 'monospace'; font-weight: 700; }

/* Icon trang trí trung tâm */
.big-crown {
    text-align: center;
    font-size: 2rem;
    color: #ffd700;
    margin-bottom: 10px;
    filter: drop-shadow(0 0 10px rgba(255, 215, 0, 0.5));
}
/* --- PHÂN C?P MÀU S?C TOP 1-5 (SANG TR?NG) --- */

/* Top 1: Vàng Gold r?c r? kèm hào quang */
.top-1 {
    color: #ffd700 !important;
    background: rgba(255, 215, 0, 0.08);
    border-left: 3px solid #ffd700;
    font-size: 1rem;
    font-weight: 800;
}
.top-1 .val { text-shadow: 0 0 10px rgba(255, 215, 0, 0.5); }

/* Top 2: B?c Silver thanh l?ch */
.top-2 {
    color: #e0e0e0 !important;
    background: rgba(224, 224, 224, 0.05);
    border-left: 3px solid #e0e0e0;
    font-weight: 700;
}

/* Top 3: ??ng Bronze tr?m ?m */
.top-3 {
    color: #cd7f32 !important;
    background: rgba(205, 127, 50, 0.05);
    border-left: 3px solid #cd7f32;
    font-weight: 600;
}

/* Top 4 & 5: Tím Neon th??ng hi?u */
.top-4, .top-5 {
    color: var(--secondary) !important; /* Màu h?ng/tím neon */
    background: rgba(255, 0, 255, 0.03);
    border-left: 3px solid var(--secondary);
}

/* Các h?ng c̣n l?i: Tr?ng m? tinh t? */
.rank-item:not(.top-1):not(.top-2):not(.top-3):not(.top-4):not(.top-5) {
    color: var(--text-dim);
    opacity: 0.8;
}

/* Tên ??m h?n cho Top 5 */
.top-1 strong, .top-2 strong, .top-3 strong, .top-4 strong, .top-5 strong {
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
/* --- C?U H̀NH CU?N CHO DANH SÁCH --- */
.list-wrapper {
    width: 100%;
    max-height: 400px; /* Gi?i h?n chi?u cao ?? g?n h?n */
    overflow-y: auto;  /* Kích ho?t kéo xu?ng d?c */
    padding-right: 10px;
    margin-top: 10px;
}

/* Tùy ch?nh thanh cu?n (Scrollbar) màu tím siêu m?nh */
.list-wrapper::-webkit-scrollbar {
    width: 4px;
}

.list-wrapper::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.02);
    border-radius: 10px;
}

.list-wrapper::-webkit-scrollbar-thumb {
    background: linear-gradient(to bottom, var(--primary), var(--secondary));
    border-radius: 10px;
}

/* ??m b?o các item trong danh sách không b? dính sát vi?n khi cu?n */
.rank-item {
    margin-bottom: 4px;
    border-radius: 8px;
}