/* ========================================
   MRAGANK vs. THE WORLD
   Game-Specific Styles
   ======================================== */

/* ========================================
   THEMES
   ======================================== */

.theme-battle {
    --primary-pink: #e74c3c;
    --dark-pink: #c0392b;
    --light-pink: #ffb8b8;
    border-color: #e74c3c !important;
    box-shadow: 0 0 50px rgba(231, 76, 60, 0.3) !important;
}

.theme-romance {
    --primary-pink: #ff6b9d;
    --dark-pink: #c44569;
    --light-pink: #ffb8d0;
    border-color: #ff6b9d !important;
    box-shadow: 0 0 50px rgba(255, 107, 157, 0.5) !important;
}

/* ========================================
   LOADING SCREEN
   ======================================== */

#loading-screen {
    background: var(--bg-darker);
}

.loading-content {
    text-align: center;
}

.loading-text {
    color: var(--primary-pink);
    font-size: 14px;
    margin-bottom: 20px;
    animation: pulse 1s ease-in-out infinite;
}

.loading-bar {
    width: 200px;
    height: 20px;
    border: 3px solid var(--primary-pink);
    background: var(--bg-dark);
    position: relative;
}

.loading-progress {
    height: 100%;
    background: var(--primary-pink);
    width: 0%;
    transition: width 0.3s;
}

/* ========================================
   TITLE SCREEN
   ======================================== */

#title-screen {
    background: linear-gradient(180deg, var(--bg-darker) 0%, var(--bg-dark) 50%, #2d1f3d 100%);
}

#title-chars {
    position: absolute;
    bottom: 20%;
    left: 0;
    right: 0;
    height: 300px;
    display: flex;
    justify-content: space-around;
    align-items: flex-end;
    z-index: 1;
    pointer-events: none;
    padding: 0 20px;
}

.title-char {
    width: 180px;
    height: 280px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: bottom center;
}

.title-content {
    text-align: center;
    position: relative;
    z-index: 10;
}

.game-title {
    font-size: clamp(24px, 8vw, 40px);
    color: var(--text-white);
    text-shadow:
        4px 4px 0 var(--primary-pink),
        -2px -2px 0 var(--pixel-blue);
    letter-spacing: 2px;
    animation: titleBounce 2s ease-in-out infinite;
}

.game-subtitle {
    font-size: clamp(16px, 5vw, 24px);
    color: var(--primary-pink);
    margin-top: 10px;
    text-shadow: 2px 2px 0 var(--dark-pink);
}

.hearts-decoration {
    font-size: 24px;
    color: var(--pixel-red);
    margin: 30px 0;
    animation: heartbeat 1s ease-in-out infinite;
}

.start-prompt {
    font-size: clamp(10px, 3vw, 14px);
    color: var(--pixel-yellow);
    margin-top: 40px;
}

.subtitle {
    font-size: 10px;
    color: var(--light-pink);
    margin-top: 20px;
    opacity: 0.7;
}

/* ========================================
   LOCATION SIGN (BMTC Style)
   ======================================== */
#location-sign {
    position: absolute;
    top: 20px;
    left: 20px;
    z-index: 20;
    pointer-events: none;
    transform-origin: top left;
    animation: signSwing 3s ease-in-out infinite alternate;
}

#location-sign.hidden {
    display: none;
}

.sign-pole {
    width: 6px;
    height: 60px;
    background: #555;
    margin-left: 10px;
    border-radius: 3px;
    position: absolute;
    top: -20px;
}

.sign-board {
    background: #f1c40f;
    border: 3px solid #000;
    border-radius: 8px;
    padding: 5px 10px;
    min-width: 140px;
    box-shadow: 2px 2px 0 rgba(0,0,0,0.3);
    position: relative;
    top: 10px;
}

.sign-header {
    font-size: 8px;
    color: #c0392b;
    border-bottom: 2px solid #000;
    padding-bottom: 2px;
    margin-bottom: 4px;
    font-weight: bold;
    text-align: center;
}

.sign-text {
    font-size: 10px;
    color: #000;
    text-align: center;
    font-weight: bold;
    text-transform: uppercase;
    margin-bottom: 2px;
}

.sign-kannada {
    font-size: 8px;
    color: #000;
    text-align: center;
    opacity: 0.7;
}

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

/* ========================================
   DIALOGUE SCREEN
   ======================================== */

#dialogue-screen {
    background: var(--bg-dark);
    padding: 0;
    justify-content: flex-end;
}

#scene-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

#character-container {
    position: absolute;
    bottom: 160px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-between;
    padding: 0 40px;
    z-index: 2;
    pointer-events: none;
    align-items: flex-end;
}

.character {
    width: 200px;
    height: 300px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: bottom center;
    transition: transform 0.3s, filter 0.3s;
}

.character.has-portrait {
    background-image: var(--char-portrait);
    border: none;
    box-shadow: none;
    background-color: transparent;
}

.character.speaking {
    transform: scale(1.05);
    filter: brightness(1.2);
    animation: charPop 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

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

.character.inactive {
    filter: brightness(0.5);
}

/* ========================================
   BOSS SPLASH SCREEN
   ======================================== */

#boss-splash {
    background: radial-gradient(circle at center, #2d1a3d 0%, var(--bg-darker) 100%);
}

.boss-content {
    text-align: center;
    animation: bossEnter 0.5s ease-out;
}

.boss-number {
    font-size: 14px;
    color: var(--pixel-red);
    margin-bottom: 20px;
    text-shadow: 2px 2px 0 #000;
}

.boss-sprite {
    width: 150px;
    height: 200px;
    margin: 0 auto 20px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    animation: bossFloat 2s ease-in-out infinite;
}

.boss-name {
    font-size: clamp(18px, 6vw, 28px);
    color: var(--text-white);
    text-shadow: 3px 3px 0 var(--pixel-red);
    margin-bottom: 10px;
}

.boss-title {
    font-size: 12px;
    color: var(--pixel-yellow);
    font-style: italic;
}

/* ========================================
   COMBAT SCREEN
   ======================================== */

#combat-screen {
    background: #1a1a2e;
    padding: 10px;
    justify-content: space-between;
    display: none;
    flex-direction: column;
}

#combat-screen.active {
    display: flex;
}

#combat-hud {
    width: 100%;
    display: flex;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 10px;
    z-index: 10;
}

.health-container {
    flex: 1;
}

.health-label {
    font-size: 8px;
    color: var(--text-white);
    display: block;
    margin-bottom: 5px;
}

.health-bar {
    height: 20px;
    background: var(--bg-darker);
    border: 2px solid var(--text-white);
    position: relative;
    overflow: hidden;
}

.health-fill {
    height: 100%;
    background: linear-gradient(180deg, var(--pixel-green) 0%, #27ae60 100%);
    width: 100%;
    transition: width 0.3s;
}

.health-bar.enemy .health-fill {
    background: linear-gradient(180deg, var(--pixel-red) 0%, #c0392b 100%);
}

.health-bar.damage-flash {
    animation: damageFlash 0.2s ease-out;
}

@keyframes damageFlash {
    0%, 100% { filter: brightness(1); }
    50% { filter: brightness(2); background: var(--pixel-red); }
}

/* Combat Arena */
#combat-arena {
    flex: 1;
    width: 100%;
    height: 300px;
    position: relative;
    min-height: 250px;
    max-height: 350px;
    overflow: hidden;
}

#combat-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    image-rendering: pixelated;
    image-rendering: crisp-edges;
    display: block;
    background: #1a1a2e;
}

#combo-display {
    position: absolute;
    top: 10%;
    left: 50%;
    transform: translateX(-50%);
    font-size: 14px;
    color: var(--pixel-yellow);
    text-shadow: 2px 2px 0 #000;
    opacity: 0;
    transition: opacity 0.3s;
    z-index: 20;
}

#combo-display.show {
    opacity: 1;
    animation: comboPopup 0.5s ease-out;
}

#hit-feedback {
    position: absolute;
    top: 30%;
    left: 50%;
    transform: translateX(-50%);
    font-size: 24px;
    font-weight: bold;
    opacity: 0;
    z-index: 30;
    text-shadow: 3px 3px 0 #000;
}

#hit-feedback.feedback-perfect {
    color: var(--pixel-yellow);
    animation: feedbackPop 0.5s ease-out;
}

#hit-feedback.feedback-good {
    color: var(--pixel-green);
    animation: feedbackPop 0.5s ease-out;
}

#hit-feedback.feedback-weak {
    color: #aaa;
    animation: feedbackPop 0.4s ease-out;
}

#hit-feedback.feedback-miss {
    color: var(--pixel-red);
    animation: feedbackPop 0.5s ease-out;
}

#hit-feedback.feedback-clash {
    color: var(--pixel-purple);
    animation: feedbackPop 0.5s ease-out;
}

#hit-feedback.feedback-warning {
    color: var(--pixel-red);
    font-size: 48px;
    animation: warningPulse 0.5s ease-out;
}

@keyframes warningPulse {
    0% { transform: translateX(-50%) scale(0.5); opacity: 0; }
    50% { transform: translateX(-50%) scale(1.5); opacity: 1; }
    100% { transform: translateX(-50%) scale(1); opacity: 0; }
}

/* Timing Meter */
#timing-meter-container {
    width: 100%;
    padding: 10px 20px;
    z-index: 10;
}

#timing-meter {
    width: 100%;
    height: 30px;
    background: var(--bg-darker);
    border: 3px solid var(--text-white);
    border-radius: 5px;
    position: relative;
    overflow: hidden;
}

#timing-zone {
    position: absolute;
    top: 0;
    height: 100%;
    background: rgba(249, 202, 36, 0.3);
    border-left: 2px solid var(--pixel-yellow);
    border-right: 2px solid var(--pixel-yellow);
    z-index: 1;
}

#timing-fill {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg,
        var(--pixel-red) 0%,
        var(--pixel-yellow) 40%,
        var(--pixel-green) 50%,
        var(--pixel-yellow) 60%,
        var(--pixel-red) 100%
    );
    transition: width 0.016s linear;
    z-index: 2;
}

#timing-indicator {
    position: absolute;
    top: -5px;
    right: 0;
    width: 4px;
    height: calc(100% + 10px);
    background: var(--text-white);
    box-shadow: 0 0 10px var(--text-white);
    z-index: 3;
}

.timing-labels {
    display: flex;
    justify-content: space-between;
    padding: 5px 10px;
    font-size: 8px;
    color: rgba(255, 255, 255, 0.5);
}

.timing-labels .perfect-label {
    color: var(--pixel-yellow);
}

/* Attack Button */
#attack-button-container {
    width: 100%;
    padding: 15px 20px;
    display: flex;
    justify-content: center;
    z-index: 10;
}

.attack-btn {
    font-family: 'Press Start 2P', cursive;
    font-size: 16px;
    padding: 20px 50px;
    background: linear-gradient(180deg, var(--primary-pink) 0%, var(--dark-pink) 100%);
    color: var(--text-white);
    border: 4px solid var(--text-white);
    border-radius: 10px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    box-shadow: 0 6px 0 #8b2a4a, 0 10px 20px rgba(0, 0, 0, 0.3);
    transition: transform 0.1s, box-shadow 0.1s;
    min-width: 200px;
}

.attack-btn:hover {
    transform: translateY(2px);
    box-shadow: 0 4px 0 #8b2a4a, 0 8px 15px rgba(0, 0, 0, 0.3);
}

.attack-btn:active {
    transform: translateY(6px);
    box-shadow: 0 0 0 #8b2a4a, 0 4px 10px rgba(0, 0, 0, 0.3);
}

.sword-icon {
    font-size: 28px;
    animation: swordGlow 1s ease-in-out infinite;
}

.attack-text {
    font-size: 14px;
}

@keyframes swordGlow {
    0%, 100% { text-shadow: 0 0 5px var(--pixel-yellow); }
    50% { text-shadow: 0 0 20px var(--pixel-yellow), 0 0 30px var(--primary-pink); }
}

/* Screen Flash Effect */
.screen-flash {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    animation: screenFlash 0.15s ease-out forwards;
    z-index: 100;
}

@keyframes screenFlash {
    0% { opacity: 0.8; }
    100% { opacity: 0; }
}

/* Combat Instructions */
#combat-instructions {
    position: absolute;
    bottom: 10px;
    left: 0;
    right: 0;
    text-align: center;
    z-index: 5;
}

#combat-instructions p {
    font-size: 8px;
    color: var(--light-pink);
    opacity: 0.6;
}

/* Screen shake */
.screen.shake {
    animation: screenShake 0.3s ease-out;
}

@keyframes screenShake {
    0%, 100% { transform: translate(0, 0); }
    10% { transform: translate(calc(-1 * var(--shake-intensity)), calc(var(--shake-intensity) / 2)); }
    20% { transform: translate(calc(var(--shake-intensity)), calc(-1 * var(--shake-intensity) / 2)); }
    30% { transform: translate(calc(-1 * var(--shake-intensity) / 2), calc(var(--shake-intensity))); }
    40% { transform: translate(calc(var(--shake-intensity) / 2), calc(-1 * var(--shake-intensity))); }
    50% { transform: translate(calc(-1 * var(--shake-intensity)), calc(var(--shake-intensity) / 2)); }
    60% { transform: translate(calc(var(--shake-intensity)), calc(-1 * var(--shake-intensity) / 2)); }
    70% { transform: translate(calc(-1 * var(--shake-intensity) / 2), 0); }
    80% { transform: translate(calc(var(--shake-intensity) / 2), 0); }
    90% { transform: translate(calc(-1 * var(--shake-intensity) / 4), 0); }
}

/* ========================================
   VICTORY SCREEN
   ======================================== */

#victory-screen {
    background: radial-gradient(circle at center, #2d3a1a 0%, var(--bg-darker) 100%);
}

.victory-content {
    text-align: center;
}

.victory-text {
    font-size: clamp(32px, 10vw, 48px);
    color: var(--pixel-yellow);
    text-shadow:
        4px 4px 0 var(--pixel-red),
        -2px -2px 0 #000;
    animation: victoryBounce 0.5s ease-out;
}

#coins-display {
    margin: 30px 0;
    display: flex;
    justify-content: center;
    gap: 20px;
}

.coin {
    font-size: 32px;
    color: var(--pixel-yellow);
    text-shadow: 2px 2px 0 #b8860b;
    animation: coinBounce 0.5s ease-out;
}

.coin:nth-child(2) { animation-delay: 0.1s; }
.coin:nth-child(3) { animation-delay: 0.2s; }

.victory-message {
    font-size: 14px;
    color: var(--text-white);
    margin-top: 20px;
}

/* ========================================
   PROPOSAL SCREEN
   ======================================== */

#proposal-screen {
    background: linear-gradient(180deg, #1a1a2e 0%, #2d1a3d 50%, #3d1a2d 100%);
    padding: 0;
    justify-content: flex-end;
}

#proposal-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

#proposal-content {
    position: relative;
    z-index: 10;
    width: 100%;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

#proposal-character {
    width: 150px;
    height: 200px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    margin-bottom: 20px;
}

#proposal-character.has-portrait {
    background-image: var(--char-portrait);
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

#proposal-character.has-portrait::before {
    display: none;
}

#proposal-dialogue {
    background: rgba(15, 15, 26, 0.95);
    border: 4px solid var(--primary-pink);
    padding: 20px;
    margin-bottom: 20px;
    font-size: 11px;
    color: var(--text-white);
    line-height: 1.8;
    text-align: center;
    min-height: 100px;
    width: 100%;
}

#proposal-question {
    width: 100%;
}

#proposal-question.hidden {
    display: none;
}

.question-box {
    background: linear-gradient(180deg, var(--bg-dark) 0%, var(--bg-darker) 100%);
    border: 4px solid var(--pixel-yellow);
    padding: 30px 20px;
    text-align: center;
    animation: questionAppear 0.5s ease-out;
}

.question-text {
    font-size: clamp(12px, 4vw, 16px);
    color: var(--pixel-yellow);
    margin-bottom: 30px;
    text-shadow: 2px 2px 0 #000;
}

.answer-buttons {
    display: flex;
    justify-content: center;
    gap: 30px;
}

.answer-btn {
    font-family: 'Press Start 2P', cursive;
    font-size: 14px;
    padding: 15px 30px;
    border: none;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    min-width: 100px;
}

.yes-btn {
    background: var(--pixel-green);
    color: var(--text-white);
    box-shadow: 0 4px 0 #27ae60;
}

.yes-btn:hover, .yes-btn:active {
    transform: translateY(2px);
    box-shadow: 0 2px 0 #27ae60;
}

.no-btn {
    background: var(--pixel-red);
    color: var(--text-white);
    box-shadow: 0 4px 0 #c0392b;
    position: relative;
}

.no-btn.destroyed {
    animation: buttonExplode 0.5s ease-out forwards;
}

.no-btn:hover, .no-btn:active {
    transform: translateY(2px);
    box-shadow: 0 2px 0 #c0392b;
}

/* ========================================
   SLASH OVERLAY
   ======================================== */

#slash-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
    pointer-events: none;
    display: flex;
    justify-content: center;
    align-items: center;
}

#slash-overlay.hidden {
    display: none;
}

.slash-effect {
    width: 100%;
    height: 100%;
    background: linear-gradient(
        135deg,
        transparent 45%,
        var(--pixel-yellow) 48%,
        var(--text-white) 50%,
        var(--pixel-yellow) 52%,
        transparent 55%
    );
    animation: slashAnimation 0.3s ease-out;
}

/* ========================================
   ENDING SCREEN
   ======================================== */

#ending-screen {
    background: linear-gradient(180deg, #3d1a2d 0%, #2d1a3d 50%, #1a2d3d 100%);
}

#confetti-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.ending-content {
    position: relative;
    z-index: 10;
    text-align: center;
}

.hearts-burst {
    font-size: 24px;
    margin-bottom: 20px;
}

.hearts-burst .heart {
    color: var(--pixel-red);
    display: inline-block;
    animation: heartFloat 2s ease-in-out infinite;
}

.hearts-burst .heart:nth-child(2) { animation-delay: 0.2s; }
.hearts-burst .heart:nth-child(3) { animation-delay: 0.4s; }
.hearts-burst .heart:nth-child(4) { animation-delay: 0.6s; }
.hearts-burst .heart:nth-child(5) { animation-delay: 0.8s; }

.ending-title {
    font-size: clamp(14px, 5vw, 20px);
    color: var(--text-white);
    text-shadow: 2px 2px 0 var(--primary-pink);
    margin-bottom: 10px;
}

.ending-name {
    font-size: clamp(18px, 6vw, 28px);
    color: var(--primary-pink);
    text-shadow: 2px 2px 0 var(--dark-pink);
    margin-bottom: 30px;
}

#couple-sprite {
    width: 200px;
    height: 200px;
    margin: 0 auto 30px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.ending-message {
    font-size: 12px;
    color: var(--pixel-red);
    animation: pulse 2s ease-in-out infinite;
}

/* ========================================
   GAME-SPECIFIC ANIMATIONS
   ======================================== */

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

@keyframes bossEnter {
    0% { transform: scale(2); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}

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

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

@keyframes comboPopup {
    0% { transform: translateX(-50%) scale(0.5); opacity: 0; }
    50% { transform: translateX(-50%) scale(1.2); }
    100% { transform: translateX(-50%) scale(1); opacity: 1; }
}

@keyframes feedbackPop {
    0% { transform: translateX(-50%) scale(0.5); opacity: 0; }
    50% { transform: translateX(-50%) scale(1.5); opacity: 1; }
    100% { transform: translateX(-50%) scale(1); opacity: 0; }
}

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

@keyframes coinBounce {
    0% { transform: translateY(-50px); opacity: 0; }
    60% { transform: translateY(10px); }
    100% { transform: translateY(0); opacity: 1; }
}

@keyframes questionAppear {
    0% { transform: scale(0.8); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}

@keyframes buttonExplode {
    0% { transform: scale(1); opacity: 1; }
    30% { transform: scale(1.3) rotate(10deg); }
    60% { transform: scale(0.5) rotate(-20deg); opacity: 0.5; }
    100% { transform: scale(0) rotate(45deg); opacity: 0; }
}

@keyframes slashAnimation {
    0% {
        transform: translateX(-100%) rotate(-45deg);
        opacity: 0;
    }
    50% { opacity: 1; }
    100% {
        transform: translateX(100%) rotate(-45deg);
        opacity: 0;
    }
}

@keyframes heartFloat {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    25% { transform: translateY(-10px) rotate(-5deg); }
    75% { transform: translateY(-10px) rotate(5deg); }
}

/* ========================================
   PIXEL ART SPRITES (CSS-based fallbacks)
   ======================================== */

.character.has-portrait {
    background-image: var(--char-portrait);
    background-size: contain;
    background-repeat: no-repeat;
    background-position: bottom center;
}

.character.has-portrait::before {
    display: none;
}

.character::before {
    display: none;
}

/* Specific Character Definitions */
#left-character {
    --char-gradient: linear-gradient(180deg,
        #4a4a4a 0%,
        #4a4a4a 15%,
        #ffd5b4 15%,
        #ffd5b4 35%,
        #ff6b9d 35%,
        #ff6b9d 65%,
        #2c3e50 65%,
        #2c3e50 90%,
        #1a1a2e 90%
    );
}

#right-character {
    --char-gradient: linear-gradient(180deg,
        #2c3e50 0%,
        #2c3e50 15%,
        #ffd5b4 15%,
        #ffd5b4 35%,
        #8e44ad 35%,
        #8e44ad 65%,
        #1a1a2e 65%,
        #1a1a2e 90%,
        #0f0f1a 90%
    );
}

/* Player sprite */
#player-sprite, #proposal-character {
    background-color: transparent;
    position: relative;
}

#player-sprite::before, #proposal-character::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 120px;
    background: linear-gradient(180deg,
        #4a4a4a 0%,
        #4a4a4a 15%,
        #ffd5b4 15%,
        #ffd5b4 35%,
        #ff6b9d 35%,
        #ff6b9d 65%,
        #2c3e50 65%,
        #2c3e50 90%,
        #1a1a2e 90%
    );
    border-radius: 10px 10px 5px 5px;
    box-shadow: 2px 2px 0 rgba(0,0,0,0.3);
}

/* Enemy sprites */
#enemy-sprite {
    background-color: transparent;
    position: relative;
}

#enemy-sprite::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 120px;
    background: var(--enemy-gradient, linear-gradient(180deg,
        #2c3e50 0%,
        #2c3e50 15%,
        #ffd5b4 15%,
        #ffd5b4 35%,
        #8e44ad 35%,
        #8e44ad 65%,
        #1a1a2e 65%,
        #1a1a2e 90%,
        #0f0f1a 90%
    ));
    border-radius: 10px 10px 5px 5px;
    box-shadow: 2px 2px 0 rgba(0,0,0,0.3);
}

/* Boss sprite preview variations */
.boss-sprite {
    position: relative;
}

.boss-sprite::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 150px;
    background: var(--boss-gradient, linear-gradient(180deg,
        #2c3e50 0%,
        #2c3e50 15%,
        #ffd5b4 15%,
        #ffd5b4 35%,
        #8e44ad 35%,
        #8e44ad 65%,
        #1a1a2e 65%,
        #1a1a2e 90%,
        #0f0f1a 90%
    ));
    border-radius: 10px 10px 5px 5px;
    box-shadow: 3px 3px 0 rgba(0,0,0,0.3);
}

/* Couple sprite for ending */
#couple-sprite {
    position: relative;
}

#couple-sprite::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 30%;
    transform: translateX(-50%);
    width: 50px;
    height: 100px;
    background: linear-gradient(180deg,
        #4a4a4a 0%,
        #4a4a4a 15%,
        #ffd5b4 15%,
        #ffd5b4 35%,
        #ff6b9d 35%,
        #ff6b9d 65%,
        #2c3e50 65%,
        #2c3e50 90%,
        #1a1a2e 90%
    );
    border-radius: 8px 8px 4px 4px;
}

#couple-sprite::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 70%;
    transform: translateX(-50%);
    width: 50px;
    height: 95px;
    background: linear-gradient(180deg,
        #2c2c2c 0%,
        #2c2c2c 20%,
        #ffd5b4 20%,
        #ffd5b4 40%,
        #e74c3c 40%,
        #e74c3c 70%,
        #2c3e50 70%,
        #2c3e50 90%,
        #1a1a2e 90%
    );
    border-radius: 8px 8px 4px 4px;
}

/* Heart between couple */
#couple-sprite .heart-between {
    position: absolute;
    top: 30%;
    left: 50%;
    transform: translateX(-50%);
    font-size: 24px;
    color: var(--pixel-red);
    animation: heartbeat 1s ease-in-out infinite;
}
