/* Ducky Doubles — leaderboard styles extracted from game.css. */

.duckydoubles-leaderboard {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 16px;
    color: #ffffff;
}

.duckydoubles-leaderboard--full {
    max-width: 448px;
    margin: 32px auto 0;
    padding: 0 16px;
}

.duckydoubles-leaderboard--drawer {
    margin-top: 0;
    padding: 4px 0;
}

.duckydoubles-leaderboard-title {
    text-align: center;
    font-size: 24px;
    font-weight: 700;
    margin: 0;
}

@media (min-width: 768px) {
    .duckydoubles-leaderboard-title {
        font-size: 28px;
    }
}

.duckydoubles-tab-bar {
    display: flex;
    justify-content: center;
    gap: 8px;
}

.duckydoubles-tab {
    border: none;
    cursor: pointer;
    padding: 8px 16px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 14px;
    background: rgba(255, 255, 255, 0.18);
    color: #ffffff;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.duckydoubles-tab:hover {
    background: rgba(255, 255, 255, 0.28);
}

.duckydoubles-tab--active {
    background: #ffffff;
    color: #3b0764;
}

.duckydoubles-leaderboard-summary {
    text-align: center;
}

.duckydoubles-summary-chip {
    display: inline-block;
    padding: 8px 16px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(6px);
    font-weight: 600;
    font-size: 14px;
    color: #ffffff;
}

.duckydoubles-leaderboard-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.duckydoubles-leaderboard-subtitle {
    margin: 0;
    font-size: 15.2px;
    font-weight: 600;
    color: #ffffff;
}

.duckydoubles-leaderboard-row {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 16px;
    padding: 12px;
    border-radius: 14.4px;
    background: rgba(255, 255, 255, 0.12);
    border: 2px solid rgba(255, 255, 255, 0.2);
    transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.duckydoubles-leaderboard-row--current {
    background: rgba(250, 204, 21, 0.22);
    border-color: rgba(250, 204, 21, 0.9);
}

.duckydoubles-leaderboard-row--self {
    background: rgba(59, 130, 246, 0.22);
    border-color: rgba(59, 130, 246, 0.65);
}

.duckydoubles-leaderboard-row--interactive {
    cursor: pointer;
}

.duckydoubles-leaderboard-row--interactive:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 24px rgba(0, 0, 0, 0.25);
}

.duckydoubles-leaderboard-row--interactive:focus-visible {
    outline: 2px solid rgba(251, 191, 36, 0.85);
    outline-offset: 3px;
}

.duckydoubles-leaderboard-row--selected {
    border-color: rgba(251, 191, 36, 0.9);
    box-shadow: 0 14px 28px rgba(251, 191, 36, 0.25);
}

.duckydoubles-leaderboard-row-left {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.duckydoubles-leaderboard-info {
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
}

.duckydoubles-leaderboard-rank {
    font-size: 18px;
    font-weight: 700;
    color: #ffffff;
    min-width: 32px;
    text-align: center;
}

.duckydoubles-leaderboard-rank--top {
    font-size: 20px;
}

.duckydoubles-leaderboard-name {
    font-size: 15.2px;
    font-weight: 600;
    color: #ffffff;
}

.duckydoubles-leaderboard-meta {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.6);
}

.duckydoubles-leaderboard-row-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
    text-align: right;
}

.duckydoubles-leaderboard-score {
    display: flex;
    align-items: center;
    font-size: 18px;
    font-weight: 700;
    color: #fbbf24;
    white-space: nowrap;
    flex-shrink: 0;
    margin-left: auto;
}

.duckydoubles-leaderboard-label {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.65);
}

.duckydoubles-leaderboard-section {
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.duckydoubles-leaderboard-section--cta {
    align-items: center;
    gap: 12px;
}

.duckydoubles-leaderboard-motivation {
    margin-top: 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.duckydoubles-leaderboard-progress-bar {
    width: 100%;
    height: 8px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 999px;
    overflow: hidden;
}

.duckydoubles-leaderboard-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #3b82f6, #60a5fa);
    border-radius: 999px;
    transition: width 0.5s ease-out;
}

.duckydoubles-leaderboard-motivation-text {
    margin: 0;
    font-size: 13px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.85);
    text-align: center;
}

.duckydoubles-leaderboard-badge {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 8px;
}

.duckydoubles-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
    transition: transform 0.2s ease;
}

.duckydoubles-badge:hover {
    transform: scale(1.05);
}

.duckydoubles-badge--elite {
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    color: #78350f;
    box-shadow: 0 0 20px rgba(251, 191, 36, 0.4);
}

.duckydoubles-badge--great {
    background: linear-gradient(135deg, #f97316, #ea580c);
    color: #ffffff;
    box-shadow: 0 0 16px rgba(249, 115, 22, 0.3);
}

.duckydoubles-badge--good {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: #ffffff;
    box-shadow: 0 0 16px rgba(59, 130, 246, 0.3);
}

.duckydoubles-badge--rising {
    background: linear-gradient(135deg, #8b5cf6, #7c3aed);
    color: #ffffff;
    box-shadow: 0 0 16px rgba(139, 92, 246, 0.3);
}

.duckydoubles-badge--improving {
    background: linear-gradient(135deg, #10b981, #059669);
    color: #ffffff;
    box-shadow: 0 0 16px rgba(16, 185, 129, 0.3);
}

.leaderboard-timestamp {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.5);
    font-weight: 400;
    white-space: nowrap;
}

.leaderboard-timestamp--recent {
    color: rgba(96, 165, 250, 0.8);
    font-weight: 500;
}

.leaderboard-badge {
    padding: 3px 8px;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 600;
    white-space: nowrap;
}

.leaderboard-badge--best {
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    color: #78350f;
    box-shadow: 0 0 12px rgba(251, 191, 36, 0.4);
}

.leaderboard-badge--current {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: #ffffff;
    box-shadow: 0 0 12px rgba(59, 130, 246, 0.3);
}

.duckydoubles-leaderboard-top-tile {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
}

.duckydoubles-leaderboard-top-tile .history-tile-badge {
    --history-tile-size: 48px;
}

.duckydoubles-leaderboard-top-tile-visual {
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.35);
    border-radius: 12px;
}

.duckydoubles-leaderboard-top-tile-fallback {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
    font-weight: 700;
}

.leaderboard-gap {
    position: relative;
    height: 60px;
    margin: 20px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(
        to bottom,
        rgba(255, 255, 255, 0.08) 0%,
        transparent 20%,
        transparent 80%,
        rgba(255, 255, 255, 0.08) 100%
    );
}

.torn-edge-top,
.torn-edge-bottom {
    position: absolute;
    left: 0;
    right: 0;
    height: 12px;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 10"><path d="M0,5 L5,0 L10,5 L15,2 L20,6 L25,1 L30,5 L35,3 L40,7 L45,2 L50,5 L55,1 L60,6 L65,3 L70,5 L75,2 L80,6 L85,1 L90,5 L95,3 L100,7 L100,10 L0,10 Z" fill="rgba(255,255,255,0.1)"/></svg>');
    background-size: 100px 12px;
    background-repeat: repeat-x;
    opacity: 0.6;
}

.torn-edge-top {
    top: 0;
}

.torn-edge-bottom {
    bottom: 0;
    transform: rotate(180deg);
}

.gap-text {
    margin: 0;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.45);
    font-style: italic;
    letter-spacing: 0.5px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.duckydoubles-leaderboard-footer {
    margin-top: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.duckydoubles-leaderboard-text {
    margin: 0;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.7);
    text-align: center;
}

@media (max-width: 640px) {
    .duckydoubles-leaderboard-rank {
        min-width: 28px;
        font-size: 14px;
    }

    .leaderboard-timestamp {
        font-size: 10px;
    }

    .leaderboard-badge {
        font-size: 9px;
        padding: 2px 6px;
    }

    .duckydoubles-leaderboard-top-tile .history-tile-badge {
        --history-tile-size: 44px;
    }
}

