/* ========================================
   リセット & ベーススタイル
======================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #2563eb;
    --primary-dark: #1e40af;
    --secondary-color: #64748b;
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --danger-color: #ef4444;
    --bg-color: #f8fafc;
    --card-bg: #ffffff;
    --text-primary: #1e293b;
    --text-secondary: #64748b;
    --border-color: #e2e8f0;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

body {
    font-family: 'Noto Sans JP', sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
}

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

/* ========================================
   ヘッダー（スマホ優先）
======================================== */
.header {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-md);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.header .container {
    display: flex;
    justify-content: center;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-color);
}

.logo i {
    font-size: 1.5rem;
}

/* ナビゲーション削除 */

/* ========================================
   メインコンテンツ
======================================== */
.main {
    min-height: calc(100vh - 120px);
    padding: 2rem 0;
}

.screen {
    display: none;
}

.screen.active {
    display: block;
    animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========================================
   スタート画面（スマホ優先）
======================================== */
.hero {
    background: white;
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: var(--shadow-xl);
    margin-bottom: 1.5rem;
}

.hero-title {
    font-size: 1.75rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 0.75rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.3;
}

.hero-subtitle {
    font-size: 0.95rem;
    text-align: center;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    line-height: 1.5;
}

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

.feature-card {
    text-align: center;
    padding: 1.25rem;
    background: var(--bg-color);
    border-radius: 12px;
    transition: transform 0.2s, box-shadow 0.2s;
}

.feature-card:active {
    transform: scale(0.98);
}

.feature-card i {
    font-size: 2.25rem;
    color: var(--primary-color);
    margin-bottom: 0.75rem;
}

.feature-card h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.feature-card p {
    color: var(--text-secondary);
    font-size: 0.85rem;
    line-height: 1.4;
}

/* ========================================
   テスト選択
======================================== */
.test-selection {
    text-align: center;
}

.test-selection h2 {
    font-size: 1.75rem;
    margin-bottom: 2rem;
    color: var(--text-primary);
}

.test-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.test-option-btn {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    padding: 1.5rem 1.25rem;
    background: white;
    border: 3px solid var(--border-color);
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.2s;
    font-family: inherit;
    min-height: 140px;
    -webkit-tap-highlight-color: transparent;
}

.test-option-btn:active {
    transform: scale(0.97);
    box-shadow: var(--shadow-md);
}

.test-option-btn i {
    font-size: 2.25rem;
    color: var(--secondary-color);
}

.test-option-btn.primary i {
    color: var(--primary-color);
}

.test-option-btn.recommended {
    border-color: var(--warning-color);
}

.test-option-btn.recommended i {
    color: var(--warning-color);
}

.btn-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-primary);
}

.btn-time {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--primary-color);
    background: rgba(37, 99, 235, 0.1);
    padding: 0.4rem 1rem;
    border-radius: 20px;
}

.btn-desc {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.4;
}

.recommended-badge {
    position: absolute;
    top: -12px;
    right: 20px;
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: white;
    font-size: 0.8rem;
    font-weight: 700;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
}

/* ========================================
   テスト画面
======================================== */
.test-header {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow-md);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.test-info {
    display: flex;
    gap: 1.5rem;
    align-items: center;
    flex-wrap: wrap;
}

.test-type-label {
    font-weight: 700;
    color: var(--primary-color);
    background: rgba(37, 99, 235, 0.1);
    padding: 0.5rem 1rem;
    border-radius: 8px;
}

.question-counter {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.question-counter span {
    color: var(--primary-color);
}

.timer {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--success-color);
    background: rgba(16, 185, 129, 0.1);
    padding: 0.5rem 1.5rem;
    border-radius: 8px;
}

.timer.warning {
    color: var(--danger-color);
    background: rgba(239, 68, 68, 0.1);
    animation: pulse 1s infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
}

.progress-bar {
    height: 8px;
    background: var(--border-color);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 2rem;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), var(--success-color));
    transition: width 0.3s ease;
}

/* ========================================
   質問カード
======================================== */
.question-container {
    margin-bottom: 2rem;
}

.question-card {
    background: white;
    border-radius: 16px;
    padding: 1.25rem;
    box-shadow: var(--shadow-lg);
}

.question-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--border-color);
}

.question-content {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
}

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

.option {
    display: flex;
    align-items: center;
    padding: 1rem;
    background: var(--bg-color);
    border: 3px solid var(--border-color);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s;
    min-height: 60px;
    -webkit-tap-highlight-color: transparent;
}

.option:active {
    background: rgba(37, 99, 235, 0.1);
    border-color: var(--primary-color);
    transform: scale(0.98);
}

.option.selected {
    background: rgba(37, 99, 235, 0.1);
    border-color: var(--primary-color);
    box-shadow: var(--shadow-md);
}

.option input[type="radio"] {
    display: none;
}

.option label {
    flex: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 1rem;
}

.option-letter {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    font-weight: 700;
    font-size: 0.9rem;
}

.option.selected .option-letter {
    background: var(--success-color);
}

/* ========================================
   テストコントロール
======================================== */
.test-controls {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.test-controls .btn {
    width: 100%;
}

.btn {
    padding: 1rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-family: inherit;
    min-height: 50px;
    -webkit-tap-highlight-color: transparent;
}

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

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    box-shadow: var(--shadow-md);
}

.btn-primary:active:not(:disabled) {
    transform: scale(0.97);
    box-shadow: var(--shadow-sm);
}

.btn-secondary {
    background: white;
    color: var(--text-primary);
    border: 2px solid var(--border-color);
}

.btn-secondary:active:not(:disabled) {
    background: var(--bg-color);
    border-color: var(--primary-color);
    transform: scale(0.97);
}

/* ========================================
   結果画面
======================================== */
.result-hero {
    text-align: center;
    margin-bottom: 3rem;
}

.result-icon {
    width: 120px;
    height: 120px;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-xl);
}

.result-icon i {
    font-size: 4rem;
    color: white;
}

.result-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: white;
    margin-bottom: 0.5rem;
}

.result-subtitle {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.9);
}

.result-cards {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.result-card {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: var(--shadow-xl);
}

.result-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

/* スコアカード */
.score-display {
    text-align: center;
    margin-bottom: 1.5rem;
}

.score-number {
    font-size: 5rem;
    font-weight: 700;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.score-unit {
    font-size: 2rem;
    color: var(--text-secondary);
    margin-left: 0.5rem;
}

.score-bar {
    height: 12px;
    background: var(--border-color);
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 1rem;
}

.score-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), var(--success-color));
    border-radius: 6px;
    transition: width 1s ease;
}

.score-label {
    text-align: center;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary-color);
}

/* 統計カード */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem;
    background: var(--bg-color);
    border-radius: 12px;
}

.stat-item i {
    font-size: 2rem;
    color: var(--primary-color);
}

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

.stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
}

/* セクション別結果 */
.section-results {
    margin-bottom: 2rem;
}

.section-stats {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.section-stat {
    padding: 1.5rem;
    background: var(--bg-color);
    border-radius: 12px;
}

.section-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
    font-size: 1.1rem;
    font-weight: 600;
}

.section-header i {
    color: var(--primary-color);
}

.section-score {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.75rem;
}

.section-correct {
    color: var(--text-secondary);
}

.section-accuracy {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.section-bar {
    height: 10px;
    background: var(--border-color);
    border-radius: 5px;
    overflow: hidden;
}

.section-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), var(--success-color));
    border-radius: 5px;
    transition: width 0.8s ease;
}

/* ========================================
   コツ解説セクション
======================================== */
.tips-section {
    background: white;
    border-radius: 16px;
    padding: 2.5rem;
    box-shadow: var(--shadow-xl);
    margin-bottom: 2rem;
}

.tips-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.tips-title i {
    color: var(--warning-color);
    font-size: 2rem;
}

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

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

.tips-text p {
    line-height: 1.9;
    color: var(--text-primary);
}

.tips-text strong {
    color: var(--primary-color);
    font-weight: 700;
}

.tips-diagram h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
    text-align: center;
}

.diagram {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.diagram-step {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: var(--bg-color);
    border-radius: 12px;
    border-left: 4px solid var(--primary-color);
    transition: transform 0.3s;
}

.diagram-step:hover {
    transform: translateX(5px);
}

.diagram-step.highlight {
    background: rgba(37, 99, 235, 0.1);
    border-left-color: var(--success-color);
}

.step-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    font-size: 1.5rem;
    font-weight: 700;
    flex-shrink: 0;
}

.diagram-step.highlight .step-number {
    background: var(--success-color);
}

.step-content {
    flex: 1;
}

.step-content strong {
    display: block;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.step-content p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.diagram-arrow {
    text-align: center;
    font-size: 1.5rem;
    color: var(--primary-color);
    padding: 0.25rem;
}

/* ========================================
   結果アクション
======================================== */
.result-actions {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.result-actions .btn {
    width: 100%;
}

/* ========================================
   フッター
======================================== */
.footer {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 1.5rem 0;
    text-align: center;
    color: var(--text-secondary);
    margin-top: 3rem;
}

/* ========================================
   レスポンシブ
======================================== */
/* タブレット以上でのレイアウト調整 */
@media (min-width: 768px) {
    .hero {
        padding: 2.5rem;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.15rem;
    }

    .features {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.5rem;
    }

    .test-options {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.5rem;
    }

    .question-card {
        padding: 2rem;
    }

    .question-title {
        font-size: 1.25rem;
    }

    .question-content {
        font-size: 1.1rem;
    }

    .test-controls {
        flex-direction: row;
    }

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

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

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

    .logo {
        font-size: 1.5rem;
    }

    .logo i {
        font-size: 1.75rem;
    }
}

/* デスクトップでのレイアウト調整 */
@media (min-width: 1024px) {
    .hero {
        padding: 3rem;
    }

    .hero-title {
        font-size: 3rem;
    }

    .hero-subtitle {
        font-size: 1.25rem;
    }

    .question-card {
        padding: 2.5rem;
    }
}

/* 小さいスマホ向けの調整 */
@media (max-width: 380px) {
    .container {
        padding: 0 12px;
    }

    .hero-title {
        font-size: 1.5rem;
    }

    .btn-title {
        font-size: 1.15rem;
    }
}

/* ========================================
   クレペリン検査専用スタイル
======================================== */
.kraepelin-instructions {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: rgba(37, 99, 235, 0.05);
    border-left: 4px solid var(--primary-color);
    border-radius: 8px;
}

.instruction-content {
    margin-top: 1rem;
}

.instruction-content p {
    margin-bottom: 0.75rem;
    line-height: 1.8;
}

.instruction-highlight {
    background: rgba(245, 158, 11, 0.1);
    padding: 0.75rem;
    border-radius: 6px;
    font-weight: 600;
    color: var(--warning-color);
    border: 2px solid rgba(245, 158, 11, 0.3);
}

.kraepelin-container {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    max-height: 500px;
    overflow-y: auto;
}

.kraepelin-numbers {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
}

.kraepelin-number-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
}

.kraepelin-num {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    width: 40px;
    text-align: center;
}

.kraepelin-input {
    width: 40px;
    height: 40px;
    text-align: center;
    font-size: 1.25rem;
    font-weight: 700;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    outline: none;
    transition: all 0.3s;
}

.kraepelin-input:focus {
    border-color: var(--primary-color);
    background: rgba(37, 99, 235, 0.05);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.kraepelin-input:valid {
    border-color: var(--success-color);
    background: rgba(16, 185, 129, 0.05);
}

/* クレペリン結果分析 */
.kraepelin-analysis {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-top: 1rem;
}

.analysis-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 1.5rem;
    background: var(--bg-color);
    border-radius: 12px;
    text-align: center;
}

.analysis-item i {
    font-size: 2rem;
    color: var(--primary-color);
}

.analysis-item span {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.analysis-item strong {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

/* スマホ優先：1列レイアウト */
.features {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    margin-bottom: 2rem;
}

.test-options {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

/* ========================================
   不正解問題の解説セクション
======================================== */
.wrong-answers-section {
    margin-bottom: 2rem;
}

.wrong-answers-title {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--danger-color);
}

.wrong-answers-intro {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    font-size: 1rem;
}

.wrong-answers-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.wrong-answer-item {
    background: var(--bg-color);
    border-radius: 12px;
    padding: 1.25rem;
    border-left: 4px solid var(--danger-color);
}

.wrong-answer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.wrong-answer-number {
    font-weight: 700;
    color: var(--primary-color);
    font-size: 1.1rem;
}

.wrong-answer-category {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.wrong-answer-question {
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--border-color);
}

.wrong-answer-question strong {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.question-text {
    line-height: 1.8;
    color: var(--text-primary);
    padding: 0.75rem;
    background: white;
    border-radius: 8px;
}

.answer-comparison {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.user-answer,
.correct-answer {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 1rem;
    border-radius: 8px;
}

.user-answer {
    background: rgba(239, 68, 68, 0.1);
    border: 2px solid rgba(239, 68, 68, 0.3);
}

.user-answer i {
    color: var(--danger-color);
    font-size: 1.5rem;
    flex-shrink: 0;
    margin-top: 0.25rem;
}

.correct-answer {
    background: rgba(16, 185, 129, 0.1);
    border: 2px solid rgba(16, 185, 129, 0.3);
}

.correct-answer i {
    color: var(--success-color);
    font-size: 1.5rem;
    flex-shrink: 0;
    margin-top: 0.25rem;
}

.answer-label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
    color: var(--text-secondary);
}

.answer-text {
    display: block;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.5;
}

.explanation-box {
    background: white;
    padding: 1rem;
    border-radius: 8px;
    border: 2px solid rgba(37, 99, 235, 0.2);
}

.explanation-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
    color: var(--primary-color);
}

.explanation-header i {
    font-size: 1.25rem;
}

.explanation-text {
    line-height: 1.8;
    color: var(--text-primary);
}

/* 全問正解時 */
.perfect-score {
    text-align: center;
    padding: 3rem 2rem;
}

.perfect-icon {
    width: 100px;
    height: 100px;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-xl);
}

.perfect-icon i {
    font-size: 3.5rem;
    color: white;
}

.perfect-score h3 {
    font-size: 1.75rem;
    margin-bottom: 0.75rem;
    color: var(--primary-color);
}

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

@media (max-width: 768px) {
    .kraepelin-container {
        padding: 1rem;
        max-height: 400px;
    }

    .kraepelin-numbers {
        gap: 0.75rem;
    }

    .kraepelin-num {
        font-size: 1.25rem;
        width: 35px;
    }

    .kraepelin-input {
        width: 35px;
        height: 35px;
        font-size: 1.1rem;
    }

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

    .test-options {
        grid-template-columns: 1fr;
    }
}
