/* ===== 点击解压 · 碎屏泡泡 · 专属样式 ===== */

/* ---- 舞台外壳 ---- */
.smash-hero {
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: linear-gradient(180deg, #1a1033 0%, #2d1b4e 50%, #1a1033 100%);
    box-shadow: var(--shadow-lg);
    margin-bottom: 28px;
    position: relative;
}

/* ---- 计分栏 ---- */
.smash-hud {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 28px;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.28), rgba(0, 0, 0, 0.05));
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    position: relative;
    z-index: 4;
}
.smash-hud-item {
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.smash-hud-item .k {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.5);
}
.smash-hud-item .v {
    font-size: 26px;
    font-weight: 800;
    color: #fff;
    line-height: 1.1;
    font-variant-numeric: tabular-nums;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.35);
}
.smash-hud-item:nth-child(2) .v { color: #ffd95e; }
.smash-hud-item:nth-child(3) .v { color: #ff6b9d; }

/* ---- 倍率徽章 ---- */
.smash-multi {
    position: absolute;
    top: 16px;
    left: 50%;
    transform: translateX(-50%) scale(1);
    z-index: 6;
    padding: 6px 20px;
    border-radius: 999px;
    font-size: 18px;
    font-weight: 800;
    letter-spacing: 0.04em;
    color: #fff;
    background: linear-gradient(135deg, #ff6b9d, #ff9f43);
    box-shadow: 0 8px 24px rgba(255, 107, 157, 0.45);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}
.smash-multi.is-active {
    opacity: 1;
}
.smash-multi.is-bump {
    animation: smash-multi-bump 0.32s cubic-bezier(0.22, 1.4, 0.5, 1);
}
@keyframes smash-multi-bump {
    0%   { transform: translateX(-50%) scale(0.7); }
    55%  { transform: translateX(-50%) scale(1.32); }
    100% { transform: translateX(-50%) scale(1); }
}

/* ---- 互动舞台 ---- */
.smash-stage {
    position: relative;
    width: 100%;
    height: 520px;
    cursor: crosshair;
    overflow: hidden;
    user-select: none;
    -webkit-user-select: none;
    touch-action: manipulation;
}

/* 渐变背景 + 流动光晕 */
.smash-stage-bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(620px 360px at 18% 12%, rgba(124, 92, 255, 0.45) 0%, transparent 60%),
        radial-gradient(560px 320px at 84% 22%, rgba(255, 107, 157, 0.40) 0%, transparent 58%),
        radial-gradient(560px 360px at 50% 92%, rgba(0, 212, 255, 0.32) 0%, transparent 60%),
        linear-gradient(135deg, #1a1033 0%, #2d1b4e 55%, #122046 100%);
    animation: smash-bg-pan 18s ease-in-out infinite alternate;
    pointer-events: none;
}
@keyframes smash-bg-pan {
    0%   { background-position: 0% 0%, 100% 0%, 50% 100%, 0 0; }
    100% { background-position: 30% 20%, 70% -10%, 60% 80%, 0 0; }
}

/* 裂纹画布 */
.smash-cracks {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 3;
    opacity: 0.92;
}

/* 泡泡容器 */
.smash-bubbles {
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
}

/* ---- 初始提示 ---- */
.smash-hint {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 5;
    text-align: center;
    color: rgba(255, 255, 255, 0.78);
    pointer-events: none;
    transition: opacity 0.4s ease, transform 0.4s ease;
}
.smash-hint .emoji {
    font-size: 56px;
    margin-bottom: 12px;
    animation: smash-hint-pulse 2.4s ease-in-out infinite;
}
.smash-hint p {
    font-size: 22px;
    font-weight: 800;
    color: #fff;
    margin-bottom: 6px;
    letter-spacing: 0.02em;
}
.smash-hint span {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.55);
}
.smash-hint.is-hidden {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.9);
}
@keyframes smash-hint-pulse {
    0%, 100% { transform: scale(1); }
    50%      { transform: scale(1.12); }
}

/* ---- 泡泡 ---- */
.smash-bubble {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    transform: translate(-50%, -50%) scale(0);
    will-change: transform, opacity;
    background: radial-gradient(circle at 32% 28%, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0.35) 18%, var(--bubble-color, #ff6b9d) 62%, var(--bubble-color-dark, #c43d6f) 100%);
    box-shadow:
        inset 0 4px 10px rgba(255, 255, 255, 0.5),
        inset 0 -8px 14px rgba(0, 0, 0, 0.22),
        0 6px 18px rgba(0, 0, 0, 0.28);
    animation: smash-bubble-in 0.16s ease-out forwards;
}

/* 非交互元素统一不拦截事件 */
.smash-particle,
.smash-float-score {
    pointer-events: none;
}
@keyframes smash-bubble-in {
    from { transform: translate(-50%, -50%) scale(0); }
    to   { transform: translate(-50%, -50%) scale(1); }
}
.smash-bubble.is-pop {
    animation: smash-bubble-pop 0.34s ease-out forwards;
}
@keyframes smash-bubble-pop {
    0%   { transform: translate(-50%, -50%) scale(1);   opacity: 1; }
    45%  { transform: translate(-50%, -50%) scale(1.55); opacity: 0.95; }
    100% { transform: translate(-50%, -50%) scale(2.1); opacity: 0; }
}

/* 自动浮升泡泡 */
.smash-floater {
    position: absolute;
    border-radius: 50%;
    pointer-events: auto;
    cursor: pointer;
    transform: translate(-50%, 0);
    background: radial-gradient(circle at 32% 28%, rgba(255, 255, 255, 0.9) 0%, rgba(255, 255, 255, 0.3) 20%, var(--floater-color, #00d4ff) 60%, var(--floater-color-dark, #0080a0) 100%);
    box-shadow:
        inset 0 4px 10px rgba(255, 255, 255, 0.45),
        inset 0 -8px 14px rgba(0, 0, 0, 0.2),
        0 6px 20px rgba(0, 0, 0, 0.3);
    animation: smash-float-up var(--float-dur, 7s) linear forwards;
    transition: filter 0.15s ease;
}
.smash-floater:hover { filter: brightness(1.12); }
@keyframes smash-float-up {
    0%   { transform: translate(-50%, 0) scale(0.3); opacity: 0; }
    10%  { transform: translate(-50%, -56px) scale(1); opacity: 1; }
    90%  { transform: translate(-50%, -504px) scale(1); opacity: 1; }
    100% { transform: translate(-50%, -560px) scale(1); opacity: 0; }
}

/* ---- 粒子 ---- */
.smash-particle {
    position: absolute;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    pointer-events: none;
    transform: translate(-50%, -50%);
    will-change: transform, opacity;
    animation: smash-particle-fly 0.6s ease-out forwards;
}
@keyframes smash-particle-fly {
    0%   { transform: translate(-50%, -50%) scale(1); opacity: 1; }
    100% { transform: translate(calc(-50% + var(--px)), calc(-50% + var(--py))) scale(0.2); opacity: 0; }
}

/* 浮分提示 */
.smash-float-score {
    position: absolute;
    transform: translate(-50%, -50%);
    font-size: 22px;
    font-weight: 800;
    color: #fff;
    pointer-events: none;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
    animation: smash-score-rise 0.8s ease-out forwards;
}
@keyframes smash-score-rise {
    0%   { transform: translate(-50%, -50%) scale(0.6); opacity: 0; }
    20%  { transform: translate(-50%, -60%) scale(1.1); opacity: 1; }
    100% { transform: translate(-50%, -160%) scale(1); opacity: 0; }
}

/* ---- 控制栏 ---- */
.smash-controls {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    padding: 18px 28px;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.32), rgba(0, 0, 0, 0.05));
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    position: relative;
    z-index: 4;
}
.smash-controls .btn {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(6px);
}
.smash-controls .btn:hover {
    background: rgba(255, 255, 255, 0.18);
    transform: translateY(-1px);
}
.smash-controls .btn-primary {
    background: linear-gradient(135deg, #ff6b9d, #ff9f43);
    border-color: transparent;
    box-shadow: 0 6px 18px rgba(255, 107, 157, 0.4);
}
.smash-controls .btn-primary:hover {
    box-shadow: 0 10px 26px rgba(255, 107, 157, 0.55);
}
.smash-tip {
    margin-left: auto;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.5);
}

/* ---- 工具简介 ---- */
.smash-info {
    margin-bottom: 32px;
}
.smash-info .detail-title-row { margin-bottom: 12px; }
.smash-info .detail-badges { margin-bottom: 12px; }

/* ---- 响应式 ---- */
@media (max-width: 768px) {
    .smash-stage { height: 420px; }
    .smash-hud { padding: 14px 18px; gap: 10px; }
    .smash-hud-item .v { font-size: 20px; }
    .smash-controls { padding: 14px 18px; }
    .smash-tip { width: 100%; margin: 4px 0 0; }
    .smash-hint p { font-size: 18px; }
    .smash-hint .emoji { font-size: 44px; }
}
@media (max-width: 480px) {
    .smash-stage { height: 360px; }
    .smash-multi { font-size: 15px; padding: 5px 14px; }
}
