#gameCanvas { touch-action: none; }

#battle-feedback {
    position: absolute;
    inset: 0;
    z-index: 2;
    overflow: hidden;
    pointer-events: none;
}

.fighter-indicator, .damage-number, .fist-swipe, .hit-impact {
    position: absolute;
    top: 0;
    left: 0;
}

.fighter-indicator {
    --player-color: #ff8492;
    min-width: 28px;
    padding: 2px 4px;
    border: 1px solid var(--player-color);
    border-radius: 4px;
    color: #fff;
    background: #101828ed;
    text-align: center;
    font: 800 11px/1.1 system-ui, sans-serif;
    white-space: nowrap;
}

.fighter-indicator::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    border: 6px solid transparent;
    border-top-color: var(--player-color);
    transform: translateX(-50%);
}

.fighter-indicator-p2 { --player-color: #78baff; }
.fighter-indicator i, .fighter-indicator small { display: none; }
.fighter-indicator[data-charge]:not([data-charge=""]) { min-width: 72px; }
.fighter-indicator[data-charge]:not([data-charge=""]) i {
    display: block;
    height: 3px;
    margin-block: 3px 2px;
    background: linear-gradient(90deg, #ffd788 var(--charge), #3a4354 var(--charge));
}
.fighter-indicator[data-charge]:not([data-charge=""]) small { display: block; font-size: 9px; }
.fighter-indicator[data-charge="charging"] small::after { content: 'Super laadt'; }
.fighter-indicator[data-charge="ready"] { --player-color: #ffe18a; box-shadow: 0 0 12px #ffb35eaa; }
.fighter-indicator[data-charge="ready"] small::after { content: 'Loslaten'; }
.fighter-indicator[data-charge="waiting"] small::after { content: 'Super bezet'; }

.damage-number {
    z-index: 1;
    padding: 3px 6px;
    border-radius: 5px;
    background: #171423e8;
    color: #ffe390;
    font: 900 clamp(15px, 3vw, 27px)/1 system-ui, sans-serif;
    text-shadow: -1px -1px #14101d, 1px 1px #14101d, 0 2px 5px #000;
}
.damage-number.is-blocked { color: #a8dbff; }
.damage-number[data-source]:not([data-source=""]) {
    z-index: 2;
    min-width: 76px;
    border: 1px solid #ff9275;
    background: #351821f5;
    color: #ffe6df;
    text-align: center;
}
.damage-number[data-source]:not([data-source=""])::after {
    content: attr(data-source);
    display: block;
    margin-top: 3px;
    color: #ffb59e;
    font: 800 10px/1.1 system-ui, sans-serif;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.hit-impact {
    width: 32px;
    height: 32px;
    border: 3px solid #ffe390;
    border-radius: 50%;
    box-shadow: 0 0 12px #ffae52;
}

.hit-impact.is-blocked {
    border-color: #a8dbff;
    box-shadow: 0 0 12px #78baff;
}
.hit-impact.is-flight-hit {
    border: 4px double #ffb7a2;
    box-shadow: 0 0 15px #ff6349, inset 0 0 10px #ff6349;
}

.fist-swipe {
    width: clamp(25px, 4vw, 52px);
    height: 22px;
    border-right: 4px solid #ffbd62;
    border-top: 4px solid #fff5cc;
    border-radius: 50%;
    filter: drop-shadow(0 0 4px #ff9f48);
}
.fist-swipe[data-direction="-1"] {
    border-right: 0;
    border-left: 4px solid #ffbd62;
}
