/* ═══════════════════════════════════════════════════════════
   battle.css — Consolidated (2,836 lines)
   Battle screen: layout, overlays, effects, animations, needs panel, visual effects
   Generated by Scripts/consolidate-css.js
   Source files: battle-base.css, battle-overlays-selection.css,
                 battle-overlays-items-party.css, battle-overlays-stats.css,
                 battle-effects-animations.css, battle-effects-visual.css,
                 battle-effects-needs.css

   ═══ TABLE OF CONTENTS ═══════════════════════════════════
   §1  BATTLE LAYOUT         — .battleContainer, panels, character positions
   §2  ENEMY THINKING         — .enemyThinking, thought bubble, pulse
   §3  CHARACTER ANIMATIONS   — idle float, evolve glow, entry slides
   §4  DAMAGE NUMBERS         — .damage-number, float animations, variants
   §5  OVERLAY: ENEMY SELECT  — .enemySelectOverlay
   §6  OVERLAY: SKILLS        — .skillsMoveOverlay, move buttons, hover fx
   §7  OVERLAY: FIGHT MOVES   — .fightMoveOverlay, move cards, responsive
   §8  OVERLAY: ITEMS         — .itemSelectOverlay, item cards
   §9  OVERLAY: SWAP BRO      — .swapBroOverlay, bro cards
   §10 OVERLAY: PARTY SELECT  — .partySelectOverlay
   §11 STAT ALLOCATION        — .statAllocationContainer, stat rows, buttons
   §12 HP/MP COLOR STATES     — .hp-normal/.hp-critical/.hp-danger classes
   §13 BATTLE HP/MP BARS      — .battleHpBar, .battleMpBar, flash animations
   §14 FIGHT OVERLAY BARS     — .hpBarFill, .mpBarFill, shimmer, flash
   §15 SEX MOVE VIDEOS        — .sexMoveVideoOverlay, video containers
   §16 VICTORY/DEFEAT         — .victory-banner, enemy defeat, level-up banner
   §17 SCREEN SHAKE           — shake-light/medium/heavy keyframes
   §18 BATTLE MESSAGES        — .battle-message, fadeInOut
   §19 HIT FLASH              — .hit-flash, critical-flash
   §20 ELEMENTAL PARTICLES    — particle-water/fire/ice/etc. (12 elements)
   §21 NEEDS PANEL            — .needsPanel, need rows, bars
   ═══════════════════════════════════════════════════════════ */

/* ─── Source: battle-base.css ───────────────────────────────── */

/* Bro Rogue - Battle: Layout, Bars & Core */

/* Split from battle.css */

/* Contains: container grid, panels, character positions, HP/MP bars, damage numbers */

/* BATTLE SCREEN */
.battleContainer {
    width: 100%;
    height: 100%;
    display: grid;
    grid-template-columns: auto 1fr auto;
    grid-template-rows: 1fr;
    grid-template-areas: 'left center right';
    padding: 0.5rem;
    gap: 0.5rem;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-color: #2a2a2a;
    overflow: hidden;
    position: relative;
}

/* Left Panel: Player Info + Stage Info + Battle Menu */
.battleLeftPanel {
    grid-area: left;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    align-items: flex-start;
    min-width: 180px;
    max-width: 240px;
}

/* Player Info Card */
.playerInfoCard {
    background-color: rgb(0 0 0 / 70%);
    border-radius: 6px;
    border: 1px solid #6b9fff;
    border-left: 3px solid #6b9fff;
    padding: 0.4rem 0.6rem;
    z-index: 10;
    width: 100%;
    box-shadow: inset 0 1px 0 rgb(255 255 255 / 6%);
}

.playerInfoCard .playerInfoLine {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    padding: 0;
    background: none;
    border: none;
}

/* Stage Info Card */
.stageInfoCard {
    background-color: rgb(0 0 0 / 70%);
    border-radius: 6px;
    border: 1px solid var(--secondary-color);
    border-left: 3px solid var(--secondary-color);
    padding: 0.4rem 0.7rem;
    z-index: 10;
    color: #eee;
    font-size: 0.8rem;
    font-weight: bold;
    text-shadow: 1px 1px 2px rgb(0 0 0 / 80%);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
    width: 100%;
    box-shadow: inset 0 1px 0 rgb(255 255 255 / 6%);
}

/* Battle Menu - vertical column on the left */
.battleMenu {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    padding: 0.4rem;
    background-color: rgb(0 0 0 / 50%);
    border-radius: 8px;
    width: 100%;
}

.battleMenuBtn {
    padding: 0.3rem 0.5rem;
    font-size: 0.7rem;
    white-space: nowrap;
    text-align: left;
    width: 100%;
    background: linear-gradient(135deg, var(--primary-color), #d94444);
    box-shadow:
        0 1px 4px rgb(0 0 0 / 25%),
        inset 0 1px 0 rgb(255 255 255 / 12%);
    border: none;
    border-radius: 6px;
    transition: all 0.15s ease;
}

.battleMenuBtn:hover {
    background: linear-gradient(135deg, var(--secondary-color), #37a89f);
    transform: translateY(-1px);
    box-shadow:
        0 3px 10px rgb(0 0 0 / 35%),
        inset 0 1px 0 rgb(255 255 255 / 20%);
}

.battleMenuBtn:active {
    transform: translateY(1px) scale(0.97);
    box-shadow:
        0 1px 3px rgb(0 0 0 / 30%),
        inset 0 3px 6px rgb(0 0 0 / 30%);
    transition: all 0.05s ease;
}

.battleField {
    grid-area: center;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8rem;
    padding: 0.5rem;
    min-height: 0;
    position: relative;
    overflow: visible;
}

/* Right Panel: Enemy Info + Music Controls */
.battleRightPanel {
    grid-area: right;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    align-items: flex-end;
    min-width: 200px;
    max-width: 280px;
}

/* Music Info Box */
.musicInfoBox {
    background-color: rgb(0 0 0 / 70%);
    border-radius: 8px;
    border: 1px solid #6b9fff;
    border-left: 3px solid #6b9fff;
    padding: 0.5rem 0.7rem;
    z-index: 10;
    width: 100%;
    box-shadow: inset 0 1px 0 rgb(255 255 255 / 6%);
}

.musicInfoHeader {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    margin-bottom: 0.3rem;
}

.musicIcon {
    font-size: 0.85rem;
    animation: musicPulse 1.5s ease-in-out infinite;
}

@keyframes musicPulse {
    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.6;
        transform: scale(1.1);
    }
}

.musicLabel {
    font-size: 0.6rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #888;
    font-weight: bold;
}

.musicTrackName {
    font-size: 0.75rem;
    color: #fff;
    font-weight: bold;
    margin-bottom: 0.4rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.musicControls {
    display: flex;
    gap: 0.3rem;
    justify-content: center;
}

.musicBtn {
    background: linear-gradient(135deg, rgb(255 255 255 / 12%), rgb(255 255 255 / 5%));
    border: 1px solid rgb(255 255 255 / 20%);
    color: #fff;
    font-size: 0.9rem;
    width: 32px;
    height: 28px;
    border-radius: 5px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s ease;
    padding: 0;
    box-shadow:
        0 1px 3px rgb(0 0 0 / 20%),
        inset 0 1px 0 rgb(255 255 255 / 10%);
}

.musicBtn:hover {
    background: linear-gradient(135deg, rgb(255 255 255 / 28%), rgb(255 255 255 / 12%));
    border-color: var(--primary-color);
    transform: scale(1.12);
    box-shadow:
        0 3px 8px rgb(0 0 0 / 30%),
        inset 0 1px 0 rgb(255 255 255 / 18%);
}

.musicBtn:active {
    transform: scale(0.93);
    box-shadow:
        0 1px 2px rgb(0 0 0 / 25%),
        inset 0 2px 4px rgb(0 0 0 / 30%);
    transition: all 0.05s ease;
}

.musicBtn.paused {
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.nextBtn:hover {
    background: rgb(78 205 196 / 30%);
    border-color: var(--secondary-color);
}

.prevBtn:hover {
    background: rgb(78 205 196 / 30%);
    border-color: var(--secondary-color);
}

.playPauseBtn:hover {
    background: rgb(255 107 107 / 30%);
    border-color: var(--primary-color);
}

.enemyInfo {
    color: #ff6b6b;
    font-weight: bold;
    font-size: 0.9rem;
}

.enemyInfoCard {
    background-color: rgb(0 0 0 / 70%);
    border-radius: 6px;
    border: 1px solid #ff6b6b;
    border-left: 3px solid #ff6b6b;
    padding: 0.4rem 0.6rem;
    z-index: 10;
    width: 100%;
    box-shadow: inset 0 1px 0 rgb(255 255 255 / 6%);
}

.enemyInfoCard .enemyInfoLine {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    padding: 0;
    background: none;
    border: none;
}

.characterPosition {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 2;
    min-height: 0;
}

/* Battle entry slide-in (applied to the wrapper via JS) */
@keyframes battleEntrySlideLeft {
    0% {
        transform: translateX(-160%);
        opacity: 0;
    }

    60% {
        opacity: 1;
    }

    100% {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes battleEntrySlideRight {
    0% {
        transform: translateX(160%);
        opacity: 0;
    }

    60% {
        opacity: 1;
    }

    100% {
        transform: translateX(0);
        opacity: 1;
    }
}

.characterPosition.playerCharacter.entering {
    animation: battleEntrySlideLeft 0.75s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.characterPosition.enemyCharacter.entering {
    animation: battleEntrySlideRight 0.75s cubic-bezier(0.34, 1.56, 0.64, 1) 0.15s forwards;
}

/* ── Enemy Thinking Indicator ───────────────────────────── */

.enemyThinking {
    position: absolute;
    top: -60px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    pointer-events: none;
    z-index: 100;
    opacity: 0;
    transition: opacity 0.25s ease;
}

.enemyThinking.visible {
    opacity: 1;
}

.thoughtBubble {
    font-size: 2rem;
    animation: thoughtBounce 0.6s ease-in-out infinite alternate;
    filter: drop-shadow(0 2px 6px rgb(255 200 100 / 50%));
    line-height: 1;
}

@keyframes thoughtBounce {
    0% {
        transform: translateY(0) scale(1);
    }

    100% {
        transform: translateY(-6px) scale(1.12);
    }
}

.thinkingText {
    font-size: 0.75rem;
    color: #ffd700;
    font-weight: bold;
    text-shadow:
        0 0 8px rgb(255 215 0 / 40%),
        1px 1px 3px rgb(0 0 0 / 80%);
    white-space: nowrap;
    letter-spacing: 0.5px;
}

/* Animated dots that cycle */
.thinkingText .dots {
    display: inline-block;
    min-width: 1.2em;
    text-align: left;
}

/* Enemy pulsing glow during thinking */
.enemyCharacter.thinking {
    filter: drop-shadow(0 0 12px rgb(255 200 100 / 40%));
    transition: filter 0.15s ease;
}

.enemyCharacter.thinking img {
    animation: enemyThinkPulse 0.8s ease-in-out infinite alternate;
}

@keyframes enemyThinkPulse {
    0% {
        transform: translateY(0) scale(1);
        filter: brightness(1);
    }

    100% {
        transform: translateY(-4px) scale(1.02);
        filter: brightness(1.12);
    }
}

/* Idle floating animation for character images in battle */
@keyframes battleIdleFloat {
    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-7px);
    }
}

/* Character image sizing: native-size images stay at native resolution;
   capped-size images are gently capped. Hover zooms toward native
   resolution (max 2x) with a smooth spring animation. */
.characterPosition img {
    width: auto;
    height: auto;
    object-fit: contain;
    transform-origin: bottom center;
    transition:
        transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1),
        filter 0.3s ease,
        max-width 0.35s ease,
        max-height 0.35s ease;
    will-change: transform;
}

/* Small images: display at native size, capped only by viewport */
.characterPosition img.img-native {
    max-width: 85vw;
    max-height: 85vh;
}

/* Large images: capped at rest so they don't dominate the screen */
.characterPosition img.img-capped {
    max-width: min(600px, 42vw);
    max-height: min(700px, 68vh);
}

/* Hover: zoom toward native resolution (scale set via --hover-scale inline) */
.characterPosition:hover img.img-capped,
.characterPosition:hover img.img-native {
    animation: none;
    transform: scale(var(--hover-scale, 1.05));
    filter: drop-shadow(0 12px 24px rgb(0 0 0 / 45%));
}

/* Allow zoomed images to peek above their containers during hover */
.characterPosition {
    overflow: visible;
}

.playerCharacter img {
    animation: battleIdleFloat 3.4s ease-in-out infinite;
}

.enemyCharacter img {
    animation: battleIdleFloat 2.8s ease-in-out infinite;
}

.characterPosition img.evolving {
    animation: evolveGlow 1.5s ease-in-out;
    transition: box-shadow 0.3s ease;
}

@keyframes evolveGlow {
    0% {
        box-shadow: 0 0 0 rgb(255 215 0 / 0%);
        filter: brightness(1);
        transform: scale(1);
    }

    20% {
        box-shadow:
            0 0 60px rgb(255 215 0 / 80%),
            0 0 120px rgb(255 180 0 / 40%);
        filter: brightness(1.8);
        transform: scale(1.08);
    }

    40% {
        box-shadow: 0 0 30px rgb(255 215 0 / 40%);
        filter: brightness(1.2);
        transform: scale(1.02);
    }

    60% {
        box-shadow:
            0 0 80px rgb(255 215 0 / 90%),
            0 0 150px rgb(255 180 0 / 50%);
        filter: brightness(2);
        transform: scale(1.12);
    }

    80% {
        box-shadow: 0 0 40px rgb(255 215 0 / 50%);
        filter: brightness(1.3);
        transform: scale(1.03);
    }

    100% {
        box-shadow: 0 0 0 rgb(255 215 0 / 0%);
        filter: brightness(1);
        transform: scale(1);
    }
}

.playerCharacter {
    order: 1;
    position: relative;
}

.enemyCharacter {
    order: 2;
    position: relative;
    z-index: 5;
}

.playerInfo {
    color: #6b9fff;
    font-weight: bold;
}

.expBarContainer {
    display: flex;
    align-items: center;
    width: 100%;
}

.expBarThin {
    height: 4px;
    background: linear-gradient(90deg, #4caf50, #8bc34a);
    border-radius: 2px;
    transition: width 0.3s ease;
    width: 100%;
}

.expPercent {
    color: #8bc34a;
    font-size: 0.8rem;
    font-weight: bold;
}

/* ── Fight Overlay Bars (moved to battle-overlays-stats.css) ── */

/* DAMAGE NUMBERS */
@keyframes damageFloat {
    0% {
        transform: translateX(-50%) translateY(0) scale(0.5);
        opacity: 0;
    }

    20% {
        transform: translateX(-50%) translateY(-10px) scale(1.2);
        opacity: 1;
    }

    100% {
        transform: translateX(-50%) translateY(-60px) scale(1);
        opacity: 0;
    }
}

.damage-number {
    position: absolute;
    color: var(--damage-color, #f44);
    font-weight: bold;
    font-size: var(--damage-size, 24px);
    text-shadow: 2px 2px 4px rgb(0 0 0 / 80%);
    animation: damageFloat 1.5s ease-out forwards;
    pointer-events: none;
    z-index: 1000;
    transform: translateX(-50%);
}

.damage-number.healing {
    --damage-color: #4f4;
}

.damage-number.critical {
    --damage-color: #fa0;
    --damage-size: 32px;
}

.damage-number.super-effective {
    --damage-color: #f0f;
    --damage-size: 36px;

    animation: damageFloatSuper 1.5s ease-out forwards;
}

.damage-number.miss {
    --damage-color: #888;
    --damage-size: 18px;
}

@keyframes damageFloatSuper {
    0% {
        transform: translateX(-50%) translateY(0) scale(0.5);
        opacity: 0;
    }

    10% {
        transform: translateX(-50%) translateY(-10px) scale(1.5);
        opacity: 1;
    }

    100% {
        transform: translateX(-50%) translateY(-80px) scale(1);
        opacity: 0;
    }
}

/* ENEMY SELECTION OVERLAY */

/* ─── Source: battle-overlays-selection.css ───────────────────────────────── */

/* Bro Rogue - Battle: Selection Overlays */

/* Split from battle-overlays-actions.css */

/* Contains: Enemy Select (1) + Skills Move (2) + Fight Move (3) overlays */

/* ── ENEMY SELECT OVERLAY ────────────────────────────────── */
.enemySelectOverlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgb(0 0 0 / 80%);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.enemySelectOverlay.active {
    display: flex;
}

.enemySelectContainer {
    background-color: var(--background-color);
    border: 2px solid var(--primary-color);
    border-radius: 10px;
    padding: 20px;
    max-width: 500px;
    position: relative;
}

.enemySelectHeader {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 10px;
}

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

.enemySelectButton {
    background: linear-gradient(135deg, var(--secondary-color), #3dbdb5);
    color: var(--text-color);
    border: none;
    padding: 15px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.15s ease;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow:
        0 2px 6px rgb(0 0 0 / 25%),
        inset 0 1px 0 rgb(255 255 255 / 15%);
}

.enemySelectButton:hover {
    background: linear-gradient(135deg, var(--primary-color), #d94444);
    transform: translateY(-2px);
    box-shadow:
        0 4px 12px rgb(0 0 0 / 35%),
        inset 0 1px 0 rgb(255 255 255 / 20%);
}

.enemySelectButton:active {
    transform: translateY(1px) scale(0.98);
    box-shadow:
        0 1px 3px rgb(0 0 0 / 30%),
        inset 0 3px 6px rgb(0 0 0 / 30%);
    transition: all 0.05s ease;
}

.enemySelectInfo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.enemySprite {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

.enemyDetails {
    text-align: left;
}

.enemyName {
    font-weight: bold;
    font-size: 1.1em;
}

.enemyHp {
    font-size: 0.9em;
    opacity: 0.8;
}

/* ── SKILLS MOVE SELECTION OVERLAY ───────────────────────── */
.skillsMoveOverlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgb(0 0 0 / 80%);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.skillsMoveOverlay.active {
    display: flex;
}

.skillsMoveContainer {
    background-color: var(--background-color);
    border: 2px solid var(--primary-color);
    border-radius: 10px;
    padding: 20px;
    max-width: 800px;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
}

.skillsMoveHeader {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 10px;
}

.skillsMovesList {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

/* Skills move buttons */
.skillsMoveOverlay .moveButton {
    background-color: #2a2a2a;
    color: var(--text-color);
    border: 1px solid #444;
    border-left: 3px solid var(--secondary-color);
    padding: 12px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.25s ease;
    text-align: left;
    min-height: 100px;
    display: flex;
    flex-direction: column;
    position: relative;
}

/* Hover: dark card with split red/blue accent bar */
.skillsMoveOverlay .moveButton:hover:not(.disabled) {
    background: linear-gradient(135deg, #2a2a2a, #1a1a1a);
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgb(0 0 0 / 40%);
}

/* Red accent — top half of left edge (overlaps border area) */
.skillsMoveOverlay .moveButton:hover:not(.disabled)::before {
    content: '';
    position: absolute;
    left: -3px;
    top: 0;
    bottom: 50%;
    width: 3px;
    background: var(--primary-color);
    border-radius: 3px 0 0;
}

/* Blue accent — bottom half of left edge (overlaps border area) */
.skillsMoveOverlay .moveButton:hover:not(.disabled)::after {
    content: '';
    position: absolute;
    left: -3px;
    top: 50%;
    bottom: 0;
    width: 3px;
    background: #4a90d9;
    border-radius: 0 0 0 3px;
}

/* All inner text turns pure white on hover for max readability */
.skillsMoveOverlay .moveButton:hover:not(.disabled) .moveName,
.skillsMoveOverlay .moveButton:hover:not(.disabled) .moveMp,
.skillsMoveOverlay .moveButton:hover:not(.disabled) .moveDamage,
.skillsMoveOverlay .moveButton:hover:not(.disabled) .moveAccuracy,
.skillsMoveOverlay .moveButton:hover:not(.disabled) .moveEffect {
    color: #fff;
}

/* Effect description background also cleans up on hover */
.skillsMoveOverlay .moveButton:hover:not(.disabled) .moveEffect {
    background-color: rgb(255 255 255 / 8%);
    border-color: rgb(255 255 255 / 20%);
}

.skillsMoveOverlay .moveButton.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background-color: #555;
}

/* ── FIGHT MOVE OVERLAY ──────────────────────────────────── */
.fightMoveOverlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgb(0 0 0 / 80%);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.fightMoveOverlay.active {
    display: flex;
}

.fightMoveContainer {
    background-color: var(--bg-color);
    border: 2px solid var(--primary-color);
    border-radius: 10px;
    padding: 20px;
    max-width: 400px;
    width: 90%;
    max-height: 80%;
    overflow-y: auto;
}

.fightMoveHeader {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    border-bottom: 1px solid var(--primary-color);
    padding-bottom: 10px;
}

.fightMoveHeader h3 {
    margin: 0;
    color: var(--primary-color);
}

.overlayEnemyElement {
    font-size: 0.8rem;
    font-weight: bold;
    padding: 4px 10px;
    border-radius: 6px;
    background: rgb(0 0 0 / 40%);
    border: 1px solid rgb(255 255 255 / 10%);
    white-space: nowrap;
}

.closeOverlayBtn {
    background: none;
    border: none;
    color: var(--text-color);
    font-size: 24px;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.closeOverlayBtn:hover {
    color: var(--primary-color);
}

.fightMoveOverlay .fightMovesList {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.fightMoveOverlay .moveButton {
    background-color: var(--secondary-color);
    color: var(--text-color);
    border: none;
    padding: 12px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s;
    text-align: left;
    min-height: 100px;
    display: flex;
    flex-direction: column;
    position: relative;
}

.fightMoveOverlay .moveButton:hover:not(.disabled) {
    background-color: var(--primary-color);
    transform: scale(1.02);
    box-shadow: 0 4px 8px rgb(0 0 0 / 30%);
}

.fightMoveOverlay .moveButton.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background-color: #555;
}

/* ── Super-Effective Move Highlight ─────────────────────── */
.super-effective-highlight {
    border: 2px solid #ff00ff !important;
    box-shadow:
        0 0 12px rgb(255 0 255 / 40%),
        inset 0 0 8px rgb(255 0 255 / 10%);
}

.super-effective-highlight:hover:not(.disabled) {
    box-shadow:
        0 0 20px rgb(255 0 255 / 60%),
        inset 0 0 12px rgb(255 0 255 / 15%);
    border-color: #ff44ff !important;
}

.se-badge {
    font-size: 0.7em;
    color: #ff00ff;
    font-weight: bold;
    background: rgb(255 0 255 / 15%);
    padding: 1px 5px;
    border-radius: 4px;
    margin-left: 4px;
    text-shadow: 0 0 6px rgb(255 0 255 / 50%);
}

/* ── Status Effect Badges ───────────────────────────────── */
.statusEffects {
    display: flex;
    gap: 3px;
    flex-wrap: wrap;
    margin-top: 2px;
}

.statusBadge {
    font-size: 0.65rem;
    padding: 1px 4px;
    border-radius: 3px;
    font-weight: bold;
    white-space: nowrap;
}

.statusBadge.paralyzed {
    background: rgb(241 196 15 / 25%);
    color: #f1c40f;
    border: 1px solid rgb(241 196 15 / 40%);
}

.statusBadge.infatuated {
    background: rgb(255 105 180 / 25%);
    color: #ff69b4;
    border: 1px solid rgb(255 105 180 / 40%);
}

.statusBadge.poison {
    background: rgb(142 68 173 / 25%);
    color: #a29bfe;
    border: 1px solid rgb(142 68 173 / 40%);
}

.statusBadge.defense-lowered {
    background: rgb(52 152 219 / 25%);
    color: #3498db;
    border: 1px solid rgb(52 152 219 / 40%);
}

/* Move content structure */
.moveContent {
    display: flex;
    flex-direction: column;
    gap: 4px;
    width: 100%;
}

.moveHeader {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 4px;
}

.moveName {
    font-size: 1.1em;
    font-weight: bold;
    color: #fff;
}

.moveType {
    font-size: 0.8em;
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: normal;
}

.moveType.physical {
    background-color: #ff6b6b;
    color: white;
}

.moveType.special {
    background-color: #4ecdc4;
    color: white;
}

.moveStats {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85em;
    opacity: 0.9;
}

.moveMp {
    color: #87ceeb;
    font-weight: bold;
}

.moveDamage {
    color: #ffd700;
    font-weight: bold;
}

.moveAccuracy {
    color: #98fb98;
}

.moveEffect {
    margin-top: 4px;
    font-size: 0.8em;
    color: #ffa500;
    font-style: italic;
    text-align: center;
    padding: 2px 4px;
    background-color: rgb(255 165 0 / 10%);
    border-radius: 3px;
    border: 1px solid rgb(255 165 0 / 30%);
}

/* Responsive adjustments for smaller screens */
@media (width <= 768px) {
    .fightMoveOverlay .fightMovesList {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .fightMoveOverlay .moveButton {
        min-height: 80px;
        padding: 10px;
    }

    .moveStats {
        flex-wrap: wrap;
        gap: 4px;
    }

    .moveStats span {
        flex: 1;
        text-align: center;
    }
}

/* ─── Source: battle-overlays-items-party.css ───────────────────────────────── */

/* Bro Rogue - Battle: Item & Party Overlays */

/* Split from battle-overlays-actions.css */

/* Contains: Item Selection (4) + Swap Bro (5) + Party Selection (6) overlays */

/* ── ITEM SELECTION OVERLAY ──────────────────────────────── */
.itemSelectOverlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgb(0 0 0 / 80%);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.itemSelectOverlay.active {
    display: flex;
}

.itemSelectContainer {
    background-color: var(--bg-color);
    border: 2px solid var(--primary-color);
    border-radius: 10px;
    padding: 20px;
    max-width: 400px;
    width: 90%;
    max-height: 70vh;
    overflow-y: auto;
}

.itemSelectHeader {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.itemSelectList {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.itemSelectList .itemCard {
    background: linear-gradient(135deg, var(--secondary-color), #3dbdb5);
    color: var(--text-color);
    border: none;
    padding: 10px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.15s ease;
    text-align: center;
    font-size: 14px;
    box-shadow:
        0 1px 4px rgb(0 0 0 / 20%),
        inset 0 1px 0 rgb(255 255 255 / 12%);
}

.itemSelectList .itemCard:hover {
    background: linear-gradient(135deg, var(--primary-color), #d94444);
    transform: translateY(-2px);
    box-shadow:
        0 4px 12px rgb(0 0 0 / 35%),
        inset 0 1px 0 rgb(255 255 255 / 18%);
}

.itemSelectList .itemCard:active {
    transform: translateY(1px) scale(0.97);
    box-shadow:
        0 1px 3px rgb(0 0 0 / 25%),
        inset 0 3px 6px rgb(0 0 0 / 30%);
    transition: all 0.05s ease;
}

.itemSelectList .itemCard img {
    width: 40px;
    height: 40px;
    margin-bottom: 5px;
}

/* ── SWAP BRO OVERLAY ────────────────────────────────────── */
.swapBroOverlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgb(0 0 0 / 80%);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.swapBroOverlay.active {
    display: flex;
}

.swapBroContainer {
    background-color: var(--background-color);
    border: 2px solid var(--primary-color);
    border-radius: 10px;
    padding: 20px;
    max-width: 700px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
}

.swapBroHeader {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 10px;
}

.swapBroHeader h3 {
    margin: 0;
    color: var(--primary-color);
    font-size: 1.5rem;
}

.swapBroList {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 12px;
}

.swapBroCard {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 12px;
    background-color: rgb(255 255 255 / 8%);
    border: 2px solid transparent;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
}

.swapBroCard:hover {
    background-color: rgb(255 255 255 / 15%);
    border-color: var(--primary-color);
    transform: scale(1.03);
}

.swapBroCard img {
    width: 120px;
    height: 120px;
    object-fit: contain;
    margin-bottom: 8px;
    border-radius: 6px;
}

.swapBroCard .swapBroName {
    font-weight: bold;
    font-size: 0.95rem;
    color: var(--primary-color);
    margin-bottom: 2px;
}

.swapBroCard .swapBroStats {
    font-size: 0.8rem;
    color: #aaa;
    text-align: center;
}

/* ── PARTY SELECTION OVERLAY ─────────────────────────────── */
.partySelectOverlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgb(0 0 0 / 80%);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1001;
}

.partySelectOverlay.active {
    display: flex;
}

.partySelectContainer {
    background-color: var(--bg-color);
    border: 2px solid var(--primary-color);
    border-radius: 10px;
    padding: 20px;
    max-width: 500px;
    width: 90%;
    max-height: 70vh;
    overflow-y: auto;
}

.partySelectHeader {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.partySelectList {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
}

.partySelectList .partyMemberCard {
    background: linear-gradient(135deg, var(--secondary-color), #3dbdb5);
    color: var(--text-color);
    border: none;
    padding: 15px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.15s ease;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow:
        0 1px 4px rgb(0 0 0 / 20%),
        inset 0 1px 0 rgb(255 255 255 / 12%);
}

.partySelectList .partyMemberCard:hover {
    background: linear-gradient(135deg, var(--primary-color), #d94444);
    transform: translateY(-1px);
    box-shadow:
        0 4px 12px rgb(0 0 0 / 35%),
        inset 0 1px 0 rgb(255 255 255 / 18%);
}

.partySelectList .partyMemberCard:active {
    transform: translateY(1px) scale(0.98);
    box-shadow:
        0 1px 3px rgb(0 0 0 / 25%),
        inset 0 3px 6px rgb(0 0 0 / 30%);
    transition: all 0.05s ease;
}

.partySelectList .partyMemberCard img {
    width: 50px;
    height: 50px;
}

.partySelectList .partyMemberCard .memberInfo {
    flex: 1;
    text-align: left;
}

.partySelectList .partyMemberCard .memberHp {
    font-size: 12px;
    color: var(--success-color);
}

/* ─── Source: battle-overlays-stats.css ───────────────────────────────── */

/* Bro Rogue - Battle: Stats & Bars Overlays */

/* Split from battle-overlays-actions.css */

/* Contains: Stat Allocation screen (7) + HP/MP Color States (8) + HP/MP Bar styles (9) + Sex Move Video Overlay (10) */

/* ── STAT ALLOCATION SCREEN ──────────────────────────────── */
.statAllocationContainer {
    background: linear-gradient(135deg, #2a2a2a 0%, #1a1a1a 100%);
    border-radius: 15px;
    padding: 30px;
    width: 600px;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 10px 30px rgb(0 0 0 / 50%);
    border: 2px solid var(--primary-color);
}

.statAllocationContainer h2 {
    text-align: center;
    margin-bottom: 20px;
    color: var(--primary-color);
    font-size: 28px;
    text-shadow: 2px 2px 4px rgb(0 0 0 / 50%);
}

.statAllocationCharacter {
    text-align: center;
    margin-bottom: 25px;
    padding: 15px;
    background: rgb(255 255 255 / 10%);
    border-radius: 10px;
    border: 1px solid rgb(255 255 255 / 20%);
}

.statCharName {
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 5px;
    color: var(--secondary-color);
}

.statCharLevel {
    font-size: 14px;
    color: #b0b0b0;
    margin-bottom: 5px;
}

.playerStatPoints {
    font-size: 14px;
    color: #ffeb3b;
    margin-bottom: 5px;
    font-weight: bold;
}

.playerStatPoints span {
    color: #51cf66;
}

.availablePoints {
    font-size: 18px;
    font-weight: bold;
    color: var(--success-color);
}

.availablePoints span {
    color: #ffeb3b;
    font-size: 22px;
}

.statAllocationGrid {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 25px;
}

.statRow {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 15px;
    background: rgb(255 255 255 / 5%);
    border-radius: 8px;
    border: 1px solid rgb(255 255 255 / 10%);
    transition: all 0.3s ease;
}

.statRow:hover {
    background: rgb(255 255 255 / 10%);
    transform: translateY(-2px);
}

.statName {
    width: 120px;
    font-weight: bold;
    color: var(--text-color);
    font-size: 14px;
}

.statControls {
    display: flex;
    align-items: center;
    gap: 15px;
}

.statBtn {
    width: 35px;
    height: 35px;
    border: none;
    border-radius: 50%;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.statPlus {
    background: var(--success-color);
    color: white;
}

.statPlus:hover:not(:disabled) {
    background: #40c057;
    transform: scale(1.1);
}

.statMinus {
    background: var(--danger-color);
    color: white;
}

.statMinus:hover:not(:disabled) {
    background: #ff6b6b;
    transform: scale(1.1);
}

.statBtn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: scale(1);
}

.statValue {
    min-width: 60px;
    text-align: center;
    font-size: 16px;
    font-weight: bold;
    color: var(--text-color);
    background: rgb(0 0 0 / 30%);
    padding: 5px 10px;
    border-radius: 5px;
}

.statChange {
    min-width: 40px;
    text-align: center;
    font-weight: bold;
    font-size: 14px;
    color: var(--success-color);
}

.statAllocationButtons {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.statAllocationBtn {
    padding: 12px 30px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

#confirmStatAllocation {
    background: var(--success-color);
    color: white;
}

#confirmStatAllocation:hover:not(:disabled) {
    background: #40c057;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgb(81 207 102 / 30%);
}

#resetStatAllocation {
    background: var(--secondary-color);
    color: white;
}

#resetStatAllocation:hover {
    background: #45b7b0;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgb(78 205 196 / 30%);
}

.statAllocationBtn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

/* ── HP/MP COLOR STATES ──────────────────────────────────── */
.hp-normal,
.mp-normal {
    color: #fff;
    font-weight: normal;
}

.hp-critical,
.mp-critical {
    color: #ff0;
    font-weight: bold;
    animation: hpMpCriticalPulse 1.2s ease-in-out infinite;
}

@keyframes hpMpCriticalPulse {
    0%,
    100% {
        opacity: 1;
        text-shadow: 0 0 4px rgb(255 255 0 / 30%);
    }

    50% {
        opacity: 0.85;
        text-shadow: 0 0 12px rgb(255 255 0 / 60%);
    }
}

.hp-danger,
.mp-danger {
    color: #f44;
    font-weight: bold;
    animation: hpMpDangerPulse 0.8s ease-in-out infinite;
}

@keyframes hpMpDangerPulse {
    0%,
    100% {
        opacity: 1;
        text-shadow: 0 0 6px rgb(255 68 68 / 40%);
        transform: scale(1);
    }

    50% {
        opacity: 0.8;
        text-shadow: 0 0 18px rgb(255 68 68 / 80%);
        transform: scale(1.05);
    }
}

/* ── BATTLE SCREEN HP/MP BAR STYLES ──────────────────────── */
.playerHpBarContainer,
.playerMpBarContainer,
.enemyHpBarContainer,
.enemyMpBarContainer {
    width: 100%;
    height: 6px;
    background-color: rgb(255 255 255 / 15%);
    border-radius: 3px;
    overflow: hidden;
    margin-top: 2px;
}

.battleHpBar {
    height: 100%;
    background: linear-gradient(90deg, #51cf66, #69db7c);
    border-radius: 3px;
    transition: width 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
}

/* Enemy HP bar uses red to visually distinguish from player green */
#battleEnemyHpBar {
    background: linear-gradient(90deg, #e74c3c, #ff6b6b);
}

.battleHpBar.low {
    background: linear-gradient(90deg, #e74c3c, #ff6b6b);
    animation: battleHpLowPulse 0.9s ease-in-out infinite;
}

@keyframes battleHpLowPulse {
    0%,
    100% {
        opacity: 1;
        box-shadow: 0 0 4px rgb(255 68 68 / 30%);
    }

    50% {
        opacity: 0.7;
        box-shadow: 0 0 12px rgb(255 68 68 / 70%);
    }
}

.battleHpBar.damage-flash {
    animation: battleHpDamageFlash 0.4s ease-out;
}

@keyframes battleHpDamageFlash {
    0% {
        filter: brightness(2.5);
        background: #fff;
    }

    25% {
        filter: brightness(1.8);
        background: #faa;
    }

    100% {
        filter: brightness(1);
    }
}

.battleHpBar.heal-flash {
    animation: battleHpHealFlash 0.45s ease-out;
}

/* Killing-blow flash: bright pulse when enemy HP hits 0,
   drawing the player's eye before the bar drains to zero. */
.battleHpBar.killing-blow {
    animation: hpKillingBlowFlash 0.4s ease-out;
}

@keyframes hpKillingBlowFlash {
    0% {
        filter: brightness(3);
        background: #fff;
        box-shadow:
            0 0 20px rgb(255 0 0 / 90%),
            0 0 40px rgb(255 0 0 / 40%);
    }

    30% {
        filter: brightness(1.8);
        background: #f44;
        box-shadow: 0 0 12px rgb(255 0 0 / 60%);
    }

    100% {
        filter: brightness(1);
        box-shadow: none;
    }
}

@keyframes battleHpHealFlash {
    0% {
        filter: brightness(2);
        background: #afa;
    }

    50% {
        filter: brightness(1.5);
    }

    100% {
        filter: brightness(1);
    }
}

.battleMpBar {
    height: 100%;
    background: linear-gradient(90deg, #4ecdc4, #64d8d0);
    border-radius: 3px;
    transition: width 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.battleMpBar.damage-flash {
    animation: battleMpDamageFlash 0.4s ease-out;
}

@keyframes battleMpDamageFlash {
    0% {
        filter: brightness(2.5);
        background: #fff;
    }

    25% {
        filter: brightness(1.8);
        background: #acf;
    }

    100% {
        filter: brightness(1);
    }
}

.battleMpBar.heal-flash {
    animation: battleMpHealFlash 0.45s ease-out;
}

@keyframes battleMpHealFlash {
    0% {
        filter: brightness(2);
        background: #aff;
    }

    50% {
        filter: brightness(1.5);
    }

    100% {
        filter: brightness(1);
    }
}

/* ── SEX MOVE VIDEO OVERLAY ──────────────────────────────── */

/* Base styles only - animation styles are in battle-effects-animations.css */

/* ═══════════════════════════════════════════════════════════
   FIGHT OVERLAY BARS (hpBarFill / mpBarFill system)
   Used by fight-capture.html fight overlay panels.
   Consolidated from battle-base.css — kept separate from the
   battle-screen .battleHpBar / .battleMpBar system above.
   ═══════════════════════════════════════════════════════════ */

.barContainer {
    display: flex;
    align-items: center;
    margin-bottom: 0.3rem;
    gap: 0.3rem;
}

.barLabel {
    font-size: 0.7rem;
    font-weight: bold;
    color: #fff;
    min-width: 30px;
    text-align: right;
}

.barContainer .enemyHPBar,
.barContainer .playerHPBar,
.barContainer .enemyMPBar,
.barContainer .playerMPBar,
.barContainer .playerFullReleaseBar,
.barContainer .playerExpBar {
    flex: 1;
    min-width: 80px;
}

.enemyName,
.playerName {
    font-weight: bold;
    font-size: 0.8rem;
}

.enemyLevel,
.playerLevel {
    font-size: 0.65rem;
    color: #aaa;
}

.hpBarFill {
    background-color: var(--success-color);
    height: 12px;
    border-radius: 3px;
    transition: width 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    overflow: hidden;
}

.hpBarFill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent 0%, rgb(255 255 255 / 20%) 50%, transparent 100%);
    animation: hpBarShimmer 2s ease-in-out infinite;
}

@keyframes hpBarShimmer {
    0% {
        transform: translateX(-100%);
    }

    100% {
        transform: translateX(100%);
    }
}

.hpBarFill.low {
    background-color: var(--danger-color);
}

.hpBarFill.low::after {
    animation: hpBarShimmer 1s ease-in-out infinite;
}

/* Damage flash - applies briefly when HP decreases */
.hpBarFill.damage-flash {
    animation: hpDamageFlash 0.45s ease-out;
}

@keyframes hpDamageFlash {
    0% {
        filter: brightness(2);
        background-color: #fff;
    }

    30% {
        filter: brightness(1.8);
        background-color: #faa;
    }

    100% {
        filter: brightness(1);
    }
}

/* Heal flash - applies briefly when HP increases */
.hpBarFill.heal-flash {
    animation: hpHealFlash 0.5s ease-out;
}

@keyframes hpHealFlash {
    0% {
        filter: brightness(2);
        background-color: #afa;
    }

    50% {
        filter: brightness(1.5);
        background-color: #8f8;
    }

    100% {
        filter: brightness(1);
    }
}

.mpBarFill {
    background-color: var(--secondary-color);
    height: 10px;
    border-radius: 3px;
    transition: width 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    overflow: hidden;
}

.mpBarFill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent 0%, rgb(255 255 255 / 15%) 50%, transparent 100%);
    animation: mpBarShimmer 2.5s ease-in-out infinite;
}

@keyframes mpBarShimmer {
    0% {
        transform: translateX(-100%);
    }

    100% {
        transform: translateX(100%);
    }
}

.mpBarFill.low {
    background-color: var(--primary-color);
}

/* Damage flash for MP bars */
.mpBarFill.damage-flash {
    animation: mpDamageFlash 0.45s ease-out;
}

@keyframes mpDamageFlash {
    0% {
        filter: brightness(2);
        background-color: #fff;
    }

    30% {
        filter: brightness(1.8);
        background-color: #acf;
    }

    100% {
        filter: brightness(1);
    }
}

/* Heal flash for MP bars */
.mpBarFill.heal-flash {
    animation: mpHealFlash 0.5s ease-out;
}

@keyframes mpHealFlash {
    0% {
        filter: brightness(2);
        background-color: #aff;
    }

    50% {
        filter: brightness(1.5);
    }

    100% {
        filter: brightness(1);
    }
}

.fullReleaseBarFill {
    background: linear-gradient(45deg, #f0f, #f0a);
    height: 10px;
    border-radius: 3px;
    transition: width 0.3s;
    box-shadow: 0 0 10px rgb(255 0 255 / 50%);
}

.fullReleaseBarFill.full {
    background: linear-gradient(45deg, #f0f, #f0a, #fff);
    animation: fullReleasePulse 1s infinite;
}

@keyframes fullReleasePulse {
    0% {
        box-shadow: 0 0 10px rgb(255 0 255 / 50%);
    }

    50% {
        box-shadow: 0 0 20px rgb(255 0 255 / 80%);
    }

    100% {
        box-shadow: 0 0 10px rgb(255 0 255 / 50%);
    }
}

.enemyHPBar,
.playerHPBar {
    background-color: rgb(255 255 255 / 20%);
    height: 12px;
    border-radius: 3px;
    overflow: hidden;
}

.enemyMPBar,
.playerMPBar {
    background-color: rgb(255 255 255 / 20%);
    height: 10px;
    border-radius: 3px;
    overflow: hidden;
}

.playerFullReleaseBar {
    background-color: rgb(255 0 255 / 20%);
    height: 10px;
    border-radius: 3px;
    overflow: hidden;
}

.expBarFill {
    background-color: var(--secondary-color);
    height: 10px;
    border-radius: 4px;
    transition: width 0.3s;
}

.playerExpBar {
    background-color: rgb(255 255 255 / 20%);
    height: 10px;
    border-radius: 4px;
    overflow: hidden;
}

.enemyHPText,
.playerHPText {
    font-size: 0.6rem;
    text-align: right;
}

/* ─── Source: battle-effects-animations.css ───────────────────────────────── */

/* Bro Rogue - Battle: Visual Effects */

/* Split from battle.css */

/* Contains: sex video overlays, victory/defeat, shake, hit flash, particles, needs panel */

/* ╔════════════════════════════════════════════════════════════════════════════╗
   ║  SECTIONS: Sex Move Video Overlays (1) + Victory/Defeat (2)                ║
   ╚════════════════════════════════════════════════════════════════════════════╝ */

/* ── SEX MOVE VIDEO (Behind Characters) ──────────────────── */

/* The overlay sits inside .battleField, behind the character sprites.
   The video plays at its native resolution — no scaling, no cropping.
   Characters (fully opaque) render on top. The battle background is
   visible through the faint overlay around the edges of the video. */

.sexMoveVideoOverlay {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1;
    cursor: pointer;
    pointer-events: auto;
    background-color: rgb(0 0 0 / 8%);
}

.sexMoveVideoOverlay.hidden {
    display: none;
}

.sexMoveVideoContainer {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* Video at native size — no constraints */
.sexMoveVideo {
    width: auto;
    height: auto;
    max-width: none;
    max-height: none;
    border-radius: 8px;
    box-shadow: 0 0 40px rgb(0 0 0 / 25%);
    border: 1px solid rgb(255 255 255 / 8%);
}

.sexMoveVideoHint {
    margin-top: 0.75rem;
    color: rgb(255 255 255 / 35%);
    font-size: 0.8rem;
    letter-spacing: 1px;
    text-shadow: 0 1px 4px rgb(0 0 0 / 60%);
    pointer-events: none;
}

/* ── VICTORY / DEFEAT ────────────────────────────────────── */

/* ─── Source: battle-effects-visual.css ───────────────────────────────── */

/* Bro Rogue - Battle: Visual Effects (Shake, Flash, Particles)
   Split from battle-effects.css
   Sections: Screen Shake + Hit Flash + Elemental Particles */

/* ================================
   VICTORY / DEFEAT ANIMATIONS
   ================================ */

/* Victory Banner — big golden text that scales in */
.victory-banner {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 9998;
    pointer-events: none;
    text-align: center;
    display: flex;
    background: rgb(0 0 0 / 80%);
    padding: 2rem 3rem;
    border-radius: 12px;
    border: 2px solid rgb(255 215 0 / 30%);
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    animation: victoryBannerIn 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.victory-banner .victory-text {
    font-size: 5rem;
    font-weight: 900;
    color: #ffd700;
    text-shadow:
        0 0 20px rgb(255 215 0 / 60%),
        0 0 60px rgb(255 215 0 / 30%),
        0 4px 8px rgb(0 0 0 / 80%);
    letter-spacing: 8px;
    line-height: 1;
    animation: victoryTextGlow 1.5s ease-in-out infinite alternate;
}

.victory-banner .victory-sub {
    font-size: 1.4rem;
    color: rgb(255 255 255 / 80%);
    text-shadow: 0 2px 6px rgb(0 0 0 / 80%);
    letter-spacing: 3px;
    font-weight: 300;
}

@keyframes victoryBannerIn {
    0% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.3);
        filter: blur(4px);
    }

    50% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1.1);
        filter: blur(0);
    }

    100% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
        filter: blur(0);
    }
}

@keyframes victoryTextGlow {
    0% {
        text-shadow:
            0 0 20px rgb(255 215 0 / 60%),
            0 0 60px rgb(255 215 0 / 30%),
            0 4px 8px rgb(0 0 0 / 80%);
    }

    100% {
        text-shadow:
            0 0 30px rgb(255 215 0 / 80%),
            0 0 80px rgb(255 215 0 / 50%),
            0 0 120px rgb(255 215 0 / 20%),
            0 4px 8px rgb(0 0 0 / 80%);
    }
}

/* Enemy defeat animation — fade out + scale down + flash */
.enemyCharacter.defeated {
    animation: enemyDefeat 0.6s ease-out forwards;
}

@keyframes enemyDefeat {
    0% {
        opacity: 1;
        transform: scale(1);
        filter: brightness(1) saturate(1);
    }

    20% {
        opacity: 1;
        transform: scale(1.05);
        filter: brightness(1.8) saturate(0.5);
    }

    50% {
        opacity: 0.6;
        transform: scale(0.7);
        filter: brightness(0.3) saturate(0);
    }

    100% {
        opacity: 0;
        transform: scale(0.3) translateY(10px);
        filter: brightness(0) saturate(0);
    }
}

/* Battle level-up notification — shown on the battle screen before transition */
.battle-level-up {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 9998;
    pointer-events: none;
    text-align: center;
    display: flex;
    background: rgb(0 0 0 / 85%);
    padding: 2rem 3rem;
    border-radius: 12px;
    border: 2px solid rgb(255 215 0 / 30%);
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    animation: levelUpBannerIn 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.battle-level-up .level-up-text {
    font-size: 3.5rem;
    font-weight: 900;
    color: #ffd700;
    text-shadow:
        0 0 20px rgb(255 215 0 / 60%),
        0 0 60px rgb(255 215 0 / 30%),
        0 4px 8px rgb(0 0 0 / 80%);
    letter-spacing: 4px;
    line-height: 1;
}

.battle-level-up .level-up-sub {
    font-size: 1.3rem;
    color: var(--secondary-color);
    text-shadow: 0 2px 6px rgb(0 0 0 / 80%);
    font-weight: bold;
    letter-spacing: 2px;
}

.battle-level-up .stat-points-text {
    font-size: 1.1rem;
    color: #ffeb3b;
    text-shadow: 0 2px 4px rgb(0 0 0 / 80%);
    font-weight: bold;
}

@keyframes levelUpBannerIn {
    0% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.5) rotateZ(-5deg);
    }

    50% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1.08) rotateZ(1deg);
    }

    100% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1) rotateZ(0deg);
    }
}

/* ================================
   SCREEN SHAKE ANIMATIONS
   ================================ */

@keyframes screenShakeLight {
    0%,
    100% {
        transform: translate(0);
    }

    10% {
        transform: translate(-3px, 2px);
    }

    20% {
        transform: translate(3px, -1px);
    }

    30% {
        transform: translate(-2px, 3px);
    }

    40% {
        transform: translate(2px, -2px);
    }

    50% {
        transform: translate(-1px, 1px);
    }

    60% {
        transform: translate(1px, -1px);
    }

    70% {
        transform: translate(-2px, 2px);
    }

    80% {
        transform: translate(2px, -2px);
    }

    90% {
        transform: translate(-1px, 1px);
    }
}

@keyframes screenShakeMedium {
    0%,
    100% {
        transform: translate(0);
    }

    5% {
        transform: translate(-6px, 4px);
    }

    10% {
        transform: translate(6px, -3px);
    }

    15% {
        transform: translate(-5px, 5px);
    }

    20% {
        transform: translate(5px, -4px);
    }

    25% {
        transform: translate(-4px, 3px);
    }

    30% {
        transform: translate(4px, -5px);
    }

    40% {
        transform: translate(-3px, 2px);
    }

    50% {
        transform: translate(3px, -2px);
    }

    65% {
        transform: translate(-2px, 1px);
    }

    80% {
        transform: translate(2px, -1px);
    }
}

@keyframes screenShakeHeavy {
    0%,
    100% {
        transform: translate(0) rotate(0deg);
    }

    4% {
        transform: translate(-10px, 6px) rotate(-1deg);
    }

    8% {
        transform: translate(10px, -5px) rotate(1deg);
    }

    12% {
        transform: translate(-8px, 8px) rotate(-1.5deg);
    }

    16% {
        transform: translate(8px, -7px) rotate(1deg);
    }

    20% {
        transform: translate(-6px, 5px) rotate(-0.5deg);
    }

    25% {
        transform: translate(6px, -6px) rotate(0.5deg);
    }

    35% {
        transform: translate(-4px, 3px);
    }

    50% {
        transform: translate(4px, -3px);
    }

    70% {
        transform: translate(-2px, 1px);
    }
}

.battleContainer.shake-light {
    animation: screenShakeLight 0.35s ease-out;
}

.battleContainer.shake-medium {
    animation: screenShakeMedium 0.5s ease-out;
}

.battleContainer.shake-heavy {
    animation: screenShakeHeavy 0.7s ease-out;
}

/* ================================
   BATTLE MESSAGE (floating center message)
   ================================ */

.battle-message {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgb(0 0 0 / 80%);
    color: white;
    padding: 20px;
    border-radius: 10px;
    font-size: 18px;
    z-index: 5000;
    animation: fadeInOut 2s ease-in-out;
}

@keyframes fadeInOut {
    0% {
        opacity: 0;
    }

    20% {
        opacity: 1;
    }

    80% {
        opacity: 1;
    }

    100% {
        opacity: 0;
    }
}

/* ─── Source: battle-effects-needs.css ───────────────────────────────── */

/* Bro Rogue - Battle: Needs Panel
   Split from battle-effects.css */

/* ================================
   HIT FLASH OVERLAY
   ================================ */
.hit-flash {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 50;
    border-radius: inherit;
    animation: hitFlashAnim 0.35s ease-out forwards;
}

@keyframes hitFlashAnim {
    0% {
        background: rgb(255 255 255 / 65%);
        box-shadow: inset 0 0 60px rgb(255 255 255 / 50%);
    }

    30% {
        background: rgb(255 255 255 / 35%);
        box-shadow: inset 0 0 40px rgb(255 255 255 / 30%);
    }

    100% {
        background: transparent;
        box-shadow: none;
    }
}

/* Critical hit flash variant — more intense gold/white */
.hit-flash.critical-flash {
    animation: hitFlashCritical 0.45s ease-out forwards;
}

@keyframes hitFlashCritical {
    0% {
        background: rgb(255 215 0 / 70%);
        box-shadow: inset 0 0 80px rgb(255 215 0 / 60%);
    }

    25% {
        background: rgb(255 255 255 / 50%);
        box-shadow: inset 0 0 50px rgb(255 215 0 / 40%);
    }

    100% {
        background: transparent;
        box-shadow: none;
    }
}

/* ================================
   ELEMENTAL PARTICLES
   ================================ */

.elemental-particle {
    position: absolute;
    pointer-events: none;
    z-index: 60;
    border-radius: 50%;
}

/* --- Water: blue droplets arcing outward --- */
@keyframes particleWater {
    0% {
        opacity: 1;
        transform: translate(0, 0) scale(1);
    }

    100% {
        opacity: 0;
        transform: translate(var(--dx, -40px), var(--dy, -60px)) scale(0.3);
    }
}

.particle-water {
    width: 8px;
    height: 8px;
    background: radial-gradient(circle, #74b9ff, #3498db);
    border-radius: 50% 50% 50% 0;
    animation: particleWater 0.8s ease-out forwards;
}

/* --- Fire: orange/red bursts rising --- */
@keyframes particleFire {
    0% {
        opacity: 1;
        transform: translate(0, 0) scale(1);
    }

    50% {
        opacity: 0.8;
        transform: translate(var(--dx, 0), var(--dy, -50px)) scale(1.4);
    }

    100% {
        opacity: 0;
        transform: translate(var(--dx, 0), var(--dy, -90px)) scale(0.4);
    }
}

.particle-fire {
    width: 10px;
    height: 10px;
    background: radial-gradient(circle, #ffeaa7, #e74c3c);
    box-shadow: 0 0 8px rgb(231 76 60 / 80%);
    animation: particleFire 0.7s ease-out forwards;
}

/* --- Ice: white/blue shards flying outward --- */
@keyframes particleIce {
    0% {
        opacity: 1;
        transform: translate(0, 0) scale(1) rotate(0deg);
    }

    100% {
        opacity: 0;
        transform: translate(var(--dx, -50px), var(--dy, -40px)) scale(0.2) rotate(180deg);
    }
}

.particle-ice {
    width: 6px;
    height: 14px;
    background: linear-gradient(to bottom, #dfe6e9, #74b9ff);
    border-radius: 2px;
    clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
    animation: particleIce 0.9s ease-out forwards;
}

/* --- Thunder: yellow zigzag lines --- */
@keyframes particleThunder {
    0% {
        opacity: 1;
        transform: translate(0, 0) scale(1) rotate(0deg);
    }

    20% {
        opacity: 1;
        transform: translate(var(--dx, 20px), var(--dy, -20px)) scale(1.3) rotate(45deg);
    }

    40% {
        opacity: 0.6;
        transform: translate(var(--dx, -10px), var(--dy, -40px)) scale(1) rotate(90deg);
    }

    100% {
        opacity: 0;
        transform: translate(var(--dx, -30px), var(--dy, -70px)) scale(0.3) rotate(180deg);
    }
}

.particle-thunder {
    width: 4px;
    height: 16px;
    background: #f1c40f;
    box-shadow:
        0 0 10px #f1c40f,
        0 0 20px #f39c12;
    clip-path: polygon(40% 0%, 60% 0%, 50% 40%, 100% 40%, 30% 100%, 50% 50%, 0% 50%);
    animation: particleThunder 0.6s ease-out forwards;
}

/* --- Light: golden sparkles radiating outward --- */
@keyframes particleLight {
    0% {
        opacity: 1;
        transform: translate(0, 0) scale(0);
    }

    30% {
        opacity: 1;
        transform: translate(var(--dx, -30px), var(--dy, -30px)) scale(1.5);
    }

    100% {
        opacity: 0;
        transform: translate(var(--dx, -60px), var(--dy, -60px)) scale(0.3);
    }
}

.particle-light {
    width: 6px;
    height: 6px;
    background: #fff59d;
    box-shadow:
        0 0 12px #fff59d,
        0 0 24px #ffd700;
    border-radius: 50%;
    animation: particleLight 0.8s ease-out forwards;
}

/* --- Dark: purple wisps floating up --- */
@keyframes particleDark {
    0% {
        opacity: 0.9;
        transform: translate(0, 0) scale(1);
    }

    50% {
        opacity: 0.5;
        transform: translate(var(--dx, -15px), var(--dy, -40px)) scale(1.2);
    }

    100% {
        opacity: 0;
        transform: translate(var(--dx, -30px), var(--dy, -80px)) scale(0.2);
    }
}

.particle-dark {
    width: 12px;
    height: 12px;
    background: radial-gradient(circle, #6c5ce7, #2c3e50);
    filter: blur(2px);
    border-radius: 50%;
    animation: particleDark 1s ease-out forwards;
}

/* --- Gravity: deep purple imploding circles --- */
@keyframes particleGravity {
    0% {
        opacity: 0.8;
        transform: translate(0, 0) scale(0.5);
    }

    30% {
        opacity: 0.9;
        transform: translate(var(--dx, -20px), var(--dy, -20px)) scale(1.8);
    }

    100% {
        opacity: 0;
        transform: translate(var(--dx, -10px), var(--dy, -10px)) scale(0.2);
    }
}

.particle-gravity {
    width: 14px;
    height: 14px;
    background: radial-gradient(circle, #9b59b6, #6c3483);
    border: 2px solid rgb(155 89 182 / 50%);
    border-radius: 50%;
    animation: particleGravity 0.9s ease-out forwards;
}

/* --- Void: dark circles expanding outward --- */
@keyframes particleVoid {
    0% {
        opacity: 0.7;
        transform: translate(0, 0) scale(0.3);
    }

    40% {
        opacity: 0.9;
        transform: translate(var(--dx, -40px), var(--dy, -30px)) scale(1.5);
    }

    100% {
        opacity: 0;
        transform: translate(var(--dx, -70px), var(--dy, -50px)) scale(0.1);
    }
}

.particle-void {
    width: 10px;
    height: 10px;
    background: radial-gradient(circle, #2d3436, #34495e);
    border: 1px solid rgb(100 100 120 / 40%);
    border-radius: 50%;
    animation: particleVoid 0.8s ease-out forwards;
}

/* --- Nature: green leaf-like shapes spinning outward --- */
@keyframes particleNature {
    0% {
        opacity: 1;
        transform: translate(0, 0) scale(1) rotate(0deg);
    }

    100% {
        opacity: 0;
        transform: translate(var(--dx, -35px), var(--dy, -45px)) scale(0.3) rotate(360deg);
    }
}

.particle-nature {
    width: 10px;
    height: 6px;
    background: radial-gradient(circle at 30% 50%, #2ecc71, #27ae60);
    border-radius: 50% 0;
    animation: particleNature 0.9s ease-out forwards;
}

/* --- Poison: green/purple bubbles floating up --- */
@keyframes particlePoison {
    0% {
        opacity: 0.8;
        transform: translate(0, 0) scale(0.8);
    }

    50% {
        opacity: 0.6;
        transform: translate(var(--dx, -10px), var(--dy, -30px)) scale(1.2);
    }

    100% {
        opacity: 0;
        transform: translate(var(--dx, -20px), var(--dy, -60px)) scale(0.4);
    }
}

.particle-poison {
    width: 8px;
    height: 8px;
    background: radial-gradient(circle, #a29bfe, #8e44ad);
    border-radius: 50%;
    filter: blur(1px);
    animation: particlePoison 0.9s ease-out forwards;
}

/* --- Earth: brown rectangles falling --- */
@keyframes particleEarth {
    0% {
        opacity: 1;
        transform: translate(0, 0) rotate(0deg);
    }

    100% {
        opacity: 0;
        transform: translate(var(--dx, -20px), var(--dy, 40px)) rotate(180deg);
    }
}

.particle-earth {
    width: 12px;
    height: 5px;
    background: linear-gradient(90deg, #7f8c8d, #5d6d7e);
    border-radius: 2px;
    animation: particleEarth 0.7s ease-out forwards;
}

/* --- Wind: cyan streaks moving horizontally --- */
@keyframes particleWind {
    0% {
        opacity: 0.7;
        transform: translate(0, 0) scaleX(0.3);
    }

    30% {
        opacity: 0.9;
        transform: translate(var(--dx, -20px), var(--dy, -10px)) scaleX(1.5);
    }

    100% {
        opacity: 0;
        transform: translate(var(--dx, -60px), var(--dy, -20px)) scaleX(0.5);
    }
}

.particle-wind {
    width: 18px;
    height: 3px;
    background: linear-gradient(90deg, transparent, #00bcd4, transparent);
    border-radius: 3px;
    animation: particleWind 0.6s ease-out forwards;
}

/* Default particle for non-elemental attacks */
@keyframes particleDefault {
    0% {
        opacity: 1;
        transform: translate(0, 0) scale(1);
    }

    100% {
        opacity: 0;
        transform: translate(var(--dx, -30px), var(--dy, -40px)) scale(0.2);
    }
}

.particle-default {
    width: 6px;
    height: 6px;
    background: #ccc;
    border-radius: 50%;
    animation: particleDefault 0.6s ease-out forwards;
}

/* ================================
   Needs Panel (Option A - Slide-in)
   ================================ */
.needsPanel {
    position: absolute;
    top: 0;
    right: 0;
    height: 100%;
    width: 300px;
    background: rgb(0 0 0 / 92%);
    border-left: 2px solid var(--primary-color);
    z-index: 100;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    padding: 1rem;
    box-sizing: border-box;
    overflow-y: auto;
}

.needsPanel.active {
    transform: translateX(0);
}

.needsPanelHeader {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 0.6rem;
    border-bottom: 1px solid rgb(255 255 255 / 15%);
}

.needsPanelTitle {
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--primary-color);
}

.needsPanelBody {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.needsPanelChar {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    padding: 0.6rem;
    background: rgb(255 255 255 / 6%);
    border-radius: 6px;
    text-align: center;
}

.needsPanelName {
    font-size: 1rem;
    font-weight: bold;
    color: var(--secondary-color);
}

.needsPanelMood {
    font-size: 0.9rem;
    color: var(--primary-color);
}

.needsPanelBars {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.needRow {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 0.5rem;
    background: rgb(255 255 255 / 4%);
    border-radius: 4px;
}

.needRowIcon {
    font-size: 0.9rem;
    width: 1.4rem;
    text-align: center;
    flex-shrink: 0;
}

.needRowLabel {
    font-size: 0.75rem;
    color: #ccc;
    min-width: 3.2rem;
    flex-shrink: 0;
    font-weight: bold;
}

.needRowBarContainer {
    flex: 1;
    height: 6px;
    background-color: rgb(255 255 255 / 10%);
    border-radius: 3px;
    overflow: hidden;
    min-width: 0;
}

.needRowValue {
    font-size: 0.75rem;
    color: #aaa;
    min-width: 2rem;
    text-align: right;
    font-weight: bold;
    flex-shrink: 0;
}

/* Critical need flash */
.needRow .needBar.low {
    box-shadow: 0 0 6px rgb(255 0 0 / 50%);
}

/* ═══════════════════════════════════════════════════════════
   BATTLE LOG — Compact scrollable combat log in right panel
   ═══════════════════════════════════════════════════════════ */

.battleLogContainer {
    width: 100%;
    flex: 1;
    min-height: 0;
    max-height: 280px;
    display: flex;
    flex-direction: column;
    background-color: rgb(0 0 0 / 50%);
    border-radius: 6px;
    border: 1px solid rgb(255 255 255 / 10%);
    border-left: 3px solid #888;
    overflow: hidden;
}

.battleLogHeader {
    font-size: 0.55rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #888;
    font-weight: bold;
    padding: 0.25rem 0.5rem 0.15rem;
    border-bottom: 1px solid rgb(255 255 255 / 8%);
    flex-shrink: 0;
}

.battleLogEntries {
    flex: 1;
    overflow-y: auto;
    padding: 0.2rem 0.4rem;
    font-size: 0.6rem;
    line-height: 1.3;
    scrollbar-width: thin;
    scrollbar-color: rgb(255 255 255 / 15%) transparent;
}

.battleLogEntries::-webkit-scrollbar {
    width: 4px;
}

.battleLogEntries::-webkit-scrollbar-thumb {
    background: rgb(255 255 255 / 15%);
    border-radius: 2px;
}

.battleLogEntry {
    padding: 1px 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: opacity 0.15s ease;
}

/* ── Log entry color variants ── */
.battle-log-damage {
    color: #ff6b6b;
}

.battle-log-enemy {
    color: #ff9f9f;
}

.battle-log-heal {
    color: #51cf66;
}

.battle-log-crit {
    color: #ffd700;
    font-weight: bold;
}

.battle-log-super {
    color: #cc66ff;
    font-weight: bold;
}

.battle-log-miss {
    color: #888;
    font-style: italic;
}

.battle-log-info {
    color: #ccc;
}

.battle-log-levelup {
    background: linear-gradient(135deg, rgb(255 215 0 / 20%), rgb(255 237 78 / 10%));
    color: #ffd700;
    font-weight: bold;
    border-radius: 3px;
    padding: 1px 4px;
    margin: 1px 0;
}

.battle-log-fr {
    color: #ff66ff;
    font-weight: bold;
}
