/* ═══════════════════════════════════════════════════════════════════════════
   Games Pages Styles - Recent Games, Vs Games, and Game Detail
   ═══════════════════════════════════════════════════════════════════════════ */

/* ── CSS Custom Properties for Games ── */
:root {
    --game-win-color: #198754;
    --game-win-bg: rgba(25, 135, 84, 0.08);
    --game-loss-color: #dc3545;
    --game-loss-bg: rgba(220, 53, 69, 0.08);
    --game-draw-color: #6c757d;
    --game-draw-bg: rgba(108, 117, 125, 0.08);

    --time-bullet-color: #dc3545;
    --time-blitz-color: #f59e0b;
    --time-rapid-color: #198754;
    --time-daily-color: #0ea5e9;

    --card-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    --card-shadow-hover: 0 8px 24px rgba(0, 0, 0, 0.12);
    --card-radius: 0.75rem;
    --card-border: 1px solid #e9ecef;
}

/* ═══════════════════════════════════════════════════════════════════════════
   GAMES LIST CONTAINER
   ═══════════════════════════════════════════════════════════════════════════ */
.games-list {
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
}

/* ═══════════════════════════════════════════════════════════════════════════
   GAME CARD COMPONENT
   ═══════════════════════════════════════════════════════════════════════════ */
.game-card {
    background: #fff;
    border-radius: var(--card-radius);
    box-shadow: var(--card-shadow);
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border-left: 5px solid;
    border: var(--card-border);
    border-left-width: 5px;
}

.game-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--card-shadow-hover);
}

.game-card.border-success {
    border-left-color: var(--game-win-color);
}

.game-card.border-danger {
    border-left-color: var(--game-loss-color);
}

.game-card.border-secondary {
    border-left-color: var(--game-draw-color);
}

/* Game Card Link */
.game-card-link {
    display: flex;
    align-items: stretch;
    text-decoration: none;
    color: inherit;
    min-height: 88px;
}

.game-card-link:hover {
    color: inherit;
    text-decoration: none;
}

/* ── Outcome Indicator (Left Section) ── */
.game-outcome {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0.875rem;
    min-width: 72px;
    gap: 0.375rem;
}

.game-outcome i {
    font-size: 1.375rem;
}

.game-outcome .outcome-text {
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.75px;
}

.game-outcome .piece-color {
    margin-top: 0.25rem;
}

.game-outcome .piece-color i {
    font-size: 0.875rem;
}

/* Piece Color Indicators */
.piece-white {
    color: #f8f9fa;
    -webkit-text-stroke: 1.5px #495057;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.piece-black {
    color: #343a40;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

/* Outcome Backgrounds */
.outcome-success {
    background: linear-gradient(135deg, var(--game-win-bg) 0%, rgba(25, 135, 84, 0.03) 100%);
    color: var(--game-win-color);
}

.outcome-danger {
    background: linear-gradient(135deg, var(--game-loss-bg) 0%, rgba(220, 53, 69, 0.03) 100%);
    color: var(--game-loss-color);
}

.outcome-secondary {
    background: linear-gradient(135deg, var(--game-draw-bg) 0%, rgba(108, 117, 125, 0.03) 100%);
    color: var(--game-draw-color);
}

/* ── Main Content Area ── */
.game-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0.75rem 1rem;
    gap: 0.4rem;
    min-width: 0;
    border-left: 1px solid #f0f0f0;
}

/* Header Row */
.game-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
}

.opponent-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    min-width: 0;
    flex: 1;
}

.opponent-name {
    font-weight: 600;
    font-size: 1rem;
    color: #212529;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.opponent-rating {
    font-size: 0.75rem;
    color: #6c757d;
    background: linear-gradient(135deg, #f8f9fa 0%, #f1f3f5 100%);
    padding: 0.2rem 0.6rem;
    border-radius: 2rem;
    border: 1px solid #e9ecef;
    white-space: nowrap;
    font-weight: 500;
}

.game-date {
    font-size: 0.75rem;
    color: #868e96;
    white-space: nowrap;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.game-date i {
    font-size: 0.7rem;
    opacity: 0.7;
}

/* Details Row */
.game-details {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

/* ── Time Control Badges ── */
.time-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.2rem 0.6rem;
    border-radius: 0.375rem;
    font-size: 0.7rem;
    font-weight: 600;
    white-space: nowrap;
    letter-spacing: 0.25px;
}

.time-badge i {
    font-size: 0.65rem;
}

.time-bullet {
    background: linear-gradient(135deg, var(--time-bullet-color) 0%, #c82333 100%);
    color: #fff;
}

.time-blitz {
    background: linear-gradient(135deg, var(--time-blitz-color) 0%, #d97706 100%);
    color: #fff;
}

.time-rapid {
    background: linear-gradient(135deg, var(--time-rapid-color) 0%, #157347 100%);
    color: #fff;
}

.time-daily {
    background: linear-gradient(135deg, var(--time-daily-color) 0%, #0284c7 100%);
    color: #fff;
}

.time-unknown {
    background: linear-gradient(135deg, #6c757d 0%, #5a6268 100%);
    color: #fff;
}

/* ECO Badge */
.eco-badge {
    font-family: 'SF Mono', 'Fira Code', Consolas, monospace;
    font-size: 0.65rem;
    font-weight: 700;
    background: #e9ecef;
    color: #495057;
    padding: 0.2rem 0.45rem;
    border-radius: 0.25rem;
    letter-spacing: 0.5px;
}

/* Opening Name */
.opening-name {
    font-size: 0.8rem;
    color: #6c757d;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 280px;
}

/* Termination Row */
.game-termination {
    font-size: 0.7rem;
    color: #adb5bd;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.game-termination i {
    font-size: 0.6rem;
}

/* Arrow Indicator */
.game-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 1rem;
    color: #dee2e6;
    font-size: 1.25rem;
    transition: color 0.2s ease, transform 0.2s ease;
}

.game-card:hover .game-arrow {
    color: #0d6efd;
    transform: translateX(4px);
}

/* ═══════════════════════════════════════════════════════════════════════════
   VS PAGE - RIVALRY HEADER
   ═══════════════════════════════════════════════════════════════════════════ */
.rivalry-header {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    border-radius: var(--card-radius);
    padding: 1.75rem 1.5rem;
    text-align: center;
    color: #fff;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.rivalry-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E") repeat;
    pointer-events: none;
}

.rivalry-players {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    position: relative;
    z-index: 1;
}

.player-side {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.375rem;
}

.player-name {
    font-size: 1.375rem;
    font-weight: 700;
    color: #fff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.player-title {
    font-size: 0.7rem;
    background: linear-gradient(135deg, #ffc107 0%, #ff9800 100%);
    color: #1a1a2e;
    padding: 0.2rem 0.6rem;
    border-radius: 0.25rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px rgba(255, 193, 7, 0.3);
}

.vs-badge {
    font-size: 1.75rem;
    font-weight: 800;
    color: rgba(255, 255, 255, 0.4);
    background: rgba(255, 255, 255, 0.08);
    padding: 0.5rem 1.25rem;
    border-radius: 0.5rem;
    letter-spacing: 2px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Clickable Player Names */
.player-name-link {
    text-decoration: none;
    transition: transform 0.2s ease;
    display: inline-block;
}

.player-name-link:hover {
    transform: scale(1.05);
}

.player-name-link:hover .player-name {
    text-decoration: underline;
    text-decoration-thickness: 2px;
    text-underline-offset: 3px;
}

/* ═══════════════════════════════════════════════════════════════════════════
   VS PAGE - STATS CARD
   ═══════════════════════════════════════════════════════════════════════════ */
.stats-card {
    background: #fff;
    border-radius: var(--card-radius);
    box-shadow: var(--card-shadow);
    overflow: hidden;
    border: var(--card-border);
}

.stats-header {
    background: linear-gradient(135deg, #0d6efd 0%, #0b5ed7 100%);
    color: #fff;
    padding: 0.875rem 1.25rem;
    font-weight: 600;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.stats-header i {
    font-size: 1rem;
    opacity: 0.9;
}

.stats-body {
    padding: 1.5rem;
}

/* ── Record Progress Bar ── */
.record-bar-container {
    text-align: center;
}

.record-bar {
    display: flex;
    height: 3rem;
    border-radius: 0.5rem;
    overflow: hidden;
    background: #e9ecef;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.08);
}

.record-segment {
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1rem;
    color: #fff;
    transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    min-width: 0;
    position: relative;
}

.record-segment span {
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
    font-size: 0.95rem;
}

.win-segment {
    background: linear-gradient(135deg, #198754 0%, #20c997 100%);
}

.draw-segment {
    background: linear-gradient(135deg, #6c757d 0%, #adb5bd 100%);
}

.loss-segment {
    background: linear-gradient(135deg, #dc3545 0%, #e85d6a 100%);
}

/* Record Legend */
.record-legend {
    display: flex;
    justify-content: center;
    gap: 1.75rem;
    margin-top: 1rem;
    flex-wrap: wrap;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: #495057;
    font-weight: 500;
}

.legend-color {
    width: 14px;
    height: 14px;
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
}

.win-color {
    background: linear-gradient(135deg, #198754 0%, #20c997 100%);
}

.draw-color {
    background: linear-gradient(135deg, #6c757d 0%, #adb5bd 100%);
}

.loss-color {
    background: linear-gradient(135deg, #dc3545 0%, #e85d6a 100%);
}

/* ── Stats Grid ── */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 0.625rem;
    border: 1px solid #e9ecef;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.stat-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.stat-item.stat-highlight {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.stat-icon {
    width: 2.75rem;
    height: 2.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border-radius: 0.5rem;
    color: #0d6efd;
    font-size: 1.125rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    border: 1px solid #e9ecef;
}

.stat-content {
    flex: 1;
    min-width: 0;
}

.stat-value {
    font-size: 1.625rem;
    font-weight: 700;
    line-height: 1.2;
    color: #212529;
}

.stat-label {
    font-size: 0.7rem;
    color: #6c757d;
    text-transform: uppercase;
    letter-spacing: 0.75px;
    font-weight: 600;
    margin-top: 0.125rem;
}

/* ── Streak Stats ── */
.streak-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.streak-item {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    padding: 1rem 1.25rem;
    border-radius: 0.625rem;
    border-left: 5px solid;
    transition: transform 0.2s ease;
}

.streak-item:hover {
    transform: translateX(4px);
}

.streak-item i {
    font-size: 1.5rem;
}

.streak-win {
    background: linear-gradient(135deg, rgba(25, 135, 84, 0.08) 0%, rgba(25, 135, 84, 0.03) 100%);
    border-left-color: var(--game-win-color);
}

.streak-win i {
    color: var(--game-win-color);
}

.streak-loss {
    background: linear-gradient(135deg, rgba(220, 53, 69, 0.08) 0%, rgba(220, 53, 69, 0.03) 100%);
    border-left-color: var(--game-loss-color);
}

.streak-loss i {
    color: var(--game-loss-color);
}

.streak-content {
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
}

.streak-value {
    font-size: 1.375rem;
    font-weight: 700;
}

.streak-win .streak-value {
    color: var(--game-win-color);
}

.streak-loss .streak-value {
    color: var(--game-loss-color);
}

.streak-label {
    font-size: 0.7rem;
    color: #6c757d;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

/* ═══════════════════════════════════════════════════════════════════════════
   GAME DETAIL PAGE
   ═══════════════════════════════════════════════════════════════════════════ */

/* Player Cards */
.player-card .player-row {
    transition: background-color 0.2s ease;
}

.player-card .player-row:hover {
    background-color: rgba(0, 0, 0, 0.02);
}

.winner-highlight {
    background-color: rgba(25, 135, 84, 0.06);
    border-left: 3px solid var(--game-win-color);
}

.avatar-img {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #e9ecef;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.avatar-placeholder {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, #e9ecef 0%, #dee2e6 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6c757d;
    font-size: 1.25rem;
    border: 2px solid #dee2e6;
}

.piece-icon {
    font-size: 1.25rem;
    width: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Time Class Badges (Detail Page) */
.time-class-badge {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.75px;
    padding: 0.25rem 0.625rem;
    border-radius: 0.375rem;
}

.time-class-bullet {
    background: linear-gradient(135deg, var(--time-bullet-color) 0%, #c82333 100%);
    color: #fff;
}

.time-class-blitz {
    background: linear-gradient(135deg, var(--time-blitz-color) 0%, #d97706 100%);
    color: #fff;
}

.time-class-rapid {
    background: linear-gradient(135deg, var(--time-rapid-color) 0%, #157347 100%);
    color: #fff;
}

.time-class-daily {
    background: linear-gradient(135deg, var(--time-daily-color) 0%, #0284c7 100%);
    color: #fff;
}

.time-class-unknown {
    background: linear-gradient(135deg, #6c757d 0%, #5a6268 100%);
    color: #fff;
}

/* Opening Name (Detail) */
.opening-name-detail {
    font-size: 0.95rem;
    line-height: 1.5;
    color: #495057;
}

/* ── Move List ── */
.move-list-container {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem 1rem;
    max-height: 280px;
    overflow-y: auto;
    padding: 0.75rem;
    font-family: 'SF Mono', 'Fira Code', Consolas, monospace;
    font-size: 0.85rem;
    background: #fafafa;
    border-radius: 0.5rem;
    border: 1px solid #e9ecef;
}

.move-pair {
    white-space: nowrap;
}

.move-number {
    min-width: 2rem;
    text-align: right;
    color: #adb5bd;
    font-weight: 500;
}

.move-item {
    cursor: pointer;
    padding: 0.2rem 0.5rem;
    border-radius: 0.25rem;
    transition: background-color 0.15s ease, color 0.15s ease;
}

.move-item:hover {
    background-color: #e9ecef;
}

.move-item.active {
    background-color: #0d6efd;
    color: #fff;
    font-weight: 600;
}

.move-white {
    min-width: 3.5rem;
}

.move-black {
    min-width: 3.5rem;
}

.move-counter {
    font-family: 'SF Mono', 'Fira Code', Consolas, monospace;
    font-size: 0.8rem;
}

/* Game Navigation Buttons */
.btn-outline-primary:disabled,
.btn-outline-secondary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Card Header Improvements */
.card-header h6 {
    font-weight: 600;
}

.card-header .bi {
    color: #6c757d;
}

/* Actions Card */
.d-grid.gap-2 .btn {
    text-align: left;
    display: flex;
    align-items: center;
}

.d-grid.gap-2 .btn i {
    min-width: 1.5rem;
}

/* Board Controls */
#flipBoardBtn,
#autoPlayBtn {
    transition: transform 0.2s ease, background-color 0.2s ease;
}

#flipBoardBtn:hover:not(:disabled),
#autoPlayBtn:hover:not(:disabled) {
    transform: scale(1.08);
}

#autoPlayBtn.playing {
    background-color: #0d6efd;
    color: #fff;
    border-color: #0d6efd;
}

/* Rating Difference */
.player-row .text-success,
.player-row .text-danger {
    font-weight: 600;
    font-size: 0.75rem;
}

/* Keyboard Hint */
.card-footer .bi-keyboard {
    font-size: 1rem;
}

/* Trophy Animation */
.bi-trophy-fill {
    animation: trophy-pulse 2.5s ease-in-out infinite;
}

@keyframes trophy-pulse {
    0%, 100% {
        filter: drop-shadow(0 0 3px rgba(255, 193, 7, 0.4));
    }
    50% {
        filter: drop-shadow(0 0 8px rgba(255, 193, 7, 0.7));
    }
}

/* Scrollbar Styling */
.move-list-container::-webkit-scrollbar {
    width: 6px;
}

.move-list-container::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.move-list-container::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 3px;
}

.move-list-container::-webkit-scrollbar-thumb:hover {
    background: #a1a1a1;
}

/* Player Row Links */
.player-row a {
    color: inherit;
    transition: color 0.2s ease;
}

.player-row a:hover {
    color: #0d6efd;
}

/* ═══════════════════════════════════════════════════════════════════════════
   RESPONSIVE STYLES
   ═══════════════════════════════════════════════════════════════════════════ */

/* Tablet */
@media (max-width: 767.98px) {
    /* Rivalry Header */
    .rivalry-header {
        padding: 1.25rem 1rem;
    }

    .rivalry-players {
        gap: 1.25rem;
    }

    .player-name {
        font-size: 1.125rem;
    }

    .vs-badge {
        font-size: 1.375rem;
        padding: 0.375rem 0.875rem;
    }

    /* Stats Grid */
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .stat-value {
        font-size: 1.375rem;
    }

    /* Streak Stats */
    .streak-stats {
        grid-template-columns: 1fr;
    }

    /* Game Cards */
    .game-card-link {
        min-height: 80px;
    }

    .game-outcome {
        min-width: 60px;
        padding: 0.625rem;
    }

    .game-outcome i {
        font-size: 1.125rem;
    }

    .game-outcome .outcome-text {
        font-size: 0.6rem;
    }

    .game-content {
        padding: 0.625rem 0.875rem;
    }

    .opponent-name {
        font-size: 0.95rem;
    }

    .game-date {
        display: none;
    }

    .opening-name {
        max-width: 180px;
    }

    .game-arrow {
        padding: 0 0.625rem;
    }

    /* Game Detail */
    .player-card .player-row {
        padding: 0.75rem !important;
    }

    .avatar-img,
    .avatar-placeholder {
        width: 36px;
        height: 36px;
        font-size: 1rem;
    }

    .piece-icon {
        font-size: 1rem;
        width: 22px;
    }

    .move-list-container {
        max-height: 200px;
        font-size: 0.8rem;
    }
}

/* Mobile */
@media (max-width: 575.98px) {
    /* Rivalry Header */
    .rivalry-players {
        flex-direction: column;
        gap: 0.75rem;
    }

    .vs-badge {
        font-size: 1.125rem;
        padding: 0.3rem 0.625rem;
    }

    .player-name {
        font-size: 1rem;
    }

    /* Stats */
    .stats-body {
        padding: 1rem;
    }

    .stats-grid {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }

    .stat-item {
        justify-content: flex-start;
        padding: 0.875rem;
    }

    .stat-icon {
        width: 2.5rem;
        height: 2.5rem;
        font-size: 1rem;
    }

    .stat-value {
        font-size: 1.25rem;
    }

    .record-bar {
        height: 2.5rem;
    }

    .record-legend {
        gap: 1rem;
    }

    .legend-item {
        font-size: 0.75rem;
    }

    /* Streak */
    .streak-item {
        padding: 0.75rem 1rem;
    }

    .streak-item i {
        font-size: 1.25rem;
    }

    .streak-value {
        font-size: 1.125rem;
    }

    /* Game Cards */
    .game-outcome {
        min-width: 52px;
        padding: 0.5rem;
    }

    .game-outcome .outcome-text {
        display: none;
    }

    .game-outcome .piece-color {
        margin-top: 0.375rem;
    }

    .opponent-rating {
        display: none;
    }

    .time-badge .time-text {
        display: none;
    }

    .time-badge {
        padding: 0.25rem 0.375rem;
    }

    .time-badge i {
        font-size: 0.8rem;
    }

    .opening-name {
        max-width: 100px;
        font-size: 0.75rem;
    }

    .game-termination {
        display: none;
    }

    .game-arrow {
        padding: 0 0.5rem;
        font-size: 1rem;
    }

    /* Game Detail */
    .btn-group .btn {
        padding: 0.25rem 0.5rem;
        font-size: 0.8rem;
    }

    .badge.fs-6 {
        font-size: 0.875rem !important;
    }

    .move-list-container {
        font-size: 0.75rem;
        padding: 0.5rem;
    }

    .move-number {
        min-width: 1.5rem;
    }

    .move-white,
    .move-black {
        min-width: 2.75rem;
    }

    .move-item {
        padding: 0.15rem 0.35rem;
    }
}

/* ═══════════════════════════════════════════════════════════════════════════
   UTILITY CLASSES
   ═══════════════════════════════════════════════════════════════════════════ */

/* Section heading for games list */
.games-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.games-section-header h5,
.games-section-header h6 {
    margin-bottom: 0;
    font-weight: 600;
}

/* Badge improvements */
.games-count-badge {
    font-size: 0.8rem;
    font-weight: 600;
    padding: 0.35rem 0.75rem;
    border-radius: 2rem;
}

/* Empty state */
.games-empty-state {
    text-align: center;
    padding: 3rem 1.5rem;
    background: #f8f9fa;
    border-radius: var(--card-radius);
    border: 1px dashed #dee2e6;
}

.games-empty-state i {
    font-size: 3rem;
    color: #adb5bd;
    margin-bottom: 1rem;
}

.games-empty-state p {
    color: #6c757d;
    margin-bottom: 0;
}
