body {
    margin: 0;
    font-family: Arial, sans-serif;
    background: #111827;
    color: #f3f4f6;
}

a {
    color: #e5e7eb;
    text-decoration: none;
    font-weight: 500;
}

a:visited {
    color: #e5e7eb;
}

a:hover {
    color: #60a5fa;
    text-decoration: underline;
}

a:active {
    color: #93c5fd;
}

.table a,
.main-nav a,
.logo a {
    color: #e5e7eb;
}

.table a:visited,
.main-nav a:visited,
.logo a:visited {
    color: #e5e7eb;
}

.table a:hover,
.main-nav a:hover,
.logo a:hover {
    color: #60a5fa;
}

header {
    background: #0f172a;
    padding: 16px 24px;
    border-bottom: 1px solid #1f2937;
}

.main-header {
    background: #0f172a;
    border-bottom: 1px solid #1f2937;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 18px;
    gap: 20px;
    flex-wrap: wrap;
}

.logo a {
    font-weight: 900;
    font-size: 24px;
    color: #f1f5f9;
    text-decoration: none;
    letter-spacing: -.03em;
    background: linear-gradient(135deg, #60a5fa, #a78bfa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.main-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
}

.main-nav a {
    text-decoration: none;
    color: #e5e7eb;
    font-size: 14px;
}

.nav-divider {
    height: 18px;
    border-left: 1px solid #374151;
    display: inline-block;
}

/* ── Dropdown nav ── */
.nav-dropdown {
    position: relative;
}

.nav-dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 5px;
    cursor: pointer;
    color: #e5e7eb;
    font-size: 14px;
    text-decoration: none;
    padding: 4px 0;
    user-select: none;
    white-space: nowrap;
}

.nav-dropdown-toggle:hover {
    color: #60a5fa;
}

.nav-dropdown-toggle .dd-arrow {
    font-size: 9px;
    opacity: .6;
    transition: transform .2s;
}

.nav-dropdown:hover .dd-arrow,
.nav-dropdown:focus-within .dd-arrow {
    transform: rotate(180deg);
}

.nav-dropdown-menu {
    display: none;
    position: absolute;
    top: calc(100% + 10px);
    left: 50%;
    transform: translateX(-50%);
    background: #0f172a;
    border: 1px solid #1f2937;
    border-radius: 10px;
    padding: 8px 0;
    min-width: 160px;
    z-index: 1000;
    box-shadow: 0 8px 24px rgba(0,0,0,.5);
}

.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu {
    display: block;
}

.nav-dropdown-menu a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    color: #d1d5db;
    font-size: 13px;
    text-decoration: none;
    white-space: nowrap;
    transition: background .15s, color .15s;
}

.nav-dropdown-menu a:hover {
    background: #1f2937;
    color: #60a5fa;
}

.nav-dropdown-menu .dd-divider {
    height: 1px;
    background: #1f2937;
    margin: 6px 0;
}

.badge {
    background: #ef4444;
    color: white;
    font-size: 11px;
    padding: 2px 6px;
    border-radius: 6px;
    margin-left: 4px;
}

.container,
.main-content {
    max-width: 1100px;
    margin: 0 auto;
    padding: 24px;
}

.card {
    background: #1f2937;
    border: 1px solid #374151;
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 16px;
}

h1, h2, h3 {
    margin-top: 0;
}

input, select, button, textarea {
    width: 100%;
    padding: 10px;
    margin-top: 6px;
    margin-bottom: 14px;
    border-radius: 8px;
    border: 1px solid #4b5563;
    background: #111827;
    color: #f3f4f6;
    box-sizing: border-box;
}

button {
    cursor: pointer;
    background: #2563eb;
    border: none;
}

button:hover {
    background: #1d4ed8;
}

.button-inline,
.button-small,
.button-link {
    display: inline-block;
    width: auto;
    padding: 8px 14px;
    margin: 0;
    border-radius: 8px;
}

.button-link {
    background: #2563eb;
    color: white !important;
    text-decoration: none !important;
    font-size: 13px;
}

.button-link:visited {
    color: white !important;
}

.button-link:hover {
    background: #1d4ed8;
    color: white !important;
    text-decoration: none !important;
}

.button-danger {
    background: #b91c1c;
}


.event-history-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.event-history-card {
    border: 1px solid #334155;
    border-radius: 14px;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.72), rgba(30, 41, 59, 0.72));
    padding: 16px 18px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
}

.event-history-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 10px;
}

.event-history-title {
    font-size: 18px;
    font-weight: 800;
    color: #f8fafc;
    line-height: 1.2;
    margin: 0 0 4px 0;
}

.event-history-date {
    font-size: 12px;
    color: #94a3b8;
}

.event-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 11px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
    border: 1px solid transparent;
    white-space: nowrap;
}

.event-positive {
    background: rgba(34, 197, 94, 0.14);
    color: #86efac;
    border-color: rgba(34, 197, 94, 0.35);
}

.event-negative {
    background: rgba(239, 68, 68, 0.14);
    color: #fca5a5;
    border-color: rgba(239, 68, 68, 0.35);
}

.event-history-content {
    margin-top: 8px;
    color: #e5e7eb;
    line-height: 1.55;
    white-space: pre-line;
}

.event-impact-wrap {
    margin-top: 14px;
}

.event-impact-label {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #94a3b8;
    margin-bottom: 8px;
}

.event-impact-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.event-impact-chip {
    display: inline-flex;
    align-items: center;
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    border: 1px solid #334155;
    background: rgba(15, 23, 42, 0.55);
    color: #e2e8f0;
}

.event-impact-chip.positive {
    border-color: rgba(34, 197, 94, 0.35);
    color: #86efac;
    background: rgba(34, 197, 94, 0.10);
}

.event-impact-chip.negative {
    border-color: rgba(239, 68, 68, 0.35);
    color: #fca5a5;
    background: rgba(239, 68, 68, 0.10);
}

.event-history-footer {
    margin-top: 14px;
    padding-top: 10px;
    border-top: 1px solid rgba(148, 163, 184, 0.14);
    font-size: 12px;
    color: #64748b;
}

@media (max-width: 700px) {
    .event-history-header {
        flex-direction: column;
        align-items: flex-start;
    }
}

.button-danger:hover {
    background: #991b1b;
}

.table {
    width: 100%;
    border-collapse: collapse;
}

.table th,
.table td {
    border: 1px solid #374151;
    padding: 10px;
    text-align: left;
    vertical-align: top;
}

.alert {
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 16px;
}

.alert-success {
    background: #065f46;
}

.alert-error {
    background: #7f1d1d;
}

.inbox-toolbar {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 16px;
}

.filter-links {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.filter-link {
    display: inline-block;
    padding: 8px 12px;
    border-radius: 999px;
    background: #1f2937;
    color: #f3f4f6;
    text-decoration: none;
    border: 1px solid #374151;
}

.filter-link.active {
    background: #2563eb;
    border-color: #2563eb;
}

.message-card {
    border-left: 6px solid #4b5563;
}

.message-card.match {
    border-left-color: #2563eb;
}

.message-card.training {
    border-left-color: #16a34a;
}

.message-card.transfer {
    border-left-color: #d97706;
}

.message-card.system {
    border-left-color: #7c3aed;
}

.message-card.general {
    border-left-color: #6b7280;
}

.message-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 10px;
}

.message-title-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.message-icon {
    font-size: 20px;
    line-height: 1;
}

.message-meta {
    color: #9ca3af;
    font-size: 14px;
}

.category-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: bold;
    border: 1px solid transparent;
}

.category-match {
    background: rgba(37, 99, 235, 0.15);
    color: #93c5fd;
    border-color: rgba(37, 99, 235, 0.4);
}

.category-training {
    background: rgba(22, 163, 74, 0.15);
    color: #86efac;
    border-color: rgba(22, 163, 74, 0.4);
}

.category-transfer {
    background: rgba(217, 119, 6, 0.15);
    color: #fcd34d;
    border-color: rgba(217, 119, 6, 0.4);
}

.category-system {
    background: rgba(124, 58, 237, 0.15);
    color: #c4b5fd;
    border-color: rgba(124, 58, 237, 0.4);
}

.category-general {
    background: rgba(107, 114, 128, 0.15);
    color: #d1d5db;
    border-color: rgba(107, 114, 128, 0.4);
}

.team-name {
    font-weight: 700;
}

.team-own {
    color: #38bdf8;
    font-weight: 800;
}

.team-own-row {
    background: rgba(56, 189, 248, 0.08);
}

.vs-separator {
    margin: 0 8px;
    color: #9ca3af;
    font-weight: 400;
}

.match-result-win {
    color: #86efac;
    font-weight: 700;
}

.match-result-loss {
    color: #fca5a5;
    font-weight: 700;
}

.match-result-draw {
    color: #fde68a;
    font-weight: 700;
}

.section-title {
    margin-top: 0;
    margin-bottom: 14px;
}

.main-footer {
    margin-top: 30px;
    padding: 12px;
    text-align: center;
    font-size: 12px;
    color: #9ca3af;
}

.round-log-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.round-card {
    background: #111827;
    border: 1px solid #374151;
    border-radius: 12px;
    padding: 14px;
}

.round-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid #374151;
}

.round-number {
    font-size: 18px;
    font-weight: 700;
    color: #f3f4f6;
}

.round-winner {
    margin-top: 4px;
    color: #d1d5db;
}

.round-alive-box {
    background: #1f2937;
    border: 1px solid #374151;
    border-radius: 10px;
    padding: 10px 12px;
    min-width: 180px;
    color: #d1d5db;
    font-size: 14px;
}

.round-headline {
    margin-bottom: 14px;
    color: #93c5fd;
    font-weight: 600;
}

.round-sections {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 14px;
}

.round-section {
    background: #1f2937;
    border: 1px solid #374151;
    border-radius: 10px;
    padding: 12px;
}

.round-section h3 {
    margin-top: 0;
    margin-bottom: 10px;
    font-size: 15px;
    color: #f3f4f6;
}

.round-event-list,
.round-dead-list {
    margin: 0;
    padding-left: 18px;
}

.round-event-list li,
.round-dead-list li {
    margin-bottom: 6px;
    line-height: 1.45;
    color: #e5e7eb;
}

@media (max-width: 900px) {
    .round-sections {
        grid-template-columns: 1fr;
    }

    .round-alive-box {
        min-width: auto;
        width: 100%;
    }
}

.round-log-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.round-card {
    border: 1px solid #374151;
    border-radius: 12px;
    padding: 14px;
    overflow: hidden;
}

.round-home-win {
    background: linear-gradient(180deg, rgba(37, 99, 235, 0.10), rgba(17, 24, 39, 1));
    border-left: 6px solid #60a5fa;
}

.round-away-win {
    background: linear-gradient(180deg, rgba(217, 119, 6, 0.10), rgba(17, 24, 39, 1));
    border-left: 6px solid #f59e0b;
}

.round-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid #374151;
}

.round-number {
    font-size: 18px;
    font-weight: 700;
    color: #f3f4f6;
}

.round-winner {
    margin-top: 6px;
    color: #d1d5db;
}

.round-winner-badge {
    display: inline-block;
    padding: 5px 10px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 700;
    margin-left: 6px;
}

.winner-home {
    background: rgba(37, 99, 235, 0.18);
    color: #93c5fd;
    border: 1px solid rgba(37, 99, 235, 0.45);
}

.winner-away {
    background: rgba(217, 119, 6, 0.18);
    color: #fcd34d;
    border: 1px solid rgba(217, 119, 6, 0.45);
}

.round-alive-box {
    background: #1f2937;
    border: 1px solid #374151;
    border-radius: 10px;
    padding: 10px 12px;
    min-width: 190px;
    color: #d1d5db;
    font-size: 14px;
}

.round-headline {
    margin-bottom: 12px;
    color: #e5e7eb;
    font-weight: 600;
}

.round-highlights {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 14px;
}

.round-highlight-item {
    padding: 10px 12px;
    border-radius: 10px;
    background: rgba(124, 58, 237, 0.14);
    border: 1px solid rgba(124, 58, 237, 0.35);
    color: #ddd6fe;
    font-weight: 600;
}

.round-sections {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 14px;
}

.round-section {
    background: #1f2937;
    border: 1px solid #374151;
    border-radius: 10px;
    padding: 12px;
}

.round-section h3 {
    margin-top: 0;
    margin-bottom: 10px;
    font-size: 15px;
    color: #f3f4f6;
}

.round-event-list,
.round-dead-list {
    margin: 0;
    padding-left: 0;
    list-style: none;
}

.round-event-list li,
.round-dead-list li {
    margin-bottom: 8px;
    line-height: 1.45;
    color: #e5e7eb;
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.kill-icon {
    flex: 0 0 auto;
    color: #f87171;
}

.death-icon {
    flex: 0 0 auto;
    color: #fca5a5;
}

@media (max-width: 900px) {
    .round-sections {
        grid-template-columns: 1fr;
    }

    .round-alive-box {
        min-width: auto;
        width: 100%;
    }
}

.round-log-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.round-card {
    border: 1px solid #374151;
    border-radius: 12px;
    padding: 14px;
    overflow: hidden;
}

.round-home-win {
    background: linear-gradient(180deg, rgba(37, 99, 235, 0.10), rgba(17, 24, 39, 1));
    border-left: 6px solid #60a5fa;
}

.round-away-win {
    background: linear-gradient(180deg, rgba(217, 119, 6, 0.10), rgba(17, 24, 39, 1));
    border-left: 6px solid #f59e0b;
}

.round-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid #374151;
}

.round-number {
    font-size: 18px;
    font-weight: 700;
    color: #f3f4f6;
}

.round-winner {
    margin-top: 6px;
    color: #d1d5db;
}

.round-winner-badge {
    display: inline-block;
    padding: 5px 10px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 700;
    margin-left: 6px;
}

.winner-home {
    background: rgba(37, 99, 235, 0.18);
    color: #93c5fd;
    border: 1px solid rgba(37, 99, 235, 0.45);
}

.winner-away {
    background: rgba(217, 119, 6, 0.18);
    color: #fcd34d;
    border: 1px solid rgba(217, 119, 6, 0.45);
}

.round-alive-box {
    background: #1f2937;
    border: 1px solid #374151;
    border-radius: 10px;
    padding: 10px 12px;
    min-width: 190px;
    color: #d1d5db;
    font-size: 14px;
}

.round-headline {
    margin-bottom: 12px;
    color: #e5e7eb;
    font-weight: 600;
}

.round-highlights {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 14px;
}

.round-highlight-item {
    padding: 10px 12px;
    border-radius: 10px;
    background: rgba(124, 58, 237, 0.14);
    border: 1px solid rgba(124, 58, 237, 0.35);
    color: #ddd6fe;
    font-weight: 600;
}

.round-sections {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 14px;
}

.round-section {
    background: #1f2937;
    border: 1px solid #374151;
    border-radius: 10px;
    padding: 12px;
}

.round-section h3 {
    margin-top: 0;
    margin-bottom: 10px;
    font-size: 15px;
    color: #f3f4f6;
}

.round-event-list,
.round-dead-list {
    margin: 0;
    padding-left: 0;
    list-style: none;
}

.round-event-list li,
.round-dead-list li {
    margin-bottom: 8px;
    line-height: 1.45;
    color: #e5e7eb;
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.kill-icon {
    flex: 0 0 auto;
    color: #f87171;
}

.death-icon {
    flex: 0 0 auto;
    color: #fca5a5;
}

@media (max-width: 900px) {
    .round-sections {
        grid-template-columns: 1fr;
    }

    .round-alive-box {
        min-width: auto;
        width: 100%;
    }
}

.rarity-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 999px;
    font-weight: 700;
    font-size: 12px;
    border: 1px solid transparent;
}

.rarity-common {
    background: rgba(107, 114, 128, 0.18);
    color: #d1d5db;
    border-color: rgba(107, 114, 128, 0.45);
}

.rarity-uncommon {
    background: rgba(34, 197, 94, 0.18);
    color: #86efac;
    border-color: rgba(34, 197, 94, 0.45);
}

.rarity-rare {
    background: rgba(59, 130, 246, 0.18);
    color: #93c5fd;
    border-color: rgba(59, 130, 246, 0.45);
}

.rarity-mythic {
    background: rgba(168, 85, 247, 0.18);
    color: #d8b4fe;
    border-color: rgba(168, 85, 247, 0.45);
}

.rarity-legendary {
    background: rgba(245, 158, 11, 0.18);
    color: #fde68a;
    border-color: rgba(245, 158, 11, 0.45);
}

.rarity-unique {
    background: rgba(239, 68, 68, 0.2);
    color: #fca5a5;
    border-color: rgba(239, 68, 68, 0.55);
    text-shadow: 0 0 6px rgba(239, 68, 68, 0.4);
    animation: uniqueGlow 2.4s ease-in-out infinite;
}

@keyframes uniqueGlow {
    0%, 100% { box-shadow: 0 0 0 rgba(239, 68, 68, 0); }
    50%      { box-shadow: 0 0 10px rgba(239, 68, 68, 0.35); }
}

/* PERFECT — höchstes Tier, gold + intensiver Glow */
.rarity-perfect {
    background: linear-gradient(135deg, rgba(251,191,36,0.25), rgba(253,224,71,0.18));
    color: #fde047;
    border-color: rgba(251,191,36,0.65);
    text-shadow: 0 0 8px rgba(251,191,36,0.5), 0 0 16px rgba(253,224,71,0.3);
    animation: perfectGlow 2.6s ease-in-out infinite;
    font-weight: 800;
}

@keyframes perfectGlow {
    0%, 100% { box-shadow: 0 0 0 rgba(251,191,36,0); }
    50%      { box-shadow: 0 0 14px rgba(251,191,36,0.55), 0 0 28px rgba(253,224,71,0.25); }
}

.league-zone-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    margin-right: 8px;
    border: 1px solid transparent;
}

.zone-promo {
    background: rgba(34, 197, 94, 0.18);
    color: #86efac;
    border-color: rgba(34, 197, 94, 0.45);
}

.zone-relegation {
    background: rgba(239, 68, 68, 0.18);
    color: #fca5a5;
    border-color: rgba(239, 68, 68, 0.45);
}

.league-promo-row {
    background: rgba(34, 197, 94, 0.07);
}

.league-relegation-row {
    background: rgba(239, 68, 68, 0.07);
}

.market-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 16px;
}

.market-card {
    background: #111827;
    border: 1px solid #374151;
    border-radius: 12px;
    padding: 14px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.market-card-top {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: flex-start;
}

.market-player-name {
    margin: 0 0 4px 0;
    font-size: 18px;
}

.market-real-name {
    color: #9ca3af;
    font-size: 13px;
}

.market-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    color: #d1d5db;
    font-size: 14px;
}

.market-stats {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 8px;
}

.market-stats div {
    background: #1f2937;
    border: 1px solid #374151;
    border-radius: 8px;
    padding: 8px;
    text-align: center;
    font-size: 13px;
}

.market-price-box {
    background: #1f2937;
    border: 1px solid #374151;
    border-radius: 10px;
    padding: 10px 12px;
}

.market-footer {
    display: flex;
    flex-direction: column;
    gap: 4px;
    color: #d1d5db;
    font-size: 14px;
}

.market-actions {
    margin-top: auto;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.market-own-label {
    color: #9ca3af;
    font-weight: 700;
}

.button-danger {
    background: #b91c1c;
}

.button-danger:hover {
    background: #991b1b;
}

.passive-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    border: 1px solid transparent;
}

.passive-positive {
    background: rgba(34, 197, 94, 0.18);
    color: #86efac;
    border-color: rgba(34, 197, 94, 0.45);
}

.passive-neutral {
    background: rgba(59, 130, 246, 0.18);
    color: #93c5fd;
    border-color: rgba(59, 130, 246, 0.45);
}

.passive-negative {
    background: rgba(239, 68, 68, 0.18);
    color: #fca5a5;
    border-color: rgba(239, 68, 68, 0.45);
}

.passive-legendary {
    position: relative;
    background: linear-gradient(135deg, #fde68a 0%, #fbbf24 35%, #f59e0b 70%, #fbbf24 100%);
    background-size: 200% 100%;
    color: #0f172a !important;
    border: 2px solid #fbbf24 !important;
    border-radius: 6px !important;
    padding: 5px 14px !important;
    font-weight: 900 !important;
    letter-spacing: 0.04em !important;
    text-transform: uppercase;
    font-size: 11px !important;
    text-shadow: 0 1px 0 rgba(255, 215, 100, 0.5);
    box-shadow:
        0 0 18px rgba(251, 191, 36, 0.7),
        0 0 36px rgba(251, 191, 36, 0.4),
        0 2px 6px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.5);
    animation: passiveLegendaryGlow 2.4s ease-in-out infinite, legendaryShimmer 3.5s linear infinite;
    overflow: hidden;
    z-index: 1;
}
.passive-legendary::before {
    content: '';
    position: absolute; inset: 0;
    background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,.6) 50%, transparent 70%);
    background-size: 250% 100%;
    animation: legendaryShine 2.8s ease-in-out infinite;
    pointer-events: none;
    z-index: -1;
}

@keyframes passiveLegendaryGlow {
    0%, 100% {
        box-shadow:
            0 0 18px rgba(251, 191, 36, 0.7),
            0 0 36px rgba(251, 191, 36, 0.4),
            0 2px 6px rgba(0, 0, 0, 0.4),
            inset 0 1px 0 rgba(255, 255, 255, 0.5);
    }
    50% {
        box-shadow:
            0 0 28px rgba(251, 191, 36, 0.95),
            0 0 60px rgba(251, 191, 36, 0.6),
            0 0 100px rgba(245, 158, 11, 0.3),
            0 2px 6px rgba(0, 0, 0, 0.4),
            inset 0 1px 0 rgba(255, 255, 255, 0.6);
    }
}
@keyframes legendaryShimmer {
    0%   { background-position: 0% 0%; }
    100% { background-position: 200% 0%; }
}
@keyframes legendaryShine {
    0%   { background-position: -100% 0; }
    50%  { background-position:  200% 0; }
    100% { background-position:  200% 0; }
}

@media (max-width: 900px) {
    .roster-live-grid {
        grid-template-columns: 1fr !important;
    }
}

/* ── Roster Table ─────────────────────────────────────── */
.roster-radar-canvas {
    display: block;
    margin: 0 auto;
    width: 88px !important;
    height: 88px !important;
}
.roster-table {
    table-layout: fixed;
    width: 100%;
    border-collapse: collapse;
}
.roster-table th,
.roster-table td {
    padding: 10px 10px;
    vertical-align: middle;
}

/* column widths */
.rc-check   { width: 40px;  text-align: center; }
.rc-player  { width: 170px; }
.rc-stats   { width: 200px; }
.rc-perks   { width: 160px; }
.rc-radar   { width: 96px;  text-align: center; }
.rc-status  { width: 140px; }
.rc-action  { width: 150px; }

/* player cell */
.rc-player-name {
    font-weight: 600;
    font-size: 14px;
    color: #e5e7eb;
    text-decoration: none;
}
.rc-player-name:hover { color: #60a5fa; }
.rc-player-sub {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 4px;
    flex-wrap: wrap;
}
.rc-role-badge {
    font-size: 11px;
    color: #9ca3af;
    background: rgba(75,85,99,0.4);
    border-radius: 4px;
    padding: 1px 6px;
}

/* stat block */
.rc-ovr {
    font-size: 22px;
    font-weight: 800;
    line-height: 1;
    color: #f9fafb;
    margin-bottom: 6px;
}
.rc-ovr span {
    font-size: 11px;
    font-weight: 500;
    color: #6b7280;
    margin-left: 3px;
}
.rc-stat-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3px 6px;
}
.rc-stat-item {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}
.rc-stat-label {
    font-size: 9px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #6b7280;
    line-height: 1;
}
.rc-stat-value {
    font-size: 13px;
    font-weight: 600;
    color: #d1d5db;
    line-height: 1.3;
}
.rc-stat-value.low  { color: #f87171; }
.rc-stat-value.mid  { color: #fbbf24; }
.rc-stat-value.high { color: #4ade80; }

/* perks cell */
.rc-perk-row {
    display: flex;
    flex-direction: column;
    gap: 5px;
}
.rc-perk-label {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #6b7280;
    margin-bottom: 1px;
}

/* status cell */
.rc-status-text {
    font-size: 13px;
    font-weight: 600;
    color: #e5e7eb;
}
.rc-status-info {
    font-size: 11px;
    color: #9ca3af;
    margin-top: 3px;
    line-height: 1.3;
}

.button-danger {
    background: #b91c1c;
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 8px 12px;
    font-weight: 700;
    cursor: pointer;
}

.button-danger:hover {
    background: #991b1b;
}

/* ── Upgrade Cards ────────────────────────────────────── */
.upgrade-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
    margin-top: 4px;
}

.upgrade-card {
    background: rgba(17, 24, 39, 0.6);
    border: 1px solid #374151;
    border-radius: 12px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    transition: border-color 0.2s;
}
.upgrade-card:hover {
    border-color: #4b5563;
}

.upgrade-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 8px;
}
.upgrade-name {
    font-size: 15px;
    font-weight: 700;
    color: #f3f4f6;
    line-height: 1.3;
}
.upgrade-level-badge {
    flex-shrink: 0;
    font-size: 11px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 999px;
    background: rgba(55, 65, 81, 0.8);
    color: #9ca3af;
    white-space: nowrap;
}
.upgrade-level-badge.has-level {
    background: rgba(59, 130, 246, 0.2);
    color: #93c5fd;
    border: 1px solid rgba(59, 130, 246, 0.35);
}

.upgrade-desc {
    font-size: 12px;
    color: #9ca3af;
    line-height: 1.45;
    margin: 0;
}

.upgrade-effect-block {
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid #1f2937;
    border-radius: 8px;
    padding: 10px 12px;
    display: flex;
    flex-direction: column;
    gap: 5px;
    flex: 1;
}
.upgrade-effect-label {
    font-size: 9px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #6b7280;
    margin-bottom: 2px;
}
.upgrade-effect-value {
    font-size: 22px;
    font-weight: 800;
    line-height: 1;
    display: flex;
    align-items: baseline;
    gap: 6px;
}
.upgrade-effect-stat {
    font-size: 11px;
    font-weight: 500;
    color: #6b7280;
}
.upgrade-current-bonus {
    font-size: 12px;
    color: #d1d5db;
    margin-top: 4px;
}
.upgrade-next-bonus {
    font-size: 12px;
    color: #9ca3af;
}

.upgrade-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: auto;
    padding-top: 8px;
    border-top: 1px solid #1f2937;
}
.upgrade-cost {
    font-size: 14px;
    font-weight: 700;
    color: #fbbf24;
}
.upgrade-cost-low {
    color: #ef4444;
}
.upgrade-buy-btn {
    background: #2563eb;
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 7px 14px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.15s;
}
.upgrade-buy-btn:hover:not(:disabled) {
    background: #1d4ed8;
}
.upgrade-buy-btn:disabled {
    background: #374151;
    color: #6b7280;
    cursor: not-allowed;
}

.next-match-highlight {
    border: 1px solid #374151;
    border-radius: 12px;
    background: rgba(17, 24, 39, 0.35);
    padding: 14px 16px;
}

.round-event-item {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 8px;
    line-height: 1.4;
}

.round-event-item .kill-icon {
    min-width: 22px;
    text-align: center;
}

.round-event-item.type-kill .kill-icon {
    filter: none;
}

.round-event-item.type-assist .kill-icon,
.round-event-item.type-tactical .kill-icon,
.round-event-item.type-missplay .kill-icon,
.round-event-item.type-momentum .kill-icon {
    opacity: 0.95;
}

/* ═══════════════════════════════════════════════════════════════════
   UNIQUE-PASSIVE GLOBAL STYLING
   ═══════════════════════════════════════════════════════════════════
   Wiederverwendbare Klassen für Spieler mit Unique-Passives.
   Stärker als Legendary: Pink/Gold/Cyan-Gradient, schnellere Animation,
   doppelter Glow, Holo-Shimmer. Anwendbar auf Karten, Listen, Badges.

   Usage:
     <div class="unique-passive-card">...</div>     - Karten-Wrapper
     <span class="unique-passive-badge">🔱 NAME</span> - schwebendes Badge
     <span class="unique-passive-pill">🔱 NAME</span>  - inline Pill
*/

/* ─── Karten-Wrapper: Glow + Holo-Shimmer ─── */
.unique-passive-card {
    position: relative;
    border: 1px solid rgba(220, 38, 127, 0.55) !important;
    background:
        linear-gradient(135deg, rgba(220,38,127,0.08) 0%, rgba(17,24,39,0.85) 30%, rgba(34,211,238,0.06) 70%, rgba(251,191,36,0.06) 100%),
        rgba(17, 24, 39, 0.85) !important;
    box-shadow:
        0 0 0 1px rgba(251, 191, 36, 0.35),
        0 0 22px rgba(220, 38, 127, 0.45),
        0 0 40px rgba(34, 211, 238, 0.18),
        inset 0 0 32px rgba(220, 38, 127, 0.10) !important;
    animation: uniquePassivePulse 2.6s ease-in-out infinite;
    overflow: hidden;
}
.unique-passive-card::before {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: inherit;
    padding: 1px;
    background: linear-gradient(135deg,
        rgba(220,38,127,0.6) 0%,
        rgba(251,191,36,0.6) 50%,
        rgba(34,211,238,0.6) 100%);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
            mask-composite: exclude;
    pointer-events: none;
    animation: uniquePassiveBorderRotate 6s linear infinite;
    z-index: 1;
}
.unique-passive-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        110deg,
        transparent 0%,
        transparent 35%,
        rgba(253, 224, 71, 0.22) 48%,
        rgba(236, 72, 153, 0.22) 50%,
        rgba(34, 211, 238, 0.22) 52%,
        transparent 65%,
        transparent 100%
    );
    background-size: 230% 100%;
    animation: uniquePassiveShimmer 3.2s linear infinite;
    pointer-events: none;
    z-index: 1;
    border-radius: inherit;
}
.unique-passive-card > * { position: relative; z-index: 2; }

/* ─── Schwebendes Badge oben rechts ─── */
.unique-passive-badge {
    position: absolute;
    top: -1px;
    right: -1px;
    padding: 4px 12px 4px 10px;
    background: linear-gradient(135deg, #ec4899 0%, #fbbf24 50%, #22d3ee 100%);
    background-size: 220% 100%;
    animation: uniquePassiveBadgeShine 2.4s linear infinite,
               uniquePassiveBadgePulse 1.8s ease-in-out infinite;
    color: #0b1120;
    font-size: .62rem;
    font-weight: 900;
    letter-spacing: .09em;
    border-radius: 0 12px 0 12px;
    z-index: 4;
    box-shadow:
        0 0 12px rgba(236, 72, 153, 0.65),
        0 0 22px rgba(34, 211, 238, 0.40),
        0 2px 6px rgba(0, 0, 0, 0.4);
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.35);
    display: inline-flex;
    align-items: center;
    gap: 4px;
    text-transform: uppercase;
}

/* ─── Inline-Pill (z.B. in Listen, im Roster) ─── */
.unique-passive-pill {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 10px;
    background: linear-gradient(90deg,
        rgba(236, 72, 153, 0.30),
        rgba(251, 191, 36, 0.30),
        rgba(34, 211, 238, 0.30));
    background-size: 200% 100%;
    animation: uniquePassiveBadgeShine 3.2s linear infinite;
    color: #fff;
    font-size: .7rem;
    font-weight: 800;
    letter-spacing: .04em;
    border: 1px solid rgba(251, 191, 36, 0.6);
    border-radius: 6px;
    box-shadow:
        0 0 10px rgba(236, 72, 153, 0.45),
        0 0 18px rgba(34, 211, 238, 0.22);
    text-shadow: 0 1px 0 rgba(0, 0, 0, 0.4);
}

/* ─── Animationen ─── */
@keyframes uniquePassivePulse {
    0%, 100% {
        box-shadow:
            0 0 0 1px rgba(251, 191, 36, 0.35),
            0 0 22px rgba(220, 38, 127, 0.45),
            0 0 40px rgba(34, 211, 238, 0.18),
            inset 0 0 32px rgba(220, 38, 127, 0.10);
    }
    50% {
        box-shadow:
            0 0 0 1px rgba(251, 191, 36, 0.55),
            0 0 32px rgba(220, 38, 127, 0.65),
            0 0 56px rgba(34, 211, 238, 0.32),
            inset 0 0 38px rgba(251, 191, 36, 0.18);
    }
}

@keyframes uniquePassiveShimmer {
    0%   { background-position: -130% 0; }
    100% { background-position: 230% 0; }
}

@keyframes uniquePassiveBadgeShine {
    0%   { background-position: 0% 50%; }
    100% { background-position: 200% 50%; }
}

@keyframes uniquePassiveBadgePulse {
    0%, 100% { transform: scale(1.0); }
    50%      { transform: scale(1.04); }
}

@keyframes uniquePassiveBorderRotate {
    0%   { filter: hue-rotate(0deg); }
    100% { filter: hue-rotate(360deg); }
}
