/* Custom fonts & styles for Sweet Crush */
body {
    -webkit-tap-highlight-color: transparent;
    overflow: hidden;
    user-select: none;
    -webkit-user-select: none;
}

/* Glassmorphic elements */
.backdrop-blur-xl {
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
}

.backdrop-blur-md {
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

/* Candy container board styling */
#board-container {
    box-shadow: 0 25px 50px -12px rgba(12, 7, 30, 0.8),
                0 0 40px rgba(236, 72, 153, 0.15);
}

/* Custom candy bounce entrance animation */
@keyframes bounceIn {
    0% {
        transform: scale(0);
        opacity: 0;
    }
    70% {
        transform: scale(1.15);
        opacity: 0.9;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.candy-wrapper {
    animation-fill-mode: both;
    transform-origin: center center;
}

/* Smooth transitions for interactive state */
.candy-wrapper .w-full {
    transition: transform 0.15s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* High-performance canvas layout */
#juice-canvas {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}