.reaction-page {
    gap: 20px;
}

.reaction-box {
    width: 100%;
    max-width: 500px;
    height: 260px;
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s;
    user-select: none;
    gap: 12px;
}

.reaction-box p {
    margin: 0;
    font-size: 1.4rem;
    font-weight: 600;
}

.result-text {
    font-size: 1rem !important;
    font-weight: 400 !important;
    color: #999;
}

/* Idle / Done */
.reaction-box {
    background: #1a1a2e;
    border: 2px solid #2a2a4a;
}

/* Waiting (red) */
.reaction-box.waiting {
    background: #4a1a1a;
    border-color: #c0392b;
}

/* Ready (green!) */
.reaction-box.ready {
    background: #1a4a1a;
    border-color: #27ae60;
}

/* Too early */
.reaction-box.early {
    background: #4a3a1a;
    border-color: #e67e22;
}

/* Done */
.reaction-box.done {
    background: #1a1a3a;
    border-color: #667eea;
}

.scores-section {
    margin-top: 10px;
    text-align: center;
    width: 100%;
    max-width: 400px;
}

.scores-section h3 {
    color: #999;
    margin-bottom: 10px;
    font-size: 1rem;
}

.scores-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
    /* Attempts scroll inside their own box so the page never grows */
    max-height: 28vh;
    overflow-y: auto;
    padding: 2px;
}

.score-item {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: center;
    background: #1a1a2e;
    border: 1px solid #2a2a4a;
    border-radius: 8px;
    padding: 10px 20px;
    width: 100%;
    color: #999;
    font-size: 0.95rem;
}

.score-item span:last-child {
    color: #667eea;
    font-weight: 600;
}

.best-score {
    margin-top: 12px;
    font-size: 1.1rem;
    color: #667eea;
    font-weight: 600;
}
