:root {
  --bg: #16121c;
  --bg2: #1e1926;
  --card: #241e2e;
  --card2: #2d2639;
  --line: #3a3248;
  --text: #ece6f2;
  --muted: #a198ae;
  --accent: #d9a84e;
  --accent-ink: #1b1408;
  --red: #e0565b;
  --green: #4fb37a;
  --blue: #6aa5e8;
  --warn: #f0a04b;
  --glow1: rgba(217, 168, 78, .13);
  --glow2: rgba(150, 40, 70, .2);
  --glow3: rgba(60, 90, 190, .16);
  --pattern: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='64' viewBox='0 0 56 64'%3E%3Cpath d='M28 2l26 15v30L28 62 2 47V17z' fill='none' stroke='%23ffffff' stroke-opacity='.035' stroke-width='1'/%3E%3C/svg%3E");
  --die: #7b2d3a;
  --die-hi: #c2475c;
  --die-edge: #c9707c;
  --die-text: #fff6e6;
  --radius: 14px;
  --serif: "Palatino Linotype", "Book Antiqua", Palatino, Georgia, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --safe-b: env(safe-area-inset-bottom, 0px);
  color-scheme: dark;
}
/* Designs (#3): ohne data-theme folgt die App dem System (dunkel = Arkane Nacht, hell = Pergament) */
@media (prefers-color-scheme: light) {
  :root:not([data-theme]) {
    --bg: #f4ede0; --bg2: #ebe2d1; --card: #fffaf1; --card2: #f3ead9; --line: #ddcfb6;
    --text: #2a2118; --muted: #7a6a58; --accent: #a8671b; --accent-ink: #fffaf1;
    --glow1: rgba(200, 140, 60, .2); --glow2: rgba(160, 60, 60, .1); --glow3: rgba(120, 90, 40, .12);
    --pattern: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='64' viewBox='0 0 56 64'%3E%3Cpath d='M28 2l26 15v30L28 62 2 47V17z' fill='none' stroke='%23603a10' stroke-opacity='.06' stroke-width='1'/%3E%3C/svg%3E");
    --red: #c23b40; --green: #2f8a57; --warn: #b8670f; --die: #8e2f3d; --die-hi: #c9566a; --die-edge: #d48a95;
    color-scheme: light;
  }
}

:root[data-theme="pergament"] {
  --bg: #f4ede0; --bg2: #ebe2d1; --card: #fffaf1; --card2: #f3ead9; --line: #ddcfb6;
  --text: #2a2118; --muted: #7a6a58; --accent: #a8671b; --accent-ink: #fffaf1; --blue: #2f6db3;
  --glow1: rgba(200, 140, 60, .2); --glow2: rgba(160, 60, 60, .1); --glow3: rgba(120, 90, 40, .12);
  --pattern: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='64' viewBox='0 0 56 64'%3E%3Cpath d='M28 2l26 15v30L28 62 2 47V17z' fill='none' stroke='%23603a10' stroke-opacity='.06' stroke-width='1'/%3E%3C/svg%3E");
  --red: #c23b40; --green: #2f8a57; --warn: #b8670f; --die: #8e2f3d; --die-hi: #c9566a; --die-edge: #d48a95; --die-text: #fff6e6;
  color-scheme: light;
}
:root[data-theme="gruft"] {
  --bg: #0e0f10; --bg2: #151718; --card: #1b1d1f; --card2: #23262a; --line: #33383c;
  --text: #e6e3d8; --muted: #9b9a90; --accent: #a7c47e; --accent-ink: #11160a; --blue: #7fa6c4;
  --glow1: rgba(140, 180, 110, .08); --glow2: rgba(90, 30, 40, .16); --glow3: rgba(70, 80, 90, .14);
  --pattern: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='64' viewBox='0 0 56 64'%3E%3Cpath d='M28 2l26 15v30L28 62 2 47V17z' fill='none' stroke='%23d8d2c0' stroke-opacity='.03' stroke-width='1'/%3E%3C/svg%3E");
  --red: #d0504e; --green: #7fb36a; --warn: #d9a64a; --die: #3d4245; --die-hi: #6c7378; --die-edge: #a7c47e; --die-text: #f1eee2;
  color-scheme: dark;
}
:root[data-theme="elfenwald"] {
  --bg: #0d1912; --bg2: #12221a; --card: #172c21; --card2: #1e382a; --line: #2c4a39;
  --text: #e9f3e6; --muted: #a2b8a6; --accent: #e4c45e; --accent-ink: #1a1505; --blue: #79b8d6;
  --glow1: rgba(228, 196, 94, .12); --glow2: rgba(60, 150, 90, .18); --glow3: rgba(40, 110, 120, .14);
  --pattern: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='64' viewBox='0 0 56 64'%3E%3Cpath d='M28 2l26 15v30L28 62 2 47V17z' fill='none' stroke='%23b8e0a0' stroke-opacity='.04' stroke-width='1'/%3E%3C/svg%3E");
  --red: #e0645a; --green: #6fcf8c; --warn: #eaa64d; --die: #2f6a45; --die-hi: #4f9a68; --die-edge: #e4c45e; --die-text: #fbf6e0;
  color-scheme: dark;
}
:root[data-theme="scifi"] {
  --bg: #060a13; --bg2: #0a1120; --card: #0e1729; --card2: #132036; --line: #1f3452;
  --text: #e3f2ff; --muted: #8aa6c7; --accent: #39d0ff; --accent-ink: #021018; --blue: #7aa8ff;
  --glow1: rgba(57, 208, 255, .12); --glow2: rgba(170, 60, 255, .14); --glow3: rgba(40, 90, 200, .16);
  --pattern: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='40' viewBox='0 0 40 40'%3E%3Cpath d='M0 0h40v40' fill='none' stroke='%2339d0ff' stroke-opacity='.05' stroke-width='1'/%3E%3C/svg%3E");
  --red: #ff5a6e; --green: #3fe0a0; --warn: #ffb547; --die: #15365a; --die-hi: #2a6fb0; --die-edge: #39d0ff; --die-text: #e9fbff;
  --serif: "Segoe UI", system-ui, -apple-system, Roboto, sans-serif;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; color: var(--text);
  background:
    radial-gradient(ellipse 80% 50% at 15% -5%, var(--glow1), transparent 60%),
    radial-gradient(ellipse 60% 45% at 105% 35%, var(--glow2), transparent 60%),
    radial-gradient(ellipse 70% 50% at -10% 100%, var(--glow3), transparent 60%),
    var(--pattern),
    var(--bg);
  background-attachment: fixed;
  min-height: 100vh;
  font: 16px/1.45 var(--sans);
  -webkit-tap-highlight-color: transparent;
  overscroll-behavior-y: contain;
}
body.noscroll { overflow: hidden; }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 700; margin: 0; }
h2 { font-size: 1.2rem; }
h3 { font-size: 1.05rem; margin-bottom: .5rem; }
h4 { font-size: .85rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin: .9rem 0 .35rem; }
a { color: inherit; }
p { margin: .4rem 0; }
button, input, select, textarea { font: inherit; color: inherit; }
.muted { color: var(--muted); }
.small { font-size: .85rem; }
.gold { color: var(--accent); }
.warn-text { color: var(--warn); }
.hint { font-size: .85rem; color: var(--muted); margin: .3rem 0 .6rem; }
.ic { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* ---------- Kopfzeile ---------- */
.top {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; gap: .5rem;
  padding: calc(env(safe-area-inset-top, 0px) + 8px) 12px 8px;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.top::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px; background: linear-gradient(90deg, transparent, var(--accent), transparent); opacity: .5; }
.top h1 { flex: 1; font-size: 1.15rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.top-right { display: flex; align-items: center; gap: .25rem; }
.logo { color: var(--accent); display: grid; place-items: center; width: 40px; height: 40px; }
.icon-btn {
  display: grid; place-items: center; width: 40px; height: 40px; border-radius: 10px;
  border: 0; background: none; cursor: pointer; text-decoration: none;
}
.icon-btn:hover { background: var(--card); }
.icon-btn.active { background: var(--accent); color: var(--accent-ink); }
.sync { width: 28px; height: 28px; border: 0; border-radius: 50%; background: none; cursor: pointer; position: relative; }
.sync::after { content: ""; position: absolute; inset: 9px; border-radius: 50%; background: var(--green); }
.sync.busy::after { background: var(--blue); animation: pulse 1s infinite; }
.sync.off::after { background: var(--muted); }
.sync.err::after { background: var(--red); }
@keyframes pulse { 50% { opacity: .3; } }

/* ---------- Seiten ---------- */
.page { max-width: 760px; margin: 0 auto; padding: 14px 16px 32px; }
.page.with-tabs { padding-bottom: calc(90px + var(--safe-b)); }
section { margin-bottom: 14px; }
.card { background: linear-gradient(180deg, color-mix(in srgb, var(--card2) 70%, transparent), color-mix(in srgb, var(--card) 88%, transparent)); box-shadow: 0 1px 0 rgba(255,255,255,.04) inset, 0 8px 24px rgba(0,0,0,.18); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; }
.card.danger { border-color: var(--red); }
.sec-head { display: flex; align-items: center; justify-content: space-between; gap: .5rem; margin-bottom: .6rem; }
.sec-head h2, .sec-head h3 { margin: 0; }
.empty { padding: 1.2rem; text-align: center; color: var(--muted); border: 1px dashed var(--line); border-radius: var(--radius); }
.two-col { display: grid; gap: 14px; }
@media (min-width: 620px) { .two-col { grid-template-columns: 1fr 1fr; } }
.banner { display: flex; align-items: center; gap: .5rem; max-width: 760px; margin: 8px auto 0; padding: 8px 12px; background: var(--card2); border-radius: 10px; font-size: .9rem; }
.banner.conc { border: 1px solid var(--accent); }
.banner > span { flex: 1; }
.banner .btn { margin-left: auto; }
@media (max-width: 792px) { .banner { margin: 8px 16px 0; } }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .35rem;
  min-height: 42px; padding: 0 14px; border-radius: 10px;
  border: 1px solid var(--line); background: var(--card2); cursor: pointer;
  text-decoration: none; font-weight: 600; white-space: nowrap;
}
.btn:hover { border-color: var(--muted); }
.btn:disabled { opacity: .4; cursor: default; }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn.red { color: var(--red); }
.btn.green { color: var(--green); }
.btn.ghost { background: none; }
.btn.small { min-height: 36px; padding: 0 12px; font-size: .9rem; }
.btn.tiny { min-height: 30px; min-width: 30px; padding: 0 8px; font-size: .85rem; }
.btn.wide { width: 100%; margin-top: .8rem; }
.btn .ic { width: 18px; height: 18px; }
.row-btns { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .6rem; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* ---------- Formulare ---------- */
.field { display: block; margin-bottom: .7rem; }
.field > span { display: block; font-size: .8rem; color: var(--muted); margin-bottom: .25rem; }
.field.check { display: flex; align-items: center; gap: .5rem; min-height: 42px; margin: 0; }
.field.check > span { margin: 0; font-size: .95rem; color: var(--text); }
input:not([type=checkbox]), select, textarea {
  width: 100%; min-height: 42px; padding: 8px 10px; border-radius: 10px;
  border: 1px solid var(--line); background: var(--bg2);
}
textarea { resize: vertical; line-height: 1.4; }
input[type=checkbox] { width: 20px; height: 20px; accent-color: var(--accent); }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; }
.row3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: .6rem; align-items: end; }
.form h3 { margin-top: 1rem; }
.ab-edit { display: grid; grid-template-columns: repeat(3, 1fr); gap: .5rem; margin-bottom: .7rem; }
@media (min-width: 620px) { .ab-edit { grid-template-columns: repeat(6, 1fr); } }
.ab-edit label { display: flex; flex-direction: column; align-items: center; gap: .2rem; font-size: .8rem; color: var(--muted); font-weight: 700; }
.ab-edit input { text-align: center; font-size: 1.15rem; font-weight: 700; }

.chips { display: flex; flex-wrap: wrap; gap: .4rem; }
.chip { padding: 6px 11px; border-radius: 999px; border: 1px solid var(--line); background: var(--bg2); cursor: pointer; font-size: .88rem; }
.chip.on { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.chip.on.warn { background: var(--warn); border-color: var(--warn); color: #1b1006; }
.chips.small .chip { font-size: .75rem; padding: 3px 8px; }

/* ---------- Startseite ---------- */
.cards { display: grid; gap: 10px; }
@media (min-width: 620px) { .cards { grid-template-columns: 1fr 1fr; } }
.char-card { display: block; padding: 14px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; }
.char-card:hover { border-color: var(--accent); }
.cc-main { display: flex; flex-direction: column; }
.cc-main strong { font-family: var(--serif); font-size: 1.15rem; }
.cc-stats { display: flex; gap: 1rem; margin: .4rem 0; font-weight: 600; }
.cc-stats span { display: inline-flex; align-items: center; gap: .3rem; }
.cc-stats .ic { width: 16px; height: 16px; color: var(--muted); }
.hpbar { height: 6px; background: var(--bg2); border-radius: 3px; overflow: hidden; }
.hpbar i { display: block; height: 100%; background: var(--green); transition: width .3s; }
.hpbar.big { height: 10px; border-radius: 5px; margin: .4rem 0 .8rem; }
.quick { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.tile { display: flex; flex-direction: column; align-items: center; gap: .4rem; padding: 16px 8px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; cursor: pointer; font-weight: 600; font-size: .9rem; }
.tile .ic { width: 28px; height: 28px; color: var(--accent); }

/* ---------- Charakterkopf ---------- */
.char-head { max-width: 760px; margin: 0 auto; padding: 10px 16px 0; }
.ch-sub { color: var(--muted); font-size: .9rem; margin-bottom: .5rem; }
.ch-stats { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
.stat { display: flex; flex-direction: column; align-items: center; padding: 6px 2px; background: var(--card); border: 1px solid var(--line); border-radius: 12px; position: relative; cursor: default; }
button.stat { cursor: pointer; }
button.stat:hover { border-color: var(--accent); }
.stat small { font-size: .7rem; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
.stat b { font-size: 1.3rem; font-family: var(--serif); }
.stat b span { font-size: .8rem; color: var(--muted); }
.stat em { position: absolute; top: 2px; right: 4px; font-size: .7rem; color: var(--blue); font-style: normal; }
.stat.hp.low b { color: var(--warn); }
.stat.hp.down b { color: var(--red); }
.advbar { display: grid; grid-template-columns: 1fr 1fr 1fr; margin: 10px 0 2px; background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 3px; }
.seg { border: 0; background: none; min-height: 34px; border-radius: 8px; cursor: pointer; font-size: .88rem; color: var(--muted); font-weight: 600; }
.seg.on { background: var(--card2); color: var(--text); }
.seg.on[data-v=adv] { background: var(--green); color: #06180d; }
.seg.on[data-v=dis] { background: var(--red); color: #1e0607; }

/* ---------- Tabs unten ---------- */
.tabs {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 20;
  display: grid; grid-template-columns: repeat(5, 1fr);
  padding: 6px 6px calc(6px + var(--safe-b));
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-top: 1px solid var(--line);
}
.tabs a { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 6px 0; text-decoration: none; color: var(--muted); font-size: .72rem; border-radius: 10px; }
.tabs a.on { color: var(--accent); background: var(--card); }

/* ---------- Werte ---------- */
.abilities { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
@media (min-width: 620px) { .abilities { grid-template-columns: repeat(6, 1fr); } }
.ab { display: flex; flex-direction: column; align-items: center; padding: 10px 4px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); cursor: pointer; }
.ab:hover { border-color: var(--accent); }
.ab small { font-size: .72rem; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.ab b { font-size: 1.7rem; font-family: var(--serif); line-height: 1.1; }
.ab span { font-size: .85rem; padding: 0 10px; border: 1px solid var(--line); border-radius: 999px; margin-top: 2px; }
label.ab input { text-align: center; font-size: 1.3rem; font-weight: 700; padding: 4px; margin: 4px 0; }
.line { display: flex; align-items: center; gap: .6rem; width: 100%; min-height: 40px; padding: 6px 4px; border: 0; border-bottom: 1px solid var(--line); background: none; cursor: pointer; text-align: left; }
.line:last-of-type { border-bottom: 0; }
.line:hover:not(:disabled) { background: var(--card2); }
.line:disabled { cursor: default; }
.line span { flex: 1; }
.line small { color: var(--muted); font-size: .72rem; }
.line b { font-family: var(--serif); font-size: 1.05rem; min-width: 2.2em; text-align: right; }
.dot { width: 12px; height: 12px; border-radius: 50%; border: 2px solid var(--muted); flex: none; }
.dot.p1 { background: var(--accent); border-color: var(--accent); }
.dot.p2 { background: var(--accent); border-color: var(--text); box-shadow: 0 0 0 2px var(--accent); }
.skills { columns: 1; }
@media (min-width: 620px) { .skills { columns: 2; column-gap: 1.5rem; } .skills .line { break-inside: avoid; } }
.kv { display: flex; justify-content: space-between; padding: 7px 0; border-bottom: 1px solid var(--line); width: 100%; }
.kv:last-child { border-bottom: 0; }
.kv b { font-family: var(--serif); font-size: 1.05rem; }
button.kv { background: none; border-left: 0; border-right: 0; border-top: 0; cursor: pointer; text-align: left; }

/* ---------- Kampf ---------- */
.hp-big { display: flex; align-items: baseline; gap: .4rem; }
.hp-big b { font-size: 2.6rem; font-family: var(--serif); line-height: 1; }
.hp-big span { color: var(--muted); font-size: 1.2rem; }
.hp-big em { color: var(--blue); font-style: normal; margin-left: auto; }
.hp-actions { display: grid; grid-template-columns: 1fr auto auto auto; gap: .4rem; }
.hp-actions input { min-width: 0; }
@media (max-width: 340px) { .hp-actions { grid-template-columns: 1fr 1fr; } .hp-actions input { grid-column: 1 / -1; } }
.attack { display: flex; gap: .4rem; margin-bottom: .45rem; }
.atk-main { flex: 1; display: grid; grid-template-columns: 1fr auto; grid-template-areas: "n h" "d h"; align-items: center; gap: 0 .8rem; padding: 10px 12px; background: var(--card2); border: 1px solid var(--line); border-radius: 12px; cursor: pointer; text-align: left; }
.atk-main:hover { border-color: var(--accent); }
.atk-name { grid-area: n; font-weight: 700; }
.atk-hit { grid-area: h; font-family: var(--serif); font-size: 1.5rem; color: var(--accent); }
.atk-dmg { grid-area: d; font-size: .9rem; color: var(--muted); }
.mastery { border: 1px solid var(--line); background: var(--bg2); border-radius: 12px; padding: 0 8px; font-size: .72rem; color: var(--muted); cursor: pointer; writing-mode: horizontal-tb; max-width: 92px; }
.weapon-edit { border-top: 1px dashed var(--line); padding-top: .7rem; margin-top: .7rem; }
.attack-wrap { margin-bottom: .45rem; }
.attack-wrap .attack { margin-bottom: 0; }
.atk-count { display: flex; align-items: center; gap: .45rem; margin: .3rem 0 0 .6rem; font-size: .85rem; color: var(--muted); }
.atk-count .cnt-label { margin-left: auto; }
.atk-count .btn.on { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.hands { border: 1px dashed var(--line); border-radius: 12px; padding: 8px 10px; margin-bottom: .6rem; display: grid; gap: .4rem; }
.hands.over { border-color: var(--warn); }
.hands-row { display: flex; flex-wrap: wrap; align-items: center; gap: .35rem .5rem; font-size: .88rem; }
.hand { background: var(--card2); border: 1px solid var(--accent); border-radius: 999px; padding: 2px 10px; font-weight: 600; }
.swap-opts { display: grid; gap: .4rem; margin: .6rem 0; }
.swap-opts small { display: block; font-weight: 400; color: var(--muted); }
.atk-count b { min-width: 2ch; text-align: center; color: var(--text); font-family: var(--serif); font-size: 1.05rem; }
p.atk-count { margin: .3rem 0 0 .6rem; }
/* Inventar: Waffen, Rüstung und Schild */
.inv-item { border: 1px solid var(--line); border-radius: 12px; background: var(--card2); padding: 8px 10px; margin-bottom: .45rem; }
.inv-item.on { border-color: color-mix(in srgb, var(--accent) 55%, var(--line)); }
.inv-item .weapon-edit { margin-top: .6rem; }
.inv-row { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: .6rem; }
.inv-main { display: flex; flex-direction: column; min-width: 0; }
.inv-main b { overflow-wrap: break-word; hyphens: auto; }
.inv-main small { color: var(--muted); font-size: .8rem; }
.inv-main .inv-note { font-style: italic; }
.equip { min-width: 78px; padding: 6px 8px; border-radius: 999px; border: 1px solid var(--line); background: var(--bg2); color: var(--muted); font-size: .78rem; font-weight: 700; cursor: pointer; }
.equip.on { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.ac-line { display: flex; align-items: baseline; gap: .5rem; margin-bottom: .6rem; flex-wrap: wrap; }
.ac-line b { font-family: var(--serif); font-size: 1.6rem; color: var(--accent); }
.res { display: flex; align-items: center; gap: .6rem; padding: 8px 0; border-bottom: 1px solid var(--line); }
.res:last-child { border-bottom: 0; }
.res > div:first-child { flex: 1; display: flex; flex-direction: column; }
.pips { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; justify-content: flex-end; }
.pip { width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--accent); background: none; cursor: pointer; padding: 0; display: inline-block; }
.pip.on { background: var(--accent); }
.pip.on.green { background: var(--green); border-color: var(--green); }
.pip.on.red { background: var(--red); border-color: var(--red); }
i.pip { cursor: default; }
.death { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; margin-bottom: .4rem; }
.death span { font-size: .85rem; color: var(--muted); margin-left: .4rem; }
.exh { display: flex; align-items: center; gap: .5rem; margin-top: .8rem; }
.exh span { flex: 1; }
.cond-help { margin-top: .6rem; font-size: .88rem; }

/* ---------- Zauber ---------- */
.spell-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.spell-stats > * { display: flex; flex-direction: column; align-items: center; padding: 8px; background: var(--card2); border: 1px solid var(--line); border-radius: 12px; }
.spell-stats button { cursor: pointer; }
.spell-stats small { font-size: .72rem; color: var(--muted); text-transform: uppercase; }
.spell-stats b { font-family: var(--serif); font-size: 1.4rem; }
.slots { margin-top: .8rem; }
.slot-row { display: flex; align-items: center; gap: .6rem; padding: 5px 0; }
.slot-row span { flex: 1; font-size: .9rem; }
.spell { display: grid; grid-template-columns: 1fr auto; grid-template-areas: "n r" "m r"; width: 100%; gap: 0 .6rem; padding: 9px 10px; margin-bottom: 6px; border: 1px solid var(--line); border-radius: 12px; background: var(--card2); cursor: pointer; text-align: left; }
.spell:hover { border-color: var(--accent); }
.sp-name { grid-area: n; font-weight: 700; }
.sp-meta { grid-area: m; font-size: .8rem; color: var(--muted); }
.sp-roll { grid-area: r; align-self: center; font-size: .85rem; color: var(--accent); font-weight: 600; }
.tag { font-style: normal; font-size: .65rem; padding: 0 5px; border-radius: 4px; background: var(--line); color: var(--text); vertical-align: 2px; }
.spell-detail dl { display: grid; grid-template-columns: auto 1fr; gap: .25rem .8rem; margin: .6rem 0; font-size: .92rem; }
.spell-detail dt { color: var(--muted); }
.spell-detail dd { margin: 0; }
.cast-opts { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: 1rem; }
.filters { display: grid; gap: .5rem; position: sticky; top: -16px; background: var(--card); padding: 4px 0 8px; z-index: 1; }
.spell-pick { display: grid; gap: 2px; margin-bottom: 1rem; }
.pick { display: flex; align-items: center; gap: .6rem; padding: 8px 4px; border-bottom: 1px solid var(--line); cursor: pointer; }
.pick.dim { opacity: .5; }

/* ---------- Inventar ---------- */
.coins { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
.coins label { display: flex; flex-direction: column; align-items: center; }
.coins small { font-size: .75rem; color: var(--muted); font-weight: 700; }
.coins input { text-align: center; padding: 6px 2px; }
.item { display: grid; grid-template-columns: 64px 1fr auto; gap: .4rem; margin-bottom: .4rem; }
.item .qty { text-align: center; }
.feat { border-bottom: 1px solid var(--line); padding: 8px 0; }
.feat summary { cursor: pointer; font-weight: 700; }
.feat textarea { margin-top: .5rem; }

/* ---------- Würfelseite ---------- */
.dice-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.die-btn { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 10px 4px; background: var(--card2); border: 1px solid var(--line); border-radius: 14px; cursor: pointer; font-weight: 700; }
.die-btn:hover { border-color: var(--accent); }
.die-btn:active { transform: scale(.95); }
.die-btn svg { width: 46px; height: 46px; }
.die-btn svg * { fill: var(--die); stroke: var(--die-edge); stroke-width: 3; }
.stepper-row { display: flex; gap: .6rem; margin-top: .8rem; flex-wrap: wrap; }
.stepper { flex: 1; display: flex; align-items: center; gap: .4rem; padding: 6px 10px; background: var(--bg2); border-radius: 10px; }
.stepper span { flex: 1; font-size: .85rem; color: var(--muted); }
.stepper b { min-width: 2em; text-align: center; font-family: var(--serif); font-size: 1.1rem; }
.expr { display: grid; grid-template-columns: 1fr auto; gap: .4rem; margin: .8rem 0 .4rem; }
.hist { list-style: none; padding: 0; margin: 0; }
.hist li { display: grid; grid-template-columns: 1fr auto; gap: 0 .6rem; padding: 7px 0; border-bottom: 1px solid var(--line); }
.hist li b { font-family: var(--serif); font-size: 1.15rem; text-align: right; }
.hist li small { grid-column: 1 / -1; }

/* ---------- Spielleitung ---------- */
.gm-grid { display: grid; gap: 10px; }
@media (min-width: 620px) { .gm-grid { grid-template-columns: 1fr 1fr; } }
.gm-card { display: block; padding: 12px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; }
.gm-card:hover { border-color: var(--accent); }
.gm-top { display: flex; flex-direction: column; margin-bottom: .4rem; }
.gm-top strong { font-family: var(--serif); font-size: 1.1rem; }
.gm-stats { display: grid; grid-template-columns: repeat(5, 1fr); gap: 4px; margin-bottom: .5rem; }
.gm-stats span { display: flex; flex-direction: column; align-items: center; background: var(--bg2); border-radius: 8px; padding: 4px 2px; }
.gm-stats small { font-size: .62rem; color: var(--muted); text-transform: uppercase; }
.gm-stats b { font-family: var(--serif); }
.gm-card .chips { margin-top: .5rem; }
.code { font-family: ui-monospace, Consolas, monospace; font-size: 1.2rem; letter-spacing: .08em; color: var(--accent); }
.init { padding: 0; margin: 0 0 .6rem; list-style: none; counter-reset: i; }
.init li { display: grid; grid-template-columns: 2.4em 1fr auto auto; align-items: center; gap: .5rem; padding: 6px 0; border-bottom: 1px solid var(--line); }
.init li b { font-family: var(--serif); font-size: 1.25rem; color: var(--accent); text-align: center; }
.init li.npc span { color: var(--red); }

/* ---------- Bottom-Sheet ---------- */
.sheet-wrap { position: fixed; inset: 0; z-index: 50; background: rgba(0, 0, 0, 0); display: flex; align-items: flex-end; justify-content: center; transition: background .2s; }
.sheet-wrap.in { background: rgba(0, 0, 0, .55); }
.sheet { width: 100%; max-width: 640px; max-height: 88vh; display: flex; flex-direction: column; background: var(--card); border-radius: 20px 20px 0 0; border: 1px solid var(--line); transform: translateY(100%); transition: transform .22s ease-out; padding-bottom: var(--safe-b); }
.sheet-wrap.in .sheet { transform: none; }
.sheet-head { display: flex; align-items: center; gap: .5rem; padding: 12px 12px 8px 18px; border-bottom: 1px solid var(--line); }
.sheet-head h2 { flex: 1; }
.sheet-body { overflow-y: auto; padding: 14px 18px 20px; }
@media (min-width: 700px) { .sheet-wrap { align-items: center; } .sheet { border-radius: 20px; } }

/* ---------- Würfel-Overlay ---------- */
.dice-overlay {
  position: fixed; inset: 0; z-index: 100; display: flex; flex-direction: column;
  background:
    radial-gradient(circle at 50% 42%, color-mix(in srgb, var(--die-hi) 22%, transparent), transparent 55%),
    rgba(8, 5, 12, .82);
  backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); animation: fadein .15s;
}
.dice-overlay.hidden-roll { background: radial-gradient(circle at 50% 42%, rgba(120, 30, 30, .25), transparent 55%), rgba(4, 2, 6, .9); }
.dice-overlay.crit { animation: critflash .7s ease-out; }
.dice-overlay.fumble .dice-tray { animation: shake .4s; }
.dice-overlay.closing { opacity: 0; transition: opacity .18s; }
@keyframes fadein { from { opacity: 0; } }
@keyframes critflash { 0% { box-shadow: inset 0 0 0 0 rgba(255, 215, 110, 0); } 30% { box-shadow: inset 0 0 120px 20px rgba(255, 215, 110, .45); } 100% { box-shadow: inset 0 0 0 0 rgba(255, 215, 110, 0); } }
@keyframes shake { 20%, 60% { transform: translateX(-8px); } 40%, 80% { transform: translateX(8px); } }
.dice-tray { position: relative; flex: 1; overflow: hidden; min-height: 200px; }
.die { position: absolute; width: var(--size); height: var(--size); will-change: transform; filter: drop-shadow(0 14px 12px rgba(0, 0, 0, .55)) drop-shadow(0 0 10px color-mix(in srgb, var(--die-hi) 35%, transparent)); }
.die svg { width: 100%; height: 100%; overflow: visible; }
.die .body polygon { stroke: var(--die-edge); stroke-width: 1.6; stroke-linejoin: round; stroke-opacity: .75; }
.die .f1 { fill: var(--die-hi); }
.die .f2 { fill: color-mix(in srgb, var(--die-hi) 55%, var(--die)); }
.die .f3 { fill: var(--die); }
.die .gloss { fill: #fff; opacity: .18; pointer-events: none; }
.die text { fill: var(--die-text); font-family: var(--serif); font-weight: 700; dominant-baseline: middle; paint-order: stroke; stroke: rgba(0, 0, 0, .45); stroke-width: 2.5; }
.die.dropped { opacity: .3; filter: grayscale(1); }
.die.nat20 .f1 { fill: #ffe08a; } .die.nat20 .f2 { fill: #e0aa3a; } .die.nat20 .f3 { fill: #9a6b12; }
.die.nat20 text { fill: #2a1a00; stroke: rgba(255, 255, 255, .5); }
.die.nat20 { animation: glow 1.1s ease-in-out infinite alternate; }
.die.nat1 .f1 { fill: #3a3a3a; } .die.nat1 .f2 { fill: #262626; } .die.nat1 .f3 { fill: #141414; }
.die.nat1 .body polygon { stroke: #ff5a4e; }
.die.max .body polygon { stroke: #fff2ad; stroke-opacity: 1; }
@keyframes glow { from { filter: drop-shadow(0 0 12px rgba(255, 210, 110, .7)); } to { filter: drop-shadow(0 0 34px rgba(255, 210, 110, 1)); } }
.spark { position: absolute; width: 7px; height: 7px; border-radius: 50%; pointer-events: none; box-shadow: 0 0 8px currentColor; }
.impact { position: absolute; width: calc(var(--size) * 1.2); height: calc(var(--size) * .35); border-radius: 50%; border: 2px solid color-mix(in srgb, var(--die-edge) 70%, transparent); pointer-events: none; }
.dice-result {
  margin: 0 auto calc(16px + var(--safe-b)); width: min(560px, calc(100% - 32px));
  background: linear-gradient(180deg, var(--card2), var(--card)); border: 1px solid color-mix(in srgb, var(--die-hi) 45%, var(--line));
  border-radius: 20px; padding: 16px; text-align: center; opacity: 0; transform: translateY(20px); transition: all .2s;
  box-shadow: 0 -10px 40px rgba(0, 0, 0, .4);
}
.dice-result.in { opacity: 1; transform: none; }
.dr-label { font-family: var(--serif); font-size: 1.15rem; font-weight: 700; }
.dr-sub { font-size: .85rem; color: var(--muted); }
.dr-total { font-family: var(--serif); font-size: 3.8rem; font-weight: 700; line-height: 1.1; color: var(--accent); text-shadow: 0 0 24px color-mix(in srgb, var(--accent) 45%, transparent); }
.dr-break { font-size: .88rem; color: var(--muted); }
.dr-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem; margin-top: .9rem; }
.badge { display: inline-block; padding: 2px 10px; border-radius: 999px; font-weight: 700; font-size: .85rem; margin-bottom: .3rem; }
.badge.gold { background: var(--accent); color: var(--accent-ink); }
.badge.red { background: var(--red); color: #fff; }
.badge.hidden { background: #3a1414; color: #ffb0a8; border: 1px solid #7a2a2a; }

.toast { position: fixed; left: 50%; bottom: calc(96px + var(--safe-b)); transform: translate(-50%, 20px); z-index: 200; max-width: calc(100% - 32px); padding: 10px 16px; border-radius: 12px; background: var(--text); color: var(--bg); font-weight: 600; opacity: 0; transition: all .25s; box-shadow: 0 6px 24px rgba(0, 0, 0, .4); }
.toast.in { opacity: 1; transform: translate(-50%, 0); }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }

/* ---------- Spielerfarben ---------- */
.cdot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 6px; vertical-align: 0; box-shadow: 0 0 6px currentColor; }
.die.static { position: static; display: inline-block; width: 46px; height: 46px; filter: drop-shadow(0 3px 4px rgba(0, 0, 0, .4)); }
.swatches { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 8px; }
.swatch { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 8px 4px; border-radius: 12px; border: 1px solid var(--line); background: var(--bg2); cursor: pointer; font-size: .8rem; }
.swatch.on { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent); }
.swatch:disabled { opacity: .35; cursor: not-allowed; }
.swatch .sw-name { display: flex; flex-direction: column; align-items: center; line-height: 1.2; }
.swatch small { color: var(--muted); font-size: .7rem; }
.members { list-style: none; padding: 0; margin: .5rem 0; display: flex; flex-wrap: wrap; gap: .4rem 1rem; }
.gm-card { border-left: 4px solid var(--mc, var(--line)); }
.die-btn .die.static { width: 50px; height: 50px; }

/* ---------- Charakterkopf: Aufstieg ---------- */
.ch-sub { display: flex; align-items: center; justify-content: space-between; gap: .5rem; }
.ch-sub .btn .ic { width: 16px; height: 16px; }

/* ---------- Stufenaufstieg ---------- */
.lu-sec { border-top: 1px solid var(--line); padding-top: .8rem; margin-top: .8rem; }
.lu input[type=radio] { width: 20px; height: 20px; accent-color: var(--accent); }
.diff { list-style: none; padding: 0; margin: 0; }
.diff li { display: flex; justify-content: space-between; gap: 1rem; padding: 6px 0; border-bottom: 1px solid var(--line); font-size: .92rem; }
.diff li b { color: var(--accent); text-align: right; }

/* ---------- Begegnung ---------- */
.enc-list { list-style: none; padding: 0; margin: 0 0 14px; display: grid; gap: 8px; }
.enc { display: grid; grid-template-columns: 48px 1fr auto auto; align-items: center; gap: .5rem; padding: 10px; background: var(--card); border: 1px solid var(--line); border-left: 4px solid var(--mc, var(--line)); border-radius: var(--radius); }
.enc.npc { --mc: #b8473f; }
.enc.cur { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent), 0 0 24px color-mix(in srgb, var(--accent) 35%, transparent); }
.enc.dead { opacity: .45; }
.enc.dead b { text-decoration: line-through; }
.enc-init { width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--line); background: var(--bg2); font-family: var(--serif); font-size: 1.25rem; font-weight: 700; color: var(--accent); cursor: pointer; }
.enc-main { display: flex; flex-direction: column; min-width: 0; }
.enc-main b { font-family: var(--serif); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.enc-main .hpbar { margin-top: 4px; }
.hpbar.mon i { background: var(--red); }
.leg-pips { border: 0; background: none; padding: 2px 0 0; text-align: left; color: var(--accent); font-size: .9rem; letter-spacing: 2px; cursor: pointer; font-family: inherit; }
.leg-pips small { letter-spacing: 0; color: var(--muted); font-size: .72rem; }
.leg-hint { margin: -6px 0 12px; }
.leg-box { display: grid; gap: 6px; padding: 8px 10px; margin-bottom: .8rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg2); }
.leg-row { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.leg-row > span { flex: 1; min-width: 150px; }
.leg-box .field.check { margin: 0; }
.statblock h4 small { text-transform: none; letter-spacing: 0; font-weight: 400; }
.enc-ctrl { position: sticky; bottom: calc(10px + var(--safe-b)); background: color-mix(in srgb, var(--bg) 85%, transparent); padding: 8px; border-radius: 14px; backdrop-filter: blur(8px); }
.mon-list { list-style: none; padding: 0; margin: .6rem 0; display: grid; gap: 6px; }
.mon-list li { display: flex; gap: .4rem; align-items: center; }
.mon-pick { flex: 1; display: flex; flex-direction: column; align-items: flex-start; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--line); background: var(--card2); cursor: pointer; text-align: left; }
.mon-pick:hover { border-color: var(--accent); }
.mon-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: .8rem; }
.mon-stats > div { display: flex; flex-direction: column; align-items: center; padding: 8px; background: var(--card2); border: 1px solid var(--line); border-radius: 12px; }
.mon-stats small { font-size: .72rem; color: var(--muted); text-transform: uppercase; }
.mon-stats b { font-family: var(--serif); font-size: 1.4rem; }
.quick { grid-template-columns: repeat(auto-fit, minmax(96px, 1fr)); }
.hist li.hidden-roll { opacity: .7; }

/* ---------- Impressum, Datenschutz, Fußzeile ---------- */
.foot { display: flex; flex-wrap: wrap; justify-content: center; gap: .4rem 1.2rem; margin: 24px 0 8px; font-size: .85rem; }
.foot a { color: var(--muted); text-decoration: none; }
.foot a:hover { color: var(--accent); text-decoration: underline; }
.legal h2 { margin-bottom: .4rem; }
.legal address { font-style: normal; line-height: 1.6; margin: .4rem 0; }
.legal a { color: var(--accent); }
.legal p { line-height: 1.55; }
.status { padding: 8px 12px; border-radius: 10px; font-weight: 600; }
.status.ok { background: color-mix(in srgb, var(--green) 20%, transparent); color: var(--green); }
.status.err { background: color-mix(in srgb, var(--red) 18%, transparent); color: var(--red); }
/* Falle für Bots: für Menschen unsichtbar, auch für Screenreader */
.trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Feedback und Entwicklerbereich ---------- */
.fb-item { border-top: 1px solid var(--line); padding: 12px 0; }
.fb-item:first-of-type { border-top: 0; }
.fb-item header { display: flex; align-items: center; justify-content: space-between; gap: .6rem; }
.fb-body { white-space: pre-wrap; margin: .4rem 0; }
.fb-reply { background: color-mix(in srgb, var(--accent) 12%, transparent); border-left: 3px solid var(--accent); border-radius: 8px; padding: 8px 10px; margin: .4rem 0; }
.fb-reply p { margin: .2rem 0 0; white-space: pre-wrap; }
.fb-status { font-size: .75rem; font-weight: 700; padding: 2px 8px; border-radius: 999px; white-space: nowrap; background: var(--line); }
.fb-status.s-neu { background: var(--blue); color: #06142a; }
.fb-status.s-in_arbeit { background: var(--warn); color: #1b1006; }
.fb-status.s-erledigt { background: var(--green); color: #06180d; }
.fb-status.s-abgelehnt { background: var(--muted); color: var(--bg); }
.mem-list { list-style: none; padding: 0; margin: .5rem 0; display: grid; gap: 6px; }
.mem-list li { display: flex; align-items: center; gap: .5rem; }
.mem-list li span { flex: 1; }
.dev-tabs { grid-template-columns: 1fr 1fr; margin-bottom: 12px; }
.code.small { font-size: .85rem; }

/* ---------- Konto, Gruppen, Mitbestimmen, Version ---------- */
.icon-btn.active-soft { color: var(--accent); }
.hello { border-color: color-mix(in srgb, var(--accent) 50%, var(--line)); }
.char-card { border-left: 4px solid var(--mc, var(--line)); }
.role { font-size: .7rem; font-weight: 700; padding: 1px 7px; border-radius: 999px; background: var(--line); margin-left: 4px; vertical-align: 1px; }
.role.gm { background: var(--accent); color: var(--accent-ink); }
.invite { display: grid; grid-template-columns: 1fr auto; gap: .4rem; }
.invite input { font-family: ui-monospace, Consolas, monospace; font-size: .8rem; }
.danger-zone { margin-top: .8rem; }
.danger-zone summary { color: var(--red); cursor: pointer; }
.poll { list-style: none; padding: 0; margin: .5rem 0; display: grid; gap: 6px; }
.poll li { position: relative; display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: .6rem; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: var(--bg2); }
.poll li.mine { border-color: var(--accent); }
.poll-bar { position: absolute; inset: 0 auto 0 0; width: var(--w, 0%); background: color-mix(in srgb, var(--accent) 16%, transparent); transition: width .3s; pointer-events: none; }
.poll-main { position: relative; display: flex; flex-direction: column; }
.poll-count { position: relative; font-family: var(--serif); font-weight: 700; font-size: 1.15rem; color: var(--accent); }
.poll .btn { position: relative; }
.ver { color: var(--muted); }
.beta { display: inline-block; font-size: .68rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; padding: 1px 7px; border-radius: 999px; background: var(--warn); color: #1b1006; margin-right: 4px; }
.dev-tabs-wrap { display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: 12px; }
.card-lite { border: 1px dashed var(--line); border-radius: 12px; padding: 10px; margin: .6rem 0; }
.opt-form { border-top: 1px dashed var(--line); margin-top: .6rem; padding-top: .6rem; }
.fb-status.s-idee { background: var(--line); color: var(--text); }
.fb-status.s-geplant { background: var(--blue); color: #06142a; }
.fb-status.s-fertig { background: var(--green); color: #06180d; }
.fb-status.s-verworfen { background: var(--muted); color: var(--bg); }

/* ---------- Attributswerte bei der Erstellung ---------- */
.advbar.method { grid-template-columns: repeat(4, 1fr); margin-bottom: .6rem; }
.assign { display: grid; grid-template-columns: repeat(2, 1fr); gap: .5rem; margin-bottom: .4rem; }
@media (min-width: 620px) { .assign { grid-template-columns: repeat(3, 1fr); } }
.assign label { display: flex; flex-direction: column; gap: .2rem; font-size: .8rem; color: var(--muted); }
.assign select { font-size: 1.05rem; font-weight: 700; color: var(--text); }
.points { font-size: 1rem; }
.points b { font-family: var(--serif); font-size: 1.3rem; color: var(--accent); }
.pb-grid { display: grid; gap: 6px; margin-bottom: .6rem; }
.pb { display: grid; grid-template-columns: 1fr auto 2.4em auto 3.2em; align-items: center; gap: .4rem; padding: 4px 8px; background: var(--bg2); border-radius: 10px; }
.pb b { text-align: center; font-family: var(--serif); font-size: 1.15rem; }
.pb small { text-align: right; }
.ab-final { display: grid; grid-template-columns: repeat(6, 1fr); gap: 4px; margin: .4rem 0 1rem; }
.ab-final div { display: flex; flex-direction: column; align-items: center; padding: 6px 2px; background: var(--card); border: 1px solid var(--line); border-radius: 10px; }
.ab-final small { font-size: .68rem; color: var(--muted); font-weight: 700; }
.ab-final b { font-family: var(--serif); font-size: 1.2rem; }
.ab-final span { font-size: .75rem; color: var(--muted); }
.dr-total.text { font-size: 2.2rem; letter-spacing: .02em; }

.pub { font-size: .72rem; padding: 0 6px; border-radius: 999px; background: var(--line); }
.pub.on { background: var(--green); color: #06180d; }
.roadmap { list-style: none; padding: 0; margin: .4rem 0 0; display: grid; gap: 6px; }
.roadmap li { padding: 10px 12px; background: var(--bg2); border-radius: 12px; border-left: 3px solid var(--accent); }
.rm-head { display: flex; align-items: flex-start; justify-content: space-between; gap: .6rem; }
.rm-head b { font-family: var(--serif); }
.rm-group { margin: 1rem 0 .2rem; font-family: var(--serif); font-size: 1.02rem; }
.roadmap.rm-idee li { border-left-color: var(--line); }
.roadmap.rm-fertig li { border-left-color: var(--green); }
.rm-text { margin: .35rem 0 0; font-size: .92rem; color: var(--muted); line-height: 1.5; white-space: pre-wrap; }
.teaser-preview { margin: .3rem 0; font-size: .88rem; padding: 6px 8px; border-radius: 8px; background: color-mix(in srgb, var(--green) 10%, transparent); }
.lvl-btns { display: inline-flex; gap: 4px; }
.lvl-btns .ic { width: 16px; height: 16px; }

/* ---------- Traglast und Homebrew-Waffen ---------- */
.item { grid-template-columns: 56px 1fr 84px auto; }
.ikg { position: relative; display: block; }
.ikg input { padding-right: 26px; text-align: right; }
.ikg small { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.load-big { display: flex; align-items: baseline; gap: .5rem; }
.load-big b { font-family: var(--serif); font-size: 1.8rem; }
.load-big span { color: var(--muted); }
.load-big.over b { color: var(--red); }
.hpbar.load i { background: var(--accent); }
.hpbar.load i.near { background: var(--warn); }
.hpbar.load i.over { background: var(--red); }
.load-parts { display: flex; flex-wrap: wrap; gap: .3rem .9rem; font-size: .82rem; color: var(--muted); }
.small-check { min-height: 0; font-size: .85rem; }
.small-check > span { font-size: .85rem !important; }
.homebrew { border: 1px dashed var(--accent); border-radius: 10px; padding: 8px 10px; margin-bottom: .6rem; }
.chk-row { display: flex; flex-wrap: wrap; gap: 0 1rem; }
.chk-row .field.check { min-height: 34px; }
@media (max-width: 380px) { .item { grid-template-columns: 48px 1fr 72px auto; } }

/* ---------- Geld: Ein- und Ausgaben ---------- */
.money-tx { display: grid; grid-template-columns: 1fr 80px; gap: .4rem; margin-top: .6rem; }
.money-tx #money-note { grid-column: 1 / -1; }
.money-tx .row-btns { grid-column: 1 / -1; margin-top: 0; }
.money-tx .row-btns .btn { flex: 1; }
.ledger { margin-top: .6rem; }
.ledger summary { cursor: pointer; font-weight: 600; }
.ledger ul { list-style: none; padding: 0; margin: .4rem 0 0; }
.ledger li { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: .2rem .6rem; padding: 6px 0; border-bottom: 1px solid var(--line); }
.ledger li .btn { grid-column: 1 / -1; justify-self: start; }
.ledger .plus { color: var(--green); font-family: var(--serif); }
.ledger .minus { color: var(--red); font-family: var(--serif); }

/* ---------- Erfahrungspunkte ---------- */
.xp-line { display: grid; gap: 3px; width: 100%; margin-top: 6px; padding: 4px 2px; background: none; border: 0; color: var(--muted); font: inherit; font-size: .82rem; text-align: left; cursor: pointer; }
.xp-line b { color: var(--text); }
.xpbar { display: block; height: 5px; border-radius: 99px; background: var(--line); overflow: hidden; }
.xpbar > i { display: block; height: 100%; background: var(--accent); border-radius: 99px; }
.xpbar.big { height: 10px; margin: .4rem 0; }
.xp-line.ready .xpbar > i { background: var(--green); }
.ok-text { color: var(--green); }
.btn.ready { animation: lvlpulse 1.8s ease-in-out infinite; }
@keyframes lvlpulse { 50% { box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 35%, transparent); } }
@media (prefers-reduced-motion: reduce) { .btn.ready { animation: none; } }
.xp-big { display: flex; align-items: baseline; gap: .4rem; }
.xp-big b { font-family: var(--serif); font-size: 2.2rem; color: var(--accent); }
.xp-table { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 4px; margin-top: .4rem; font-size: .8rem; }
.xp-table span { display: flex; justify-content: space-between; gap: .3rem; padding: 3px 6px; border-radius: 8px; background: var(--bg2); }
.xp-table span.cur { outline: 1px solid var(--accent); }
.ledger-list { list-style: none; padding: 0; margin: .3rem 0; }
.ledger-list li { display: grid; grid-template-columns: auto 1fr auto; gap: .2rem .6rem; align-items: center; padding: 6px 0; border-bottom: 1px solid var(--line); }
.ledger-list .plus { color: var(--green); font-family: var(--serif); }
.ledger-list .minus { color: var(--red); font-family: var(--serif); }
.xp-gm { display: grid; gap: .5rem; margin-bottom: .8rem; }
.seg2 { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; margin-bottom: .6rem; }
.seg2 button { padding: 6px 12px; background: var(--bg2); border: 0; color: var(--muted); font: inherit; font-size: .85rem; cursor: pointer; }
.seg2 button.on { background: var(--accent); color: var(--accent-ink); }

/* ---------- Magische Gegenstände (#20) ---------- */
button.stat { font: inherit; color: inherit; cursor: pointer; }
.ab.magic span { color: var(--accent); font-weight: 700; }
.ab em { font-style: normal; color: var(--accent); }
.attune { align-self: flex-start; margin-top: 4px; padding: 2px 9px; border-radius: 999px; border: 1px dashed var(--accent); background: none; color: var(--accent); font: inherit; font-size: .75rem; font-weight: 700; cursor: pointer; }
.attune.on { border-style: solid; background: color-mix(in srgb, var(--accent) 18%, transparent); }
.attune-line { margin: 0 0 .5rem; font-size: .88rem; color: var(--muted); }
.slots { list-style: none; padding: 0; margin: 0 0 .7rem; display: grid; grid-template-columns: 1fr 1fr; gap: 4px; }
.slots li { display: flex; flex-direction: column; padding: 5px 8px; border-radius: 10px; background: var(--bg2); border: 1px solid var(--line); min-width: 0; }
.slots li.on { border-color: var(--accent); }
.slots small { font-size: .7rem; color: var(--muted); text-transform: uppercase; letter-spacing: .03em; }
.slots button { background: none; border: 0; padding: 0; font: inherit; text-align: left; cursor: pointer; color: var(--text); font-size: .85rem; font-weight: 600; overflow-wrap: break-word; hyphens: auto; }
.slots .slot-free { color: var(--muted); font-weight: 400; }
.slots em { font-style: normal; color: var(--warn); font-weight: 400; font-size: .75rem; }
.magic { margin: .6rem 0; border: 1px dashed var(--line); border-radius: 10px; padding: 6px 10px; }
.magic summary { cursor: pointer; font-weight: 600; }
.fx-edit { list-style: none; padding: 0; margin: .4rem 0; }
.fx-edit li { display: flex; justify-content: space-between; align-items: center; gap: .5rem; padding: 4px 0; border-bottom: 1px solid var(--line); }
.fx-add { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-top: .4rem; }
.fx-add select, .fx-add input { flex: 1 1 110px; min-width: 0; }
.fx-list { list-style: none; padding: 0; margin: .3rem 0; }
.fx-list li { display: flex; justify-content: space-between; gap: .8rem; padding: 6px 0; border-bottom: 1px solid var(--line); }
.fx-list li span { color: var(--muted); text-align: right; }
.fx-list li.sum { border-bottom: 0; font-weight: 700; }
.fx-list li.sum span { color: var(--text); text-align: left; }
.mon-pick small + small { display: block; color: var(--text); opacity: .8; margin-top: 2px; }

/* ---------- Beutel (#20, Etappe 3) ---------- */
.equip.use { min-width: 64px; }
.charges { display: flex; flex-wrap: wrap; align-items: center; gap: 3px; margin-top: 3px; }
.charges .pip { width: 10px; height: 10px; }
.charges small { margin-left: 4px; color: var(--muted); font-size: .75rem; }
.pouch { display: grid; gap: 6px; }
.pouch-it { display: grid; gap: 1px; text-align: left; padding: 8px 12px; background: var(--card2); border: 1px solid var(--line); border-radius: 12px; font: inherit; color: var(--text); cursor: pointer; }
.pouch-it:hover { border-color: var(--accent); }
.pouch-it[aria-disabled="true"] { opacity: .55; }
.pouch-it small { color: var(--muted); }

/* ---------- Munition (#23) ---------- */
.equip.ammo-n { display: inline-flex; justify-content: center; align-items: center; min-width: 48px; font-family: var(--serif); font-size: .95rem; cursor: default; }

/* ---------- Zauber (#21, Etappe 1) ---------- */
.tag.star { color: var(--accent); font-style: normal; }
.tag.src { background: var(--bg2); }
.tt { display: inline-block; min-width: 22px; padding: 0 4px; border-radius: 6px; font-size: .7rem; text-align: center; background: var(--line); color: var(--text); }
.tt-BA { background: color-mix(in srgb, var(--blue) 45%, transparent); }
.tt-R { background: color-mix(in srgb, var(--warn) 45%, transparent); }
.spell-line { margin: 0 0 .5rem; font-size: .88rem; color: var(--muted); display: flex; flex-wrap: wrap; gap: .2rem .5rem; }
.spell-line b { color: var(--text); }
.spell-pick .pick { display: flex; align-items: center; gap: .5rem; }
.spell-pick .pick > span:first-of-type { flex: 1; min-width: 0; }
.in-book { font-size: .75rem; color: var(--green); font-weight: 700; }

/* ---------- Fahrplan: Daumen ---------- */
.thumbs { display: flex; gap: 6px; margin-top: .45rem; }
.thumb { display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px; border-radius: 999px; border: 1px solid var(--line); background: var(--card2); font: inherit; font-size: .85rem; color: var(--muted); cursor: pointer; }
.thumb b { color: var(--text); font-weight: 700; }
.thumb.up.on { background: color-mix(in srgb, var(--green) 25%, transparent); border-color: var(--green); }
.thumb.down.on { background: color-mix(in srgb, var(--red) 22%, transparent); border-color: var(--red); }
.thumb:disabled { cursor: default; opacity: .85; }

/* ---------- Aktive Zauber (#21, Etappe 2) ---------- */
.active-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.active-list li { display: flex; align-items: flex-start; justify-content: space-between; gap: .6rem; padding: 8px 10px; border-radius: 12px; background: var(--card2); border: 1px solid var(--line); }
.active-list li.conc { border-color: var(--accent); }
.active-list li > div { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.active-list small { font-size: .8rem; }

/* ---------- Bestiarium (#22) ---------- */
.statblock { display: grid; gap: .35rem; }
.statblock h4 { margin: .7rem 0 .2rem; font-family: var(--serif); color: var(--accent); border-bottom: 1px solid var(--line); padding-bottom: 2px; }
.sb-type { margin: 0; font-style: italic; }
.sb-top { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.sb-top > div { display: flex; flex-direction: column; align-items: center; padding: 6px 4px; border-radius: 10px; background: var(--card2); border: 1px solid var(--line); }
.sb-top small { font-size: .7rem; color: var(--muted); }
.sb-top b, .sb-top button { font-family: var(--serif); font-size: 1.15rem; }
.sb-top button { background: none; border: 0; color: var(--accent); cursor: pointer; padding: 0; }
.sb-abs { display: grid; grid-template-columns: repeat(6, 1fr); gap: 4px; }
.sb-ab { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 4px 2px; border-radius: 10px; background: var(--bg2); }
.sb-ab small { font-size: .68rem; color: var(--muted); font-weight: 700; }
.sb-ab button { background: none; border: 0; padding: 0; color: var(--text); font: inherit; font-size: .85rem; cursor: pointer; }
.sb-ab button span { color: var(--muted); font-size: .78rem; }
.sb-ab button.sv { font-size: .72rem; color: var(--accent); }
.sb-line { margin: 0; font-size: .9rem; }
.sb-entry p { margin: .25rem 0; font-size: .92rem; line-height: 1.45; }
.sb-roll { margin: 0 0 .35rem; }
.sticky-add { position: sticky; bottom: 0; background: var(--card); padding: 8px 0; margin-top: .6rem; border-top: 1px solid var(--line); justify-content: space-between; }
@media (max-width: 380px) { .sb-abs { grid-template-columns: repeat(3, 1fr); } }
button.link { background: none; border: 0; padding: 0; color: var(--accent); font: inherit; cursor: pointer; text-decoration: underline; }
.diff { margin-top: 10px; padding: 8px 10px; border-radius: var(--radius); background: var(--bg2); border-left: 4px solid var(--line); }
.diff p { margin: 0 0 6px; }
.diff-low { border-left-color: var(--green); }
.diff-mid { border-left-color: var(--accent); }
.diff-high { border-left-color: var(--warn); }
.diff-over { border-left-color: var(--red); }
.diff-bar { position: relative; height: 8px; border-radius: 4px; background: var(--card); margin-bottom: 6px; overflow: hidden; }
.diff-bar span { position: absolute; inset: 0 auto 0 0; background: currentColor; opacity: .25; }
.diff-low .diff-bar span { background: var(--green); opacity: 1; }
.diff-mid .diff-bar span { background: var(--accent); opacity: 1; }
.diff-high .diff-bar span { background: var(--warn); opacity: 1; }
.diff-over .diff-bar span { background: var(--red); opacity: 1; }
.diff-bar i { position: absolute; top: 0; bottom: 0; width: 2px; background: var(--text); opacity: .6; }
.mon-ty { margin: -.2rem 0 .6rem; }
.mb-entry { border: 1px solid var(--line); border-radius: var(--radius); padding: 8px 10px; margin-bottom: 10px; background: var(--bg2); }
.mb-abs { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px 12px; }
@media (min-width: 520px) { .mb-abs { grid-template-columns: repeat(3, 1fr); } }
.mb-abs > div { display: grid; grid-template-columns: auto 1fr 1fr; gap: 4px; align-items: center; }
.mb-abs input { min-width: 0; width: 100%; padding-left: 6px; padding-right: 4px; text-align: center; }
.mb-guide { margin-top: 8px; padding: 8px 10px; border-radius: var(--radius); background: var(--bg2); }
.mb-guide p { margin: 0 0 6px; }
.mb h4 { margin: .6rem 0 .3rem; }
.pp-threads { list-style: none; padding: 0; margin: 0 0 8px; display: grid; gap: 6px; }
.pp-thread { display: grid; grid-template-columns: auto 1fr auto; gap: 6px; align-items: center; }
.pp-thread.done input[data-pp] { text-decoration: line-through; opacity: .6; }
.pp-thread .check { display: flex; }
.pp-loot { display: grid; grid-template-columns: 1fr 64px 64px auto; gap: 6px; align-items: end; margin-bottom: 6px; }
.pp-loot .field { margin: 0; }
.pp .sec-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.pp-mons { list-style: none; padding: 0; margin: 6px 0; display: grid; gap: 6px; }
.pp-mons li { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 8px; }
.pp-mons li > span:first-child { display: flex; flex-direction: column; min-width: 0; }
.pp-mons .stepper { display: flex; align-items: center; gap: 6px; }
.pp-enc.done { opacity: .75; }
.pp-loot.given input { opacity: .6; }
.bag-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.bag-list li { display: grid; gap: 4px; padding-bottom: 8px; border-bottom: 1px solid var(--line); }
.bag-list li:last-child { border-bottom: 0; }
.bag-list select { max-width: 150px; }
.bag-add { display: grid; grid-template-columns: 1fr auto; gap: 6px; margin-bottom: 8px; }
.tile .badge { margin: 0 0 0 4px; padding: 0 7px; background: var(--red); color: #fff; font-size: .75rem; }

/* Druckbarer Charakterbogen (#14) */
.print-sheet { background: #fff; color: #1d1712; max-width: 210mm; margin: 0 auto 24px; padding: 14px; font: 10pt/1.4 "Segoe UI", system-ui, sans-serif; border-radius: 6px; }
.print-sheet h1, .print-sheet h2, .print-sheet h3 { font-family: Georgia, "Palatino Linotype", serif; color: #1d1712; }
.print-sheet h1 { font-size: 20pt; margin: 0; }
.print-sheet h2 { font-size: 11pt; margin: 10px 0 4px; padding-bottom: 2px; border-bottom: 1px solid #b9a98e; text-transform: none; letter-spacing: 0; }
.pv-head { display: flex; justify-content: space-between; gap: 10px; border-bottom: 2px solid #8e2f3d; padding-bottom: 6px; flex-wrap: wrap; }
.pv-head p { margin: 2px 0 0; }
.pv-meta { display: flex; flex-direction: column; text-align: right; font-size: 8.5pt; color: #5a4a36; }
.pv-row { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; margin: 8px 0; }
.pv-box { border: 1px solid #b9a98e; border-radius: 4px; padding: 3px; text-align: center; display: flex; flex-direction: column; }
.pv-box small, .pv-ab small { font-size: 7pt; text-transform: uppercase; color: #5a4a36; }
.pv-box b { font-size: 13pt; }
.pv-box span { font-size: 7pt; color: #5a4a36; }
.pv-cols { display: grid; grid-template-columns: 1.3fr 1fr; gap: 12px; }
.pv-abs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; }
.pv-ab { border: 1px solid #b9a98e; border-radius: 4px; padding: 3px; text-align: center; display: flex; flex-direction: column; }
.pv-ab b { font-size: 14pt; } .pv-ab em { font-style: normal; font-size: 8pt; }
.pv-skills { list-style: none; padding: 0; margin: 0; columns: 1; font-size: 9pt; }
.pv-skills li { display: flex; gap: 4px; border-bottom: 1px dotted #d8ccb6; }
.pv-skills li b { margin-left: auto; } .pv-skills small { color: #5a4a36; }
.pv-table { width: 100%; border-collapse: collapse; font-size: 9pt; }
.pv-table th, .pv-table td { text-align: left; padding: 2px 4px; border-bottom: 1px solid #e3d8c4; vertical-align: top; }
.pv-table th { font-size: 8pt; color: #5a4a36; }
.pv-small { font-size: 8pt; color: #5a4a36; margin: 2px 0; }
.pv-check { display: inline-block; width: 9px; height: 9px; border: 1px solid #1d1712; border-radius: 50%; margin: 0 1px; vertical-align: middle; }
.pv-slots { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: 9pt; }
.pv-feat { font-size: 9pt; margin-bottom: 3px; }
.pv-notes { white-space: pre-wrap; font-size: 9pt; }
.pv-foot { margin-top: 12px; font-size: 7.5pt; color: #5a4a36; border-top: 1px solid #b9a98e; padding-top: 4px; }
@media (max-width: 600px) { .pv-row { grid-template-columns: repeat(4, 1fr); } .pv-cols { grid-template-columns: 1fr; } }
@media print {
  @page { size: A4; margin: 12mm; }
  body { background: #fff !important; }
  body > *:not(#app), .print-actions, .toast, .sheet-wrap { display: none !important; }
  .print-sheet { max-width: none; margin: 0; padding: 0; border-radius: 0; }
  .pv-row { grid-template-columns: repeat(7, 1fr) !important; }
  .pv-cols { grid-template-columns: 1.3fr 1fr !important; }
  .pv-page { break-before: page; }
  .pv-table tr, .pv-feat, .pv-ab { break-inside: avoid; }
  .print-sheet h2 { break-after: avoid; }
}

/* Import-Vorlage (#14) */
.imp-steps { margin: 0 0 10px 18px; padding: 0; font-size: .92rem; }
.imp-steps li { margin-bottom: 4px; }
.imp-group h4 { margin: .6rem 0 .2rem; }
.imp-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 4px; font-size: .92rem; }
.imp-list li.ok { color: var(--green); }
.imp-list li.guess select { margin-left: 4px; max-width: 220px; }
.imp-list li.unknown { color: var(--warn); }
.imp-abs { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: .92rem; }

.code-big { font-family: ui-monospace, Consolas, monospace; font-size: 1.35rem; font-weight: 700; letter-spacing: 1px; text-align: center; padding: 10px; margin: 0 0 8px; border: 1px dashed var(--accent); border-radius: var(--radius); user-select: all; }

/* Hausregeln (#2) */
.hr-sum { margin: 0 0 8px 18px; padding: 0; }
.hr-sum li { margin-bottom: 2px; }
.hr-fx { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-bottom: 8px; }
.hr-fx select { flex: 1 1 180px; min-width: 0; }
.hr-fx input { width: 72px; }
.hb-list li { display: flex; justify-content: space-between; align-items: center; gap: 6px; flex-wrap: wrap; }

/* Designauswahl */
.theme-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 8px; }
.theme-opt { border: 2px solid var(--line); border-radius: var(--radius); padding: 8px; text-align: left; cursor: pointer; background: var(--bg2); color: var(--text); font: inherit; }
.theme-opt.on { border-color: var(--accent); }
.theme-opt .sw { display: flex; gap: 3px; margin-bottom: 6px; }
.theme-opt .sw i { flex: 1; height: 18px; border-radius: 4px; border: 1px solid rgba(127,127,127,.3); }
.theme-opt small { display: block; color: var(--muted); }
.feat { border-top: 1px solid var(--line); padding-top: 6px; margin-top: 6px; }
.feat p { margin: 2px 0 4px; }
.cf-new { border: 1px dashed var(--accent); border-radius: var(--radius); padding: 8px 10px; margin: 6px 0 10px; }
.cf-new p { margin: 0 0 6px; }
.enc-view .ev-list { list-style: none; margin: 0; padding: 0; }
.enc-view .ev-list li { display: flex; gap: 10px; align-items: baseline; padding: 6px 8px; border-radius: var(--radius); }
.enc-view .ev-list li.cur { background: color-mix(in srgb, var(--accent) 18%, transparent); font-weight: 600; }
.enc-view .ev-list li.dead { opacity: .5; text-decoration: line-through; }
.enc-view .ev-init { min-width: 2ch; text-align: right; }
.macros { display: grid; gap: 8px; }
.macro { display: flex; gap: 6px; align-items: stretch; }
.macro .atk-main { flex: 1; display: flex; flex-direction: column; align-items: flex-start; gap: 2px; text-align: left; }
.dice-tray canvas.dice3d { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.live-pill { display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px; border-radius: 999px; font-size: .78rem; font-weight: 700; color: #fff; background: #2f9e5b; text-decoration: none; margin-right: 6px; animation: livepulse 2.4s ease-in-out infinite; }
.live-pill small { font-weight: 600; opacity: .9; }
@keyframes livepulse { 50% { box-shadow: 0 0 0 4px color-mix(in srgb, #2f9e5b 30%, transparent); } }
@media (prefers-reduced-motion: reduce) { .live-pill { animation: none; } }
.live-card.on { border-left: 4px solid #2f9e5b; }
.live-card.on h3 { color: #2f9e5b; }
small.online { color: #2f9e5b; font-weight: 700; }
