/* TSCC-kun Floating Animation Styles */
.tscc-kun-container {
    position: fixed;
    width: 120px;
    height: 120px;
    z-index: 9999;
    cursor: pointer;
    user-select: none;
    pointer-events: auto;
    transition: transform 0.3s ease-out;
    filter: drop-shadow(0 5px 15px rgba(0, 0, 0, 0.2));
}

.tscc-kun-container img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    animation: throb 2s ease-in-out infinite;
}

@keyframes throb {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.25);
    }
}

/* Hover effect */
.tscc-kun-container:hover {
    transform: scale(1.1) rotate(5deg);
}

/* Catch effect (active) */
.tscc-kun-container:active {
    transform: scale(0.9);
}

/* Speech bubble (optional) */
.tscc-kun-speech {
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: #fff;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    color: #333;
    white-space: nowrap;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
    pointer-events: none;
    margin-bottom: 10px;
}

.tscc-kun-speech::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border-width: 6px;
    border-style: solid;
    border-color: #fff transparent transparent transparent;
}

.tscc-kun-container:hover .tscc-kun-speech {
    opacity: 1;
    visibility: visible;
}

/* Responsive adjustment */
@media (max-width: 768px) {
    .tscc-kun-container {
        width: 80px;
        height: 80px;
    }
}