/* ============================================
   RESET DAN BASE STYLES
   ============================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    background: linear-gradient(135deg, #1a237e 0%, #311b92 100%);
    color: #fff;
    min-height: 100vh;
    overflow-x: hidden;
    line-height: 1.6;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* ============================================
   TYPOGRAPHY
   ============================================ */
h1, h2, h3, h4 {
    font-family: 'Roboto Slab', serif;
    font-weight: 600;
    line-height: 1.2;
}

h1 {
    font-size: 2.8rem;
}

h2 {
    font-size: 2.2rem;
}

h3 {
    font-size: 1.6rem;
}

p {
    margin-bottom: 1rem;
}

a {
    color: #4ecdc4;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #ffd54f;
}

/* ============================================
   HEADER
   ============================================ */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    backdrop-filter: blur(10px);
    margin-bottom: 30px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 20px;
}

.logo {
    width: 80px;
    height: 80px;
    object-fit: contain;
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.3));
    animation: float 3s ease-in-out infinite;
}

.logo-container h1 {
    font-size: 2.5rem;
    background: linear-gradient(90deg, #ff6b6b, #4ecdc4);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    letter-spacing: 1px;
}

.header-info {
    display: flex;
    align-items: center;
    gap: 30px;
}

.sound-toggle {
    font-size: 1.5rem;
    cursor: pointer;
    padding: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sound-toggle:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1) rotate(10deg);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.timer {
    font-size: 1.2rem;
    font-weight: 500;
    padding: 12px 24px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    min-width: 150px;
    text-align: center;
}

/* ============================================
   MAIN CONTENT & SCREENS
   ============================================ */
.main-content {
    flex: 1;
    position: relative;
}

.screen {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 40px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    animation: fadeIn 0.5s ease;
}

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    animation: fadeIn 0.3s ease;
}

/* ============================================
   MAIN MENU
   ============================================ */
.menu-content {
    text-align: center;
}

.menu-header h2 {
    font-size: 3rem;
    margin-bottom: 10px;
    background: linear-gradient(90deg, #ff6b6b, #4ecdc4);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.subtitle {
    font-size: 1.3rem;
    color: #b3e5fc;
    margin-bottom: 40px;
    font-weight: 300;
}

.menu-card {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: 40px;
    margin: 40px 0;
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.game-description {
    font-size: 1.2rem;
    line-height: 1.8;
    margin-bottom: 40px;
    color: #e3f2fd;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.menu-buttons {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.btn {
    padding: 18px 30px;
    font-size: 1.1rem;
    font-weight: 600;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    font-family: 'Poppins', sans-serif;
    letter-spacing: 0.5px;
    position: relative;
    overflow: hidden;
}

.btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 5px;
    height: 5px;
    background: rgba(255, 255, 255, 0.5);
    opacity: 0;
    border-radius: 100%;
    transform: scale(1, 1) translate(-50%);
    transform-origin: 50% 50%;
}

.btn:focus:not(:active)::after {
    animation: ripple 1s ease-out;
}

.btn-primary {
    background: linear-gradient(135deg, #ff6b6b, #ff8e53);
    color: white;
    border: 2px solid transparent;
}

.btn-primary:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(255, 107, 107, 0.4);
}

.btn-primary:active {
    transform: translateY(-2px);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(255, 255, 255, 0.1);
}

.btn-secondary:active {
    transform: translateY(-2px);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.feature {
    background: rgba(255, 255, 255, 0.05);
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.feature::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.7s ease;
}

.feature:hover::before {
    left: 100%;
}

.feature:hover {
    transform: translateY(-10px) scale(1.02);
    border-color: #4ecdc4;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
}

.feature i {
    font-size: 3rem;
    margin-bottom: 20px;
    color: #4ecdc4;
    background: linear-gradient(135deg, #4ecdc4, #2a9d8f);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.feature h3 {
    font-size: 1.4rem;
    margin-bottom: 15px;
    color: #ffd54f;
}

.feature p {
    color: #b3e5fc;
    font-size: 0.95rem;
}

/* ============================================
   LEVEL SELECTION
   ============================================ */
.level-select-content h2 {
    text-align: center;
    margin-bottom: 10px;
    color: #ffd54f;
}

.levels-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    margin: 40px 0;
}

.level-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 30px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.level-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, #4ecdc4, #ff6b6b);
}

.level-card:hover {
    transform: translateY(-8px);
    border-color: #4ecdc4;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.level-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.level-number {
    font-size: 1.3rem;
    font-weight: 700;
    color: #ffd54f;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.level-difficulty {
    padding: 6px 18px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.easy {
    background: linear-gradient(135deg, rgba(76, 175, 80, 0.2), rgba(76, 175, 80, 0.4));
    color: #81c784;
    border: 1px solid rgba(76, 175, 80, 0.3);
}

.medium {
    background: linear-gradient(135deg, rgba(255, 193, 7, 0.2), rgba(255, 193, 7, 0.4));
    color: #ffd54f;
    border: 1px solid rgba(255, 193, 7, 0.3);
}

.hard {
    background: linear-gradient(135deg, rgba(244, 67, 54, 0.2), rgba(244, 67, 54, 0.4));
    color: #ef9a9a;
    border: 1px solid rgba(244, 67, 54, 0.3);
}

.level-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: #4ecdc4;
}

.level-card p {
    color: #b3e5fc;
    margin-bottom: 20px;
    line-height: 1.6;
}

.level-stats {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
    font-size: 0.9rem;
    color: #b3e5fc;
    padding-top: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.level-stats span {
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-level {
    margin-top: 25px;
    width: 100%;
    padding: 15px;
    font-size: 1.1rem;
}

.back-button {
    text-align: center;
    margin-top: 50px;
}

/* ============================================
   GAME SCREEN
   ============================================ */
.game-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
}

.game-header h2 {
    font-size: 2rem;
    color: #ffd54f;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.game-stats {
    display: flex;
    gap: 30px;
}

.stat {
    text-align: center;
    min-width: 120px;
}

.stat-label {
    display: block;
    font-size: 0.9rem;
    color: #b3e5fc;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.stat-value {
    font-size: 1.8rem;
    font-weight: 700;
    color: #4ecdc4;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.game-container {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 30px;
    margin-bottom: 30px;
}

/* GAME BOARD */
.game-board {
    display: grid;
    grid-template-columns: repeat(10, 1fr);
    grid-template-rows: repeat(10, 1fr);
    gap: 3px;
    background: rgba(0, 0, 0, 0.3);
    padding: 15px;
    border-radius: 15px;
    border: 2px solid rgba(255, 255, 255, 0.15);
    aspect-ratio: 1/1;
    box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.5);
}

.tile {
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background-size: cover;
    background-position: center;
    min-height: 40px;
    min-width: 40px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.tile::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.1);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.tile:hover::before {
    opacity: 1;
}

.tile:hover {
    transform: scale(1.08);
    z-index: 10;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

/* TILE TYPES */
.tile-empty {
    background-color: rgba(255, 255, 255, 0.05);
    background-image: url('assets/images/tile-empty.png');
}

.tile-player {
    background-color: #4ecdc4;
    background-image: url('assets/images/player.png');
    animation: pulse 2s infinite;
}

.tile-exit {
    background-color: #81c784;
    background-image: url('assets/images/tile-exit.png');
    animation: pulse 1.5s infinite;
}

.tile-hazard-fire {
    background-color: #ff6b6b;
    background-image: url('assets/images/tile-hazard-fire.png');
    animation: glowFire 2s infinite alternate;
}

.tile-hazard-water {
    background-color: #64b5f6;
    background-image: url('assets/images/tile-hazard-water.png');
    animation: glowWater 2s infinite alternate;
}

.tile-hazard-chemical {
    background-color: #ba68c8;
    background-image: url('assets/images/tile-hazard-chemical.png');
    animation: glowChemical 2s infinite alternate;
}

.tile-tool {
    background-color: #ffd54f;
    background-image: url('assets/images/fire-extinguisher.png');
    animation: float 3s ease-in-out infinite;
}

/* ICON STYLES */
.tile i {
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.7);
    z-index: 2;
    position: relative;
}

.tile-player i {
    color: white;
    font-size: 1.3rem;
}

.tile-exit i {
    color: white;
    font-size: 1.4rem;
}

.tile-hazard-fire i {
    color: #ffd54f;
    font-size: 1.4rem;
}

.tile-hazard-water i {
    color: #e3f2fd;
    font-size: 1.4rem;
}

.tile-hazard-chemical i {
    color: #f3e5f5;
    font-size: 1.4rem;
}

.tile-tool i {
    color: #1a237e;
    font-size: 1.4rem;
}

/* SIDEBAR */
.game-sidebar {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.sidebar-section {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    padding: 25px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.sidebar-section h3 {
    font-size: 1.3rem;
    margin-bottom: 20px;
    color: #ffd54f;
    display: flex;
    align-items: center;
    gap: 12px;
    padding-bottom: 15px;
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
}

.tools-collected {
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 10px 0;
}

.tool-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    transition: transform 0.3s ease;
}

.tool-item:hover {
    transform: scale(1.1);
}

.tool-icon {
    width: 70px;
    height: 70px;
    object-fit: contain;
    filter: drop-shadow(0 5px 15px rgba(0, 0, 0, 0.3));
}

.tool-count {
    font-size: 1.8rem;
    font-weight: 700;
    color: #4ecdc4;
    min-width: 40px;
    text-align: center;
}

.target-info {
    background: rgba(0, 0, 0, 0.2);
    padding: 20px;
    border-radius: 10px;
    margin-top: 15px;
}

.target-info p {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.target-info p:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

/* CONTROLS */
.controls {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.control-row {
    display: flex;
    gap: 15px;
}

.control-btn {
    width: 70px;
    height: 70px;
    border-radius: 15px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
    border: 2px solid rgba(255, 255, 255, 0.2);
    color: white;
    font-size: 1.8rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
}

.control-btn:hover {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.1));
    transform: scale(1.15);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
    border-color: #4ecdc4;
}

.control-btn:active {
    transform: scale(0.95);
}

.control-hint {
    font-size: 0.9rem;
    color: #b3e5fc;
    text-align: center;
    margin-top: 15px;
    padding: 10px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
}

.game-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 10px;
}

.game-actions .btn {
    flex: 1;
    padding: 15px;
    font-size: 1rem;
}

/* LEGEND */
.legend {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    padding: 25px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.legend h3 {
    font-size: 1.3rem;
    margin-bottom: 20px;
    color: #ffd54f;
    display: flex;
    align-items: center;
    gap: 12px;
}

.legend-items {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 15px;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 12px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 10px;
    transition: transform 0.3s ease;
}

.legend-item:hover {
    transform: translateX(5px);
    background: rgba(0, 0, 0, 0.3);
}

.legend-tile {
    width: 35px;
    height: 35px;
    border-radius: 8px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    flex-shrink: 0;
}

.legend-item span {
    font-size: 0.95rem;
    color: #e3f2fd;
}

/* ============================================
   INSTRUCTIONS SCREEN
   ============================================ */
.instructions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin: 40px 0;
}

.instruction-card {
    background: rgba(255, 255, 255, 0.05);
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: transform 0.3s ease;
}

.instruction-card:hover {
    transform: translateY(-5px);
    border-color: #4ecdc4;
}

.instruction-icon {
    font-size: 3rem;
    color: #4ecdc4;
    margin-bottom: 20px;
    height: 80px;
    width: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    background: rgba(78, 205, 196, 0.1);
    border-radius: 50%;
}

.instruction-card h3 {
    font-size: 1.4rem;
    margin-bottom: 15px;
    color: #ffd54f;
}

.instruction-card p {
    color: #b3e5fc;
    line-height: 1.7;
}

.scoring-info {
    background: rgba(255, 255, 255, 0.05);
    padding: 30px;
    border-radius: 15px;
    margin: 40px 0;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.scoring-info h3 {
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: #ffd54f;
    display: flex;
    align-items: center;
    gap: 12px;
}

.scoring-info ul {
    list-style: none;
    padding-left: 0;
}

.scoring-info li {
    margin-bottom: 15px;
    padding-left: 35px;
    position: relative;
    color: #e3f2fd;
    line-height: 1.7;
}

.scoring-info li:before {
    content: "✓";
    position: absolute;
    left: 0;
    top: 0;
    width: 25px;
    height: 25px;
    background: #4ecdc4;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

/* ============================================
   ABOUT K3 SCREEN
   ============================================ */
.about-card {
    background: rgba(255, 255, 255, 0.05);
    padding: 40px;
    border-radius: 20px;
    margin: 40px 0;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.about-card h3 {
    font-size: 1.7rem;
    margin: 30px 0 20px;
    color: #ffd54f;
    padding-bottom: 15px;
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
}

.about-card h3:first-child {
    margin-top: 0;
}

.principles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 25px;
    margin: 25px 0;
}

.principle {
    text-align: center;
    padding: 25px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: transform 0.3s ease;
}

.principle:hover {
    transform: translateY(-5px);
    border-color: #4ecdc4;
}

.principle i {
    font-size: 2.5rem;
    color: #4ecdc4;
    margin-bottom: 15px;
    background: linear-gradient(135deg, #4ecdc4, #2a9d8f);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.principle h4 {
    font-size: 1.3rem;
    margin-bottom: 12px;
    color: #b3e5fc;
}

.principle p {
    color: #90caf9;
    font-size: 0.95rem;
    line-height: 1.6;
}

.apd-list {
    list-style: none;
    padding-left: 0;
    background: rgba(0, 0, 0, 0.2);
    padding: 25px;
    border-radius: 15px;
    margin-top: 20px;
}

.apd-list li {
    margin-bottom: 15px;
    padding-left: 40px;
    position: relative;
    color: #e3f2fd;
    line-height: 1.7;
}

.apd-list li:before {
    content: "🛡️";
    position: absolute;
    left: 0;
    top: 0;
    font-size: 1.2rem;
}

.apd-list strong {
    color: #ffd54f;
    font-weight: 600;
}

/* ============================================
   LEADERBOARD SCREEN
   ============================================ */
.leaderboard-content {
    max-width: 1200px;
    margin: 0 auto;
}

.leaderboard-controls {
    display: flex;
    flex-wrap: wrap;
    gap: 25px;
    margin: 40px 0;
    justify-content: center;
}

.filter-controls,
.sort-controls {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
}

.btn-filter,
.btn-sort {
    padding: 12px 24px;
    font-size: 0.95rem;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.1);
    color: #b3e5fc;
    transition: all 0.3s ease;
}

.btn-filter:hover,
.btn-sort:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-3px);
}

.btn-filter.active,
.btn-sort.active {
    background: linear-gradient(135deg, #4ecdc4, #2a9d8f);
    color: white;
    border-color: #4ecdc4;
    box-shadow: 0 5px 15px rgba(78, 205, 196, 0.3);
}

.leaderboard-container {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    margin: 40px 0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.leaderboard-header {
    display: grid;
    grid-template-columns: 80px 2fr 1fr 1fr 1fr 1fr 1fr;
    background: rgba(255, 255, 255, 0.1);
    padding: 20px;
    font-weight: 600;
    color: #ffd54f;
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.leaderboard-entries {
    min-height: 300px;
    max-height: 500px;
    overflow-y: auto;
}

.leaderboard-entry {
    display: grid;
    grid-template-columns: 80px 2fr 1fr 1fr 1fr 1fr 1fr;
    padding: 18px 20px;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
    font-size: 0.95rem;
}

.leaderboard-entry:hover {
    background: rgba(255, 255, 255, 0.02);
}

.leaderboard-entry.current-player {
    background: rgba(78, 205, 196, 0.1);
    border-left: 4px solid #4ecdc4;
}

.leaderboard-entry.top-1 {
    background: linear-gradient(90deg, rgba(255, 215, 79, 0.15), transparent);
    border-left: 4px solid #ffd54f;
}

.leaderboard-entry.top-2 {
    background: linear-gradient(90deg, rgba(192, 192, 192, 0.15), transparent);
    border-left: 4px solid #c0c0c0;
}

.leaderboard-entry.top-3 {
    background: linear-gradient(90deg, rgba(205, 127, 50, 0.15), transparent);
    border-left: 4px solid #cd7f32;
}

.rank {
    font-size: 1.3rem;
    font-weight: 700;
    text-align: center;
}

.rank.top-1 {
    color: #ffd54f;
    text-shadow: 0 0 10px rgba(255, 215, 79, 0.5);
}

.rank.top-2 {
    color: #c0c0c0;
    text-shadow: 0 0 10px rgba(192, 192, 192, 0.5);
}

.rank.top-3 {
    color: #cd7f32;
    text-shadow: 0 0 10px rgba(205, 127, 50, 0.5);
}

.player-name {
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 15px;
}

.player-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #4ecdc4, #2a9d8f);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;