/* 玩家資訊面板 */
.player-info-panel {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 10px;
    padding: 20px;
    color: white;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.player-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 2px solid rgba(255, 255, 255, 0.3);
}

.player-avatar {
    font-size: 48px;
    filter: drop-shadow(2px 2px 4px rgba(0, 0, 0, 0.3));
}

.player-name {
    font-size: 24px;
    font-weight: bold;
}

.stage-info {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.stage-name {
    font-size: 18px;
    font-weight: bold;
}

.stage-progress {
    font-size: 14px;
    opacity: 0.9;
}

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

.progress-fill {
    height: 100%;
    background: white;
    transition: width 0.5s ease;
    border-radius: 10px;
}

/* 玩家設定對話框 */
.player-setup-dialog {
    max-width: 500px;
}

.player-setup-dialog h2 {
    color: #667eea;
    margin-bottom: 10px;
    text-align: center;
}

.player-setup-dialog .subtitle {
    text-align: center;
    color: #666;
    margin-bottom: 30px;
}

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

.form-group label {
    display: block;
    font-weight: bold;
    margin-bottom: 8px;
    color: #333;
}

.form-group input {
    width: 100%;
    padding: 10px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s;
}

.form-group input:focus {
    outline: none;
    border-color: #667eea;
}

.error-message {
    display: block;
    color: #f44336;
    font-size: 14px;
    margin-top: 5px;
    min-height: 20px;
}

/* 頭像網格 */
.avatar-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 10px;
    margin-top: 10px;
}

.avatar-option {
    font-size: 32px;
    padding: 10px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    cursor: pointer;
    text-align: center;
    transition: all 0.3s;
    background: white;
}

.avatar-option:hover {
    border-color: #667eea;
    background: rgba(102, 126, 234, 0.05);
    transform: scale(1.1);
}

.avatar-option.selected {
    border-color: #667eea;
    background: rgba(102, 126, 234, 0.1);
    box-shadow: 0 0 10px rgba(102, 126, 234, 0.3);
}

/* 設定對話框 */
.settings-dialog {
    max-width: 600px;
}

.settings-dialog h2 {
    color: #667eea;
    margin-bottom: 20px;
    text-align: center;
}

.settings-section {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e0e0e0;
}

.settings-section:last-of-type {
    border-bottom: none;
}

.settings-section h3 {
    color: #333;
    margin-bottom: 15px;
    font-size: 18px;
}

/* 統計網格 */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-bottom: 15px;
}

.stat-item {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    color: white;
}

.stat-value {
    font-size: 32px;
    font-weight: bold;
    margin-bottom: 5px;
}

.stat-label {
    font-size: 14px;
    opacity: 0.9;
}

/* 設定按鈕樣式調整 */
.settings-section .btn {
    width: 100%;
    margin-top: 10px;
}

/* 響應式設計 */
@media (max-width: 768px) {
    .player-avatar {
        font-size: 36px;
    }
    
    .player-name {
        font-size: 20px;
    }
    
    .avatar-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .avatar-option {
        font-size: 28px;
        padding: 8px;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
}
