/* ============================================
   Game Services – Leaderboard & Achievement Toast
   Matches existing savanna/elephant theme
   ============================================ */

/* ---- Leaderboard ---- */
.game-leaderboard {
    margin-top: 1rem;
    width: 100%;
    max-width: 380px;
    margin-left: auto;
    margin-right: auto;
}

.game-leaderboard h3 {
    font-family: 'Fredoka', sans-serif;
    font-size: 1.1rem;
    color: #2C1810;
    margin-bottom: 0.5rem;
    text-align: center;
}

.leaderboard-table {
    width: 100%;
    border-collapse: collapse;
    font-family: 'Quicksand', sans-serif;
    font-size: 0.9rem;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 10px;
    overflow: hidden;
    border: 2px solid #228B22;
}

.leaderboard-table th {
    background: #228B22;
    color: #fff;
    padding: 0.4rem 0.6rem;
    font-weight: 600;
    text-align: left;
}

.leaderboard-table th:last-child {
    text-align: right;
}

.leaderboard-table td {
    padding: 0.35rem 0.6rem;
    border-bottom: 1px solid rgba(34, 139, 34, 0.15);
}

.leaderboard-table td:last-child {
    text-align: right;
    font-weight: 700;
}

.leaderboard-table tr:last-child td {
    border-bottom: none;
}

.leaderboard-table tr.is-current-user {
    background: rgba(218, 165, 32, 0.2);
    font-weight: 700;
}

.leaderboard-table .rank-cell {
    width: 2rem;
    text-align: center;
    font-weight: 700;
}

.leaderboard-empty {
    text-align: center;
    color: #5D4037;
    font-style: italic;
    padding: 0.6rem;
    font-size: 0.85rem;
}

/* ---- Achievement Toast ---- */
.achievement-toast {
    position: fixed;
    bottom: -120px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #DAA520, #F5C542);
    color: #2C1810;
    padding: 0.8rem 1.4rem;
    border-radius: 14px;
    border: 3px solid #228B22;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
    font-family: 'Fredoka', sans-serif;
    font-size: 0.95rem;
    z-index: 9999;
    transition: bottom 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    display: flex;
    align-items: center;
    gap: 0.6rem;
    max-width: 90vw;
    white-space: nowrap;
}

.achievement-toast.show {
    bottom: 1.5rem;
}

.achievement-toast .toast-icon {
    font-size: 1.5rem;
}

.achievement-toast .toast-text {
    display: flex;
    flex-direction: column;
    line-height: 1.3;
}

.achievement-toast .toast-title {
    font-weight: 700;
    font-size: 1rem;
}

.achievement-toast .toast-tier {
    font-size: 0.8rem;
    font-weight: 500;
    opacity: 0.85;
}
