/* 测试面板：整块区域都是可点击的，用不同背景色表达状态 */
.reaction-pad {
    min-height: 320px;
    border-radius: 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2rem 1rem;
    cursor: pointer;
    user-select: none;
    -webkit-user-select: none;
    touch-action: manipulation; /* 移动端取消双击缩放，点击响应更快 */
    transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}

/* 待开始：灰色虚线框 */
.pad-idle {
    background: #f8f9fa;
    border: 2px dashed #dee2e6;
    color: #495057;
}

/* 等待变绿：红色 */
.pad-waiting {
    background: #dc3545;
    border: 2px solid #dc3545;
    color: #fff;
}

/* 可以点击：绿色 */
.pad-ready {
    background: #198754;
    border: 2px solid #198754;
    color: #fff;
}

/* 显示成绩：浅蓝 */
.pad-result {
    background: #e7f1ff;
    border: 2px solid #b6d4fe;
    color: #0d6efd;
}

/* 抢跑：黄色警告 */
.pad-soon {
    background: #fff3cd;
    border: 2px solid #ffecb5;
    color: #664d03;
}

.pad-title {
    font-size: 1.35rem;
    font-weight: 700;
    margin-bottom: .5rem;
}

.pad-value {
    font-size: 4rem;
    font-weight: 700;
    line-height: 1;
    letter-spacing: 1px;
    font-variant-numeric: tabular-nums; /* 数字等宽，避免跳动 */
    margin: .25rem 0 .5rem;
}

.pad-hint {
    font-size: .9rem;
    opacity: .85;
    max-width: 420px;
}

/* 历史成绩条 */
.history-row + .history-row {
    margin-top: .35rem;
}

.history-index {
    width: 30px;
    flex: 0 0 30px;
}

.history-time {
    width: 62px;
    flex: 0 0 62px;
    text-align: right;
    font-variant-numeric: tabular-nums;
}

/* 小屏幕下调小字号 */
@media (max-width: 400px) {
    .reaction-pad { min-height: 260px; }
    .pad-title    { font-size: 1.15rem; }
    .pad-value    { font-size: 3rem; }
}
