/* Gilden-Website – Stylesheet
   Dunkles Fantasy-Thema mit Gold-Akzenten. Alle Farben als Variablen. */

:root {
  --bg: #0d0b09;
  --bg-2: #15110d;
  --surface: #1c1712;
  --surface-2: #241e17;
  --border: rgba(212, 168, 90, 0.22);
  --border-strong: rgba(212, 168, 90, 0.55);
  --gold: #d4a85a;
  --gold-2: #f1cf84;
  --text: #ece4d4;
  --muted: #a89f8e;
  --green: #74d174;
  --yellow: #e6c95c;
  --red: #e06a6a;
  --horde-red: #e2453b; /* Rot des Gildenbanners, gut lesbar auf dunklem Grund */
  --tank: #7fb6e6;
  --heal: #74d174;
  --melee: #e8875a;
  --ranged: #b994f0;
  --blue: #7fb6e6;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
  --radius: 14px;
  --font-head: "Cinzel", "Georgia", serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --max: 1120px;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text);
  background:
    radial-gradient(1200px 600px at 50% -10%, rgba(212, 168, 90, 0.14), transparent 60%),
    radial-gradient(800px 500px at 100% 20%, rgba(127, 90, 40, 0.10), transparent 60%),
    var(--bg);
  line-height: 1.6;
  min-height: 100vh;
}
a { color: var(--gold-2); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--gold-2);
  line-height: 1.2;
  margin: 0 0 0.5em;
}
h1 { font-size: clamp(2rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.4rem, 3vw, 2rem); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }
.muted { color: var(--muted); }
.small { font-size: 0.9rem; }
.center { text-align: center; }

.container { width: min(var(--max), 100% - 32px); margin: 0 auto; }
section { padding: 56px 0; }
section + section { border-top: 1px solid rgba(255, 255, 255, 0.04); }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; }
.section-head p { margin: 0; }

/* Kopfzeile */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(13, 11, 9, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.site-header .container { width: min(1440px, 100% - 32px); }
.nav { display: flex; align-items: center; justify-content: space-between; min-height: 64px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 12px; font-family: var(--font-head); font-weight: 700; font-size: 1.1rem; color: var(--gold-2); }
.brand .sigil {
  width: 36px; height: 36px; border-radius: 50%;
  background: conic-gradient(from 200deg, var(--gold), #7a5a2a, var(--gold-2), var(--gold));
  display: grid; place-items: center; color: #1a1308; font-size: 1.1rem; box-shadow: 0 0 0 2px rgba(212, 168, 90, 0.25);
}
.nav-links { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; flex-wrap: wrap; justify-content: flex-end; }
.nav-links a {
  display: block; padding: 8px 10px; border-radius: 8px; color: var(--text); font-weight: 500; font-size: 0.95rem;
}
.nav-links a:hover { background: rgba(255, 255, 255, 0.05); text-decoration: none; }
.nav-links a.active { color: var(--gold-2); background: rgba(212, 168, 90, 0.10); }
.nav-toggle {
  display: none; background: none; border: 1px solid var(--border); color: var(--text); border-radius: 8px;
  padding: 8px 10px; cursor: pointer; font-size: 1rem;
}

/* Markenlogo in der Kopfzeile */
.brand-logo { height: 44px; width: auto; filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.6)); }
.brand span { white-space: nowrap; }
@media (max-width: 1280px) { .brand span { display: none; } }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Held */
.hero { padding: 90px 0 70px; text-align: center; position: relative; overflow: hidden; }
.hero-art { padding: 0 0 20px; min-height: 0; display: block; }
.hero-art .hero-bg { position: relative; width: 100%; aspect-ratio: 1672 / 941; background-size: cover; background-position: center; }
.hero-art .hero-bg::after { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, transparent 72%, rgba(13, 11, 9, 0.45) 90%, var(--bg) 100%); }
.hero-art .hero-content { position: relative; z-index: 1; padding: 0 0 30px; width: min(var(--max), 100% - 32px); margin: -70px auto 0; }
.hero.hero-art .tagline { color: var(--horde-red); text-shadow: 0 2px 10px rgba(0, 0, 0, 0.85), 0 0 18px rgba(226, 69, 59, 0.25); }
.hero-art .eyebrow { background: rgba(13, 11, 9, 0.65); }
.hero-art .facts span { background: rgba(13, 11, 9, 0.6); }
.hero::before {
  content: ""; position: absolute; inset: auto 0 -1px; height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-strong), transparent);
}
.hero .eyebrow {
  display: inline-block; font-size: 0.8rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold);
  border: 1px solid var(--border); border-radius: 999px; padding: 6px 14px; margin-bottom: 18px;
}
.hero h1 { margin-bottom: 10px; }
.hero .tagline { font-size: 1.2rem; color: var(--muted); max-width: 640px; margin: 0 auto 28px; }
.hero .facts { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; margin-top: 28px; }
.hero .facts span { font-size: 0.85rem; color: var(--muted); border: 1px solid rgba(255,255,255,0.08); border-radius: 999px; padding: 4px 12px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 8px; padding: 11px 20px; border-radius: 10px; font-weight: 600;
  border: 1px solid var(--border-strong); color: var(--gold-2); background: rgba(212, 168, 90, 0.08);
  cursor: pointer; font-size: 0.95rem; transition: transform 0.12s ease, background 0.12s ease;
  font-family: var(--font-body);
}
.btn:hover { background: rgba(212, 168, 90, 0.16); text-decoration: none; transform: translateY(-1px); }
.btn.primary { background: linear-gradient(180deg, var(--gold-2), var(--gold)); color: #1d1507; border-color: transparent; }
.btn.primary:hover { background: linear-gradient(180deg, #ffe09a, var(--gold-2)); }
.btn.small { padding: 7px 12px; font-size: 0.85rem; }
.btn-row { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* Karten / Raster */
.grid { display: grid; gap: 18px; }
.grid.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.card {
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow);
}
.card h3 { margin-top: 0; }
.card .icon { font-size: 1.6rem; margin-bottom: 8px; }
.card.highlight { border-color: var(--border-strong); }

/* Abzeichen */
.badge { display: inline-block; font-size: 0.75rem; font-weight: 600; letter-spacing: 0.04em; padding: 3px 9px; border-radius: 999px; border: 1px solid var(--border); color: var(--gold-2); background: rgba(212, 168, 90, 0.08); }
.badge.green { color: var(--green); border-color: rgba(116, 209, 116, 0.4); background: rgba(116, 209, 116, 0.08); }
.badge.yellow { color: var(--yellow); border-color: rgba(230, 201, 92, 0.4); background: rgba(230, 201, 92, 0.08); }
.badge.red { color: var(--red); border-color: rgba(224, 106, 106, 0.4); background: rgba(224, 106, 106, 0.08); }
.badge.grey { color: var(--muted); border-color: rgba(255,255,255,0.12); background: rgba(255,255,255,0.03); }
.badge.blue { color: var(--blue); border-color: rgba(127, 182, 230, 0.4); background: rgba(127, 182, 230, 0.08); }

/* Events */
.event-list { display: grid; gap: 14px; }
.event {
  display: grid; grid-template-columns: 84px 1fr auto; gap: 18px; align-items: start;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px;
}
.event.past { opacity: 0.6; }
.event .date {
  text-align: center; border: 1px solid var(--border-strong); border-radius: 10px; padding: 8px 4px;
  background: rgba(212, 168, 90, 0.08);
}
.event .date .day { font-family: var(--font-head); font-size: 1.7rem; line-height: 1; color: var(--gold-2); }
.event .date .month { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); }
.event .date .weekday { font-size: 0.75rem; color: var(--muted); }
.event h3 { margin: 0 0 4px; }
.event .meta { color: var(--muted); font-size: 0.9rem; display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.event .desc { margin: 10px 0 0; white-space: pre-line; }
.event .signups { margin-top: 12px; font-size: 0.9rem; display: grid; gap: 4px; }
.event .signups b { font-weight: 600; }
.event .actions { display: flex; flex-direction: column; gap: 8px; align-items: flex-end; }

/* Levelcap */
.cap-status { display: grid; grid-template-columns: 1.2fr 1fr; gap: 18px; }
.cap-big { font-family: var(--font-head); font-size: clamp(2rem, 6vw, 3.2rem); color: var(--gold-2); line-height: 1; }
.cap-label { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.15em; color: var(--muted); margin-bottom: 6px; }
.countdown { display: flex; gap: 12px; margin: 14px 0; flex-wrap: wrap; }
.countdown > div { background: rgba(0,0,0,0.3); border: 1px solid var(--border); border-radius: 10px; padding: 10px 12px; min-width: 70px; text-align: center; }
.countdown .num { font-family: var(--font-head); font-size: 1.6rem; color: var(--gold-2); line-height: 1.1; }
.countdown .unit { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); }
.progress { height: 10px; border-radius: 999px; background: rgba(255,255,255,0.06); overflow: hidden; margin: 10px 0 6px; }
.progress > span { display: block; height: 100%; background: linear-gradient(90deg, var(--gold), var(--gold-2)); }
.steps { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.steps span { padding: 6px 12px; border-radius: 999px; border: 1px solid var(--border); color: var(--muted); font-size: 0.85rem; }
.steps span.done { color: var(--green); border-color: rgba(116, 209, 116, 0.4); text-decoration: line-through; }
.steps span.current { color: #1d1507; background: var(--gold-2); border-color: transparent; font-weight: 700; }

/* Tabellen */
.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
table { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
th, td { text-align: left; padding: 10px 14px; border-bottom: 1px solid rgba(255,255,255,0.05); white-space: nowrap; }
th { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.12em; color: var(--muted); font-weight: 600; background: rgba(0,0,0,0.25); }
tr:last-child td { border-bottom: 0; }
td.num { text-align: right; font-variant-numeric: tabular-nums; }

/* Klassenfarben (Spiel-Standard) */
.c-WARRIOR { color: #C69B6D; } .c-PALADIN { color: #F48CBA; } .c-HUNTER { color: #AAD372; }
.c-ROGUE { color: #FFF468; } .c-PRIEST { color: #FFFFFF; } .c-SHAMAN { color: #0070DD; }
.c-MAGE { color: #3FC7EB; } .c-WARLOCK { color: #8788EE; } .c-DRUID { color: #FF7C0A; }

/* Schritte / Listen */
.timeline { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; counter-reset: step; }
.timeline li { position: relative; padding-left: 52px; }
.timeline li::before {
  counter-increment: step; content: counter(step);
  position: absolute; left: 0; top: 0; width: 36px; height: 36px; border-radius: 50%;
  display: grid; place-items: center; font-family: var(--font-head); font-weight: 700; color: #1d1507;
  background: linear-gradient(180deg, var(--gold-2), var(--gold));
}
.timeline li h4 { margin: 4px 0 2px; color: var(--text); font-family: var(--font-body); font-weight: 600; }
.timeline li p { margin: 0; color: var(--muted); }
.checklist { list-style: none; padding: 0; margin: 0; }
.checklist li { padding: 6px 0 6px 28px; position: relative; }
.checklist li::before { content: "✦"; position: absolute; left: 4px; color: var(--gold); }
.faq details { border: 1px solid var(--border); border-radius: 10px; padding: 12px 16px; margin-bottom: 10px; background: var(--surface); }
.faq summary { cursor: pointer; font-weight: 600; color: var(--gold-2); }
.faq details p { margin: 10px 0 0; color: var(--muted); }

pre, code { font-family: ui-monospace, "Cascadia Mono", Consolas, monospace; font-size: 0.9em; }
code { background: rgba(255,255,255,0.06); padding: 2px 6px; border-radius: 6px; }
pre { background: rgba(0,0,0,0.35); border: 1px solid var(--border); border-radius: 10px; padding: 14px 16px; overflow-x: auto; }
pre code { background: none; padding: 0; }
kbd { border: 1px solid var(--border); border-bottom-width: 2px; border-radius: 6px; padding: 1px 6px; font-size: 0.85em; background: rgba(0,0,0,0.3); }

.notice { border-left: 3px solid var(--gold); background: rgba(212, 168, 90, 0.06); padding: 12px 16px; border-radius: 0 10px 10px 0; color: var(--muted); }
.notice b { color: var(--text); }
.empty { color: var(--muted); font-style: italic; padding: 24px; text-align: center; border: 1px dashed var(--border); border-radius: var(--radius); }
.stamp { font-size: 0.8rem; color: var(--muted); }

/* Formulare und interaktive Teile */
input[type="text"], input[type="number"], input[type="date"], input[type="time"], select, textarea {
  width: 100%; background: rgba(0, 0, 0, 0.35); border: 1px solid var(--border); color: var(--text);
  border-radius: 10px; padding: 10px 12px; font: inherit; font-size: 0.95rem;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(212, 168, 90, 0.15); }
select option { background: #1c1712; color: var(--text); }
textarea { resize: vertical; min-height: 80px; }
label { display: block; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); margin-bottom: 6px; }
.field { margin-bottom: 14px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 16px; }
.form-grid .wide { grid-column: 1 / -1; }
.check-row { display: flex; gap: 14px; flex-wrap: wrap; }
.check-row label { display: inline-flex; align-items: center; gap: 6px; text-transform: none; letter-spacing: 0; font-size: 0.95rem; color: var(--text); margin: 0; cursor: pointer; }
.radio-cards { display: grid; gap: 10px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.radio-cards label {
  display: block; text-transform: none; letter-spacing: 0; font-size: 0.9rem; color: var(--text); margin: 0; cursor: pointer;
  border: 1px solid var(--border); border-radius: 10px; padding: 10px 12px; background: rgba(0,0,0,0.25);
}
.radio-cards label:has(input:checked) { border-color: var(--gold-2); background: rgba(212, 168, 90, 0.14); }
.radio-cards input { margin-right: 6px; }
.btn-group { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.btn.active { background: linear-gradient(180deg, var(--gold-2), var(--gold)); color: #1d1507; border-color: transparent; }
.btn.danger { color: var(--red); border-color: rgba(224, 106, 106, 0.5); }
.btn.danger:hover { background: rgba(224, 106, 106, 0.12); }
.btn[disabled] { opacity: 0.45; cursor: not-allowed; transform: none; }
.msg { padding: 10px 14px; border-radius: 10px; margin: 12px 0; font-size: 0.95rem; }
.msg.ok { background: rgba(116, 209, 116, 0.12); border: 1px solid rgba(116, 209, 116, 0.4); color: var(--green); }
.msg.err { background: rgba(224, 106, 106, 0.12); border: 1px solid rgba(224, 106, 106, 0.4); color: var(--red); }
.admin-panel { border-style: dashed; border-color: var(--border-strong); margin-top: 18px; }
.admin-panel h3 { display: flex; align-items: center; gap: 8px; }
.admin-panel h3::before { content: "Offiziere"; font-family: var(--font-body); font-size: 0.7rem; letter-spacing: 0.12em; text-transform: uppercase; color: #1d1507; background: var(--gold-2); border-radius: 999px; padding: 2px 8px; }
.nav-links .nav-user { color: var(--gold-2); max-width: 240px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nav-links .nav-user img { width: 20px; height: 20px; border-radius: 50%; vertical-align: -5px; margin-right: 6px; }
.profile-summary { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 10px; }
.profile-summary div { background: rgba(0,0,0,0.3); border: 1px solid var(--border); border-radius: 10px; padding: 10px 12px; }
.profile-summary .cap-label { margin-bottom: 2px; }
.summary-table td:first-child { color: var(--muted); }
textarea.code { font-family: ui-monospace, Consolas, monospace; font-size: 0.8rem; min-height: 180px; }

/* Fußzeile */
.site-footer { border-top: 1px solid var(--border); padding: 36px 0; margin-top: 40px; color: var(--muted); font-size: 0.9rem; }
.site-footer .row { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.site-footer a { color: var(--muted); }

/* Mobil */
@media (max-width: 1000px) {
  .grid.cols-3, .grid.cols-2 { grid-template-columns: 1fr; }
  .cap-status { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .radio-cards { grid-template-columns: 1fr; }
  .nav-toggle { display: inline-block; }
  .nav-links {
    display: none; position: absolute; top: 64px; left: 0; right: 0; flex-direction: column; padding: 10px 16px 16px;
    background: rgba(13, 11, 9, 0.98); border-bottom: 1px solid var(--border);
  }
  .nav-links.open { display: flex; }
  .event { grid-template-columns: 70px 1fr; }
  .event .actions { grid-column: 1 / -1; flex-direction: row; align-items: center; }
  .hero { padding: 60px 0 50px; }
  .hero-art { padding: 0 0 16px; }
  .hero-art .hero-content { margin-top: -18px; }
  .brand-logo { height: 36px; }
  section { padding: 40px 0; }
}

/* Registrierung: Charakterkarten · Gildenübersicht: Filter, Kennzahlen, Berufe-Matrix */
.char-list { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.char-card { border: 1px solid var(--border); border-radius: 10px; padding: 12px 14px; background: rgba(0, 0, 0, 0.25); }
.char-card.main { border-color: var(--border-strong); background: rgba(212, 168, 90, 0.06); }
.char-head { font-weight: 600; font-size: 1.05rem; margin-bottom: 4px; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.field.help { font-size: 0.9rem; color: var(--muted); margin-top: -4px; }
label .opt { text-transform: none; letter-spacing: 0; font-weight: 400; }
.filter-bar { display: flex; gap: 12px; flex-wrap: wrap; margin: 6px 0 14px; }
.filter-bar label { flex: 1 1 150px; margin: 0; }
.filter-bar input, .filter-bar select { margin-top: 4px; }
.chip { display: inline-block; border: 1px solid var(--border); border-radius: 999px; padding: 2px 10px; margin: 2px 4px 2px 0; font-size: 0.9rem; }
.chip b { color: var(--gold-2); }
.matrix { margin-bottom: 24px; }
.matrix summary { cursor: pointer; font-weight: 600; color: var(--gold-2); margin-bottom: 10px; }
tr.is-me td { background: rgba(212, 168, 90, 0.08); }
.nav-links a, .nav-links .nav-user { white-space: nowrap; }

/* Release-Countdown auf der Startseite */
.release { margin: 0 auto 26px; max-width: 820px; }
.release-title { font-family: var(--font-head); font-size: clamp(1.05rem, 2.6vw, 1.55rem); color: var(--gold-2); letter-spacing: 0.06em; text-transform: uppercase; text-shadow: 0 2px 10px rgba(0, 0, 0, 0.85); }
.release .countdown { justify-content: center; margin: 14px 0 8px; }
.release .countdown.big > div { min-width: 96px; padding: 14px 16px; background: rgba(13, 11, 9, 0.78); border-color: var(--border-strong); box-shadow: 0 0 28px rgba(212, 168, 90, 0.16); }
.release .countdown.big .num { font-size: clamp(2rem, 5vw, 3.1rem); }
.release-sub { color: var(--muted); font-size: 0.95rem; }
.release.live .release-title { color: var(--green); }
.release .pulse { display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: var(--green); margin: 0 10px 3px 0; animation: pulse 1.6s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(116, 209, 116, 0.6); } 70% { box-shadow: 0 0 0 12px rgba(116, 209, 116, 0); } 100% { box-shadow: 0 0 0 0 rgba(116, 209, 116, 0); } }
@media (max-width: 520px) { .release .countdown.big > div { min-width: 64px; padding: 10px 8px; } }

/* ===== Gildenübersicht (Tabs, Kennzahlen, Spieler- und Berufskarten) ===== */
.bg-WARRIOR { background: #C69B6D; } .bg-PALADIN { background: #F48CBA; } .bg-HUNTER { background: #AAD372; }
.bg-ROGUE { background: #FFF468; } .bg-PRIEST { background: #FFFFFF; } .bg-SHAMAN { background: #0070DD; }
.bg-MAGE { background: #3FC7EB; } .bg-WARLOCK { background: #8788EE; } .bg-DRUID { background: #FF7C0A; }

.tabs { display: flex; gap: 6px; border-bottom: 1px solid var(--border); margin: 8px 0 22px; overflow-x: auto; }
.tab {
  background: none; border: 0; border-bottom: 2px solid transparent; color: var(--muted); font: inherit; font-weight: 600;
  padding: 10px 14px; cursor: pointer; white-space: nowrap; margin-bottom: -1px;
}
.tab:hover { color: var(--text); }
.tab.active { color: var(--gold-2); border-bottom-color: var(--gold-2); }
.tab-count { display: inline-block; font-size: 0.75rem; padding: 1px 8px; border-radius: 999px; background: rgba(212, 168, 90, 0.14); color: var(--gold-2); margin-left: 4px; }
.tab-count.warn { background: rgba(224, 106, 106, 0.14); color: var(--red); }
.tab-panel[hidden] { display: none; }

.kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-bottom: 18px; }
.kpi { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px 18px; }
.kpi.link { cursor: pointer; transition: border-color 0.15s, transform 0.15s; }
.kpi.link:hover { border-color: var(--border-strong); transform: translateY(-1px); }
.kpi-num { font-family: var(--font-head); font-size: 2.2rem; line-height: 1.05; color: var(--gold-2); }
.kpi-num.rank-word { font-size: 1.4rem; padding: 6px 0 4px; }
.kpi-of { font-size: 1.1rem; color: var(--muted); }
.kpi-label { font-weight: 600; margin-top: 4px; }
.kpi-sub { font-size: 0.85rem; color: var(--muted); margin-top: 2px; }
.kpi.warn { border-color: rgba(224, 106, 106, 0.45); }
.kpi.warn .kpi-num { color: var(--red); }
.kpi.good .kpi-num { color: var(--green); }

.ov-grid { align-items: start; }
.ov-card h3 { display: flex; align-items: baseline; gap: 10px; }
.ov-sub { font-size: 1.15rem; margin: 30px 0 12px; }
.ov-result { margin: 0 0 12px; }

.role-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.role-tile { border: 1px solid var(--border); border-radius: 12px; padding: 12px 14px; background: rgba(0, 0, 0, 0.25); --c: var(--gold); border-left: 4px solid var(--c); }
.role-tile.tank { --c: var(--tank); } .role-tile.heal { --c: var(--heal); } .role-tile.melee { --c: var(--melee); } .role-tile.ranged { --c: var(--ranged); }
.role-top { font-weight: 600; }
.role-num { font-family: var(--font-head); font-size: 2rem; color: var(--c); line-height: 1.1; margin-top: 4px; }
.role-track { height: 6px; border-radius: 999px; background: rgba(255, 255, 255, 0.06); margin: 6px 0 4px; overflow: hidden; }
.role-track span { display: block; height: 100%; background: var(--c); border-radius: 999px; }
.role-sub { font-size: 0.82rem; color: var(--muted); }

.class-bars { display: grid; gap: 9px; }
.class-row { display: grid; grid-template-columns: 120px 1fr auto; gap: 12px; align-items: center; }
.class-row.zero { opacity: 0.4; }
.class-name { font-weight: 600; }
.class-track { height: 10px; border-radius: 999px; background: rgba(255, 255, 255, 0.06); overflow: hidden; }
.class-track span { display: block; height: 100%; border-radius: 999px; }
.class-n { font-weight: 600; min-width: 2ch; text-align: right; }
.class-n small { font-weight: 400; color: var(--muted); }

.filter-bar { display: flex; gap: 12px; flex-wrap: wrap; align-items: flex-end; margin: 4px 0 10px; }
.filter-bar label { flex: 1 1 140px; margin: 0; display: flex; flex-direction: column; gap: 4px; }
.filter-bar label.grow { flex: 2 1 220px; }
.filter-bar input[type="search"] { width: 100%; background: rgba(0, 0, 0, 0.35); border: 1px solid var(--border); color: var(--text); border-radius: 10px; padding: 10px 12px; font: inherit; font-size: 0.95rem; }

.player-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 14px; }
.player-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 14px 16px; display: flex; flex-direction: column; gap: 10px; }
.player-card.me { border-color: var(--border-strong); box-shadow: 0 0 0 1px rgba(212, 168, 90, 0.25) inset; }
.pc-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.pc-player { font-family: var(--font-head); font-size: 1.1rem; color: var(--text); margin-right: auto; }
.pc-line { display: flex; align-items: center; gap: 8px; }
.pc-char { font-weight: 700; font-size: 1.08rem; }
.pc-meta { font-size: 0.88rem; color: var(--muted); margin: 2px 0 8px 32px; }
.pc-main .pchips { margin-left: 32px; }
.pchips { display: flex; flex-wrap: wrap; gap: 6px; }
.pchip { font-size: 0.8rem; padding: 2px 9px; border-radius: 999px; border: 1px solid var(--border); background: rgba(0, 0, 0, 0.25); }
.pchip.sec { color: var(--muted); border-style: dashed; }
.pc-twinks { border-top: 1px solid var(--border); padding-top: 8px; display: grid; gap: 6px; }
.pc-label { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.12em; color: var(--muted); }
.pc-twink { display: grid; grid-template-columns: 24px auto 1fr; gap: 8px; align-items: baseline; font-size: 0.92rem; }
.pc-tmeta { color: var(--muted); font-size: 0.82rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dim { opacity: 0.35; }
.role-ico { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 7px; font-size: 0.85rem; flex: none; background: rgba(255, 255, 255, 0.05); }
.role-ico.tank { background: rgba(127, 182, 230, 0.18); } .role-ico.heal { background: rgba(116, 209, 116, 0.18); }
.role-ico.melee { background: rgba(232, 135, 90, 0.18); } .role-ico.ranged { background: rgba(185, 148, 240, 0.18); }
.wait-badge { margin-left: auto; font-size: 0.72rem; padding: 2px 8px; border-radius: 999px; border: 1px solid var(--border); color: var(--muted); white-space: nowrap; }
.wait-badge.wait-wait { color: var(--yellow); border-color: rgba(230, 201, 92, 0.45); }
.rank-badge { font-size: 0.7rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; padding: 2px 8px; border-radius: 999px; border: 1px solid var(--border); color: var(--muted); }
.rank-badge.rank-admin { color: #1d1507; background: var(--gold-2); border-color: transparent; }
.rank-badge.rank-leitung { color: var(--gold-2); border-color: var(--border-strong); background: rgba(212, 168, 90, 0.12); }
.rank-badge.rank-offizier { color: var(--blue); border-color: rgba(127, 182, 230, 0.45); }

.prof-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 12px; }
.prof-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 12px 14px; }
.prof-card.missing { border-style: dashed; border-color: rgba(224, 106, 106, 0.45); background: rgba(224, 106, 106, 0.04); }
.prof-head { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.prof-ico { font-size: 1.3rem; }
.prof-name { font-weight: 700; margin-right: auto; }
.prof-count { font-family: var(--font-head); font-size: 1.3rem; color: var(--gold-2); }
.prof-card.missing .prof-count { color: var(--red); }
.prof-people { display: grid; gap: 4px; }
.person-chip { display: flex; align-items: baseline; gap: 8px; font-size: 0.88rem; padding: 4px 9px; border-radius: 8px; background: rgba(0, 0, 0, 0.3); border: 1px solid rgba(255, 255, 255, 0.06); font-weight: 600; min-width: 0; }
.person-chip > span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; margin-right: auto; min-width: 0; }
.person-chip small { font-weight: 400; color: var(--muted); font-size: 0.78rem; white-space: nowrap; }
.person-chip small.tw { font-style: italic; }
.prof-wanted { color: var(--red); font-size: 0.88rem; }
.prof-grid.secondary .prof-card { padding: 10px 12px; }

/* Freigabe-Hinweise und Verwaltung */
.status-banner { border-radius: 12px; padding: 14px 16px; margin-bottom: 18px; border: 1px solid var(--border); }
.status-banner.pending { border-color: rgba(230, 201, 92, 0.5); background: rgba(230, 201, 92, 0.08); }
.status-banner.rejected { border-color: rgba(224, 106, 106, 0.5); background: rgba(224, 106, 106, 0.08); }
.nav-badge { display: inline-block; min-width: 18px; padding: 0 6px; margin-left: 6px; border-radius: 999px; background: var(--red); color: #fff; font-size: 0.72rem; font-weight: 700; text-align: center; line-height: 18px; }
.nav-flag { margin-left: 4px; }
.review-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 14px; }
.review-card { background: var(--surface); border: 1px solid rgba(230, 201, 92, 0.45); border-radius: var(--radius); padding: 14px 16px; display: grid; gap: 10px; }
.rc-head { display: flex; gap: 12px; align-items: center; }
.rc-avatar { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, 0.06); flex: none; }
.rc-name { font-weight: 700; font-size: 1.05rem; }
.rc-chars { display: grid; gap: 6px; }
.rc-char { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.rc-note { margin: 0; color: var(--muted); font-style: italic; }
.admin-table td { vertical-align: middle; }
.rank-select { min-width: 150px; }
.rejected-list { margin-top: 24px; }
.rejected-list summary { cursor: pointer; color: var(--muted); font-weight: 600; margin-bottom: 10px; }

@media (max-width: 860px) {
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .class-row { grid-template-columns: 100px 1fr auto; }
}
@media (max-width: 420px) {
  .tab { padding: 10px 10px; }
  .role-grid { gap: 8px; }
  .kpi-num { font-size: 1.8rem; }
}

/* Bewerbung */
.rank-badge.rank-probe { color: var(--green); border-color: rgba(116, 209, 116, 0.45); background: rgba(116, 209, 116, 0.08); }
.rank-badge.rank-bewerber { color: var(--yellow); border-color: rgba(230, 201, 92, 0.45); }
.status-banner.approved { border-color: rgba(116, 209, 116, 0.5); background: rgba(116, 209, 116, 0.08); }
.review-card.application { border-color: rgba(212, 168, 90, 0.6); }
.rc-apply { background: rgba(0, 0, 0, 0.25); border: 1px solid var(--border); border-radius: 10px; padding: 10px 12px; }
.rc-apply p { margin: 4px 0 6px; white-space: pre-line; }
.rc-actions { display: flex; gap: 12px; align-items: flex-end; flex-wrap: wrap; justify-content: space-between; }
.rc-as { margin: 0; display: flex; flex-direction: column; gap: 4px; }
.rc-as select { min-width: 150px; }
.apply-steps li h4 { margin-bottom: 2px; }

/* ===== Navigation: Untermenü „Gilde“ ===== */
.nav-drop { position: relative; }
.nav-drop-btn {
  display: block; padding: 8px 10px; border-radius: 8px; color: var(--text); font: inherit; font-weight: 500; font-size: 0.95rem;
  background: none; border: 0; cursor: pointer; white-space: nowrap;
}
.nav-drop-btn:hover, .nav-drop.open .nav-drop-btn { background: rgba(255, 255, 255, 0.05); }
.nav-drop-btn.active { color: var(--gold-2); background: rgba(212, 168, 90, 0.10); }
.nav-drop .caret { font-size: 0.7rem; opacity: 0.7; }
.nav-sub {
  display: none; position: absolute; top: calc(100% + 4px); left: 0; min-width: 200px; list-style: none; margin: 0; padding: 6px;
  background: rgba(20, 17, 13, 0.98); border: 1px solid var(--border); border-radius: 12px; box-shadow: var(--shadow); z-index: 60;
}
.nav-drop:hover .nav-sub, .nav-drop:focus-within .nav-sub, .nav-drop.open .nav-sub { display: block; }
.nav-sub a { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
@media (max-width: 1000px) {
  .nav-drop-btn { width: 100%; text-align: left; }
  .nav-sub { display: block; position: static; box-shadow: none; border: 0; background: none; padding: 0 0 0 14px; min-width: 0; }
}

/* ===== Fotos ===== */
.photo-box { display: flex; align-items: center; gap: 14px; }
.photo-frame { width: 84px; height: 84px; border-radius: 50%; overflow: hidden; border: 2px solid var(--border-strong); display: grid; place-items: center; background: rgba(0, 0, 0, 0.3); font-size: 1.8rem; flex: none; }
.photo-frame img { width: 100%; height: 100%; object-fit: cover; }
.photo-actions { display: flex; flex-direction: column; gap: 6px; }
.photo-actions label.btn, .char-card label.btn { cursor: pointer; margin: 0; text-transform: none; letter-spacing: 0; color: var(--text); font-size: 0.85rem; }
.me-head { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; margin-bottom: 12px; }
.char-top { display: flex; gap: 10px; align-items: center; }
.char-photo { width: 44px; height: 44px; border-radius: 10px; object-fit: cover; border: 1px solid var(--border); }
.pc-photo { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; border: 1px solid var(--border-strong); flex: none; }
.pc-photo.empty { display: grid; place-items: center; background: rgba(212, 168, 90, 0.12); color: var(--gold-2); font-family: var(--font-head); font-weight: 700; }
.nav-links .nav-user img { object-fit: cover; }

.av { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; flex: none; border: 1px solid var(--border); }
.av.empty { display: inline-grid; place-items: center; background: rgba(212, 168, 90, 0.12); color: var(--gold-2); font-family: var(--font-head); font-weight: 700; }
.av-sm { width: 26px; height: 26px; font-size: 0.75rem; }
.av-lg { width: 64px; height: 64px; font-size: 1.4rem; }

/* ===== Forum ===== */
.crumbs { font-size: 0.9rem; color: var(--muted); margin-bottom: 14px; }
.crumbs a { color: var(--gold-2); }
.forum-cats { display: grid; gap: 10px; }
.forum-cat {
  display: grid; grid-template-columns: 1fr 120px 260px; gap: 16px; align-items: center; padding: 14px 18px; color: var(--text);
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); text-decoration: none;
}
.forum-cat:hover { border-color: var(--border-strong); text-decoration: none; }
.fc-name { font-family: var(--font-head); font-size: 1.15rem; color: var(--gold-2); }
.fc-desc { color: var(--muted); font-size: 0.9rem; margin-top: 2px; }
.fc-stats { font-size: 0.85rem; color: var(--muted); text-align: right; }
.fc-stats b { color: var(--text); }
.fc-last { display: flex; gap: 10px; align-items: center; min-width: 0; }
.fc-last-title { font-weight: 600; font-size: 0.9rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 210px; }
.forum-admin { margin-top: 22px; }
.forum-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 12px; flex-wrap: wrap; }
.forum-toolbar p { margin: 0; }
.thread-list { border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; background: var(--surface); }
.thread-row {
  display: grid; grid-template-columns: 40px 1fr 90px 190px; gap: 12px; align-items: center; padding: 12px 16px; color: var(--text);
  border-bottom: 1px solid var(--border); text-decoration: none;
}
.thread-row:last-child { border-bottom: 0; }
.thread-row:hover { background: rgba(255, 255, 255, 0.03); text-decoration: none; }
.thread-row.pinned { background: rgba(212, 168, 90, 0.05); }
.tr-icons { font-size: 0.9rem; }
.tr-title { font-weight: 500; }
.thread-row.unread .tr-title { font-weight: 700; color: var(--gold-2); }
.tr-meta { font-size: 0.82rem; color: var(--muted); }
.tr-replies { text-align: center; font-size: 0.8rem; color: var(--muted); display: flex; flex-direction: column; }
.tr-replies b { font-size: 1.05rem; color: var(--text); }
.tr-last { display: flex; gap: 8px; align-items: center; }
.pager { display: flex; gap: 6px; margin-top: 12px; flex-wrap: wrap; }
.thread-title { margin: 0 0 10px; }
.mod-bar { margin-bottom: 14px; }
.posts { display: grid; gap: 12px; margin-bottom: 18px; }
.post { display: grid; grid-template-columns: 150px 1fr; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.post.deleted { opacity: 0.6; }
.post-author { padding: 14px; border-right: 1px solid var(--border); background: rgba(0, 0, 0, 0.18); display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center; }
.pa-name { font-weight: 700; word-break: break-word; }
.post-main { padding: 12px 16px; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.post-meta { font-size: 0.8rem; color: var(--muted); }
.post-text textarea { width: 100%; }
.post-actions { display: flex; gap: 14px; margin-top: auto; }
.link-btn { background: none; border: 0; color: var(--muted); font: inherit; font-size: 0.85rem; cursor: pointer; padding: 0; }
.link-btn:hover { color: var(--gold-2); }
.link-btn.danger:hover { color: var(--red); }
.md p { margin: 0 0 8px; }
.md p:last-child { margin-bottom: 0; }
.md blockquote { margin: 0 0 8px; padding: 6px 12px; border-left: 3px solid var(--border-strong); background: rgba(0, 0, 0, 0.25); color: var(--muted); border-radius: 0 8px 8px 0; }
.md ul { margin: 0 0 8px; padding-left: 20px; }
.md code { background: rgba(0, 0, 0, 0.35); padding: 1px 5px; border-radius: 5px; font-size: 0.88em; }
.md a { word-break: break-all; }
.reply-form textarea, form[data-forum-form] textarea { width: 100%; }

/* ===== Podcast ===== */
.podcast-upload { margin-bottom: 18px; }
.podcast-upload summary, .feed-box summary { cursor: pointer; }
.feed-box { margin-bottom: 18px; }
.copy-row { display: flex; gap: 8px; }
.copy-row input { flex: 1; font-family: ui-monospace, Consolas, monospace; font-size: 0.8rem; }
.episodes { display: grid; gap: 14px; }
.episode { display: grid; gap: 10px; }
.episode.highlight { border-color: var(--gold-2); box-shadow: 0 0 0 2px rgba(241, 207, 132, 0.25); }
.ep-head { display: flex; gap: 14px; align-items: center; }
.ep-cover { width: 56px; height: 56px; border-radius: 12px; display: grid; place-items: center; font-size: 1.7rem; flex: none;
  background: linear-gradient(135deg, rgba(226, 69, 59, 0.35), rgba(212, 168, 90, 0.35)); border: 1px solid var(--border-strong); }
.ep-info h3 { margin: 0 0 2px; }
.episode audio { width: 100%; }
.ep-desc { color: var(--text); }
.ep-edit { margin-top: 6px; }
.upload-progress { margin: 0 0 8px; }

/* ===== Raids ===== */
.raid-toolbar { display: flex; gap: 10px; justify-content: flex-end; flex-wrap: wrap; margin-bottom: 14px; }
.raid-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 14px; }
.raid-card { display: grid; grid-template-columns: 72px 1fr; gap: 14px; padding: 14px; color: var(--text); background: var(--surface);
  border: 1px solid var(--border); border-radius: var(--radius); text-decoration: none; }
.raid-card:hover { border-color: var(--border-strong); text-decoration: none; }
.raid-card.past { opacity: 0.6; }
.rc-date { display: flex; flex-direction: column; align-items: center; justify-content: center; background: rgba(0, 0, 0, 0.3); border: 1px solid var(--border); border-radius: 12px; padding: 6px; }
.rc-date .day { font-family: var(--font-head); font-size: 1.7rem; line-height: 1; color: var(--gold-2); }
.rc-date .mon { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); }
.rc-date .wd { font-size: 0.72rem; color: var(--muted); white-space: nowrap; }
.rc-title { font-weight: 700; font-size: 1.05rem; }
.rc-badges { margin-top: 8px; display: flex; gap: 6px; flex-wrap: wrap; }
.comp { display: grid; gap: 6px; margin: 8px 0 4px; }
.comp-row { display: grid; grid-template-columns: 110px 1fr 52px; gap: 10px; align-items: center; --c: var(--gold); font-size: 0.9rem; }
.comp.compact .comp-row { grid-template-columns: 22px 1fr 44px; font-size: 0.8rem; }
.comp-row.tank { --c: var(--tank); } .comp-row.heal { --c: var(--heal); } .comp-row.melee { --c: var(--melee); } .comp-row.ranged { --c: var(--ranged); }
.comp-track { height: 8px; border-radius: 999px; background: rgba(255, 255, 255, 0.06); overflow: hidden; }
.comp-track span { display: block; height: 100%; background: var(--c); border-radius: 999px; }
.comp-n { text-align: right; font-weight: 600; color: var(--muted); }
.comp-n.full { color: var(--green); }
.comp-inputs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.comp-inputs label { display: flex; flex-direction: column; gap: 4px; margin: 0; }
.comp-inputs input { width: 100%; background: rgba(0, 0, 0, 0.35); border: 1px solid var(--border); color: var(--text); border-radius: 10px; padding: 8px 10px; font: inherit; }
.raid-head { display: flex; justify-content: space-between; gap: 16px; align-items: flex-start; flex-wrap: wrap; margin-bottom: 14px; }
.raid-head h2 { margin: 0 0 4px; }
.signup-card { margin-bottom: 18px; border-color: var(--border-strong); }
.segmented { display: flex; flex-wrap: wrap; gap: 8px; }
.seg { margin: 0; text-transform: none; letter-spacing: 0; cursor: pointer; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg span { display: inline-block; padding: 8px 14px; border: 1px solid var(--border); border-radius: 999px; color: var(--text); font-size: 0.9rem; background: rgba(0, 0, 0, 0.25); }
.seg input:checked + span { background: rgba(212, 168, 90, 0.18); border-color: var(--gold-2); color: var(--gold-2); font-weight: 600; }
.seg input:focus-visible + span { outline: 2px solid var(--gold-2); }
.lineup-summary { margin-bottom: 14px; }
.lineup-board { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; align-items: start; }
.lineup-col { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 10px; --c: var(--gold); border-top: 3px solid var(--c); display: grid; gap: 8px; }
.lineup-col.tank { --c: var(--tank); } .lineup-col.heal { --c: var(--heal); } .lineup-col.melee { --c: var(--melee); } .lineup-col.ranged { --c: var(--ranged); }
.lc-head { font-weight: 700; display: flex; justify-content: space-between; }
.lc-head span { color: var(--c); }
.lc-empty { padding: 6px 0; }
.member-chip { background: rgba(0, 0, 0, 0.25); border: 1px solid rgba(255, 255, 255, 0.06); border-radius: 10px; padding: 8px 10px; display: grid; gap: 4px; }
.member-chip.bench { opacity: 0.65; border-style: dashed; }
.mc-top { display: flex; gap: 8px; align-items: center; }
.mc-name { font-weight: 700; }
.mc-badges { display: flex; gap: 4px; flex-wrap: wrap; }
.mc-badges:empty { display: none; }
.chip-controls { display: flex; gap: 6px; }
.chip-controls select { padding: 4px 6px; font-size: 0.8rem; border-radius: 8px; }
.lineup-flat { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 8px; }
.group-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 10px; }
.group-box { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 10px; font-size: 0.9rem; display: grid; gap: 3px; }
.sr-inputs { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 8px; margin: 8px 0 10px; }
.sr-inputs input { width: 100%; background: rgba(0, 0, 0, 0.35); border: 1px solid var(--border); color: var(--text); border-radius: 10px; padding: 9px 12px; font: inherit; }
.sr-list { display: grid; gap: 8px; }
.sr-item { display: grid; grid-template-columns: minmax(180px, 280px) 1fr; gap: 12px; align-items: center; padding: 10px 14px; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; }
.sr-name { font-weight: 700; }
.sr-players { display: flex; flex-wrap: wrap; gap: 6px; }
.sr-players .person-chip { display: inline-flex; }
.bonus { display: inline-block; font-size: 0.75rem; font-weight: 700; color: #1d1507; background: var(--gold-2); border-radius: 999px; padding: 0 7px; margin-left: 4px; }
.sr-rules ol { padding-left: 20px; display: grid; gap: 8px; }
.loot-hint { min-height: 1.2em; }
@media (max-width: 860px) {
  .forum-cat { grid-template-columns: 1fr; gap: 8px; }
  .fc-stats { text-align: left; }
  .thread-row { grid-template-columns: 28px 1fr 60px; }
  .tr-last { display: none; }
  .post { grid-template-columns: 1fr; }
  .post-author { flex-direction: row; justify-content: flex-start; border-right: 0; border-bottom: 1px solid var(--border); text-align: left; }
  .post-author .av-lg { width: 40px; height: 40px; }
  .lineup-board { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .comp-inputs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sr-item { grid-template-columns: 1fr; }
}
@media (max-width: 520px) { .lineup-board { grid-template-columns: 1fr; } }
