/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Spierce's official color palette */
    --primary-color: #BF4223;
    --secondary-color: #950C09;
    --accent-color: #BF4223;
    --text-color: #1F1F20;
    --bg-gradient-start: #2a2a2b;
    --bg-gradient-end: #1F1F20;
    --shadow: 0 4px 15px rgba(191, 66, 35, 0.3);
    --border-radius: 20px;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', sans-serif;
    background: linear-gradient(135deg, var(--bg-gradient-start) 0%, var(--bg-gradient-end) 100%);
    height: 100vh;
    height: 100dvh;
    overflow: hidden;
    user-select: none;
    -webkit-user-select: none;
    -webkit-tap-highlight-color: transparent;
}

#app {
    width: 100%;
    height: 100vh;
    height: 100dvh;
    max-width: 480px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    position: relative;
    background: #1F1F20;
    box-shadow: 0 0 50px rgba(191, 66, 35, 0.4);
}

/* Status Bar */
.status-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 16px;
    background: linear-gradient(180deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    font-size: 12px;
    font-weight: 600;
    height: 40px;
}

.status-icons {
    display: flex;
    gap: 8px;
}

/* Assistant Container */
.assistant-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 20px;
    overflow-y: auto;
    overflow-x: hidden;
    padding-bottom: 100px; /* Minimal padding - fixed elements don't need space */
}

/* Character Display */
.character-display {
    flex: 1;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    position: relative;
    margin-bottom: 0px;
    z-index: 1;
    padding-bottom: 0px;
}

/* Custom Sprite Image */
.character-sprite-image {
    position: relative;
    width: 350px;
    height: 350px;
    object-fit: contain;
    object-position: bottom;
    transition: all 0.3s ease;
    filter: drop-shadow(0 4px 15px rgba(191, 66, 35, 0.4));
}

.character-sprite-image:active {
    transform: scale(0.95);
}

/* Core Emotions */
.character-sprite-image.idle {
    filter: drop-shadow(0 4px 15px rgba(191, 66, 35, 0.4));
}

.character-sprite-image.happy {
    filter: drop-shadow(0 4px 20px rgba(191, 66, 35, 0.7));
}

.character-sprite-image.sad {
    filter: drop-shadow(0 4px 15px rgba(149, 12, 9, 0.4)) brightness(0.9);
}

.character-sprite-image.anxious {
    filter: drop-shadow(0 4px 15px rgba(191, 66, 35, 0.6));
}

.character-sprite-image.content {
    filter: drop-shadow(0 4px 15px rgba(191, 66, 35, 0.5));
}

/* Positive Emotions */
.character-sprite-image.excited {
    filter: drop-shadow(0 4px 25px rgba(191, 66, 35, 0.9)) brightness(1.1);
}

.character-sprite-image.loving {
    filter: drop-shadow(0 4px 20px rgba(191, 66, 35, 0.8));
}

.character-sprite-image.grateful {
    filter: drop-shadow(0 4px 18px rgba(191, 66, 35, 0.6)) brightness(1.05);
}

.character-sprite-image.playful {
    filter: drop-shadow(0 4px 15px rgba(191, 66, 35, 0.7));
}

.character-sprite-image.relieved {
    filter: drop-shadow(0 4px 15px rgba(191, 66, 35, 0.5));
}

/* Negative Emotions */
.character-sprite-image.lonely {
    filter: drop-shadow(0 4px 15px rgba(149, 12, 9, 0.5)) brightness(0.85) saturate(0.7);
}

.character-sprite-image.scared {
    filter: drop-shadow(0 4px 20px rgba(149, 12, 9, 0.6)) brightness(0.95);
}

.character-sprite-image.crying {
    filter: drop-shadow(0 4px 15px rgba(149, 12, 9, 0.6)) brightness(0.85);
}

.character-sprite-image.desperate {
    filter: drop-shadow(0 4px 20px rgba(149, 12, 9, 0.7)) brightness(0.9);
}

.character-sprite-image.hurt {
    filter: drop-shadow(0 4px 15px rgba(149, 12, 9, 0.5)) brightness(0.8) saturate(0.6);
}

/* Complex Emotions */
.character-sprite-image.worried {
    filter: drop-shadow(0 4px 15px rgba(191, 66, 35, 0.5)) brightness(0.92);
}

.character-sprite-image.confused {
    filter: drop-shadow(0 4px 15px rgba(191, 66, 35, 0.4));
}

.character-sprite-image.shy {
    filter: drop-shadow(0 4px 15px rgba(191, 66, 35, 0.6)) brightness(0.95);
}

.character-sprite-image.blushing {
    filter: drop-shadow(0 4px 18px rgba(191, 66, 35, 0.7)) saturate(1.2);
}

.character-sprite-image.surprised {
    filter: drop-shadow(0 4px 20px rgba(191, 66, 35, 0.8)) brightness(1.1);
}

/* Dependency-related Emotions */
.character-sprite-image.clingy {
    filter: drop-shadow(0 4px 18px rgba(149, 12, 9, 0.6));
}

.character-sprite-image.possessive {
    filter: drop-shadow(0 4px 20px rgba(149, 12, 9, 0.8)) saturate(1.3);
}

.character-sprite-image.empty {
    filter: drop-shadow(0 4px 15px rgba(31, 31, 32, 0.5)) brightness(0.75) saturate(0.4);
}

.character-sprite-image.numb {
    filter: drop-shadow(0 4px 10px rgba(31, 31, 32, 0.4)) brightness(0.7) saturate(0.3) blur(0.5px);
}

/* Subtle Variations */
.character-sprite-image.sleepy {
    filter: drop-shadow(0 4px 12px rgba(191, 66, 35, 0.3)) brightness(0.9);
}

.character-sprite-image.thinking {
    filter: drop-shadow(0 4px 15px rgba(191, 66, 35, 0.4));
}

.character-sprite-image.curious {
    filter: drop-shadow(0 4px 16px rgba(191, 66, 35, 0.6)) brightness(1.05);
}

.character-sprite-image.determined {
    filter: drop-shadow(0 4px 18px rgba(191, 66, 35, 0.7)) saturate(1.2) brightness(1.08);
}

/* CSS-based Character (Fallback) */
.character-sprite {
    position: relative;
    width: 200px;
    height: 200px;
    transition: transform 0.3s ease;
    align-self: flex-end;
}

.character-sprite:active {
    transform: scale(0.95);
}

.character-face {
    position: relative;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #fff5f7 0%, #ffe4e9 100%);
    border-radius: 50% 50% 45% 45%;
    box-shadow: var(--shadow);
    border: 3px solid var(--primary-color);
}

/* Eyes */
.eyes {
    position: absolute;
    top: 35%;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 40px;
}

.eye {
    width: 30px;
    height: 35px;
    background: #2c2c2c;
    border-radius: 50% 50% 50% 50%;
    position: relative;
    overflow: hidden;
    animation: blink 4s infinite;
}

.pupil {
    width: 12px;
    height: 12px;
    background: white;
    border-radius: 50%;
    position: absolute;
    top: 8px;
    left: 9px;
    transition: all 0.2s ease;
}

@keyframes blink {
    0%, 49%, 51%, 100% {
        height: 35px;
    }
    50% {
        height: 3px;
    }
}

.eyes.happy .eye {
    border-radius: 50% 50% 50% 50% / 40% 40% 60% 60%;
    transform: rotate(-5deg);
}

.eyes.happy .left-eye {
    transform: rotate(5deg);
}

.eyes.sad .eye {
    border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
    transform: rotate(5deg);
}

.eyes.sad .left-eye {
    transform: rotate(-5deg);
}

.eyes.worried .eye {
    animation: lookAround 2s infinite;
}

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

/* Mouth */
.mouth {
    position: absolute;
    top: 60%;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 20px;
    border: 3px solid #2c2c2c;
    border-top: none;
    border-radius: 0 0 40px 40px;
    transition: all 0.3s ease;
}

.mouth.smile {
    width: 50px;
    height: 25px;
}

.mouth.sad {
    border-top: 3px solid #2c2c2c;
    border-bottom: none;
    border-radius: 40px 40px 0 0;
    top: 65%;
}

.mouth.surprised {
    width: 25px;
    height: 25px;
    border-radius: 50%;
    border: 3px solid #2c2c2c;
    background: #2c2c2c;
}

/* Blush */
.blush {
    position: absolute;
    top: 55%;
    width: 30px;
    height: 20px;
    background: rgba(255, 182, 193, 0.6);
    border-radius: 50%;
    opacity: 0.7;
}

.left-blush {
    left: 15%;
}

.right-blush {
    right: 15%;
}

/* Dialogue Box */
.dialogue-box {
    background: #2a2a2b;
    border-radius: var(--border-radius);
    padding: 12px 16px;
    box-shadow: var(--shadow);
    margin-bottom: 10px;
    min-height: 85px;
    border: 2px solid var(--primary-color);
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

@media (max-width: 480px) {
    .dialogue-box {
        position: fixed !important;
    }
}

.dialogue-name {
    font-size: 14px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 8px;
    text-transform: none;
}

.dialogue-text {
    font-size: 16px;
    line-height: 1.5;
    color: #FFFFFF;
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(5px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Interaction Panel */
.interaction-panel {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    max-width: 480px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    padding: 12px;
    background: linear-gradient(180deg, rgba(31, 31, 32, 0.95) 0%, rgba(31, 31, 32, 0.98) 100%);
    z-index: 100;
}

.interaction-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 15px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    border: none;
    border-radius: 15px;
    color: white;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 10px rgba(255, 105, 180, 0.3);
}

.interaction-btn:active {
    transform: scale(0.95);
    box-shadow: 0 1px 5px rgba(255, 105, 180, 0.3);
}

.btn-icon {
    font-size: 24px;
}

.btn-label {
    font-size: 12px;
}

/* Stats Display */
.stats-display {
    background: rgba(42, 42, 43, 0.95);
    border-radius: 12px;
    padding: 8px;
    display: none;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    border: 2px solid var(--primary-color);
    margin-bottom: 10px;
    max-height: 180px; /* Compact height */
    overflow-y: auto; /* Allow scrolling if needed */
}

.stats-display.visible {
    display: grid;
}

.stat-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

/* Time stat spans both columns */
.stat-item:last-child {
    grid-column: 1 / -1;
    flex-direction: row;
    align-items: center;
    gap: 8px;
}

.stat-label {
    font-size: 11px;
    font-weight: 600;
    color: #FFFFFF;
    line-height: 1;
}

.stat-bar {
    width: 100%;
    height: 6px;
    background: #1F1F20;
    border-radius: 8px;
    overflow: hidden;
}

.stat-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--secondary-color) 0%, var(--primary-color) 100%);
    border-radius: 8px;
    transition: width 0.5s ease;
}

/* Custom colors for specific stats */
.stat-fill.overstimulation {
    background: linear-gradient(90deg, #ff6b9d 0%, #ff1493 100%);
}

.stat-fill.claustrophobia {
    background: linear-gradient(90deg, #4a148c 0%, #7b1fa2 100%);
}

.stat-fill.obsession {
    background: linear-gradient(90deg, #880e4f 0%, #c2185b 100%);
}

.stat-fill.corruption {
    background: linear-gradient(90deg, #1a0033 0%, #4a0080 50%, #8b00ff 100%);
}

.stat-value {
    font-size: 11px;
    color: #FFFFFF;
    line-height: 1;
}

/* Modal */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 20px;
}

.modal.active {
    display: flex;
    animation: fadeIn 0.3s ease;
}

.modal-content {
    background: #2a2a2b;
    border-radius: var(--border-radius);
    width: 100%;
    max-width: 400px;
    max-height: 80vh;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(191, 66, 35, 0.5);
    display: flex;
    flex-direction: column;
    border: 2px solid var(--primary-color);
}

.warning-modal {
    max-width: 420px;
    max-height: 90vh;
    overflow: auto;
}

.warning-body {
    text-align: center;
}

.warning-body p {
    margin-bottom: 15px;
    color: #FFFFFF;
    font-size: 15px;
    line-height: 1.6;
}

.warning-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 20px;
}

.btn-primary {
    width: 100%;
    padding: 12px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 14px;
}

.btn-primary:active {
    transform: scale(0.98);
    opacity: 0.9;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
}

.modal-header h2 {
    font-size: 18px;
    font-weight: 700;
}

.close-btn {
    background: none;
    border: none;
    color: white;
    font-size: 32px;
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background 0.2s ease;
}

.close-btn:active {
    background: rgba(255, 255, 255, 0.2);
}

.modal-body {
    padding: 20px;
    overflow-y: auto;
    flex: 1;
}

/* Settings */
.setting-item {
    margin-bottom: 20px;
}

.setting-item label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #FFFFFF;
    margin-bottom: 8px;
}

.setting-item input[type="text"] {
    width: 100%;
    padding: 12px;
    border: 2px solid var(--primary-color);
    border-radius: 10px;
    font-size: 14px;
    background: #1F1F20;
    color: #FFFFFF;
    transition: border-color 0.2s ease;
}

.setting-item input[type="text"]:focus {
    outline: none;
    border-color: var(--accent-color);
}

.setting-item input[type="checkbox"] {
    margin-right: 10px;
    width: 18px;
    height: 18px;
}

.danger-zone {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 2px solid #f0f0f0;
}

.danger-btn {
    width: 100%;
    padding: 12px;
    background: #ff4444;
    color: white;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease;
}

.danger-btn:active {
    background: #cc0000;
}

.warning-text {
    font-size: 12px;
    color: #999;
    margin-top: 8px;
    text-align: center;
}

/* Chat */
.chat-history {
    max-height: 300px;
    overflow-y: auto;
    margin-bottom: 20px;
}

.chat-message {
    margin-bottom: 15px;
    padding: 12px;
    border-radius: 12px;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-10px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.chat-message.assistant {
    background: var(--primary-color);
    margin-right: 40px;
    color: #FFFFFF;
}

.chat-message.user {
    background: #3a3a3b;
    margin-left: 40px;
    text-align: right;
    color: #FFFFFF;
}

.chat-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.chat-option {
    padding: 12px;
    background: #1F1F20;
    border: 2px solid var(--primary-color);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: left;
    font-size: 14px;
    color: #FFFFFF;
}

.chat-option:active {
    background: var(--primary-color);
    transform: scale(0.98);
}

/* Particles */
.particles-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 999;
}

.particle {
    position: absolute;
    font-size: 20px;
    animation: float 1s ease-out forwards;
    pointer-events: none;
}

@keyframes float {
    0% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
    100% {
        opacity: 0;
        transform: translateY(-100px) scale(1.5);
    }
}

/* Responsive */
@media (max-width: 480px) {
    #app {
        height: 100vh;
        max-height: 100vh;
        display: flex;
        flex-direction: column;
    }

    .status-bar {
        flex: 0 0 auto;
        height: 60px;
        padding: 8px 16px;
        font-size: 20px;
    }

    .assistant-container {
        flex: 1;
        padding: 8px;
        gap: 8px;
        display: flex;
        flex-direction: column;
        overflow: hidden;
        min-height: 0;
        padding-bottom: 220px;
    }

    .character-display {
        flex: 1;
        margin-bottom: 0;
        padding-bottom: 0;
        overflow: hidden;
        display: flex;
        align-items: flex-end;
        justify-content: center;
        max-height: calc(100dvh - 310px);
    }

    .character-sprite-image {
        width: 380px;
        height: 380px;
        object-position: bottom;
        max-width: 100%;
        max-height: 100%;
        margin-bottom: 60px;
    }

    .character-sprite {
        width: 300px;
        height: 300px;
    }

    .dialogue-box {
        position: fixed;
        bottom: 230px;
        left: 0;
        right: 0;
        max-width: 480px;
        margin: 0 auto;
        padding: 10px 12px;
        max-height: 80px;
        overflow-y: auto;
        z-index: 98;
        margin-bottom: 0px;
    }

    .dialogue-name {
        font-size: 18px;
        margin-bottom: 4px;
    }

    .dialogue-text {
        font-size: 17px;
        line-height: 1.3;
    }

    .interaction-panel {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        max-width: 480px;
        margin: 0 auto;
        gap: 8px;
        padding: 8px;
        z-index: 100;
        height: auto;
    }

    .interaction-btn {
        padding: 12px 8px;
        font-size: 20px;
        gap: 6px;
    }

    .btn-icon {
        font-size: 30px;
    }

    .btn-label {
        font-size: 20px;
    }

    .stats-display {
        position: fixed;
        bottom: 130px;
        left: 0;
        right: 0;
        max-width: 480px;
        margin: 0 auto;
        padding: 8px;
        gap: 6px;
        display: grid;
        grid-template-columns: 1fr 1fr;
        max-height: 120px;
        overflow-y: auto;
        z-index: 99;
        background: rgba(42, 42, 43, 0.95);
        border: 2px solid var(--primary-color);
        border-radius: 15px;
    }

    .stat-item {
        gap: 4px;
    }

    .stat-label {
        font-size: 13px;
        min-width: auto;
    }

    .stat-bar {
        height: 6px;
    }

    .stat-value {
        font-size: 14px;
    }
}

/* Animations for different moods */
.character-sprite.happy {
    animation: bounce 0.5s ease;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

.character-sprite.sad {
    animation: sway 2s ease-in-out infinite;
}

@keyframes sway {
    0%, 100% { transform: rotate(0deg); }
    50% { transform: rotate(-2deg); }
}

.character-sprite.anxious {
    animation: shake 0.5s ease infinite;
}

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

/* New emotion animations */
@keyframes bounceExcited {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-25px) scale(1.05); }
}

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

@keyframes wiggle {
    0%, 100% { transform: rotate(0deg); }
    25% { transform: rotate(-5deg); }
    75% { transform: rotate(5deg); }
}

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

@keyframes tremble {
    0%, 100% { transform: translate(0, 0); }
    25% { transform: translate(-2px, -1px); }
    50% { transform: translate(2px, 1px); }
    75% { transform: translate(-1px, 2px); }
}

@keyframes sob {
    0%, 100% { transform: translateY(0); }
    25% { transform: translateY(-3px); }
    50% { transform: translateY(0); }
    75% { transform: translateY(-2px); }
}

@keyframes reach {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-5px) scale(1.03); }
}

@keyframes flinch {
    0%, 90%, 100% { transform: translateX(0); }
    92%, 96% { transform: translateX(-4px); }
    94%, 98% { transform: translateX(4px); }
}

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

@keyframes tilt {
    0%, 100% { transform: rotate(0deg); }
    25% { transform: rotate(-8deg); }
    75% { transform: rotate(8deg); }
}

@keyframes hideSlightly {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(3px) scale(0.98); }
}

@keyframes pop {
    0% { transform: scale(1); }
    50% { transform: scale(1.15); }
    100% { transform: scale(1); }
}

@keyframes needyPulse {
    0%, 100% { transform: scale(1); }
    33% { transform: scale(1.03); }
    66% { transform: scale(0.98); }
}

@keyframes intense {
    0%, 100% { transform: scale(1); filter: brightness(1); }
    50% { transform: scale(1.04); filter: brightness(1.1); }
}

@keyframes hollow {
    0%, 100% { transform: scale(1); opacity: 0.9; }
    50% { transform: scale(0.98); opacity: 0.7; }
}

@keyframes drowsy {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(5px); }
}

@keyframes ponder {
    0%, 100% { transform: rotate(0deg); }
    25%, 75% { transform: rotate(-3deg); }
    50% { transform: rotate(3deg); }
}

@keyframes lean {
    0%, 100% { transform: translateX(0) rotate(0deg); }
    50% { transform: translateX(8px) rotate(3deg); }
}

@keyframes begging {
    0%, 100% { transform: translateY(0) scale(1); }
    25% { transform: translateY(-8px) scale(1.02); }
    50% { transform: translateY(0) scale(1); }
    75% { transform: translateY(-4px) scale(1.01); }
}

@keyframes beggingIntense {
    0%, 100% { transform: translateY(0) scale(1); }
    10% { transform: translateY(-10px) scale(1.03); }
    20% { transform: translateY(0) scale(1); }
    30% { transform: translateY(-8px) scale(1.02); }
    40% { transform: translateY(0) scale(1); }
}

/* Begging state animations */
.character-sprite-image.begging {
    animation: begging 2s ease-in-out infinite;
}

.character-sprite-image.begging-intense {
    animation: beggingIntense 1.5s ease-in-out infinite;
}
