.ink-bg {
    /* Modern Slate Theme */
    background-color: #f8fafc; /* Slate-50 */
    /* Removed paper texture */
}

/* Custom scrollbar for reset button or other UI elements if needed */
/* Updated reset button styles are now handled by Tailwind utility classes in HTML */
/* But we keep this block empty or remove it to avoid conflict if any */

.char-node {
    position: absolute;
    /* width/height set by JS */
    background: transparent;
    border: 1px solid transparent; /* Transparent border to keep layout stable */
    border-radius: 50%; /* Circle */
    display: flex;
    align-items: center;
    justify-content: center;
    /* font-size set by JS */
    color: #1e293b; /* Slate-800 */
    cursor: pointer;
    user-select: none;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 20;
    font-family: "KaiTi", "STKaiti", serif;
}

.char-node:hover {
    transform: scale(1.1);
    background: rgba(226, 232, 240, 0.5); /* Slate-200 with opacity */
}

.char-node.selected {
    background: #f97316; /* Orange-500 */
    color: #ffffff; /* White text */
    font-weight: bold;
    transform: scale(1.1);
    box-shadow: 0 4px 6px rgba(249, 115, 22, 0.3);
    z-index: 25;
}

.char-node.correct {
    background: #22c55e; /* Green-500 */
    color: #ffffff; /* White text */
    font-weight: bold;
    animation: bounce 0.5s;
    pointer-events: none;
    box-shadow: 0 4px 6px rgba(34, 197, 94, 0.3);
}

.char-node.wrong {
    background: #ef4444; /* Red-500 */
    color: #ffffff; /* White text */
    animation: shake 0.5s;
}

@keyframes bounce {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.2); }
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

@keyframes stampIn {
    0% {
        opacity: 0;
        transform: scale(3) rotate(-10deg);
    }
    50% {
        opacity: 1;
        transform: scale(0.8) rotate(5deg);
    }
    70% {
        transform: scale(1.1) rotate(-3deg);
    }
    100% {
        transform: scale(1) rotate(0);
    }
}

.stamp-animation {
    animation: stampIn 0.6s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.success-card {
    position: relative;
}

/* Add a subtle fade-in for the overlay */
#level-complete {
    animation: fadeIn 0.4s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
