/* 浅色主题样式 - Ciallo弹幕游戏 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Microsoft YaHei", Arial, sans-serif;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 50%, #f8f9fa 100%);
    color: #212529;
    min-height: 100vh;
    padding: 20px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

header {
    text-align: center;
    margin-bottom: 30px;
}

h1 {
    font-size: 2.8rem;
    background: linear-gradient(90deg, #007bff, #6f42c1, #dc3545);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    margin-bottom: 10px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.subtitle {
    font-size: 1.2rem;
    color: #6c757d;
    margin-bottom: 20px;
}

.user-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding: 15px 20px;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border: 1px solid #dee2e6;
}

.user-welcome {
    font-size: 1.1rem;
    color: #007bff;
}

.auth-buttons {
    display: flex;
    gap: 12px;
}

.auth-buttons button {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    font-weight: 600;
    font-size: 16px;
}

.login-btn {
    background: linear-gradient(90deg, #007bff, #0056b3);
    color: white;
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.2);
}

.register-btn {
    background: linear-gradient(90deg, #6f42c1, #5a32a3);
    color: white;
    box-shadow: 0 4px 12px rgba(111, 66, 193, 0.2);
}

.auth-buttons button:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0, 123, 255, 0.25);
}

.message {
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 8px;
    text-align: center;
    font-weight: 600;
}

.error {
    background: #dc3545;
    color: white;
}

.success {
    background: #28a745;
    color: white;
}

.instructions {
    text-align: center;
    margin-bottom: 25px;
}

.instructions-btn button {
    padding: 14px 28px;
    border: none;
    border-radius: 8px;
    background: linear-gradient(90deg, #6f42c1, #5a32a3);
    color: white;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    font-weight: 600;
    font-size: 16px;
    box-shadow: 0 4px 12px rgba(111, 66, 193, 0.2);
}

.instructions-btn button:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(111, 66, 193, 0.25);
}

.game-container {
    display: flex;
    gap: 25px;
    margin-bottom: 25px;
}

.game-area {
    flex: 2;
    display: flex;
    flex-direction: column;
}

.game-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    padding: 10px 15px;
    background: #ffffff;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border: 1px solid #dee2e6;
}

#scoreDisplay, #gameState, #penetrationDisplay {
    font-size: 1.5rem;
    font-weight: 600;
}

#scoreDisplay {
    color: #007bff;
}

#penetrationDisplay {
    color: #dc3545;
}

#gameCanvas {
    background: linear-gradient(135deg, #ffffff80 0%, #e9ecef 50%, #ffffff80 100%);
    border-radius: 12px;
    flex: 1;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border: 1px solid #ced4da;
}

.leaderboard-container {
    margin-top: 20px;
}

.leaderboard-tabs {
    display: flex;
    gap: 5px;
    margin-bottom: 20px;
    background: #ffffff;
    padding: 5px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.tab-btn {
    flex: 1;
    padding: 12px 20px;
    border: none;
    border-radius: 8px;
    background: transparent;
    color: #6c757d;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    font-size: 14px;
}

.tab-btn:hover {
    background: rgba(0, 123, 255, 0.1);
    color: #007bff;
}

.tab-btn.active {
    background: #007bff;
    color: white;
}

.tab-pane {
    display: none;
}

.tab-pane.active {
    display: block;
}

.tab-pane h3 {
    margin-bottom: 15px;
    color: #007bff;
}

.tab-pane ol {
    list-style: none;
    counter-reset: leaderboard;
}

.tab-pane li {
    counter-increment: leaderboard;
    padding: 12px 15px;
    margin-bottom: 8px;
    background: #ffffff;
    border-radius: 8px;
    border: 1px solid #dee2e6;
}

.tab-pane li::before {
    content: counter(leaderboard);
    background: #007bff;
    color: white;
    width: 25px;
    height: 25px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-right: 10px;
    font-weight: bold;
}

.footer {
    text-align: center;
    padding: 20px;
    color: #6c757d;
    font-size: 0.9rem;
    margin-top: 20px;
}

.footer a {
    color: #4a6cf7;
    text-decoration: none;
}

.footer a:hover {
    text-decoration: underline;
}

@media (max-width: 768px) {
    .game-container {
        flex-direction: column;
    }
    
    .auth-forms {
        flex-direction: column;
    }
    
    .form-container {
        width: 100%;
    }
    
    h1 {
        font-size: 2.2rem;
    }
}