/* ===== reaction-run · 障碍冲刺 ===== */

.rr-hero {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 28px 20px 24px;
    border-radius: var(--radius-lg);
    background: radial-gradient(ellipse at top, #fef3c7 0%, #fffbeb 55%, #fff8e1 100%);
    overflow: hidden;
    margin-bottom: 24px;
    border: 1px solid #fde68a;
}

.rr-glow {
    position: absolute;
    top: -140px;
    left: 50%;
    width: 500px;
    height: 500px;
    transform: translateX(-50%);
    border-radius: 50%;
    background: radial-gradient(circle, rgba(249, 115, 22, 0.22) 0%, transparent 70%);
    pointer-events: none;
}

/* HUD */
.rr-hud {
    position: relative;
    z-index: 1;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
    width: 100%;
    max-width: 420px;
    margin-bottom: 14px;
}
.rr-hud-item {
    flex: 1;
    min-width: 90px;
    padding: 10px 12px;
    border-radius: 12px;
    background: #fff;
    border: 1px solid #fed7aa;
    box-shadow: 0 4px 12px rgba(249, 115, 22, 0.1);
    text-align: center;
}
.rr-hud-label {
    font-size: 11px;
    color: #9a6534;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-weight: 700;
}
.rr-hud-value {
    font-size: 20px;
    font-weight: 900;
    color: #c2410c;
    margin-top: 2px;
    font-variant-numeric: tabular-nums;
}
.rr-hud-item.best {
    background: linear-gradient(135deg, #f97316, #ea580c);
    border-color: transparent;
    box-shadow: 0 6px 18px rgba(249, 115, 22, 0.35);
}
.rr-hud-item.best .rr-hud-label { color: rgba(255,255,255,0.8); }
.rr-hud-item.best .rr-hud-value { color: #fff; }

/* Canvas */
.rr-canvas-wrap {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 420px;
}
.rr-canvas-wrap canvas {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 14px;
    background: linear-gradient(180deg, #0f172a 0%, #1e293b 100%);
    box-shadow: 0 16px 50px rgba(2, 6, 23, 0.55);
    touch-action: none;
}

/* 覆盖层 */
.rr-overlay {
    position: absolute;
    inset: 0;
    z-index: 5;
    display: grid;
    place-items: center;
    background: rgba(15, 23, 42, 0.75);
    backdrop-filter: blur(4px);
    border-radius: 14px;
    animation: rr-fade 0.25s ease;
}
.rr-overlay[hidden] { display: none; }
@keyframes rr-fade { from { opacity: 0; } to { opacity: 1; } }

.rr-overlay-card {
    text-align: center;
    padding: 26px 24px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 14px 40px rgba(0,0,0,0.3);
    max-width: 82%;
}
.rr-overlay-emoji { font-size: 48px; line-height: 1; margin-bottom: 10px; }
.rr-overlay-title { font-size: 24px; font-weight: 900; color: #c2410c; letter-spacing: -0.02em; }
.rr-overlay-text { font-size: 13px; color: #9a6534; margin: 8px 0 16px; }
.rr-overlay-actions { display: flex; gap: 10px; justify-content: center; }

/* 操作行 */
.rr-actions {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    max-width: 420px;
    margin-top: 14px;
    flex-wrap: wrap;
    justify-content: center;
}
.rr-btn {
    padding: 10px 22px;
    border-radius: 10px;
    border: 1px solid #fed7aa;
    background: #fff;
    color: #c2410c;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.12s ease, background 0.15s ease;
    user-select: none;
}
.rr-btn:hover { background: #fff7ed; transform: translateY(-1px); }
.rr-btn:active { transform: scale(0.95); }
.rr-btn.primary {
    background: linear-gradient(135deg, #f97316, #ea580c);
    color: #fff;
    border-color: transparent;
    box-shadow: 0 8px 20px rgba(249, 115, 22, 0.4);
}
.rr-hint {
    font-size: 12px;
    color: #9a6534;
    flex-basis: 100%;
    text-align: center;
}

/* 简介区 */
.rr-info { margin-bottom: 28px; }
.rr-info .detail-title-row { margin-bottom: 16px; }
.rr-info h1 { font-size: 28px; }

/* 响应式 */
@media (max-width: 768px) {
    .rr-hero { padding: 20px 14px 18px; }
    .rr-hud-item { min-width: 72px; padding: 8px 10px; }
    .rr-hud-value { font-size: 16px; }
}

@media (prefers-reduced-motion: reduce) {
    .rr-glow { display: none; }
}
