/* Hier habe ich einiges selbstgemacht aber mit hilfe von KI auch */

/* Seiten-Grundeinstellungen */
* {
    box-sizing: border-box;
}

body {
    margin: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 24px;
    min-height: 100vh;
    background: radial-gradient(circle at center, #1a1a2e 0%, #16213e 100%);
    font-family: 'Outfit', sans-serif;
    color: #fff;
    overflow: hidden;
}

/* Das Spielfeld (Canvas) */
canvas {
    display: block;
    background: #000;
    border-radius: 8px;
    box-shadow: 0 0 40px rgba(0, 102, 255, 0.3);
}

/* ─── Legende ─────────────────────────────────── */
.legend {
    width: 200px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 18px 16px;
    backdrop-filter: blur(8px);
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.legend h2 {
    margin: 0 0 4px 0;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.5);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 8px;
}

/* Eine Zeile in der Legende */
.legend-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.legend-item-header {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    font-size: 13px;
}

/* Farbige Vorschau-Box für den Gegner */
.legend-color {
    width: 14px;
    height: 14px;
    border-radius: 3px;
    flex-shrink: 0;
}

/* Werte-Tabelle pro Gegner */
.legend-stats {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 2px 8px;
    font-size: 11px;
    color: rgba(255, 255, 255, 0.65);
    padding-left: 22px;
}

.legend-stats span:nth-child(odd) {
    color: rgba(255, 255, 255, 0.4);
}

/* Trennlinie zwischen Einträgen */
.legend-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.08);
}

/* Schild-Eintrag */
.legend-shield-header {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    font-size: 13px;
    color: #00f2ff;
}

.legend-shield-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #00f2ff;
    box-shadow: 0 0 8px #00f2ff;
    flex-shrink: 0;
}

.legend-shield-desc {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.55);
    padding-left: 22px;
    line-height: 1.4;
}