/* ===== coin-dodge · 金币炸弹 ===== */

.cd-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, #fef9c3 0%, #fffbeb 55%, #fff9db 100%);
    overflow: hidden;
    margin-bottom: 24px;
    border: 1px solid #fde047;
}

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

/* HUD */
.cd-hud {
    position: relative;
    z-index: 1;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: center;
    width: 100%;
    max-width: 440px;
    margin-bottom: 14px;
}
.cd-hud-item {
    flex: 1;
    min-width: 70px;
    padding: 8px 10px;
    border-radius: 10px;
    background: #fff;
    border: 1px solid #fde047;
    box-shadow: 0 4px 12px rgba(234, 179, 8, 0.08);
    text-align: center;
}
.cd-hud-label {
    font-size: 10px;
    color: #854d0e;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-weight: 700;
}
.cd-hud-value {
    font-size: 18px;
    font-weight: 900;
    color: #a16207;
    margin-top: 1px;
    font-variant-numeric: tabular-nums;
}
.cd-hud-item.best {
    background: linear-gradient(135deg, #eab308, #ca8a04);
    border-color: transparent;
    box-shadow: 0 6px 18px rgba(234, 179, 8, 0.35);
}
.cd-hud-item.best .cd-hud-label { color: rgba(255,255,255,0.8); }
.cd-hud-item.best .cd-hud-value { color: #fff; }

/* Canvas */
.cd-canvas-wrap {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 440px;
}
.cd-canvas-wrap canvas {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 14px;
    background: linear-gradient(180deg, #1e1b4b 0%, #312e81 50%, #1e1b4b 100%);
    box-shadow: 0 16px 50px rgba(30, 27, 75, 0.5);
    touch-action: none;
    cursor: crosshair;
}

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

.cd-overlay-card {
    text-align: center;
    padding: 26px 24px;
    background: linear-gradient(135deg, #1e1b4b, #4338ca);
    border-radius: 16px;
    box-shadow: 0 14px 40px rgba(0,0,0,0.4);
    max-width: 82%;
    border: 1px solid #818cf8;
}
.cd-overlay-emoji { font-size: 48px; line-height: 1; margin-bottom: 10px; }
.cd-overlay-title { font-size: 22px; font-weight: 900; color: #fff; letter-spacing: -0.02em; }
.cd-overlay-text { font-size: 13px; color: rgba(255,255,255,0.78); margin: 8px 0 16px; }
.cd-overlay-actions { display: flex; gap: 10px; justify-content: center; }

.cd-btn {
    padding: 10px 20px;
    border-radius: 10px;
    border: 1px solid rgba(255,255,255,0.3);
    background: rgba(255,255,255,0.15);
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.12s ease, background 0.15s ease;
}
.cd-btn:hover { background: rgba(255,255,255,0.25); transform: translateY(-1px); }
.cd-btn:active { transform: scale(0.95); }
.cd-btn.primary {
    background: linear-gradient(135deg, #facc15, #eab308);
    color: #422006;
    border-color: transparent;
    box-shadow: 0 8px 20px rgba(250, 204, 21, 0.5);
}

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

/* 响应式 */
@media (max-width: 768px) {
    .cd-hero { padding: 20px 14px 18px; }
    .cd-hud-item { min-width: 60px; padding: 6px 8px; }
    .cd-hud-value { font-size: 15px; }
}

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