/* 游戏页面通用样式 */

.game-page-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

.game-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.game-title-section {
    flex: 1;
}

.game-title {
    font-size: 2rem;
    color: #333;
    margin-bottom: 0.5rem;
}

.game-description {
    color: #666;
    font-size: 1rem;
}

.game-controls {
    display: flex;
    gap: 1rem;
}

.back-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: #f5f5f5;
    color: #333;
    text-decoration: none;
    border-radius: 8px;
    transition: background 0.2s;
}

.back-button:hover {
    background: #e0e0e0;
}

.game-stats-bar {
    background: white;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
}

.stats-section {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.stat-label {
    color: #666;
    font-size: 0.9rem;
}

.stat-value {
    color: #1976d2;
    font-weight: bold;
    font-size: 1.1rem;
}

.login-prompt-mini {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: #666;
    font-size: 0.9rem;
}

.login-prompt-mini a {
    color: #1976d2;
    text-decoration: none;
    font-weight: 500;
}

.login-prompt-mini a:hover {
    text-decoration: underline;
}

.game-area {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.game-control-panel {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.game-button {
    padding: 0.75rem 2rem;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.game-button.primary {
    background: #1976d2;
    color: white;
}

.game-button.primary:hover {
    background: #1565c0;
}

.game-button.secondary {
    background: #f5f5f5;
    color: #333;
}

.game-button.secondary:hover {
    background: #e0e0e0;
}

.game-button.submit {
    background: #4caf50;
    color: white;
}

.game-button.submit:hover {
    background: #45a049;
}

.game-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.game-display {
    min-height: 300px;
}

.game-status {
    text-align: center;
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 2rem;
    padding: 1rem;
    background: #f5f5f5;
    border-radius: 8px;
}

.game-content {
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.input-area {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-width: 400px;
    margin: 0 auto;
}

.answer-input {
    padding: 0.75rem 1rem;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.2s;
}

.answer-input:focus {
    outline: none;
    border-color: #1976d2;
}

.result-area {
    margin-top: 2rem;
    padding: 1.5rem;
    border-radius: 8px;
    text-align: center;
}

.result-area.success {
    background: #e8f5e9;
    color: #2e7d32;
}

.result-area.error {
    background: #ffebee;
    color: #c62828;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .game-page-container {
        padding: 1rem;
    }
    
    .game-header {
        flex-direction: column;
    }
    
    .game-title {
        font-size: 1.5rem;
    }
    
    .stats-section {
        flex-direction: column;
        gap: 1rem;
    }
    
    .game-area {
        padding: 1.5rem;
    }
}

