@font-face {
  font-family: 'Cinzel';
  src: url('fonts/Cinzel.woff2') format('woff2');
  font-weight: 400 900;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --bg: #0d0b09;
  --bg-2: #14100c;
  --panel: #19140f;
  --panel-2: #221b14;
  --line: #3b2f21;
  --ink: #f0e7d3;
  --muted: #a89a82;
  --gold: #e8b64c;
  --gold-2: #f6dc92;
  --alliance: #4b8bf5;
  --horde: #d9453b;
  --good: #6fcf7f;
  --warn: #f0a23b;
  --bad: #e5604f;
  --radius: 12px;
  --serif: 'Cinzel', 'Palatino Linotype', Georgia, serif;
  --sans: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --nav-h: 62px;
  --gutter: 16px;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.5 var(--sans);
  overflow-x: hidden;
  padding-bottom: calc(var(--nav-h) + env(safe-area-inset-bottom) + 12px);
}
.bg-glow {
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(900px 500px at 50% -10%, rgba(232, 182, 76, .16), transparent 70%),
    radial-gradient(600px 400px at 100% 100%, rgba(75, 139, 245, .08), transparent 70%),
    radial-gradient(600px 400px at 0% 100%, rgba(217, 69, 59, .08), transparent 70%);
}

a { color: var(--gold-2); }
h1, h2, h3, h4 { font-family: var(--serif); letter-spacing: .02em; margin: 0 0 .5rem; line-height: 1.2; }
h2 { font-size: 1.15rem; color: var(--gold); }
h3 { font-size: 1rem; }
p { margin: 0 0 .75rem; }
.muted { color: var(--muted); }
.small { font-size: .85rem; }
.hint { font-size: .82rem; color: var(--muted); margin: .35rem 0 .75rem; }
.hint.good { color: var(--good); }
.hint.bad { color: var(--bad); }
.empty { color: var(--muted); padding: .75rem; border: 1px dashed var(--line); border-radius: var(--radius); text-align: center; }
.form-error { color: var(--bad); font-size: .9rem; margin: .5rem 0; }

/* ---------- Kopf & Navigation ---------- */
.top {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; gap: 10px;
  padding: 10px var(--gutter);
  padding-top: calc(10px + env(safe-area-inset-top));
  background: linear-gradient(180deg, rgba(13, 11, 9, .96), rgba(13, 11, 9, .86));
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 8px; text-decoration: none; color: var(--gold); font-family: var(--serif); font-weight: 800; letter-spacing: .12em; }
.brand-mark { font-size: 1.6rem; line-height: 1; }
.brand-text { font-size: 1rem; }
.top-count { flex: 1; text-align: center; font-variant-numeric: tabular-nums; font-size: .82rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.who {
  font: inherit; font-size: .88rem; color: var(--ink); background: var(--panel-2);
  border: 1px solid var(--line); border-radius: 999px; padding: 8px 14px; min-height: 40px;
  max-width: 40vw; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; cursor: pointer;
}
.who.is-in { border-color: var(--gold); color: var(--gold-2); }

.nav {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
  display: grid; grid-template-columns: repeat(6, 1fr);
  background: rgba(20, 16, 12, .97); backdrop-filter: blur(10px);
  border-top: 1px solid var(--line);
  padding-bottom: env(safe-area-inset-bottom);
}
.nav a {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  min-height: var(--nav-h); color: var(--muted); text-decoration: none; font-size: .68rem;
}
.nav a .ico { font-size: 1.25rem; line-height: 1; }
.nav a.is-active { color: var(--gold); }
.nav a.is-active .ico { filter: drop-shadow(0 0 6px rgba(232, 182, 76, .6)); }

main { max-width: 980px; margin: 0 auto; padding: var(--gutter); outline: none; }
.foot { max-width: 980px; margin: 0 auto; padding: 0 var(--gutter) 24px; color: var(--muted); font-size: .78rem; text-align: center; }

@media (min-width: 760px) {
  body { padding-bottom: 0; }
  .nav {
    position: sticky; top: 61px; bottom: auto; grid-template-columns: repeat(6, minmax(90px, 140px));
    justify-content: center; border-top: 0; border-bottom: 1px solid var(--line); padding: 0;
  }
  .nav a { flex-direction: row; gap: 8px; min-height: 46px; font-size: .9rem; }
  .nav a.is-active { box-shadow: inset 0 -2px 0 var(--gold); }
  .top-count { font-size: .95rem; }
}

/* ---------- Karten, Buttons, Formulare ---------- */
.card {
  background: linear-gradient(180deg, var(--panel), var(--bg-2));
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 16px; margin-bottom: 16px;
  box-shadow: 0 1px 0 rgba(255, 255, 255, .03) inset, 0 8px 24px rgba(0, 0, 0, .25);
}
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: .5rem; }
.card-head h2 { margin: 0; }

.btn {
  font: inherit; font-size: .92rem; font-weight: 600;
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-height: 44px; padding: 8px 16px; border-radius: 10px; cursor: pointer; text-decoration: none;
  color: var(--ink); background: var(--panel-2); border: 1px solid var(--line);
}
.btn:hover { border-color: var(--gold); }
.btn.primary { background: linear-gradient(180deg, #f1c765, #c9922b); color: #1c1406; border-color: #f1c765; }
.btn.ghost { background: transparent; }
.btn.danger { color: var(--bad); }
.btn.small { min-height: 36px; padding: 4px 12px; font-size: .84rem; }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn:focus-visible, .tal:focus-visible, .who:focus-visible, input:focus-visible, select:focus-visible, .nav a:focus-visible {
  outline: 2px solid var(--gold-2); outline-offset: 2px;
}

label { display: block; font-size: .85rem; color: var(--muted); margin: .6rem 0 .25rem; }
input, select {
  width: 100%; font: inherit; color: var(--ink); background: #0f0c09;
  border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; min-height: 44px;
}
input::placeholder { color: #6f6350; }
fieldset { border: 1px solid var(--line); border-radius: var(--radius); margin: .75rem 0; padding: .5rem .75rem .25rem; }
legend { color: var(--gold); font-family: var(--serif); font-size: .9rem; padding: 0 6px; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
@media (max-width: 420px) { .grid2 { grid-template-columns: 1fr; } }
.row { display: flex; gap: 8px; }
.row input { flex: 1; }
.actions { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; margin-top: .75rem; }
.form h3 { color: var(--gold); }
.switch { display: flex; align-items: center; gap: 10px; color: var(--ink); font-size: .92rem; }
.switch input { width: 20px; min-height: 20px; height: 20px; accent-color: var(--gold); }

.dialog { background: var(--panel); color: var(--ink); border: 1px solid var(--gold); border-radius: 16px; padding: 20px; width: min(92vw, 420px); }
.dialog::backdrop { background: rgba(0, 0, 0, .7); }
.dialog h2 { font-size: 1.3rem; }
.dialog-actions { display: flex; flex-wrap: wrap; gap: 8px; justify-content: space-between; margin-top: 1rem; }

.toast {
  position: fixed; left: 50%; transform: translateX(-50%); z-index: 60;
  bottom: calc(var(--nav-h) + 16px + env(safe-area-inset-bottom));
  max-width: min(92vw, 460px); padding: 12px 16px; border-radius: 12px;
  background: #2a2117; border: 1px solid var(--gold); color: var(--ink); box-shadow: 0 8px 24px rgba(0, 0, 0, .5);
}
.toast.is-error { border-color: var(--bad); }
@media (min-width: 760px) { .toast { bottom: 24px; } }

/* ---------- Hero / Countdown ---------- */
.hero { text-align: center; padding: 28px 8px 20px; }
.hero.small { padding: 12px 8px 4px; }
.kicker { color: var(--gold); letter-spacing: .3em; text-transform: uppercase; font-size: .75rem; margin: 0 0 6px; }
.title {
  font-size: clamp(2rem, 9vw, 3.6rem); font-weight: 800; margin: 0 0 6px;
  background: linear-gradient(180deg, #fff3c9, #e8b64c 55%, #a8731a);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  text-shadow: 0 0 40px rgba(232, 182, 76, .25);
}
.hero.small .title { font-size: clamp(1.6rem, 7vw, 2.4rem); }
.subtitle { color: var(--muted); max-width: 36em; margin: 0 auto 18px; }
.countdown { display: flex; justify-content: center; gap: 10px; margin: 8px 0 12px; font-variant-numeric: tabular-nums; }
.cd-cell {
  min-width: 68px; padding: 10px 6px; border: 1px solid var(--line); border-radius: 12px;
  background: linear-gradient(180deg, var(--panel-2), var(--panel));
}
.cd-cell b { display: block; font-family: var(--serif); font-size: clamp(1.6rem, 8vw, 2.6rem); color: var(--gold-2); line-height: 1.1; }
.cd-cell span { font-size: .7rem; color: var(--muted); text-transform: uppercase; letter-spacing: .12em; }
.countdown.small .cd-cell { min-width: 56px; padding: 6px; }
.countdown.small .cd-cell b { font-size: 1.4rem; }
.cd-done { font-family: var(--serif); font-size: 1.4rem; color: var(--gold-2); }
.when { color: var(--ink); font-size: .92rem; }
.badge-line { color: var(--muted); font-size: .82rem; }

.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.steps li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 12px; background: var(--panel-2); border: 1px solid var(--line); border-radius: 10px; }
.steps li span { flex: 1; }
@media (max-width: 480px) { .steps li { flex-direction: column; align-items: stretch; } .steps li .btn { width: 100%; } }

.stat-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 12px; }
.stat { text-align: center; padding: 10px 4px; background: var(--panel-2); border: 1px solid var(--line); border-radius: 10px; }
.stat b { display: block; font-family: var(--serif); font-size: 1.6rem; color: var(--gold-2); }
.stat span { font-size: .78rem; color: var(--muted); }
.split { display: flex; height: 30px; border-radius: 8px; overflow: hidden; border: 1px solid var(--line); font-size: .8rem; font-weight: 700; }
.split span { display: flex; align-items: center; justify-content: center; min-width: 0; overflow: hidden; white-space: nowrap; }
.split-a { background: var(--alliance); color: #04122c; }
.split-h { background: var(--horde); color: #2b0603; }

/* ---------- Tabs, Chips ---------- */
.tabs { display: flex; gap: 6px; margin-bottom: 14px; overflow-x: auto; }
.tabs a {
  flex: 1; text-align: center; padding: 10px 12px; min-height: 44px; border: 1px solid var(--line);
  border-radius: 10px; color: var(--muted); text-decoration: none; background: var(--panel); white-space: nowrap;
}
.tabs a.is-active { color: var(--gold); border-color: var(--gold); background: var(--panel-2); }
.crumbs { margin-bottom: 8px; }

.chip {
  display: inline-flex; align-items: center; gap: 5px; font-size: .84rem; padding: 2px 9px; border-radius: 999px;
  background: color-mix(in srgb, var(--c, #999) 14%, transparent); border: 1px solid color-mix(in srgb, var(--c, #999) 45%, transparent);
  margin: 2px 2px 2px 0;
}
.chip i { width: 8px; height: 8px; border-radius: 50%; background: var(--c, #999); }
.chip small { color: var(--muted); }
.chip.is-new { border-style: dashed; }
.pill { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: .8rem; border: 1px solid var(--line); background: var(--panel-2); margin: 2px 4px 2px 0; }
.fdot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; vertical-align: middle; }
.f-alliance.fdot { background: var(--alliance); }
.f-horde.fdot { background: var(--horde); }

/* ---------- Chars ---------- */
.char-list { display: grid; gap: 12px; margin-top: 12px; }
@media (min-width: 640px) { .char-list { grid-template-columns: 1fr 1fr; } }
.char {
  border: 1px solid var(--line); border-left: 4px solid var(--c, var(--line)); border-radius: var(--radius);
  padding: 12px; background: var(--panel-2);
}
.char.is-main { border-color: var(--gold); border-left-color: var(--c, var(--gold)); box-shadow: 0 0 0 1px rgba(232, 182, 76, .25); }
.char h3 { font-size: 1.1rem; margin: 0 0 4px; color: var(--c, var(--ink)); }
.star { color: var(--gold); }
.char-sub { color: var(--muted); font-size: .88rem; margin: 0 0 6px; }
.char-note { font-style: italic; color: var(--muted); font-size: .88rem; }
.char .actions { justify-content: flex-start; }

.bars { display: grid; gap: 6px; margin: 8px 0; }
.bar-row { display: grid; grid-template-columns: 96px 1fr 28px; gap: 8px; align-items: center; font-size: .86rem; }
.bar-track { height: 14px; background: #0f0c09; border: 1px solid var(--line); border-radius: 7px; overflow: hidden; }
.bar-fill { display: block; height: 100%; border-radius: 6px; }
.bar-n { text-align: right; color: var(--muted); }
.callout { padding: 10px 12px; border-radius: 10px; border: 1px solid var(--line); margin-top: 8px; }
.callout.warn { border-color: var(--warn); color: var(--warn); }
.callout.good { border-color: var(--good); color: var(--good); }

.owner { margin-top: 14px; }
.owner h3 { color: var(--gold); margin-bottom: 6px; }
.mini-list { display: flex; flex-wrap: wrap; gap: 8px; }
.mini {
  font: inherit; text-align: left; color: var(--ink); background: var(--panel-2); cursor: pointer;
  border: 1px solid var(--line); border-left: 4px solid var(--c); border-radius: 10px; padding: 8px 12px; min-height: 44px;
}
.mini small { display: block; color: var(--muted); font-size: .76rem; }
.mini.is-picked { border-color: var(--gold); background: #2b2113; }
.party-slots { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 8px; }
.slot { border-left: 4px solid var(--c); background: var(--panel-2); border-radius: 8px; padding: 6px 10px; }
.slot small { display: block; color: var(--muted); font-size: .74rem; }
.checks { list-style: none; display: flex; flex-wrap: wrap; gap: 6px 14px; padding: 0; margin: 4px 0; }
.checks .ok { color: var(--good); }
.checks .miss { color: var(--bad); }

.prof-list { display: grid; gap: 8px; margin-top: 8px; }
.prof { border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; background: var(--panel-2); }
.prof.is-empty { border-style: dashed; opacity: .75; }
.prof-head { display: flex; align-items: baseline; gap: 10px; margin-bottom: 4px; }
.prof-head .kind { color: var(--muted); font-size: .76rem; flex: 1; }
.prof-head .count { font-family: var(--serif); color: var(--gold-2); }

/* ---------- Wiki ---------- */
.wiki-grid { display: grid; gap: 12px; }
@media (min-width: 640px) { .wiki-grid { grid-template-columns: 1fr 1fr; } }
.wiki-item { border: 1px solid var(--line); border-radius: 10px; padding: 12px; background: var(--panel-2); }
.class-name { color: var(--c); }
.faction-alliance h2 { color: var(--alliance); }
.faction-horde h2 { color: var(--horde); }
.table-wrap { overflow-x: auto; margin: 0 -4px; }
.matrix { border-collapse: collapse; width: 100%; font-size: .8rem; }
.matrix th, .matrix td { border: 1px solid var(--line); padding: 6px 4px; text-align: center; }
.matrix thead th { color: var(--c); font-weight: 600; }
.matrix thead th span { writing-mode: vertical-rl; transform: rotate(180deg); display: inline-block; white-space: nowrap; }
.matrix tbody th { text-align: left; white-space: nowrap; padding-left: 8px; }
.matrix tr.f-alliance th { color: var(--alliance); }
.matrix tr.f-horde th { color: var(--horde); }
.matrix td.ok { color: var(--good); }
.matrix td.new { color: var(--gold); background: rgba(232, 182, 76, .12); font-weight: 700; }

/* ---------- Planung ---------- */
.progress { height: 8px; background: #0f0c09; border: 1px solid var(--line); border-radius: 6px; overflow: hidden; margin: 8px 0; }
.progress span { display: block; height: 100%; background: linear-gradient(90deg, #c9922b, #f6dc92); transition: width .3s; }
.check-group { margin-top: 12px; }
.check-group h3 { color: var(--gold); font-size: .9rem; margin-bottom: 4px; }
.check { display: flex; align-items: flex-start; gap: 12px; padding: 10px 6px; border-bottom: 1px solid var(--line); cursor: pointer; margin: 0; color: var(--ink); }
.check input { width: 22px; height: 22px; min-height: 22px; margin-top: 2px; accent-color: var(--gold); flex: none; }
.check-text { flex: 1; font-size: .94rem; }
.check-text small { display: block; color: var(--muted); font-size: .8rem; }
.check.is-done .check-text b { color: var(--muted); text-decoration: line-through; }
.check-n { color: var(--muted); font-size: .8rem; white-space: nowrap; }

.faction-vote { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.fbtn {
  position: relative; overflow: hidden; font: inherit; text-align: left; color: var(--ink); cursor: pointer;
  border: 2px solid var(--line); border-radius: var(--radius); padding: 14px; background: var(--panel-2); min-height: 96px;
}
.fbtn b { font-family: var(--serif); font-size: 1.1rem; display: block; }
.fbtn .n { position: absolute; top: 10px; right: 14px; font-family: var(--serif); font-size: 1.6rem; }
.fbtn small { display: block; color: var(--muted); margin-top: 4px; position: relative; z-index: 1; }
.fbtn .fill { position: absolute; left: 0; bottom: 0; height: 5px; }
.fbtn.f-alliance { border-color: color-mix(in srgb, var(--alliance) 50%, var(--line)); }
.fbtn.f-alliance b, .fbtn.f-alliance .n { color: var(--alliance); }
.fbtn.f-alliance .fill { background: var(--alliance); }
.fbtn.f-horde { border-color: color-mix(in srgb, var(--horde) 50%, var(--line)); }
.fbtn.f-horde b, .fbtn.f-horde .n { color: var(--horde); }
.fbtn.f-horde .fill { background: var(--horde); }
.fbtn.is-mine { box-shadow: 0 0 0 2px var(--gold); }

.realm { display: flex; align-items: stretch; gap: 8px; margin-top: 8px; }
.realm-main {
  flex: 1; font: inherit; text-align: left; color: var(--ink); background: var(--panel-2); cursor: pointer;
  border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; min-height: 56px;
}
.realm.is-mine .realm-main { border-color: var(--gold); }
.realm-name { font-weight: 700; }
.realm-main small { display: block; color: var(--muted); font-size: .78rem; }
.lead { font-style: normal; font-size: .7rem; color: #1c1406; background: var(--gold); border-radius: 999px; padding: 1px 8px; margin-left: 6px; }
.realm-bar { display: block; height: 4px; background: #0f0c09; border-radius: 2px; margin-top: 6px; overflow: hidden; }
.realm-bar span { display: block; height: 100%; background: var(--gold); }
.realm-n { align-self: center; min-width: 22px; text-align: right; font-family: var(--serif); color: var(--gold-2); }

/* ---------- Talentrechner ---------- */
.class-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
@media (min-width: 640px) { .class-grid { grid-template-columns: repeat(3, 1fr); } }
.class-card {
  display: block; padding: 12px; border: 1px solid var(--line); border-top: 3px solid var(--c);
  border-radius: 10px; text-decoration: none; color: var(--ink); background: var(--panel-2); min-height: 92px;
}
.class-card b { font-family: var(--serif); color: var(--c); display: block; }
.class-card span { font-size: .76rem; color: var(--muted); display: block; margin: 2px 0 6px; }
.class-card em { font-size: .72rem; font-style: normal; color: var(--muted); }

.calc-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin-bottom: 10px; }
.calc-points { text-align: center; min-width: 64px; }
.calc-points b { display: block; font-family: var(--serif); font-size: 1.5rem; color: var(--gold-2); line-height: 1; }
.calc-points span { font-size: .7rem; color: var(--muted); text-transform: uppercase; letter-spacing: .1em; }
.calc-actions { margin-left: auto; display: flex; gap: 6px; flex-wrap: wrap; }
.calc-actions #modeBtn { min-width: 44px; font-size: 1.1rem; }

.tree-tabs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-bottom: 10px; }
.tree-tabs button {
  font: inherit; color: var(--muted); background: var(--panel-2); border: 1px solid var(--line); border-radius: 10px;
  padding: 8px 4px; min-height: 52px; cursor: pointer; display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: .78rem;
}
.tree-tabs button b { font-family: var(--serif); color: var(--gold-2); font-size: 1.1rem; }
.tree-tabs button.is-active { border-color: var(--c, var(--gold)); color: var(--ink); background: #2b2113; }

.trees { display: grid; gap: 12px; }
.tree { display: none; border: 1px solid var(--line); border-radius: var(--radius); padding: 10px; background: #100d0a; }
.tree.is-active { display: block; }
.tree h3 { display: flex; justify-content: space-between; color: var(--gold); font-size: .95rem; }
.tree-pts { color: var(--gold-2); }
.tree-grid { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); grid-template-rows: repeat(var(--rows, 7), auto); gap: 14px 10px; justify-items: center; max-width: 340px; margin: 0 auto; }
.tree-grid .links { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.tree-grid .links line { stroke: #4a3c29; stroke-width: 4; stroke-linecap: round; }
.tree-grid .links line.on { stroke: var(--gold); }
@media (min-width: 900px) {
  .tree-tabs { display: none; }
  .trees { grid-template-columns: repeat(3, 1fr); }
  .tree { display: block; }
}

.tal {
  position: relative; z-index: 1; width: 100%; max-width: 64px; aspect-ratio: 1; padding: 0; cursor: pointer;
  border-radius: 10px; border: 2px solid #3b3022; background: #1a140d; color: var(--muted);
  touch-action: manipulation; -webkit-tap-highlight-color: transparent;
}
.tal img, .tal .ini { position: absolute; inset: 2px; width: calc(100% - 4px); height: calc(100% - 4px); border-radius: 7px; object-fit: cover; }
.tal .ini { display: flex; align-items: center; justify-content: center; font-family: var(--serif); font-size: 1rem; }
.tal .rk {
  position: absolute; right: -6px; bottom: -8px; z-index: 2; font-size: .7rem; font-weight: 700;
  padding: 1px 5px; border-radius: 6px; background: #000; border: 1px solid #3b3022; color: var(--muted);
}
.tal.locked img { filter: grayscale(1) brightness(.45); }
.tal.locked { opacity: .65; }
.tal.can { border-color: var(--good); }
.tal.can .rk { color: var(--good); border-color: var(--good); }
.tal.has { border-color: var(--gold); }
.tal.has .rk { color: var(--gold-2); border-color: var(--gold); }
.tal.maxed { box-shadow: 0 0 10px rgba(232, 182, 76, .55); }
.tal.sel { outline: 2px solid var(--gold-2); outline-offset: 2px; }

.tal-info { min-height: 76px; margin: 12px 0; padding: 12px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel-2); }
.tal-info h4 { color: var(--gold-2); margin-bottom: 4px; }
.rk-inline { font-family: var(--sans); font-size: .8rem; color: var(--muted); font-weight: 400; margin-left: 6px; }
.tal-info .req { color: var(--bad); font-size: .85rem; }
.tal-info .next { color: var(--good); font-size: .88rem; }
.save-form .row { align-items: stretch; }
.build { display: flex; align-items: center; gap: 8px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.build-main { flex: 1; min-width: 0; }
.build-title { font-weight: 700; display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.build small { color: var(--muted); }

/* ---------- LAN ---------- */
.seg { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.seg button {
  font: inherit; font-weight: 600; color: var(--muted); background: var(--panel-2); border: 1px solid var(--line);
  border-radius: 10px; min-height: 48px; cursor: pointer;
}
.seg button[aria-checked="true"] { color: #1c1406; background: linear-gradient(180deg, #f1c765, #c9922b); border-color: #f1c765; }
.rsvp-group { margin-top: 14px; }
.rsvp-group h3 { color: var(--gold); }
.rsvp-group h3 b { color: var(--muted); font-weight: 400; font-family: var(--sans); }
.rsvp-group ul { list-style: none; margin: 0; padding: 0; }
.rsvp-group li { padding: 6px 0; border-bottom: 1px solid var(--line); }
.rsvp-group li small, .rsvp-group li em { display: block; color: var(--muted); font-size: .8rem; }


@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}

/* ---------- Visuals: Icons, Portraits ---------- */
.art { display: inline-block; vertical-align: middle; border-radius: 6px; background: #0f0c09; flex: none; }
.art-fallback { display: inline-flex; align-items: center; justify-content: center; font-family: var(--serif); font-size: .7rem; color: var(--muted); border: 1px solid var(--line); }
img.art-role[src*="/small/"], img.art-class[src*="/small/"] { width: 18px; height: 18px; }
img.art-class[src*="/medium/"], img.art-role[src*="/medium/"] { width: 36px; height: 36px; }
img.art-race[src*="/large/"], img.art-class[src*="/large/"] { width: 56px; height: 56px; }
img.art-race[src*="/medium/"] { width: 36px; height: 36px; }
.chip .art { width: 16px; height: 16px; border-radius: 4px; }
.role { display: inline-flex; align-items: center; gap: 5px; }
.pill.role .art { width: 16px; height: 16px; border-radius: 4px; margin-right: 4px; }

.portrait {
  position: relative; display: inline-block; flex: none; width: 76px; height: 76px; padding: 4px;
  border-radius: 14px; border: 3px solid var(--c, var(--line)); background: radial-gradient(circle at 50% 30%, #2d2418, #0f0c09);
  box-shadow: 0 0 14px color-mix(in srgb, var(--c, #000) 35%, transparent);
}
.portrait.f-alliance { background: radial-gradient(circle at 50% 30%, #1f3358, #0b1220); }
.portrait.f-horde { background: radial-gradient(circle at 50% 30%, #5a1f1b, #1a0a09); }
.portrait > img.art-race[src] { width: 100%; height: 100%; border-radius: 9px; object-fit: cover; }
.portrait .badge { position: absolute; bottom: -9px; width: 30px; height: 30px; padding: 0; border-radius: 50%; border: 2px solid var(--c, var(--line)); background: #0f0c09; overflow: hidden; display: block; }
.portrait .badge .art { width: 100%; height: 100%; border-radius: 50%; }
.portrait .badge-class { right: -9px; }
.portrait .badge-role { left: -9px; }
.portrait.sm { width: 46px; height: 46px; padding: 2px; border-width: 2px; border-radius: 10px; }
.portrait.sm .badge { width: 20px; height: 20px; bottom: -6px; border-width: 1px; }
.portrait.sm .badge-class { right: -6px; }
.portrait.sm .badge-role { left: -6px; }
.portrait.big { width: 104px; height: 104px; padding: 5px; }
.portrait.big .badge { width: 40px; height: 40px; bottom: -10px; }
.portrait.big .badge-class { right: -10px; }
.portrait.big .badge-role { left: -10px; }

.char-top { display: flex; gap: 18px; align-items: center; margin-bottom: 14px; }
.char-head { min-width: 0; }
.char-head h3 { overflow-wrap: anywhere; }
.char-head .char-sub { margin-bottom: 2px; }

.preview {
  display: flex; align-items: center; gap: 20px; padding: 16px 18px; margin-bottom: 8px;
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel-2);
}
.pv-name { font-family: var(--serif); font-size: 1.25rem; display: block; overflow-wrap: anywhere; }
.gender { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin: 10px 0 2px; }
.gender button {
  font: inherit; font-weight: 600; color: var(--muted); background: var(--panel-2); border: 1px solid var(--line);
  border-radius: 10px; min-height: 44px; cursor: pointer;
}
.gender button[aria-checked="true"] { color: #1c1406; background: linear-gradient(180deg, #f1c765, #c9922b); border-color: #f1c765; }

.mini { display: flex; align-items: center; gap: 14px; padding-left: 14px; }
.mini .portrait.sm { margin-bottom: 6px; }
.mini-text { min-width: 0; }
.slot { display: flex; align-items: center; gap: 12px; padding: 8px 12px 8px 10px; }
.slot .portrait.sm { margin-bottom: 4px; }

.race-head { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; }
.race-head h3 { margin: 0; }
.race-pics { display: inline-flex; gap: 6px; }
.race-pics .art-race { border: 2px solid var(--line); border-radius: 10px; }
.race-pics.f-alliance .art-race { border-color: color-mix(in srgb, var(--alliance) 55%, var(--line)); }
.race-pics.f-horde .art-race { border-color: color-mix(in srgb, var(--horde) 55%, var(--line)); }
.race-head > .art-class { border: 2px solid var(--c); border-radius: 10px; }

.class-card { display: flex; flex-direction: column; align-items: flex-start; }
.class-card > .art-class { margin-bottom: 6px; border: 2px solid var(--c); border-radius: 10px; }
.with-art { display: flex; align-items: center; gap: 10px; }
.with-art .art-class { width: 36px; height: 36px; border: 2px solid var(--c); border-radius: 8px; }
.matrix thead th .art { display: block; margin: 0 auto 4px; }

@media (max-width: 380px) { .portrait { width: 64px; height: 64px; } .portrait.big { width: 88px; height: 88px; } .char-top { gap: 14px; } .preview { gap: 14px; padding: 12px; } }

/* ---------- Talent-Status (neu / geaendert / verschoben), Racials, Quellen ---------- */
.tal.st-new::after, .tal.st-changed::after, .tal.st-moved::after {
  content: ''; position: absolute; top: -5px; left: -5px; z-index: 2; width: 12px; height: 12px; border-radius: 50%;
  border: 2px solid #0d0b09;
}
.tal.st-new::after { background: var(--good); }
.tal.st-changed::after { background: var(--gold); }
.tal.st-moved::after { background: var(--alliance); }
.legend { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: .78rem; color: var(--muted); margin: 0 0 10px; }
.legend .lg::before { content: ''; display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 6px; vertical-align: -1px; }
.legend .st-new::before { background: var(--good); }
.legend .st-changed::before { background: var(--gold); }
.legend .st-moved::before { background: var(--alliance); }
.tal-info .cost { color: var(--muted); font-size: .82rem; }
.credit a, .foot a { color: var(--gold-2); }
.foot p { margin: 0 0 6px; }
.racials { list-style: none; padding: 0; margin: 8px 0 0; display: grid; gap: 8px; font-size: .84rem; }
.racials li { display: flex; gap: 10px; align-items: flex-start; }
.racials .art-racial { width: 28px; height: 28px; border-radius: 6px; margin-top: 2px; }
/* =====================================================================
   Aufgepeppt: Icons (Spezialisierung, Berufe, Fraktionen), Char-Assistent
   ===================================================================== */
img.art-spec[src*="/small/"], img.art-prof[src*="/small/"], img.art-faction[src*="/small/"] { width: 18px; height: 18px; border-radius: 4px; }
img.art-spec[src*="/medium/"], img.art-prof[src*="/medium/"], img.art-faction[src*="/medium/"] { width: 36px; height: 36px; }
img.art-spec[src*="/large/"], img.art-prof[src*="/large/"], img.art-faction[src*="/large/"] { width: 56px; height: 56px; }
.art-faction { background: transparent; border-radius: 8px; }
.role-tag { display: inline-flex; align-items: center; gap: 6px; font-size: .82rem; color: var(--muted); }
.spec-line { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 6px; }
.pill.prof { display: inline-flex; align-items: center; gap: 6px; padding: 3px 12px 3px 4px; }
.pill.prof .art { width: 22px; height: 22px; border-radius: 6px; }

/* ---------- Assistent ---------- */
.wiz { --accent: var(--gold); border-radius: var(--radius); }
.wiz.theme-alliance { --accent: var(--alliance); }
.wiz.theme-horde { --accent: var(--horde); }
.wiz-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 4px; }
.wiz-top h3 { margin: 0; color: var(--accent); font-size: 1.15rem; }
.stepper { list-style: none; display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; padding: 0; margin: 8px 0 10px; position: relative; }
.stepper li { position: relative; }
.stepper li:not(:last-child)::after { content: ''; position: absolute; top: 17px; left: calc(50% + 17px); right: calc(-50% + 17px); height: 2px; background: var(--line); }
.stepper button { width: 100%; background: none; border: 0; padding: 2px 0; color: var(--muted); font: inherit; cursor: pointer; display: flex; flex-direction: column; align-items: center; gap: 4px; min-height: 52px; }
.stepper button:disabled { cursor: default; opacity: .45; }
.stepper .dot { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; border: 2px solid var(--line); background: var(--panel-2); font-family: var(--serif); font-size: .85rem; position: relative; z-index: 1; }
.stepper .lbl { font-size: .66rem; letter-spacing: .02em; }
.stepper .is-done .dot { background: color-mix(in srgb, var(--accent) 35%, var(--panel-2)); border-color: var(--accent); color: var(--ink); }
.stepper .is-cur .dot { background: var(--accent); border-color: var(--accent); color: #0d0b09; box-shadow: 0 0 12px color-mix(in srgb, var(--accent) 70%, transparent); }
.stepper .is-cur .lbl { color: var(--ink); font-weight: 700; }
@media (max-width: 400px) {
  .stepper .lbl { font-size: .6rem; }
  .stepper .dot { width: 26px; height: 26px; }
  .stepper li:not(:last-child)::after { top: 15px; left: calc(50% + 15px); right: calc(-50% + 15px); }
}

.wiz-sum { display: flex; flex-wrap: wrap; gap: 6px; min-height: 34px; margin-bottom: 12px; }
.sumchip { display: inline-flex; align-items: center; gap: 6px; font: inherit; font-size: .8rem; color: var(--ink); background: var(--panel-2); border: 1px solid var(--line); border-radius: 999px; padding: 4px 12px 4px 6px; cursor: pointer; min-height: 32px; }
.sumchip .art { width: 20px; height: 20px; }
.sumchip.is-cur { border-color: var(--accent); }
.wiz-hint { font-family: var(--serif); font-size: 1.02rem; color: var(--ink); margin: 0 0 12px; }
.wiz-body { min-height: 260px; padding: 2px 2px 8px; }
.wiz-bar {
  position: sticky; bottom: calc(var(--nav-h) + env(safe-area-inset-bottom) + 6px); z-index: 10;
  display: flex; justify-content: space-between; gap: 10px; padding: 10px; margin: 12px -6px 0;
  background: rgba(20, 16, 12, .94); backdrop-filter: blur(8px); border: 1px solid var(--line); border-radius: var(--radius);
}
.wiz-bar .btn { flex: 1; }
.wiz-bar .btn.primary { background: linear-gradient(180deg, color-mix(in srgb, var(--accent) 80%, #fff), var(--accent)); border-color: var(--accent); color: #0d0b09; }
@media (min-width: 760px) { .wiz-bar { bottom: 12px; } .wiz-bar .btn { flex: 0 1 220px; } }

/* Seite waehlen */
.faction-pick { display: grid; gap: 12px; }
@media (min-width: 640px) { .faction-pick { grid-template-columns: 1fr 1fr; } }
.fcard {
  position: relative; overflow: hidden; text-align: left; font: inherit; color: var(--ink); cursor: pointer;
  border: 2px solid var(--line); border-radius: 16px; padding: 18px 16px 14px; display: grid; gap: 8px; min-height: 220px;
  background: var(--panel-2); transition: transform .15s, box-shadow .15s;
}
.fcard.f-alliance { background: radial-gradient(120% 90% at 100% 0%, rgba(75, 139, 245, .35), transparent 60%), linear-gradient(180deg, #14213d, #0b1220); border-color: color-mix(in srgb, var(--alliance) 45%, var(--line)); }
.fcard.f-horde { background: radial-gradient(120% 90% at 100% 0%, rgba(217, 69, 59, .38), transparent 60%), linear-gradient(180deg, #3a1411, #170807); border-color: color-mix(in srgb, var(--horde) 45%, var(--line)); }
.fcard:hover { transform: translateY(-2px); }
.fcard.is-sel { box-shadow: 0 0 0 3px var(--gold), 0 10px 30px rgba(0, 0, 0, .5); }
.fcard-crest .art { width: 84px; height: 84px; filter: drop-shadow(0 4px 14px rgba(0, 0, 0, .6)); }
.fcard b { font-family: var(--serif); font-size: 1.5rem; letter-spacing: .04em; }
.fcard.f-alliance b { color: #8fb6ff; }
.fcard.f-horde b { color: #ff8d83; }
.fcard-text { font-size: .86rem; color: #cfc3aa; }
.fcard-races { display: flex; flex-wrap: wrap; gap: 4px; }
.fcard-races .art { width: 30px; height: 30px; border-radius: 6px; }
.fcard small { color: var(--muted); }

/* Rasse waehlen */
.race-pick { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
@media (min-width: 700px) { .race-pick { grid-template-columns: repeat(3, 1fr); } }
.rcard { border: 2px solid var(--line); border-radius: 14px; padding: 10px; display: grid; gap: 6px; justify-items: center; background: var(--panel-2); text-align: center; }
.race-pick.f-alliance .rcard { background: linear-gradient(180deg, rgba(75, 139, 245, .14), var(--panel-2)); }
.race-pick.f-horde .rcard { background: linear-gradient(180deg, rgba(217, 69, 59, .16), var(--panel-2)); }
.rcard.is-sel { border-color: var(--accent); box-shadow: 0 0 14px color-mix(in srgb, var(--accent) 45%, transparent); }
.rcard b { font-family: var(--serif); }
.rcard-pics { display: flex; gap: 8px; }
.rpic { position: relative; padding: 0; border: 3px solid var(--line); border-radius: 12px; background: #0f0c09; cursor: pointer; line-height: 0; overflow: hidden; }
.rpic .art-race { width: 56px; height: 56px; border-radius: 8px; }
.rpic small { position: absolute; right: 2px; bottom: 2px; line-height: 1; font-size: .72rem; padding: 1px 4px; border-radius: 6px; background: rgba(0, 0, 0, .75); color: var(--ink); }
.rpic.is-sel { border-color: var(--gold); box-shadow: 0 0 12px rgba(232, 182, 76, .6); }
.rcard-racials { display: flex; gap: 4px; flex-wrap: wrap; justify-content: center; }
.rcard-racials .art { width: 20px; height: 20px; border-radius: 4px; }

/* Klasse waehlen */
.class-pick { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
@media (min-width: 700px) { .class-pick { grid-template-columns: repeat(5, 1fr); } }
.kcard { position: relative; display: grid; justify-items: center; gap: 4px; padding: 12px 6px 10px; font: inherit; color: var(--ink); cursor: pointer; text-align: center;
  border: 2px solid var(--line); border-radius: 14px; background: linear-gradient(180deg, color-mix(in srgb, var(--c) 16%, transparent), var(--panel-2)); }
.kcard .art-class { border: 2px solid var(--c); border-radius: 12px; }
.kcard b { color: var(--c); font-family: var(--serif); font-size: .9rem; }
.kcard small { color: var(--muted); font-size: .68rem; line-height: 1.2; }
.kcard.is-sel { border-color: var(--c); box-shadow: 0 0 16px color-mix(in srgb, var(--c) 55%, transparent); }
.kcard:disabled { opacity: .3; filter: grayscale(.8); cursor: not-allowed; }
.new-tag { position: absolute; top: 6px; right: 6px; font-size: .6rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; background: var(--gold); color: #1c1406; border-radius: 999px; padding: 1px 7px; }

/* Spezialisierung waehlen */
.spec-pick { display: grid; gap: 10px; }
@media (min-width: 700px) { .spec-pick { grid-template-columns: repeat(2, 1fr); } }
.scard { display: flex; align-items: center; gap: 14px; text-align: left; font: inherit; color: var(--ink); cursor: pointer; padding: 12px;
  border: 2px solid var(--line); border-radius: 14px; background: linear-gradient(90deg, color-mix(in srgb, var(--c) 14%, transparent), var(--panel-2)); }
.scard .art-spec { border: 2px solid var(--c); border-radius: 12px; }
.scard-text { display: grid; gap: 2px; min-width: 0; }
.scard-text b { font-family: var(--serif); font-size: 1.1rem; color: var(--c); }
.scard-text em { font-style: normal; font-size: .8rem; color: var(--muted); }
.scard-text small { color: var(--muted); font-size: .78rem; }
.scard.is-sel { border-color: var(--c); box-shadow: 0 0 16px color-mix(in srgb, var(--c) 55%, transparent); }
.scard.role-tank .role-tag { color: var(--gold-2); }
.scard.role-healer .role-tag { color: var(--good); }
.scard.role-dps .role-tag { color: var(--bad); }

/* Berufe waehlen */
.prof-pick { display: grid; grid-template-columns: 1fr; gap: 8px; }
@media (min-width: 560px) { .prof-pick { grid-template-columns: 1fr 1fr; } }
@media (min-width: 900px) { .prof-pick { grid-template-columns: repeat(3, 1fr); } }
.pcard { position: relative; display: flex; align-items: center; gap: 12px; text-align: left; font: inherit; color: var(--ink); cursor: pointer; padding: 10px 12px;
  border: 2px solid var(--line); border-radius: 14px; background: var(--panel-2); min-height: 76px; }
.pcard .art-prof { border: 2px solid var(--line); border-radius: 12px; }
.pcard-text { display: grid; gap: 1px; min-width: 0; }
.pcard-text b { font-family: var(--serif); }
.pcard-text small { color: var(--muted); font-size: .76rem; }
.pcard-text em { font-style: normal; font-size: .68rem; color: var(--gold); text-transform: uppercase; letter-spacing: .08em; }
.pcard.is-sel { border-color: var(--gold); background: linear-gradient(90deg, rgba(232, 182, 76, .16), var(--panel-2)); }
.pcard.is-sel .art-prof { border-color: var(--gold); }
.pnum { position: absolute; top: -8px; right: -6px; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--gold); color: #1c1406; font-weight: 800; font-family: var(--serif); box-shadow: 0 2px 8px rgba(0, 0, 0, .5); }
.sec-info { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; margin-top: 10px; font-size: .82rem; color: var(--muted); }
.sec { display: inline-flex; align-items: center; gap: 6px; color: var(--ink); }

/* Zusammenfassung */
.summary { display: flex; align-items: center; gap: 22px; padding: 18px; margin-bottom: 8px; border: 2px solid var(--c); border-radius: 16px;
  background: linear-gradient(135deg, color-mix(in srgb, var(--c) 18%, transparent), var(--panel-2)); }
.summary.f-alliance { box-shadow: inset 0 0 0 1px rgba(75, 139, 245, .45); }
.summary.f-horde { box-shadow: inset 0 0 0 1px rgba(217, 69, 59, .45); }
.summary-text { min-width: 0; }
.summary-text p { margin: 2px 0; font-size: .9rem; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.sum-profs { margin-top: 6px !important; }

/* Leerer Zustand / Chars / Hero */
.empty-hero { text-align: center; padding: 22px 14px; border: 1px dashed var(--line); border-radius: var(--radius); background: radial-gradient(80% 120% at 50% 0%, rgba(232, 182, 76, .1), transparent 70%); }
.crests { display: flex; justify-content: center; gap: 18px; margin-bottom: 10px; }
.crests .art { width: 64px; height: 64px; filter: drop-shadow(0 4px 12px rgba(0, 0, 0, .6)); }
.char { position: relative; overflow: hidden; }
.char.f-alliance { background: linear-gradient(135deg, rgba(75, 139, 245, .14), var(--panel-2) 55%); }
.char.f-horde { background: linear-gradient(135deg, rgba(217, 69, 59, .16), var(--panel-2) 55%); }
.char-crest { position: absolute; top: 8px; right: 8px; opacity: .55; pointer-events: none; }
.char-crest .art { width: 44px; height: 44px; }
.hero-crests { display: flex; align-items: center; justify-content: center; gap: 22px; margin-bottom: 8px; }
.hero-crests .hc .art { width: 64px; height: 64px; filter: drop-shadow(0 6px 18px rgba(0, 0, 0, .7)); }
.hero-crests .hc-a .art { filter: drop-shadow(0 0 16px rgba(75, 139, 245, .6)); }
.hero-crests .hc-h .art { filter: drop-shadow(0 0 16px rgba(217, 69, 59, .6)); }
.hero-crests .hc-mid { font-size: 2.4rem; color: var(--gold); line-height: 1; text-shadow: 0 0 22px rgba(232, 182, 76, .7); }
.hero { background: radial-gradient(70% 90% at 50% 0%, rgba(232, 182, 76, .10), transparent 70%); border-radius: var(--radius); }
.split span { gap: 6px; }
.split .art { width: 18px; height: 18px; }

/* Wiki */
.wiki-specs { display: grid; gap: 6px; margin: 8px 0; }
.spec-chip { display: flex; align-items: center; gap: 8px; padding: 4px 8px 4px 4px; border: 1px solid var(--line); border-radius: 10px; background: var(--panel); font-size: .84rem; }
.spec-chip .art { width: 28px; height: 28px; border-radius: 6px; }
.spec-chip small { color: var(--muted); }
.spec-chip > span { flex: 1; min-width: 0; }
.spec-chip i { font-style: normal; }
.prof-head .art { width: 32px; height: 32px; border-radius: 8px; }
.prof-head { align-items: center; }

/* Fraktions-Umfrage mit Wappen */
.fbtn .fcrest { display: block; margin-bottom: 6px; }
.fbtn .fcrest .art { width: 44px; height: 44px; }
.fbtn { min-height: 150px; }

@media (max-width: 380px) { .summary { gap: 14px; padding: 12px; } .fcard-crest .art { width: 64px; height: 64px; } }

/* Beim Scrollen/Fokussieren nicht hinter Kopf, Sticky-Leiste und Navigation landen */
.wiz-body button, .wiz-body input, .wiz-body select { scroll-margin: 90px 0 190px; }
.char-crest { top: auto; bottom: 10px; right: 10px; opacity: .4; }
.char-crest .art { width: 52px; height: 52px; }

/* ---------- Assistent v2: Geschlecht-Schritt, Talente, Dual-Spec ---------- */
.stepper { grid-template-columns: repeat(var(--n, 7), 1fr); }
.rcard { font: inherit; color: var(--ink); cursor: pointer; width: 100%; }
.rcard-pics .art-race { width: 56px; height: 56px; border: 3px solid var(--line); border-radius: 12px; }
.rcard.is-sel .rcard-pics .art-race { border-color: var(--accent); }
.gender-pick { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; max-width: 460px; margin: 0 auto; }
.gcard { display: grid; justify-items: center; gap: 8px; padding: 18px 10px 14px; font: inherit; color: var(--ink); cursor: pointer; text-align: center;
  border: 2px solid var(--line); border-radius: 16px; background: linear-gradient(180deg, rgba(217, 69, 59, .16), var(--panel-2)); }
.gender-pick.f-alliance .gcard { background: linear-gradient(180deg, rgba(75, 139, 245, .16), var(--panel-2)); }
.gcard img.art-race[src] { width: 96px; height: 96px; border: 3px solid var(--line); border-radius: 16px; }
.gcard b { font-family: var(--serif); font-size: 1.05rem; }
.gcard small { color: var(--muted); }
.gcard.is-sel { border-color: var(--accent); box-shadow: 0 0 16px color-mix(in srgb, var(--accent) 55%, transparent); }
.gcard.is-sel img.art-race { border-color: var(--gold); }

.tal-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 8px 0 10px; }
.tal-tabs button { display: grid; gap: 2px; justify-items: center; font: inherit; color: var(--muted); cursor: pointer; min-height: 56px; padding: 8px;
  border: 2px solid var(--line); border-radius: 12px; background: var(--panel-2); }
.tal-tabs button b { color: var(--ink); font-family: var(--serif); }
.tal-tabs button small { font-size: .74rem; }
.tal-tabs button.is-active { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 16%, var(--panel-2)); }
.tal-tabs .add-dual { border-style: dashed; color: var(--gold-2); align-content: center; }
.tal-host { border: 1px solid var(--line); border-radius: var(--radius); padding: 10px; background: var(--bg-2); }
.tal-host .calc-bar { margin-bottom: 8px; }

/* Skillungen in der Char-Karte */
.tal-lines { display: grid; gap: 6px; margin: 8px 0; }
.tal-line { display: flex; align-items: center; gap: 8px; padding: 6px 10px; border: 1px solid var(--line); border-radius: 10px; background: var(--panel); text-decoration: none; color: var(--ink); font-size: .86rem; }
.tal-line .art { width: 24px; height: 24px; border-radius: 6px; }
.tal-line span { flex: 1; min-width: 0; }
.tal-line em { font-style: normal; color: var(--gold-2); font-family: var(--serif); }

.hero-crests .hc .art { width: 76px; height: 76px; }
.bar-row { grid-template-columns: 118px 1fr 28px; }
.bar-label { display: flex; align-items: center; gap: 6px; white-space: nowrap; }
.tal-info { overflow-y: auto; }
.tal-info p { font-size: .88rem; margin: 0 0 .5rem; }
.tal-info h4 { margin-bottom: 6px; }

.seg.two { grid-template-columns: 1fr 1fr; }
.seg.two button { min-height: 56px; font-size: 1.05rem; }
.seg.two button[aria-checked="true"][data-status="no"] { background: linear-gradient(180deg, #7a7468, #4d4840); border-color: #7a7468; color: #fff; }

/* Spielerliste auf der Startseite */
.players { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 8px; }
.players li { display: flex; align-items: center; gap: 14px; padding: 8px 12px 8px 12px; border: 1px solid var(--line); border-left: 4px solid var(--c); border-radius: 12px; background: var(--panel-2); }
.players .portrait.sm { margin-bottom: 6px; }
.players .empty-av { display: grid; place-items: center; color: var(--muted); font-family: var(--serif); }
.pl-text { flex: 1; min-width: 0; display: grid; }
.pl-text b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pl-text em { font-style: normal; color: var(--gold-2); font-weight: 400; font-size: .8rem; }
.pl-text small { color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lan-badge { font-size: .7rem; padding: 3px 9px; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); white-space: nowrap; }
.lan-badge.yes { color: var(--good); border-color: var(--good); }
.lan-badge.no { color: var(--bad); border-color: var(--bad); }
