/* === РАЗБИТИЕ КАМНЕЙ === */
.stone-content {
    max-width: 420px;
    max-height: 520px;
    display: flex;
    flex-direction: column;
    min-height: 0;
}
.stone-body {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    padding: 20px;
    flex-grow: 1;
    position: relative;
}
.stone-hp-bar-container {
    width: 200px;
    height: 10px;
    background: #e0e0e0;
    border-radius: 10px;
    overflow: hidden;
}
.stone-hp-bar {
    height: 100%;
    width: 100%;
    background: linear-gradient(90deg, #ff6bb5, #ff9de2);
    border-radius: 10px;
    transition: width 0.12s ease;
}
.stone-visual {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 220px;
    height: 220px;
    cursor: pointer;
    user-select: none;
    -webkit-user-select: none;
}
.stone-visual:active #stone-image {
    transform: scale(0.92);
}
#stone-image {
    width: 200px;
    height: auto;
    object-fit: contain;
    transition: transform 0.05s;
    pointer-events: none;
    z-index: 2;
    position: relative;
}
.stone-image-shake {
    animation: stoneShake 0.08s ease-out;
}
@keyframes stoneShake {
    0% { transform: translate(0, 0) rotate(0deg); }
    25% { transform: translate(-3px, 2px) rotate(-2deg); }
    50% { transform: translate(3px, -1px) rotate(2deg); }
    75% { transform: translate(-2px, -2px) rotate(-1deg); }
    100% { transform: translate(0, 0) rotate(0deg); }
}
#stone-chips-container {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    pointer-events: none;
    z-index: 3;
    overflow: visible;
}
.stone-chip {
    position: absolute;
    width: 32px;
    height: 32px;
    pointer-events: none;
    z-index: 3;
}
.stone-chip-fly {
    animation: chipFly 0.5s ease-out forwards;
}
@keyframes chipFly {
    0% { opacity: 1; transform: translate(0, 0) scale(1); }
    100% { opacity: 0; transform: translate(var(--dx), var(--dy)) scale(0.4); }
}
.stone-click-hint {
    font-size: 13px;
    color: #999;
    margin-top: 4px;
}
.stone-reward-fly {
    position: absolute;
    bottom: 30%;
    font-size: 28px;
    font-weight: bold;
    color: #ff7eb3;
    opacity: 0;
    pointer-events: none;
    text-shadow: 0 0 12px rgba(255,126,179,0.6);
    z-index: 10;
}
.stone-reward-fly.show {
    animation: rewardFloat 0.8s ease-out forwards;
}
@keyframes rewardFloat {
    0% { opacity: 1; transform: translateY(0) scale(1); }
    100% { opacity: 0; transform: translateY(-60px) scale(1.3); }
}
/* Разбитие — финальная анимация */
.stone-break #stone-image {
    animation: stoneBreak 0.4s ease-out forwards;
}
@keyframes stoneBreak {
    0% { transform: scale(1); opacity: 1; }
    40% { transform: scale(1.15); opacity: 0.8; }
    100% { transform: scale(0.1); opacity: 0; }
}
.stone-break .stone-hp-bar {
    width: 0% !important;
}
.stone-break .stone-click-hint {
    display: none;
}
/* Mobile */
@media (max-width: 480px) {
    .stone-content {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        width: 100% !important;
        height: 100% !important;
        max-width: none !important;
        max-height: none !important;
        border-radius: 0 !important;
    }
}

