/* Adventurers – Oberfläche nach dem Designsystem: dunkel, ruhig, gealtertes Metall, die Bilder im Vordergrund. */

@font-face { font-family: "Alegreya"; font-weight: 500; font-display: swap;
  src: url("/fonts/alegreya-latin-500-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Alegreya"; font-weight: 500; font-display: swap;
  src: url("/fonts/alegreya-latin-ext-500-normal.woff2") format("woff2"); unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Alegreya"; font-weight: 700; font-display: swap;
  src: url("/fonts/alegreya-latin-700-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Alegreya"; font-weight: 700; font-display: swap;
  src: url("/fonts/alegreya-latin-ext-700-normal.woff2") format("woff2"); unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Alegreya"; font-weight: 500; font-style: italic; font-display: swap;
  src: url("/fonts/alegreya-latin-500-italic.woff2") format("woff2"); }
@font-face { font-family: "Alegreya Sans"; font-weight: 400; font-display: swap;
  src: url("/fonts/alegreya-sans-latin-400-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Alegreya Sans"; font-weight: 400; font-display: swap;
  src: url("/fonts/alegreya-sans-latin-ext-400-normal.woff2") format("woff2"); unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Alegreya Sans"; font-weight: 500; font-display: swap;
  src: url("/fonts/alegreya-sans-latin-500-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Alegreya Sans"; font-weight: 500; font-display: swap;
  src: url("/fonts/alegreya-sans-latin-ext-500-normal.woff2") format("woff2"); unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Alegreya Sans"; font-weight: 700; font-display: swap;
  src: url("/fonts/alegreya-sans-latin-700-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Alegreya Sans"; font-weight: 700; font-display: swap;
  src: url("/fonts/alegreya-sans-latin-ext-700-normal.woff2") format("woff2"); unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
  /* Grundpalette */
  --russ: #12100E;
  --basalt: #1C1916;
  --leder: #2A231C;
  --gravur: #3D342A;
  --pergament: #E9E1CF;
  --asche: #A79E8C;
  --altgold: #C2A15B;
  --altgold-hell: #D9BE7E;
  --altsilber: #AEB4B8;
  --eisen: #6E6A64;
  --blutrot: #A8352A;
  --blutrot-hell: #D0574A;
  --moorgruen: #5E8C4E;
  --stahlblau: #7FA0BA;
  /* Elemente */
  --el-FEUER: #E8792F;
  --el-FROST: #9DD1EA;
  --el-BLITZ: #5B93FF;
  --el-GIFT: #4E9A5F;
  --el-LICHT: #D8B35A;
  --el-PHYSISCH: #A7AEB3;
  --el-ARKAN: #9A7BC8;

  --serif: "Alegreya", "Iowan Old Style", Georgia, serif;
  --sans: "Alegreya Sans", "Segoe UI", system-ui, sans-serif;
  --r: 6px;
  --dock-height: 0px;
  --bar-height: 0px;
  --plan-height: 0px;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
/* Am PC sitzt man weiter weg: alles, was in rem gesetzt ist, wird etwas grösser. */
@media (min-width: 900px) { html { font-size: 18px; } }
body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  background:
    radial-gradient(120% 60% at 50% -10%, #241D17 0%, rgba(18, 16, 14, 0) 60%),
    var(--russ);
  color: var(--pergament);
  font: 400 1rem/1.5 var(--sans);
  -webkit-font-smoothing: antialiased;
}
body.in-fight { padding-bottom: calc(var(--dock-height) + 16px); }
#app { max-width: 1240px; margin: 0 auto; padding: max(16px, env(safe-area-inset-top)) 16px 32px; }
.loading { color: var(--asche); text-align: center; margin-top: 30vh; font-family: var(--serif); font-size: 1.2rem; }

h1, h2, h3 { font-family: var(--serif); font-weight: 700; margin: 0; color: var(--pergament); letter-spacing: 0.005em; }
h2 { font-size: 1.3rem; margin-bottom: 0.7rem; }
h3 { font-size: 1.08rem; margin-bottom: 0.4rem; }
p { margin: 0.4rem 0; }
a { color: var(--altgold-hell); }
.muted { color: var(--asche); }
b, strong { font-weight: 700; }
code { font: 500 0.92em/1.3 ui-monospace, "SF Mono", Menlo, monospace; color: var(--altgold-hell); }
svg.ico { width: 1em; height: 1em; vertical-align: -0.14em; stroke: currentColor; fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; flex: none; }

:focus-visible { outline: 2px solid var(--altgold-hell); outline-offset: 2px; }

/* ------------------------------------------------------------ Tafeln und Knöpfe */

.panel {
  background: linear-gradient(180deg, rgba(42, 35, 28, 0.55), rgba(28, 25, 22, 0.75));
  border: 1px solid var(--gravur);
  border-radius: var(--r);
  padding: 16px;
  margin-bottom: 14px;
  box-shadow: inset 0 1px 0 rgba(233, 225, 207, 0.04);
}

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.45em;
  min-height: 44px; padding: 0.55em 1.1em;
  border: 1px solid var(--gravur); border-radius: var(--r);
  background: var(--leder); color: var(--pergament);
  font: 500 1rem/1.2 var(--sans); cursor: pointer; text-decoration: none;
  transition: border-color 0.15s, background 0.15s;
}
.btn:hover { border-color: var(--altgold); }
.btn:disabled { opacity: 0.45; cursor: not-allowed; }
.btn-primary {
  background: linear-gradient(180deg, #CDAE68, #A9883F);
  border-color: #E0C88C; color: #1A140C; font-weight: 700;
}
.btn-primary:hover { background: linear-gradient(180deg, #D8BC7A, #B4924A); }
.btn-quiet { background: transparent; border-color: transparent; color: var(--asche); padding-inline: 0.4em; }
.btn-quiet:hover { color: var(--pergament); border-color: transparent; text-decoration: underline; }
.btn-wide { width: 100%; }
.btn-danger { border-color: var(--blutrot); color: var(--blutrot-hell); background: transparent; }

.field { display: block; margin-bottom: 12px; }
.field > span { display: block; color: var(--asche); font-size: 0.92rem; margin-bottom: 4px; }
input {
  width: 100%; min-height: 46px; padding: 0.5em 0.75em;
  background: var(--russ); color: var(--pergament);
  border: 1px solid var(--gravur); border-radius: var(--r);
  font: 400 1.05rem var(--sans);
}
input:focus { border-color: var(--altgold); outline: none; }
.code-input { text-transform: uppercase; letter-spacing: 0.3em; font: 700 1.4rem var(--serif); text-align: center; }

.chip {
  display: inline-flex; align-items: center; gap: 0.3em;
  padding: 0.12em 0.55em; border-radius: 999px;
  border: 1px solid var(--gravur); background: rgba(18, 16, 14, 0.6);
  font-size: 0.84rem; color: var(--pergament); white-space: nowrap;
}
.chip.neg { border-color: rgba(168, 53, 42, 0.7); color: #E4A79F; }
.chip.pos { border-color: rgba(94, 140, 78, 0.7); color: #B9D6AC; }
.chip.gold { border-color: rgba(194, 161, 91, 0.7); color: var(--altgold-hell); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }

#toast {
  position: fixed; left: 50%; bottom: calc(var(--dock-height) + 20px); transform: translateX(-50%);
  max-width: min(92vw, 520px); z-index: 50;
  background: var(--leder); border: 1px solid var(--altgold); border-radius: var(--r);
  padding: 0.7em 1em; box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
}
.conn-warn { background: rgba(168, 53, 42, 0.18); border: 1px solid var(--blutrot); border-radius: var(--r); padding: 0.5em 0.8em; }
.error-text { color: #E4A79F; }
.hint { color: var(--asche); font-size: 0.94rem; }

/* ------------------------------------------------------------ Bilder und Platzhalter */

.art { display: block; width: 100%; height: 100%; object-fit: cover; }
.art-ph {
  position: relative; display: grid; place-items: center; width: 100%; height: 100%;
  color: var(--tone, var(--altgold));
  background:
    radial-gradient(80% 60% at 50% 38%, color-mix(in srgb, var(--tone, var(--altgold)) 18%, transparent), transparent 70%),
    repeating-linear-gradient(135deg, rgba(233, 225, 207, 0.018) 0 2px, transparent 2px 7px),
    linear-gradient(180deg, #221D18, #141210);
}
.art-ph svg.ico { width: 34%; height: auto; aspect-ratio: 1; opacity: 0.55; stroke-width: 1.1; }
.art-ph .mono { font: 700 clamp(2rem, 9vw, 4.4rem) / 1 var(--serif); opacity: 0.42; margin-top: -12%; }
.art-ph .ph-note {
  position: absolute; left: 0; right: 0; bottom: 44%; text-align: center;
  font: 500 0.7rem var(--sans); color: var(--asche); opacity: 0.6;
}
.art-ph.shade {
  color: var(--asche);
  background:
    radial-gradient(42% 34% at 50% 34%, rgba(0, 0, 0, 0.92), transparent 72%),
    radial-gradient(70% 60% at 50% 40%, rgba(120, 110, 96, 0.22), transparent 75%),
    linear-gradient(180deg, #1D1915, #0E0C0A);
}
.art-ph.shade .mono { opacity: 0.3; }

/* ------------------------------------------------------------ Karten (5:7) */

.card {
  --tone: var(--el-PHYSISCH);
  --frame: var(--eisen);
  position: relative; display: block; flex: none;
  width: 180px; aspect-ratio: 5 / 7; container-type: inline-size;
  border-radius: 7px; overflow: hidden;
  background: var(--basalt);
  border: 1px solid var(--frame);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.45), inset 0 0 0 3px rgba(18, 16, 14, 0.85), inset 0 0 0 4px color-mix(in srgb, var(--frame) 45%, transparent);
  padding: 0; color: var(--pergament); text-align: left; font: inherit; cursor: default;
  transition: transform 0.16s ease, box-shadow 0.16s ease;
}
button.card { cursor: pointer; }
.card.r-SELTEN { --frame: var(--altsilber); }
.card.r-EPISCH { --frame: var(--altgold); }
.card .card-art { position: absolute; inset: 0; }
.card .card-art::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(14, 12, 10, 0) 30%, rgba(14, 12, 10, 0.84) 48%, rgba(14, 12, 10, 0.97) 64%);
}
/* Combo und Sperren statt Kosten: Jede Karte kostet 1 Energie, Combo-Karten nichts. */
.card .medal {
  position: absolute; top: 7px; left: 7px; z-index: 2;
  min-width: 30px; height: 30px; padding: 0 7px; display: inline-flex; align-items: center; justify-content: center; gap: 2px;
  border-radius: 999px; font: 700 0.95rem/1 var(--serif); color: #1A140C;
  background: radial-gradient(circle at 35% 30%, #E7D29E, #B08F49 60%, #7A6230);
  box-shadow: 0 0 0 1px #2A2216, 0 2px 6px rgba(0, 0, 0, 0.6);
}
.card .medal .ico { width: 17px; height: 17px; stroke: #1A140C; }
.card .medal.limit { background: radial-gradient(circle at 35% 30%, #D8DCDF, #9EA4A8 60%, #5E6367); }
.card .el {
  position: absolute; top: 7px; right: 7px; z-index: 2;
  width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%;
  color: var(--tone); background: rgba(18, 16, 14, 0.82); box-shadow: 0 0 0 1px color-mix(in srgb, var(--tone) 60%, #000);
}
.card .el svg.ico { width: 17px; height: 17px; }
.card .card-body {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 2;
  padding: 0 9px 8px; display: flex; flex-direction: column; gap: 2px;
}
.card .card-name { font: 700 clamp(0.95rem, 9cqw, 1.55rem)/1.12 var(--serif); }
.card .card-type { display: flex; align-items: center; gap: 4px; font-size: clamp(0.72rem, 6.4cqw, 1rem); color: var(--asche); }
.card .card-type .ico { color: var(--tone); }
.card .card-text { font-size: clamp(0.8rem, 7.6cqw, 1.18rem); line-height: 1.25; color: #DCD3C0; }
.card .card-text b { color: var(--pergament); }
.card .card-kw { font-size: clamp(0.72rem, 6.4cqw, 1rem); line-height: 1.22; color: var(--asche); }
.card .card-kw b { color: var(--altgold-hell); font-weight: 700; }
.card .card-owner {
  margin-top: 3px; padding-top: 3px; font-size: clamp(0.66rem, 5.8cqw, 0.9rem); color: var(--asche);
  border-top: 1px solid color-mix(in srgb, var(--frame) 40%, transparent);
}
.card.selected { transform: translateY(-10px); box-shadow: 0 0 0 2px var(--altgold-hell), 0 14px 26px rgba(0, 0, 0, 0.6); }
.card.too-expensive { filter: saturate(0.4) brightness(0.7); }
.card.special { --frame: #8FB89A; }
.card.mini { width: 150px; }
.card.big { width: 200px; }
.card.huge { width: min(72vw, 320px); }
.loot-mark {
  position: absolute; top: 44px; left: 7px; z-index: 2; font-size: 0.64rem; color: var(--altgold-hell);
  background: rgba(18, 16, 14, 0.85); border: 1px solid rgba(194, 161, 91, 0.5); padding: 0 5px; border-radius: 3px;
}

/* ------------------------------------------------------------ Start */

.start { max-width: 520px; margin: 6vh auto 0; text-align: center; }
.title { font-size: clamp(2.6rem, 9vw, 3.6rem); line-height: 1; letter-spacing: 0.01em; }
.title-rule { width: 120px; height: 1px; margin: 14px auto 10px; background: linear-gradient(90deg, transparent, var(--altgold), transparent); }
.tagline { color: var(--asche); font-family: var(--serif); font-style: italic; font-size: 1.1rem; margin-bottom: 1.4rem; }
.start .panel { text-align: left; }
.or { text-align: center; color: var(--asche); margin: 10px 0; font-family: var(--serif); font-style: italic; }
.join-row { display: grid; grid-template-columns: 1fr auto; gap: 10px; align-items: end; }
.join-row .field { margin: 0; }
.resume { display: flex; gap: 12px; align-items: center; justify-content: space-between; }
.start-links { margin-top: 1.4rem; display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 16px; }

/* ------------------------------------------------------------ Lobby */

.lobby { max-width: 980px; margin: 0 auto; }
.lobby-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; margin: 6px 0 18px; flex-wrap: wrap; }
.lobby-title { font-size: 2.2rem; }
.code-badge { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.phone-hint { flex-basis: 100%; font-size: 0.9rem; color: var(--asche); }
.phone-hint b { color: var(--pergament); font-weight: 700; letter-spacing: 0.02em; }
.code-badge .code { font: 700 1.6rem var(--serif); letter-spacing: 0.22em; color: var(--altgold-hell); }
.section-gap { margin-top: 22px; }

.roster { list-style: none; margin: 0 0 6px; padding: 0; }
.roster li { display: flex; align-items: center; gap: 10px; padding: 7px 0; border-bottom: 1px solid rgba(61, 52, 42, 0.6); }
.roster li:last-child { border-bottom: 0; }
.roster .who { flex: 1; line-height: 1.25; }
.roster .pick { color: var(--asche); font-size: 0.9rem; }
.host-mark { color: var(--altgold-hell); font-size: 0.8rem; margin-left: 4px; }
.dot { width: 9px; height: 9px; border-radius: 50%; background: var(--moorgruen); }
.dot.off { background: var(--eisen); }

.avatar {
  width: 44px; height: 44px; border-radius: 50%; overflow: hidden; flex: none;
  border: 1px solid var(--gravur); background: var(--basalt);
}
.avatar .art { object-position: 50% 22%; }
.avatar .art-ph .mono { font-size: 1.3rem; margin: 0; opacity: 0.7; }
.avatar .art-ph svg.ico { width: 60%; }

/* Kampagne */
.campaign { display: grid; gap: 8px; }
.tier-label { font: 500 0.95rem var(--serif); font-style: italic; color: var(--asche); margin: 10px 0 2px; }
.tier-label:first-child { margin-top: 0; }
.stage-row {
  display: grid; grid-template-columns: 52px 1fr auto; gap: 12px; align-items: center;
  width: 100%; padding: 8px 12px 8px 8px; text-align: left;
  background: rgba(18, 16, 14, 0.55); border: 1px solid var(--gravur); border-radius: var(--r);
  color: var(--pergament); font: inherit;
}
button.stage-row { cursor: pointer; }
button.stage-row:hover { border-color: var(--altgold); }
.stage-row.selected { border-color: var(--altgold); box-shadow: inset 3px 0 0 var(--altgold); background: rgba(42, 35, 28, 0.7); }
.stage-row.locked { opacity: 0.5; }
.stage-row .thumb { width: 52px; aspect-ratio: 5 / 7; border-radius: 4px; overflow: hidden; border: 1px solid var(--gravur); }
.stage-row .thumb .art { object-position: 50% 30%; }
.stage-row .thumb .art-ph .mono { font-size: 1.5rem; margin: 0; }
.stage-row .st-num { font-size: 0.82rem; color: var(--asche); }
.stage-row .st-name { font: 700 1.08rem/1.2 var(--serif); }
.stage-row .st-sub { font-size: 0.86rem; color: var(--asche); }
.stage-row .st-state { font-size: 0.84rem; color: var(--asche); display: inline-flex; gap: 4px; align-items: center; }
.stage-row .st-state.won { color: #B9D6AC; }

.hero-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.hero-card {
  position: relative; aspect-ratio: 5 / 7; border-radius: 7px; overflow: hidden; padding: 0;
  border: 1px solid var(--gravur); background: var(--basalt); color: var(--pergament);
  text-align: left; font: inherit; cursor: pointer;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.4), inset 0 0 0 3px rgba(18, 16, 14, 0.85);
}
.hero-card .card-art { position: absolute; inset: 0; }
.hero-card .card-art .art { object-position: 50% 22%; }
.hero-card .card-art::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(14,12,10,0) 40%, rgba(14,12,10,0.88) 62%, rgba(14,12,10,0.97)); }
.hero-card .hc-body { position: absolute; left: 0; right: 0; bottom: 0; padding: 0 10px 9px; z-index: 2; }
.hero-card .hc-name { font: 700 1.12rem/1.1 var(--serif); }
.hero-card .hc-sub { font-size: 0.76rem; color: var(--asche); margin-bottom: 4px; }
.hero-card .hc-passive {
  font-size: 0.74rem; line-height: 1.22; color: #DCD3C0;
  display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden;
}
.hero-card .hc-passive b { color: var(--altgold-hell); font-weight: 500; }
.hero-card .hc-hp {
  position: absolute; top: 8px; right: 8px; z-index: 2; font: 700 0.82rem var(--sans);
  background: rgba(18, 16, 14, 0.85); border: 1px solid rgba(168, 53, 42, 0.8); color: #E8B4AC;
  border-radius: 999px; padding: 1px 8px;
}
.hero-card.chosen { border-color: var(--altgold-hell); box-shadow: 0 0 0 2px var(--altgold), 0 10px 24px rgba(0, 0, 0, 0.6); }
.hero-card:disabled { cursor: not-allowed; }
.hero-card:disabled .card-art { filter: grayscale(0.8) brightness(0.45); }
.hero-card .taken { position: absolute; top: 8px; left: 8px; z-index: 2; font-size: 0.72rem; background: rgba(18,16,14,0.85); padding: 1px 7px; border-radius: 999px; color: var(--asche); }

.class-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 10px; }
.class-row {
  display: grid; grid-template-columns: 42px 1fr; gap: 10px; align-items: start; text-align: left;
  padding: 10px 12px; border: 1px solid var(--gravur); border-radius: var(--r);
  background: rgba(18, 16, 14, 0.55); color: var(--pergament); font: inherit; cursor: pointer;
}
.class-row:hover { border-color: var(--altgold); }
.class-row.chosen { border-color: var(--altgold); box-shadow: inset 3px 0 0 var(--altgold); }
.class-row .cls-ico { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--gravur); color: var(--altgold); }
.class-row .cls-ico .ico { width: 22px; height: 22px; }
.class-row .cls-name { font: 700 1.04rem var(--serif); }
.class-row .cls-sub { font-size: 0.88rem; color: var(--asche); }

.segmented { display: inline-flex; border: 1px solid var(--gravur); border-radius: var(--r); overflow: hidden; flex-wrap: wrap; }
.segmented button { min-height: 42px; padding: 0 16px; background: transparent; color: var(--asche); border: 0; border-right: 1px solid var(--gravur); font: 500 0.95rem var(--sans); cursor: pointer; }
.segmented button:last-child { border-right: 0; }
.segmented button[aria-pressed="true"] { background: var(--leder); color: var(--altgold-hell); }

.deck-list { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
details summary { cursor: pointer; color: var(--altgold-hell); font-weight: 500; }

.start-bar {
  position: sticky; bottom: 0; z-index: 10; margin-top: 18px;
  padding: 12px 0 max(12px, env(safe-area-inset-bottom));
  background: linear-gradient(180deg, rgba(18,16,14,0), var(--russ) 30%);
}

/* ------------------------------------------------------------ Kampf */

.topline { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; flex-wrap: wrap; }
.round-pill { font: 700 1rem var(--serif); color: var(--altgold-hell); }
.fight-wide { display: grid; gap: 14px; }
@media (min-width: 960px) { .fight-wide { grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr); align-items: start; } }

/* Boss-Kachel: oben das Bild mit Name und LP, darunter im selben Rahmen der Plan, Zähler und Effekte. */
.stage {
  position: relative; border-radius: var(--r); overflow: hidden; margin-bottom: 14px;
  border: 1px solid var(--gravur); background: var(--russ);
  scroll-margin-top: calc(var(--bar-height) + 10px);
}
.stage-media { position: relative; width: 100%; aspect-ratio: 4 / 3.8; max-height: 56vh; }
@media (min-width: 960px) { .stage-media { aspect-ratio: 5 / 4.6; } }
.stage-body { display: grid; gap: 10px; padding: 2px 14px 14px; }
.stage-body:empty { display: none; }
.stage-body .intent { margin: 0; }
.stage-body .counter-row, .stage-body .chips { margin: 0; }
.stage-art { position: absolute; inset: 0; }
.stage-art .art { object-position: 50% 30%; animation: artIn 0.9s ease; }
.stage-art .art-ph .mono { font-size: 6rem; }
.stage-media::after { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(18,16,14,0.25) 0%, rgba(18,16,14,0) 22%, rgba(18,16,14,0) 52%, rgba(18,16,14,0.92) 82%, var(--russ)); }
@keyframes artIn { from { opacity: 0; } to { opacity: 1; } }
.stage-top { position: absolute; top: 10px; left: 12px; right: 12px; z-index: 2; display: flex; justify-content: space-between; gap: 8px; align-items: flex-start; }
.phase-pill { font: 500 0.86rem var(--serif); font-style: italic; color: var(--pergament); background: rgba(18,16,14,0.72); border: 1px solid var(--gravur); border-radius: 999px; padding: 2px 10px; }
.stage-bottom { position: absolute; left: 14px; right: 14px; bottom: 12px; z-index: 2; }
.boss-name { font: 700 clamp(1.7rem, 6.5vw, 2.3rem)/1.02 var(--serif); text-shadow: 0 2px 14px rgba(0,0,0,0.8); }
.boss-sub { color: var(--asche); font-family: var(--serif); font-style: italic; margin: 2px 0 8px; }
.stage.hit .stage-art { animation: shake 0.32s ease; }
@keyframes shake { 0%,100% { transform: translateX(0); } 30% { transform: translateX(-4px); } 60% { transform: translateX(3px); } }
.floater { position: absolute; z-index: 3; top: 32%; left: 50%; transform: translateX(-50%); font: 700 2.4rem var(--serif); color: var(--pergament); text-shadow: 0 2px 12px #000; animation: float 1.2s ease forwards; pointer-events: none; }
.floater.heal { color: #B9D6AC; }
@keyframes float { from { opacity: 1; transform: translate(-50%, 0); } to { opacity: 0; transform: translate(-50%, -40px); } }

.hpbar { position: relative; height: 22px; border-radius: 4px; overflow: hidden; background: #2A1512; border: 1px solid #5A231C; }
.hpbar-fill { position: absolute; inset: 0 auto 0 0; background: linear-gradient(180deg, #C4473A, #8E2A20); transition: width 0.5s ease; }
.hpbar-text { position: relative; z-index: 1; display: flex; justify-content: space-between; padding: 0 8px; font: 700 0.86rem/22px var(--sans); text-shadow: 0 1px 2px #000; }
.hpbar .floor-mark { position: absolute; top: 0; bottom: 0; width: 2px; background: var(--altsilber); z-index: 1; }

.counter-row { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.counter {
  display: inline-flex; align-items: center; gap: 6px; padding: 3px 9px 3px 7px;
  background: rgba(18,16,14,0.82); border: 1px solid rgba(194,161,91,0.45); border-radius: 4px; font-size: 0.86rem;
}
.counter .ico { color: var(--altgold-hell); width: 1.1em; height: 1.1em; }
.counter b { font-family: var(--serif); font-size: 1rem; }

.intent {
  position: relative; display: grid; grid-template-columns: 92px 1fr; gap: 12px;
  padding: 12px; margin-bottom: 14px; border-radius: var(--r);
  background: linear-gradient(180deg, rgba(42, 35, 28, 0.7), rgba(28, 25, 22, 0.85));
  border: 1px solid #6A3A2E; box-shadow: inset 3px 0 0 var(--blutrot);
}
.intent.special { border-color: var(--blutrot-hell); box-shadow: inset 3px 0 0 var(--blutrot-hell), 0 0 0 1px rgba(208, 87, 74, 0.35); }
.intent.stopped { border-color: var(--gravur); box-shadow: inset 3px 0 0 var(--eisen); }
.intent.stopped .intent-art, .intent.stopped .intent-lines { opacity: 0.45; }
.intent-art { width: 92px; aspect-ratio: 5 / 7; border-radius: 4px; overflow: hidden; border: 1px solid var(--gravur); align-self: start; }
.intent-art .art-ph svg.ico { width: 50%; }
.intent-label { font-size: 0.95rem; color: #E4A79F; }
.intent.special .intent-label { color: var(--blutrot-hell); font-weight: 700; }
.intent-head { font: 700 1.6rem/1.15 var(--serif); margin: 2px 0 4px; }
.intent-flavor { color: #D8CEBA; font-size: 1.02rem; margin: 0 0 8px; }
.intent-lines { list-style: none; margin: 0; padding: 0; }
.intent-lines li { padding: 2px 0; font-size: 1.15rem; }
.intent-lines .you { color: var(--blutrot-hell); font-weight: 700; }
.intent-lines .note { color: var(--asche); font-size: 0.95rem; }
.stamp { position: absolute; top: 10px; right: 12px; font: 700 1rem var(--serif); color: var(--altsilber); border: 1px solid var(--altsilber); padding: 1px 8px; border-radius: 3px; transform: rotate(-4deg); }
.interrupt { grid-column: 1 / -1; margin-top: 4px; padding: 9px 10px; border: 1px dashed rgba(194,161,91,0.55); border-radius: 4px; font-size: 1rem; }
.interrupt .row { display: grid; grid-template-columns: 1fr auto; gap: 2px 8px; margin-top: 6px; }
.interrupt .progress { grid-column: 1 / -1; height: 6px; background: #241E18; border-radius: 3px; overflow: hidden; position: relative; }
.interrupt .progress .hpbar-fill { background: linear-gradient(90deg, #A9883F, #D9BE7E); }
.pips { display: inline-flex; gap: 4px; }
.pip { width: 11px; height: 11px; border-radius: 50%; border: 1px solid var(--altgold); }
.pip.on { background: var(--altgold); }
.enrage { grid-column: 1 / -1; color: #E4A79F; font-size: 1rem; margin: 6px 0 0; }

.puzzle { border-color: rgba(194,161,91,0.5); }
.puzzle .riddle { font: 500 1.08rem/1.4 var(--serif); font-style: italic; color: var(--pergament); margin: 4px 0 8px; }
.gate-steps { display: flex; gap: 6px; align-items: center; }
.gate-steps i { width: 26px; height: 8px; border-radius: 2px; border: 1px solid var(--altgold); }
.gate-steps i.on { background: var(--altgold); }
.vision { border-color: #7A62A8; background: linear-gradient(180deg, rgba(60, 44, 90, 0.35), rgba(28, 25, 22, 0.85)); }
.vision .riddle { color: #E2D7F5; }

.team-grid { display: grid; gap: 8px; }
.member {
  position: relative; display: grid; grid-template-columns: 48px 1fr; gap: 10px; align-items: center;
  padding: 8px 10px; border-radius: var(--r); background: rgba(18,16,14,0.5); border: 1px solid var(--gravur);
}
.member.me { border-color: rgba(194,161,91,0.6); }
.member.down { opacity: 0.55; }
.member.flash { animation: hurt 0.6s ease; }
@keyframes hurt { 30% { background: rgba(168, 53, 42, 0.35); } }
.member .avatar { width: 48px; height: 48px; }
.member .nm { font: 700 1rem var(--serif); }
.member .meta { font-size: 0.9rem; color: var(--asche); }
.hp-mini { position: relative; height: 7px; margin: 5px 0 3px; background: #2A1512; border-radius: 3px; overflow: hidden; }
.hp-mini.low .hpbar-fill { background: linear-gradient(90deg, #E05A4B, #A8352A); }
.hpn { display: flex; justify-content: space-between; align-items: center; font-size: 0.94rem; }
.member .chips { margin-top: 4px; }
.badges { position: absolute; top: 6px; right: 8px; display: flex; gap: 4px; }
.badge { font-size: 0.8rem; padding: 1px 7px; border-radius: 999px; border: 1px solid var(--gravur); background: var(--russ); color: var(--asche); }
.badge.ready { color: #B9D6AC; border-color: rgba(94,140,78,0.6); }
.badge.aggro { color: #E4A79F; border-color: rgba(168,53,42,0.6); }
.badge.dream { color: #CDBFEA; border-color: #7A62A8; }

.coins { display: inline-flex; gap: 3px; vertical-align: middle; }
.coins i { width: 11px; height: 11px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #E7D29E, #9C7C3C); box-shadow: 0 0 0 1px #2A2216; }
.coins i.off { background: #2A241C; box-shadow: 0 0 0 1px var(--gravur); }

.insights .ins-el { display: inline-flex; align-items: center; gap: 5px; }
.insights .ins-el .ico { color: var(--tone); }
.hints { margin: 10px 0 0; padding-left: 1.1em; }
.hints li { margin-bottom: 4px; }

/* Hand und Leiste unten */
/* Die Hand liegt auf einem eigenen grünen Spieltisch, damit sie sich klar vom Rest abhebt. */
.dock {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 20;
  background: radial-gradient(120% 140% at 50% 0%, #2A4A3B 0%, #1B3127 55%, #13241C 100%);
  border-top: 2px solid #5F8A6E; border-radius: 16px 16px 0 0;
  box-shadow: 0 -12px 28px rgba(0, 0, 0, 0.6);
}
.dock.my-turn { border-top-color: var(--altgold); box-shadow: 0 -12px 28px rgba(0, 0, 0, 0.6), 0 -3px 20px rgba(194, 161, 91, 0.35); }
.dock-inner { max-width: 1240px; margin: 0 auto; padding: 10px 12px max(10px, env(safe-area-inset-bottom)); }
.dock-head { display: flex; align-items: center; gap: 4px 14px; flex-wrap: wrap; padding: 0 2px; }
.dock-title { display: inline-flex; align-items: baseline; gap: 8px; font: 700 1.1rem var(--serif); color: #E6F0E8; }
/* Die Kopfzeile der Hand ist zugleich der Schalter zum Ein- und Ausklappen. */
.dock-toggle {
  display: inline-flex; align-items: center; gap: 12px; padding: 6px 10px 6px 6px; margin-left: -6px;
  background: transparent; border: 1px solid transparent; border-radius: 10px; color: inherit; font: inherit; cursor: pointer;
}
.dock-toggle:hover { border-color: rgba(169, 194, 177, 0.35); background: rgba(8, 16, 11, 0.25); }
.dock-toggle:focus-visible { outline: 2px solid var(--altgold-hell); outline-offset: 2px; }
.dock-chev {
  display: inline-flex; align-items: center; gap: 4px; padding: 3px 6px 3px 10px; border-radius: 999px;
  font-size: 0.84rem; color: #DCE9DF; background: rgba(8, 16, 11, 0.45); border: 1px solid rgba(169, 194, 177, 0.35);
}
.dock-chev .chev { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.dock.closed .dock-inner { padding-top: 6px; }
.dock.closed .dock-bar { border-top: 0; padding-top: 2px; }
.dock-title .ico { color: #9CCB8A; align-self: center; }
.dock-title small { font: 400 0.84rem var(--sans); color: #A9C2B1; }
.dock .muted { color: #B3C4B8; }
.hand { display: flex; gap: 10px; overflow-x: auto; padding: 14px 4px 8px; scroll-snap-type: x proximity; scrollbar-width: thin; }
.hand .card { scroll-snap-align: start; width: clamp(170px, 44vw, 210px); }
/* Breite Bildschirme: Die Karten werden schmaler, bis alle in eine Reihe passen. */
@media (min-width: 701px) {
  .hand .card { width: clamp(128px, calc((100% - (var(--n, 5) - 1) * 10px) / var(--n, 5)), 210px); }
}
.turn-line { font-size: 0.95rem; }
.turn-me { font: 700 1.05rem var(--serif); color: var(--altgold-hell); }
.card-focus { display: flex; gap: 16px; align-items: flex-start; flex-wrap: wrap; justify-content: center; padding: 8px 0; }
.card-focus .focus-actions { display: flex; flex-direction: column; gap: 8px; min-width: 200px; flex: 1; max-width: 360px; }
.card-focus .prompt { margin: 0; font-family: var(--serif); }
.items-box {
  margin: 2px 0 8px; padding: 8px; border-radius: 10px;
  background: rgba(8, 16, 11, 0.45); border: 1px solid rgba(194, 161, 91, 0.35);
}
.items-head { margin: 0 0 6px 2px; font-size: 0.84rem; color: #D9CDA8; }
.items { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.item {
  display: flex; gap: 9px; align-items: center; text-align: left; padding: 8px 9px; cursor: pointer; min-width: 0; min-height: 60px;
  background: linear-gradient(180deg, #4C3B21, #2F2515); color: var(--pergament);
  border: 1px solid rgba(217, 190, 126, 0.75); border-radius: 10px; font: inherit;
  box-shadow: inset 0 1px 0 rgba(255, 236, 190, 0.15), 0 3px 8px rgba(0, 0, 0, 0.35);
}
.item:hover:not(:disabled) { border-color: var(--altgold-hell); background: linear-gradient(180deg, #5A4628, #36291A); }
.item:disabled { opacity: 0.78; cursor: not-allowed; }
.item.used { opacity: 0.4; filter: saturate(0.4); }
.item-badge {
  display: grid; place-items: center; flex: none; width: 40px; height: 40px; border-radius: 50%; overflow: hidden;
  background: radial-gradient(circle at 35% 30%, #E7D29E, #B08F49 60%, #7A6230); box-shadow: 0 0 0 1px #2A2216;
}
.item-badge .ico { width: 24px; height: 24px; stroke: #1A140C; stroke-width: 1.8; }
.item-badge .item-art { width: 100%; height: 100%; object-fit: cover; }
.item span { min-width: 0; }
.item b { display: block; font: 700 1rem var(--serif); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.item small { display: block; font-size: 0.8rem; color: #E3D6B4; line-height: 1.2; }
@media (max-width: 420px) {
  .item { flex-direction: column; align-items: center; text-align: center; gap: 4px; padding: 7px 4px; }
  .item b { font-size: 0.92rem; }
}
@media (max-width: 600px) { .turn-help { display: none; } }
.resting { margin: 0 0 6px; font-size: 0.82rem; color: var(--asche); display: flex; gap: 6px; align-items: center; }
.resting .ico { width: 16px; height: 16px; }
.hand-empty { color: var(--asche); text-align: center; }
.action-bar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding: 8px 0; }
.action-bar .prompt { width: 100%; margin: 0; color: var(--pergament); font-family: var(--serif); }
.target-btn { gap: 8px; }
.target-btn .avatar { width: 30px; height: 30px; }
.dock-bar { display: flex; align-items: center; gap: 12px; padding-top: 6px; border-top: 1px solid rgba(169, 194, 177, 0.2); }

/*
 * Handy: Alle Handkarten auf einen Blick statt einer Reihe, durch die man wischen muss.
 * Die Karten werden zu kompakten Kacheln; antippen zeigt die ganze Karte gross mit den Knöpfen zum Ausspielen.
 */
@media (max-width: 700px) {
  .hand { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; overflow: visible; padding: 10px 0 6px; scroll-snap-type: none; }
  .hand .card {
    width: auto; aspect-ratio: auto; min-height: 112px; container-type: normal;
    border-top: 3px solid var(--tone); border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.45), inset 0 0 0 2px rgba(18, 16, 14, 0.85);
  }
  .hand .card .card-art, .hand .card .card-owner, .hand .card .card-kw, .hand .card .loot-mark { display: none; }
  .hand .card .card-body { position: static; padding: 7px 8px 8px; gap: 3px; }
  .hand .card .card-name { font-size: 0.98rem; line-height: 1.12; padding-right: 22px; }
  .hand .card .card-type { font-size: 0.74rem; white-space: nowrap; overflow: hidden; }
  .hand .card .card-type .ico { width: 14px; height: 14px; flex: none; }
  .hand .card .card-text {
    font-size: 0.8rem; line-height: 1.22;
    display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
  }
  .hand .card .el { top: 6px; right: 6px; width: 22px; height: 22px; }
  .hand .card .el svg.ico { width: 14px; height: 14px; }
  .hand .card .medal { top: auto; bottom: 6px; left: auto; right: 6px; min-width: 22px; height: 22px; padding: 0 5px; font-size: 0.76rem; }
  .hand .card .medal .ico { width: 13px; height: 13px; }
  .hand .card.selected { transform: none; box-shadow: 0 0 0 2px var(--altgold-hell); }
  .items-cost { display: none; }
  .items-box { padding: 6px; margin-bottom: 6px; }
  .items-head { margin-bottom: 4px; }
  .item { min-height: 0; padding: 6px; gap: 6px; }
  .item-badge { width: 30px; height: 30px; }
  .item-badge .ico { width: 18px; height: 18px; }
  .dock-head { gap: 2px 10px; }
  .dock-title { font-size: 1rem; }
  .dock { max-height: 84dvh; overflow-y: auto; overscroll-behavior: contain; }
  .card-focus { gap: 10px; padding: 6px 0 2px; }
  .card-focus .card.huge { width: min(56vw, 240px); }
  .card-focus .focus-actions { min-width: 0; width: 100%; }
}

/* Karten, die am Rundenende abgeworfen werden */
.card.to-discard::before {
  content: ""; position: absolute; inset: 0; z-index: 3; border-radius: inherit;
  background: repeating-linear-gradient(-45deg, rgba(10, 8, 6, 0.72) 0 10px, rgba(10, 8, 6, 0.58) 10px 20px);
}
.card.to-discard::after {
  content: "Ablegen"; position: absolute; z-index: 4; left: 50%; top: 50%; transform: translate(-50%, -50%) rotate(-8deg);
  padding: 2px 10px; border-radius: 6px; font: 700 0.9rem var(--sans); color: #FFE9DF; background: rgba(140, 45, 32, 0.92);
  border: 1px solid #E0A07A; white-space: nowrap;
}
.keep-row {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 10px;
  margin: 0 0 8px; padding: 6px 10px; border-radius: 10px; font-size: 0.88rem; color: #DCE9DF;
  background: rgba(8, 16, 11, 0.45); border: 1px solid rgba(169, 194, 177, 0.3);
}
.keep-btns { display: inline-flex; gap: 6px; }
.btn-small { padding: 4px 10px; font-size: 0.86rem; min-height: 0; }
.keep-row p { margin: 0; flex: 1 1 240px; }
.keep-row.choosing { border: 1px solid var(--altgold); background: rgba(40, 30, 12, 0.55); }
.keep-row.choosing .keep-btns { flex-wrap: wrap; }

/* Schalter einfache / volle Ansicht */
.view-toggle {
  display: inline-flex; align-items: center; gap: 6px; padding: 3px 8px 3px 4px; margin-left: auto;
  border: 1px solid var(--gravur); border-radius: 999px; background: transparent; color: var(--asche);
  font: inherit; font-size: 0.82rem; cursor: pointer;
}
.fb-turn + .view-toggle { margin-left: 8px; }
.view-toggle .vt-track { position: relative; width: 28px; height: 16px; border-radius: 999px; background: #3A332A; }
.view-toggle .vt-track i { position: absolute; top: 2px; left: 2px; width: 12px; height: 12px; border-radius: 50%; background: var(--asche); transition: left 0.15s; }
.view-toggle[aria-pressed="true"] { color: var(--pergament); border-color: var(--altgold); }
.view-toggle[aria-pressed="true"] .vt-track { background: var(--altgold); }
.view-toggle[aria-pressed="true"] .vt-track i { left: 14px; background: #1A140C; }
.view-toggle:focus-visible { outline: 2px solid var(--altgold-hell); outline-offset: 2px; }

/* Einfache Ansicht fürs Handy */
body.plan-away .fight.compact .compact-body { padding-top: var(--plan-height, 0px); }
.fight.compact .me-strip {
  display: grid; grid-template-columns: auto 1fr; gap: 4px 10px; align-items: center; margin: 10px 0 8px; padding: 8px 10px;
  border-radius: 10px; background: var(--leder); border: 1px solid var(--gravur);
}
.fight.compact .me-strip .avatar { width: 44px; height: 44px; grid-row: span 2; }
.fight.compact .ms-main { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 10px; }
.fight.compact .ms-hp { flex: 1 1 120px; height: 8px; border-radius: 999px; background: #3A1E1A; overflow: hidden; }
.fight.compact .ms-hp i { display: block; height: 100%; background: linear-gradient(90deg, #B8322A, #D9584C); }
.fight.compact .ms-num { font-size: 0.9rem; color: var(--asche); }
.fight.compact .ms-chips { display: flex; flex-wrap: wrap; gap: 4px; }
.ally-strip { list-style: none; margin: 0 0 8px; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 6px; }
.ally-strip li { display: flex; align-items: center; gap: 8px; padding: 4px 8px 4px 4px; border-radius: 999px; background: var(--leder); border: 1px solid var(--gravur); font-size: 0.9rem; }
.ally-strip li .avatar { width: 28px; height: 28px; }
.ally-strip li.turn { border-color: var(--altgold); }
.ally-strip li.low { border-color: #D0574A; }
.ally-strip li.out { opacity: 0.5; }
.ally-strip .badge { font-size: 0.72rem; }

.cls-hp { color: var(--altgold-hell); font-weight: 600; }

/* Wer beginnt die Runde? */
.starter-row {
  display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin: 8px 0 2px; padding: 8px 10px;
  border-radius: 10px; background: rgba(8, 16, 11, 0.45); border: 1px dashed rgba(217, 190, 126, 0.55);
}
.starter-label { font: 700 1rem var(--serif); color: var(--altgold-hell); }
.starter-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.starter-chip {
  display: inline-flex; align-items: center; gap: 6px; padding: 3px 12px 3px 3px; border-radius: 999px; cursor: pointer;
  font: inherit; font-size: 0.92rem; color: #E6F0E8; background: rgba(8, 16, 11, 0.55); border: 1px solid rgba(169, 194, 177, 0.4);
}
.starter-chip .avatar { width: 28px; height: 28px; }
.starter-chip:hover:not(:disabled) { border-color: var(--altgold-hell); }
.starter-chip.on { background: var(--altgold); color: #1A140C; border-color: var(--altgold-hell); font-weight: 700; }
.starter-chip:disabled { opacity: 0.45; cursor: not-allowed; }
.starter-chip:focus-visible { outline: 2px solid var(--altgold-hell); outline-offset: 2px; }
.starter-help { font-size: 0.8rem; color: #A9C2B1; }
@media (max-width: 600px) { .starter-help { display: none; } }

/* Kampf beenden: Knopf für die Gruppenleitung und die Bestätigung */
.fight-meta { display: flex; align-items: center; justify-content: space-between; gap: 6px 12px; flex-wrap: wrap; }
.fight-meta p { margin: 0; }
.end-btn { display: inline-flex; align-items: center; gap: 6px; border-color: var(--gravur); padding: 4px 12px; font-size: 0.9rem; }
.end-btn:hover { border-color: var(--asche); text-decoration: none; }
.end-btn .ico { width: 16px; height: 16px; }
.confirm-sheet { width: min(480px, calc(100vw - 24px)); padding: 20px; }
.confirm-sheet h2 { margin: 0 0 10px; font: 700 1.5rem var(--serif); }
.confirm-sheet p { margin: 0 0 10px; line-height: 1.45; }
.confirm-actions { display: flex; gap: 10px; flex-wrap: wrap; justify-content: flex-end; margin-top: 16px; }
.confirm-actions .btn { flex: 1 1 180px; }

/* Gespeicherter Kampf in der Lobby */
.saved-fight { border-color: var(--altgold); box-shadow: inset 4px 0 0 var(--altgold); }
.saved-fight h2 { display: flex; align-items: center; gap: 8px; }
.saved-fight h2 .ico { width: 20px; height: 20px; color: var(--altgold-hell); }
.saved-what { margin: 0 0 2px; font-size: 1.05rem; }
.saved-when { margin: 0 0 10px; font-size: 0.88rem; }
.saved-seats { list-style: none; margin: 0 0 12px; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 8px; }
.saved-seats li { display: flex; align-items: center; gap: 10px; padding: 6px 8px; border-radius: 8px; background: var(--leder); border: 1px solid var(--gravur); }
.saved-seats li.away { border-color: #8A5A3C; }
.saved-seats li.left { opacity: 0.6; }
.saved-seats .avatar { width: 40px; height: 40px; flex: none; }
.seat-state { font-size: 0.85rem; color: var(--asche); }
.seat-state.ok { color: #9CCB8A; }
.seat-state.away { color: #E0A07A; }
.saved-actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.dock-bar .energy { font: 700 1.1rem var(--serif); display: inline-flex; gap: 8px; align-items: center; }
.dock-bar .spacer { flex: 1; }
.readycount { color: var(--asche); font-size: 0.9rem; }
.notice { text-align: center; color: var(--asche); }

/* ------------------------------------------------------------ Ergebnis */

.result { max-width: 860px; margin: 0 auto; text-align: center; }
.result-art { width: min(240px, 60vw); aspect-ratio: 5 / 7; margin: 6px auto 12px; border-radius: 7px; overflow: hidden; border: 1px solid var(--gravur); }
.result-art .art { object-position: 50% 30%; }
.result-title { font-size: 2.6rem; }
.result.lost .result-title { color: #E4A79F; }
.result .panel { text-align: left; }
.loot-row { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; margin-bottom: 10px; }
.stats { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
.stats th { text-align: left; color: var(--asche); font-weight: 500; padding: 6px 4px; border-bottom: 1px solid var(--gravur); }
.stats td { padding: 6px 4px; border-bottom: 1px solid rgba(61,52,42,0.5); font-variant-numeric: tabular-nums; }
.stats .who { display: inline-flex; gap: 8px; align-items: center; }
.stats .avatar { width: 30px; height: 30px; }
.quote { font: 500 1.15rem/1.4 var(--serif); font-style: italic; color: var(--asche); }

/* ------------------------------------------------------------ Tisch-Ansicht */

body.table-view #app { max-width: 1600px; }
.table-grid { display: grid; gap: 18px; }
@media (min-width: 960px) { .table-grid { grid-template-columns: 1.15fr 1fr; } }
body.table-view .stage-media { max-height: 70vh; }
body.table-view .hint { font-size: 1.15rem; }
.big-code { font: 700 5rem/1 var(--serif); letter-spacing: 0.2em; color: var(--altgold-hell); margin: 18px 0; }

/* ------------------------------------------------------------ Bildaufträge */

.jobs { max-width: 1100px; margin: 0 auto; }
.jobs-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 10px; margin-bottom: 14px; }
.jobs-progress { color: var(--asche); }
.jobs-filter { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.job-group { margin: 22px 0 8px; }
.job-owner { font: 700 1.05rem var(--serif); color: var(--asche); margin: 14px 0 6px; }
.job {
  display: grid; grid-template-columns: 72px 1fr; gap: 12px; padding: 10px; margin-bottom: 8px;
  border: 1px solid var(--gravur); border-radius: var(--r); background: rgba(18,16,14,0.55);
}
.job.done { border-color: rgba(94,140,78,0.55); }
.job .job-thumb { width: 72px; aspect-ratio: 5 / 7; border-radius: 4px; overflow: hidden; border: 1px solid var(--gravur); }
.job .job-title { font: 700 1.02rem var(--serif); }
.job .job-meta { display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: center; font-size: 0.88rem; color: var(--asche); }
.job .job-state.done { color: #B9D6AC; }
.job .job-actions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.job pre { white-space: pre-wrap; font: 400 0.84rem/1.4 var(--sans); color: #CFC5B1; background: var(--russ); border: 1px solid var(--gravur); border-radius: 4px; padding: 10px; margin: 8px 0 0; }
.sealed { display: flex; gap: 12px; align-items: center; }
.sealed .seal { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--gravur); color: var(--asche); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ------------------------------------------------------------ Version, Steckbrief, Zug */

.editions { border: 0; padding: 0; margin: 10px 0 12px; }
.editions legend { font-size: 0.86rem; color: var(--asche); margin-bottom: 6px; }
.edition-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 8px; }
.edition {
  text-align: left; padding: 10px 12px; cursor: pointer; font: inherit; color: var(--pergament);
  background: var(--leder); border: 1px solid var(--gravur); border-radius: var(--r);
}
.edition.chosen { border-color: var(--altgold); box-shadow: inset 3px 0 0 var(--altgold); }
.edition .ed-name { display: block; font: 700 1.08rem var(--serif); }
.edition .ed-sub { display: block; font-size: 0.84rem; color: var(--asche); line-height: 1.25; margin-top: 2px; }
.edition-pill { font-size: 0.8rem; color: var(--altgold-hell); border: 1px solid rgba(194, 161, 91, 0.5); border-radius: 999px; padding: 1px 9px; }
.taken-inline { font-size: 0.76rem; color: var(--asche); border: 1px solid var(--gravur); border-radius: 999px; padding: 0 7px; }
.hero-card.is-taken .card-art, .class-row.is-taken { opacity: 0.55; }

.sheet-backdrop { position: fixed; inset: 0; z-index: 40; background: rgba(8, 7, 6, 0.78); touch-action: none; }
html.sheet-open, html.sheet-open body { overflow: hidden; }
.sheet {
  position: fixed; z-index: 41; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: min(960px, calc(100vw - 20px)); max-height: calc(100vh - 24px); max-height: calc(100dvh - 24px); overflow-y: auto;
  overscroll-behavior: contain;
  background: var(--basalt); border: 1px solid var(--gravur); border-radius: 10px; padding: 16px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.7);
}
.profile { display: grid; grid-template-columns: minmax(0, 300px) minmax(0, 1fr); gap: 18px; align-items: start; }
@media (max-width: 640px) {
  .profile { grid-template-columns: 1fr; gap: 10px; }
  .profile-art { width: 64%; margin: 0 auto; }
  .profile-name { font-size: 1.7rem; }
}
.profile-art { display: block; aspect-ratio: 5 / 7; border-radius: 8px; overflow: hidden; border: 1px solid var(--altgold); }
.profile-art .art { object-position: 50% 22%; }
.profile-art .art-ph .mono { font-size: 4rem; }
.profile-art.cls { aspect-ratio: 1 / 1; max-width: 220px; }
.profile-name { font: 700 2rem/1.1 var(--serif); margin: 0 0 4px; }
.profile-sub { color: var(--altgold-hell); margin: 0 0 8px; }
.profile-passive { display: flex; flex-direction: column; gap: 2px; padding: 10px 12px; margin: 10px 0; border-left: 3px solid var(--altgold); background: var(--leder); border-radius: 0 var(--r) var(--r) 0; }
.profile-passive b { font: 700 1.02rem var(--serif); color: var(--altgold-hell); }
.profile-actions {
  position: sticky; bottom: -16px; margin: 16px -16px -16px; padding: 12px 16px max(12px, env(safe-area-inset-bottom));
  display: flex; gap: 8px; flex-wrap: wrap; background: var(--basalt); z-index: 5;
  border-top: 1px solid var(--gravur); box-shadow: 0 -10px 18px rgba(0, 0, 0, 0.45);
}
.sheet h3 { margin: 18px 0 8px; font: 500 1.05rem var(--serif); font-style: italic; color: var(--asche); }
.sheet .deck-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.sheet .deck-list .card { width: 100%; max-width: 230px; }
/* Handy: Der Steckbrief kommt als Blatt von unten, der Knopf zum Wählen bleibt immer sichtbar. */
@media (max-width: 640px) {
  .sheet {
    left: 0; right: 0; top: auto; bottom: 0; transform: none; width: 100%;
    max-height: 92vh; max-height: 92dvh; border-radius: 14px 14px 0 0; border-bottom: 0;
  }
}

.badge.turn { background: var(--altgold); color: #1A140C; }
.badge.danger { background: #D0574A; border-color: #D0574A; color: #1A0E0B; font-weight: 700; }
.member.on-turn { box-shadow: 0 0 0 1px var(--altgold); }

/* ------------------------------------------------------------ Kampfleiste, Bereiche, Chronik, Meldungen */

/* Feste Leiste oben: bleibt beim Scrollen stehen und zeigt, wo man ist. */
.fight-bar {
  position: sticky; top: 0; z-index: 15;
  margin: calc(-1 * max(16px, env(safe-area-inset-top))) -16px 6px;
  padding: max(8px, env(safe-area-inset-top)) 16px 8px;
  background: var(--russ); border-bottom: 1px solid var(--gravur);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.45);
}
.fb-row { display: flex; align-items: center; gap: 8px 12px; flex-wrap: wrap; }
.fb-boss { display: inline-flex; align-items: center; gap: 8px; flex: 1 1 220px; min-width: 0; max-width: 640px; }
.fb-boss b { font: 700 1rem var(--serif); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 42vw; }
.fb-hp { position: relative; flex: 1; min-width: 60px; height: 9px; border-radius: 4px; overflow: hidden; background: #2A1512; border: 1px solid #5A231C; }
.fb-hp i { position: absolute; inset: 0 auto 0 0; background: linear-gradient(180deg, #C4473A, #8E2A20); transition: width 0.5s ease; }
.fb-num { font: 700 0.86rem var(--sans); font-variant-numeric: tabular-nums; color: #E8B4AC; }
.fb-turn { font-size: 0.92rem; margin-left: auto; }
.fb-turn.me { font: 700 0.95rem var(--serif); color: #1A140C; background: var(--altgold); border-radius: 999px; padding: 1px 10px; }
.fb-turn.boss { color: #E4A79F; }
.fb-plan {
  position: absolute; left: 16px; right: 16px; top: calc(100% + 6px);
  display: none; align-items: center; gap: 7px; min-height: 36px; padding: 5px 10px;
  border-radius: var(--r); cursor: pointer; text-align: left; font: 400 1.05rem/1.3 var(--sans); color: var(--pergament);
  background: #3A1A15; border: 1px solid rgba(208, 87, 74, 0.75); box-shadow: 0 8px 18px rgba(0, 0, 0, 0.55);
}
body.plan-away .fb-plan { display: flex; }
.fb-plan:hover { background: #4A211B; }
.fb-plan .ico { color: var(--blutrot-hell); flex: none; }
.fb-plan-label { flex: none; font-weight: 700; color: #F0BDB4; }
.fb-plan-text { min-width: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.fb-plan .you { color: var(--altgold-hell); font-weight: 700; }
.fb-plan.special { background: #5A221B; border-color: var(--blutrot-hell); }
.fb-plan.stopped { background: var(--basalt); border-color: var(--gravur); color: var(--asche); }
.fb-plan.stopped .fb-plan-text { text-decoration: line-through; }
.fb-plan.stopped .ico, .fb-plan.stopped .fb-plan-label { color: var(--asche); }
.intent { scroll-margin-top: calc(var(--bar-height) + 10px); }
.fb-nav { display: flex; gap: 6px; margin-top: 7px; overflow-x: auto; scrollbar-width: none; }
.fb-nav::-webkit-scrollbar { display: none; }
.fb-nav button {
  display: inline-flex; align-items: center; gap: 6px; flex: none; min-height: 36px; padding: 0 12px;
  border-radius: 999px; cursor: pointer; font: 500 0.88rem var(--sans); color: var(--pergament);
  background: color-mix(in srgb, var(--accent) 16%, var(--basalt));
  border: 1px solid color-mix(in srgb, var(--accent) 60%, transparent);
}
.fb-nav button .ico { color: var(--accent); }
.fb-nav button:hover { background: color-mix(in srgb, var(--accent) 28%, var(--basalt)); }
.j-boss { --accent: var(--blutrot-hell); }
.j-gruppe { --accent: var(--stahlblau); }
.j-wissen { --accent: var(--altgold); }
.j-chronik { --accent: #D9C9A3; }
.fight-meta { font-size: 0.86rem; margin: 0 0 10px; }
/* Auf dem Handy zeigt die Leiste unten schon, wer dran ist; oben bleibt Platz für die Sprungmarken. */
@media (max-width: 600px) {
  .fight-bar .fb-turn { display: none; }
  .fb-nav { gap: 5px; }
  .fb-nav button { padding: 0 10px; font-size: 0.84rem; }
}
@media (max-width: 440px) { .fb-nav button .ico { display: none; } }
.sec-bossarea, .sec { scroll-margin-top: calc(var(--bar-height) + 10px); }

/* Jeder Bereich hat seine eigene Farbe und Kopfleiste, damit man beim Scrollen sofort weiss, wo man ist. */
.sec {
  --accent: var(--altgold);
  padding-top: 0;
  border-color: color-mix(in srgb, var(--accent) 42%, var(--gravur));
  box-shadow: inset 3px 0 0 var(--accent);
}
.sec-head {
  display: flex; align-items: baseline; gap: 4px 9px; flex-wrap: wrap;
  margin: 0 -16px 12px; padding: 10px 16px 9px 19px;
  font: 700 1.22rem/1.2 var(--serif); color: var(--pergament);
  background: color-mix(in srgb, var(--accent) 18%, var(--basalt));
  border-bottom: 1px solid color-mix(in srgb, var(--accent) 50%, transparent);
  border-radius: var(--r) var(--r) 0 0;
}
.sec-head .ico { color: var(--accent); width: 1.05em; height: 1.05em; align-self: center; }
.sec-head small { font: 400 0.88rem var(--sans); color: var(--asche); }
.sec-gruppe { --accent: var(--stahlblau); background: linear-gradient(180deg, rgba(44, 56, 66, 0.5), rgba(24, 26, 28, 0.82)); }
.sec-gruppe .member { background: rgba(14, 16, 18, 0.6); }
.sec-wissen { --accent: var(--altgold); }
.sec-raetsel { --accent: #8FB89A; }
.sec-raetsel.vision { --accent: #9A7BC8; }

/* Chronik: helles Pergament, damit sie sich klar vom Rest abhebt. */
.chronicle {
  --accent: #8A6A3A;
  color: #2B2117;
  background: linear-gradient(180deg, #E8DFC9, #DACDAE);
  border-color: #A89068;
  box-shadow: inset 3px 0 0 #8A6A3A, 0 8px 22px rgba(0, 0, 0, 0.35);
}
.chronicle .sec-head { color: #2B2117; background: #CFBE97; border-bottom-color: #A89068; }
.chronicle .sec-head small { color: #5C4A33; }
.chronicle .btn-quiet { color: #5C4A33; }
.chronicle .btn-quiet:hover { color: #2B2117; }
.log { list-style: none; margin: 0 0 6px; padding: 0 4px 0 0; font-size: 1.06rem; line-height: 1.4; max-height: min(62vh, 560px); overflow-y: auto; scrollbar-width: thin; }
.log.open { max-height: 70vh; }
.lg { padding: 8px 10px; margin-bottom: 6px; border-radius: 5px; background: rgba(255, 255, 255, 0.34); border-left: 3px solid #A89068; }
.lg.g-me { background: rgba(217, 190, 126, 0.34); border-left-color: #A9883F; }
.lg.g-boss { background: rgba(168, 53, 42, 0.1); border-left-color: #A8352A; }
.lg.g-round { background: transparent; border-left: 0; padding: 0 10px 4px; }
.lg-head { display: flex; align-items: center; gap: 9px; }
.lg-thumb {
  display: grid; place-items: center; flex: none; width: 30px; aspect-ratio: 5 / 7; overflow: hidden;
  border-radius: 3px; border: 1px solid rgba(43, 33, 23, 0.45); background: #2A231C; color: var(--altgold);
}
.lg-thumb .art { object-position: 50% 25%; }
.lg-thumb .art-ph svg.ico { width: 60%; }
.lg-thumb .art-ph .mono { font-size: 1rem; margin: 0; }
.lg-thumb.item > svg.ico { width: 70%; height: auto; }
.lg-lines { list-style: none; margin: 4px 0 0; padding: 0 0 0 39px; }
.lg-lines li, .ev-lines li { display: flex; gap: 7px; align-items: baseline; padding: 1px 0; }
.lg-lines li > .ico, .ev-lines li > .ico { flex: none; width: 0.95em; height: 0.95em; position: relative; top: 0.13em; }
.lg-round { display: flex; align-items: center; gap: 10px; margin: 12px 0 6px; font: 700 1.05rem var(--serif); color: #5C4A33; }
.lg-round::before, .lg-round::after { content: ""; flex: 1; height: 1px; background: #A89068; }
.chronicle .k-dmg .ico, .chronicle .k-boss .ico, .chronicle .k-intent .ico { color: #9A2C21; }
.chronicle .k-boss, .chronicle .k-reaction, .chronicle .k-defeat, .chronicle .k-intent { color: #7A1F16; }
.chronicle .k-heal .ico { color: #3E6B30; }
.chronicle .k-block .ico { color: #4F5A63; }
.chronicle .k-effect .ico, .chronicle .k-status .ico, .chronicle .k-counter .ico, .chronicle .k-player .ico { color: #7A5F28; }
.chronicle .k-knowledge { color: #6B4E12; font-style: italic; }
.chronicle .k-victory, .chronicle .k-interrupt { color: #2F5A22; font-weight: 700; }
.chronicle .k-defeat { font-weight: 700; }
.chronicle .k-phase { font-family: var(--serif); font-style: italic; }
.chronicle b.you { color: #8A5A00; }

/* Meldung nach jeder Aktion */
#event {
  position: fixed; z-index: 30; left: 50%; transform: translateX(-50%);
  top: calc(var(--bar-height) + var(--plan-height) + 8px);
  width: min(680px, calc(100vw - 16px));
}
.event {
  --accent: var(--stahlblau);
  width: 100%;
  display: flex; flex-direction: column; max-height: min(62vh, 540px);
  background: linear-gradient(180deg, color-mix(in srgb, var(--accent) 36%, #191512), color-mix(in srgb, var(--accent) 17%, #120F0D));
  border: 2px solid var(--accent); border-radius: 12px; overflow: hidden; cursor: pointer;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.6), 0 18px 44px rgba(0, 0, 0, 0.7), 0 0 28px color-mix(in srgb, var(--accent) 40%, transparent);
  animation: evIn 0.26s ease-out;
}
.event.g-me { --accent: var(--altgold); }
.event.g-boss { --accent: var(--blutrot-hell); }
.ev-main { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 12px; padding: 12px 10px 8px 16px; overflow-y: auto; }
.event .lg-thumb { width: 66px; border-radius: 5px; border-color: color-mix(in srgb, var(--accent) 60%, #000); }
.event .lg-thumb.item > svg.ico { width: 60%; }
.ev-head { margin: 2px 0 0; font: 700 1.42rem/1.25 var(--serif); }
.ev-cardtext { margin: 4px 0 0; font-size: 1.02rem; line-height: 1.3; color: #DDD2BD; }
.ev-cardtext b { color: var(--pergament); }
.ev-lines { list-style: none; margin: 8px 0 0; padding: 0; font-size: 1.2rem; line-height: 1.35; }
.ev-lines .k-dmg .ico, .ev-lines .k-boss .ico, .ev-lines .k-intent .ico { color: #E06B5D; }
.ev-lines .k-boss, .ev-lines .k-reaction, .ev-lines .k-intent { color: #F0BDB4; }
.ev-lines .k-heal .ico { color: #9CCB8A; }
.ev-lines .k-block .ico { color: var(--altsilber); }
.ev-lines .k-effect .ico, .ev-lines .k-status .ico, .ev-lines .k-counter .ico, .ev-lines .k-player .ico { color: var(--altgold-hell); }
.ev-lines .k-knowledge { color: var(--altgold-hell); font-style: italic; }
.ev-lines .k-victory, .ev-lines .k-interrupt { color: #B9D6AC; font-weight: 700; }
.ev-lines .k-defeat { color: #F0BDB4; font-weight: 700; }
.ev-lines .lg-round { color: var(--asche); font-size: 0.98rem; margin: 10px 0 4px; }
.ev-lines .lg-round::before, .ev-lines .lg-round::after { background: var(--gravur); }
.event b.you { color: var(--altgold-hell); }
.ev-close {
  width: 40px; height: 40px; border-radius: 50%; cursor: pointer; flex: none;
  border: 1px solid color-mix(in srgb, var(--accent) 50%, transparent); background: rgba(18, 16, 14, 0.5); color: var(--pergament); font: 400 1.5rem/1 var(--sans);
}
.ev-close:hover { border-color: var(--accent); }
.ev-foot { display: flex; align-items: center; gap: 10px; padding: 2px 12px 10px 16px; }
.ev-bar { flex: 1; height: 3px; overflow: hidden; border-radius: 2px; background: rgba(0, 0, 0, 0.35); }
.ev-bar i { display: block; height: 100%; background: var(--accent); transform-origin: left; animation: evBar var(--ev-ms) linear forwards; }
.ev-next {
  min-height: 34px; padding: 0 12px; border-radius: 999px; cursor: pointer;
  border: 1px solid var(--accent); background: rgba(18, 16, 14, 0.5); color: var(--pergament); font: 500 0.86rem var(--sans);
}
@keyframes evIn { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: none; } }
@keyframes evBar { from { transform: scaleX(1); } to { transform: scaleX(0); } }
@media (max-width: 600px) {
  .event .lg-thumb { width: 48px; }
  .ev-head { font-size: 1.22rem; }
  .ev-lines { font-size: 1.1rem; }
}

/* ------------------------------------------------------------ Seelengestalt, Schicksalsfäden, Kartenmarken */

.member.soul { border-color: rgba(127, 214, 204, 0.7); background: linear-gradient(180deg, rgba(60, 140, 135, 0.18), rgba(14, 16, 18, 0.6)); }
.member.soul .avatar { opacity: 0.7; box-shadow: 0 0 0 2px rgba(127, 214, 204, 0.6), 0 0 14px rgba(127, 214, 204, 0.5); }
.badge.soul { color: #0F2422; background: #7FD6CC; border-color: #7FD6CC; font-weight: 700; }
.soul-note {
  display: flex; gap: 8px; align-items: flex-start; margin: 6px 2px 2px; padding: 8px 10px; border-radius: 8px;
  background: rgba(60, 140, 135, 0.22); border: 1px solid rgba(127, 214, 204, 0.6); font-size: 0.95rem;
}
.soul-note .ico { color: #7FD6CC; flex: none; margin-top: 3px; }
.fate-row { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; margin: 0 0 8px; padding: 7px 9px; border-radius: 10px;
  background: rgba(8, 16, 11, 0.45); border: 1px solid rgba(217, 190, 126, 0.45); }
.fate-head { display: inline-flex; align-items: center; gap: 6px; font: 700 0.95rem var(--serif); color: #E8D7A6; }
.fate-head .ico { color: var(--altgold-hell); }
.fate-card {
  display: inline-flex; flex-direction: column; align-items: flex-start; min-height: 40px; padding: 4px 10px; cursor: pointer;
  border-radius: 8px; border: 1px solid rgba(217, 190, 126, 0.6); background: rgba(46, 36, 21, 0.85); color: var(--pergament);
  font: 700 0.92rem var(--serif); text-align: left;
}
.fate-card small { font: 400 0.72rem var(--sans); color: #CDBF98; }
.fate-card.next { border-color: var(--altgold-hell); box-shadow: 0 0 0 1px var(--altgold-hell); cursor: default; opacity: 1; }
.fate-card:hover:not(:disabled) { background: rgba(70, 55, 30, 0.95); }
.fate-help { font-size: 0.8rem; color: #B3C4B8; }
.loot-mark.power { top: auto; bottom: auto; top: 44px; color: #1A140C; background: var(--altgold-hell); border-color: var(--altgold-hell); font-weight: 700; }
.loot-mark.free { top: 44px; color: #0F2416; background: #9CCB8A; border-color: #9CCB8A; font-weight: 700; }
