/* Accessibility */
.visually-hidden {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #2563eb;
    --primary-hover: #1d4ed8;
    --secondary-color: #64748b;
    --success-color: #10b981;
    --danger-color: #ef4444;
    --warning-color: #f59e0b;
    --background-color: #f8fafc;
    --surface-color: #ffffff;
    --text-primary: #1e293b;
    --text-secondary: #64748b;
    --border-color: #e2e8f0;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --transition: all 0.2s ease-in-out;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: var(--background-color);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
}

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

/* Navigation */
.navbar {
    background: var(--surface-color);
    border-bottom: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto 0;
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 0.1rem;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--primary-color);
}

.nav-brand i {
    font-size: 1.5rem;
}

/* Navigation Home Link */
.nav-home {
    display: flex;
    justify-content: flex-end;
    flex: 1;
    gap: 10px;
}

.home-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    color: var(--text-primary);
    text-decoration: none;
    border-radius: var(--radius-md);
    transition: all 0.2s ease;
    font-weight: 500;
}

.home-link:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm);
}

.home-link i {
    font-size: 1rem;
}

.home-link span {
    font-size: 0.875rem;
}

.nav-stats {
    display: flex;
    gap: 1.5rem;
    font-size: 0.875rem;
    color: var(--text-secondary);
    flex: 1;
    justify-content: flex-end;
}

/* Main Container */
.main-container {
    min-height: calc(100vh - 300px);
    padding: 2rem 0;
}

/* Game Section */
.game-section {
    padding: 0 1rem;
}

.game-container {
    max-width: 800px;
    margin: 0 auto;
    background: var(--surface-color);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
}

.question-header {
    padding: 2rem;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-hover));
    color: white;
    text-align: center;
}

.question-header h2 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

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

.progress-fill {
    height: 100%;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 4px;
    transition: width 0.3s ease;
    width: 20%;
}

/* Hints Container */
.hints-container {
    padding: 2rem;
}

.hints-grid {
    display: grid;
    gap: 1rem;
    margin-bottom: 2rem;
}

.hint-item {
    padding: 1rem 1.5rem;
    background: var(--background-color);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    font-size: 1rem;
    transition: var(--transition);
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.5s ease forwards;
}

.hint-item.visible {
    opacity: 1;
    transform: translateY(0);
}

.hint-item:hover {
    border-color: var(--primary-color);
    box-shadow: var(--shadow-md);
}

.hint-number {
    display: inline-block;
    width: 24px;
    height: 24px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    text-align: center;
    line-height: 24px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-right: 0.75rem;
}

/* Answer Section */
.answer-section {
    padding: 0 2rem 2rem;
}

.input-group {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

#answer-input {
    flex: 1;
    padding: 0.75rem 1rem;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    font-size: 1rem;
    transition: var(--transition);
}

#answer-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: var(--radius-md);
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    white-space: nowrap;
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: #e5e7eb !important;
    color: #9ca3af !important;
    transform: none !important;
    box-shadow: none !important;
}

.btn.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: #e5e7eb !important;
    color: #9ca3af !important;
    transform: none !important;
    box-shadow: none !important;
}

.btn-primary {
    background: var(--primary-color);
    color: white;
}

.btn-primary:hover:not(:disabled) {
    background: var(--primary-hover);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    background: var(--secondary-color);
    color: white;
}

.btn-secondary:hover:not(:disabled) {
    background: #475569;
    transform: translateY(-1px);
}

.btn-success {
    background: var(--success-color);
    color: white;
}

.btn-success:hover:not(:disabled) {
    background: #059669;
    transform: translateY(-1px);
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1rem;
}

/* Social Media Buttons */
.btn-linkedin {
    background: #0077b5;
    color: white;
}

.btn-linkedin:hover {
    background: #005885;
}

.btn-twitter {
    background: #1da1f2;
    color: white;
}

.btn-twitter:hover {
    background: #0d8bd9;
}

.btn-facebook {
    background: #1877f2;
    color: white;
}

.btn-facebook:hover {
    background: #166fe5;
}

/* Feedback Message */
.feedback-message {
    padding: 0.5rem;
    border-radius: var(--radius-md);
    margin-bottom: 1rem;
    font-weight: 500;
    text-align: center;
    opacity: 0;
    transform: translateY(-10px);
    transition: var(--transition);
}

.feedback-message.show {
    opacity: 1;
    transform: translateY(0);
}

.feedback-message.correct {
    background: #dcfce7;
    color: #166534;
    border: 1px solid #bbf7d0;
}

.feedback-message.incorrect {
    background: #fef2f2;
    color: #dc2626;
    border: 1px solid #fecaca;
}

.feedback-message.info {
    background: #dbeafe;
    color: #1d4ed8;
    border: 1px solid #bfdbfe;
}

/* Analysis Section */
.analysis-header {
    text-align: center;
    margin-bottom: 2rem;
}

.analysis-header h2 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.analysis-header p {
    color: var(--text-secondary);
    font-size: 1.1rem;
}

.analysis-content {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.current-game-stats,
.historical-stats {
    background: white;
    padding: 1.5rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
}

.current-game-stats h3,
.historical-stats h3,
.question-breakdown h3 {
    color: var(--text-primary);
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
}

.stat-item {
    text-align: center;
    padding: 1rem;
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
}

.stat-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.25rem;
}

.stat-label {
    font-size: 0.875rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.question-breakdown {
    background: white;
    padding: 1.5rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
}

.questions-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.question-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    background: var(--bg-secondary);
}

.question-item.correct {
    border-color: var(--success-color);
    background: rgba(16, 185, 129, 0.05);
}

.question-item.incorrect {
    border-color: var(--error-color);
    background: rgba(239, 68, 68, 0.05);
}

.question-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    font-weight: 600;
    font-size: 0.875rem;
}

.question-details {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.user-answer,
.correct-answer,
.hints-used {
    font-size: 0.875rem;
}

.user-answer {
    color: var(--text-primary);
    font-weight: 500;
}

.correct-answer {
    color: var(--success-color);
    font-weight: 500;
}

.hints-used {
    color: var(--text-secondary);
}

.result-icon {
    font-size: 1.5rem;
}

.question-item.correct .result-icon {
    color: var(--success-color);
}

.question-item.incorrect .result-icon {
    color: var(--error-color);
}

.analysis-actions {
    display: flex;
    justify-content: center;
    margin-top: 2rem;
}

/* Analysis page collapse/expand styles */
.analysis-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    /*padding: 15px 20px;*/
    background: #10b981;
    border-radius: 10px;
    color: white;
}

.analysis-header h3 {
    margin: 0;
    font-size: 1.4rem;
    font-weight: 600;
}

.collapse-toggle-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #10b981;
    /*border: 1px solid rgba(255, 255, 255, 0.3);*/
    color: rgb(255, 255, 255);
    padding: 16px 24px;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
    font-weight: 500;
}

/*.collapse-toggle-btn:hover {*/
    /*background: rgba(255, 255, 255, 0.3);*/
    /*transform: translateY(-1px);*/
    /*box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);*/
/*}*/

.collapse-toggle-btn i {
    transition: transform 0.3s ease;
    font-size: 0.8rem;
}

.analysis-content {
    overflow: hidden;
    transition: all 0.4s ease;
    opacity: 1;
    max-height: none;
}

.analysis-content.collapsed {
    max-height: 0;
    opacity: 0;
    margin: 0;
    padding: 0;
}

.review-item {
    background: white;
    border-radius: 12px;
    margin-bottom: 15px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: all 0.3s ease;
}

.review-item:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

.review-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 20px;
    background: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
    cursor: pointer;
}

.item-collapse-toggle {
    background: none;
    border: none;
    color: #6c757d;
    cursor: pointer;
    padding: 5px;
    border-radius: 50%;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
}

.item-collapse-toggle:hover {
    background: rgba(108, 117, 125, 0.1);
    color: #495057;
}

.item-collapse-toggle i {
    transition: transform 0.3s ease;
    font-size: 0.9rem;
}

.review-content {
    overflow: hidden;
    transition: all 0.4s ease;
    opacity: 1;
    max-height: none;
    padding: 20px;
}

.review-content.collapsed {
    max-height: 0;
    opacity: 0;
    padding: 0 20px;
}

.review-answer-section {
    margin-bottom: 15px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #007bff;
}

.review-explanation {
    margin-bottom: 15px;
    padding: 15px;
    background: #fff3cd;
    border-radius: 8px;
    border-left: 4px solid #ffc107;
}

.review-hints {
    padding: 15px;
    background: #d1ecf1;
    border-radius: 8px;
    border-left: 4px solid #17a2b8;
}

.hints-list {
    margin: 10px 0 0 0;
    padding-left: 20px;
}

.hints-list li {
    margin-bottom: 5px;
    color: #495057;
}

/* Animation for smooth transitions */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.analysis-content:not(.collapsed) {
    animation: fadeIn 0.4s ease;
}

.review-content:not(.collapsed) {
    animation: fadeIn 0.4s ease;
}

/* Responsive adjustments for collapse interface */
@media (max-width: 768px) {
    .analysis-header {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
    
    .collapse-toggle-btn {
        width: 100%;
        justify-content: center;
    }
    
    .review-header {
        flex-wrap: wrap;
        gap: 10px;
    }
    
    .item-collapse-toggle {
        order: -1;
        margin-left: auto;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .question-item {
        flex-direction: column;
        text-align: center;
        gap: 0.75rem;
    }
    
    .question-details {
        align-items: center;
    }
}

@media (max-width: 480px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }
}

/* Action Buttons */
.action-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

/* Results Section */
.results-section {
    padding: 0 1rem;
}

.results-container {
    max-width: 800px;
    margin: 0 auto;
    background: var(--surface-color);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    padding: 2rem;
    text-align: center;
}

.results-header {
    margin-bottom: 2rem;
}

.results-header i {
    font-size: 3rem;
    color: var(--warning-color);
    margin-bottom: 1rem;
}

.results-header h2 {
    font-size: 2rem;
    font-weight: 600;
    color: var(--text-primary);
}

.score-summary {
    margin-bottom: 2rem;
}

.score-card {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.score-item {
    padding: 1.5rem;
    background: var(--background-color);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
}

.score-label {
    display: block;
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.score-value {
    display: block;
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--primary-color);
}

/* Question Review */
.question-review {
   /* margin-bottom: 2rem;*/
    text-align: left;
}

/* Enhanced Results Page Styles */
.review-item {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

.review-item:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.review-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid #e2e8f0;
}

.review-number {
    background: var(--primary-color);
    color: white;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 14px;
}

.review-category {
    background: #e0f2fe;
    color: #0277bd;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
}

.review-status {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    margin-left: auto;
}

.review-status.correct {
    background: #e8f5e8;
    color: #2e7d32;
}

.review-status.incorrect {
    background: #ffebee;
    color: #c62828;
}

.review-content {
    display: grid;
    gap: 16px;
}

.review-answer-section {
    display: grid;
    gap: 8px;
}

.review-answer {
    padding: 12px;
    border-radius: 8px;
    font-size: 14px;
}

.review-answer.correct {
    background: #e8f5e8;
    border-left: 4px solid #4caf50;
}

.review-answer.incorrect {
    background: #ffebee;
    border-left: 4px solid #f44336;
}

.review-correct-answer {
    background: #e3f2fd;
    border-left: 4px solid #2196f3;
    padding: 12px;
    border-radius: 8px;
    font-size: 14px;
}

.review-hints-used {
    background: #fff3e0;
    border-left: 4px solid #ff9800;
    padding: 12px;
    border-radius: 8px;
    font-size: 14px;
}

.review-explanation {
    background: #f3e5f5;
    border-left: 4px solid #9c27b0;
    padding: 16px;
    border-radius: 8px;
    line-height: 1.6;
}

.review-hints {
    background: #f1f8e9;
    border-left: 4px solid #8bc34a;
    padding: 16px;
    border-radius: 8px;
}

.hints-list {
    margin: 8px 0 0 0;
    padding-left: 20px;
}

.hints-list li {
    margin-bottom: 8px;
    line-height: 1.5;
}

/* Historical Statistics Styles */
.historical-stats {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 16px;
    padding: 24px;
    margin-top: 32px;
}

.historical-stats h3 {
    margin: 0 0 20px 0;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 20px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
}

.stat-item {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    transition: transform 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-4px);
}

.stat-label {
    display: block;
    font-size: 14px;
    opacity: 0.9;
    margin-bottom: 8px;
}

.stat-value {
    display: block;
    font-size: 28px;
    font-weight: bold;
    color: #fff;
}

/* Enhanced Question Review Header */
#question-review h3 {
    background: #10b981;
    color: white;
    padding: 8px 16px;
    border-radius: 12px;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 18px;
    /*box-shadow: 0 4px 12px rgba(33, 150, 243, 0.3);*/
}

/* Responsive Design for Results */
@media (max-width: 768px) {
    .review-header {
        flex-wrap: wrap;
        gap: 8px;
    }
    
    .review-status {
        margin-left: 0;
        order: -1;
        flex-basis: 100%;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    
    .stat-item {
        padding: 16px;
    }
    
    .stat-value {
        font-size: 24px;
    }
}

@media (max-width: 480px) {
    .review-item {
        padding: 16px;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .historical-stats {
        padding: 20px;
    }
}

/* Share Section */
.share-section {
    margin-bottom: 2rem;
}

.share-section h3 {
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.share-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Rules Section */
.rules-section {
    padding: 4rem 0;
    background: var(--surface-color);
    border-top: 1px solid var(--border-color);
}

.rules-section h3 {
    text-align: center;
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 2rem;
    color: var(--text-primary);
}

.rules-section h3 i {
    color: var(--primary-color);
    margin-right: 0.5rem;
}

.rules-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.rule-item {
    display: flex;
    gap: 1rem;
    padding: 1.5rem;
    background: var(--background-color);
    border-radius: var(--radius-md);
    transition: var(--transition);
}

.rule-item:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.rule-item i {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-top: 0.25rem;
}

.rule-item h4 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.rule-item p {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

/* SEO Section */
.seo-section {
    padding: 4rem 0;
    background: var(--background-color);
}

.seo-content h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.seo-content p {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    line-height: 1.7;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.feature {
    text-align: center;
    padding: 1.5rem;
    background: var(--surface-color);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.feature:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.feature i {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.feature h4 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.feature p {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

/* Footer */
.footer {
    background: var(--text-primary);
    color: white;
    padding: 2rem 0 1rem;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.25rem;
    font-weight: 600;
}

.footer-info {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    flex-direction: column;
    margin-left: auto;
}

.footer-info a {
    color: var(--text-secondary);
    text-decoration: none;
}


.footer-social{
    display: flex;
    margin-left: 50px;
    gap: 10px;
    flex-direction: column;
}
.footer-brand i {
    font-size: 1.5rem;
    color: var(--primary-color);
}

.footer-social h4 {
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
}

.social-links {
    display: flex;
    gap: 0.75rem;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border-radius: 50%;
    text-decoration: none;
    transition: var(--transition);
}

.social-link:hover {
    background: var(--primary-color);
    transform: translateY(-2px);
}

.footer-bottom {
    text-align: center;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-secondary);
    font-size: 0.875rem;
}

/* Toast Notification */
.toast {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 1rem 1.5rem;
    background: var(--text-primary);
    color: white;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    transform: translateX(100%);
    transition: transform 0.3s ease;
    z-index: 1000;
}

.toast.show {
    transform: translateX(0);
}

.toast.success {
    background: var(--success-color);
}

.toast.error {
    background: var(--danger-color);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

.pulse {
    animation: pulse 2s infinite;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-container {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .nav-stats {
        justify-content: center;
    }

    .input-group {
        flex-direction: column;
    }

    .action-buttons {
        flex-direction: column;
    }

    .share-buttons {
        flex-direction: column;
        align-items: center;
    }

    .footer-content {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .score-card {
        grid-template-columns: repeat(2, 1fr);
    }

    .rules-grid {
        grid-template-columns: 1fr;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 0.5rem;
    }

    .game-container,
    .results-container {
        margin: 0 0.5rem;
    }

    .question-header,
    .hints-container,
    .answer-section {
        padding: 1rem;
    }

    .score-card {
        grid-template-columns: 1fr;
    }

    .btn {
        width: 100%;
        justify-content: center;
    }
}

/* Print Styles */
@media print {
    .navbar,
    .footer,
    .share-section,
    .action-section {
        display: none;
    }

    .main-container {
        padding: 0;
    }

    .game-container,
    .results-container {
        box-shadow: none;
        border: 1px solid var(--border-color);
    }
}

/* Scroll Navigation Buttons */
.scroll-nav-buttons {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.scroll-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), #1e40af);
    color: white;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
    transition: all 0.3s ease;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
}

.scroll-btn.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.scroll-btn:hover {
    background: linear-gradient(135deg, #1e40af, var(--primary-color));
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.4);
}

.scroll-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.3);
}

.scroll-btn i {
    font-size: 16px;
}

/* Responsive design for scroll buttons */

@media (max-width: 768px) {
    .scroll-nav-buttons {
        right: 15px;
        bottom: 15px;
    }
    
    .scroll-btn {
        width: 45px;
        height: 45px;
        font-size: 16px;
    }
    
    .scroll-btn i {
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .scroll-nav-buttons {
        right: 10px;
        bottom: 10px;
    }
    
    .scroll-btn {
        width: 40px;
        height: 40px;
        font-size: 14px;
    }
    
    .scroll-btn i {
        font-size: 12px;
    }
}

/* ========================================
   政策页面统一样式系统 - Policy Pages Unified Styling System
   ======================================== */

/* 主内容容器 - Main Content Container */
/* 为Terms、Privacy、Cookie、About页面提供统一的布局框架 */
.policy-main-content {
    min-height: calc(100vh - 200px);
    padding: 3rem 0;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
}

/* 政策页面容器 - Policy Page Container */
/* 统一的内容容器，提供最佳的阅读宽度和居中对齐 */
.policy-container {
    max-width: 920px;
    margin: 0 auto;
    padding: 0 2rem;
    background: var(--surface-color);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
}

/* 政策页面内容区域 - Policy Content Area */
/* 主要内容区域的内边距和基础样式 */
.policy-content {
    padding: 3rem 3rem 4rem;
    line-height: 1.7;
}

/* 页面标题样式 - Page Title Styling */
/* 统一的主标题设计，突出页面主题 */
.policy-content h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 1rem;
    text-align: center;
    position: relative;
    padding-bottom: 1rem;
}

/* 标题装饰线 - Title Decoration Line */
.policy-content h1::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--primary-hover));
    border-radius: 2px;
}

/* 更新日期样式 - Last Updated Date Styling */
/* 突出显示最后更新时间，增强信息透明度 */
.policy-content > p:first-of-type {
    text-align: left;
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 2.5rem;
    padding: 0.75rem 1.5rem;
    background: var(--background-color);
    border-radius: var(--radius-md);
    border-left: 4px solid var(--primary-color);
}

/* 二级标题样式 - Secondary Heading Styling */
/* 清晰的层次结构，便于内容导航 */
.policy-content h2 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 2.5rem 0 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--border-color);
    position: relative;
}

/* 二级标题悬停效果 - Secondary Heading Hover Effect */
.policy-content h2:hover {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
    transition: var(--transition);
}

/* 三级标题样式 - Tertiary Heading Styling */
/* FAQ和子章节的标题样式 */
.policy-content h3 {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 1.5rem 0 0.75rem;
}

/* 段落样式 - Paragraph Styling */
/* 优化的行间距和字体大小，提升阅读体验 */
.policy-content p {
    margin-bottom: 1.25rem;
    color: var(--text-primary);
    font-size: 1rem;
}

/* 列表样式 - List Styling */
/* 统一的无序列表和有序列表样式 */
.policy-content ul,
.policy-content ol {
    margin: 1.25rem 0;
    padding-left: 2rem;
}

.policy-content li {
    margin-bottom: 0.75rem;
    color: var(--text-primary);
    line-height: 1.6;
}

/* 列表项标记样式 - List Item Marker Styling */
.policy-content ul li {
    position: relative;
}

.policy-content ul li::marker {
    color: var(--primary-color);
    font-weight: bold;
}

/* 链接样式 - Link Styling */
/* 统一的链接外观和交互效果 */
.policy-content a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    border-bottom: 1px solid transparent;
    transition: var(--transition);
}

.policy-content a:hover {
    color: var(--primary-hover);
    border-bottom-color: var(--primary-hover);
    background: rgba(37, 99, 235, 0.05);
    padding: 0.1rem 0.2rem;
    border-radius: 3px;
}

/* FAQ区域样式 - FAQ Section Styling */
/* 专门为FAQ内容设计的样式 */
.policy-content .faq {
    margin-top: 2rem;
    padding: 2rem;
    background: var(--background-color);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
}

.policy-content .faq h3 {
    color: var(--primary-color);
    font-size: 1.1rem;
    margin-top: 2rem;
    margin-bottom: 0.75rem;
    padding-left: 1rem;
    border-left: 3px solid var(--primary-color);
    background: var(--surface-color);
    padding: 0.75rem 1rem;
    border-radius: var(--radius-sm);
}

.policy-content .faq h3:first-child {
    margin-top: 0;
}

.policy-content .faq p {
    margin-left: 1rem;
    color: var(--text-primary);
}

/* 强调文本样式 - Emphasized Text Styling */
/* 突出显示重要信息 */
.policy-content strong {
    color: var(--primary-color);
    font-weight: 600;
}

/* 文本静音样式 - Muted Text Styling */
/* 次要信息的样式处理 */
.policy-content .text-muted {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* 快速链接区域 - Quick Links Section */
/* 页面底部的相关链接样式 */
.policy-content h2:last-of-type {
    margin-top: 2.5rem;
    /*padding-top: 2rem;*/
}

/* 响应式设计 - Responsive Design */
/* 移动设备优化 */
@media (max-width: 768px) {
    .policy-main-content {
        padding: 2rem 0;
    }
    
    .policy-container {
        margin: 0 1rem;
        border-radius: var(--radius-md);
    }
    
    .policy-content {
        padding: 2rem 1.5rem 3rem;
    }
    
    .policy-content h1 {
        font-size: 2rem;
        margin-bottom: 0.75rem;
    }
    
    .policy-content h1::after {
        width: 60px;
        height: 2px;
    }
    
    .policy-content h2 {
        font-size: 1.3rem;
        margin: 2rem 0 0.75rem;
    }
    
    .policy-content h3 {
        font-size: 1.1rem;
    }
    
    .policy-content .faq {
        padding: 1.5rem;
        margin-top: 1.5rem;
    }
    
    .policy-content .faq h3 {
        font-size: 1rem;
        margin-top: 1.5rem;
        padding: 0.5rem 0.75rem;
    }
    
    .policy-content .faq p {
        margin-left: 0.75rem;
    }

    .footer-info{
        margin-left: 0;
    }

    .footer-social{
        margin-left: 0;
    }
}

/* 小屏幕设备优化 - Small Screen Optimization */
@media (max-width: 480px) {
    .policy-container {
        margin: 0 0.5rem;
    }
    
    .policy-content {
        padding: 1.5rem 1rem 2.5rem;
    }
    
    .policy-content h1 {
        font-size: 1.75rem;
    }
    
    .policy-content h2 {
        font-size: 1.2rem;
        margin: 1.5rem 0 0.5rem;
    }
    
    .policy-content ul,
    .policy-content ol {
        padding-left: 1.5rem;
    }
    
    .policy-content .faq {
        padding: 1rem;
    }
    
    .policy-content .faq h3 {
        padding: 0.4rem 0.6rem;
        font-size: 0.95rem;
    }
    
    .policy-content .faq p {
        margin-left: 0.5rem;
        font-size: 0.9rem;
    }
    .footer-info{
        margin-left: 0;
    }

    .footer-social{
        margin-left: 0;
    }
}

/* 打印样式 - Print Styles */
/* 为政策页面优化的打印样式 */
@media print {
    .policy-main-content {
        background: white;
        padding: 0;
    }
    
    .policy-container {
        box-shadow: none;
        border: 1px solid #ccc;
        max-width: 100%;
        margin: 0;
    }
    
    .policy-content {
        padding: 1rem;
    }
    
    .policy-content h1::after {
        display: none;
    }
    
    .policy-content a {
        color: #000;
        text-decoration: underline;
    }
    
    .policy-content .faq {
        background: white;
        border: 1px solid #ccc;
    }
}

/* 辅助功能增强 - Accessibility Enhancements */
/* 提升页面的可访问性 */
.policy-content h1:focus,
.policy-content h2:focus,
.policy-content h3:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

.policy-content a:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
    background: rgba(37, 99, 235, 0.1);
}

/* 高对比度模式支持 - High Contrast Mode Support */
@media (prefers-contrast: high) {
    .policy-content h1,
    .policy-content h2,
    .policy-content h3 {
        color: #000;
    }
    
    .policy-content a {
        color: #0000EE;
        text-decoration: underline;
    }
    
    .policy-content .faq {
        border: 2px solid #000;
    }
}

/* 减少动画偏好支持 - Reduced Motion Preference Support */
@media (prefers-reduced-motion: reduce) {
    .policy-content h2:hover,
    .policy-content a {
        transition: none;
    }
}
