/* ===== speed-drum · 极速反应 ===== */

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

.sd-glow {
    position: absolute;
    top: -140px;
    left: 50%;
    width: 500px;
    height: 500px;
    transform: translateX(-50%);
    border-radius: 50%;
    background: radial-gradient(circle, rgba(244, 63, 94, 0.2) 0%, transparent 70%);
    pointer-events: none;
}

/* HUD */
.sd-hud {
    position: relative;
    z-index: 1;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
    width: 100%;
    max-width: 720px;
    margin-bottom: 12px;
}
.sd-hud-item {
    flex: 1;
    min-width: 100px;
    padding: 10px 12px;
    border-radius: 12px;
    background: #fff;
    border: 1px solid #fecdd3;
    box-shadow: 0 4px 12px rgba(244, 63, 94, 0.08);
    text-align: center;
}
.sd-hud-label {
    font-size: 11px;
    color: #9f1239;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-weight: 700;
}
.sd-hud-value {
    font-size: 20px;
    font-weight: 900;
    color: #e11d48;
    margin-top: 2px;
}
.sd-hud-item.best { background: linear-gradient(135deg, #f43f5e, #be123c); border-color: transparent; }
.sd-hud-item.best .sd-hud-label { color: rgba(255,255,255,0.8); }
.sd-hud-item.best .sd-hud-value { color: #fff; }
.sd-hud-item.combo { border-color: #fbbf24; }
.sd-hud-item.combo .sd-hud-value { color: #b45309; }
.sd-hud-item.combo.is-hot .sd-hud-value {
    color: #dc2626;
    animation: sd-combo-hot 0.4s ease infinite alternate;
}
@keyframes sd-combo-hot {
    from { transform: scale(1); }
    to { transform: scale(1.15); }
}

/* 提示条 */
.sd-hint-bar {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 720px;
    padding: 8px 14px;
    background: #fff;
    border: 1px solid #fecdd3;
    border-radius: 10px;
    font-size: 13px;
    color: #9f1239;
    text-align: center;
    margin-bottom: 14px;
}

/* 画布容器 */
.sd-board-wrap {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 720px;
    aspect-ratio: 3 / 2;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 16px 40px rgba(244, 63, 94, 0.18);
    background: linear-gradient(180deg, #fff, #fecdd3);
}
.sd-board-wrap canvas {
    display: block;
    width: 100%;
    height: 100%;
    touch-action: none;
    user-select: none;
    cursor: crosshair;
}

.sd-mobile-tap {
    position: relative;
    z-index: 1;
    margin-top: 14px;
    font-size: 13px;
    color: #9f1239;
    text-align: center;
}

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

.sd-overlay-card {
    text-align: center;
    padding: 28px 24px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 14px 40px rgba(190, 18, 60, 0.25);
    max-width: 86%;
}
.sd-overlay-emoji { font-size: 48px; line-height: 1; margin-bottom: 10px; }
.sd-overlay-title { font-size: 26px; font-weight: 900; color: #e11d48; letter-spacing: -0.02em; }
.sd-overlay-text { font-size: 14px; color: #9f1239; margin: 8px 0 18px; }
.sd-overlay-actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }

.sd-btn {
    padding: 10px 22px;
    border-radius: 10px;
    border: 1px solid #fecdd3;
    background: #fff;
    color: #e11d48;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
}
.sd-btn.primary {
    background: linear-gradient(135deg, #f43f5e, #be123c);
    color: #fff;
    border-color: transparent;
    box-shadow: 0 8px 20px rgba(190, 18, 60, 0.35);
}

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

/* 响应式 */
@media (max-width: 768px) {
    .sd-hero { padding: 24px 14px 22px; }
    .sd-hud { gap: 8px; }
    .sd-hud-item { min-width: 60px; padding: 8px 10px; }
    .sd-hud-value { font-size: 15px; }
}
