kelompok06-2048/Leaderboard.css
Evelyn Sucitro 5a27928bca Update
2025-12-03 13:46:36 +07:00

236 lines
5.5 KiB
CSS

/* Leaderboard.css */
/* Main Container */
.container {
margin-top: 70px;
position: relative;
z-index: 2;
background: rgba(20, 0, 40, 0.65);
border-radius: 20px;
padding: 40px 100px;
width: 98%;
max-width: 1600px;
border: 2px solid rgba(0, 255, 255, 0.4);
box-shadow:
0 0 25px rgba(0, 255, 255, 0.4),
0 0 60px rgba(255, 0, 255, 0.25),
inset 0 0 40px rgba(0, 255, 255, 0.2);
animation: scanGlow 4s ease-in-out infinite alternate;
}
@keyframes scanGlow {
0% {
border-color: #00eaff;
box-shadow:
0 0 20px rgba(0, 255, 255, 0.3),
0 0 40px rgba(0, 255, 255, 0.2),
inset 0 0 25px rgba(0, 255, 255, 0.1);
}
100% {
border-color: #ff00ff;
box-shadow:
0 0 30px rgba(255, 0, 255, 0.4),
0 0 70px rgba(255, 0, 255, 0.3),
inset 0 0 35px rgba(255, 0, 255, 0.2);
}
}
/* Title */
h1 {
text-align: center;
font-size: 2.2rem;
margin-bottom: 35px;
background: linear-gradient(90deg, #00d9ff 0%, #ff00ff 100%);
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
background-clip: text;
text-transform: uppercase;
letter-spacing: 3px;
font-weight: bold;
display: flex;
align-items: center;
justify-content: center;
gap: 15px;
}
h1::before {
content: '🏆';
-webkit-text-fill-color: initial;
font-size: 2rem;
filter: drop-shadow(0 0 10px #ffd700);
}
/* Stats Layout */
.stats-container {
display: grid;
grid-template-columns: repeat(3, 1fr);
gap: 15px;
margin-bottom: 30px;
}
/* Leaderboard List Structure */
.leaderboard-list {
list-style: none;
display: flex;
flex-direction: column;
gap: 14px;
max-height: 500px;
overflow-y: auto;
padding-right: 10px;
padding-bottom: 5px;
margin-bottom: 20px;
}
.leaderboard-list::-webkit-scrollbar {
width: 10px;
}
.leaderboard-list::-webkit-scrollbar-track {
background: rgba(30, 0, 50, 0.5);
border-radius: 10px;
border: 1px solid rgba(0, 255, 255, 0.1);
}
.leaderboard-list::-webkit-scrollbar-thumb {
background: linear-gradient(180deg, #00eaff, #ff00ff);
border-radius: 10px;
box-shadow: 0 0 10px rgba(0, 234, 255, 0.5);
}
.leaderboard-list::-webkit-scrollbar-thumb:hover {
background: linear-gradient(180deg, #00ffff, #ff66ff);
box-shadow: 0 0 15px rgba(0, 234, 255, 0.8);
}
/* Leaderboard Item Wrapper */
.leaderboard-item {
display: flex;
align-items: center;
gap: 20px;
padding: 18px 25px;
border-radius: 14px;
background: rgba(30, 0, 50, 0.5);
border: 1px solid rgba(255, 255, 255, 0.1);
transition: all 0.3s ease;
position: relative;
}
.leaderboard-item:hover {
transform: translateX(6px);
border-color: rgba(0, 255, 255, 0.5);
box-shadow: 0 0 20px rgba(0, 255, 255, 0.3);
}
/* === RANK LOGIC & THEMES === */
/* RANK 1: CYAN NEON */
.leaderboard-item.rank-1,
.your-rank-container.rank-1 .your-rank-item {
background: linear-gradient(90deg, rgba(0, 234, 255, 0.25) 0%, rgba(0, 234, 255, 0.05) 100%);
border: 2px solid #00eaff;
box-shadow: 0 0 15px rgba(0, 234, 255, 0.3);
}
.rank-1 .rank-badge {
background: #00eaff;
color: #000;
box-shadow: 0 0 15px #00eaff;
animation: pulseBadge 2s ease-in-out infinite;
}
.rank-1 .player-name {
background: none;
-webkit-text-fill-color: initial;
background-clip: border-box;
font-size: 20px;
color: #ffffff;
text-shadow: 0 0 10px rgba(0, 234, 255, 0.8);
filter: none;
}
.rank-1 .score-value {
font-size: 22px !important;
background: none !important;
-webkit-text-fill-color: initial !important;
color: #ffffff !important;
text-shadow: 0 0 10px #00eaff, 0 0 20px rgba(0, 234, 255, 0.4) !important;
filter: none !important;
}
/* RANK 2: MAGENTA NEON */
.leaderboard-item.rank-2,
.your-rank-container.rank-2 .your-rank-item {
background: linear-gradient(90deg, rgba(255, 0, 255, 0.25) 0%, rgba(255, 0, 255, 0.05) 100%);
border: 2px solid #ff00ff;
box-shadow: 0 0 15px rgba(255, 0, 255, 0.3);
}
.rank-2 .rank-badge {
background: #ff00ff;
color: #fff;
box-shadow: 0 0 15px #ff00ff;
}
.rank-2 .score-value {
color: #fff;
text-shadow: 0 0 10px #ff00ff;
}
.rank-2 .player-score {
color: #ff00ff;
}
/* RANK 3: VIOLET NEON */
.leaderboard-item.rank-3,
.your-rank-container.rank-3 .your-rank-item {
background: linear-gradient(90deg, rgba(138, 43, 226, 0.25) 0%, rgba(138, 43, 226, 0.05) 100%);
border: 2px solid #8a2be2;
box-shadow: 0 0 15px rgba(138, 43, 226, 0.3);
}
.rank-3 .rank-badge {
background: #8a2be2;
color: #fff;
box-shadow: 0 0 15px #8a2be2;
}
.rank-3 .score-value {
color: #fff;
text-shadow: 0 0 10px #8a2be2;
}
.rank-3 .player-score {
color: #a855f7;
}
/* RANK OTHER */
.leaderboard-item.rank-other {
background: rgba(255, 255, 255, 0.05);
border: 1px solid rgba(255, 255, 255, 0.1);
}
.rank-other .rank-badge {
background: rgba(60, 20, 80, 0.8);
color: rgba(200, 200, 255, 0.7);
border: 1px solid rgba(0, 255, 255, 0.3);
}
/* Your Rank Section Layout */
.your-rank-container {
background: transparent;
border: none;
box-shadow: none;
padding: 0;
margin-top: 20px;
}
.your-rank-item {
display: flex;
align-items: center;
gap: 20px;
padding: 18px 25px;
border-radius: 14px;
background: linear-gradient(135deg, rgba(0, 255, 136, 0.15), rgba(0, 0, 0, 0.5));
border: 2px solid rgba(0, 255, 136, 0.5);
box-shadow: 0 0 20px rgba(0, 255, 136, 0.3);
}