/**
 * Live Scorekeeper Styles - React Native Design
 * Horizontal split with center control panel
 */

:root {
    --player1-color: #ff6600;
    --player2-color: #00aa00;
    --center-bg: #e8e8e8;
    --text-dark: #333333;
    --text-light: #ffffff;
    --shadow: 0 2px 8px rgba(0,0,0,0.15);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: #000;
    color: var(--text-dark);
    overflow: auto;
    -webkit-overflow-scrolling: touch;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    /* Allow minimal scroll to trigger iOS fullscreen */
    min-height: calc(100vh + 1px);
}

/* Loading Screen */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #000;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(255,255,255,0.1);
    border-top-color: var(--player1-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.loading-screen p {
    margin-top: 20px;
    color: rgba(255,255,255,0.7);
}

/* Main App */
.scorekeeper-app {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: #000;
}

/* Header */
.scorekeeper-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 16px;
    background: rgba(0,0,0,0.5);
    border-bottom: 1px solid rgba(255,255,255,0.1);
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
}

.header-btn {
    width: 40px;
    height: 40px;
    border: none;
    background: transparent;
    color: var(--text-light);
    cursor: pointer;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.header-btn:hover {
    background: rgba(255,255,255,0.1);
}

.header-title {
    flex: 1;
    text-align: center;
}

.header-actions {
    display: flex;
    gap: 8px;
}

/* Icon buttons in header - sized to match header height */
.icon-btn {
    width: 44px;
    height: 44px;
    border: none;
    background: rgba(255,255,255,0.1);
    color: var(--text-light);
    cursor: pointer;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    transition: background 0.2s;
}

.icon-btn:hover {
    background: rgba(255,255,255,0.2);
}

.icon-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.match-status {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #4CAF50;
}

.match-timer {
    font-size: 11px;
    color: rgba(255,255,255,0.5);
    margin-top: 2px;
}

/* Score Area - Horizontal Split */
.score-area {
    flex: 1;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 0;
    padding-top: 56px; /* Header height */
}

/* Player Panels */
.player-panel {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
    padding: 20px;
}

.player1-panel {
    background: var(--player1-color);
    color: var(--text-light);
}

.player2-panel {
    background: var(--player2-color);
    color: var(--text-light);
}

.player-panel:active {
    filter: brightness(1.1);
    transform: scale(0.99);
}

/* Sets Won Badge */
.sets-won-badge {
    position: absolute;
    top: 24px;
    right: 24px;
    width: 60px;
    height: 60px;
    background: rgba(0,0,0,0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    font-weight: 900;
    color: var(--text-light);
}

/* Timeout Button on Player Panel */
.timeout-btn-player {
    position: absolute;
    top: 24px;
    left: 24px;
    width: 50px;
    height: 50px;
    background: rgba(0,0,0,0.3);
    border: 2px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    cursor: pointer;
    transition: all 0.2s;
    z-index: 10;
}

.timeout-btn-player:hover {
    background: rgba(0,0,0,0.5);
    border-color: rgba(255,255,255,0.6);
    transform: scale(1.05);
}

.timeout-btn-player:active {
    transform: scale(0.95);
}

/* Large Score */
.player-score-large {
    font-size: 140px;
    font-weight: 900;
    line-height: 1;
    font-variant-numeric: tabular-nums;
    margin: 20px 0;
}

/* Player Name at Bottom */
.player-name-bottom {
    font-size: 24px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Serving Indicator Dot */
.serving-dot {
    width: 16px;
    height: 16px;
    background: var(--text-light);
    border-radius: 50%;
    display: none;
    animation: pulse 1.5s infinite;
}

.player-panel.serving .serving-dot {
    display: inline-block;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.6; transform: scale(1.2); }
}

/* Timeout Indicator in Player Block */
.timeout-indicator {
    position: absolute;
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 11px;
    text-align: center;
    line-height: 1.3;
    font-weight: 600;
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    z-index: 10;
}

.timeout-used {
    white-space: nowrap;
}

/* Center Panel */
.center-panel {
    width: 280px;
    background: var(--center-bg);
    display: flex;
    flex-direction: column;
    padding: 20px;
    overflow-y: auto;
}

.match-info {
    text-align: center;
    margin-bottom: 20px;
}

.match-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 4px;
}

.match-subtitle {
    font-size: 12px;
    color: #666;
}

.match-details {
    display: flex;
    justify-content: space-around;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(0,0,0,0.1);
}

.detail-item {
    font-size: 11px;
    color: #666;
    text-align: center;
}

.detail-item strong {
    display: block;
    font-size: 12px;
    color: var(--text-dark);
    margin-top: 2px;
}

/* Warmup Button */
.warmup-btn {
    width: 100%;
    padding: 12px 16px;
    margin-bottom: 12px;
    background: linear-gradient(135deg, #4CAF50, #45a049);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.2s;
    box-shadow: 0 2px 8px rgba(76, 175, 80, 0.3);
}

.warmup-btn:hover {
    background: linear-gradient(135deg, #45a049, #3d8b40);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.4);
}

.warmup-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(76, 175, 80, 0.3);
}

.warmup-btn svg {
    flex-shrink: 0;
}

/* Notice Timer */
.notice-timer {
    position: relative;
    background: linear-gradient(135deg, #ff6600, #ff8833);
    border-radius: 8px;
    padding: 12px;
    margin-bottom: 12px;
    text-align: center;
    box-shadow: 0 4px 12px rgba(255, 102, 0, 0.3);
    animation: pulse-timer 1s infinite;
}

.timer-cancel-btn {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 24px;
    height: 24px;
    border: none;
    background: rgba(0,0,0,0.3);
    color: white;
    border-radius: 50%;
    font-size: 16px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.timer-cancel-btn:hover {
    background: rgba(0,0,0,0.5);
    transform: scale(1.1);
}

.timer-cancel-btn:active {
    transform: scale(0.95);
}

@keyframes pulse-timer {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.02); }
}

.timer-label {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: rgba(255,255,255,0.9);
    margin-bottom: 4px;
}

.timer-display {
    font-size: 32px;
    font-weight: 900;
    color: #fff;
    font-variant-numeric: tabular-nums;
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.notice-timer.warning {
    background: linear-gradient(135deg, #ff3333, #ff6666);
    animation: pulse-warning 0.5s infinite;
}

@keyframes pulse-warning {
    0%, 100% { transform: scale(1); box-shadow: 0 4px 12px rgba(255, 51, 51, 0.5); }
    50% { transform: scale(1.05); box-shadow: 0 6px 16px rgba(255, 51, 51, 0.7); }
}

/* Timer Controls */
.timer-controls {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
}

.timer-btn {
    flex: 1;
    padding: 8px;
    border: 1px solid rgba(0,0,0,0.15);
    background: rgba(0,0,0,0.05);
    border-radius: 6px;
    font-size: 10px;
    font-weight: 600;
    color: #666;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    transition: all 0.2s;
}

.timer-btn:hover {
    background: rgba(0,0,0,0.1);
    border-color: rgba(0,0,0,0.25);
    color: #333;
}

.timer-btn:active {
    transform: scale(0.95);
}

.timer-btn svg {
    margin-bottom: 2px;
}

/* Set History */
.set-history-container {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.set-history {
    flex: 1;
    overflow-y: auto;
}

.no-sets {
    text-align: center;
    padding: 16px;
    color: #999;
    font-size: 12px;
    font-style: italic;
}

.set-history-item {
    background: rgba(0,0,0,0.05);
    border-radius: 6px;
    padding: 8px 10px;
    margin-bottom: 6px;
    transition: all 0.2s;
}

.set-history-item:hover {
    background: rgba(0,0,0,0.1);
    transform: translateX(2px);
}

.set-history-item .set-score {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.set-history-item .player-name {
    font-weight: 600;
    font-size: 11px;
    flex: 1;
}

.set-history-item .score {
    font-weight: 700;
    font-size: 14px;
    color: var(--text-dark);
    padding: 0 8px;
}

.set-history-item .winner {
    color: #4CAF50;
}


/* Modals */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.85);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    padding: 20px;
    backdrop-filter: blur(4px);
}

.modal.active {
    display: flex;
}

.modal-content {
    background: #fff;
    border-radius: 16px;
    padding: 32px;
    max-width: 500px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 8px 32px rgba(0,0,0,0.3);
    position: relative;
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: none;
    border: none;
    font-size: 32px;
    line-height: 1;
    color: #999;
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s;
    z-index: 10;
}

.modal-close:hover {
    background: #f0f0f0;
    color: #333;
}

.modal-content h2 {
    margin-bottom: 24px;
    font-size: 24px;
    text-align: center;
    color: var(--text-dark);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-dark);
}

.form-control {
    width: 100%;
    height: 48px;
    padding: 0 16px;
    border: 2px solid #ddd;
    background: #fff;
    color: var(--text-dark);
    border-radius: 8px;
    font-size: 16px;
    transition: all 0.2s;
}

.form-control:focus {
    outline: none;
    border-color: var(--player1-color);
}

.modal-actions {
    display: flex;
    gap: 12px;
    margin-top: 24px;
}

.btn {
    flex: 1;
    height: 48px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-primary {
    background: var(--player1-color);
    color: var(--text-light);
}

.btn-primary:hover {
    background: #ff7722;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.btn-secondary {
    background: #ddd;
    color: var(--text-dark);
}

.btn-secondary:hover {
    background: #ccc;
}

/* Set/Match Result */
.set-result, .match-result {
    text-align: center;
    padding: 20px;
    background: #f5f5f5;
    border-radius: 12px;
    margin-bottom: 20px;
}

.result-score {
    font-size: 48px;
    font-weight: 900;
    margin: 16px 0;
    color: var(--text-dark);
}

.result-winner {
    font-size: 20px;
    color: #4CAF50;
    font-weight: 700;
    margin-bottom: 8px;
}

/* Enhanced Set Complete Modal */
.set-complete-header {
    text-align: center;
    margin-bottom: 24px;
}

.set-complete-header h2 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.set-stats-container {
    background: #f5f5f5;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
}

.set-stats-grid {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 16px;
    align-items: center;
    margin-bottom: 16px;
}

.player-stats {
    text-align: center;
}

.player-stats.winner {
    color: var(--player1-color);
}

.player-stats.loser {
    color: var(--player2-color);
}

.player-stats .score {
    font-size: 48px;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 4px;
}

.player-stats .name {
    font-size: 14px;
    font-weight: 600;
    opacity: 0.8;
}

.stats-divider {
    text-align: center;
    color: #999;
    font-size: 14px;
    font-weight: 600;
}

.detailed-stats {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 12px;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 2px solid #e0e0e0;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.stat-item.left {
    align-items: flex-end;
}

.stat-item.right {
    align-items: flex-start;
}

.stat-value {
    font-size: 20px;
    font-weight: 700;
}

.stat-label {
    font-size: 11px;
    color: #666;
    text-align: center;
}

.point-matrix-mini {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 2px solid #e0e0e0;
    width: 100%;
}

.point-matrix-mini .point-matrix {
    width: 100%;
    overflow-x: auto;
}

.point-matrix-mini .matrix-row {
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    width: 100%;
}

.point-matrix-mini .matrix-player {
    font-size: 12px;
    width: 80px;
    min-width: 80px;
    flex-shrink: 0;
}

.point-matrix-mini .matrix-points {
    display: flex;
    flex-wrap: nowrap;
    gap: 6px;
    flex: 1;
    overflow-x: auto;
    padding: 4px 0;
}

.point-matrix-mini .matrix-cell {
    width: 24px;
    height: 24px;
    min-width: 24px;
    font-size: 10px;
    flex-shrink: 0;
}

.modal-actions-set {
    display: flex;
    gap: 12px;
    margin-top: 20px;
}

.modal-actions-set button {
    flex: 1;
}

/* Point Matrix */
.point-matrix {
    margin: 20px 0;
    max-width: 100%;
    overflow-x: auto;
}

.point-matrix-title {
    font-size: 20px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 20px;
}

.matrix-row {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
}

.matrix-header {
    font-weight: 600;
}

.matrix-player {
    width: 120px;
    font-size: 14px;
    flex-shrink: 0;
}

.matrix-points {
    display: flex;
    flex-wrap: nowrap;
    gap: 6px;
    flex: 1;
    overflow-x: auto;
    padding: 4px 0;
}

.matrix-cell {
    width: 40px;
    height: 40px;
    min-width: 40px;
    border: 2px solid #ddd;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 600;
    background: white;
    flex-shrink: 0;
}

.matrix-row:first-child .matrix-cell.scored {
    background: var(--player1-color);
    color: white;
    border-color: var(--player1-color);
}

.matrix-row:last-child .matrix-cell.scored {
    background: var(--player2-color);
    color: white;
    border-color: var(--player2-color);
}

/* Responsive Design */
@media (max-width: 768px) {
    .player-score-large {
        font-size: 100px;
    }
    
    .player-name-bottom {
        font-size: 20px;
    }
    
    .sets-won-badge {
        width: 48px;
        height: 48px;
        font-size: 24px;
        top: 16px;
        right: 16px;
    }
    
    .center-panel {
        width: 200px;
        padding: 12px;
    }
    
    .control-btn {
        width: 52px;
        height: 52px;
    }
    
    .control-btn svg {
        width: 20px;
        height: 20px;
    }
}

@media (max-width: 480px) {
    .player-score-large {
        font-size: 60px;
    }
    
    .player-name-bottom {
        font-size: 16px;
    }
    
    .center-panel {
        width: 140px;
        padding: 8px;
        font-size: 11px;
    }
    
    .match-title {
        font-size: 16px;
    }
    
    .match-subtitle {
        font-size: 10px;
    }
    
    .control-btn {
        width: 44px;
        height: 44px;
    }
    
    .control-btn svg {
        width: 18px;
        height: 18px;
    }
}

/* Landscape Mode - Mobile Optimizations */
@media (orientation: landscape) and (max-height: 600px) {
    .player-score-large {
        font-size: 70px;
        margin: 10px 0;
    }
    
    .player-name-bottom {
        font-size: 16px;
    }
    
    .sets-won-badge {
        width: 36px;
        height: 36px;
        font-size: 18px;
    }
    
    .center-panel {
        padding: 8px 12px;
        overflow-y: auto;
        overflow-x: hidden;
    }
    
    .match-info {
        margin-bottom: 8px;
    }
    
    .match-title {
        font-size: 14px;
    }
    
    .match-subtitle {
        font-size: 9px;
    }
    
    /* Compact match details - horizontal layout */
    .match-details {
        display: flex;
        flex-direction: row;
        gap: 8px;
        margin: 8px 0;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .detail-item {
        font-size: 9px;
        padding: 4px 8px;
        background: rgba(0, 0, 0, 0.05);
        border-radius: 8px;
        white-space: nowrap;
    }
    
    .detail-item strong {
        font-size: 10px;
    }
    
    /* Compact notice timer */
    .notice-timer {
        padding: 6px 12px;
        margin: 8px 0;
    }
    
    .timer-label {
        font-size: 10px;
    }
    
    .timer-display {
        font-size: 16px;
    }
    
    .timer-cancel-btn {
        width: 20px;
        height: 20px;
        font-size: 14px;
    }
    
    /* Compact set history */
    .set-history-container {
        margin-top: 8px;
    }
    
    .set-history-item {
        padding: 8px;
        margin-bottom: 6px;
        font-size: 11px;
    }
    
    .set-history-item .score {
        font-size: 14px;
    }
    
    .control-btn {
        width: 48px;
        height: 48px;
    }
    
    /* Smaller timeout button */
    .timeout-btn-player {
        width: 32px;
        height: 32px;
    }
    
    .timeout-btn-player svg {
        width: 16px;
        height: 16px;
    }
    
    /* Compact timeout indicator */
    .timeout-indicator {
        bottom: 60px;
        padding: 4px 8px;
        font-size: 9px;
    }
}

/* Settings Modal */
.settings-modal-content {
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
}

.settings-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #e0e0e0;
}

.settings-header h2 {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
    color: #333;
}

.close-btn {
    background: transparent;
    border: none;
    font-size: 32px;
    color: #666;
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    transition: color 0.2s;
}

.close-btn:hover {
    color: #333;
}

.settings-body {
    padding: 20px;
}

.settings-section {
    margin-bottom: 24px;
}

.settings-label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #666;
    margin-bottom: 12px;
}

.players-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.player-settings {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.player-name-input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    transition: border-color 0.2s;
}

.player-name-input:focus {
    outline: none;
    border-color: #4CAF50;
}

.color-picker {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.color-btn {
    width: 32px;
    height: 32px;
    border-radius: 6px;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.2s;
    position: relative;
}

.color-btn:hover {
    transform: scale(1.1);
}

.color-btn.selected {
    border-color: #000;
    box-shadow: 0 0 0 2px #fff, 0 0 0 4px #000;
}

.color-btn.selected::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #fff;
    font-size: 16px;
    font-weight: bold;
    text-shadow: 0 0 2px rgba(0,0,0,0.5);
}

.settings-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 24px;
}

.settings-group {
    display: flex;
    flex-direction: column;
}

.button-group {
    display: flex;
    gap: 8px;
}

.toggle-btn {
    flex: 1;
    padding: 10px 16px;
    background: #f5f5f5;
    border: 2px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    color: #666;
    cursor: pointer;
    transition: all 0.2s;
}

.toggle-btn:hover {
    background: #e8e8e8;
    border-color: #bbb;
}

.toggle-btn.active {
    background: #4CAF50;
    border-color: #4CAF50;
    color: #fff;
}

.btn-block {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.settings-footer {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    padding: 20px;
    border-top: 1px solid #e0e0e0;
}

/* Mobile responsive */
@media (max-width: 600px) {
    .settings-modal-content {
        max-width: 95vw;
        margin: 10px;
    }
    
    .players-grid {
        grid-template-columns: 1fr;
    }
    
    .settings-row {
        grid-template-columns: 1fr;
    }
    
    .color-picker {
        justify-content: center;
    }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
