/* ===== color-switcher · 颜色切换跑酷 ===== */

.cs-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, #fff7ed 0%, #fff 55%, #fffbeb 100%);
    overflow: hidden;
    margin-bottom: 24px;
    border: 1px solid #fed7aa;
}

.cs-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.18) 0%, transparent 70%);
    pointer-events: none;
}

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

/* 操作行 */
.cs-actions {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 14px;
    width: 100%;
    max-width: 720px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}
.cs-btn {
    padding: 10px 22px;
    border-radius: 10px;
    border: 1px solid #fed7aa;
    background: #fff;
    color: #ea580c;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.15s ease;
}
.cs-btn:hover { background: #fff7ed; transform: translateY(-1px); }
.cs-btn:active { transform: translateY(0); }
.cs-btn.primary {
    background: linear-gradient(135deg, #f97316, #ea580c);
    color: #fff;
    border-color: transparent;
    box-shadow: 0 8px 20px rgba(234, 88, 12, 0.35);
}
.cs-btn.primary:hover { background: linear-gradient(135deg, #ea580c, #c2410c); }
.cs-hint {
    margin-left: auto;
    font-size: 12.5px;
    color: #b5651d;
}

/* 画布容器 */
.cs-board-wrap {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 720px;
    aspect-ratio: 18 / 10;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 16px 40px rgba(249, 115, 22, 0.18);
    background: linear-gradient(180deg, #fef3c7, #fed7aa);
}
.cs-board-wrap canvas {
    display: block;
    width: 100%;
    height: 100%;
    touch-action: none;
    user-select: none;
}

/* 移动端提示 */
.cs-mobile-tap {
    position: relative;
    z-index: 1;
    margin-top: 14px;
    font-size: 13px;
    color: #b5651d;
    text-align: center;
}

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

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

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

/* 响应式 */
@media (max-width: 768px) {
    .cs-hero { padding: 24px 14px 22px; }
    .cs-hud { gap: 8px; }
    .cs-hud-item { min-width: 72px; padding: 8px 10px; }
    .cs-hud-value { font-size: 16px; }
    .cs-hint { display: none; }
}
