/* ===== chain-pop · 连锁爆破 ===== */

.cp-hero {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 32px 20px 28px;
    border-radius: var(--radius-lg);
    background: linear-gradient(180deg, #fef2f8 0%, #fff5fb 50%, #fff 100%);
    overflow: hidden;
    margin-bottom: 24px;
    border: 1px solid #fce4ef;
}

.cp-glow {
    position: absolute;
    top: -120px;
    left: 50%;
    width: 500px;
    height: 500px;
    transform: translateX(-50%);
    border-radius: 50%;
    background: radial-gradient(circle, rgba(236, 72, 153, 0.18) 0%, transparent 70%);
    pointer-events: none;
}

/* HUD */
.cp-hud {
    position: relative;
    z-index: 1;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
    width: 100%;
    max-width: 520px;
    margin-bottom: 18px;
}
.cp-hud-item {
    flex: 1;
    min-width: 70px;
    padding: 10px 14px;
    border-radius: 12px;
    background: linear-gradient(135deg, #fdf2f8, #fce7f3);
    text-align: center;
    border: 1px solid #fbcfe8;
}
.cp-hud-item.best { background: linear-gradient(135deg, #fef3c7, #fde68a); border-color: #fcd34d; }
.cp-hud-label {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #9d174d;
    font-weight: 700;
}
.cp-hud-item.best .cp-hud-label { color: #b45309; }
.cp-hud-value {
    font-size: 20px;
    font-weight: 800;
    color: #831843;
    line-height: 1.2;
    margin-top: 2px;
}
.cp-hud-item.best .cp-hud-value { color: #92400e; }
.cp-hearts { font-size: 18px; letter-spacing: 1px; }

/* 操作行 */
.cp-actions {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    max-width: 520px;
    margin-bottom: 18px;
    flex-wrap: wrap;
}
.cp-btn {
    padding: 10px 22px;
    border-radius: 10px;
    border: 1px solid #fbcfe8;
    background: #fff;
    color: #9d174d;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.cp-btn:hover { background: #fdf2f8; transform: translateY(-1px); }
.cp-btn:active { transform: translateY(0); }
.cp-btn.primary {
    background: linear-gradient(135deg, #ec4899, #db2777);
    color: #fff;
    border-color: transparent;
    box-shadow: 0 8px 18px rgba(219, 39, 119, 0.4);
}
.cp-btn.primary:hover { background: linear-gradient(135deg, #db2777, #be185d); }
.cp-btn:disabled { opacity: 0.45; cursor: not-allowed; }

.cp-hint {
    margin-left: auto;
    font-size: 12.5px;
    color: #9d174d;
    opacity: 0.7;
}

/* Canvas 区域 */
.cp-board-wrap {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 520px;
    display: grid;
    place-items: center;
}
#cpCanvas {
    width: 100%;
    max-width: 480px;
    height: auto;
    aspect-ratio: 1 / 1;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 16px 40px rgba(236, 72, 153, 0.18);
    touch-action: none;
    user-select: none;
    border: 2px solid #fbcfe8;
}

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

.cp-overlay-card {
    text-align: center;
    padding: 28px 26px;
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 16px 44px rgba(219, 39, 119, 0.2);
    max-width: 86%;
    border: 1px solid #fbcfe8;
}
.cp-overlay-emoji { font-size: 48px; line-height: 1; margin-bottom: 10px; }
.cp-overlay-title { font-size: 26px; font-weight: 900; color: #831843; letter-spacing: -0.02em; }
.cp-overlay-text { font-size: 14px; color: #9d174d; margin: 8px 0 14px; line-height: 1.6; }
.cp-overlay-stats {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 16px;
}
.cp-overlay-stat {
    padding: 8px 14px;
    border-radius: 10px;
    background: linear-gradient(135deg, #fdf2f8, #fce7f3);
    font-size: 13px;
    color: #831843;
    font-weight: 600;
}
.cp-overlay-actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }

/* 简介区 */
.cp-info { margin-bottom: 28px; }

/* 响应式 */
@media (max-width: 768px) {
    .cp-hero { padding: 24px 14px 22px; }
    .cp-hud-item { min-width: 60px; padding: 8px 10px; }
    .cp-hud-value { font-size: 16px; }
    .cp-btn { padding: 9px 16px; font-size: 13px; }
    .cp-hint { display: none; }
}
@media (max-width: 420px) {
    .cp-hud { gap: 6px; }
    .cp-hud-item { min-width: 0; flex: 1 1 30%; }
}

/* prefers-reduced-motion */
@media (prefers-reduced-motion: reduce) {
    .cp-overlay { animation: none; }
}
