:root {
  --bg: #0b0d10;
  --bg-soft: #11151a;
  --panel: #151a20;
  --panel-2: #1b222a;
  --line: #2a323c;
  --line-soft: #212830;
  --text: #f4f1e9;
  --muted: #9aa4af;
  --gold: #d5a94b;
  --gold-2: #f1cd78;
  --gold-dim: rgba(213, 169, 75, .12);
  --green: #7cc995;
  --red: #e47d7d;
  --amber: #e8ba69;
  --shadow: 0 22px 65px rgba(0,0,0,.28);
  --radius: 18px;
  --radius-sm: 11px;
}

* { box-sizing: border-box; }
html { min-height: 100%; background: var(--bg); }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background:
    radial-gradient(circle at 16% 4%, rgba(213, 169, 75, .075), transparent 26rem),
    linear-gradient(180deg, #0d1014 0%, #090b0e 100%);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}

a { color: inherit; }
button, input, select { font: inherit; }
button { color: inherit; }

.topbar {
  min-height: 76px;
  padding: 12px clamp(18px, 4vw, 64px);
  border-bottom: 1px solid var(--line-soft);
  background: rgba(10, 12, 15, .88);
  backdrop-filter: blur(18px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  position: sticky;
  top: 0;
  z-index: 50;
}

.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; min-width: max-content; }
.brand-mark {
  width: 42px; height: 42px; display: grid; place-items: center;
  border: 1px solid #715b2b; color: var(--gold-2); background: linear-gradient(145deg, #242016, #121419);
  border-radius: 11px; font-weight: 900; letter-spacing: -.06em; box-shadow: inset 0 0 0 1px rgba(255,255,255,.025);
}
.brand-copy { display: grid; line-height: 1.2; }
.brand-copy strong { font-size: 1rem; letter-spacing: .01em; }
.brand-copy small { margin-top: 4px; color: var(--muted); font-size: .73rem; }

.main-nav { display: flex; align-items: center; gap: 6px; }
.nav-link { padding: 9px 11px; text-decoration: none; color: #bac2ca; border-radius: 8px; font-size: .91rem; }
.nav-link:hover, .nav-link.active { background: #171c22; color: var(--text); }
.nav-link.active { box-shadow: inset 0 -1px 0 var(--gold); }
.user-chip { padding: 7px 11px; margin-left: 7px; background: #171c22; color: #d6dce2; border: 1px solid var(--line); border-radius: 999px; font-size: .84rem; }
.inline-form { margin: 0; }
.nav-toggle { display: none; border: 1px solid var(--line); background: var(--panel); border-radius: 8px; padding: 8px 10px; }

.page-shell { width: min(1240px, calc(100% - 36px)); margin: 0 auto; padding: 48px 0 54px; min-height: calc(100vh - 140px); }
.footer { width: min(1240px, calc(100% - 36px)); margin: 0 auto; padding: 22px 0 30px; border-top: 1px solid var(--line-soft); display: flex; justify-content: space-between; gap: 12px; color: #6f7881; font-size: .8rem; }

.page-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 28px; }
h1, h2, h3, p { margin-top: 0; }
h1 { margin-bottom: 7px; font-size: clamp(2rem, 4vw, 3.2rem); line-height: 1.03; letter-spacing: -.045em; font-weight: 760; }
h2 { margin-bottom: 7px; font-size: 1.35rem; letter-spacing: -.025em; }
.muted { color: var(--muted); }
.eyebrow, .card-kicker { display: block; margin-bottom: 9px; color: var(--gold); text-transform: uppercase; letter-spacing: .15em; font-size: .69rem; font-weight: 800; }

.card { background: linear-gradient(180deg, rgba(25,30,37,.98), rgba(17,21,26,.98)); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; }
.card-head h2 { margin: 0; }

.dashboard-grid { display: grid; grid-template-columns: minmax(0, .94fr) minmax(0, 1.06fr); gap: 22px; }
.event-card, .ranking-card { min-height: 430px; padding: 26px; }
.event-card { position: relative; overflow: hidden; }
.event-card::after { content: ""; position: absolute; inset: auto -120px -140px auto; width: 310px; height: 310px; border-radius: 50%; border: 1px solid rgba(213,169,75,.1); box-shadow: 0 0 0 34px rgba(213,169,75,.025), 0 0 0 80px rgba(213,169,75,.012); pointer-events: none; }

.status-dot { border-radius: 999px; border: 1px solid #4d3e28; background: rgba(213,169,75,.08); color: var(--amber); padding: 5px 9px; font-size: .72rem; white-space: nowrap; }
.status-dot::before { content: ""; display: inline-block; width: 6px; height: 6px; margin-right: 6px; border-radius: 50%; background: currentColor; vertical-align: 1px; }
.status-dot.online { color: var(--green); border-color: #2e4d39; background: rgba(124,201,149,.07); }

.hero-score { display: grid; gap: 2px; margin: 50px 0 34px; position: relative; z-index: 1; }
.hero-score-label { color: var(--muted); font-size: .83rem; }
.hero-score strong { font-size: clamp(3.1rem, 7vw, 5.2rem); line-height: 1; letter-spacing: -.065em; font-weight: 790; color: var(--gold-2); }
.hero-score small { margin-top: 7px; color: #7f8992; }
.metric-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; position: relative; z-index: 1; }
.metric { border-top: 1px solid var(--line); padding: 14px 4px 2px 0; display: grid; }
.metric span { color: var(--muted); font-size: .76rem; }
.metric b { margin-top: 2px; font-size: .97rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.mini-ranking { display: grid; gap: 5px; margin-top: 24px; }
.mini-rank-row { min-height: 44px; display: grid; grid-template-columns: 38px minmax(0,1fr) auto; align-items: center; gap: 10px; padding: 7px 9px; border-bottom: 1px solid var(--line-soft); }
.mini-rank-row:last-child { border-bottom: 0; }
.player-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mini-rank-row strong { font-variant-numeric: tabular-nums; }
.rank-number { width: 28px; height: 28px; display: inline-grid; place-items: center; border-radius: 8px; background: #20262d; color: #aeb7bf; font-size: .79rem; font-weight: 800; }
.rank-number.podium { background: var(--gold-dim); color: var(--gold-2); border: 1px solid rgba(213,169,75,.22); }
.text-link { color: var(--gold-2); font-size: .82rem; text-decoration: none; }
.text-link:hover { text-decoration: underline; }

.stats-strip { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 22px; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: #11151a; }
.stats-strip > div { padding: 20px 22px; display: grid; border-right: 1px solid var(--line); }
.stats-strip > div:last-child { border-right: 0; }
.stats-strip span { color: var(--muted); font-size: .74rem; }
.stats-strip strong { margin-top: 3px; font-size: 1.2rem; font-variant-numeric: tabular-nums; }

.loot-teaser { margin-top: 22px; padding: 22px 24px; display: grid; grid-template-columns: minmax(260px, 1.3fr) minmax(360px, 1fr) auto; align-items: center; gap: 24px; }
.loot-teaser-copy p { margin-bottom: 0; max-width: 620px; }
.loot-teaser-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.loot-teaser-stats > div { padding-left: 14px; border-left: 1px solid var(--line); display: grid; min-width: 0; }
.loot-teaser-stats span { color: var(--muted); font-size: .7rem; }
.loot-teaser-stats strong { margin-top: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .94rem; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 39px; border-radius: 9px; border: 1px solid transparent; padding: 8px 14px; text-decoration: none; cursor: pointer; transition: transform .12s ease, background .12s ease, border-color .12s ease; font-weight: 700; font-size: .87rem; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--gold); border-color: #dcb55b; color: #17130b; }
.btn-primary:hover { background: var(--gold-2); }
.btn-secondary { background: #1b2128; border-color: #353e48; color: var(--text); }
.btn-secondary:hover, .btn-ghost:hover { background: #232a32; }
.btn-ghost { background: transparent; border-color: var(--line); color: #d1d7dc; }
.btn-danger { background: rgba(228,125,125,.09); color: #f0a0a0; border-color: rgba(228,125,125,.33); }
.btn-small { min-height: 34px; padding: 6px 11px; font-size: .8rem; }
.btn-xs { min-height: 30px; padding: 5px 9px; font-size: .75rem; }
.btn-block { width: 100%; }

.flash-stack { display: grid; gap: 8px; margin-bottom: 20px; }
.flash { padding: 11px 14px; border: 1px solid var(--line); border-radius: 10px; background: #161b21; font-size: .86rem; }
.flash-error { border-color: rgba(228,125,125,.34); color: #f0adad; }
.flash-success { border-color: rgba(124,201,149,.33); color: #a6deb9; }
.flash-warning { border-color: rgba(232,186,105,.33); color: #e8c98f; }
.notice { margin-bottom: 16px; padding: 11px 14px; border-radius: 10px; font-size: .82rem; }
.notice.warning { border: 1px solid rgba(232,186,105,.25); background: rgba(232,186,105,.06); color: #d8c29a; }

.auth-layout { min-height: calc(100vh - 220px); display: grid; grid-template-columns: minmax(0,1.25fr) minmax(340px,.65fr); gap: clamp(40px, 8vw, 120px); align-items: center; }
.compact-auth { min-height: auto; padding-top: 28px; }
.auth-hero { max-width: 700px; }
.auth-hero h1 { font-size: clamp(3rem, 7vw, 6rem); max-width: 800px; }
.auth-hero > p { max-width: 570px; color: #a6aeb7; font-size: 1.05rem; }
.hero-points { margin-top: 34px; display: flex; flex-wrap: wrap; gap: 10px; }
.hero-points span { border: 1px solid var(--line); background: rgba(21,26,32,.65); padding: 9px 12px; border-radius: 999px; color: #b9c1c9; font-size: .8rem; }
.hero-points b { color: var(--gold); margin-right: 7px; }
.auth-card { padding: clamp(24px, 4vw, 34px); }
.auth-card h2 { font-size: 1.8rem; }
.form-stack { display: grid; gap: 15px; }
.form-stack label:not(.checkbox-row) { display: grid; gap: 6px; color: #cbd1d6; font-size: .8rem; font-weight: 650; }
input, select { width: 100%; border: 1px solid #343d47; background: #0e1216; color: var(--text); border-radius: 9px; padding: 10px 11px; outline: none; }
input:focus, select:focus { border-color: #846b36; box-shadow: 0 0 0 3px rgba(213,169,75,.08); }
.checkbox-row { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: .8rem; }
.checkbox-row input { width: auto; }
.auth-switch { margin: 18px 0 0; text-align: center; color: var(--muted); font-size: .81rem; }
.auth-switch a { color: var(--gold-2); }

.score-pill { padding: 9px 14px; border: 1px solid rgba(213,169,75,.3); border-radius: 999px; background: var(--gold-dim); color: var(--gold-2); font-size: .84rem; font-weight: 800; white-space: nowrap; }
.loot-summary { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 14px; }
.loot-summary-card { padding: 17px 19px; display: grid; }
.loot-summary-card span { color: var(--muted); font-size: .72rem; }
.loot-summary-card strong { margin-top: 4px; font-size: 1.42rem; font-variant-numeric: tabular-nums; }
.loot-summary-card strong small { color: var(--muted); font-size: .72rem; font-weight: 700; }
.loot-master-summary { border-color: rgba(213,169,75,.38); background: linear-gradient(180deg, rgba(47,39,23,.95), rgba(22,24,25,.98)); }
.loot-master-summary strong { color: var(--gold-2); }
.loot-rules { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; margin-bottom: 14px; overflow: hidden; }
.loot-rule { min-height: 72px; padding: 14px 16px; display: grid; align-content: center; gap: 7px; border-right: 1px solid var(--line); }
.loot-rule:last-child { border-right: 0; }
.loot-rule b { color: #b8c0c8; font-size: .77rem; font-variant-numeric: tabular-nums; }
.rating-badge { display: inline-flex; width: fit-content; max-width: 100%; padding: 5px 9px; border-radius: 999px; border: 1px solid; font-size: .69rem; line-height: 1.2; font-weight: 850; white-space: nowrap; }
.rating-missed { color: #f0a0a0; border-color: rgba(228,125,125,.34); background: rgba(228,125,125,.08); }
.rating-met { color: #a6deb9; border-color: rgba(124,201,149,.32); background: rgba(124,201,149,.08); }
.rating-exceeded { color: #e8c98f; border-color: rgba(232,186,105,.34); background: rgba(232,186,105,.08); }
.rating-master { color: var(--gold-2); border-color: rgba(213,169,75,.52); background: linear-gradient(120deg, rgba(213,169,75,.19), rgba(241,205,120,.07)); box-shadow: inset 0 0 18px rgba(213,169,75,.04); }
.table-card { overflow: visible; }
.table-toolbar { min-height: 64px; padding: 14px 18px; display: flex; align-items: center; justify-content: space-between; gap: 14px; border-bottom: 1px solid var(--line); }
.table-search { width: min(260px, 100%); }
.table-tools { display: flex; align-items: center; gap: 8px; }
.table-wrap { overflow-x: auto; }
.data-table { width: 100%; border-collapse: collapse; min-width: 880px; }
.data-table th { padding: 11px 15px; color: #7f8992; text-align: left; font-size: .68rem; text-transform: uppercase; letter-spacing: .08em; border-bottom: 1px solid var(--line); background: #11161b; }
.data-table td { padding: 12px 15px; border-bottom: 1px solid var(--line-soft); font-size: .83rem; color: #d4dae0; }
.data-table tbody tr:hover { background: rgba(255,255,255,.018); }
.data-table tbody tr:last-child td { border-bottom: 0; }
.data-table .num { text-align: right; font-variant-numeric: tabular-nums; }
.points-cell { font-weight: 800; color: var(--text) !important; }
.loot-table { min-width: 790px; }
.delta { color: #7e8891; }
.delta.positive { color: var(--green); }
.zero-row { opacity: .56; }
.subline { display: block; margin-top: 2px; color: #79838d; }

.admin-summary { display: grid; grid-template-columns: .5fr .7fr 1.8fr; gap: 14px; margin-bottom: 18px; }
.summary-card { padding: 18px 20px; display: grid; }
.summary-card span { color: var(--muted); font-size: .73rem; }
.summary-card strong { margin-top: 3px; font-size: 1.45rem; }
.summary-card .small-strong { font-size: .9rem; line-height: 1.35; }
.admin-table select { width: auto; min-width: 104px; padding: 7px 8px; }
.inline-actions, .admin-actions { display: flex; align-items: center; gap: 7px; }
.admin-actions form { margin: 0; }
.badge { display: inline-flex; padding: 4px 8px; border-radius: 999px; font-size: .69rem; font-weight: 800; }
.badge-ok { color: var(--green); background: rgba(124,201,149,.08); border: 1px solid rgba(124,201,149,.22); }
.badge-pending { color: var(--amber); background: rgba(232,186,105,.08); border: 1px solid rgba(232,186,105,.22); }
.action-details { position: relative; }
.action-details summary { list-style: none; cursor: pointer; padding: 6px 8px; font-size: .75rem; color: #afb7c0; border: 1px solid var(--line); border-radius: 7px; }
.action-details summary::-webkit-details-marker { display: none; }
.action-popover { width: 240px; margin-top: 8px; padding: 12px; background: #171c22; border: 1px solid #343d47; border-radius: 11px; box-shadow: 0 12px 34px rgba(0,0,0,.28); display: grid; gap: 11px; }
.compact-form { gap: 8px; }

.empty-state { min-height: 260px; display: grid; place-items: center; align-content: center; text-align: center; color: var(--muted); padding: 30px; }
.empty-state.small { min-height: 280px; }
.empty-state p { max-width: 400px; }
.empty-icon { width: 52px; height: 52px; display: grid; place-items: center; margin-bottom: 12px; border: 1px solid var(--line); border-radius: 50%; font-size: 1.7rem; color: var(--gold); }
.empty-card, .error-card { padding: 32px; }
.error-card { max-width: 720px; }
.error-card code { color: var(--gold-2); }

@media (max-width: 900px) {
  .topbar { padding-inline: 18px; }
  .nav-toggle { display: inline-flex; }
  .main-nav:not(.auth-nav) { display: none; position: absolute; left: 16px; right: 16px; top: 68px; padding: 12px; background: #12171c; border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); flex-wrap: wrap; }
  .main-nav.open { display: flex; }
  .user-chip { margin-left: auto; }
  .dashboard-grid, .auth-layout { grid-template-columns: 1fr; }
  .auth-layout { gap: 36px; }
  .auth-hero h1 { font-size: clamp(2.8rem, 12vw, 5.4rem); }
  .stats-strip { grid-template-columns: 1fr 1fr; }
  .stats-strip > div:nth-child(2) { border-right: 0; }
  .stats-strip > div:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .admin-summary { grid-template-columns: 1fr 1fr; }
  .admin-summary .wide { grid-column: 1 / -1; }
  .loot-teaser { grid-template-columns: 1fr; }
  .loot-teaser-stats { max-width: 620px; }
  .loot-summary, .loot-rules { grid-template-columns: 1fr 1fr; }
  .loot-rule:nth-child(2) { border-right: 0; }
  .loot-rule:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
}

@media (max-width: 620px) {
  .brand-copy small { display: none; }
  .page-shell { width: min(100% - 24px, 1240px); padding-top: 30px; }
  .page-heading { align-items: flex-start; flex-direction: column; }
  .dashboard-grid { gap: 14px; }
  .event-card, .ranking-card { min-height: auto; padding: 20px; }
  .metric-grid { grid-template-columns: 1fr; }
  .hero-score { margin-block: 34px 26px; }
  .stats-strip { grid-template-columns: 1fr; }
  .stats-strip > div { border-right: 0; border-bottom: 1px solid var(--line); }
  .stats-strip > div:last-child { border-bottom: 0; }
  .table-toolbar { align-items: stretch; flex-direction: column; }
  .table-search { width: 100%; }
  .table-tools { align-items: stretch; flex-direction: column; }
  .footer { flex-direction: column; }
  .admin-summary { grid-template-columns: 1fr; }
  .admin-summary .wide { grid-column: auto; }
  .auth-card { border-radius: 14px; }
  .hero-points { display: grid; }
  .loot-teaser-stats, .loot-summary, .loot-rules { grid-template-columns: 1fr; }
  .loot-teaser-stats > div { min-height: 45px; }
  .loot-rule { border-right: 0; border-bottom: 1px solid var(--line); }
  .loot-rule:last-child { border-bottom: 0; }
}

.event-banner {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  min-height: 170px;
  padding: 20px 22px;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 18px;
  overflow: hidden;
  background-color: #452517;
  background-size: cover;
  background-position: center;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.05);
}
.event-banner::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(8,10,12,.08) 20%, rgba(8,10,12,.7) 100%);
}
.event-banner > * { position: relative; z-index: 1; }
.event-banner.wide { min-height: 200px; }
.event-banner-copy h2 { margin: 4px 0 6px; font-size: clamp(2rem, 4vw, 3rem); color: #fffaf0; }
.event-banner-copy p { margin: 0; color: rgba(255,248,229,.82); }
.event-banner-stats { display: grid; gap: 4px; justify-items: end; text-align: right; color: rgba(255,248,229,.9); }
.event-banner-stats span { color: rgba(255,248,229,.74); font-size: .92rem; }
.banner-card { padding: 0; overflow: hidden; }
.banner-card .event-banner { border: 0; border-radius: inherit; }

.player-stack {
  display: grid;
  gap: 4px;
}
.player-stack.compact { gap: 2px; }
.small-text { font-size: .78rem; }

.role-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 30px;
  padding: 5px 10px;
  border-radius: 999px;
  border: 1px solid rgba(233, 188, 112, .18);
  background: rgba(233, 188, 112, .08);
  color: #f4d599;
  font-size: .82rem;
  font-weight: 700;
  white-space: nowrap;
}
.role-badge.compact { width: fit-content; min-height: 24px; padding: 3px 8px; font-size: .75rem; }
.role-symbol {
  width: 18px;
  height: 18px;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  background: rgba(255,255,255,.08);
  color: inherit;
  font-size: .78rem;
  line-height: 1;
}
.role-leader { color: #ffdd8c; border-color: rgba(255, 221, 140, .22); background: rgba(255,221,140,.10); }
.role-general { color: #ffd2a4; border-color: rgba(255, 189, 132, .22); background: rgba(255, 189, 132, .08); }
.role-sergeant { color: #d9d3ff; border-color: rgba(187, 177, 255, .22); background: rgba(187, 177, 255, .08); }
.role-diplomat { color: #9be6d4; border-color: rgba(155,230,212,.22); background: rgba(155,230,212,.08); }
.role-recruiter { color: #a3e7a0; border-color: rgba(163,231,160,.22); background: rgba(163,231,160,.08); }
.role-treasurer { color: #ffe1a5; border-color: rgba(255,225,165,.22); background: rgba(255,225,165,.08); }
.role-member, .role-custom, .role-unknown { color: #d9cfc0; border-color: rgba(217,207,192,.16); background: rgba(217,207,192,.06); }

.notice.warning {
  margin-bottom: 18px;
}

@media (max-width: 900px) {
  .event-banner, .event-banner.wide { min-height: 180px; align-items: flex-start; flex-direction: column; }
  .event-banner-stats { justify-items: start; text-align: left; }
}

@media (max-width: 620px) {
  .event-banner-copy h2 { font-size: 2rem; }
  .role-badge { max-width: 100%; }
}

/* v1.3.1 — korrigierte Rangbeschriftung + echte GGE-Tracker-Rangicons */
body { padding-bottom: 46px; }

.event-banner {
  background-size: 100% 100%, auto 100%;
  background-repeat: no-repeat, repeat-x;
  background-position: center, center;
}

.role-badge {
  gap: 8px;
  min-height: 32px;
  padding: 4px 10px 4px 6px;
  color: #d9e0e7;
  background: rgba(255,255,255,.035);
  border-color: rgba(255,255,255,.10);
}
.role-badge.compact { min-height: 27px; padding: 2px 8px 2px 5px; }
.alliance-rank-icon {
  display: block;
  width: 37px;
  height: 19px;
  object-fit: contain;
  object-position: center;
  image-rendering: auto;
  flex: 0 0 auto;
}
.role-badge.compact .alliance-rank-icon { width: 31px; height: 16px; }
.role-leader { color: #ffe096; border-color: rgba(255,224,150,.20); background: rgba(255,224,150,.07); }
.role-war_marshal { color: #ffc28a; border-color: rgba(255,194,138,.18); background: rgba(255,194,138,.06); }
.role-general { color: #ffd1c2; border-color: rgba(255,169,145,.18); background: rgba(255,169,145,.06); }
.role-treasurer { color: #ffe19c; border-color: rgba(255,225,156,.18); background: rgba(255,225,156,.06); }
.role-recruiter { color: #e8dd9e; border-color: rgba(232,221,158,.18); background: rgba(232,221,158,.06); }
.role-diplomat { color: #a9e5dc; border-color: rgba(169,229,220,.18); background: rgba(169,229,220,.06); }
.role-deputy { color: #e8eef3; border-color: rgba(232,238,243,.18); background: rgba(232,238,243,.06); }
.role-sergeant { color: #bbd7ff; border-color: rgba(187,215,255,.18); background: rgba(187,215,255,.06); }
.role-member { color: #d7dde2; border-color: rgba(215,221,226,.14); background: rgba(215,221,226,.04); }
.role-candidate, .role-unknown { color: #c8cdd2; border-color: rgba(200,205,210,.12); background: rgba(200,205,210,.035); }

.system-footer {
  position: fixed;
  z-index: 80;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  min-height: 38px;
  margin: 0;
  padding: 8px clamp(14px, 3vw, 38px);
  border-top: 1px solid rgba(255,255,255,.08);
  background: rgba(8, 10, 13, .93);
  backdrop-filter: blur(14px);
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  color: #87919b;
  font-size: .76rem;
  box-shadow: 0 -8px 24px rgba(0,0,0,.18);
}
.server-status, .build-info { white-space: nowrap; font-variant-numeric: tabular-nums; }
.build-info { color: #aeb7bf; letter-spacing: .04em; }

@media (max-width: 620px) {
  body { padding-bottom: 54px; }
  .system-footer {
    min-height: 46px;
    padding: 7px 10px;
    flex-direction: row;
    align-items: center;
    font-size: .67rem;
  }
  .alliance-rank-icon { width: 32px; height: 17px; }
  .role-badge { font-size: .76rem; }
}

/* v1.4.0 — Aktuelles Event + Event-Archiv */
.archive-teaser {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(220px, .75fr) auto;
  align-items: center;
  gap: 24px;
  margin-top: 18px;
  padding: 24px;
}
.archive-teaser h2 { margin: 5px 0 8px; }
.archive-latest { display: grid; gap: 4px; }
.archive-latest span, .archive-latest small { color: var(--muted); }
.archive-latest strong { font-size: 1.15rem; }

.archive-note { margin-bottom: 18px; color: #b8c0c7; }
.archive-grid { display: grid; gap: 18px; }
.archive-card { padding: 0; overflow: hidden; }
.archive-banner {
  position: relative;
  min-height: 155px;
  padding: 22px 24px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  background-size: 100% 100%, auto 100%;
  background-repeat: no-repeat, repeat-x;
  background-position: center, center;
}
.archive-banner h2 { margin: 5px 0 3px; font-size: 2rem; color: #fff9eb; }
.archive-banner p { margin: 0; color: rgba(255,249,235,.78); }
.archive-finished {
  padding: 5px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.16);
  background: rgba(10,12,14,.52);
  color: #c7ced5;
  font-size: .78rem;
  font-weight: 700;
}
.archive-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.archive-metrics > div { padding: 17px 20px; border-right: 1px solid var(--line); display: grid; gap: 5px; }
.archive-metrics > div:last-child { border-right: 0; }
.archive-metrics span { color: var(--muted); font-size: .8rem; }
.archive-metrics strong { font-size: 1.12rem; }
.archive-period { padding: 16px 20px; display: flex; justify-content: space-between; gap: 18px; color: var(--muted); }
.archive-period strong { color: #d9dfe5; font-size: .9rem; text-align: right; }
.archive-ranking-details { border-top: 1px solid var(--line); }
.archive-ranking-details > summary {
  cursor: pointer;
  list-style: none;
  padding: 15px 20px;
  color: #cbd2d9;
  font-weight: 700;
}
.archive-ranking-details > summary::-webkit-details-marker { display: none; }
.archive-ranking-details > summary::after { content: '＋'; float: right; color: var(--gold); }
.archive-ranking-details[open] > summary::after { content: '−'; }
.compact-table th, .compact-table td { padding-top: 10px; padding-bottom: 10px; }

@media (max-width: 900px) {
  .archive-teaser { grid-template-columns: 1fr; }
  .archive-metrics { grid-template-columns: 1fr 1fr; }
  .archive-metrics > div:nth-child(2) { border-right: 0; }
  .archive-metrics > div:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
}

@media (max-width: 620px) {
  .archive-metrics { grid-template-columns: 1fr; }
  .archive-metrics > div { border-right: 0; border-bottom: 1px solid var(--line); }
  .archive-metrics > div:last-child { border-bottom: 0; }
  .archive-period { flex-direction: column; }
  .archive-period strong { text-align: left; }
}
