/* ===== 接小球 · 专属样式 ===== */

/* ---- Hero 区域 ---- */
.cb-hero {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 40px 24px 32px;
    border-radius: var(--radius-lg);
    background: linear-gradient(180deg, #eef6ff 0%, #f7faff 60%, #f3f7fc 100%);
    overflow: hidden;
    margin-bottom: 24px;
    border: 1px solid #dce8f5;
}

/* 光晕 */
.cb-glow {
    position: absolute;
    top: -120px;
    left: 50%;
    width: 460px;
    height: 460px;
    transform: translateX(-50%);
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0, 102, 255, 0.16) 0%, transparent 70%);
    pointer-events: none;
}

/* ---- 顶部信息行 ---- */
.cb-topbar {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    width: 100%;
    max-width: 480px;
    margin-bottom: 18px;
    flex-wrap: wrap;
}
.cb-brand { display: flex; flex-direction: column; gap: 4px; }
.cb-logo {
    font-size: 24px;
    font-weight: 900;
    letter-spacing: -0.02em;
    line-height: 1.1;
    color: #1a1f36;
}
.cb-tagline { font-size: 13px; color: #6b7896; font-weight: 500; }

/* 状态盒子 */
.cb-stats { display: flex; gap: 10px; }
.cb-stat-box {
    min-width: 78px;
    padding: 10px 14px;
    border-radius: 12px;
    background: #fff;
    border: 1px solid #e3ecf6;
    text-align: center;
    box-shadow: 0 6px 16px rgba(0, 102, 255, 0.08);
}
.cb-stat-box.best { background: linear-gradient(135deg, #ffd76b, #ffa726); border-color: transparent; box-shadow: 0 8px 18px rgba(255, 167, 38, 0.35); }
.cb-stat-box.lives { background: linear-gradient(135deg, #ff8aa8, #ff4d79); border-color: transparent; box-shadow: 0 8px 18px rgba(255, 77, 121, 0.35); }
.cb-stat-box.best .cb-stat-label, .cb-stat-box.best .cb-stat-value,
.cb-stat-box.lives .cb-stat-label, .cb-stat-box.lives .cb-stat-value { color: #fff; }
.cb-stat-label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #8a93a8;
    font-weight: 700;
}
.cb-stat-value {
    font-size: 20px;
    font-weight: 800;
    line-height: 1.2;
    margin-top: 2px;
    color: #1a1f36;
    transition: transform 0.18s ease;
}
.cb-stat-value.bump { transform: scale(1.18); }
.cb-stat-box.lives .cb-stat-value { font-size: 16px; letter-spacing: 1px; }

/* ---- 画布容器 ---- */
.cb-canvas-wrap {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 480px;
}
.cb-canvas {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 480 / 600;
    border-radius: 16px;
    box-shadow: 0 16px 40px rgba(31, 72, 130, 0.28);
    background: #0e1b34;
    cursor: none;
    touch-action: none;
}

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

.cb-overlay-card {
    text-align: center;
    padding: 28px 24px;
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.35);
    max-width: 90%;
    animation: cb-card-in 0.3s cubic-bezier(0.2, 0.9, 0.3, 1.2);
}
@keyframes cb-card-in {
    from { opacity: 0; transform: translateY(14px) scale(0.96); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}
.cb-overlay-emoji { font-size: 48px; line-height: 1; margin-bottom: 10px; }
.cb-overlay-title { font-size: 26px; font-weight: 900; color: #1a1f36; letter-spacing: -0.02em; }
.cb-overlay-text { font-size: 14px; color: #5b6478; margin: 10px 0 18px; line-height: 1.7; }
.cb-overlay-text b { color: #ff4d79; font-size: 18px; }

.cb-overlay-controls {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 18px;
    font-size: 12.5px;
    color: #8a93a8;
}
.cb-ctrl kbd {
    display: inline-block;
    padding: 2px 7px;
    margin: 0 1px;
    border-radius: 5px;
    background: #f3f7fc;
    border: 1px solid #e3ecf6;
    border-bottom-width: 2px;
    font-size: 11px;
    font-family: ui-monospace, monospace;
    color: #1a1f36;
}

/* ---- 按钮 ---- */
.cb-btn {
    padding: 11px 22px;
    border-radius: 10px;
    border: 1px solid #d6e0ef;
    background: #fff;
    color: #1a1f36;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, color 0.15s ease;
}
.cb-btn:hover { background: #f3f7fc; transform: translateY(-1px); }
.cb-btn:active { transform: translateY(0); }
.cb-btn.primary {
    background: linear-gradient(135deg, #3d8bff, #0066ff);
    color: #fff;
    border-color: transparent;
    box-shadow: 0 10px 22px rgba(0, 102, 255, 0.4);
}
.cb-btn.primary:hover { background: linear-gradient(135deg, #2d7bff, #0050cc); }
.cb-btn:disabled { opacity: 0.45; cursor: not-allowed; transform: none; }

/* ---- 操作行 ---- */
.cb-actions {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    max-width: 480px;
    margin-top: 18px;
    flex-wrap: wrap;
}
.cb-hint {
    margin-left: auto;
    font-size: 12.5px;
    color: #8a93a8;
}
.cb-hint kbd {
    display: inline-block;
    padding: 2px 7px;
    margin: 0 1px;
    border-radius: 5px;
    background: #fff;
    border: 1px solid #d6e0ef;
    border-bottom-width: 2px;
    font-size: 11px;
    font-family: ui-monospace, monospace;
    color: #1a1f36;
}

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

/* ---- 响应式 ---- */
@media (max-width: 768px) {
    .cb-hero { padding: 28px 16px 24px; }
    .cb-topbar { gap: 14px; }
    .cb-logo { font-size: 20px; }
    .cb-tagline { display: none; }
    .cb-stat-box { min-width: 64px; padding: 8px 10px; }
    .cb-stat-value { font-size: 17px; }
    .cb-hint { display: none; }
    .cb-actions { gap: 8px; }
    .cb-btn { padding: 10px 18px; font-size: 13px; }
    .cb-overlay-emoji { font-size: 40px; }
    .cb-overlay-title { font-size: 22px; }
}

@media (max-width: 420px) {
    .cb-topbar { flex-direction: column; align-items: stretch; }
    .cb-stats { justify-content: center; }
    .cb-actions { justify-content: center; }
}

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