.reaction-test-section {
    min-height: 100vh;
    padding: 40px 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.reaction-test-section .container {
    max-width: 500px;
    margin: 0 auto;
    padding: 0 20px;
}

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

.calculator-title {
    font-size: 28px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.calculator-title i {
    font-size: 32px;
}

.calculator-subtitle {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 15px;
}

.calculator-badge {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.badge-item {
    padding: 5px 15px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    font-size: 14px;
    color: #fff;
}

.test-main {
    background: #fff;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.stats-section {
    margin-bottom: 25px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

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

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

.stat-value {
    display: block;
    font-size: 24px;
    font-weight: 700;
}

.test-area {
    margin-bottom: 25px;
}

.test-box {
    height: 200px;
    background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
    border-radius: 15px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    user-select: none;
}

.test-box.waiting {
    background: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
}

.test-box.too-early {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a5a 100%);
}

.test-box.result {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.test-content {
    text-align: center;
}

.test-content i {
    font-size: 48px;
    color: #fff;
    display: block;
    margin-bottom: 10px;
}

.test-content span {
    display: block;
    font-size: 20px;
    font-weight: 600;
    color: #fff;
}

.test-content .result-time {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 10px;
}

.test-content .result-label {
    font-size: 16px;
    opacity: 0.9;
}

.test-hint {
    text-align: center;
    margin-top: 15px;
    color: #888;
    font-size: 14px;
}

.history-section {
    margin-bottom: 25px;
}

.section-title {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.section-title i {
    color: #667eea;
}

.history-list {
    max-height: 150px;
    overflow-y: auto;
}

.empty-hint {
    text-align: center;
    color: #999;
    padding: 20px;
}

.history-item {
    display: flex;
    justify-content: space-between;
    padding: 12px 15px;
    background: #f8f9fa;
    border-radius: 10px;
    margin-bottom: 8px;
}

.history-item:last-child {
    margin-bottom: 0;
}

.history-time {
    font-weight: 600;
    color: #667eea;
}

.history-label {
    font-size: 14px;
    color: #888;
}

.legend-section {
    margin-bottom: 25px;
}

.legend-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.legend-item {
    padding: 15px;
    border-radius: 10px;
    text-align: center;
}

.legend-item.fast {
    background: #d4edda;
    border: 1px solid #28a745;
}

.legend-item.normal {
    background: #d1ecf1;
    border: 1px solid #17a2b8;
}

.legend-item.slow {
    background: #fff3cd;
    border: 1px solid #ffc107;
}

.legend-item.very-slow {
    background: #f8d7da;
    border: 1px solid #dc3545;
}

.legend-range {
    display: block;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 5px;
}

.legend-item.fast .legend-range { color: #28a745; }
.legend-item.normal .legend-range { color: #17a2b8; }
.legend-item.slow .legend-range { color: #ffc107; }
.legend-item.very-slow .legend-range { color: #dc3545; }

.legend-label {
    font-size: 14px;
    color: #666;
}

.tips-section {
    background: #fffbe6;
    border: 1px solid #ffe066;
    border-radius: 12px;
    padding: 20px;
}

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

.tips-list li {
    padding: 8px 0;
    color: #8b7355;
    font-size: 14px;
}

@media (max-width: 480px) {
    .test-main {
        padding: 20px;
    }

    .test-box {
        height: 150px;
    }
}