.arena-container {
    max-width: 1200px;
    margin: 0 auto;
}

.player-box {
    background: #1a1a1a;
    border: 2px solid #e53935;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 30px;
    text-align: center;
}

.player-box h3 {
    margin: 0 0 10px;
    color: #fff;
}

.player-box p {
    margin: 5px 0;
}

.selection-info {
    text-align: center;
    margin-bottom: 20px;
    font-size: 18px;
}

.card-selection{
    display:grid;
    grid-template-columns:repeat(auto-fill,minmax(140px,1fr));
    gap:15px;
}

.arena-card {
    background: #1a1a1a;
    border: 2px solid #333;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.2s ease;
    max-width:140px;
    margin:auto;
}

.arena-card:hover {
    transform: translateY(-5px);
    border-color: #e53935;
}

.arena-card.selected {
    border-color: #e53935;
    box-shadow: 0 0 20px rgba(229,57,53,0.8);
}

.arena-card img {
    width: 100%;
    display: block;
}

.card-info {
    padding: 12px;
    text-align: center;
}

.card-info strong {
    display: block;
    margin-bottom: 8px;
}

.arena-button {
    display: inline-block;
    background: #e53935;
    color: #fff;
    text-decoration: none;
    border: none;
    border-radius: 8px;
    padding: 12px 24px;
    cursor: pointer;
    font-weight: bold;
    transition: 0.2s;
}

.arena-button:hover {
    background: #ff4b47;
    transform: scale(1.03);
}

#arenaForm {
    text-align: center;
    margin-bottom: 40px;
}

.warning-box {
    background: #2d1a1a;
    border: 2px solid #e53935;
    border-radius: 12px;
    padding: 15px;
    margin-bottom: 30px;
    text-align: center;
}

.open-fights{
    display:grid;
    grid-template-columns:repeat(auto-fill,minmax(300px,1fr));
    gap:20px;
}

.fight-box {
    background: #1a1a1a;
    border: 2px solid #333;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
}

.fight-box h3 {
    margin-top: 0;
    color: #fff;
}

.fight-cards {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    margin: 20px 0;
}

.mini-card {
    width: 90px;
    border-radius: 8px;
    border: 2px solid #444;
}

.secret-card {
    width: 70px;
    height: 98px;
    background: #111;
    border: 2px dashed #e53935;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 42px;
    color: #e53935;
    box-shadow: 0 0 15px rgba(229,57,53,0.5);
}

h1 {
    text-align: center;
    margin-bottom: 30px;
}

h2 {
    text-align: center;
    margin-bottom: 20px;
}

@media (max-width: 768px) {

    .card-selection {
        grid-template-columns: repeat(2, 1fr);
    }

    .fight-cards {
        flex-wrap: wrap;
    }

    .mini-card,
    .secret-card {
        width: 75px;
    }

    .secret-card {
        height: 105px;
        font-size: 32px;
    }
}
.arena-layout{
    display:grid;
    grid-template-columns:1fr 420px;
    gap:30px;
    align-items:start;
}

.arena-left,
.arena-right{
    background:#1a1a1a;
    border:2px solid #2a2a2a;
    border-radius:15px;
    padding:20px;
}

.arena-left h2,
.arena-right h2{
    margin-top:0;
}

.selected-preview{
    margin-top:20px;
    background:#111;
    border-radius:10px;
    padding:15px;
    text-align:center;
}

.selected-preview span{
    display:inline-block;
    margin:5px;
    padding:5px 10px;
    background:#222;
    border-radius:6px;
}

@media(max-width:1000px){

    .arena-layout{
        grid-template-columns:1fr;
    }

}
.battle-arena-row {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 24px;
    align-items: center;
    margin: 24px 0;
}

.battle-fighter{

    position:relative;

    background:
        linear-gradient(
            180deg,
            rgba(255,255,255,.08),
            rgba(255,255,255,.03)
        );

    border:1px solid rgba(255,255,255,.12);

    border-radius:20px;

    padding:20px;

    transition:.3s;

    backdrop-filter:blur(6px);

}
.battle-fighter:hover{

    transform:translateY(-4px);

    box-shadow:
        0 0 25px rgba(255,40,40,.25);

}

.battle-player-name {
    font-size: 18px;
    font-weight: 800;
    margin-bottom: 10px;
}

.battle-card-img {
    width: 160px;
    max-width: 100%;
    border-radius: 12px;
    box-shadow: 0 0 18px rgba(255,0,0,0.35);
}

.battle-card-name {
    margin-top: 10px;
    font-weight: 700;
}

.battle-center-vs {
    font-size: 32px;
    font-weight: 900;
    text-align: center;
}

.battle-center-vs span {
    display: block;
    font-size: 14px;
    opacity: 0.75;
    margin-top: 4px;
}

.hp-bar{
    position:relative;
    width:100%;
    height:18px;
    margin-top:14px;
    border-radius:50px;
    overflow:hidden;

    background:#222;

    border:1px solid rgba(255,255,255,.15);

    box-shadow:
        inset 0 2px 6px rgba(0,0,0,.6),
        0 0 8px rgba(255,255,255,.05);
}

.hp-fill{

    height:100%;

    border-radius:50px;

    transition:width .8s ease;

    background:
    linear-gradient(
        90deg,
        #00d95f 0%,
        #66ff66 40%,
        #ffe600 70%,
        #ff3d3d 100%
    );

    box-shadow:
        0 0 10px rgba(0,255,120,.35);

}
.hp-fill {
    position: relative;
}

.hp-fill::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(
            90deg,
            transparent,
            rgba(255,255,255,.35),
            transparent
        );
    transform: translateX(-100%);
    animation: hpShine 1.8s ease infinite;
    pointer-events: none;
}

.hp-bar.hp-damage {
    animation: hpDamagePulse .45s ease;
}

.hp-bar.hp-heal {
    animation: hpHealPulse .55s ease;
}

.hp-bar.hp-low {
    box-shadow:
        inset 0 2px 6px rgba(0,0,0,.6),
        0 0 14px rgba(255,60,60,.65);
}
.hp-text{

    margin-top:8px;

    font-size:15px;

    font-weight:700;

    letter-spacing:.5px;

}
.battle-card-img{

    transition:
        transform .25s ease,
        box-shadow .25s ease;

}

.battle-card-img:hover{

    transform:
        translateY(-6px)
        scale(1.04);

    box-shadow:
        0 0 25px rgba(255,60,60,.55);

}

.battle-log-card {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.10);
    border-radius: 14px;
    padding: 12px;
    margin: 8px 0;
}

.battle-log-icon {
    font-size: 26px;
    line-height: 1;
}

.battle-log-content {
    flex: 1;
}

.battle-log-hp {
    margin-top: 6px;
    opacity: 0.85;
}

@media (max-width: 700px) {
    .battle-arena-row {
        grid-template-columns: 1fr;
    }

    .battle-center-vs {
        transform: rotate(90deg);
    }
}
.battle-card-img.attack-left {
    animation: attackLeft .45s ease;
}

.battle-card-img.attack-right {
    animation: attackRight .45s ease;
}

.battle-card-img.card-hit {
    animation: cardHit .35s ease;
}
.battle-card-img.card-crit {
    animation: cardCrit .55s ease;
}

.damage-float.crit {
    color: #ffd83d;
    font-size: 40px;
    text-shadow:
        0 0 8px #fff,
        0 0 18px #ffd000,
        0 0 30px orange;
}
@keyframes attackLeft {
    0% {
        transform: translateX(0) scale(1);
    }
    50% {
        transform: translateX(45px) scale(1.06);
    }
    100% {
        transform: translateX(0) scale(1);
    }
}
@keyframes cardCrit {

    0%{
        transform:scale(1);
    }

    20%{
        transform:scale(1.12) rotate(-2deg);
        filter:brightness(1.8);
    }

    45%{
        transform:translateX(12px) scale(1.18);
    }

    70%{
        transform:translateX(-6px) scale(1.08);
    }

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

}
@keyframes attackRight {
    0% {
        transform: translateX(0) scale(1);
    }
    50% {
        transform: translateX(-45px) scale(1.06);
    }
    100% {
        transform: translateX(0) scale(1);
    }
}

@keyframes cardHit {
    0% {
        transform: scale(1);
        filter: brightness(1);
    }
    30% {
        transform: scale(0.96) rotate(-1deg);
        filter: brightness(1.8);
    }
    60% {
        transform: scale(1.03) rotate(1deg);
    }
    100% {
        transform: scale(1);
        filter: brightness(1);
    }
}
/* ==================================================
   HP Animationen
================================================== */

@keyframes hpShine {

    0% {
        transform: translateX(-120%);
    }

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

}

@keyframes hpDamagePulse {

    0% {
        transform: scale(1);
        filter: brightness(1);
    }

    30% {
        transform: scale(1.03);
        filter: brightness(1.35);
    }

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

}

@keyframes hpHealPulse {

    0% {
        transform: scale(1);
        filter: brightness(1);
    }

    40% {
        transform: scale(1.04);
        filter: brightness(1.5);
    }

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

}
.damage-float {
    position: absolute;
    left: 50%;
    top: 45%;
    transform: translate(-50%, -50%);
    font-size: 34px;
    font-weight: 900;
    color: #ff3d3d;
    text-shadow: 0 0 12px rgba(255,0,0,.8);
    pointer-events: none;
    animation: damageFloat .9s ease forwards;
    z-index: 20;
}

.damage-float.heal {
    color: #36ff86;
    text-shadow: 0 0 12px rgba(0,255,100,.8);
}

.damage-float.shield {
    color: #5db8ff;
    text-shadow: 0 0 12px rgba(80,170,255,.8);
}

@keyframes damageFloat {
    0% {
        opacity: 0;
        transform: translate(-50%, -20%) scale(.8);
    }
    20% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1.15);
    }
    100% {
        opacity: 0;
        transform: translate(-50%, -110%) scale(1);
    }
}
.battle-step-show {
    animation: battleStepShow .35s ease forwards;
}

@keyframes battleStepShow {
    from {
        opacity: 0;
        transform: translateY(10px) scale(.98);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}
.battle-round-block {
    display: none;
    margin: 28px 0;
    padding: 22px;
    border-radius: 22px;
    background: rgba(255,255,255,.04);
    border: 1px solid rgba(255,255,255,.10);
}

.battle-round-block.round-active {
    display: block;
    animation: roundFadeIn .35s ease forwards;
}

.battle-round-title {
    text-align: center;
    font-size: 26px;
    margin-bottom: 18px;
}

@keyframes roundFadeIn {
    from {
        opacity: 0;
        transform: translateY(16px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
.battle-round-block {
    padding: 14px;
    margin: 16px 0;
}

.battle-round-title {
    font-size: 20px;
    margin-bottom: 10px;
}
@keyframes cardDeath {

    0% {
        transform: scale(1);
        opacity: 1;
        filter: grayscale(0) brightness(1);
    }

    35% {
        transform: scale(1.08) rotate(-2deg);
        opacity: 1;
        filter: grayscale(.4) brightness(1.4);
    }

    70% {
        transform: scale(.92) rotate(4deg);
        opacity: .65;
        filter: grayscale(1) brightness(.75);
    }

    100% {
        transform: scale(.82) rotate(-6deg);
        opacity: .45;
        filter: grayscale(1) brightness(.55);
    }
}

@keyframes skullPop {

    0% {
        opacity: 0;
        transform: scale(.5);
    }

    35% {
        opacity: 1;
        transform: scale(1.18);
    }

    100% {
        opacity: 1;
        transform: scale(1);
    }
}
/* ==================================================
   Battle Layout
================================================== */

.battle-arena-row {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 14px;
    align-items: center;
    margin: 12px 0;
}

.battle-fighter {
    position: relative;
    background:
        linear-gradient(
            180deg,
            rgba(255,255,255,.08),
            rgba(255,255,255,.03)
        );
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 14px;
    padding: 10px;
    transition: .3s;
    backdrop-filter: blur(6px);
}

.battle-fighter:hover {
    transform: translateY(-4px);
    box-shadow: 0 0 25px rgba(255,40,40,.25);
}

.battle-player-name {
    font-size: 14px;
    font-weight: 800;
    margin-bottom: 6px;
}

.battle-card-img {
    width: 105px;
    max-width: 100%;
    border-radius: 12px;
    box-shadow: 0 0 18px rgba(255,0,0,.35);
    transition:
        transform .25s ease,
        box-shadow .25s ease;
}

.battle-card-img:hover {
    transform: translateY(-6px) scale(1.04);
    box-shadow: 0 0 25px rgba(255,60,60,.55);
}

.battle-card-name {
    font-size: 13px;
    margin-top: 6px;
    font-weight: 700;
}

.battle-center-vs {
    font-size: 22px;
    font-weight: 900;
    text-align: center;
}

.battle-center-vs span {
    display: block;
    font-size: 14px;
    opacity: .75;
    margin-top: 4px;
}
/* ==================================================
   HP Anzeige
================================================== */

.hp-bar {
    position: relative;
    width: 100%;
    height: 10px;
    margin-top: 7px;
    border-radius: 50px;
    overflow: hidden;
    background: #222;
    border: 1px solid rgba(255,255,255,.15);
    box-shadow:
        inset 0 2px 6px rgba(0,0,0,.6),
        0 0 8px rgba(255,255,255,.05);
}

.hp-fill {
    height: 100%;
    border-radius: 50px;
    transition: width .8s ease;
    background:
        linear-gradient(
            90deg,
            #00d95f 0%,
            #66ff66 40%,
            #ffe600 70%,
            #ff3d3d 100%
        );
    box-shadow: 0 0 10px rgba(0,255,120,.35);
}

.hp-text {
    margin-top: 4px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .5px;
}

/* ==================================================
   Battle Log
================================================== */

.battle-log-card {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    background: rgba(255,255,255,.06);
    border: 1px solid rgba(255,255,255,.10);
    border-radius: 10px;
    padding: 8px 10px;
    margin: 5px 0;
}

.battle-log-icon {
    font-size: 20px;
    line-height: 1;
}

.battle-log-content {
    flex: 1;
    font-size: 13px;
}

.battle-log-hp {
    margin-top: 3px;
    font-size: 12px;
    opacity: .85;
}

/* ==================================================
   Runden
================================================== */

.battle-round-block {
    display: none;
    margin: 16px 0;
    padding: 14px;
    border-radius: 22px;
    background: rgba(255,255,255,.04);
    border: 1px solid rgba(255,255,255,.10);
}

.battle-round-block.round-active {
    display: block;
    animation: roundFadeIn .35s ease forwards;
}

.battle-round-title {
    text-align: center;
    font-size: 20px;
    margin-bottom: 10px;
}

.round-result-box {
    display: none;
    margin-top: 12px;
    padding: 10px;
    border-radius: 12px;
    background: rgba(255,215,0,.08);
    border: 1px solid rgba(255,215,0,.22);
    text-align: center;
}

.round-result-box.battle-step-show {
    display: block;
}

.round-result-box p {
    margin: 4px 0;
}
/* ==================================================
   Damage Zahlen
================================================== */

.damage-float {
    position: absolute;
    left: 50%;
    top: 42%;
    transform: translate(-50%, -50%);
    font-size: 30px;
    font-weight: 900;
    color: #ff3d3d;
    text-shadow: 0 0 12px rgba(255,0,0,.8);
    pointer-events: none;
    animation: damageFloat .9s ease forwards;
    z-index: 20;
}

.damage-float.heal {
    color: #36ff86;
    text-shadow: 0 0 12px rgba(0,255,100,.8);
}

.damage-float.shield {
    color: #5db8ff;
    text-shadow: 0 0 12px rgba(80,170,255,.8);
}

/* ==================================================
   Karten Animationen
================================================== */

.battle-card-img.attack-left {
    animation: attackLeft .45s ease;
}

.battle-card-img.attack-right {
    animation: attackRight .45s ease;
}

.battle-card-img.card-hit {
    animation: cardHit .35s ease;
}
/* ==================================================
   Sprint 3.3 - Death Animation
================================================== */

.battle-card-img.card-dead {
    animation: cardDeath .85s ease forwards;
    filter: grayscale(1) brightness(.55);
    opacity: .45;
}

.battle-fighter.fighter-dead::after {
    content: "☠️";
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 54px;
    background: rgba(0,0,0,.35);
    border-radius: 14px;
    animation: skullPop .75s ease forwards;
    pointer-events: none;
    z-index: 30;
}
/* ==================================================
   Allgemeine Animationen
================================================== */

.battle-step-show {
    animation: battleStepShow .35s ease forwards;
}

@keyframes attackLeft {
    0% {
        transform: translateX(0) scale(1);
    }

    50% {
        transform: translateX(42px) scale(1.06);
    }

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

@keyframes attackRight {
    0% {
        transform: translateX(0) scale(1);
    }

    50% {
        transform: translateX(-42px) scale(1.06);
    }

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

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

    30% {
        transform: scale(.96) rotate(-1deg);
        filter: brightness(1.8);
    }

    60% {
        transform: scale(1.03) rotate(1deg);
    }

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

@keyframes damageFloat {
    0% {
        opacity: 0;
        transform: translate(-50%, -20%) scale(.8);
    }

    20% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1.15);
    }

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

@keyframes battleStepShow {
    from {
        opacity: 0;
        transform: translateY(10px) scale(.98);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes roundFadeIn {
    from {
        opacity: 0;
        transform: translateY(16px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}
@keyframes fighterHitShake {

    0% {
        transform: translateX(0);
    }

    15% {
        transform: translateX(-8px);
    }

    30% {
        transform: translateX(7px);
    }

    45% {
        transform: translateX(-6px);
    }

    60% {
        transform: translateX(5px);
    }

    75% {
        transform: translateX(-3px);
    }

    100% {
        transform: translateX(0);
    }

}

@keyframes roundImpact {

    0% {
        transform: scale(1);
        filter: brightness(1);
    }

    35% {
        transform: scale(1.015);
        filter: brightness(1.18);
    }

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

}

@keyframes critDamageFloat {

    0% {
        opacity: 0;
        transform: translate(-50%, -20%) scale(.6);
    }

    20% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1.45);
    }

    45% {
        transform: translate(-50%, -62%) scale(1.25);
    }

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

}
@keyframes healPulse {

    0% {
        opacity: 0;
        transform: scale(.7);
    }

    30% {
        opacity: 1;
        transform: scale(1.05);
    }

    100% {
        opacity: 0;
        transform: scale(1.45);
    }

}

@keyframes healGlow {

    0% {
        transform: scale(1);
        filter: brightness(1);
    }

    30% {
        transform: scale(1.08);
        filter:
            brightness(1.4)
            drop-shadow(0 0 18px #6eff8f);
    }

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

}
@keyframes shieldBubble {

    0% {
        opacity: 0;
        transform: scale(.65);
    }

    30% {
        opacity: 1;
        transform: scale(1.04);
    }

    70% {
        opacity: .7;
        transform: scale(1.12);
    }

    100% {
        opacity: 0;
        transform: scale(1.35);
    }

}

@keyframes shieldIconPop {

    0% {
        opacity: 0;
        transform: scale(.4);
    }

    35% {
        opacity: 1;
        transform: scale(1.15);
    }

    70% {
        opacity: .9;
        transform: scale(1);
    }

    100% {
        opacity: 0;
        transform: scale(.85);
    }

}

@keyframes shieldGlow {

    0% {
        transform: scale(1);
        filter: brightness(1);
    }

    30% {
        transform: scale(1.06);
        filter:
            brightness(1.35)
            drop-shadow(0 0 18px #5db8ff);
    }

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

}
@keyframes lightningStrike {

    0% {
        opacity: 0;
        transform: translate(-50%, -40px) scale(.5);
    }

    35% {
        opacity: 1;
        transform: translate(-50%, 0) scale(1.3);
    }

    100% {
        opacity: 0;
        transform: translate(-50%, 20px) scale(.8);
    }

}

@keyframes lightningFlash {

    0% {
        opacity: 0;
    }

    35% {
        opacity: 1;
    }

    100% {
        opacity: 0;
    }

}

@keyframes lightningGlow {

    0% {
        transform: scale(1);
        filter: brightness(1);
    }

    30% {
        transform: scale(1.08);
        filter:
            brightness(1.7)
            drop-shadow(0 0 20px gold);
    }

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

}
/* ==================================================
   Mobile Battle Ansicht
================================================== */

@media (max-width: 700px) {

    .battle-arena-row {
        grid-template-columns: 1fr;
    }

    .battle-center-vs {
        transform: rotate(90deg);
    }

}
/* ==================================================
   Sprint 3.2 - Epische Treffer
================================================== */

.battle-fighter.hit-shake {
    animation: fighterHitShake .38s ease;
}

.battle-round-block.round-impact {
    animation: roundImpact .35s ease;
}

.damage-float.crit {
    animation: critDamageFloat 1s ease forwards;
}
/* ==================================================
   Heal Effect
================================================== */

.battle-fighter.heal-effect {
    position: relative;
}

.battle-fighter.heal-effect::before {
    content: "";
    position: absolute;
    inset: -8px;
    border-radius: 18px;
    pointer-events: none;

    background: radial-gradient(
        circle,
        rgba(80,255,120,.35) 0%,
        rgba(80,255,120,.15) 45%,
        transparent 75%
    );

    animation: healPulse .9s ease;
    z-index: 5;
}

.battle-card-img.heal-glow {
    animation: healGlow .9s ease;
    z-index: 6;
}

.damage-float.heal {
    font-size: 28px;
    font-weight: bold;
    text-shadow:
        0 0 8px #62ff8d,
        0 0 18px #62ff8d;
}
/* ==================================================
   Shield Effect
================================================== */

.battle-fighter.shield-effect {
    position: relative;
}

.battle-fighter.shield-effect::before {
    content: "";
    position: absolute;
    inset: -10px;
    border-radius: 20px;
    pointer-events: none;

    background:
        radial-gradient(
            circle,
            rgba(80,170,255,.32) 0%,
            rgba(80,170,255,.15) 45%,
            transparent 78%
        );

    border: 2px solid rgba(90,190,255,.65);
    box-shadow:
        0 0 18px rgba(80,170,255,.55),
        inset 0 0 20px rgba(80,170,255,.22);

    animation: shieldBubble .9s ease;
    z-index: 5;
}

.battle-fighter.shield-effect::after {
    content: "🛡️";
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 44px;
    pointer-events: none;
    animation: shieldIconPop .85s ease forwards;
    z-index: 30;
}

.battle-card-img.shield-glow {
    animation: shieldGlow .9s ease;
    z-index: 6;
}

.damage-float.shield {
    font-size: 28px;
    font-weight: bold;
    text-shadow:
        0 0 8px #5db8ff,
        0 0 18px #5db8ff;
}
/* ==================================================
   Lightning Effect
================================================== */

.battle-fighter.lightning-effect {
    position: relative;
}

.battle-fighter.lightning-effect::before {
    content: "⚡";
    position: absolute;
    top: -40px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 54px;
    z-index: 40;
    pointer-events: none;
    animation: lightningStrike .7s ease forwards;
}

.battle-fighter.lightning-effect::after {
    content: "";
    position: absolute;
    inset: -6px;
    border-radius: 16px;
    background: rgba(255,255,180,.55);
    animation: lightningFlash .45s ease;
    pointer-events: none;
    z-index: 30;
}

.battle-card-img.lightning-glow {
    animation: lightningGlow .7s ease;
}
/* ==================================================
   Arena Premium Design – Teil 1
   Grundlayout / Panels / Buttons
================================================== */

.arena-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 24px;
}

.arena-left,
.arena-right,
.player-box,
.warning-box,
.fight-box,
.battle-round-block {
    position: relative;
    background:
        linear-gradient(
            180deg,
            rgba(32,32,36,.96),
            rgba(15,15,18,.98)
        );
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 22px;
    overflow: hidden;
    box-shadow:
        0 18px 45px rgba(0,0,0,.65),
        inset 0 1px 0 rgba(255,255,255,.04);
    transition:
        transform .25s ease,
        box-shadow .25s ease,
        border-color .25s ease;
}

.arena-left::before,
.arena-right::before,
.player-box::before,
.warning-box::before,
.fight-box::before,
.battle-round-block::before {
    content: "";
    position: absolute;
    top: -140px;
    left: 50%;
    width: 320px;
    height: 320px;
    transform: translateX(-50%);
    background:
        radial-gradient(
            circle,
            rgba(255,45,45,.14),
            transparent 70%
        );
    pointer-events: none;
}

.arena-left:hover,
.arena-right:hover,
.player-box:hover,
.fight-box:hover {
    transform: translateY(-4px);
    border-color: rgba(255,70,70,.32);
    box-shadow:
        0 22px 55px rgba(0,0,0,.78),
        0 0 28px rgba(255,35,35,.16),
        inset 0 1px 0 rgba(255,255,255,.06);
}

.arena-left,
.arena-right {
    padding: 24px;
}

.player-box,
.warning-box,
.fight-box {
    padding: 22px;
}

h1,
h2 {
    text-align: center;
    color: #f7f7f7;
    font-weight: 900;
    letter-spacing: 1px;
    text-shadow:
        0 0 16px rgba(255,35,35,.22);
}

h1 {
    margin-bottom: 34px;
}

h2 {
    margin-bottom: 22px;
}

.arena-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;

    background:
        linear-gradient(
            180deg,
            #ff4d4d 0%,
            #c52121 45%,
            #7c1010 100%
        );

    color: #fff;
    text-decoration: none;
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 14px;

    padding: 14px 28px;

    cursor: pointer;
    font-weight: 900;
    letter-spacing: .5px;

    box-shadow:
        0 12px 28px rgba(180,0,0,.38),
        inset 0 1px 0 rgba(255,255,255,.22);

    transition:
        transform .2s ease,
        box-shadow .2s ease,
        filter .2s ease;
}

.arena-button:hover {
    background:
        linear-gradient(
            180deg,
            #ff6666 0%,
            #d42727 45%,
            #8b1212 100%
        );

    transform: translateY(-2px) scale(1.03);

    box-shadow:
        0 16px 36px rgba(200,0,0,.48),
        0 0 24px rgba(255,45,45,.34),
        inset 0 1px 0 rgba(255,255,255,.25);
}

.arena-button:active {
    transform: translateY(0) scale(.98);
}
/* ==================================================
   Arena Premium Design – Teil 2
   Karten-Auswahl
================================================== */

.card-selection {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 22px;
    perspective: 1000px;
}

.arena-card {
    position: relative;
    max-width: 150px;
    margin: auto;

    background:
        linear-gradient(
            180deg,
            rgba(35,35,40,.96),
            rgba(10,10,12,.98)
        );

    border: 1px solid rgba(255,255,255,.10);
    border-radius: 18px;

    overflow: hidden;
    cursor: pointer;

    box-shadow:
        0 14px 32px rgba(0,0,0,.65),
        inset 0 1px 0 rgba(255,255,255,.05);

    transition:
        transform .25s ease,
        box-shadow .25s ease,
        border-color .25s ease,
        filter .25s ease;
}

.arena-card::before {
    content: "";
    position: absolute;
    inset: 0;

    background:
        linear-gradient(
            120deg,
            transparent 20%,
            rgba(255,255,255,.12) 45%,
            transparent 70%
        );

    transform: translateX(-120%);
    transition: transform .55s ease;
    pointer-events: none;
    z-index: 3;
}

.arena-card:hover {
    transform:
        translateY(-8px)
        scale(1.04)
        rotateX(3deg);

    border-color: rgba(255,65,65,.55);

    box-shadow:
        0 22px 45px rgba(0,0,0,.8),
        0 0 26px rgba(255,35,35,.32);
}

.arena-card:hover::before {
    transform: translateX(120%);
}

.arena-card.selected {
    border-color: rgba(255,70,70,.95);

    box-shadow:
        0 0 0 2px rgba(255,50,50,.45),
        0 0 30px rgba(255,35,35,.65),
        0 20px 42px rgba(0,0,0,.8);

    transform:
        translateY(-10px)
        scale(1.06);
}

.arena-card.selected::after {
    content: "✓";
    position: absolute;
    top: 8px;
    right: 8px;

    width: 28px;
    height: 28px;

    display: flex;
    align-items: center;
    justify-content: center;

    background:
        linear-gradient(180deg, #ff5252, #9e1111);

    color: #fff;
    border-radius: 50%;

    font-weight: 900;
    font-size: 16px;

    box-shadow:
        0 0 14px rgba(255,40,40,.75);

    z-index: 5;
}

.arena-card img {
    width: 100%;
    display: block;

    filter:
        contrast(1.05)
        saturate(1.08);

    transition:
        transform .25s ease,
        filter .25s ease;
}

.arena-card:hover img {
    transform: scale(1.04);
    filter:
        contrast(1.12)
        saturate(1.18)
        brightness(1.05);
}

.card-info {
    position: relative;
    z-index: 4;

    padding: 10px 8px 12px;

    text-align: center;

    background:
        linear-gradient(
            180deg,
            rgba(0,0,0,.20),
            rgba(0,0,0,.55)
        );
}

.card-info strong {
    display: block;

    margin-bottom: 6px;

    color: #fff;
    font-size: 13px;
    font-weight: 900;

    text-shadow:
        0 0 8px rgba(255,40,40,.25);
}

.card-info small,
.card-info span,
.card-info p {
    color: rgba(255,255,255,.72);
    font-size: 12px;
}
/* ==================================================
   Arena Premium Design – Teil 3
   Auswahl-Anzeige / Preview / offene Kämpfe
================================================== */

.selection-info {
    text-align: center;
    margin: 0 auto 24px;
    padding: 12px 18px;

    width: fit-content;
    max-width: 100%;

    color: rgba(255,255,255,.86);
    font-size: 15px;
    font-weight: 800;
    letter-spacing: .4px;

    background:
        linear-gradient(
            180deg,
            rgba(255,255,255,.07),
            rgba(255,255,255,.03)
        );

    border: 1px solid rgba(255,255,255,.09);
    border-radius: 999px;

    box-shadow:
        0 10px 24px rgba(0,0,0,.35),
        inset 0 1px 0 rgba(255,255,255,.06);
}

.selected-preview {
    margin-top: 24px;
    padding: 18px;

    text-align: center;

    background:
        linear-gradient(
            180deg,
            rgba(255,255,255,.06),
            rgba(0,0,0,.22)
        );

    border: 1px solid rgba(255,255,255,.08);
    border-radius: 18px;

    box-shadow:
        inset 0 1px 0 rgba(255,255,255,.05),
        0 12px 28px rgba(0,0,0,.35);
}

.selected-preview span {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    margin: 6px;
    padding: 7px 12px;

    color: #fff;
    font-size: 13px;
    font-weight: 800;

    background:
        linear-gradient(
            180deg,
            rgba(255,55,55,.18),
            rgba(90,10,10,.28)
        );

    border: 1px solid rgba(255,70,70,.28);
    border-radius: 999px;

    box-shadow:
        0 0 14px rgba(255,40,40,.12);
}

.open-fights {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
}

.fight-box {
    min-height: 220px;
}

.fight-box h3 {
    margin-top: 0;
    margin-bottom: 14px;

    color: #fff;
    font-size: 18px;
    font-weight: 900;

    text-shadow:
        0 0 10px rgba(255,40,40,.20);
}

.fight-box p {
    color: rgba(255,255,255,.72);
    font-size: 14px;
}

.fight-cards {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 14px;

    margin: 22px 0;
}

.mini-card {
    width: 92px;

    border-radius: 12px;

    border: 1px solid rgba(255,255,255,.14);

    box-shadow:
        0 10px 22px rgba(0,0,0,.55),
        0 0 14px rgba(255,40,40,.12);

    transition:
        transform .2s ease,
        box-shadow .2s ease;
}

.mini-card:hover {
    transform: translateY(-5px) scale(1.05);

    box-shadow:
        0 16px 30px rgba(0,0,0,.7),
        0 0 20px rgba(255,45,45,.25);
}

.secret-card {
    width: 78px;
    height: 110px;

    background:
        radial-gradient(
            circle at top,
            rgba(255,45,45,.18),
            rgba(10,10,12,.98) 65%
        );

    border: 1px dashed rgba(255,70,70,.65);
    border-radius: 14px;

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 42px;
    color: #ff4040;

    box-shadow:
        inset 0 0 18px rgba(255,40,40,.08),
        0 0 20px rgba(255,40,40,.25);

    text-shadow:
        0 0 12px rgba(255,40,40,.85);

    animation: secretCardPulse 2.4s ease-in-out infinite;
}

.warning-box {
    color: rgba(255,255,255,.86);
    border-color: rgba(255,60,60,.35);
}

.warning-box strong {
    color: #fff;
}

@keyframes secretCardPulse {
    0% {
        transform: scale(1);
        box-shadow:
            inset 0 0 18px rgba(255,40,40,.08),
            0 0 16px rgba(255,40,40,.18);
    }

    50% {
        transform: scale(1.04);
        box-shadow:
            inset 0 0 24px rgba(255,40,40,.14),
            0 0 28px rgba(255,40,40,.38);
    }

    100% {
        transform: scale(1);
        box-shadow:
            inset 0 0 18px rgba(255,40,40,.08),
            0 0 16px rgba(255,40,40,.18);
    }
}
/* ==================================================
   Arena Premium Design – Teil 4
   Battle-Ansicht / Fighter / Runden
================================================== */

.battle-arena-row {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 22px;
    align-items: center;
    margin: 22px 0;
}

.battle-fighter {
    position: relative;

    padding: 18px;

    text-align: center;

    background:
        linear-gradient(
            180deg,
            rgba(34,34,39,.96),
            rgba(11,11,14,.98)
        );

    border: 1px solid rgba(255,255,255,.10);
    border-radius: 22px;

    overflow: hidden;

    box-shadow:
        0 16px 38px rgba(0,0,0,.62),
        inset 0 1px 0 rgba(255,255,255,.05);

    backdrop-filter: blur(8px);

    transition:
        transform .25s ease,
        box-shadow .25s ease,
        border-color .25s ease;
}

.battle-fighter::before {
    content: "";
    position: absolute;
    inset: -80px 20px auto 20px;
    height: 160px;

    background:
        radial-gradient(
            circle,
            rgba(255,45,45,.18),
            transparent 70%
        );

    pointer-events: none;
}

.battle-fighter:hover {
    transform: translateY(-5px);

    border-color: rgba(255,65,65,.35);

    box-shadow:
        0 24px 52px rgba(0,0,0,.78),
        0 0 26px rgba(255,35,35,.20),
        inset 0 1px 0 rgba(255,255,255,.06);
}

.battle-player-name {
    position: relative;
    z-index: 2;

    margin-bottom: 12px;

    color: #fff;
    font-size: 15px;
    font-weight: 900;
    letter-spacing: .5px;

    text-shadow:
        0 0 12px rgba(255,40,40,.25);
}

.battle-card-img {
    position: relative;
    z-index: 2;

    width: 135px;
    max-width: 100%;

    border-radius: 15px;

    box-shadow:
        0 14px 30px rgba(0,0,0,.62),
        0 0 22px rgba(255,35,35,.24);

    transition:
        transform .25s ease,
        box-shadow .25s ease,
        filter .25s ease;
}

.battle-card-img:hover {
    transform:
        translateY(-7px)
        scale(1.05);

    filter:
        contrast(1.08)
        saturate(1.12)
        brightness(1.05);

    box-shadow:
        0 20px 42px rgba(0,0,0,.78),
        0 0 30px rgba(255,45,45,.42);
}

.battle-card-name {
    position: relative;
    z-index: 2;

    margin-top: 10px;

    color: rgba(255,255,255,.92);
    font-size: 13px;
    font-weight: 800;
}

.battle-center-vs {
    min-width: 76px;

    color: #fff;
    font-size: 28px;
    font-weight: 1000;
    text-align: center;

    text-shadow:
        0 0 10px rgba(255,45,45,.45),
        0 0 24px rgba(255,45,45,.28);
}

.battle-center-vs span {
    display: block;

    margin-top: 4px;

    color: rgba(255,255,255,.58);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .8px;
}

.battle-round-block {
    padding: 20px;
    margin: 22px 0;

    border-radius: 24px;

    background:
        linear-gradient(
            180deg,
            rgba(255,255,255,.055),
            rgba(0,0,0,.22)
        );

    border: 1px solid rgba(255,255,255,.09);

    box-shadow:
        0 18px 42px rgba(0,0,0,.5),
        inset 0 1px 0 rgba(255,255,255,.05);
}

.battle-round-title {
    text-align: center;

    margin-bottom: 16px;

    color: #fff;
    font-size: 22px;
    font-weight: 900;
    letter-spacing: .7px;

    text-shadow:
        0 0 14px rgba(255,40,40,.24);
}

.round-result-box {
    margin-top: 16px;
    padding: 14px 16px;

    border-radius: 16px;

    background:
        linear-gradient(
            180deg,
            rgba(255,215,0,.10),
            rgba(80,45,0,.14)
        );

    border: 1px solid rgba(255,215,0,.25);

    text-align: center;

    box-shadow:
        0 0 22px rgba(255,180,0,.10),
        inset 0 1px 0 rgba(255,255,255,.05);
}

.round-result-box p {
    margin: 5px 0;
    color: rgba(255,255,255,.84);
}

.round-result-box strong {
    color: #fff;
}
/* ==================================================
   Arena Premium Design – Teil 5
   HP-Balken / Battle-Log / Damage Zahlen
================================================== */

.hp-bar {
    position: relative;

    width: 100%;
    height: 13px;

    margin-top: 12px;

    border-radius: 999px;
    overflow: hidden;

    background:
        linear-gradient(
            180deg,
            #151515,
            #090909
        );

    border: 1px solid rgba(255,255,255,.12);

    box-shadow:
        inset 0 2px 7px rgba(0,0,0,.85),
        0 0 10px rgba(255,255,255,.04);
}

.hp-fill {
    position: relative;

    height: 100%;

    border-radius: 999px;

    background:
        linear-gradient(
            90deg,
            #19e06a 0%,
            #9cff5a 45%,
            #ffe45c 72%,
            #ff3f3f 100%
        );

    box-shadow:
        0 0 12px rgba(80,255,120,.35);

    transition:
        width .8s ease,
        filter .25s ease;
}

.hp-fill::after {
    content: "";
    position: absolute;
    inset: 0;

    background:
        linear-gradient(
            90deg,
            transparent,
            rgba(255,255,255,.42),
            transparent
        );

    transform: translateX(-120%);
    animation: hpShine 2.2s ease infinite;
    pointer-events: none;
}

.hp-text {
    margin-top: 6px;

    color: rgba(255,255,255,.78);
    font-size: 12px;
    font-weight: 900;
    letter-spacing: .8px;
}

.hp-bar.hp-low {
    box-shadow:
        inset 0 2px 7px rgba(0,0,0,.85),
        0 0 18px rgba(255,55,55,.65);
}

.hp-bar.hp-damage {
    animation: hpDamagePulse .45s ease;
}

.hp-bar.hp-heal {
    animation: hpHealPulse .55s ease;
}

.battle-log-card {
    position: relative;

    display: flex;
    gap: 12px;
    align-items: flex-start;

    margin: 8px 0;
    padding: 11px 12px;

    background:
        linear-gradient(
            180deg,
            rgba(255,255,255,.065),
            rgba(0,0,0,.18)
        );

    border: 1px solid rgba(255,255,255,.09);
    border-radius: 14px;

    box-shadow:
        0 8px 20px rgba(0,0,0,.28),
        inset 0 1px 0 rgba(255,255,255,.04);
}

.battle-log-card::before {
    content: "";
    position: absolute;

    left: 0;
    top: 10px;
    bottom: 10px;

    width: 3px;

    border-radius: 999px;

    background:
        linear-gradient(
            180deg,
            rgba(255,80,80,.8),
            rgba(120,0,0,.25)
        );

    box-shadow:
        0 0 10px rgba(255,50,50,.35);
}

.battle-log-icon {
    width: 28px;
    min-width: 28px;

    font-size: 22px;
    line-height: 1.1;
    text-align: center;

    filter:
        drop-shadow(0 0 8px rgba(255,50,50,.28));
}

.battle-log-content {
    flex: 1;

    color: rgba(255,255,255,.84);
    font-size: 13px;
    line-height: 1.4;
}

.battle-log-content strong {
    color: #fff;
}

.battle-log-hp {
    margin-top: 5px;

    color: rgba(255,255,255,.58);
    font-size: 12px;
    font-weight: 700;
}

.damage-float {
    font-size: 34px;
    font-weight: 1000;

    color: #ff3d3d;

    text-shadow:
        0 0 8px rgba(255,255,255,.35),
        0 0 18px rgba(255,0,0,.85),
        0 0 34px rgba(255,0,0,.45);
}

.damage-float.heal {
    color: #4dff8a;

    text-shadow:
        0 0 8px rgba(255,255,255,.35),
        0 0 18px rgba(80,255,120,.85),
        0 0 34px rgba(80,255,120,.45);
}

.damage-float.shield {
    color: #66bfff;

    text-shadow:
        0 0 8px rgba(255,255,255,.35),
        0 0 18px rgba(80,170,255,.85),
        0 0 34px rgba(80,170,255,.45);
}

.damage-float.crit {
    color: #ffd84d;
    font-size: 42px;

    text-shadow:
        0 0 8px #fff,
        0 0 20px #ffd000,
        0 0 36px orange;
}
/* ==================================================
   Arena Premium Design – Teil 6
   Mobile Optimierung
================================================== */

@media (max-width: 1000px) {

    .arena-container {
        padding: 18px;
    }

    .arena-layout {
        grid-template-columns: 1fr;
        gap: 22px;
    }

    .open-fights {
        grid-template-columns: 1fr;
    }

}

@media (max-width: 768px) {

    h1 {
        font-size: 26px;
        margin-bottom: 24px;
    }

    h2 {
        font-size: 21px;
    }

    .arena-container {
        padding: 14px;
    }

    .arena-left,
    .arena-right,
    .player-box,
    .warning-box,
    .fight-box,
    .battle-round-block {
        border-radius: 18px;
        padding: 16px;
    }

    .card-selection {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 16px;
    }

    .arena-card {
        max-width: 155px;
        border-radius: 16px;
    }

    .selection-info {
        font-size: 13px;
        padding: 10px 14px;
    }

    .selected-preview {
        padding: 14px;
    }

    .selected-preview span {
        font-size: 12px;
        padding: 6px 10px;
    }

    .fight-cards {
        flex-wrap: wrap;
        gap: 12px;
    }

    .mini-card {
        width: 78px;
    }

    .secret-card {
        width: 72px;
        height: 101px;
        font-size: 34px;
    }

    .arena-button {
        width: 100%;
        padding: 14px 18px;
        font-size: 14px;
    }

    .battle-arena-row {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .battle-center-vs {
        min-width: auto;
        font-size: 24px;
        transform: none;
        margin: 2px 0;
    }

    .battle-center-vs span {
        font-size: 11px;
    }

    .battle-fighter {
        padding: 15px;
        border-radius: 18px;
    }

    .battle-card-img {
        width: 120px;
    }

    .battle-round-title {
        font-size: 19px;
    }

    .battle-log-card {
        padding: 10px;
        gap: 10px;
    }

    .battle-log-content {
        font-size: 12px;
    }

    .damage-float {
        font-size: 28px;
    }

    .damage-float.crit {
        font-size: 34px;
    }

}

@media (max-width: 420px) {

    .arena-container {
        padding: 10px;
    }

    .card-selection {
        gap: 12px;
    }

    .arena-card {
        max-width: 145px;
    }

    .card-info strong {
        font-size: 12px;
    }

    .card-info small,
    .card-info span,
    .card-info p {
        font-size: 11px;
    }

    .mini-card {
        width: 70px;
    }

    .secret-card {
        width: 66px;
        height: 94px;
        font-size: 30px;
    }

    .battle-card-img {
        width: 108px;
    }

}
/* ==================================================
   Arena Lobby Premium Layout
================================================== */

.arena-page {
    padding-top: 30px;
}

.page-title {
    text-align: center;
    margin: 34px auto 34px;
    max-width: 760px;
}

.page-title span {
    color: #ff4545;
    font-weight: 900;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.page-title h1 {
    margin: 10px 0;
    color: #fff;
    font-size: clamp(36px, 5vw, 64px);
}

.page-title p {
    color: rgba(255,255,255,.68);
    font-size: 17px;
}

.arena-player-overview {
    max-width: 760px;
    margin: 0 auto 30px;
}

.arena-player-overview h2 {
    font-size: 28px;
}

.arena-layout {
    grid-template-columns: 1.5fr .9fr;
    gap: 26px;
}

.arena-left,
.arena-right,
.arena-history {
    border-radius: 26px;
}

.arena-right {
    position: sticky;
    top: 115px;
}

.arena-left h2,
.arena-right h2,
.arena-history h2 {
    font-size: 24px;
    margin-bottom: 22px;
}

#arenaForm {
    margin-top: 22px;
}

.arena-pager {
    margin-top: 24px;
    text-align: center;
}

.arena-pager span {
    display: inline-block;
    margin: 0 16px;
    color: rgba(255,255,255,.7);
    font-weight: 800;
}

.arena-history {
    margin-top: 30px;
}

.my-fight-card h3 {
    font-size: 16px;
}

@media(max-width: 1000px) {
    .arena-layout {
        grid-template-columns: 1fr;
    }

    .arena-right {
        position: relative;
        top: auto;
    }
}

@media(max-width: 700px) {
    .page-title {
        margin-top: 24px;
    }

    .arena-page {
        padding-top: 12px;
    }
}
/* ==================================================
   Kompakte Kampferstellung
================================================== */

.arena-create-start {
    text-align: center;
}

.arena-create-start p {
    color: rgba(255,255,255,.68);
    margin-bottom: 20px;
}

.arena-create-panel {
    display: none;
    margin-top: 24px;
}

.arena-create-panel.active {
    display: block;
    animation: battleStepShow .3s ease forwards;
}

.arena-create-panel h3 {
    text-align: center;
    color: #fff;
    margin-bottom: 16px;
}

.compact-card-selection {
    max-height: 520px;
    overflow-y: auto;
    padding: 6px 6px 12px;
    grid-template-columns: repeat(auto-fill, minmax(105px, 1fr));
    gap: 12px;
}

.compact-card-selection .arena-card {
    max-width: 105px;
    border-radius: 14px;
}

.compact-card-selection .arena-card:hover {
    transform: translateY(-5px) scale(1.04);
}

.compact-card-selection .arena-card.selected {
    transform: translateY(-5px) scale(1.05);
}

.compact-card-selection::-webkit-scrollbar {
    width: 8px;
}

.compact-card-selection::-webkit-scrollbar-track {
    background: rgba(255,255,255,.04);
    border-radius: 999px;
}

.compact-card-selection::-webkit-scrollbar-thumb {
    background: rgba(255,60,60,.45);
    border-radius: 999px;
}

#createFightPanel #arenaForm {
    margin-top: 18px;
}
/* ==================================================
   Premium Fight Cards
================================================== */

.premium-fight{

    padding:22px;

    border-radius:22px;

    background:
        linear-gradient(
            180deg,
            rgba(28,28,32,.96),
            rgba(10,10,12,.98)
        );

    border:1px solid rgba(255,255,255,.08);

    transition:.25s;

}

.premium-fight:hover{

    transform:translateY(-6px);

    border-color:rgba(255,50,50,.35);

    box-shadow:
        0 22px 45px rgba(0,0,0,.65),
        0 0 22px rgba(255,40,40,.18);

}

.fight-header{

    display:flex;

    justify-content:space-between;

    align-items:center;

    margin-bottom:18px;

}

.fight-header h3{

    margin:0;

    color:#fff;

    font-size:22px;

}

.fight-header span{

    color:rgba(255,255,255,.6);

    font-size:14px;

}

.fight-time{

    color:#ff5a5a;

    font-weight:800;

}

.fight-cards{

    justify-content:center;

    gap:12px;

    margin:18px 0;

}

.fight-accept{

    width:100%;

    margin-top:10px;

}

.fight-own{

    margin-top:10px;

    padding:14px;

    text-align:center;

    border-radius:14px;

    background:rgba(255,255,255,.05);

    color:#ddd;

}
.battle-deck-preview{
    display:flex;
    justify-content:center;
    gap:8px;
    margin:12px 0 18px;
}

.battle-deck-card{
    width:58px;
    border-radius:8px;
    box-shadow:0 4px 12px rgba(0,0,0,.45);
    transition:.25s;
}

.battle-deck-card:hover{
    transform:translateY(-4px);
}
.battle-arena-compact{
    display:grid;
    grid-template-columns:1fr auto 1fr;
    align-items:center;
    gap:22px;
}

.battle-side .battle-fighter{
    display:grid;
    grid-template-columns:70px 1fr;
    align-items:center;
    gap:16px;
}

.battle-side-right .battle-fighter{
    grid-template-columns:1fr 70px;
}

.battle-side-right .battle-deck-preview{
    order:2;
}

.battle-side-right .battle-card-img,
.battle-side-right .battle-card-name,
.battle-side-right .hp-bar,
.battle-side-right .hp-text,
.battle-side-right .battle-player-name{
    order:1;
}

.battle-deck-preview{
    display:flex;
    flex-direction:column;
    gap:8px;
    margin:0;
}

.battle-deck-card{
    width:54px;
    border-radius:8px;
    box-shadow:0 4px 12px rgba(0,0,0,.45);
}

.battle-center-vs{
    text-align:center;
    font-size:32px;
}

.battle-center-vs span{
    display:block;
    font-size:13px;
    opacity:.75;
}

@media(max-width:800px){
    .battle-arena-compact{
        grid-template-columns:1fr;
    }

    .battle-side .battle-fighter,
    .battle-side-right .battle-fighter{
        grid-template-columns:1fr;
    }

    .battle-deck-preview{
        flex-direction:row;
        justify-content:center;
    }
}
.battle-arena-board{
    display:grid;
    grid-template-columns:80px 1fr auto 1fr 80px;
    grid-template-areas:
        "nameL nameL vs nameR nameR"
        "deckL cardL vs cardR deckR";
    align-items:center;
    gap:18px;
}

.battle-board-name-left{
    grid-area:nameL;
    text-align:left;
}

.battle-board-name-right{
    grid-area:nameR;
    text-align:right;
}

.battle-board-deck-left{
    grid-area:deckL;
}

.battle-board-card-left{
    grid-area:cardL;
}

.battle-board-vs{
    grid-area:vs;
    text-align:center;
}

.battle-board-card-right{
    grid-area:cardR;
}

.battle-board-deck-right{
    grid-area:deckR;
}

.battle-deck-preview{
    display:flex;
    flex-direction:column;
    gap:8px;
    align-items:center;
}

.battle-deck-card{
    width:54px;
    border-radius:8px;
}

.battle-active-card{
    text-align:center;
}

.battle-card-img{
    max-width:180px;
}

@media(max-width:800px){
    .battle-arena-board{
        grid-template-columns:1fr;
        grid-template-areas:
            "nameL"
            "deckL"
            "cardL"
            "vs"
            "cardR"
            "deckR"
            "nameR";
    }

    .battle-deck-preview{
        flex-direction:row;
        justify-content:center;
    }
}
/* ==================================================
   Battle Board Final Layout
================================================== */

.battle-arena-board{
    display:grid;
    grid-template-columns:70px minmax(140px,1fr) auto minmax(140px,1fr) 70px;
    grid-template-areas:
        "nameL nameL vs nameR nameR"
        "deckL cardL vs cardR deckR";
    align-items:center;
    gap:14px;
    margin:18px 0;
}

.battle-board-player-name{
    color:#fff;
    font-weight:900;
    font-size:15px;
}

.battle-board-name-left{
    grid-area:nameL;
    text-align:left;
}

.battle-board-name-right{
    grid-area:nameR;
    text-align:right;
}

.battle-board-deck-left{ grid-area:deckL; }
.battle-board-card-left{ grid-area:cardL; }
.battle-board-vs{ grid-area:vs; }
.battle-board-card-right{ grid-area:cardR; }
.battle-board-deck-right{ grid-area:deckR; }

.battle-arena-board .battle-deck-preview{
    display:flex;
    flex-direction:column;
    gap:7px;
    align-items:center;
    justify-content:center;
    margin:0;
}

.battle-arena-board .battle-deck-card{
    width:46px;
    border-radius:7px;
    box-shadow:0 6px 14px rgba(0,0,0,.55);
}

.battle-arena-board .battle-active-card{
    max-width:190px;
    margin:0 auto;
    padding:14px;
}

.battle-arena-board .battle-card-img{
    width:125px;
    max-width:100%;
}

.battle-arena-board .battle-card-name{
    font-size:13px;
}

.battle-arena-board .battle-center-vs{
    min-width:60px;
    font-size:28px;
}

@media(max-width:800px){
    .battle-arena-board{
        grid-template-columns:1fr;
        grid-template-areas:
            "nameL"
            "deckL"
            "cardL"
            "vs"
            "cardR"
            "deckR"
            "nameR";
    }

    .battle-arena-board .battle-deck-preview{
        flex-direction:row;
    }
}
.battle-deck-active{

    border:2px solid #ffd54a;

    box-shadow:
        0 0 8px rgba(255,215,70,.8),
        0 0 18px rgba(255,215,70,.45);

    transform:scale(1.08);

}
/* ==================================================
   Battle Deck Flip Animation
================================================== */

.battle-deck-card{
    transform-style:preserve-3d;
    backface-visibility:hidden;
}

.battle-deck-revealed{
    animation:battleDeckFlip .55s ease forwards;
}

@keyframes battleDeckFlip{
    0%{
        transform:rotateY(90deg) scale(.92);
        opacity:.4;
    }

    55%{
        transform:rotateY(-8deg) scale(1.08);
        opacity:1;
    }

    100%{
        transform:rotateY(0deg) scale(1.08);
        opacity:1;
    }
}
.battle-deck-defeated{

    filter:
        grayscale(1)
        brightness(.45);

    opacity:.65;

    transform:scale(.94);

    transition:.35s;

}

.battle-deck-defeated:hover{

    transform:scale(.94);

}
.battle-fly-card{
    position:fixed;
    z-index:9999;
    pointer-events:none;
    border-radius:12px;
    transition:
        left .65s ease,
        top .65s ease,
        width .65s ease,
        height .65s ease,
        transform .65s ease,
        opacity .65s ease;
    box-shadow:
        0 0 18px rgba(255,215,70,.85),
        0 0 34px rgba(255,60,60,.45);
    transform:scale(1);
}

.battle-fly-card{
    opacity:1;
}
.battle-card-hidden-start{
    opacity:0;
    transform:scale(.88);
}

.battle-card-appear{
    animation:battleCardAppear .35s ease forwards;
}

@keyframes battleCardAppear{
    from{
        opacity:0;
        transform:scale(.88);
    }

    to{
        opacity:1;
        transform:scale(1);
    }
}
/* ==================================================
   Rundensieger Effekt
================================================== */

.battle-fighter.winner-effect {
    border-color: rgba(70,255,120,.9);

    box-shadow:
        0 0 18px rgba(70,255,120,.65),
        0 0 35px rgba(70,255,120,.35),
        inset 0 0 18px rgba(70,255,120,.15);

    animation: winnerPulse 1.2s ease infinite;
}

.battle-card-img.winner-card {
    filter:
        brightness(1.15)
        drop-shadow(0 0 18px #44ff88);

    animation: winnerCardPop .7s ease;
}

.battle-fighter.winner-effect::after {
    content: "✓";

    position: absolute;

    top: 10px;
    right: 10px;

    width: 34px;
    height: 34px;

    display:flex;
    align-items:center;
    justify-content:center;

    border-radius:50%;

    background:
        linear-gradient(
            180deg,
            #62ff91,
            #139b42
        );

    color:white;

    font-size:22px;
    font-weight:900;

    box-shadow:
        0 0 15px rgba(80,255,120,.8);

    animation: winnerCheck .5s ease;
}


@keyframes winnerPulse {

    0% {
        transform:scale(1);
    }

    50% {
        transform:scale(1.025);
    }

    100% {
        transform:scale(1);
    }

}
@keyframes winnerCardPop {

    0% {
        transform:scale(.9);
    }

    50% {
        transform:scale(1.08);
    }

    100% {
        transform:scale(1);
    }

}


@keyframes winnerCheck {

    0% {
        opacity:0;
        transform:scale(.4) rotate(-20deg);
    }

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

}
.battle-arena-board {
    background-size: 100% 100%;
    background-position: center;
    background-repeat: no-repeat;
    min-height: 520px;
    position: relative;
    overflow: hidden;
}
.battle-arena-board {
    background-size: 100% 100%;
    background-position: center;
    background-repeat: no-repeat;

    min-height: 520px;

    border-radius: 22px;
    overflow: hidden;
    position: relative;

    box-shadow:
        inset 0 0 80px rgba(0,0,0,0.6),
        0 0 30px rgba(255,0,0,0.25);
}

.battle-arena-board::before {
    content: "";
    position: absolute;
    inset: 0;

    background:
        radial-gradient(
            circle,
            transparent 40%,
            rgba(0,0,0,0.45) 100%
        );

    pointer-events: none;
    z-index: 1;
}

.battle-board-card,
.battle-board-deck,
.battle-board-player-name,
.battle-center-vs {
    position: relative;
    z-index: 2;
}
/* ==================================================
   Arena Animation Pack V2
   dodge / block / effect_block / attack_up / heart_up / chaos / revive
================================================== */

/* Ausweichen */
.battle-card-img.dodge-glow {
    animation: dodgeCard .85s ease;
}

.battle-fighter.dodge-effect::after {
    content: "💨";
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    pointer-events: none;
    z-index: 35;
    animation: effectIconPop .85s ease forwards;
}

/* Blocken */
.battle-card-img.block-glow {
    animation: blockCard .85s ease;
}

.battle-fighter.block-effect::after {
    content: "BLOCK!";
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;

    color: #ff4545;
    font-size: clamp(20px, 3vw, 34px);
    font-weight: 1000;
    letter-spacing: .08em;

    text-shadow:
        0 2px 2px #000,
        0 0 10px rgba(255, 40, 40, .95),
        0 0 24px rgba(180, 0, 0, .8);

    pointer-events: none;
    z-index: 35;
    animation: effectIconPop .85s ease forwards;
}

.battle-fighter.block-effect::before {
    content: "";
    position: absolute;
    inset: -8px;
    border-radius: 18px;
    border: 3px solid rgba(255, 55, 55, .9);
    box-shadow:
        0 0 20px rgba(255, 30, 30, .65),
        inset 0 0 22px rgba(255, 30, 30, .25);
    pointer-events: none;
    z-index: 20;
    animation: blockBubble .85s ease forwards;
}

/* Effektblock */
.battle-card-img.effect_block-glow {
    animation: effectBlockCard .9s ease;
}

.battle-fighter.effect_block-effect::after {
    content: "✖";
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 56px;
    color: #c77dff;
    text-shadow:
        0 0 10px #c77dff,
        0 0 24px #7b2cff;
    pointer-events: none;
    z-index: 35;
    animation: effectIconPop .9s ease forwards;
}

/* Angriff + */
.battle-card-img.attack_up-glow {
    animation: attackUpCard .9s ease;
}

.battle-fighter.attack_up-effect::after {
    content: "⚔️ +";
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 42px;
    pointer-events: none;
    z-index: 35;
    animation: effectIconPop .9s ease forwards;
}

/* Herzen + */
.battle-card-img.heart_up-glow {
    animation: heartUpCard .9s ease;
}

.battle-fighter.heart_up-effect::after {
    content: "❤️ +";
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 42px;
    pointer-events: none;
    z-index: 35;
    animation: effectIconPop .9s ease forwards;
}

/* Chaos */
.battle-card-img.chaos-glow {
    animation: chaosCard 1s ease;
}

.battle-fighter.chaos-effect::after {
    content: "🎲";
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 54px;
    pointer-events: none;
    z-index: 35;
    animation: chaosIcon 1s ease forwards;
}

/* Revive */
.battle-card-img.revive-glow {
    animation: reviveCard 1.1s ease;
}

.battle-fighter.revive-effect::after {
    content: "✨";
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 58px;
    pointer-events: none;
    z-index: 35;
    animation: reviveIcon 1.1s ease forwards;
}

/* Keyframes */
@keyframes dodgeCard {
    0% { transform: translateX(0); opacity: 1; }
    25% { transform: translateX(-28px) rotate(-4deg); opacity: .65; }
    50% { transform: translateX(28px) rotate(4deg); opacity: .85; }
    100% { transform: translateX(0); opacity: 1; }
}

@keyframes blockCard {
    0% { transform: scale(1); filter: brightness(1); }
    35% {
        transform: scale(1.08);
        filter: brightness(1.6) drop-shadow(0 0 20px white);
    }
    100% { transform: scale(1); filter: brightness(1); }
}

@keyframes blockBubble {
    0% { opacity: 0; transform: scale(.75); }
    35% { opacity: 1; transform: scale(1.05); }
    100% { opacity: 0; transform: scale(1.3); }
}

@keyframes effectBlockCard {
    0% { transform: scale(1); filter: brightness(1); }
    35% {
        transform: scale(1.07) rotate(-2deg);
        filter: brightness(1.5) drop-shadow(0 0 20px #c77dff);
    }
    100% { transform: scale(1); filter: brightness(1); }
}

@keyframes attackUpCard {
    0% { transform: scale(1); filter: brightness(1); }
    35% {
        transform: scale(1.1);
        filter: brightness(1.5) drop-shadow(0 0 22px #ff3333);
    }
    100% { transform: scale(1); filter: brightness(1); }
}

@keyframes heartUpCard {
    0% { transform: scale(1); filter: brightness(1); }
    35% {
        transform: scale(1.08);
        filter: brightness(1.45) drop-shadow(0 0 22px #ff5fa2);
    }
    100% { transform: scale(1); filter: brightness(1); }
}

@keyframes chaosCard {
    0% { transform: rotate(0deg) scale(1); filter: hue-rotate(0deg); }
    25% { transform: rotate(-5deg) scale(1.08); filter: hue-rotate(90deg); }
    50% { transform: rotate(5deg) scale(1.12); filter: hue-rotate(180deg); }
    75% { transform: rotate(-3deg) scale(1.06); filter: hue-rotate(270deg); }
    100% { transform: rotate(0deg) scale(1); filter: hue-rotate(360deg); }
}

@keyframes reviveCard {
    0% {
        transform: scale(.9);
        opacity: .45;
        filter: grayscale(1) brightness(.7);
    }
    40% {
        transform: scale(1.12);
        opacity: 1;
        filter: brightness(1.8) drop-shadow(0 0 24px #fff);
    }
    100% {
        transform: scale(1);
        opacity: 1;
        filter: brightness(1);
    }
}

@keyframes effectIconPop {
    0% { opacity: 0; transform: scale(.45); }
    30% { opacity: 1; transform: scale(1.2); }
    70% { opacity: .9; transform: scale(1); }
    100% { opacity: 0; transform: scale(.85); }
}

@keyframes chaosIcon {
    0% { opacity: 0; transform: scale(.4) rotate(0deg); }
    30% { opacity: 1; transform: scale(1.25) rotate(180deg); }
    100% { opacity: 0; transform: scale(.8) rotate(360deg); }
}

@keyframes reviveIcon {
    0% { opacity: 0; transform: scale(.3); }
    35% { opacity: 1; transform: scale(1.35); }
    100% { opacity: 0; transform: scale(1.8); }
}
/* Arena Intro */

#arenaIntro {
    position: fixed;
    inset: 0;

    background: rgba(0,0,0,.85);

    z-index: 99999;

    display: flex;
    align-items: center;
    justify-content: center;
}

#arenaIntro video {
    width: min(90%, 1100px);
    max-height: 75vh;

    object-fit: contain;

    border-radius: 22px;

    box-shadow:
        0 0 40px rgba(255,0,0,.45),
        0 0 90px rgba(0,0,0,.8);

    border: 2px solid rgba(255,50,50,.35);

    background: black;
}

#skipIntro {
    position: absolute;

    right: 30px;
    bottom: 30px;

    background:
        linear-gradient(
            135deg,
            #5a0000,
            #d00000
        );

    color: white;

    border: 1px solid #ff5555;
    border-radius: 14px;

    padding: 12px 20px;

    font-weight: bold;

    cursor: pointer;
}
.fight-arena-label {
    display: block;
    margin-top: 6px;
    color: #ffb347;
    font-size: 13px;
    font-weight: bold;
}

.fight-arena-preview {
    height: 74px;
    margin: 12px 0;
    border-radius: 12px;

    background-size: cover;
    background-position: center;

    border: 1px solid rgba(255,255,255,.15);

    display: flex;
    align-items: flex-end;
    overflow: hidden;
}

.fight-arena-preview span {
    width: 100%;
    padding: 8px 10px;

    background: linear-gradient(
        transparent,
        rgba(0,0,0,.85)
    );

    color: white;
    font-size: 13px;
    font-weight: bold;
}
.arena-hero-v2 {
    display: grid;
    grid-template-columns: 1.4fr .8fr;
    gap: 22px;
    align-items: stretch;
    margin-bottom: 28px;
    padding: 30px;
    border-radius: 28px;
    background:
        radial-gradient(circle at top left, rgba(255,0,0,.22), transparent 36%),
        linear-gradient(145deg, rgba(24,24,24,.96), rgba(8,8,8,.98));
    border: 1px solid rgba(255,0,0,.32);
    box-shadow: 0 0 40px rgba(180,0,0,.18);
}

.arena-kicker {
    color: #ff4444;
    font-weight: 900;
    text-transform: uppercase;
    font-size: 13px;
    letter-spacing: 1px;
}

.arena-hero-content h1 {
    margin: 8px 0 10px;
    font-size: 42px;
}

.arena-hero-content p {
    color: #aaa;
    max-width: 620px;
    line-height: 1.5;
}

.arena-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 20px;
}

.arena-button.secondary {
    background: #1b1b1b;
    border-color: rgba(255,255,255,.14);
}

.arena-button.secondary:hover {
    border-color: rgba(255,0,0,.55);
}

.arena-hero-stats {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}

.arena-hero-stats div {
    background: rgba(255,255,255,.055);
    border: 1px solid rgba(255,255,255,.10);
    border-radius: 18px;
    padding: 16px;
    text-align: center;
}

.arena-hero-stats strong {
    display: block;
    font-size: 32px;
    color: #ff4444;
    font-weight: 900;
}

.arena-hero-stats span {
    color: #aaa;
    font-weight: 800;
}

@media(max-width: 850px) {
    .arena-hero-v2 {
        grid-template-columns: 1fr;
    }

    .arena-hero-content h1 {
        font-size: 32px;
    }
}
.arena-left h2,
.arena-right h2 {
    margin-top: 0;
    color: #ff5555;
}

.open-fights {
    display: grid;
    gap: 16px;
}

.premium-fight {
    background:
        radial-gradient(circle at top left, rgba(255,0,0,.14), transparent 35%),
        linear-gradient(145deg, rgba(20,20,20,.98), rgba(7,7,7,.98));
    border: 1px solid rgba(255,255,255,.10);
    border-radius: 22px;
    padding: 20px;
    transition: .15s;
}

.premium-fight:hover {
    transform: translateY(-2px);
    border-color: rgba(255,0,0,.55);
    box-shadow: 0 0 26px rgba(180,0,0,.18);
}

.fight-header h3 {
    font-size: 22px;
    margin: 0 0 8px;
}

.fight-header span {
    display: inline-block;
    margin-right: 8px;
    color: #aaa;
    font-weight: 800;
}

.fight-arena-label {
    background: rgba(255,255,255,.06);
    border: 1px solid rgba(255,255,255,.10);
    border-radius: 999px;
    padding: 5px 10px;
    margin-top: 8px;
}

.fight-time {
    background: rgba(255,0,0,.13);
    border: 1px solid rgba(255,80,80,.35);
    color: #ffd6d6;
    border-radius: 999px;
    padding: 7px 11px;
    font-weight: 900;
}

.fight-cards {
    display: flex;
    gap: 10px;
    margin: 18px 0;
}

.fight-cards .mini-card {
    width: 62px;
    border-radius: 10px;
    box-shadow: 0 0 14px rgba(0,0,0,.45);
    transition: .15s;
}

.premium-fight:hover .mini-card {
    transform: translateY(-3px);
}

.fight-own {
    background: rgba(255,180,70,.10);
    border: 1px solid rgba(255,180,70,.25);
    border-radius: 12px;
    padding: 11px;
    color: #ffd36a;
    font-weight: 800;
    text-align: center;
}
.battle-xp-result {
    margin-top: 16px;
    padding: 14px 16px;
    border-radius: 14px;
    background: rgba(255, 180, 0, .12);
    border: 1px solid rgba(255, 180, 0, .35);
    color: #ffd36a;
    font-weight: 900;
    text-align: center;
}
/* ==================================================
   Battle.php: kompakte Spielernamen im Arenabild
   Bewusst nur direkte Badges des Battle-Boards.
================================================== */
.battle-arena-board > .battle-player-badge {
    position: relative;
    z-index: 3;
    display: flex !important;
    align-items: center;
    gap: 7px;
    min-width: 0;
    width: max-content;
    max-width: 100%;
    padding: 5px 9px !important;
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 10px;
    background: rgba(8, 8, 10, .82) !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, .35);
    overflow: hidden;
}

.battle-arena-board > .battle-board-name-left {
    justify-self: start;
}

.battle-arena-board > .battle-board-name-right {
    justify-self: end;
    flex-direction: row-reverse;
}

.battle-arena-board > .battle-player-badge > .battle-player-avatar {
    display: grid;
    place-items: center;
    flex: 0 0 24px;
    width: 24px;
    height: 24px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .22);
    border-radius: 50%;
    background: #280b0b;
    color: #fff;
    font-size: 10px;
    font-weight: 900;
    line-height: 1;
}

.battle-arena-board > .battle-player-badge > .battle-player-avatar img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.battle-arena-board > .battle-player-badge > .battle-player-label {
    display: block;
    min-width: 0;
    max-width: 210px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 13px;
    font-weight: 900;
    line-height: 1.2;
    color: #fff;
    text-shadow: 0 2px 5px #000;
}

@media (max-width: 800px) {
    .battle-arena-board > .battle-player-badge {
        justify-self: center;
        width: auto;
        max-width: min(100%, 260px);
    }

    .battle-arena-board > .battle-board-name-right {
        flex-direction: row;
    }

    .battle-arena-board > .battle-player-badge > .battle-player-avatar {
        flex-basis: 22px;
        width: 22px;
        height: 22px;
    }

    .battle-arena-board > .battle-player-badge > .battle-player-label {
        max-width: 210px;
        font-size: 12px;
    }
}

/* --------------------------------------------------------------------------
   Arena 1.1 – Live offene Kämpfe
   -------------------------------------------------------------------------- */
.arena-live-tools {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 14px;
}

.arena-live-indicator {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 3px;
    min-width: 150px;
}

.arena-live-indicator small {
    color: rgba(255, 255, 255, .48);
    font-size: .68rem;
    line-height: 1.2;
    white-space: nowrap;
}

.arena-live-state {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: rgba(255, 255, 255, .72);
    font-size: .74rem;
    font-weight: 900;
    letter-spacing: .04em;
}

.arena-live-state::before {
    content: "";
    width: 8px;
    height: 8px;
    flex: 0 0 8px;
    border-radius: 50%;
    background: #999;
}

.arena-live-state.is-live::before {
    background: #2ee47d;
    box-shadow: 0 0 0 4px rgba(46, 228, 125, .11), 0 0 13px rgba(46, 228, 125, .68);
    animation: arenaLivePulse 2s ease-in-out infinite;
}

.arena-live-state.is-loading::before {
    background: #f1b943;
    box-shadow: 0 0 11px rgba(241, 185, 67, .55);
}

.arena-live-state.is-error {
    color: #ff9292;
}

.arena-live-state.is-error::before {
    background: #ef4450;
    box-shadow: 0 0 11px rgba(239, 68, 80, .55);
}

#openFightsContent {
    transition: opacity .18s ease, transform .18s ease;
}

#openFightsContent.live-fights-updating {
    opacity: .55;
    transform: translateY(3px);
}

.arena-fight-card.live-fight-new {
    animation: arenaLiveFightIn .7s cubic-bezier(.2, .8, .2, 1) both;
}

.arena-fight-card.live-fight-removing {
    pointer-events: none;
    animation: arenaLiveFightOut .26s ease forwards;
}

@keyframes arenaLivePulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(.78); opacity: .68; }
}

@keyframes arenaLiveFightIn {
    from {
        opacity: 0;
        transform: translateY(-14px) scale(.985);
        filter: brightness(1.35);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
        filter: brightness(1);
    }
}

@keyframes arenaLiveFightOut {
    to {
        opacity: 0;
        transform: translateY(10px) scale(.985);
        max-height: 0;
        margin: 0;
        padding-top: 0;
        padding-bottom: 0;
    }
}

@media (max-width: 700px) {
    .arena-live-tools {
        width: 100%;
        justify-content: space-between;
    }

    .arena-live-indicator {
        align-items: flex-start;
        min-width: 0;
    }

    .arena-live-indicator small {
        white-space: normal;
    }
}

@media (prefers-reduced-motion: reduce) {
    .arena-live-state.is-live::before,
    .arena-fight-card.live-fight-new,
    .arena-fight-card.live-fight-removing {
        animation: none;
    }
}

/* Arena Update: Meine aktiven Kämpfe */
.arena-my-fights-list {
    display: grid;
    gap: 12px;
}

.arena-my-fight-card {
    display: grid;
    gap: 10px;
    padding: 15px;
    border: 1px solid rgba(255,255,255,.1);
    border-radius: 14px;
    background: rgba(255,255,255,.035);
}

.arena-my-fight-card.is-ready {
    border-color: rgba(65, 220, 130, .42);
    background: linear-gradient(135deg, rgba(33, 130, 78, .18), rgba(255,255,255,.025));
}

.arena-my-fight-card.is-waiting {
    border-color: rgba(255, 194, 61, .3);
}

.arena-my-fight-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.arena-my-fight-number {
    width: 28px;
    height: 28px;
    display: inline-grid;
    place-items: center;
    border-radius: 50%;
    background: rgba(255,255,255,.08);
    font-weight: 800;
}

.arena-my-fight-status {
    font-size: .84rem;
    font-weight: 800;
}

.arena-my-fight-card > span,
.arena-my-fight-card > strong {
    display: block;
}

.arena-my-fight-card > span {
    color: rgba(255,255,255,.68);
    font-size: .9rem;
}

.arena-my-fights-footer {
    display: grid;
    gap: 10px;
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid rgba(255,255,255,.09);
}

.arena-empty-state--compact {
    min-height: 0;
    padding: 20px 12px;
}

.arena-cancel-fight-form {
    margin: 0;
}


/* Rollen und Fähigkeiten in der Kartenwahl */
.select-card-stats {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 4px;
    font-weight: 800;
}

.select-card-meta {
    display: grid;
    gap: 5px;
    margin-top: 8px;
}

.select-card-role,
.select-card-ability {
    display: block;
    padding: 4px 7px;
    border: 1px solid rgba(255,255,255,.13);
    border-radius: 8px;
    background: rgba(0,0,0,.48);
    color: rgba(255,255,255,.88);
    font-size: 11px;
    font-weight: 800;
    line-height: 1.25;
    overflow-wrap: anywhere;
}

.select-card-ability {
    color: rgba(255,224,145,.95);
}

/* ========================================================================== */
/* Arena-Favoriten                                                            */
/* ========================================================================== */
.arena-loadout-panel,
.arena-battle-loadout {
    margin: 12px 0 7px;
    padding: 11px 12px;
    border: 1px solid rgba(255, 208, 92, .18);
    border-radius: 16px;
    background:
        linear-gradient(135deg, rgba(91, 57, 10, .22), rgba(20, 12, 12, .55)),
        rgba(8, 8, 10, .6);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.04);
}

.arena-loadout-panel__head,
.arena-battle-loadout__head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 9px;
    margin-bottom: 8px;
}

.arena-loadout-panel__head > div,
.arena-battle-loadout__head > div,
.arena-loadout-save > div:first-child {
    display: grid;
    gap: 3px;
}

.arena-loadout-panel__head strong,
.arena-battle-loadout__head strong,
.arena-loadout-save strong {
    color: #fff2bd;
    font-size: .94rem;
}

.arena-loadout-panel__head span,
.arena-battle-loadout__head span,
.arena-loadout-save span,
.arena-battle-loadout small {
    color: rgba(255,255,255,.62);
    font-size: .76rem;
    line-height: 1.4;
}

.arena-loadout-count {
    flex: 0 0 auto;
    padding: 3px 8px;
    border: 1px solid rgba(255,213,105,.18);
    border-radius: 999px;
    background: rgba(255,213,105,.08);
    color: #ffe08a !important;
    font-weight: 900;
}

.arena-loadout-toolbar,
.arena-battle-loadout__controls {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    gap: 8px;
    align-items: center;
}

.arena-battle-loadout__controls {
    grid-template-columns: minmax(0, 1fr) auto;
}

.arena-loadout-toolbar select,
.arena-battle-loadout select,
.arena-loadout-save input[type="text"] {
    width: 100%;
    min-width: 0;
    min-height: 38px;
    padding: 7px 10px;
    border: 1px solid rgba(255,255,255,.11);
    border-radius: 11px;
    outline: none;
    background: rgba(0,0,0,.42);
    color: #fff;
}

.arena-loadout-toolbar select:focus,
.arena-battle-loadout select:focus,
.arena-loadout-save input[type="text"]:focus {
    border-color: rgba(255,208,92,.5);
    box-shadow: 0 0 0 3px rgba(255,208,92,.08);
}

.arena-loadout-small-btn {
    min-height: 38px;
    padding: 7px 10px !important;
    white-space: nowrap;
}

.arena-loadout-message,
.arena-battle-loadout__message {
    min-height: 16px;
    margin-top: 5px;
    color: rgba(255,255,255,.66);
    font-size: .76rem;
}

.arena-loadout-message.is-success,
.arena-battle-loadout__message.is-success { color: #83efad; }
.arena-loadout-message.is-warning,
.arena-battle-loadout__message.is-warning { color: #ffd777; }
.arena-loadout-message.is-error,
.arena-battle-loadout__message.is-error { color: #ff8d8d; }

/* Kompakte Favoritenauswahl im Kampf-Erstellen-Dialog */
.arena-loadout-panel--compact {
    margin: 9px 0 3px;
    padding: 8px 9px;
    border-radius: 12px;
}

.arena-loadout-panel--compact .arena-loadout-panel__head {
    align-items: center;
    margin-bottom: 6px;
}

.arena-loadout-panel--compact .arena-loadout-panel__head strong {
    font-size: .86rem;
}

.arena-loadout-panel--compact .arena-loadout-count {
    font-size: .68rem;
    line-height: 1;
}

.arena-loadout-toolbar--compact {
    grid-template-columns: minmax(150px, 1fr) auto auto;
    gap: 6px;
}

.arena-loadout-panel--compact select,
.arena-loadout-panel--compact .arena-button {
    min-height: 36px;
}

.arena-loadout-panel--compact select {
    padding: 6px 9px;
    font-size: .82rem;
}

.arena-loadout-direct-start {
    padding: 7px 13px !important;
    font-size: .82rem;
    white-space: nowrap;
}

.arena-loadout-manage {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.arena-loadout-icon-btn {
    width: 36px;
    min-width: 36px;
    min-height: 36px !important;
    padding: 0 !important;
    display: inline-grid;
    place-items: center;
    font-size: .92rem;
}

.arena-loadout-panel--compact .arena-loadout-message {
    margin-top: 4px;
    min-height: 0;
    font-size: .7rem;
}

.arena-loadout-panel--compact .arena-loadout-message:empty {
    display: none;
}

.arena-loadout-save {
    display: grid;
    gap: 12px;
    margin-top: 18px;
    padding: 14px;
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 14px;
    background: rgba(255,255,255,.035);
}

.arena-loadout-save__fields {
    display: grid;
    grid-template-columns: minmax(160px, 1fr) auto auto;
    gap: 10px;
    align-items: center;
}

.arena-loadout-default {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-height: 42px;
    padding: 0 11px;
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 11px;
    background: rgba(0,0,0,.24);
    cursor: pointer;
    white-space: nowrap;
}

.arena-loadout-default input {
    accent-color: #d62d2d;
}

.arena-battle-loadout {
    max-width: 900px;
    margin-inline: auto;
}

@media (max-width: 760px) {
    .arena-loadout-toolbar:not(.arena-loadout-toolbar--compact),
    .arena-battle-loadout__controls,
    .arena-loadout-save__fields {
        grid-template-columns: 1fr;
    }

    .arena-loadout-toolbar--compact {
        grid-template-columns: minmax(0, 1fr) auto;
    }

    .arena-loadout-toolbar--compact .arena-loadout-manage {
        grid-column: 1 / -1;
        justify-content: flex-end;
    }

    .arena-loadout-toolbar:not(.arena-loadout-toolbar--compact) .arena-button,
    .arena-battle-loadout .arena-button,
    .arena-loadout-save .arena-button {
        width: 100%;
    }

    .arena-loadout-direct-start {
        width: auto !important;
    }

    .arena-loadout-default {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .arena-loadout-toolbar--compact {
        grid-template-columns: 1fr;
    }

    .arena-loadout-direct-start {
        width: 100% !important;
    }

    .arena-loadout-toolbar--compact .arena-loadout-manage {
        grid-column: auto;
        justify-content: flex-end;
    }
}
