/* Leaderboard Modal Styles */

/* Lobby Control Rows (Theme + Leaderboard) */
.lobby-control-row {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.5rem;
}

/* Solo Leaderboard Button - matches theme selector */
.solo-leaderboard-btn {
    padding: 0.5rem 0.75rem;
    font-size: 0.85rem;
    font-family: 'Rajdhani', sans-serif;
    font-weight: 600;
    background: var(--bg-panel-solid, rgba(20, 25, 40, 0.98));
    color: var(--text-primary, #ffffff);
    border: 1px solid var(--border-default, rgba(100, 150, 255, 0.3));
    border-radius: 8px;
    cursor: pointer;
    outline: none;
    transition: all 0.2s ease;
    box-shadow: var(--shadow-md, 0 4px 20px rgba(0, 0, 0, 0.3));
    width: 110px;
    text-align: center;
}

.lobby-theme-selector .theme-selector {
    width: 110px !important;
    min-width: 110px !important;
}

.solo-leaderboard-btn:hover {
    border-color: var(--border-focus, rgba(100, 180, 255, 0.6));
    box-shadow: var(--glow-blue-sm, 0 0 15px rgba(100, 150, 255, 0.2));
}

.solo-leaderboard-btn:focus {
    border-color: var(--accent-primary, #6366f1);
    box-shadow: 0 0 0 2px var(--accent-blue-20, rgba(100, 150, 255, 0.2));
}

/* Light theme */
.theme-light .solo-leaderboard-btn {
    background: linear-gradient(180deg,
        rgba(140, 172, 220, 0.9) 0%,
        rgba(110, 145, 195, 0.9) 100%);
    color: #ffffff;
    border-color: rgba(80, 120, 180, 0.4);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.theme-light .solo-leaderboard-btn:hover {
    background: linear-gradient(180deg,
        rgba(155, 185, 228, 0.95) 0%,
        rgba(125, 160, 210, 0.95) 100%);
    border-color: rgba(80, 120, 180, 0.5);
}

/* Classic theme */
.theme-classic .solo-leaderboard-btn {
    background: #c0c0c0;
    color: #000000;
    border: 2px outset #ffffff;
    border-radius: 0;
    box-shadow: none;
    font-family: 'MS Sans Serif', Tahoma, sans-serif;
}

.theme-classic .solo-leaderboard-btn:hover {
    background: #d4d4d4;
}

.theme-classic .solo-leaderboard-btn:active {
    border-style: inset;
}

/* Kokoro theme */
.theme-kokoro .solo-leaderboard-btn {
    background: linear-gradient(135deg, rgba(255, 182, 193, 0.3) 0%, rgba(255, 218, 233, 0.3) 100%);
    color: #d85a8a;
    border-color: rgba(255, 182, 193, 0.5);
}

.theme-kokoro .solo-leaderboard-btn:hover {
    background: linear-gradient(135deg, rgba(255, 182, 193, 0.5) 0%, rgba(255, 218, 233, 0.5) 100%);
    border-color: rgba(255, 105, 180, 0.6);
}

.leaderboard-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    backdrop-filter: blur(4px);
}

.leaderboard-content {
    background: linear-gradient(135deg, #1a1d29 0%, #0d1117 100%);
    border-radius: 16px;
    padding: 24px;
    width: 90%;
    max-width: 600px;
    max-height: 85vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5),
                0 0 0 1px rgba(255, 255, 255, 0.1);
    animation: leaderboard-slide-in 0.3s ease-out;
}

@keyframes leaderboard-slide-in {
    from {
        opacity: 0;
        transform: translateY(-20px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.leaderboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.leaderboard-header h2 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 600;
    color: #fff;
    letter-spacing: -0.02em;
}

.leaderboard-close-btn {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.5);
    font-size: 28px;
    cursor: pointer;
    padding: 4px 8px;
    line-height: 1;
    transition: color 0.2s;
}

.leaderboard-close-btn:hover {
    color: #fff;
}

/* Filters */
.leaderboard-filters {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 20px;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.filter-group label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: rgba(255, 255, 255, 0.5);
    font-weight: 500;
}

.filter-buttons {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.filter-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.7);
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.filter-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.filter-btn.active {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    border-color: transparent;
    color: #fff;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

/* Player Rank Display */
.leaderboard-player-rank {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: 8px;
    margin-bottom: 16px;
}

.rank-label {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.85rem;
}

.rank-value {
    color: #3b82f6;
    font-weight: 700;
    font-size: 1.1rem;
}

.rank-time {
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
    font-family: 'SF Mono', 'Monaco', 'Inconsolata', monospace;
}

/* Table Container */
.leaderboard-table-container {
    flex: 1;
    overflow-y: auto;
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.2);
}

.leaderboard-table {
    width: 100%;
    border-collapse: collapse;
}

.leaderboard-table thead {
    position: sticky;
    top: 0;
    background: rgba(30, 35, 50, 0.95);
    backdrop-filter: blur(8px);
    z-index: 1;
}

.leaderboard-table th {
    padding: 12px 16px;
    text-align: left;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: rgba(255, 255, 255, 0.5);
    font-weight: 500;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.leaderboard-table td {
    padding: 14px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.9);
}

.leaderboard-table tbody tr {
    transition: background 0.15s;
}

.leaderboard-table tbody tr:hover {
    background: rgba(255, 255, 255, 0.03);
}

/* Column widths */
.rank-col {
    width: 50px;
    text-align: center !important;
}

.name-col {
    flex: 1;
}

.time-col {
    width: 100px;
    font-family: 'SF Mono', 'Monaco', 'Inconsolata', monospace;
    font-weight: 500;
}

.date-col {
    width: 100px;
    color: rgba(255, 255, 255, 0.5) !important;
    font-size: 0.85rem;
}

/* Rank styling */
.leaderboard-table tbody tr.rank-1 {
    background: linear-gradient(90deg, rgba(255, 215, 0, 0.1) 0%, transparent 100%);
}

.leaderboard-table tbody tr.rank-2 {
    background: linear-gradient(90deg, rgba(192, 192, 192, 0.1) 0%, transparent 100%);
}

.leaderboard-table tbody tr.rank-3 {
    background: linear-gradient(90deg, rgba(205, 127, 50, 0.1) 0%, transparent 100%);
}

/* Loading and Empty states */
.loading-row td,
.error-row td {
    text-align: center;
    padding: 40px 16px;
    color: rgba(255, 255, 255, 0.5);
}

.error-row td {
    color: #ef4444;
}

.leaderboard-empty {
    text-align: center;
    padding: 40px 20px;
    color: rgba(255, 255, 255, 0.5);
}

.leaderboard-empty p {
    margin: 0 0 8px 0;
}

.leaderboard-empty .empty-hint {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.3);
}

/* Notification Toast */
.leaderboard-notification {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%) translateY(-100px);
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    padding: 12px 24px;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(16, 185, 129, 0.4);
    z-index: 3000;
    opacity: 0;
    transition: all 0.3s ease-out;
}

.leaderboard-notification.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.notification-content {
    display: flex;
    align-items: center;
    gap: 10px;
}

.notification-icon {
    font-size: 1.2rem;
}

.notification-text {
    font-weight: 600;
}

/* Mobile Responsive */
@media (max-width: 600px) {
    .leaderboard-content {
        padding: 16px;
        max-height: 90vh;
        border-radius: 12px 12px 0 0;
        margin-top: auto;
    }

    .leaderboard-header h2 {
        font-size: 1.25rem;
    }

    .filter-buttons {
        gap: 6px;
    }

    .filter-btn {
        padding: 6px 12px;
        font-size: 0.8rem;
    }

    .leaderboard-table th,
    .leaderboard-table td {
        padding: 10px 12px;
    }

    .date-col {
        display: none;
    }

    .time-col {
        width: 80px;
    }
}

/* Scrollbar styling */
.leaderboard-table-container::-webkit-scrollbar {
    width: 6px;
}

.leaderboard-table-container::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 3px;
}

.leaderboard-table-container::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 3px;
}

.leaderboard-table-container::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* Game Over Dialog Panels */
.gameover-content {
    min-height: 150px;
}

.stats-panel,
.records-panel {
    display: none;
}

.stats-panel.active,
.records-panel.active {
    display: block;
    animation: fadeIn 0.2s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* High Scores Button */
.highscores-btn {
    display: block;
    width: 100%;
    margin-top: 16px;
    padding: 12px 20px;
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.15) 0%, rgba(245, 158, 11, 0.15) 100%);
    border: 1px solid rgba(251, 191, 36, 0.3);
    color: #fbbf24;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.highscores-btn:hover {
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.25) 0%, rgba(245, 158, 11, 0.25) 100%);
    border-color: rgba(251, 191, 36, 0.5);
    transform: translateY(-1px);
}

/* Back Button */
.records-panel {
    position: relative;
}

.back-btn {
    position: absolute;
    top: 0;
    left: 0;
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
    cursor: pointer;
    padding: 4px 8px;
    transition: color 0.2s;
}

.back-btn:hover {
    color: #fff;
}

/* Records Title */
.records-title {
    margin: 0 0 12px 0;
    font-size: 1rem;
    font-weight: 600;
    color: #fbbf24;
    text-align: center;
}

/* Period Filter in Records Tab */
.records-period-filter {
    display: flex;
    gap: 6px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.period-btn {
    padding: 6px 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.7);
    border-radius: 6px;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.2s;
}

.period-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.period-btn.active {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    border-color: transparent;
    color: #fff;
}

/* Records List */
.records-list {
    min-height: 200px;
    max-height: 200px;
    overflow-y: auto;
}

.record-row {
    display: flex;
    align-items: center;
    padding: 8px 12px;
    border-radius: 6px;
    margin-bottom: 4px;
    background: rgba(255, 255, 255, 0.03);
}

.record-row:hover {
    background: rgba(255, 255, 255, 0.06);
}

.record-row.rank-1,
.record-row.rank-2,
.record-row.rank-3 {
    background: rgba(255, 255, 255, 0.03);
}

.record-rank {
    width: 36px;
    text-align: center;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.7);
}

.record-name {
    flex: 1;
    color: rgba(255, 255, 255, 0.9);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.record-time {
    font-family: 'SF Mono', 'Monaco', 'Inconsolata', monospace;
    font-weight: 500;
    color: #3b82f6;
}

.records-loading,
.records-error,
.records-empty {
    text-align: center;
    padding: 24px 16px;
    color: rgba(255, 255, 255, 0.5);
}

.records-error {
    color: #ef4444;
}

.records-empty-hint {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.3);
    margin-top: 4px;
}

/* Scrollbar for records list */
.records-list::-webkit-scrollbar {
    width: 4px;
}

.records-list::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 2px;
}

.records-list::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 2px;
}

@media (max-width: 480px) {
    .gameover-tab {
        padding: 8px 12px;
        font-size: 0.85rem;
    }

    .period-btn {
        padding: 5px 10px;
        font-size: 0.75rem;
    }

    .record-row {
        padding: 6px 10px;
    }
}

/* Inline Score Submission (in Game Over dialog) */
.submit-score-section {
    margin-top: 16px;
    padding: 12px;
    background: rgba(251, 191, 36, 0.1);
    border: 1px solid rgba(251, 191, 36, 0.2);
    border-radius: 8px;
}

.submit-score-section label {
    display: block;
    font-size: 0.85rem;
    color: #fbbf24;
    margin-bottom: 8px;
}

.submit-score-row {
    display: flex;
    gap: 8px;
}

#pending-score-name {
    flex: 1;
    padding: 8px 12px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    color: #fff;
    font-size: 0.9rem;
}

#pending-score-name:focus {
    outline: none;
    border-color: #fbbf24;
}

#pending-score-name::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.submit-score-btn {
    padding: 8px 16px;
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    border: none;
    border-radius: 6px;
    color: #000;
    font-weight: 500;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s;
}

.submit-score-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(251, 191, 36, 0.3);
}

.score-submitted {
    color: #10b981;
    font-weight: 500;
    text-align: center;
    padding: 4px 0;
}

/* ========================================
   THEME: LIGHT
   ======================================== */
.theme-light .leaderboard-modal {
    background: rgba(0, 0, 0, 0.4);
}

.theme-light .leaderboard-content {
    background: linear-gradient(135deg, #e8eef5 0%, #d5e0ed 100%);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2),
                0 0 0 1px rgba(100, 140, 200, 0.3);
}

.theme-light .leaderboard-header {
    border-bottom-color: rgba(60, 90, 140, 0.2);
}

.theme-light .leaderboard-header h2 {
    color: #2d4a6f;
}

.theme-light .leaderboard-close-btn {
    color: rgba(45, 74, 111, 0.5);
}

.theme-light .leaderboard-close-btn:hover {
    color: #2d4a6f;
}

.theme-light .filter-group label {
    color: rgba(45, 74, 111, 0.6);
}

.theme-light .filter-btn {
    background: rgba(100, 140, 200, 0.15);
    border-color: rgba(100, 140, 200, 0.3);
    color: #3d5a80;
}

.theme-light .filter-btn:hover {
    background: rgba(100, 140, 200, 0.25);
    color: #2d4a6f;
}

.theme-light .filter-btn.active {
    background: linear-gradient(180deg,
        rgba(90, 140, 205, 0.95) 0%,
        rgba(70, 115, 180, 0.95) 100%);
    color: #fff;
    border-color: transparent;
}

.theme-light .leaderboard-player-rank {
    background: rgba(90, 140, 205, 0.15);
    border-color: rgba(90, 140, 205, 0.3);
}

.theme-light .rank-label {
    color: rgba(45, 74, 111, 0.7);
}

.theme-light .rank-value {
    color: #3d6eb0;
}

.theme-light .rank-time {
    color: #2d4a6f;
}

.theme-light .leaderboard-table-container {
    background: rgba(255, 255, 255, 0.5);
}

.theme-light .leaderboard-table thead {
    background: rgba(200, 215, 235, 0.95);
}

.theme-light .leaderboard-table th {
    color: rgba(45, 74, 111, 0.7);
    border-bottom-color: rgba(100, 140, 200, 0.2);
}

.theme-light .leaderboard-table td {
    color: #2d4a6f;
    border-bottom-color: rgba(100, 140, 200, 0.1);
}

.theme-light .leaderboard-table tbody tr:hover {
    background: rgba(100, 140, 200, 0.1);
}

.theme-light .date-col {
    color: rgba(45, 74, 111, 0.5) !important;
}

.theme-light .loading-row td,
.theme-light .leaderboard-empty {
    color: rgba(45, 74, 111, 0.5);
}

.theme-light .leaderboard-empty .empty-hint {
    color: rgba(45, 74, 111, 0.4);
}

/* Light theme - Game Over High Scores */
.theme-light .record-row {
    background: rgba(100, 140, 200, 0.08);
}

.theme-light .record-row:hover {
    background: rgba(100, 140, 200, 0.15);
}

.theme-light .record-rank {
    color: #3d5a80;
}

.theme-light .record-name {
    color: #2d4a6f;
}

.theme-light .record-time {
    color: #3d6eb0;
}

.theme-light .records-title {
    color: #3d6eb0;
}

.theme-light .period-btn {
    background: rgba(100, 140, 200, 0.15);
    border-color: rgba(100, 140, 200, 0.3);
    color: #3d5a80;
}

.theme-light .period-btn:hover {
    background: rgba(100, 140, 200, 0.25);
    color: #2d4a6f;
}

.theme-light .period-btn.active {
    background: linear-gradient(180deg,
        rgba(90, 140, 205, 0.95) 0%,
        rgba(70, 115, 180, 0.95) 100%);
    color: #fff;
}

.theme-light .back-btn {
    color: rgba(45, 74, 111, 0.6);
}

.theme-light .back-btn:hover {
    color: #2d4a6f;
}

.theme-light .records-loading,
.theme-light .records-error,
.theme-light .records-empty {
    color: rgba(45, 74, 111, 0.5);
}

.theme-light .records-empty-hint {
    color: rgba(45, 74, 111, 0.4);
}

.theme-light .highscores-btn {
    background: linear-gradient(180deg,
        rgba(140, 172, 220, 0.3) 0%,
        rgba(110, 145, 195, 0.3) 100%);
    border-color: rgba(80, 120, 180, 0.4);
    color: #3d5a80;
}

.theme-light .highscores-btn:hover {
    background: linear-gradient(180deg,
        rgba(140, 172, 220, 0.5) 0%,
        rgba(110, 145, 195, 0.5) 100%);
    border-color: rgba(80, 120, 180, 0.6);
}

/* ========================================
   THEME: CLASSIC (Windows 95/98 style)
   ======================================== */
.theme-classic .leaderboard-modal {
    background: rgba(0, 0, 0, 0.5);
}

.theme-classic .leaderboard-content {
    background: #c0c0c0;
    border: 2px outset #ffffff;
    border-radius: 0;
    box-shadow: none;
    padding: 2px;
}

.theme-classic .leaderboard-header {
    background: linear-gradient(90deg, #000080 0%, #1084d0 100%);
    padding: 4px 8px;
    margin: 0 0 8px 0;
    border-bottom: none;
}

.theme-classic .leaderboard-header h2 {
    color: #fff;
    font-size: 1rem;
    font-family: 'MS Sans Serif', Tahoma, sans-serif;
    font-weight: bold;
}

.theme-classic .leaderboard-close-btn {
    background: #c0c0c0;
    border: 2px outset #ffffff;
    color: #000;
    font-size: 14px;
    padding: 0 4px;
    font-family: 'MS Sans Serif', Tahoma, sans-serif;
    line-height: 1.2;
}

.theme-classic .leaderboard-close-btn:hover {
    color: #000;
}

.theme-classic .leaderboard-close-btn:active {
    border-style: inset;
}

.theme-classic .leaderboard-filters {
    padding: 8px;
}

.theme-classic .filter-group label {
    color: #000;
    font-family: 'MS Sans Serif', Tahoma, sans-serif;
    text-transform: none;
    letter-spacing: normal;
}

.theme-classic .filter-btn {
    background: #c0c0c0;
    border: 2px outset #ffffff;
    border-radius: 0;
    color: #000;
    font-family: 'MS Sans Serif', Tahoma, sans-serif;
    padding: 4px 12px;
}

.theme-classic .filter-btn:hover {
    background: #d4d4d4;
    color: #000;
}

.theme-classic .filter-btn.active {
    background: #c0c0c0;
    border: 2px inset #808080;
    color: #000;
    box-shadow: none;
}

.theme-classic .leaderboard-player-rank {
    background: #fff;
    border: 2px inset #808080;
    border-radius: 0;
}

.theme-classic .rank-label,
.theme-classic .rank-value,
.theme-classic .rank-time {
    color: #000;
    font-family: 'MS Sans Serif', Tahoma, sans-serif;
}

.theme-classic .leaderboard-table-container {
    background: #fff;
    border: 2px inset #808080;
    border-radius: 0;
}

.theme-classic .leaderboard-table thead {
    background: #c0c0c0;
}

.theme-classic .leaderboard-table th {
    color: #000;
    font-family: 'MS Sans Serif', Tahoma, sans-serif;
    text-transform: none;
    letter-spacing: normal;
    border-bottom: 1px solid #808080;
}

.theme-classic .leaderboard-table td {
    color: #000;
    font-family: 'MS Sans Serif', Tahoma, sans-serif;
    border-bottom: 1px solid #c0c0c0;
}

.theme-classic .leaderboard-table tbody tr:hover {
    background: #000080;
    color: #fff;
}

.theme-classic .leaderboard-table tbody tr:hover td {
    color: #fff;
}

.theme-classic .leaderboard-table tbody tr.rank-1,
.theme-classic .leaderboard-table tbody tr.rank-2,
.theme-classic .leaderboard-table tbody tr.rank-3 {
    background: transparent;
}

.theme-classic .date-col {
    color: #808080 !important;
}

.theme-classic .loading-row td,
.theme-classic .leaderboard-empty {
    color: #808080;
    font-family: 'MS Sans Serif', Tahoma, sans-serif;
}

/* Classic theme - Game Over High Scores */
.theme-classic .record-row {
    background: #fff;
    border-bottom: 1px solid #c0c0c0;
    border-radius: 0;
}

.theme-classic .record-row:hover {
    background: #000080;
}

.theme-classic .record-row:hover .record-rank,
.theme-classic .record-row:hover .record-name,
.theme-classic .record-row:hover .record-time {
    color: #fff;
}

.theme-classic .record-rank {
    color: #000;
    font-family: 'MS Sans Serif', Tahoma, sans-serif;
}

.theme-classic .record-name {
    color: #000;
    font-family: 'MS Sans Serif', Tahoma, sans-serif;
}

.theme-classic .record-time {
    color: #000080;
    font-family: 'MS Sans Serif', Tahoma, sans-serif;
}

.theme-classic .records-title {
    color: #000;
    font-family: 'MS Sans Serif', Tahoma, sans-serif;
}

.theme-classic .period-btn {
    background: #c0c0c0;
    border: 2px outset #ffffff;
    border-radius: 0;
    color: #000;
    font-family: 'MS Sans Serif', Tahoma, sans-serif;
}

.theme-classic .period-btn:hover {
    background: #d4d4d4;
}

.theme-classic .period-btn.active {
    background: #c0c0c0;
    border: 2px inset #808080;
    color: #000;
    box-shadow: none;
}

.theme-classic .back-btn {
    color: #000080;
    font-family: 'MS Sans Serif', Tahoma, sans-serif;
}

.theme-classic .back-btn:hover {
    color: #000;
}

.theme-classic .records-loading,
.theme-classic .records-error,
.theme-classic .records-empty {
    color: #808080;
    font-family: 'MS Sans Serif', Tahoma, sans-serif;
}

.theme-classic .records-list {
    background: #fff;
    border: 2px inset #808080;
}

.theme-classic .highscores-btn {
    background: #c0c0c0;
    border: 2px outset #ffffff;
    border-radius: 0;
    color: #000;
    font-family: 'MS Sans Serif', Tahoma, sans-serif;
}

.theme-classic .highscores-btn:hover {
    background: #d4d4d4;
    transform: none;
}

.theme-classic .highscores-btn:active {
    border-style: inset;
}

/* ========================================
   THEME: KOKORO (Pink/Cute style)
   ======================================== */
.theme-kokoro .leaderboard-modal {
    background: rgba(255, 182, 193, 0.3);
}

.theme-kokoro .leaderboard-content {
    background: linear-gradient(135deg, #fff5f7 0%, #ffe4ec 100%);
    border: 2px solid rgba(255, 105, 180, 0.3);
    box-shadow: 0 20px 60px rgba(255, 105, 180, 0.2),
                0 0 30px rgba(255, 182, 193, 0.3);
}

.theme-kokoro .leaderboard-header {
    border-bottom-color: rgba(255, 105, 180, 0.2);
}

.theme-kokoro .leaderboard-header h2 {
    color: #d85a8a;
}

.theme-kokoro .leaderboard-close-btn {
    color: rgba(216, 90, 138, 0.5);
}

.theme-kokoro .leaderboard-close-btn:hover {
    color: #d85a8a;
}

.theme-kokoro .filter-group label {
    color: rgba(216, 90, 138, 0.7);
}

.theme-kokoro .filter-btn {
    background: rgba(255, 182, 193, 0.3);
    border-color: rgba(255, 105, 180, 0.3);
    color: #d85a8a;
}

.theme-kokoro .filter-btn:hover {
    background: rgba(255, 182, 193, 0.5);
    color: #c04878;
}

.theme-kokoro .filter-btn.active {
    background: linear-gradient(135deg, #ff69b4 0%, #ff1493 100%);
    color: #fff;
    border-color: transparent;
    box-shadow: 0 4px 12px rgba(255, 105, 180, 0.4);
}

.theme-kokoro .leaderboard-player-rank {
    background: rgba(255, 105, 180, 0.1);
    border-color: rgba(255, 105, 180, 0.3);
}

.theme-kokoro .rank-label {
    color: rgba(216, 90, 138, 0.7);
}

.theme-kokoro .rank-value {
    color: #ff69b4;
}

.theme-kokoro .rank-time {
    color: #d85a8a;
}

.theme-kokoro .leaderboard-table-container {
    background: rgba(255, 255, 255, 0.5);
}

.theme-kokoro .leaderboard-table thead {
    background: rgba(255, 218, 233, 0.9);
}

.theme-kokoro .leaderboard-table th {
    color: rgba(216, 90, 138, 0.7);
    border-bottom-color: rgba(255, 105, 180, 0.2);
}

.theme-kokoro .leaderboard-table td {
    color: #8b4569;
    border-bottom-color: rgba(255, 105, 180, 0.1);
}

.theme-kokoro .leaderboard-table tbody tr:hover {
    background: rgba(255, 182, 193, 0.3);
}

.theme-kokoro .date-col {
    color: rgba(216, 90, 138, 0.5) !important;
}

.theme-kokoro .loading-row td,
.theme-kokoro .leaderboard-empty {
    color: rgba(216, 90, 138, 0.5);
}

.theme-kokoro .leaderboard-empty .empty-hint {
    color: rgba(216, 90, 138, 0.4);
}

/* Kokoro theme - Game Over High Scores */
.theme-kokoro .record-row {
    background: rgba(255, 182, 193, 0.15);
}

.theme-kokoro .record-row:hover {
    background: rgba(255, 182, 193, 0.3);
}

.theme-kokoro .record-rank {
    color: #d85a8a;
}

.theme-kokoro .record-name {
    color: #8b4569;
}

.theme-kokoro .record-time {
    color: #ff69b4;
}

.theme-kokoro .records-title {
    color: #d85a8a;
}

.theme-kokoro .period-btn {
    background: rgba(255, 182, 193, 0.3);
    border-color: rgba(255, 105, 180, 0.3);
    color: #d85a8a;
}

.theme-kokoro .period-btn:hover {
    background: rgba(255, 182, 193, 0.5);
    color: #c04878;
}

.theme-kokoro .period-btn.active {
    background: linear-gradient(135deg, #ff69b4 0%, #ff1493 100%);
    color: #fff;
    border-color: transparent;
}

.theme-kokoro .back-btn {
    color: rgba(216, 90, 138, 0.7);
}

.theme-kokoro .back-btn:hover {
    color: #d85a8a;
}

.theme-kokoro .records-loading,
.theme-kokoro .records-error,
.theme-kokoro .records-empty {
    color: rgba(216, 90, 138, 0.5);
}

.theme-kokoro .records-empty-hint {
    color: rgba(216, 90, 138, 0.4);
}

.theme-kokoro .highscores-btn {
    background: linear-gradient(135deg, rgba(255, 182, 193, 0.3) 0%, rgba(255, 218, 233, 0.3) 100%);
    border-color: rgba(255, 105, 180, 0.4);
    color: #d85a8a;
}

.theme-kokoro .highscores-btn:hover {
    background: linear-gradient(135deg, rgba(255, 182, 193, 0.5) 0%, rgba(255, 218, 233, 0.5) 100%);
    border-color: rgba(255, 105, 180, 0.6);
}
