/* Main Game Components - Container, game area, and leaderboard */
/* ============================================================== */

.game-container {
    text-align: center;
    background: rgba(255, 255, 255, 0.1);
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 20px;
}

.game-area {
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Leaderboard Styles */
/* ================== */

/* Leaderboard Iframe Styles */
.leaderboard-iframe {
    width: 320px;
    min-width: 300px;
    height: 520px;
    max-height: 520px;
    border: none;
    border-radius: 15px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    background: transparent;
}

.leaderboard {
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(10px);
    padding: 20px;
    border-radius: 15px;
    min-width: 300px;
    max-height: 500px;
    overflow-y: auto;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.leaderboard h3 {
    color: white;
    text-align: center;
    margin: 0 0 20px 0;
    font-size: 1.4em;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
    padding-bottom: 15px;
    border-bottom: 2px solid rgba(255, 255, 255, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.leaderboard-entry {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    margin: 8px 0;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: white;
    transition: all 0.3s ease;
    border-left: 4px solid transparent;
    position: relative;
    overflow: hidden;
}

.leaderboard-entry:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

/* Ranking Styles */
/* =============== */

.leaderboard-entry.rank-1 {
    border-left-color: #FFD700;
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.25), rgba(255, 255, 255, 0.1));
}

.leaderboard-entry.rank-1::before {
    content: '👑';
    position: absolute;
    top: 5px;
    right: 10px;
    font-size: 16px;
}

.leaderboard-entry.rank-2 {
    border-left-color: #C0C0C0;
    background: linear-gradient(135deg, rgba(192, 192, 192, 0.25), rgba(255, 255, 255, 0.1));
}

.leaderboard-entry.rank-3 {
    border-left-color: #CD7F32;
    background: linear-gradient(135deg, rgba(205, 127, 50, 0.25), rgba(255, 255, 255, 0.1));
}

.rank {
    font-weight: bold;
    font-size: 1.3em;
    min-width: 35px;
    text-align: center;
    margin-right: 15px;
}

.rank-1 .rank {
    color: #FFD700;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

.rank-2 .rank {
    color: #C0C0C0;
    text-shadow: 0 0 10px rgba(192, 192, 192, 0.5);
}

.rank-3 .rank {
    color: #CD7F32;
    text-shadow: 0 0 10px rgba(205, 127, 50, 0.5);
}

/* Player Profile Elements */
/* ======================= */

.player-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin-right: 12px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    background: linear-gradient(45deg, #4CAF50, #45a049);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 16px;
    overflow: hidden;
}

.player-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.player-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.player-name {
    font-size: 1em;
    margin-bottom: 3px;
    font-weight: 500;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.player-score {
    font-weight: bold;
    font-size: 1.1em;
    color: #00FF88;
    text-shadow: 0 0 8px rgba(0, 255, 136, 0.3);
}

.loading-leaderboard {
    text-align: center;
    color: rgba(255, 255, 255, 0.7);
    padding: 20px;
    font-style: italic;
}

/* Misc Utility Classes */
/* ==================== */

.boat-name {
    color: white;
    font-size: 14px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.locked-text {
    color: #ccc;
    font-size: 12px;
}